/*===========================================================================*/
/* CENTRAL CLUB - Main Stylesheet                                            */
/* Inspired by adidas Club / Premium Sport Loyalty UX                        */
/*===========================================================================*/

/* FONTS */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

/* CSS VARIABLES */
:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #e94560;
    --accent-glow: #ff6b81;
    --gold: #f0c040;
    --gold-light: #ffe066;
    --surface: #ffffff;
    --surface-alt: #f7f8fc;
    --surface-dark: #0f0f23;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --text-inverse: #ffffff;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --men-color: #2563eb;
    --men-bg: rgba(37, 99, 235, 0.08);
    --women-color: #ec4899;
    --women-bg: rgba(236, 72, 153, 0.08);
    --kids-color: #06b6d4;
    --kids-bg: rgba(6, 182, 212, 0.08);
    --infant-color: #d4a636;
    --infant-bg: rgba(212, 166, 54, 0.08);
    --acc-color: #78716c;
    --acc-bg: rgba(120, 113, 108, 0.08);
    --footwear-color: #8b5cf6;
    --footwear-bg: rgba(139, 92, 246, 0.08);
    --apparel-color: #10b981;
    --apparel-bg: rgba(16, 185, 129, 0.08);
    --accessories-color: #f59e0b;
    --accessories-bg: rgba(245, 158, 11, 0.08);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }

body {
    font-family: var(--font);
    background: var(--surface-alt);
    color: var(--text);
    line-height: 1.6;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-y: none;
}

/* RTL Support */
[dir="rtl"] body { direction: rtl; }
[dir="rtl"] .text-left { text-align: right; }
[dir="rtl"] .text-right { text-align: left; }
[dir="rtl"] .ml-auto { margin-right: auto; margin-left: unset; }
[dir="rtl"] .mr-auto { margin-left: auto; margin-right: unset; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ================================ */
/* UTILITIES                        */
/* ================================ */
.container { width: 100%; max-width: 480px; margin: 0 auto; padding: 0 16px; }
.container-wide { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-muted { color: var(--text-light); }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================================ */
/* APP SHELL (Mobile-first)         */
/* ================================ */
.app-wrapper {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100dvh;
    background: var(--surface);
    position: relative;
    box-shadow: 0 0 60px rgba(0,0,0,0.06);
}

/* ================================ */
/* SPLASH / AUTH SCREENS            */
/* ================================ */
.auth-screen {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.auth-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.12;
    pointer-events: none;
}

.auth-screen::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    opacity: 0.08;
    pointer-events: none;
}

.auth-header {
    padding: 48px 32px 32px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.auth-logo {
    width: 100px;
    height: auto;
    margin: 0 auto 16px;
    filter: brightness(0) invert(1);
}

.auth-brand {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-inverse);
    letter-spacing: -0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.auth-brand span {
    display: block;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--gold);
    text-transform: uppercase;
    margin-top: 4px;
}

.auth-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
}

.auth-form-wrapper {
    flex: 1;
    background: var(--surface);
    border-radius: 28px 28px 0 0;
    padding: 36px 28px 40px;
    position: relative;
    z-index: 2;
    animation: slideUp 0.5s ease;
}

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

.auth-form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
}

/* Form Elements */
.form-group {
    margin-bottom: 18px;
}

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

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text);
    background: var(--surface);
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1);
}

.form-input::placeholder {
    color: #c0c4cc;
}

[dir="rtl"] .form-input {
    text-align: right;
}

.form-input.phone-input {
    letter-spacing: 2px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-input.phone-input.valid {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text);
    background: var(--surface);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: var(--transition);
    cursor: pointer;
}

[dir="rtl"] .form-select {
    background-position: left 12px center;
}

.form-select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1);
}

/* OTP Input - Single input with visual boxes */
.otp-wrapper {
    position: relative;
    margin: 24px 0;
    direction: ltr;
}

.otp-real-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    font-size: 24px;
    z-index: 2;
    caret-color: transparent;
    letter-spacing: 20px;
}

.otp-display {
    display: flex;
    gap: 10px;
    justify-content: center;
    pointer-events: none;
}

.otp-box {
    width: 48px;
    height: calc(56px + env(safe-area-inset-top, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    transition: var(--transition);
}

.otp-box.active {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1);
}

.otp-box.filled {
    border-color: var(--accent);
    background: var(--surface);
}

.otp-box.error {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.otp-wrapper.shake {
    animation: otpShake 0.5s ease;
}

@keyframes otpShake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-12px); }
    30% { transform: translateX(10px); }
    45% { transform: translateX(-8px); }
    60% { transform: translateX(6px); }
    75% { transform: translateX(-3px); }
}

.otp-error-msg {
    text-align: center;
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
    margin-top: -16px;
    margin-bottom: 16px;
    display: none;
}

.otp-error-msg.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.spinner-inline {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinInline 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes spinInline {
    to { transform: rotate(360deg); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    width: 100%;
    background: var(--accent);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background: #d63351;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.3);
}

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

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

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

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #e0aa20);
    color: var(--primary);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}
.btn-danger:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.delete-account-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    border-radius: var(--radius);
    color: #ef4444;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    padding: 12px;
    transition: 0.2s ease;
}
.delete-account-btn:hover {
    background: rgba(239,68,68,0.06);
}

.btn-dark {
    background: var(--primary);
    color: var(--text-inverse);
}

.btn-sm {
    padding: 10px 18px;
    font-size: 13px;
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.auth-link a {
    color: var(--accent);
    font-weight: 600;
}

.form-error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 4px;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin-bottom: 16px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ================================ */
/* TOP BAR / HEADER                 */
/* ================================ */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: calc(56px + env(safe-area-inset-top, 0px));
    background: var(--primary);
    color: var(--text-inverse);
    position: sticky;
    top: 0;
    z-index: 100;
}

a.top-bar-logo, .top-bar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.top-bar-logo img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

.top-bar-logo .brand-text {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.2px;
    text-transform: uppercase;
    line-height: 1.2;
}

.top-bar-logo .brand-text small {
    display: block;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--gold);
    margin-top: 2px;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-toggle {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255,255,255,0.12);
    color: var(--text-inverse);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.lang-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.menu-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-inverse);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.menu-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* ================================ */
/* SIDE MENU / NAVIGATION           */
/* ================================ */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: var(--surface);
    z-index: 300;
    transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

