:root {
    --zioto-primary: #C9A84C;
    --zioto-primary-dark: #A68A3A;
    --zioto-primary-light: #E8D48B;
    --zioto-primary-ghost: rgba(201, 168, 76, 0.07);
    --zioto-success: #2ECC71;
    --zioto-success-bg: rgba(46, 204, 113, 0.08);
    --zioto-warning: #F39C12;
    --zioto-warning-bg: rgba(243, 156, 18, 0.10);
    --zioto-error: #E74C3C;
    --zioto-error-bg: rgba(231, 76, 60, 0.08);
    --zioto-info: #3498DB;
    --zioto-info-bg: rgba(52, 152, 219, 0.08);
    --zioto-text: #1A1A2E;
    --zioto-text-muted: #6B7280;
    --zioto-border: #E5DDD0;
    --zioto-bg: #FAF8F4;
    --zioto-white: #FFFFFF;
    --zioto-radius: 12px;
    --zioto-radius-sm: 8px;
    --zioto-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --zioto-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 10px 15px rgba(0, 0, 0, 0.07);
    --zioto-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08), 0 20px 48px rgba(0, 0, 0, 0.06);
    --zioto-shadow-glow: 0 0 20px rgba(201, 168, 76, 0.18);
    --zioto-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Vazirmatn', sans-serif;
    --zioto-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body.zioto-sidebar-open {
    overflow: hidden;
}

.zioto-dashboard {
    display: flex;
    min-height: 600px;
    background: var(--zioto-bg);
    border-radius: var(--zioto-radius);
    overflow: hidden;
    font-family: var(--zioto-font);
    direction: rtl;
    box-shadow: var(--zioto-shadow-md);
}

/* ─── Sidebar ─── */
.zioto-dashboard__sidebar {
    width: 280px;
    min-width: 280px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FDFBF7 100%);
    border-left: 1px solid var(--zioto-border);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    position: relative;
    overflow: hidden;
}

.zioto-dashboard__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px 20px;
    /* border-bottom: 1px solid var(--zioto-border); */
    margin-bottom: 8px;
}

.zioto-dashboard__logo img {
    max-width: 160px;
    height: auto;
    object-fit: contain;
}

.zioto-dashboard__sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B6914, #C9A84C, #E8D48B);
}

.zioto-dashboard__user {
    text-align: center;
    padding: 20px 20px 24px;
    /* border-bottom: 1px solid var(--zioto-border); */
    margin-bottom: 8px;
    position: relative;
}

.zioto-dashboard__user .zioto-avatar-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid var(--zioto-primary-light);
    box-shadow: 0 0 0 4px var(--zioto-primary-ghost);
    transition: transform var(--zioto-transition), box-shadow var(--zioto-transition);
}

.zioto-dashboard__user .zioto-avatar-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 6px var(--zioto-primary-ghost), var(--zioto-shadow-glow);
}

.zioto-dashboard__user-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--zioto-text);
    margin-bottom: 2px;
}

.zioto-dashboard__user-email {
    font-size: 12px;
    color: var(--zioto-text-muted);
}

/* ─── Main ─── */
.zioto-dashboard__main {
    flex: 1;
    padding: 28px;
    min-width: 0;
}

.zioto-dashboard__content {
    max-width: 100%;
    animation: zioto-fade-in 0.4s ease;
}

/* ─── Back Button ─── */
.zioto-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    margin-bottom: 20px;
    background: var(--zioto-white);
    border: 1.5px solid var(--zioto-border);
    border-radius: var(--zioto-radius-sm);
    color: var(--zioto-text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--zioto-transition);
    box-shadow: var(--zioto-shadow);
    direction: rtl;
}

.zioto-back-btn:hover {
    border-color: var(--zioto-primary);
    color: var(--zioto-primary-dark);
    background: var(--zioto-primary-ghost);
    transform: translateX(4px);
    box-shadow: var(--zioto-shadow-md);
}

