/* === VARIABLES & RESET (SCALED DOWN 20%) === */
:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --secondary: #2ecc71;
    --danger: #e74c3c;
    --warning: #f39c12;
    --dark: #2c3e50;
    --gray: #7f8c8d;
    --light-gray: #95a5a6;
    --lighter-gray: #bdc3c7;
    --background: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 3px 16px rgba(44, 62, 80, 0.03);
    --shadow-md: 0 6px 24px rgba(44, 62, 80, 0.08);
    --shadow-lg: 0 16px 48px rgba(44, 62, 80, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 10px;      /* was 12px */
    --border-radius-md: 16px;      /* was 20px */
    --border-radius-lg: 19px;      /* was 24px */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* === ANIMATED BACKGROUND (Optimized for mobile) === */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.06) 0%, transparent 70%);
    animation: float 20s infinite linear;
}

.circle-1 {
    width: min(320px, 80vw);       /* was 400px */
    height: min(320px, 80vw);
    top: -80px;                     /* was -100px */
    left: -80px;                    /* was -100px */
}

.circle-2 {
    width: min(240px, 60vw);        /* was 300px */
    height: min(240px, 60vw);
    bottom: -40px;                  /* was -50px */
    right: -40px;                   /* was -50px */
    animation-delay: -5s;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.04) 0%, transparent 70%);
}

.circle-3 {
    width: min(160px, 40vw);        /* was 200px */
    height: min(160px, 40vw);
    top: 50%;
    left: 80%;
    animation-delay: -10s;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.04) 0%, transparent 70%);
}

@media (prefers-reduced-motion: reduce) {
    .bg-circle {
        animation: none;
    }
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, -3%) rotate(120deg); }
    66% { transform: translate(-2%, 2%) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* === MAIN CONTAINER === */
.account-container {
    max-width: 1120px;              /* was 1400px */
    margin: 0 auto;
    padding: clamp(16px, 4vw, 32px) clamp(12px, 3.2vw, 16px); /* scaled */
    min-height: 80vh;
    position: relative;
}

/* === WELCOME BANNER === */
.welcome-banner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: clamp(24px, 4vw, 40px) clamp(16px, 3.2vw, 40px); /* scaled */
    margin-bottom: clamp(24px, 4vw, 40px);
    border: 1px solid rgba(52, 152, 219, 0.15);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s ease;
    box-shadow: var(--shadow-md);
}

.welcome-banner::before,
.welcome-banner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.welcome-banner::before {
    top: 0;
    right: 0;
    width: min(240px, 50vw);        /* was 300px */
    height: min(240px, 50vw);
    background: radial-gradient(circle, rgba(52, 152, 219, 0.06) 0%, transparent 70%);
}

.welcome-banner::after {
    bottom: -40px;                   /* was -50px */
    left: -40px;                     /* was -50px */
    width: min(160px, 40vw);         /* was 200px */
    height: min(160px, 40vw);
    background: radial-gradient(circle, rgba(46, 204, 113, 0.06) 0%, transparent 70%);
}

.welcome-content h1 {
    font-size: clamp(22px, 5vw, 34px);   /* was 28px, 6vw, 42px */
    font-weight: 800;
    margin-bottom: 12px;                  /* was 15px */
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.welcome-content p {
    color: var(--gray);
    font-size: clamp(13px, 2.4vw, 14px); /* was 16px, 3vw, 18px */
    margin-bottom: 24px;                  /* was 30px */
    max-width: 480px;                     /* was 600px */
}

/* === USER STATS === */
.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* was 150px */
    gap: clamp(12px, 2.4vw, 16px);        /* was 15px, 3vw, 20px */
    margin-top: 24px;                      /* was 30px */
}

.stat-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-sm);
    padding: clamp(16px, 3.2vw, 20px);     /* was 20px, 4vw, 25px */
    text-align: center;
    border: 1px solid rgba(44, 62, 80, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-4px);            /* was -5px */
    border-color: rgba(52, 152, 219, 0.2);
    box-shadow: var(--shadow-md);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: clamp(22px, 4vw, 29px);      /* was 28px, 5vw, 36px */
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;                      /* was 5px */
    line-height: 1.2;
}