[dir="rtl"] .side-menu {
    left: auto;
    right: -320px;
}

.side-menu.active {
    left: 0;
}

[dir="rtl"] .side-menu.active {
    left: auto;
    right: 0;
}

.menu-header {
    padding: 22px 24px 15px;
    background: var(--primary);
    color: var(--text-inverse);
}

.menu-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-inverse);
    font-size: 16px;
    cursor: pointer;
}

[dir="rtl"] .menu-close {
    right: auto;
    left: 16px;
}

.menu-user-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.menu-user-points {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(240, 192, 64, 0.2);
    border-radius: 20px;
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
}

.menu-nav {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
}

.menu-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9.5px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

[dir="rtl"] .menu-nav a {
    border-left: none;
    border-right: 3px solid transparent;
}

.menu-nav a:hover,
.menu-nav a.active {
    background: var(--surface-alt);
    color: var(--accent);
    border-left-color: var(--accent);
}

[dir="rtl"] .menu-nav a:hover,
[dir="rtl"] .menu-nav a.active {
    border-left-color: transparent;
    border-right-color: var(--accent);
}

.menu-nav a i {
    width: 22px;
    text-align: center;
    font-size: 18px;
    opacity: 0.7;
}

.menu-nav .divider {
    height: 1px;
    background: var(--border-light);
    margin: 6.5px 24px;
}

.menu-footer {
    padding: 12px 24px;
    border-top: 1px solid var(--border-light);
}

.menu-footer form button {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 9px 0;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--danger);
    cursor: pointer;
}

/* ================================ */
/* DASHBOARD                        */
/* ================================ */
.dashboard-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 16px 16px 20px;
    color: var(--text-inverse);
    position: relative;
    overflow: hidden;
}

.dashboard-hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.15;
    pointer-events: none;
}

.welcome-text {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 2px;
}

.user-name {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 10px;
}

.points-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    position: relative;
    z-index: 2;
}

.points-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.points-card-tier {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.points-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.points-label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.points-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold), #e0aa20);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
}

/* Tier Progress (inside points-card) */
.hero-tier-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 7px;
}
.points-card-tier .tier-bar-bg {
    height: 5px;
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}
.points-card-tier .tier-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}
.points-card-tier .tier-bar-fill.regular { background: linear-gradient(90deg, #a0aec0, #cbd5e0); width: 30%; }
.points-card-tier .tier-bar-fill.super { background: linear-gradient(90deg, #f0c040, #ffe066); width: 65%; }
.points-card-tier .tier-bar-fill.elite { background: linear-gradient(90deg, #e94560, #ff6b81); width: 95%; }
.points-card-tier .tier-levels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.points-card-tier .tier-levels span {
    color: rgba(255,255,255,0.3);
    transition: 0.2s ease;
}
.points-card-tier .tier-levels span.current {
    color: #fff;
    font-weight: 700;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 8px;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.section-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
}

/* Dashboard section separators */
.dash-section {
    border-bottom: 1px solid var(--border-light);
}
.dash-section:last-of-type {
    border-bottom: none;
}

/* ================================ */
/* INVOICE DETAIL PAGE              */
/* ================================ */
.inv-detail {
    padding: 0 20px 30px;
}
.inv-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
}
.inv-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.inv-status.paid {
    background: rgba(16,185,129,0.1);
    color: var(--success);
}
.inv-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--primary);
    color: var(--text-inverse);
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}
.inv-share-btn:hover {
    background: var(--accent);
    transform: translateY(-1px);
}
.inv-header-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-xl);
    padding: 24px;
    color: var(--text-inverse);
    margin: 16px 0;
    position: relative;
    overflow: hidden;
}
.inv-header-card::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.1;
}
.inv-number {
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 4px;
}
.inv-amount {
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 14px;
}
.inv-amount small {
    font-size: 18px;
    font-weight: 600;
    opacity: 0.7;
}
.inv-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.inv-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    opacity: 0.8;
}
.inv-meta-item i {
    font-size: 14px;
    opacity: 0.6;
}
.inv-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin: 20px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.inv-items {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}
.inv-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    gap: 12px;
}
.inv-item:last-child {
    border-bottom: none;
}
.inv-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent);
    flex-shrink: 0;
}
.inv-item-info {
    flex: 1;
    min-width: 0;
}
.inv-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}
.inv-item-upc {
    font-size: 11px;
    color: var(--text-light);
}
.inv-item-right {
    text-align: right;
    flex-shrink: 0;
}
[dir="rtl"] .inv-item-right {
    text-align: left;
}
.inv-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.inv-item-qty {
    font-size: 11px;
    color: var(--text-light);
}
.inv-summary {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 16px;
    margin-top: 12px;
}
.inv-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text);
}
.inv-summary-row.discount {
    color: var(--success);
}
.inv-summary-row.total {
    font-size: 18px;
    font-weight: 800;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 2px solid var(--border);
}
.inv-summary-row.total .inv-sum-val {
    color: var(--accent);
}
.inv-points-earned {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: rgba(240,192,64,0.1);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    color: #b8860b;
}
.inv-points-earned i {
    font-size: 18px;
    color: var(--gold);
}

/* Share toast */
.share-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--primary);
    color: var(--text-inverse);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    z-index: 500;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}
.share-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ================================ */
/* ANNOUNCEMENTS                    */
/* ================================ */
/* Announcement Cards */
.announcements-scroll {
    display: flex;
    gap: 12px;
    padding: 0 20px 8px 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-padding-inline-start: 20px;
}

.announcements-scroll::after {
    content: '';
    flex-shrink: 0;
    width: 8px;
}

.announcements-scroll::-webkit-scrollbar { display: none; }

.announcement-card {
    flex: 0 0 85%;
    max-width: 340px;
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.announcement-img {
    width: 100%;
    height: 112px;
    object-fit: cover;
    background: var(--surface-alt);
}

.announcement-body {
    padding: 10px 14px;
}

.announcement-body h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 3px;
}

.announcement-body p {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.4;
}

