/*=============================================
=            NAYAB MY ACCOUNT CSS            =
=============================================*/

/* Auth Pages (Login / Register) */
.nayab-auth-page {
    position: relative;
    padding: 80px 0;
    min-height: calc(100vh - 250px);
    background-color: var(--light-bg);
    overflow: hidden;
}

.auth-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.auth-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(201,168,108,0.1), rgba(201,168,108,0.05));
}

.auth-circle-1 { width: 400px; height: 400px; top: -100px; right: -100px; }
.auth-circle-2 { width: 300px; height: 300px; bottom: 50px; left: -50px; }
.auth-circle-3 { width: 150px; height: 150px; top: 40%; right: 20%; filter: blur(5px); }

.auth-wrapper {
    position: relative;
    max-width: 550px;
    margin: 0 auto;
    z-index: 1;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    background: #fdfdfd;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 20px 10px;
    font-size: 16px;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.auth-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.auth-tab.active {
    color: var(--primary-color);
}

.auth-tab.active::after {
    transform: scaleX(1);
}

.auth-panel {
    display: none;
    padding: 40px;
    animation: fadeIn 0.4s ease;
}

.auth-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-panel-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-icon-ring {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.05);
    color: var(--primary-color);
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

.auth-icon-ring.auth-icon-ring--gold {
    color: var(--secondary-color);
    box-shadow: inset 0 0 0 2px var(--secondary-color);
    background: rgba(201, 168, 108, 0.05);
}

.auth-panel-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.auth-panel-header p {
    color: #666;
    font-size: 14px;
}

.nayab-form-group {
    margin-bottom: 20px;
}

.nayab-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nayab-label .required {
    color: var(--danger-color);
}

.nayab-input-wrapper {
    position: relative;
}

.nayab-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fdfdfd;
}

.nayab-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(201, 168, 108, 0.1);
}

.nayab-password-wrapper .password-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
}

.nayab-password-wrapper .nayab-input {
    padding-left: 45px;
}

.nayab-form-row-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.nayab-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    user-select: none;
}

.nayab-checkbox-label input {
    display: none;
}

.nayab-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.nayab-checkbox-label input:checked + .nayab-checkbox-custom {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.nayab-checkbox-label input:checked + .nayab-checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--white);
    font-size: 11px;
}

.nayab-lost-password {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 600;
}

.nayab-btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26,26,26,0.1);
}

.nayab-btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,168,108,0.2);
}

.auth-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.auth-divider span {
    position: relative;
    z-index: 2;
    background: var(--white);
    padding: 0 15px;
    color: #999;
    font-size: 14px;
}

.nayab-btn-outline {
    width: 100%;
    padding: 15px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.nayab-btn-outline:hover {
    border-color: var(--primary-color);
    background: rgba(26,26,26,0.02);
}

/* Register specific */
.register-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.password-strength-bar {
    height: 4px;
    background: #eaeaea;
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    background: var(--danger-color);
    transition: width 0.3s ease, background 0.3s ease;
}

.password-strength-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
}

.nayab-notice {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.nayab-notice--info {
    background: rgba(201,168,108,0.1);
    color: #8c7142;
    border: 1px solid rgba(201,168,108,0.2);
}

.nayab-notice i {
    margin-top: 3px;
}

.nayab-privacy-notice {
    font-size: 13px;
    color: #777;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.6;
}

.nayab-privacy-notice a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* My Account Layout */
.nayab-account-page {
    padding: 28px 0 80px;
    background: linear-gradient(180deg, #f7f4ed 0%, var(--light-bg) 360px);
    min-height: 700px;
}

/* Account Header Banner */
.account-header-banner {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 28px;
    background: var(--primary-color);
    box-shadow: 0 18px 45px rgba(18, 24, 38, 0.14);
}

.account-header-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 16% 24%, rgba(201,168,108,0.32), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,0.08), rgba(201,168,108,0.12));
    opacity: 1;
}

.account-header-content {
    position: relative;
    z-index: 1;
    padding: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.account-profile-main {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.account-avatar-wrapper {
    position: relative;
    flex: 0 0 auto;
}

.account-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    padding: 4px;
    background: var(--white);
    position: relative;
    box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid var(--white);
}

.avatar-status.online {
    background: var(--success-color);
}

.account-header-info {
    color: var(--white);
    min-width: 0;
}

.account-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.82);
    font-size: 12px;
    font-weight: 700;
}