.zioto-back-btn::before {
    content: '\2192';
    font-size: 16px;
    line-height: 1;
}

@keyframes zioto-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Navigation ─── */
.zioto-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zioto-nav__item {
    margin: 2px 8px;
}

.zioto-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: var(--zioto-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--zioto-radius-sm);
    transition: all var(--zioto-transition);
    position: relative;
}

.zioto-nav__link:hover {
    background: var(--zioto-primary-ghost);
    color: var(--zioto-primary-dark);
}

.zioto-nav__item--active .zioto-nav__link {
    background: linear-gradient(135deg, #8B6914 0%, #C9A84C 100%);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(139, 105, 20, 0.35);
}

.zioto-nav__icon {
    font-size: 18px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.zioto-icon-dashboard::before { content: '\2302'; }
.zioto-icon-person::before { content: '\263A'; }
.zioto-icon-shopping-cart::before { content: '\2630'; }
.zioto-icon-location-home::before { content: '\2302'; }
.zioto-icon-logout::before { content: '\2190'; }
.zioto-icon-total-orders::before { content: '\2630'; }
.zioto-icon-completed::before { content: '\2713'; }
.zioto-icon-processing::before { content: '\2699'; }
.zioto-icon-pending::before { content: '\23F3'; }
.zioto-icon-cancelled::before { content: '\2717'; }
.zioto-icon-print::before { content: '\2399'; }

.zioto-dashboard__logout {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--zioto-border);
    margin-left: 8px;
    margin-right: 8px;
}

.zioto-dashboard__logout .zioto-nav__link {
    color: var(--zioto-text-muted);
}

.zioto-dashboard__logout .zioto-nav__link:first-child:hover {
    background: var(--zioto-primary-ghost);
    color: var(--zioto-primary-dark);
}

.zioto-dashboard__logout .zioto-nav__link:last-child:hover {
    background: var(--zioto-error-bg);
    color: var(--zioto-error);
}

/* ─── Header ─── */
.zioto-dashboard-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 40%, #1A1A2E 100%);
    border-radius: var(--zioto-radius);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.zioto-dashboard-header::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.zioto-dashboard-header::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: 15%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.zioto-dashboard-header__avatar {
    position: relative;
    z-index: 1;
}

.zioto-dashboard-header__avatar .zioto-avatar-img {
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(201, 168, 76, 0.5);
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.2);
}

.zioto-dashboard-header__info {
    position: relative;
    z-index: 1;
}

.zioto-dashboard-header__info h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
}

.zioto-dashboard-header__meta {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    font-weight: 400;
}

.zioto-dashboard-header__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 14px;
    background: linear-gradient(135deg, #C9A84C, #E8D48B);
    color: #1A1A2E;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 0.03em;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(201, 168, 76, 0.3);
}

/* ─── Stats Grid ─── */
.zioto-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.zioto-stat-card {
    background: var(--zioto-white);
    border: none;
    border-radius: var(--zioto-radius);
    padding: 20px 16px;
    text-align: center;
    transition: all var(--zioto-transition);
    box-shadow: var(--zioto-shadow);
    position: relative;
    overflow: hidden;
}

.zioto-stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--zioto-border);
    transition: height var(--zioto-transition);
}

.zioto-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--zioto-shadow-lg);
}

.zioto-stat-card:hover::after {
    height: 4px;
}

.zioto-stat-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    border-radius: 12px;
    font-size: 20px;
    background: var(--zioto-primary-ghost);
    color: var(--zioto-primary-dark);
    transition: all var(--zioto-transition);
}

.zioto-stat-card:hover .zioto-stat-card__icon {
    transform: scale(1.1);
}