/* Campaign Cards */
.campaign-list {
    padding: 0 20px 6px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.campaign-card {
    display: flex;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.campaign-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.campaign-thumb {
    width: 110px;
    min-height: 100px;
    object-fit: cover;
    background: var(--surface-alt);
    flex-shrink: 0;
}

.campaign-info {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.campaign-dates {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.campaign-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    width: fit-content;
}

.badge-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-ended {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-light);
}

.badge-upcoming {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* Invoice Card */
.invoice-card {
    margin: 0 20px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.invoice-number {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.invoice-date {
    font-size: 11px;
    color: var(--text-light);
}

.invoice-total {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
}

.invoice-total small {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
}

.invoice-store {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.invoice-items {
    margin-top: 10px;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--border-light);
}

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

.invoice-points {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(240, 192, 64, 0.12);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #b8860b;
    margin-top: 6px;
}

/* No Content State */
.empty-state {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 40px;
    opacity: 0.3;
    margin-bottom: 10px;
    display: block;
}

.empty-state p {
    font-size: 13px;
}

/* ================================ */
/* CAMPAIGN LANDING PAGE            */
/* ================================ */
.campaign-hero {
    position: relative;
    height: 37.5dvh;
    min-height: 210px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.campaign-hero-overlay {
    width: 100%;
    padding: 40px 20px 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--text-inverse);
}

.campaign-hero-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}

.campaign-hero-dates {
    font-size: 13px;
    opacity: 0.8;
}

.campaign-hero .back-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

[dir="rtl"] .campaign-hero .back-btn {
    left: auto;
    right: 16px;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    position: sticky;
    top: 108px;
    z-index: 50;
    background: var(--surface);
    border-bottom: 2px solid var(--border-light);
    height: 48px;
}

.category-tabs.division-tabs {
    top: 156px;
    z-index: 49;
    border-bottom: 1px solid var(--border-light);
}

.category-tab {
    flex: 1;
    text-align: center;
    padding: 0 4px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.division-tab {
    flex: 1;
    text-align: center;
    padding: 0 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Gender tab active states */
.category-tab.active {
    color: var(--men-color);
    border-bottom-color: var(--men-color);
}

.category-tab[data-gender="women"].active {
    color: var(--women-color);
    border-bottom-color: var(--women-color);
}

.category-tab[data-gender="kids"].active {
    color: var(--kids-color);
    border-bottom-color: var(--kids-color);
}

.category-tab[data-gender="infant"].active {
    color: var(--infant-color);
    border-bottom-color: var(--infant-color);
}

/* Division tab active states */
.division-tab.active {
    color: var(--footwear-color);
    border-bottom-color: var(--footwear-color);
}

.division-tab[data-division="ftw"].active {
    color: var(--footwear-color);
    border-bottom-color: var(--footwear-color);
}

.division-tab[data-division="app"].active {
    color: var(--apparel-color);
    border-bottom-color: var(--apparel-color);
}

.division-tab[data-division="acc"].active {
    color: var(--accessories-color);
    border-bottom-color: var(--accessories-color);
}

@media (hover: hover) {
    .category-tab:hover { color: var(--men-color); border-bottom-color: var(--men-color); }
    .category-tab[data-gender="women"]:hover { color: var(--women-color); border-bottom-color: var(--women-color); }
    .category-tab[data-gender="kids"]:hover { color: var(--kids-color); border-bottom-color: var(--kids-color); }
    .category-tab[data-gender="infant"]:hover { color: var(--infant-color); border-bottom-color: var(--infant-color); }
    .division-tab:hover { color: var(--footwear-color); border-bottom-color: var(--footwear-color); }
    .division-tab[data-division="app"]:hover { color: var(--apparel-color); border-bottom-color: var(--apparel-color); }
    .division-tab[data-division="acc"]:hover { color: var(--accessories-color); border-bottom-color: var(--accessories-color); }
}

/* Product Grid */
.products-section {
    padding: 18px 16px;
    min-height: 100vh;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 14px;
}

.product-card {
    border-radius: 15px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.25);
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
    direction: ltr;
    text-align: left;
}

.product-card:hover {
    box-shadow: 0 14px 28px -5px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}

/* Discount Badge - matches original style */
.product-discount {
    position: absolute;
    top: 15px;
    right: 0;
    padding: 5px 7px;
    background: var(--men-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    border-radius: 8px 0 0 8px;
    z-index: 2;
    min-width: 32px;
    text-align: center;
}

.product-card[data-gender="women"] .product-discount { background: var(--women-color); }
.product-card[data-gender="kids"] .product-discount { background: var(--kids-color); }
.product-card[data-gender="infant"] .product-discount { background: var(--infant-color); }

/* Wishlist Heart Button */
.wishlist-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    padding: 0;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
    transition: transform 0.2s;
}
[dir="rtl"] .wishlist-btn { left: 10px; right: auto; }
.wishlist-btn:active { transform: scale(0.8); }
.wishlist-btn.active {
    color: #ef4444;
    filter: drop-shadow(0 1px 4px rgba(239,68,68,0.5));
}
.wishlist-btn.active i { animation: heartPop 0.4s cubic-bezier(0.175,0.885,0.32,1.275); }
@keyframes heartPop {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Product Image with diagonal cut */
.product-img-wrap {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.product-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
}

/* The signature diagonal triangle cut */
.product-img-wrap::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 400px 18px 0;
    border-color: transparent transparent var(--men-color) transparent;
}

.product-card[data-gender="women"] .product-img-wrap::after { border-color: transparent transparent var(--women-color) transparent; }
.product-card[data-gender="kids"] .product-img-wrap::after { border-color: transparent transparent var(--kids-color) transparent; }
.product-card[data-gender="infant"] .product-img-wrap::after { border-color: transparent transparent var(--infant-color) transparent; }

/* Product Info - colored section */
.product-info {
    padding: 0 14px 8px 14px;
    background: var(--men-color);
    color: var(--text-inverse);
}

.product-card[data-gender="women"] .product-info { background: var(--women-color); }
.product-card[data-gender="kids"] .product-info { background: var(--kids-color); }
.product-card[data-gender="infant"] .product-info { background: var(--infant-color); }

/* Product UPC */
.product-upc {
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
}

/* Product Name - above divider, between UPC and line */
.product-name {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.75;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding-bottom: 2px;
    margin-bottom: 4px;
    margin-top: 2px;
    line-height: 1.3;
}

/* Prices row */
.product-prices {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
}

.product-price small {
    font-size: 15px;
    font-weight: 600;
    font-style: normal;
    margin-left: 2px;
}

.product-rrp {
    font-size: 16px;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #fff;
    opacity: 0.85;
}

/* Product Image Zoom Modal */
.product-image-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 24px;
}
.product-image-modal.active {
    opacity: 1;
    visibility: visible;
}
.product-image-modal img {
    max-width: 92%;
    max-height: 75vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    object-fit: contain;
    background: #fff;
    user-select: none;
    -webkit-user-drag: none;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.product-image-modal.active img {
    transform: scale(1);
}
.product-image-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.product-image-modal-close:hover {
    background: rgba(255,255,255,0.3);
}
[dir="rtl"] .product-image-modal-close {
    right: auto;
    left: 16px;
}

/* Product Gallery */
.product-gallery-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.product-gallery-dots {
    display: none;
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transition: all 0.25s ease;
}
.gallery-dot.active {
    background: #fff;
    width: 10px;
    height: 10px;
    box-shadow: 0 0 8px rgba(255,255,255,0.5);
}
.product-gallery-counter {
    display: none;
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Store Selector Bar */
.store-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 52px;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    position: sticky;
    top: 56px;
    z-index: 51;
}

.store-bar select {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    background: var(--surface);
    min-width: 180px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

[dir="rtl"] .store-bar select {
    background-position: left 10px center;
    padding-right: 14px;
    padding-left: 30px;
}

/* Store Picker Button */
.store-picker-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.store-picker-btn:active {
    background: var(--surface-alt);
}

.store-picker-btn .fa-map-marker-alt {
    color: var(--men-color);
    font-size: 13px;
}

.store-picker-btn .fa-calendar-alt {
    color: var(--accent);
    font-size: 14px;
}

.store-picker-btn .fa-venus-mars,
.store-picker-btn .fa-mars,
.store-picker-btn .fa-venus {
    color: var(--accent);
    font-size: 14px;
}

.store-picker-btn .fa-language {
    color: var(--accent);
    font-size: 14px;
}

.store-picker-btn .fa-chevron-down {
    font-size: 10px;
    color: var(--text-light);
}

/* Store Picker Modal */
.store-picker-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    padding: 20px;
}

.store-picker-overlay.active {
    opacity: 1;
    visibility: visible;
}

.store-picker-modal {
    background: var(--surface);
    border-radius: var(--radius-xl);
    width: 92%;
    max-width: 380px;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.store-picker-overlay.active .store-picker-modal {
    transform: translateY(0) scale(1);
}

.store-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-light);
}

.store-picker-header.compact {
    padding: 16px 20px 12px;
}

.store-picker-header.compact h3 {
    font-size: 16px;
}

.store-picker-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.store-picker-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--surface-alt);
    border-radius: 50%;
    font-size: 16px;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.store-picker-close:active {
    background: var(--border-light);
}

.store-picker-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Profile page city picker button - match form-input height */
.profile-form .store-picker-btn {
    padding: 14px 16px;
    border: 2px solid var(--border);
    font-size: 15px;
}

/* Auth page city picker button - match form-input height */
.auth-form-wrapper .store-picker-btn {
    padding: 14px 16px;
    border: 2px solid var(--border);
    font-size: 15px;
}
.auth-form-wrapper .store-picker-btn:focus,
.auth-form-wrapper .store-picker-btn:active {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1);
}

.support-form .store-picker-btn {
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    font-size: 14px;
    border-radius: var(--radius-sm);
}
.support-form .store-picker-btn:active {
    border-color: var(--primary);
}

/* Compact picker list for many items (cities) */
.store-picker-list.compact {
    gap: 4px;
    padding: 8px 12px 12px;
}

.store-picker-list.compact .store-picker-item {
    padding: 11px 14px;
    font-size: 14px;
    gap: 12px;
}

/* Date of Birth Modal */
.dob-modal-body {
    padding: 16px 20px 24px;
}

.dob-columns {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.dob-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dob-col-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.dob-scroll {
    height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--surface-alt);
    padding: 4px;
    scroll-snap-type: y mandatory;
}

.dob-scroll::-webkit-scrollbar {
    width: 0;
    display: none;
}

.dob-item {
    display: block;
    width: 100%;
    padding: 10px 4px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-align: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    scroll-snap-align: center;
}

.dob-item:active {
    background: var(--border-light);
}

.dob-item.selected {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
}

.dob-preview {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    padding: 8px 0 16px;
    letter-spacing: 2px;
}

.store-picker-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    border: none;
    background: var(--surface-alt);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    text-align: start;
    width: 100%;
}

.store-picker-item:active {
    background: var(--border-light);
}

.store-picker-item .fa-store {
    color: var(--text-light);
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.store-picker-item.selected {
    background: rgba(37, 99, 235, 0.08);
    color: var(--men-color);
    font-weight: 700;
}

.store-picker-item.selected .fa-store {
    color: var(--men-color);
}

.store-picker-check {
    margin-inline-start: auto;
    color: var(--men-color);
    font-size: 14px;
}

/* Campaign Footer Bar */
.campaign-footer-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--primary);
    color: var(--text-inverse);
    text-align: center;
    padding: 10px 16px;
    font-size: 12px;
    z-index: 90;
    opacity: 0;
    transition: var(--transition);
}