.account-welcome {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.25;
}

.wave-emoji {
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
    display: inline-block;
}

@keyframes wave {
    0% { transform: rotate( 0.0deg) }
    10% { transform: rotate(14.0deg) }
    20% { transform: rotate(-8.0deg) }
    30% { transform: rotate(14.0deg) }
    40% { transform: rotate(-4.0deg) }
    50% { transform: rotate(10.0deg) }
    60% { transform: rotate( 0.0deg) }
    100% { transform: rotate( 0.0deg) }
}

.account-email,
.account-contact-line {
    font-size: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.account-contact-line span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.11);
    color: rgba(255,255,255,0.86);
    line-height: 1.2;
}

.account-header-side {
    display: grid;
    gap: 14px;
    min-width: 300px;
}

.account-header-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.account-header-stat {
    padding: 13px 14px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    min-width: 0;
}

.account-header-stat strong {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-header-stat span {
    display: block;
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    font-weight: 700;
}

.account-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.account-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 10px;
    background: var(--secondary-color);
    color: var(--white);
    font-weight: 800;
    font-size: 13px;
}

.account-header-btn:hover {
    background: #b5955a;
    color: var(--white);
}

.account-header-btn-light {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
}

.account-header-btn-light:hover {
    background: rgba(255,255,255,0.2);
}

/* Account Body Layout */
.account-body {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .account-body {
        grid-template-columns: 1fr;
    }
}

/* Account Sidebar / Navigation */
.account-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.nayab-account-nav {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    overflow: hidden;
}