.zioto-stat-card__value {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--zioto-text);
    line-height: 1.2;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.zioto-stat-card__label {
    display: block;
    font-size: 12px;
    color: var(--zioto-text-muted);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.zioto-stat-card--completed {
    background: linear-gradient(135deg, var(--zioto-white) 0%, rgba(46, 204, 113, 0.06) 100%);
}
.zioto-stat-card--completed::after { background: var(--zioto-success); }
.zioto-stat-card--completed .zioto-stat-card__icon {
    background: var(--zioto-success-bg);
    color: var(--zioto-success);
}
.zioto-stat-card--completed .zioto-stat-card__value { color: var(--zioto-success); }

.zioto-stat-card--processing {
    background: linear-gradient(135deg, var(--zioto-white) 0%, rgba(52, 152, 219, 0.06) 100%);
}
.zioto-stat-card--processing::after { background: var(--zioto-info); }
.zioto-stat-card--processing .zioto-stat-card__icon {
    background: var(--zioto-info-bg);
    color: var(--zioto-info);
}
.zioto-stat-card--processing .zioto-stat-card__value { color: var(--zioto-info); }

.zioto-stat-card--pending {
    background: linear-gradient(135deg, var(--zioto-white) 0%, rgba(243, 156, 18, 0.08) 100%);
}
.zioto-stat-card--pending::after { background: var(--zioto-warning); }
.zioto-stat-card--pending .zioto-stat-card__icon {
    background: var(--zioto-warning-bg);
    color: var(--zioto-warning);
}
.zioto-stat-card--pending .zioto-stat-card__value { color: var(--zioto-warning); }

.zioto-stat-card--cancelled {
    background: linear-gradient(135deg, var(--zioto-white) 0%, rgba(231, 76, 60, 0.06) 100%);
}
.zioto-stat-card--cancelled::after { background: var(--zioto-error); }
.zioto-stat-card--cancelled .zioto-stat-card__icon {
    background: var(--zioto-error-bg);
    color: var(--zioto-error);
}
.zioto-stat-card--cancelled .zioto-stat-card__value { color: var(--zioto-error); }

/* ─── Sections ─── */
.zioto-section {
    background: var(--zioto-white);
    border: none;
    border-radius: var(--zioto-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--zioto-shadow);
    transition: box-shadow var(--zioto-transition);
}

.zioto-section:hover {
    box-shadow: var(--zioto-shadow-md);
}

.zioto-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--zioto-border);
}

.zioto-section__header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--zioto-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.zioto-section__header h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #8B6914, #C9A84C);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ─── Table ─── */
.zioto-table-wrap {
    overflow-x: auto;
    border-radius: var(--zioto-radius-sm);
    border: 1px solid var(--zioto-border);
}

.zioto-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.zioto-table th {
    background: #FDFBF7;
    padding: 12px 16px;
    text-align: right;
    font-weight: 600;
    color: var(--zioto-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--zioto-border);
    white-space: nowrap;
}

.zioto-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--zioto-border);
    color: var(--zioto-text);
    vertical-align: middle;
}

.zioto-table tbody tr {
    transition: background var(--zioto-transition);
}

.zioto-table tbody tr:hover {
    background: var(--zioto-primary-ghost);
}

.zioto-table tbody tr:last-child td {
    border-bottom: none;
}

.zioto-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--zioto-text-muted);
    position: relative;
}