.stat-label {
    font-size: clamp(10px, 2vw, 11px);      /* was 12px, 2.5vw, 14px */
    color: var(--gray);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* === ACCOUNT LAYOUT === */
.account-layout {
    display: grid;
    grid-template-columns: 240px 1fr;       /* was 300px */
    gap: clamp(16px, 3.2vw, 32px);          /* was 20px, 4vw, 40px */
    animation: fadeIn 0.8s 0.2s both;
}

/* === SIDEBAR === */
.account-sidebar {
    position: sticky;
    top: 16px;                               /* was 20px */
    height: fit-content;
    max-height: calc(100vh - 32px);          /* was 40px */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(44, 62, 80, 0.1);
}

.account-sidebar::-webkit-scrollbar {
    width: 4px;
}

.account-sidebar::-webkit-scrollbar-track {
    background: rgba(44, 62, 80, 0.05);
}

.account-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.sidebar-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid rgba(44, 62, 80, 0.08);
    box-shadow: var(--shadow-sm);
}

.sidebar-item {
    padding: clamp(13px, 2.4vw, 18px);      /* was 16px, 3vw, 22px */
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;                               /* was 15px */
    color: var(--gray);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), #5dade2);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.sidebar-item:hover,
.sidebar-item.active {
    background: rgba(52, 152, 219, 0.05);
    color: var(--dark);
    padding-left: 16px;                      /* was 20px */
}

.sidebar-item:hover::before,
.sidebar-item.active::before {
    transform: scaleY(1);
}

.sidebar-item i {
    font-size: clamp(14px, 2vw, 16px);      /* was 18px, 2.5vw, 20px */
    width: 20px;                             /* was 24px */
    text-align: center;
    transition: var(--transition);
}

.sidebar-item:hover i,
.sidebar-item.active i {
    transform: scale(1.1);
    color: var(--primary);
}

.sidebar-item .wishlist-count {
    position: absolute;
    right: 12px;                             /* was 15px */
    background: linear-gradient(135deg, var(--danger), #ec7063);
    color: var(--white);
    border-radius: 50%;
    width: 18px;                             /* was 22px */
    height: 18px;                            /* was 22px */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;                          /* was 11px */
    font-weight: 700;
}

/* === ACCOUNT CONTENT === */
.account-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: clamp(20px, 3.2vw, 40px);       /* was 25px, 4vw, 50px */
    border: 1px solid rgba(44, 62, 80, 0.08);
    animation: slideUp 0.8s 0.3s both;
    box-shadow: var(--shadow-md);
    min-width: 0; /* Prevent overflow in flex/grid */
}

.section-title {
    font-size: clamp(18px, 3.2vw, 22px);      /* was 22px, 4vw, 28px */
    font-weight: 700;
    margin-bottom: 24px;                       /* was 30px */
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;                                 /* was 15px */
    position: relative;
    padding-bottom: 10px;                      /* was 12px */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;                               /* was 50px */
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 3px;
}

.section-title i {
    color: var(--primary);
    background: rgba(52, 152, 219, 0.1);
    padding: clamp(6px, 1.6vw, 10px);          /* was 8px, 2vw, 12px */
    border-radius: 8px;                         /* was 10px */
    font-size: clamp(13px, 2.4vw, 16px);       /* was 16px, 3vw, 20px */
}

/* === WISHLIST STYLES === */
.wishlist-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;                                  /* was 20px */
    margin-bottom: 20px;                        /* was 25px */
    padding: 16px;                              /* was 20px */
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(44, 62, 80, 0.08);
}

.summary-item {
    flex: 1 1 160px;                            /* was 200px */
    display: flex;
    flex-direction: column;
    gap: 4px;                                    /* was 5px */
}

.summary-label {
    font-size: 10px;                             /* was 13px */
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: clamp(16px, 3.2vw, 22px);        /* was 20px, 4vw, 28px */
    font-weight: 700;
    color: var(--primary);
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); /* was 280px */
    gap: 16px;                                                    /* was 20px */
    margin-top: 16px;                                              /* was 20px */
}

.wishlist-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid rgba(44, 62, 80, 0.08);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.wishlist-item:hover {
    transform: translateY(-4px);                /* was -5px */
    border-color: rgba(52, 152, 219, 0.2);
    box-shadow: var(--shadow-md);
}