.account-nav-profile {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-avatar {
    position: relative;
    width: 56px;
    height: 56px;
}

.nav-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.nav-user-info strong {
    display: block;
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.nav-user-info span {
    font-size: 12px;
    color: var(--secondary-color);
    background: rgba(201,168,108,0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.account-nav-list {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.account-nav-item {
    margin: 0;
}

.account-nav-item.is-active .account-nav-link {
    background: rgba(201,168,108,0.05);
    color: var(--secondary-color);
    border-right: 4px solid var(--secondary-color);
}

.account-nav-item.is-active .nav-link-icon {
    color: var(--secondary-color);
}

.account-nav-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-right: 4px solid transparent;
}

.account-nav-link:hover {
    background: rgba(0,0,0,0.02);
    color: var(--primary-color);
}

.nav-link-icon {
    width: 24px;
    color: #999;
    font-size: 18px;
    margin-left: 15px; /* RTL */
    transition: color 0.3s ease;
}

.nav-link-label {
    flex: 1;
}

.nav-link-badge {
    background: var(--danger-color);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: 10px;
}

.nav-arrow {
    font-size: 12px;
    color: #ccc;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.account-nav-link:hover .nav-arrow {
    opacity: 1;
    transform: translateX(0);
}

.account-nav-item.woocommerce-MyAccount-navigation-link--customer-logout .account-nav-link {
    color: var(--danger-color);
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
}
.account-nav-item.woocommerce-MyAccount-navigation-link--customer-logout .nav-link-icon {
    color: var(--danger-color);
}

.account-nav-support {
    padding: 20px;
    background: #f9f9f9;
}

.nav-support-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: var(--white);
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}
.nav-support-btn:hover {
    background: #1ebc59;
}

/* Main Content Area */
.account-content {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    min-height: 400px;
    min-width: 0;
}

@media (max-width: 768px) {
    .account-content {
        padding: 18px;
    }
    .account-header-content {
        flex-direction: column;
        align-items: stretch;
        padding: 24px 18px;
    }

    .account-profile-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-header-side {
        min-width: 0;
    }

    .account-header-stats {
        grid-template-columns: 1fr;
    }

    .account-header-actions,
    .account-header-btn {
        width: 100%;
    }

    .account-welcome {
        font-size: 24px;
    }

    .account-sidebar {
        position: static;
    }
}

/* Dashboard Specifics */
.dashboard-welcome-card {
    position: relative;
    background: #fbfaf7;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 22px;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dashboard-welcome-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(201,168,108,0.12), rgba(255,255,255,0));
    opacity: 1;
}
.dashboard-welcome-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
@media (max-width: 600px) {
    .dashboard-welcome-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}
.dashboard-welcome-text h2 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 8px;
}
.dashboard-welcome-text p {
    color: #6b7280;
    font-size: 14px;
    max-width: 520px;
    line-height: 1.7;
}
.nayab-btn-gold {
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nayab-btn-gold:hover {
    background: #b5955a;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}
.stat-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.stat-icon-orders { background: rgba(52, 152, 219, 0.1); color: #3498db; }
.stat-icon-spent { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.stat-icon-member { background: rgba(155, 89, 182, 0.1); color: #9b59b6; }
.stat-card-info {
    display: flex;
    flex-direction: column;
}
.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}
.stat-label {
    font-size: 13px;
    color: #777;
}

.dashboard-section {
    margin-bottom: 30px;
}
.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.dashboard-section-header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}
.dashboard-section-header h3 i {
    color: var(--secondary-color);
}
.view-all-link {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.view-all-link:hover {
    gap: 8px;
}

.dashboard-orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.dashboard-order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    transition: all 0.2s ease;
}
.dashboard-order-row:hover {
    border-color: var(--secondary-color);
}
.order-row-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.order-row-number {
    font-weight: 700;
    font-size: 15px;
}
.order-row-date {
    font-size: 13px;
    color: #888;
}
.order-row-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}
.order-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.status-pending, .status-hold { background: #fff3cd; color: #856404; }
.status-processing { background: #cce5ff; color: #004085; }
.status-completed { background: #d4edda; color: #155724; }
.status-cancelled, .status-failed { background: #f8d7da; color: #721c24; }
.status-refunded { background: #e2e3e5; color: #383d41; }
.order-row-total {
    font-weight: 700;
    color: var(--success-color);
}
.order-row-action {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(201,168,108,0.1);
    color: var(--secondary-color);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
.order-row-action:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.dashboard-quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 600px) {
    .dashboard-quick-links { grid-template-columns: repeat(2, 1fr); }
}
.quick-link-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    padding: 18px 10px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    transition: all 0.3s ease;
}
.quick-link-card i {
    font-size: 24px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}
.quick-link-card span {
    font-size: 14px;
    font-weight: 600;
}
.quick-link-card:hover {
    border-color: var(--secondary-color);
    background: rgba(201,168,108,0.02);
}
.quick-link-card:hover i {
    color: var(--secondary-color);
}

/* User Orders Management */
.orders-control-panel {
    display: grid;
    gap: 22px;
}

.orders-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 18px;
    align-items: stretch;
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: linear-gradient(135deg, #fbfaf7 0%, #fff 72%);
}

.orders-header-info h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    color: var(--primary-color);
    font-size: 24px;
}

.orders-header-info h2 i {
    color: var(--secondary-color);
}

.orders-header-info p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.orders-header-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.orders-header-stats .stat-item {
    display: grid;
    align-content: center;
    gap: 5px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 11px;
    background: #fff;
}

.orders-header-stats .stat-item.highlight {
    border-color: rgba(201,168,108,0.36);
    background: rgba(201,168,108,0.08);
}

.orders-header-stats .stat-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orders-filters-bar {
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
}

.filters-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-group.search-group {
    flex: 1 1 260px;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-input-wrapper input,
.filter-select {
    width: 100%;
    min-height: 42px;
    padding: 10px 38px 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    background: #fff;
    color: var(--primary-color);
    font-family: inherit;
    font-size: 13px;
}

.filter-select {
    min-width: 170px;
    padding-right: 12px;
}

.clear-search {
    position: absolute;
    top: 50%;
    left: 9px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
}

.filter-btn,
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    background: #fff;
    color: var(--primary-color);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.filter-btn:hover,
.pagination-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.apply-btn,
.start-shopping-btn {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.apply-btn:hover,
.start-shopping-btn:hover {
    background: #b5955a;
    color: #fff;
}

.orders-status-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.status-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
}

.status-tab.active {
    background: rgba(201,168,108,0.12);
    border-color: rgba(201,168,108,0.45);
    color: var(--secondary-color);
}

.tab-count {
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    text-align: center;
    font-size: 12px;
}

.orders-cards-wrapper {
    display: grid;
    gap: 16px;
}

.order-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0,0,0,0.025);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-card:hover {
    border-color: rgba(201,168,108,0.42);
    box-shadow: 0 12px 28px rgba(0,0,0,0.045);
}

.order-card-header,
.order-main-info,
.order-meta,
.order-card-total,
.order-tracking-info,
.order-card-actions,
.orders-pagination {
    display: flex;
    align-items: center;
}

.order-card-header,
.order-card-total,
.order-tracking-info,
.orders-pagination {
    justify-content: space-between;
    gap: 14px;
}

.order-main-info {
    gap: 14px;
    flex-wrap: wrap;
}

.order-number-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(201,168,108,0.12);
    color: var(--primary-color);
    font-weight: 900;
}

.order-meta {
    gap: 12px;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 13px;
}

.order-status-badge.status-processing,
.order-status-badge.status-pending,
.order-status-badge.status-on-hold,
.order-status-badge.status-completed,
.order-status-badge.status-cancelled,
.order-status-badge.status-refunded,
.order-status-badge.status-failed {
    padding: 7px 12px;
    border-radius: 999px;
}

.order-items-preview {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    background: #fafafa;
}

.items-row {
    display: flex;
    gap: 8px;
}

.item-thumb-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
}

.item-thumb-wrapper img,
.no-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.more-items {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.58);
    color: #fff;
    font-weight: 900;
}

.items-summary {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.6;
}

.more-text {
    color: var(--secondary-color);
    font-weight: 800;
}

.order-card-total {
    padding-top: 2px;
}

.total-label {
    color: #6b7280;
    font-size: 13px;
}

.total-value {
    color: var(--success-color);
    font-size: 18px;
    font-weight: 900;
}

.order-tracking-info {
    padding: 12px;
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: 12px;
    background: rgba(37, 211, 102, 0.06);
    flex-wrap: wrap;
}

.tracking-badge,
.track-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #137c3b;
    font-size: 13px;
}

.track-link {
    font-weight: 800;
}

.order-progress {
    display: grid;
    gap: 12px;
}

.progress-bar-wrapper {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf0f2;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--secondary-color);
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.progress-step {
    display: grid;
    justify-items: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 11px;
    text-align: center;
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f3f4f6;
}

.progress-step.completed,
.progress-step.current {
    color: var(--secondary-color);
    font-weight: 800;
}

.progress-step.completed .step-icon,
.progress-step.current .step-icon {
    background: rgba(201,168,108,0.14);
}

.order-card-actions {
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 2px;
}

.action-btn,
.start-shopping-btn,
.reset-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 13px;
    border-radius: 9px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 900;
}

.action-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.primary-btn {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.primary-btn:hover {
    background: #1f2433;
    color: #fff;
}

.danger-btn {
    border-color: rgba(220, 53, 69, 0.28);
    color: #b42335;
}

.success-btn {
    border-color: rgba(34, 164, 71, 0.28);
    color: #16803a;
}

.orders-pagination {
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    flex-wrap: wrap;
}

.pagination-info,
.current-page {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.pagination-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.no-orders-panel {
    padding: 34px 20px;
    border: 1px dashed var(--border-color);
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.no-orders-content {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.no-orders-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(201,168,108,0.12);
    color: var(--secondary-color);
    font-size: 22px;
}

.no-orders-content h3 {
    margin: 0;
    color: var(--primary-color);
}

.no-orders-content p {
    margin: 0;
    color: #6b7280;
}

.no-orders-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 900px) {
    .orders-header {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .orders-header,
    .order-card {
        padding: 14px;
    }

    .orders-header-stats,
    .progress-steps {
        grid-template-columns: 1fr;
    }

    .filters-row,
    .filter-btn,
    .order-card-actions,
    .action-btn,
    .order-card-header,
    .order-card-total {
        width: 100%;
    }

    .order-card-header,
    .order-card-total,
    .order-tracking-info {
        align-items: flex-start;
        flex-direction: column;
    }
}