.zioto-empty::before {
    content: '';
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--zioto-primary-ghost);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23C9A84C' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5m6 4l2.25-2.25m0 0l2.25-2.25m-2.25 2.25L12 4.5m0 0l2.25 2.25'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* ─── Badges ─── */
.zioto-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.zioto-badge--pending { background: var(--zioto-warning-bg); color: #D68910; }
.zioto-badge--processing { background: var(--zioto-info-bg); color: #2980B9; }
.zioto-badge--on-hold { background: var(--zioto-warning-bg); color: #D68910; }
.zioto-badge--completed { background: var(--zioto-success-bg); color: #27AE60; }
.zioto-badge--cancelled { background: var(--zioto-error-bg); color: var(--zioto-error); }
.zioto-badge--refunded { background: #F0F0F1; color: var(--zioto-text-muted); }
.zioto-badge--failed { background: var(--zioto-error-bg); color: var(--zioto-error); }
.zioto-badge--checkout-draft { background: #F0F0F1; color: var(--zioto-text-muted); }

/* ─── Buttons ─── */
.zioto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--zioto-radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: var(--zioto-white);
    color: var(--zioto-text);
    transition: all var(--zioto-transition);
    gap: 6px;
    line-height: 1.4;
    font-family: inherit;
    box-shadow: var(--zioto-shadow);
}

.zioto-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--zioto-shadow-md);
    color: var(--zioto-text);
}

.zioto-btn:active {
    transform: translateY(0);
}

.zioto-btn--primary {
    background: linear-gradient(135deg, #8B6914 0%, #C9A84C 100%);
    border: none;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(139, 105, 20, 0.35);
}

.zioto-btn--primary:hover {
    box-shadow: 0 4px 12px rgba(139, 105, 20, 0.45);
    color: #FFFFFF;
}

.zioto-btn--outline {
    background: transparent;
    border: 1.5px solid var(--zioto-border);
    color: var(--zioto-text);
    box-shadow: none;
}

.zioto-btn--outline:hover {
    border-color: var(--zioto-primary);
    color: var(--zioto-primary-dark);
    background: var(--zioto-primary-ghost);
    box-shadow: none;
}

.zioto-btn--sm {
    padding: 5px 12px;
    font-size: 12px;
}

/* ─── Info Grid ─── */
.zioto-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.zioto-info-item {
    padding: 14px 16px;
    background: var(--zioto-bg);
    border-radius: var(--zioto-radius-sm);
    border: 1px solid transparent;
    transition: all var(--zioto-transition);
}

.zioto-info-item:hover {
    border-color: var(--zioto-primary-light);
    background: var(--zioto-primary-ghost);
}

.zioto-info-item__label {
    display: block;
    font-size: 12px;
    color: var(--zioto-text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.zioto-info-item__value {
    display: block;
    font-size: 14px;
    color: var(--zioto-text);
    font-weight: 600;
    direction: ltr;
    text-align: right;
}

/* ─── Forms ─── */
.zioto-hidden {
    display: none !important;
}

.zioto-form {
    max-width: 600px;
}

.zioto-form--full {
    max-width: 100%;
}

.zioto-form-section {
    background: var(--zioto-white);
    border: none;
    border-radius: var(--zioto-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--zioto-shadow);
}

.zioto-form-section h3 {
    margin: 0 0 20px;
    font-size: 16px;
    color: var(--zioto-text);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--zioto-border);
    font-weight: 700;
}

.zioto-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.zioto-form-group {
    margin-bottom: 16px;
}

.zioto-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--zioto-text);
}

.zioto-form-group input,
.zioto-form-group select,
.zioto-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #D1D5DB !important;
    border-radius: var(--zioto-radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: #FFFFFF !important;
    color: var(--zioto-text) !important;
    transition: all var(--zioto-transition);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.zioto-form-group input:hover,
.zioto-form-group select:hover,
.zioto-form-group textarea:hover {
    border-color: #9CA3AF !important;
}

.zioto-form-group input:focus,
.zioto-form-group select:focus,
.zioto-form-group textarea:focus {
    border-color: var(--zioto-primary) !important;
    outline: none !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 3px var(--zioto-primary-ghost) !important;
}

.zioto-form-group input:disabled {
    background: var(--zioto-bg) !important;
    color: var(--zioto-text-muted) !important;
    opacity: 1;
}

.zioto-field-desc {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--zioto-text-muted);
}

.zioto-form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* ─── Messages ─── */
.zioto-message {
    padding: 12px 16px;
    border-radius: var(--zioto-radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: zioto-slide-in 0.3s ease;
}

@keyframes zioto-slide-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.zioto-message--success {
    background: var(--zioto-success-bg);
    color: #27AE60;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.zioto-message--error {
    background: var(--zioto-error-bg);
    color: var(--zioto-error);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.zioto-message--warning {
    background: var(--zioto-warning-bg);
    color: #D68910;
    border: 1px solid rgba(243, 156, 18, 0.25);
}

.zioto-message__close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    padding: 0 4px;
    opacity: 0.6;
    transition: opacity var(--zioto-transition);
}

.zioto-message__close:hover {
    opacity: 1;
}

/* ─── Avatar Upload ─── */
.zioto-avatar-upload {
    display: flex;
    align-items: center;
    gap: 16px;
}

.zioto-avatar-upload__preview .zioto-avatar-img {
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--zioto-primary-light);
}

.zioto-avatar-upload__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.zioto-avatar-upload__actions input[type="file"] {
    display: none;
}

/* ─── Orders Filter ─── */
.zioto-orders-filter {
    margin-bottom: 16px;
}

.zioto-filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zioto-filter-select {
    padding: 10px 14px;
    border: 1.5px solid var(--zioto-border);
    border-radius: var(--zioto-radius-sm);
    font-size: 13px;
    font-family: inherit;
    background: var(--zioto-white);
    color: var(--zioto-text);
    min-width: 180px;
    transition: border-color var(--zioto-transition);
    cursor: pointer;
}

.zioto-filter-select:focus {
    border-color: var(--zioto-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--zioto-primary-ghost);
}

/* ─── Pagination ─── */
.zioto-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
}

.zioto-pagination__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--zioto-border);
    border-radius: var(--zioto-radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--zioto-text);
    transition: all var(--zioto-transition);
    background: var(--zioto-white);
}