.remove-wishlist-btn {
    position: absolute;
    top: 10px;                                   /* was 12px */
    right: 10px;                                 /* was 12px */
    background: rgba(231, 76, 60, 0.95);
    border: none;
    color: var(--white);
    width: 30px;                                 /* was 36px */
    height: 30px;                                /* was 36px */
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.remove-wishlist-btn:hover {
    background: var(--danger);
    transform: scale(1.1);
}

.wishlist-item-image {
    width: 100%;
    height: 144px;                               /* was 180px */
    object-fit: cover;
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
}

.wishlist-item-content {
    padding: 16px;                               /* was 20px */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wishlist-item-title {
    font-size: 14px;                             /* was 18px */
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;                          /* was 8px */
    line-height: 1.4;
}

.wishlist-item-brand {
    font-size: 10px;                             /* was 13px */
    color: var(--gray);
    margin-bottom: 10px;                         /* was 12px */
    display: flex;
    align-items: center;
    gap: 4px;                                     /* was 5px */
}

.wishlist-item-price {
    font-size: 18px;                             /* was 22px */
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;                          /* was 15px */
}

.wishlist-item-description {
    color: var(--gray);
    font-size: 10px;                              /* was 13px */
    line-height: 1.5;
    margin-bottom: 16px;                          /* was 20px */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.wishlist-item-actions {
    display: flex;
    gap: 8px;                                     /* was 10px */
    margin-top: auto;
}

.wishlist-item-actions button,
.wishlist-item-actions a {
    flex: 1;
    padding: 10px;                                /* was 12px */
    border-radius: 6px;                           /* was 8px */
    font-size: 10px;                              /* was 13px */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;                                      /* was 6px */
    border: none;
}

.view-product-btn {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.view-product-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.add-to-cart-btn {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.2); /* scaled */
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 13px rgba(52, 152, 219, 0.3); /* scaled */
}

/* === EMPTY STATE === */
.empty-wishlist {
    text-align: center;
    padding: clamp(32px, 6.4vw, 64px) 16px;        /* was 40px, 8vw, 80px 20px */
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-sm);
    border: 2px dashed rgba(44, 62, 80, 0.1);
}

.empty-wishlist-icon {
    font-size: clamp(48px, 9.6vw, 64px);            /* was 60px, 12vw, 80px */
    margin-bottom: 16px;                            /* was 20px */
    color: rgba(127, 140, 141, 0.2);
}

.empty-wishlist h3 {
    font-size: clamp(18px, 4vw, 22px);              /* was 22px, 5vw, 28px */
    margin-bottom: 10px;                            /* was 12px */
    color: var(--dark);
}

.empty-wishlist p {
    color: var(--gray);
    font-size: clamp(13px, 2.8vw, 14px);            /* was 16px, 3.5vw, 18px */
    max-width: 360px;                               /* was 450px */
    margin: 0 auto 20px;                            /* was 25px */
    line-height: 1.6;
}

.browse-products-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;                                        /* was 10px */
    padding: 11px 22px;                              /* was 14px 28px */
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;                             /* was 12px */
    font-weight: 600;
    font-size: 12px;                                 /* was 15px */
    transition: var(--transition);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.2);  /* scaled */
    border: none;
    cursor: pointer;
}

.browse-products-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3); /* scaled */
}

/* === FORMS === */
.auth-form-container {
    max-width: min(400px, 100%);                     /* was 500px */
    margin: 0 auto;
    padding: clamp(24px, 4.8vw, 40px) clamp(16px, 4vw, 40px); /* scaled */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(44, 62, 80, 0.08);
    animation: slideUp 0.8s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: 8px;                                   /* was 10px */
}

.auth-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--warning), var(--danger));
}

.form-group {
    margin-bottom: 20px;                               /* was 25px */
}