.campaign-footer-bar.show {
    opacity: 1;
}

.campaign-footer-bar .highlight {
    color: var(--gold);
    font-weight: 600;
}

/* ================================ */
/* POINTS PAGE                      */
/* ================================ */
.points-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 32px 20px;
    text-align: center;
    color: var(--text-inverse);
}

.points-big {
    font-size: 56px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
}

.points-hero p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.history-list {
    padding: 16px 20px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.history-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.history-info p {
    font-size: 12px;
    color: var(--text-light);
}

.history-points {
    font-size: 16px;
    font-weight: 800;
}

.history-points.earned { color: var(--success); }
.history-points.redeemed { color: var(--danger); }
.history-points.bonus { color: var(--gold); }
.history-points.expired { color: var(--text-light); }

/* ================================ */
/* PURCHASES PAGE                   */
/* ================================ */
.purchase-list {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.purchase-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    display: block;
}

.purchase-card:hover {
    box-shadow: var(--shadow-md);
}

.purchase-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.purchase-inv {
    font-size: 14px;
    font-weight: 700;
}

.purchase-date {
    font-size: 12px;
    color: var(--text-light);
}

.purchase-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.purchase-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
}

.purchase-total small {
    font-size: 13px;
    color: var(--text-light);
}

.purchase-store {
    font-size: 12px;
    color: var(--text-light);
}