.zioto-pagination__item:hover {
    border-color: var(--zioto-primary);
    color: var(--zioto-primary-dark);
    background: var(--zioto-primary-ghost);
}

.zioto-pagination__item--active {
    background: linear-gradient(135deg, #8B6914 0%, #C9A84C 100%);
    border-color: var(--zioto-primary);
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(139, 105, 20, 0.35);
}

/* ─── Order Detail ─── */
.zioto-order-detail__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.zioto-dashboard h3,
.zioto-dashboard-header h3,
.zioto-section h3,
.zioto-order-detail h3,
.zioto-order-detail__header h3 {
    color: var(--zioto-text);
}

.zioto-order-detail__header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.zioto-order-detail__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.zioto-order-meta-item {
    background: #FFFFFF;
    border: 1px solid var(--zioto-border);
    border-radius: var(--zioto-radius-sm);
    padding: 14px 16px;
    transition: all var(--zioto-transition);
}

.zioto-order-meta-item:hover {
    border-color: var(--zioto-primary-light);
}

.zioto-order-meta-item__label {
    display: block;
    font-size: 12px;
    color: var(--zioto-text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.zioto-order-meta-item__value {
    display: block;
    font-size: 14px;
    color: var(--zioto-text);
    font-weight: 600;
}

.zioto-order-detail__actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

/* ─── Notes ─── */
.zioto-notes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zioto-note {
    background: var(--zioto-bg);
    border-radius: var(--zioto-radius-sm);
    padding: 14px 16px;
    border-right: 3px solid var(--zioto-primary);
    transition: all var(--zioto-transition);
}

.zioto-note:hover {
    background: var(--zioto-primary-ghost);
}

.zioto-note__text {
    font-size: 13px;
    color: var(--zioto-text);
    margin-bottom: 6px;
    line-height: 1.6;
}

.zioto-note__date {
    font-size: 11px;
    color: var(--zioto-text-muted);
    font-weight: 500;
}

/* ─── Addresses ─── */
.zioto-addresses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.zioto-address-box {
    background: var(--zioto-white);
    border: 1px solid var(--zioto-border);
    border-radius: var(--zioto-radius);
    transition: all var(--zioto-transition);
    overflow: hidden;
}

.zioto-address-box:hover {
    box-shadow: var(--zioto-shadow-md);
}

.zioto-address-box__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #FDFBF7;
    border-bottom: 1px solid var(--zioto-border);
}

.zioto-address-box__header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--zioto-text);
}

.zioto-address-box__content {
    padding: 18px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--zioto-text);
}