.form-label {
    display: block;
    margin-bottom: 6px;                                /* was 8px */
    color: var(--dark);
    font-weight: 500;
    font-size: 11px;                                   /* was 14px */
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 11px 13px;                                /* was 14px 16px */
    background: var(--white);
    border: 2px solid rgba(44, 62, 80, 0.1);
    border-radius: 8px;                                /* was 10px */
    color: var(--dark);
    font-size: 12px;                                   /* was 15px */
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control::placeholder {
    color: rgba(127, 140, 141, 0.4);
}

/* === BUTTONS === */
.btn {
    padding: 11px 22px;                               /* was 14px 28px */
    border-radius: 8px;                               /* was 10px */
    border: none;
    font-size: 12px;                                  /* was 15px */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;                                          /* was 8px */
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    background: var(--background);
    color: var(--dark);
    border: 1px solid rgba(44, 62, 80, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 240px;                                     /* was 300px */
    height: 240px;                                    /* was 300px */
}

.btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.15);  /* scaled */
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.2);   /* scaled */
}

.btn-primary:hover {
    transform: translateY(-2px);                       /* was -3px */
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);   /* scaled */
}

.btn-secondary {
    background: var(--gray);
    color: var(--white);
    border: none;
    box-shadow: 0 6px 16px rgba(127, 140, 141, 0.15); /* scaled */
}

.btn-secondary:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(127, 140, 141, 0.2);   /* scaled */
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
    border: none;
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.15);    /* scaled */
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(231, 76, 60, 0.2);      /* scaled */
}

.btn-success {
    background: var(--secondary);
    color: var(--white);
    border: none;
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.15);    /* scaled */
}

.btn-success:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(46, 204, 113, 0.2);      /* scaled */
}

.btn-sm {
    padding: 8px 16px;                                    /* was 10px 20px */
    font-size: 10px;                                      /* was 13px */
}

.btn-lg {
    padding: 13px 26px;                                   /* was 16px 32px */
    font-size: 13px;                                      /* was 16px */
}

.btn-block {
    width: 100%;
}

/* === ALERTS & MESSAGES === */
.alert {
    padding: 13px 16px;                                   /* was 16px 20px */
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;                                  /* was 25px */
    display: flex;
    align-items: center;
    gap: 10px;                                            /* was 12px */
    animation: slideIn 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid transparent;
    font-size: 11px;                                      /* was 14px */
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

.alert i {
    font-size: 14px;                                      /* was 18px */
}

/* === WELCOME MESSAGE === */
.welcome-message {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(46, 204, 113, 0.05));
    border: 1px solid rgba(52, 152, 219, 0.15);
    border-radius: var(--border-radius-sm);
    padding: 20px;                                         /* was 25px */
    margin-bottom: 24px;                                   /* was 30px */
    position: relative;
    overflow: hidden;
}

.welcome-message h3 {
    color: var(--primary);
    font-size: clamp(16px, 3.2vw, 19px);                  /* was 20px, 4vw, 24px */
    margin-bottom: 6px;                                    /* was 8px */
    display: flex;
    align-items: center;
    gap: 8px;                                              /* was 10px */
}

.welcome-message p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 12px;                                       /* was 15px */
}

.welcome-code {
    display: inline-block;
    background: rgba(243, 156, 18, 0.1);
    color: #e67e22;
    padding: 6px 13px;                                     /* was 8px 16px */
    border-radius: 6px;                                    /* was 8px */
    font-family: 'Courier New', monospace;
    font-size: 14px;                                       /* was 18px */
    font-weight: 700;
    margin-top: 10px;                                      /* was 12px */
    border: 2px dashed var(--warning);
    letter-spacing: 1px;
}

/* === AUTH TABS === */
.auth-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;                                              /* was 8px */
    margin-bottom: 24px;                                   /* was 30px */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;                                   /* was 12px */
    padding: 5px;                                           /* was 6px */
    border: 1px solid rgba(44, 62, 80, 0.08);
}

.auth-tab {
    flex: 1 1 auto;
    text-align: center;
    padding: 10px 13px;                                    /* was 12px 16px */
    background: transparent;
    border: none;
    color: var(--gray);
    font-weight: 600;
    font-size: 11px;                                       /* was 14px */
    cursor: pointer;
    border-radius: 6px;                                    /* was 8px */
    transition: var(--transition);
    white-space: nowrap;
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.2);        /* scaled */
}

/* === FORM ANIMATION CONTAINER === */
.form-animation-container {
    position: relative;
    min-height: 320px;                                     /* was 400px */
    overflow: hidden;
}

.form-content {
    position: absolute;
    width: 100%;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateX(30px);
    pointer-events: none;
}