/* ================================ */
/* STORES PAGE                      */
/* ================================ */
.stores-list {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.store-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.store-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--surface-alt);
}

.store-body {
    padding: 16px;
}

.store-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.store-city {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.store-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 8px;
}

.store-detail i {
    width: 20px;
    color: var(--accent);
    text-align: center;
}

.store-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.store-actions a {
    flex: 1;
    text-align: center;
}

/* ================================ */
/* ABOUT PAGE                       */
/* ================================ */
.about-hero {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-inverse);
    text-align: center;
    padding: 20px;
}

.about-hero img {
    height: 60px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.about-hero h1 {
    font-size: 24px;
    font-weight: 800;
}

.about-content {
    padding: 24px 20px;
}

.about-content p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ================================ */
/* PAGE HEADER (inner pages)        */
/* ================================ */
.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.page-header .back-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.page-header .back-btn:hover {
    background: var(--border-light);
}

.page-header h1 {
    font-size: 18px;
    font-weight: 700;
}

/* ================================ */
/* PAGINATION                       */
/* ================================ */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px;
    gap: 6px;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.pagination-wrapper a {
    background: var(--surface-alt);
    color: var(--text);
    border: 1px solid var(--border);
}

.pagination-wrapper a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.pagination-wrapper span.current {
    background: var(--accent);
    color: #fff;
}

/* ================================ */
/* LOADING SPINNER                  */
/* ================================ */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: var(--surface);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.spinner-overlay.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ================================ */
/* RESPONSIVE - Tablet              */
/* ================================ */
@media screen and (min-width: 768px) {
    .app-wrapper {
        max-width: 768px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        overflow: hidden;
}

    .announcement-card {
        flex: 0 0 55%;
    }
}

/* ================================ */
/* RESPONSIVE - Desktop             */
/* ================================ */
@media screen and (min-width: 1024px) {
    .app-wrapper {
        max-width: 480px;
    }
}

/* ================================ */
/* SAFE AREA (iPhone notch/bottom)  */
/* ================================ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .campaign-footer-bar {
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
    .side-menu {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

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

.animate-in {
    animation: fadeIn 0.4s ease forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ================================ */
/* PROFILE PAGE                     */
/* ================================ */
.tier-card {
    margin: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    color: var(--text-inverse);
    position: relative;
    overflow: hidden;
}
.tier-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    opacity: 0.12;
}
.tier-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}
.tier-name {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
}
.tier-name.regular { color: #a0aec0; }
.tier-name.super { color: var(--gold); }
.tier-name.elite { color: #e94560; }

.tier-progress {
    position: relative;
    z-index: 2;
}
.tier-bar-bg {
    height: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}
.tier-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}
.tier-bar-fill.regular { background: linear-gradient(90deg, #a0aec0, #cbd5e0); width: 30%; }
.tier-bar-fill.super { background: linear-gradient(90deg, #f0c040, #ffe066); width: 65%; }
.tier-bar-fill.elite { background: linear-gradient(90deg, #e94560, #ff6b81); width: 95%; }

.tier-levels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tier-levels span {
    color: rgba(255,255,255,0.35);
    transition: var(--transition);
}
.tier-levels span.current {
    color: #fff;
    font-weight: 700;
}

.tier-qr {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
    overflow: hidden;
}
[dir="rtl"] .tier-qr {
    right: auto;
    left: 16px;
}
.tier-qr:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.tier-qr canvas, .tier-qr svg, .tier-qr img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Profile Form */
.profile-form {
    padding: 0 20px 30px;
}
.profile-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-input[readonly], .form-input:disabled {
    background: var(--surface-alt);
    color: var(--text-light);
    cursor: not-allowed;
    border-color: var(--border-light);
}
.phone-verified {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--success);
    margin-top: 4px;
}
.phone-verified i {
    font-size: 12px;
}

/* Brands Multi-Select */
.brands-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 24px;
    border: 2px solid var(--border);
    background: var(--surface);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}
.brand-chip:hover {
    border-color: var(--accent);
}
.brand-chip.selected {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.brand-chip input {
    display: none;
}

/* ================================ */
/* Menu Profile QR badge */
.menu-nav a .menu-qr-icon {
    margin-left: auto;
    width: 42px;
    height: 42px;
    background: #ffffff;
    border-radius: 8px;
    padding: 5px;
    flex-shrink: 0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.12);
    border: 1.5px solid rgba(233,69,96,0.35);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-nav a .menu-qr-icon:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 10px rgba(233,69,96,0.25);
    border-color: var(--accent);
}
[dir="rtl"] .menu-nav a .menu-qr-icon {
    margin-left: 0;
    margin-right: auto;
}
.menu-nav a .menu-qr-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 4px;
}

/* Points card as link */
a.points-card {
    cursor: pointer;
}
a.points-card:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-1px);
}

/* Language Preference Selector */
.lang-select-row {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}
.lang-option {
    flex: 1;
    cursor: pointer;
}
.lang-option input {
    display: none;
}
.lang-option-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: var(--transition);
    text-align: center;
    gap: 2px;
}
.lang-option-box strong {
    font-size: 18px;
    font-weight: 800;
}
.lang-option-box small {
    font-size: 10px;
    color: var(--text-light);
}
.lang-option-box i {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 2px;
}
.lang-option input:checked + .lang-option-box {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.06);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}
.lang-option input:checked + .lang-option-box strong {
    color: var(--accent);
}
.lang-option input:checked + .lang-option-box i {
    color: var(--accent);
}
.lang-option:hover .lang-option-box {
    border-color: var(--accent);
}

/* QR CODE FULLSCREEN               */
/* ================================ */
.qr-fullscreen {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}
.qr-fullscreen.active {
    display: flex;
}
.qr-fullscreen-inner {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    animation: scaleIn 0.3s ease;
}
@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.qr-fullscreen-inner canvas, .qr-fullscreen-inner svg {
    width: 220px;
    height: 220px;
}
.qr-fullscreen-name {
    font-size: 18px;
    font-weight: 700;
    margin-top: 14px;
    color: var(--text);
}
.qr-fullscreen-code {
    font-size: 14px;
    color: var(--text-light);
    letter-spacing: 2px;
    margin-top: 4px;
}
.qr-fullscreen-close {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}
.qr-fullscreen-close:hover {
    background: rgba(255,255,255,0.3);
}