.zioto-address-form {
    padding: 16px;
    border-top: 1px solid var(--zioto-border);
}

.zioto-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ─── Login Notice ─── */
.zioto-login-notice {
    text-align: center;
    padding: 80px 20px;
    background: var(--zioto-white);
    border-radius: var(--zioto-radius);
    box-shadow: var(--zioto-shadow);
}

.zioto-login-notice p {
    font-size: 16px;
    color: var(--zioto-text-muted);
    margin-bottom: 24px;
}

/* ─── Loading ─── */
.zioto-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.zioto-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid var(--zioto-border);
    border-top-color: var(--zioto-primary);
    border-radius: 50%;
    animation: zioto-spin 0.7s linear infinite;
}

@keyframes zioto-spin {
    to { transform: rotate(360deg); }
}

/* ─── Topbar (mobile) ─── */
.zioto-dashboard__topbar {
    display: none;
}

.zioto-dashboard__overlay {
    display: none;
}

/* ─── Responsive ─── */

/* Large screens (27" monitors, ultrawide) */
@media (min-width: 1400px) {
    .zioto-dashboard {
        min-height: 700px;
    }

    .zioto-dashboard__sidebar {
        width: 300px;
        min-width: 300px;
    }

    .zioto-dashboard__main {
        padding: 36px 48px;
    }

    .zioto-stats-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }

    .zioto-addresses-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .zioto-dashboard {
        flex-direction: column;
    }

    .zioto-dashboard__sidebar {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        min-width: 280px;
        height: 100vh;
        z-index: 1001;
        border-left: none;
        border-right: 1px solid var(--zioto-border);
        transition: right 0.3s ease;
        overflow-y: auto;
        padding: 0 0 24px;
    }

    .zioto-dashboard__sidebar.is-open {
        right: 0;
    }

    .zioto-dashboard__sidebar::before {
        height: 4px;
    }

    .zioto-dashboard__logo {
        padding: 50px 20px;
        border-bottom: 1px solid var(--zioto-border);
    }

    .zioto-dashboard__user {
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid var(--zioto-border);
        margin-bottom: 8px;
    }

    .zioto-dashboard__user .zioto-avatar-img {
        margin-bottom: 10px;
    }

    .zioto-nav__list {
        padding: 8px;
    }

    .zioto-nav__item {
        margin: 2px 0;
    }

    .zioto-nav__link {
        padding: 12px 16px;
        font-size: 14px;
    }

    .zioto-dashboard__logout {
        padding: 16px 8px;
        margin: 0 8px;
    }

    .zioto-dashboard__topbar {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        background: var(--zioto-white);
        border-bottom: 1px solid var(--zioto-border);
        position: sticky;
        top: 0;
        z-index: 999;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }

    .zioto-topbar__toggle {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        background: var(--zioto-primary);
        color: #fff;
        border: none;
        border-radius: var(--zioto-radius-sm);
        cursor: pointer;
        flex-shrink: 0;
        box-shadow: 0 2px 6px rgba(201, 168, 76, 0.25);
        transition: all var(--zioto-transition);
    }

    .zioto-topbar__toggle:hover,
    .zioto-topbar__toggle:active {
        background: var(--zioto-primary-dark);
        transform: translateY(-1px);
    }

    .zioto-topbar__toggle-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 0;
        transition: opacity var(--zioto-transition), transform var(--zioto-transition);
    }

    .zioto-topbar__toggle-icon svg {
        display: block;
        width: 24px;
        height: 24px;
    }

    .zioto-topbar__toggle-icon--close {
        position: absolute;
        inset: 0;
        margin: auto;
        opacity: 0;
        transform: scale(0.6) rotate(-90deg);
    }

    /* باز بودن منو => آیکون ضربدر نمایش داده شود */
    .zioto-topbar__toggle.is-active .zioto-topbar__toggle-icon--open {
        opacity: 0;
        transform: scale(0.6) rotate(90deg);
    }

    .zioto-topbar__toggle.is-active .zioto-topbar__toggle-icon--close {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    .zioto-dashboard__overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1000;
        backdrop-filter: blur(2px);
    }

    .zioto-dashboard__overlay.is-active {
        display: block;
    }


    .zioto-topbar__logo img {
        height: 28px;
        width: auto;
        object-fit: contain;
    }

    .zioto-dashboard__main {
        padding: 16px;
    }

    .zioto-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .zioto-stat-card {
        padding: 12px;
    }

    .zioto-stat-card__value {
        font-size: 22px;
    }

    .zioto-addresses-grid,
    .zioto-form-row,
    .zioto-info-grid,
    .zioto-order-detail__meta {
        grid-template-columns: 1fr;
    }

    .zioto-dashboard-header {
        flex-direction: column;
        text-align: center;
    }

    .zioto-dashboard-header__badge {
        display: none;
    }

    .zioto-table {
        font-size: 12px;
    }

    .zioto-table th,
    .zioto-table td {
        padding: 8px;
    }

    .zioto-actions {
        flex-direction: column;
    }

    .zioto-avatar-upload {
        flex-direction: column;
        text-align: center;
    }

    .zioto-back-btn {
        display: none;
    }

    .zioto-invoice__header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px;
    }

    .zioto-invoice__title {
        text-align: center;
    }

    .zioto-invoice__meta {
        grid-template-columns: 1fr;
        padding: 16px 20px;
    }

    .zioto-invoice__table th,
    .zioto-invoice__table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .zioto-invoice__totals {
        padding: 16px 20px;
    }

    .zioto-invoice__totals-table {
        width: 100%;
    }

    .zioto-invoice__footer {
        padding: 16px 20px;
    }

    .zioto-invoice__address {
        padding: 12px 20px;
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .zioto-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .zioto-stat-card {
        padding: 12px 10px;
    }

    .zioto-stat-card__value {
        font-size: 20px;
    }

    .zioto-dashboard__main {
        padding: 12px;
    }

    .zioto-section {
        padding: 14px;
    }

    .zioto-dashboard-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .zioto-dashboard-header::before,
    .zioto-dashboard-header::after {
        display: none;
    }

    .zioto-topbar__logo img {
        height: 24px;
    }
}