.form-content.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    position: relative;
}

/* === FORGOT PASSWORD === */
.forgot-password-link {
    text-align: center;
    margin-top: 16px;                                      /* was 20px */
    color: var(--gray);
    font-size: 11px;                                       /* was 14px */
}

.forgot-password-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.reset-instructions {
    background: rgba(52, 152, 219, 0.05);
    border-radius: 8px;                                    /* was 10px */
    padding: 14px;                                         /* was 18px */
    margin-bottom: 20px;                                   /* was 25px */
    border-left: 4px solid var(--primary);
}

.reset-instructions p {
    margin-bottom: 6px;                                    /* was 8px */
    color: var(--dark);
    display: flex;
    align-items: flex-start;
    gap: 6px;                                              /* was 8px */
    font-size: 11px;                                       /* was 14px */
}

/* === ORDERS TABLE === */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;                                      /* was 15px */
    font-size: 11px;                                       /* was 14px */
}

.orders-table th {
    text-align: left;
    padding: 11px 10px;                                    /* was 14px 12px */
    background: rgba(248, 249, 250, 0.9);
    color: var(--dark);
    font-weight: 600;
    font-size: 10px;                                       /* was 13px */
    border-bottom: 2px solid rgba(44, 62, 80, 0.1);
}

.orders-table td {
    padding: 11px 10px;                                    /* was 14px 12px */
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
}

.orders-table tr:hover {
    background: rgba(52, 152, 219, 0.03);
}

.order-status {
    padding: 4px 8px;                                      /* was 5px 10px */
    border-radius: 16px;                                   /* was 20px */
    font-size: 9px;                                        /* was 11px */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
    white-space: nowrap;
}

.status-pending { background: rgba(243, 156, 18, 0.1); color: #e67e22; }
.status-processing { background: rgba(52, 152, 219, 0.1); color: #2980b9; }
.status-shipped { background: rgba(46, 204, 113, 0.1); color: #27ae60; }
.status-delivered { background: rgba(46, 204, 113, 0.15); color: #27ae60; }
.status-cancelled { background: rgba(231, 76, 60, 0.1); color: #c0392b; }

/* === ADDRESS CARDS === */
.address-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); /* was 280px */
    gap: 16px;                                                    /* was 20px */
    margin-top: 16px;                                             /* was 20px */
}

.address-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-sm);
    padding: 16px;                                                /* was 20px */
    border: 1px solid rgba(44, 62, 80, 0.08);
    transition: var(--transition);
    position: relative;
}

.address-card.default {
    border-color: var(--primary);
    background: rgba(52, 152, 219, 0.05);
}

.address-card:hover {
    transform: translateY(-2px);                                  /* was -3px */
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;                                          /* was 12px */
    flex-wrap: wrap;
    gap: 8px;                                                     /* was 10px */
}

.address-title {
    font-weight: 600;
    font-size: 13px;                                              /* was 16px */
    color: var(--dark);
}

.address-badge {
    padding: 3px 6px;                                             /* was 4px 8px */
    background: var(--primary);
    color: var(--white);
    border-radius: 4px;
    font-size: 9px;                                               /* was 11px */
    font-weight: 600;
    letter-spacing: 0.3px;
}

.address-details {
    color: var(--gray);
    line-height: 1.6;
    font-size: 11px;                                              /* was 14px */
}

/* === RESPONSIVE BREAKPOINTS (inner values scaled where applicable) === */
@media (max-width: 992px) {
    .account-layout {
        grid-template-columns: 1fr;
    }
    
    .account-sidebar {
        position: static;
        max-height: none;
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;                                                 /* was 5px */
        padding: 8px;                                             /* was 10px */
    }
    
    .sidebar-item {
        flex: 1 1 auto;
        min-width: 96px;                                          /* was 120px */
        border-bottom: none;
        border-radius: 6px;                                       /* was 8px */
        justify-content: center;
        padding: 10px;                                            /* was 12px */
    }
    
    .sidebar-item:hover,
    .sidebar-item.active {
        padding-left: 10px;                                       /* was 12px */
    }
    
    .sidebar-item::before {
        display: none;
    }
    
    .sidebar-item .wishlist-count {
        position: static;
        margin-left: 4px;                                         /* was 5px */
    }
    
    .wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(192px, 1fr)); /* was 240px */
    }
}