/* Dashboard QR Button */
.dashboard-qr-btn {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 10px;
    padding: 5px;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}
.dashboard-qr-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.user-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* ================================ */
/* COUPONS PAGE                     */
/* ================================ */
.coupons-list {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.coupon-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    box-shadow: var(--shadow-md);
    position: relative;
    min-height: 110px;
}
.coupon-card.expired {
    opacity: 0.55;
    filter: grayscale(1);
}
.coupon-left {
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    font-weight: 800;
    flex-shrink: 0;
    position: relative;
}
.coupon-left.green { background: linear-gradient(135deg, #10b981, #059669); }
.coupon-left.blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.coupon-left.gold { background: linear-gradient(135deg, #f0c040, #d97706); }
.coupon-left.red { background: linear-gradient(135deg, #e94560, #dc2626); }
.coupon-left.gray { background: linear-gradient(135deg, #9ca3af, #6b7280); }

.coupon-amount {
    font-size: 28px;
    line-height: 1;
}
.coupon-currency {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
}
.coupon-left::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--surface);
    border-radius: 50%;
}
[dir="rtl"] .coupon-left::after {
    right: auto;
    left: -8px;
}
.coupon-right {
    flex: 1;
    padding: 14px 16px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.coupon-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.coupon-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}
.coupon-code {
    padding: 4px 12px;
    background: var(--surface-alt);
    border: 1px dashed var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text);
    font-family: var(--font);
}
.coupon-copy {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-light);
    transition: var(--transition);
}
.coupon-copy:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.coupon-expiry {
    font-size: 11px;
    color: var(--text-light);
}
.coupon-expiry.expired-text {
    color: var(--danger);
    font-weight: 600;
}
.coupon-badge-status {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 10px;
}
[dir="rtl"] .coupon-badge-status {
    right: auto;
    left: 10px;
}
.coupon-badge-status.active-badge {
    background: rgba(16,185,129,0.1);
    color: var(--success);
}
.coupon-badge-status.expired-badge {
    background: rgba(107,114,128,0.1);
    color: var(--text-light);
}

/* ================================ */
/* POPUPS & MODALS                  */
/* ================================ */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 400;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.popup-overlay.active {
    display: flex;
}
.popup-box {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    animation: scaleIn 0.3s ease;
    position: relative;
}
.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface-alt);
    border: none;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
[dir="rtl"] .popup-close {
    right: auto;
    left: 12px;
}
.popup-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}
.popup-icon.warning {
    background: rgba(240,192,64,0.15);
    color: var(--gold);
}
.popup-icon.success {
    background: rgba(16,185,129,0.15);
    color: var(--success);
}
.popup-icon.error {
    background: rgba(239,68,68,0.12);
    color: var(--danger);
}
.popup-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}
.popup-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}
.popup-points-value {
    font-size: 48px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    margin: 12px 0 4px;
}

/* Points reward animation */
@keyframes confettiBurst {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.reward-burst {
    animation: confettiBurst 0.6s ease forwards;
}

/* Login error popup */
.popup-box .btn + .btn {
    margin-top: 8px;
}

/* ================================ */
/* SUPPORT & HELP                   */
/* ================================ */

/* New Ticket Button */
.support-new-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-inverse);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}
.support-new-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.support-new-btn i { font-size: 16px; }

/* Alert bars */
.alert-success-bar {
    padding: 12px 16px;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: var(--radius-sm);
    color: var(--success);
    font-size: 13px;
    font-weight: 500;
}
.alert-error-bar {
    padding: 12px 16px;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-size: 13px;
    font-weight: 500;
}

/* Ticket List */
.ticket-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }

.ticket-card {
    display: block;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}
.ticket-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.ticket-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.ticket-card-number {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}
.ticket-card-category {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}
.ticket-card-category i { margin-inline-end: 4px; opacity: 0.5; }
.ticket-card-desc {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 10px;
}
.ticket-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-light);
}
.ticket-card-date i, .ticket-card-replies i { margin-inline-end: 4px; }
.ticket-card-replies { color: var(--accent); font-weight: 600; }

/* Status Badges */
.ticket-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.status-new { background: rgba(59,130,246,0.1); color: #3b82f6; }
.status-in_progress { background: rgba(245,158,11,0.1); color: #f59e0b; }
.status-resolved { background: rgba(16,185,129,0.1); color: #10b981; }
.status-closed { background: rgba(107,114,128,0.1); color: #6b7280; }

/* Support Form */
.support-form { padding-bottom: 30px; }
.support-form-group { margin-bottom: 18px; }
.support-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.support-label i { margin-inline-end: 4px; opacity: 0.5; }
.support-label .required { color: var(--accent); }
.support-hint { display: block; font-size: 11px; color: var(--text-light); margin-bottom: 8px; }

.support-file-error {
    padding: 10px 14px;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    margin-top: 8px;
    animation: shakeError 0.4s ease;
}
.support-file-error i { margin-inline-end: 4px; }
@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.support-select, .support-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    background: var(--surface);
    color: var(--text);
    transition: var(--transition);
    -webkit-appearance: none;
}
.support-select:focus, .support-textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,26,46,0.08);
}
.support-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
[dir="rtl"] .support-textarea { text-align: right; }

/* Image Upload Area */
.image-upload-area { display: flex; gap: 8px; flex-wrap: wrap; }
.image-upload-btn {
    width: 72px;
    height: 72px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    font-size: 20px;
    transition: var(--transition);
}
.image-upload-btn:hover { border-color: var(--primary); color: var(--primary); }

.image-preview-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.image-preview-item {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    border: none;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
[dir="rtl"] .image-remove-btn { right: auto; left: 2px; }

.support-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    margin-top: 8px;
}
.support-submit-btn:hover { background: var(--accent-glow); transform: translateY(-1px); }
.support-submit-btn i { margin-inline-end: 6px; }

/* Ticket Info Card */
.ticket-info-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 12px;
}
.ticket-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.ticket-info-number {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin-inline-end: 8px;
}
.ticket-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
    padding: 4px 0;
}
.ticket-info-row i { width: 16px; text-align: center; opacity: 0.5; }