/* ─── Invoice ─── */
.zioto-invoice-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.zioto-invoice {
    background: var(--zioto-white);
    border-radius: var(--zioto-radius);
    box-shadow: var(--zioto-shadow-md);
    overflow: hidden;
}

.zioto-invoice__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 40%, #1A1A2E 100%);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.zioto-invoice__header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.zioto-invoice__logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.zioto-invoice__title {
    text-align: left;
    position: relative;
    z-index: 1;
}

.zioto-invoice__title h1 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
}

.zioto-invoice__number {
    font-size: 14px;
    color: var(--zioto-primary-light);
    font-weight: 500;
}

.zioto-invoice__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px 32px;
    border-bottom: 1px solid var(--zioto-border);
}

.zioto-invoice__meta-box {
    background: var(--zioto-bg);
    border-radius: var(--zioto-radius-sm);
    padding: 16px 20px;
}

.zioto-invoice__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}

.zioto-invoice__meta-row + .zioto-invoice__meta-row {
    border-top: 1px solid var(--zioto-border);
}

.zioto-invoice__meta-label {
    font-weight: 600;
    color: var(--zioto-text-muted);
}

.zioto-invoice__meta-value {
    font-weight: 600;
    color: var(--zioto-text);
}

.zioto-invoice__address {
    padding: 16px 32px;
    background: var(--zioto-primary-ghost);
    border-bottom: 1px solid var(--zioto-border);
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.6;
}

.zioto-invoice__address-label {
    font-weight: 700;
    color: var(--zioto-text-muted);
    white-space: nowrap;
}

.zioto-invoice__address-value {
    color: var(--zioto-text);
    font-weight: 500;
}

.zioto-invoice__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.zioto-invoice__table thead {
    background: var(--zioto-bg);
}