@media (max-width: 768px) {
    .user-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wishlist-summary {
        flex-direction: column;
        gap: 12px;                                                /* was 15px */
    }
    
    .summary-item {
        width: 100%;
    }
    
    .orders-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .orders-table th,
    .orders-table td {
        white-space: nowrap;
    }
    
    .auth-tabs {
        flex-direction: column;
    }
    
    .auth-tab {
        width: 100%;
    }
    
    .address-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .wishlist-grid {
        grid-template-columns: 1fr;
    }
    
    .wishlist-item-actions {
        flex-direction: column;
    }
    
    .wishlist-item-actions button,
    .wishlist-item-actions a {
        width: 100%;
    }
    
    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;                                                 /* was 10px */
    }
    
    .sidebar-menu {
        flex-direction: column;
    }
    
    .sidebar-item {
        width: 100%;
    }
    
    .btn-lg {
        width: 100%;
        padding: 11px 16px;                                       /* was 14px 20px */
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on mobile */
    }
    
    .account-content {
        padding: 16px;                                            /* was 20px */
    }
}

/* Small phones */
@media (max-width: 375px) {
    .user-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 12px;                                            /* was 15px */
    }
    
    .welcome-banner {
        padding: 16px;                                            /* was 20px */
    }
    
    .welcome-content h1 {
        font-size: 19px;                                          /* was 24px */
    }
    
    .auth-form-container {
        padding: 20px 12px;                                       /* was 25px 15px */
    }
}

/* Landscape orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .account-sidebar {
        max-height: 64vh;                                         /* was 80vh */
    }
    
    .welcome-banner {
        padding: 16px;                                            /* was 20px */
    }
    
    .user-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* === ANIMATIONS (unchanged) === */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    .bg-animation,
    .account-sidebar,
    .btn,
    .remove-wishlist-btn {
        display: none !important;
    }
    
    .account-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Touch-friendly targets */
@media (hover: none) and (pointer: coarse) {
    .sidebar-item,
    .btn,
    .wishlist-item-actions button,
    .remove-wishlist-btn {
        min-height: 36px;                                         /* was 44px */
        min-width: 36px;                                          /* was 44px */
    }
    
    .form-control {
        font-size: 16px;
    }
}


.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); /* was 280px */
    gap: 16px;                                                    /* was 20px */
    margin: 16px 0;                                               /* was 20px 0 */
}
.coupon-card {
    background: white;
    border-radius: 13px;                                          /* was 16px */
    border: 1px solid #f0f3f7;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);                     /* scaled */
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.coupon-card:hover {
    transform: translateY(-2px);                                  /* was -3px */
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);                     /* scaled */
}
.coupon-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 12px;                                                /* was 15px */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.coupon-code {
    font-weight: 700;
    font-family: monospace;
    font-size: 1rem;                                              /* was 1.2rem */
    letter-spacing: 1px;
}
.coupon-value {
    background: rgba(255,255,255,0.2);
    padding: 3px 8px;                                             /* was 4px 10px */
    border-radius: 30px;
    font-size: 0.7rem;                                            /* was 0.9rem */
    font-weight: 600;
}
.coupon-name {
    font-weight: 600;
    padding: 10px 12px 4px;                                       /* was 12px 15px 5px */
    font-size: 0.8rem;                                            /* was 1rem */
}
.coupon-description {
    padding: 0 12px 8px;                                          /* was 0 15px 10px */
    color: #7f8c8d;
    font-size: 0.7rem;                                            /* was 0.9rem */
}
.coupon-meta {
    padding: 8px 12px;                                            /* was 10px 15px */
    border-top: 1px solid #f0f3f7;
    border-bottom: 1px solid #f0f3f7;
    font-size: 0.7rem;                                            /* was 0.85rem */
    color: #5d6d7e;
    display: flex;
    justify-content: space-between;
    background: #fafbfc;
}
.coupon-footer {
    padding: 10px 12px;                                           /* was 12px 15px */
    text-align: right;
}
.copy-coupon-btn {
    padding: 5px 12px;                                            /* was 6px 15px */
    font-size: 0.7rem;                                            /* was 0.85rem */
}