/* Ticket Description Card */
.ticket-description-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 12px;
}
.ticket-desc-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ticket-desc-text {
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    color: var(--text);
}
.ticket-images-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.ticket-image-thumb {
    display: block;
    width: 68px;
    height: 68px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}
.ticket-image-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Chat Section */
.ticket-chat-section {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 30px;
}
.ticket-chat-label {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
}
.ticket-chat-label i { margin-inline-end: 6px; opacity: 0.5; }

.ticket-chat-messages {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--surface-alt);
}

.chat-empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-light);
}
.chat-empty i { font-size: 28px; margin-bottom: 8px; display: block; opacity: 0.3; }

/* Chat Bubbles */
.chat-bubble { margin-bottom: 14px; max-width: 85%; }
.chat-bubble-customer { margin-inline-start: auto; }
.chat-bubble-admin { margin-inline-end: auto; }

.chat-bubble-sender {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.6;
}
.chat-bubble-customer .chat-bubble-sender { text-align: end; }

.chat-bubble-text {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
}
.chat-bubble-customer .chat-bubble-text {
    background: var(--primary);
    color: var(--text-inverse);
    border-bottom-inline-end-radius: 4px;
}
.chat-bubble-admin .chat-bubble-text {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-inline-start-radius: 4px;
}

.chat-bubble-images {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.chat-bubble-images a {
    display: block;
    width: 56px;
    height: calc(56px + env(safe-area-inset-top, 0px));
    border-radius: 8px;
    overflow: hidden;
}
.chat-bubble-images img { width: 100%; height: 100%; object-fit: cover; }

.chat-bubble-time {
    font-size: 10px;
    color: var(--text-light);
    margin-top: 4px;
}
.chat-bubble-customer .chat-bubble-time { text-align: end; }

/* Chat Reply Form */
.chat-reply-form { padding: 12px 16px; border-top: 1px solid var(--border-light); background: var(--surface); }
.chat-reply-input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: var(--surface-alt);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    transition: var(--transition);
}
.chat-reply-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,26,46,0.08);
}
.chat-reply-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    font-family: var(--font);
    resize: none;
    color: var(--text);
    line-height: 1.5;
}
.chat-reply-actions { display: flex; gap: 4px; align-items: center; }
.chat-attach-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}
.chat-attach-btn:hover { background: var(--border-light); color: var(--primary); }
.chat-send-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
}
.chat-send-btn:hover { background: var(--accent-glow); transform: scale(1.05); }
[dir="rtl"] .chat-send-btn i { transform: scaleX(-1); }

.chat-reply-previews { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.reply-preview-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.chat-closed-notice {
    padding: 16px;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    background: var(--surface-alt);
    border-top: 1px solid var(--border-light);
}
.chat-closed-notice i { margin-inline-end: 6px; }

/* Admin badge styles for support */
.badge-info { background: rgba(59,130,246,0.12); color: #3b82f6; }
.badge-warning { background: rgba(245,158,11,0.12); color: #f59e0b; }

/* ================================ */
/* NOTIFICATION BADGES              */
/* ================================ */

/* Menu badge (next to support link) */
.menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 20px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    margin-inline-start: auto;
}

/* Pulse animation for badge */
.pulse-badge {
    position: relative;
}
.pulse-badge::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    background: var(--accent);
    opacity: 0;
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.4); }
}

/* Side menu link flex for badge alignment */
.side-menu .menu-nav a {
    display: flex;
    align-items: center;
}

/* Ticket card - has new reply highlight */
.ticket-card-has-new {
    border-color: var(--accent) !important;
    background: linear-gradient(135deg, #fff 0%, rgba(233,69,96,0.03) 100%) !important;
    box-shadow: 0 0 0 1px rgba(233,69,96,0.15), var(--shadow-sm) !important;
    position: relative;
    overflow: visible;
}

/* New reply indicator tag */
.ticket-new-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.ticket-new-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    animation: dotBlink 1.5s ease-in-out infinite;
}
@keyframes dotBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* ================================ */
/* UPLOAD LOADING OVERLAY           */
/* ================================ */
.upload-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,26,46,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.upload-overlay.active {
    opacity: 1;
    visibility: visible;
}
.upload-overlay-content {
    text-align: center;
    color: #fff;
    animation: overlayFadeUp 0.4s ease forwards;
}
@keyframes overlayFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Spinner Ring */
.upload-spinner-ring {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    position: relative;
}
.upload-spinner-circle {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: var(--accent);
    border-right-color: var(--gold);
    border-radius: 50%;
    animation: uploadSpin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
@keyframes uploadSpin {
    to { transform: rotate(360deg); }
}

.upload-overlay-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.upload-overlay-hint {
    font-size: 13px;
    opacity: 0.6;
}

/* Button inline spinner */
.btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: uploadSpin 0.7s linear infinite;
    vertical-align: middle;
    margin-inline-end: 8px;
}
.btn-spinner-sm {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: uploadSpin 0.7s linear infinite;
}
.submit-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* ============================================= */
/* CAMPAIGN COUNTDOWN OVERLAY                    */
/* ============================================= */
.countdown-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.countdown-overlay.launched {
    animation: countdownFadeOut 0.8s ease forwards;
    pointer-events: none;
}
@keyframes countdownFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.countdown-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(12px) brightness(0.3);
    transform: scale(1.1);
}

.countdown-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 32px 24px;
    max-width: 420px;
    width: 100%;
}

.countdown-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-glow));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: #fff;
    box-shadow: 0 0 40px rgba(233, 69, 96, 0.4);
    animation: countdownIconPulse 2s ease-in-out infinite;
}
@keyframes countdownIconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(233, 69, 96, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 0 60px rgba(233, 69, 96, 0.6); }
}

.countdown-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.countdown-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    font-weight: 500;
}

/* Timer Grid */
.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
    direction: ltr;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
}

.countdown-number {
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 12px 6px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: transform 0.15s ease;
}

.countdown-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
    font-weight: 600;
}

.countdown-sep {
    font-size: 32px;
    font-weight: 800;
    color: rgba(255,255,255,0.3);
    padding-bottom: 22px;
}