.zioto-invoice__table th {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 12px;
    color: var(--zioto-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--zioto-border);
}

.zioto-invoice__table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--zioto-border);
    color: var(--zioto-text);
}

.zioto-invoice__table tbody tr:last-child td {
    border-bottom: none;
}

.zioto-invoice__th-num,
.zioto-invoice__td-num {
    width: 40px;
    text-align: center;
}

.zioto-invoice__th-product {
    text-align: right;
}

.zioto-invoice__th-qty,
.zioto-invoice__td-qty {
    width: 60px;
    text-align: center;
}

.zioto-invoice__th-price,
.zioto-invoice__th-total,
.zioto-invoice__td-price,
.zioto-invoice__td-total {
    width: 120px;
    text-align: left;
}

.zioto-invoice__variation {
    color: var(--zioto-text-muted);
    font-size: 11px;
}

.zioto-invoice__totals {
    padding: 20px 32px;
    display: flex;
    justify-content: flex-end;
}

.zioto-invoice__totals-table {
    width: 300px;
}

.zioto-invoice__total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    color: var(--zioto-text-muted);
}

.zioto-invoice__total-row--final {
    border-top: 2px solid var(--zioto-primary);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 16px;
    font-weight: 800;
    color: var(--zioto-text);
}

.zioto-invoice__footer {
    padding: 24px 32px;
    background: var(--zioto-bg);
    text-align: center;
    border-top: 1px solid var(--zioto-border);
}

.zioto-invoice__footer-thanks {
    font-size: 15px;
    font-weight: 700;
    color: var(--zioto-primary-dark);
    margin-bottom: 8px;
}

.zioto-invoice__footer-info {
    font-size: 12px;
    color: var(--zioto-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ─── Print Styles ─── */
@media print {
    .no-print,
    .zioto-invoice-actions,
    .zioto-dashboard__sidebar,
    .zioto-nav,
    .zioto-back-btn,
    .zioto-btn {
        display: none !important;
    }

    body {
        background: #FFFFFF !important;
        margin: 0;
        padding: 0;
    }

    .zioto-dashboard {
        box-shadow: none;
        border-radius: 0;
        min-height: auto;
    }

    .zioto-dashboard__main {
        padding: 0;
    }

    .zioto-invoice {
        box-shadow: none;
        border-radius: 0;
    }

    .zioto-invoice__header {
        background: #1A1A2E !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .zioto-invoice__meta-box {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .zioto-invoice__table thead {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .zioto-invoice__total-row--final {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ─── Phone Field ─── */
.zioto-phone-field {
    display: flex;
    gap: 8px;
    align-items: center;
}

.zioto-phone-field input {
    flex: 1;
}

/* ─── Phone Change Modal ─── */
.zioto-phone-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.zioto-phone-modal.is-active {
    display: flex;
}

.zioto-phone-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.zioto-phone-modal__box {
    position: relative;
    background: var(--zioto-white);
    border-radius: var(--zioto-radius);
    padding: 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 1;
    animation: zioto-modal-in 0.3s ease;
}

@keyframes zioto-modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.zioto-phone-modal__close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--zioto-text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--zioto-transition);
}

.zioto-phone-modal__close:hover {
    background: var(--zioto-bg);
    color: var(--zioto-text);
}

.zioto-phone-modal__box h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--zioto-text);
    text-align: center;
}

.zioto-phone-modal__desc {
    font-size: 13px;
    color: var(--zioto-text-muted);
    text-align: center;
    margin: 0 0 20px;
    line-height: 1.6;
}

.zioto-phone-modal__msg {
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
    min-height: 20px;
}

.zioto-phone-modal__msg:empty {
    display: none;
}

.zioto-phone-modal__msg.is-error {
    color: var(--zioto-error);
}

.zioto-phone-modal__msg.is-success {
    color: var(--zioto-success);
}

.zioto-phone-modal__icon-success {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--zioto-success-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--zioto-success);
}