/* Notify Me Button */
.countdown-notify-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}
.countdown-notify-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-1px);
}
.countdown-notify-btn.active {
    background: linear-gradient(135deg, var(--gold), #e0aa20);
    border-color: var(--gold);
    color: var(--primary);
    box-shadow: 0 4px 24px rgba(240, 192, 64, 0.35);
}
.countdown-notify-btn.active:hover {
    box-shadow: 0 6px 32px rgba(240, 192, 64, 0.5);
}
.countdown-notify-btn.pulse {
    animation: notifyPulse 0.6s ease;
}
@keyframes notifyPulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
.countdown-notify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.countdown-notify-hint {
    font-size: 13px;
    color: var(--gold-light);
    margin-top: 0;
    margin-bottom: 24px;
    animation: hintFadeIn 0.4s ease;
}
.countdown-notify-hint i {
    margin-inline-end: 4px;
}
@keyframes hintFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.countdown-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}
.countdown-back-link:hover {
    color: rgba(255,255,255,0.8);
}

/* Small screens adjustments */
@media (max-width: 380px) {
    .countdown-number {
        font-size: 32px;
        padding: 10px 4px;
    }
    .countdown-unit {
        min-width: 54px;
    }
    .countdown-timer {
        gap: 5px;
    }
    .countdown-sep {
        font-size: 26px;
    }
    .countdown-title {
        font-size: 19px;
    }
}

/* ============================================= */
/* PRODUCT IMAGE LIGHTBOX                        */
/* ============================================= */
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.product-lightbox.active {
    opacity: 1;
    visibility: visible;
}
.product-lightbox img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.92);
    transition: transform 0.3s ease;
}
.product-lightbox.active img {
    transform: scale(1);
}
.product-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.product-lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}
[dir="rtl"] .product-lightbox-close {
    right: auto;
    left: 16px;
}

/* ===================================================================
   SUPPORT HUB (Two-choice landing page)
   =================================================================== */
.support-hub {
    padding: 16px;
    display: flex; flex-direction: column; gap: 14px;
}
.support-hub-card {
    display: flex; align-items: center; gap: 16px;
    padding: 22px 20px; border-radius: 18px;
    text-decoration: none; color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
    border: 1px solid var(--border);
    position: relative; overflow: hidden;
}
.support-hub-card:active { transform: scale(0.98); }
.support-hub-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.support-hub-services {
    background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(59,130,246,0.02));
    border-color: rgba(59,130,246,0.15);
}
.support-hub-warranty {
    background: linear-gradient(135deg, rgba(245,158,11,0.06), rgba(245,158,11,0.02));
    border-color: rgba(245,158,11,0.15);
}

.support-hub-icon {
    width: 54px; height: 54px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.support-hub-services .support-hub-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff; box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}
.support-hub-warranty .support-hub-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff; box-shadow: 0 4px 15px rgba(245,158,11,0.3);
}

.support-hub-info { flex: 1; min-width: 0; }
.support-hub-info h3 {
    font-size: 15px; font-weight: 700; color: var(--text);
    margin: 0 0 4px; line-height: 1.3;
}
.support-hub-info p {
    font-size: 12px; color: var(--text-light);
    margin: 0; line-height: 1.5; opacity: 0.8;
}
.support-hub-arrow {
    flex-shrink: 0; font-size: 14px; color: var(--text-light); opacity: 0.5;
}

/* ===== Warranty Status Badges ===== */
.status-approved { background: rgba(16,185,129,0.1); color: #10b981; }
.status-rejected { background: rgba(239,68,68,0.1); color: #ef4444; }

/* ===================================================================== */
/* BOTTOM NAVIGATION BAR (Modern Clean)                                  */
/* ===================================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: #ffffff;
    border-top: 1px solid #eee;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 1000;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.bottom-nav-hidden {
    transform: translateX(-50%) translateY(110%);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
    padding: 11.5px 4px 13.5px;
    text-decoration: none;
    color: #444;
    font-size: 10.8px;
    font-weight: 600;
    letter-spacing: -0.01em;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}
.bottom-nav-item i {
    font-size: 22.5px;
    line-height: 1;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
    font-weight: 400;
    -webkit-text-stroke: 0px;
}
.bottom-nav-item span {
    display: block;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Active state - just color, clean and simple */
.bottom-nav-item.active {
    color: var(--bottom-nav-active, #e94560);
}
.bottom-nav-item.active i {
    transform: scale(1.05);
}

/* Tap feedback - subtle and quick */
.bottom-nav-item:active {
    opacity: 0.6;
    transition: opacity 0s;
}
.bottom-nav-item:active i {
    transform: scale(0.9);
    transition: transform 0.1s ease;
}

/* Body padding when bottom nav is visible */
.has-bottom-nav main {
    padding-bottom: 80px;
}
.has-bottom-nav .campaign-footer-bar {
    bottom: 80px;
}

/* RTL adjustments */
[dir="rtl"] .bottom-nav {
    direction: rtl;
}

/* ===================================================================== */
/* CART BOTTOM SHEET                                                      */
/* ===================================================================== */
.cart-sheet-overlay {
    position: fixed;
    top: 0; left: 0; right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cart-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}
.has-bottom-nav .cart-sheet-overlay {
    bottom: 65px;
    bottom: calc(65px + env(safe-area-inset-bottom, 0px));
}
.cart-sheet {
    width: 100%;
    max-width: 480px;
    background: var(--surface);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
    max-height: 60vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.cart-sheet-overlay.active .cart-sheet {
    transform: translateY(0);
}
.cart-sheet-handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: #d1d5db;
    margin: 10px auto 0;
}
.cart-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 10px;
    border-bottom: 1px solid var(--border-light);
}
.cart-sheet-header h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-sheet-header button {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-light);
    padding: 4px;
}
.cart-sheet-body {
    padding: 0 20px 30px;
}

/* ===================================================================== */
/* NEW ARRIVALS PAGE                                                     */
/* ===================================================================== */
.new-arrivals-header {
    position: relative;
    padding: 32px 20px 28px;
    overflow: hidden;
}
.new-arrivals-header-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, #16213e 60%, var(--accent) 100%);
    z-index: 0;
}
.new-arrivals-header-bg::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(233,69,96,0.3) 0%, transparent 70%);
    pointer-events: none;
}
.new-arrivals-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.new-arrivals-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
    color: var(--gold);
    backdrop-filter: blur(8px);
}
.new-arrivals-header-content h1 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.new-arrivals-header-content p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
}

/* Gender tabs in new arrivals: anchor links not buttons */
.new-arrivals-gender-tabs a.category-tab {
    text-decoration: none;
    color: inherit;
}