/* ===================================================
   DAN GOLD — Premium Design System
   Global CSS for all pages
   =================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Gold Palette */
    --gold-primary: #C5A028;
    --gold-light: #F0E6C8;
    --gold-dark: #9A7B1A;
    --gold-accent: #D4AF37;
    --gold-gradient: linear-gradient(135deg, #C5A028 0%, #E8D5A3 50%, #9A7B1A 100%);
    --gold-gradient-alt: linear-gradient(135deg, #9A7B1A 0%, #C5A028 50%, #E8D5A3 100%);
    --gold-shimmer: linear-gradient(90deg, transparent 0%, rgba(232,213,163,0.4) 50%, transparent 100%);

    /* Light Theme */
    --bg-primary: #FAFAF8;
    --bg-secondary: #F5F3EF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFDF7;
    --text-primary: #1A1A1A;
    --text-secondary: #5A5A5A;
    --text-muted: #8A8A8A;
    --border-color: #E5E2DC;
    --border-light: #F0EDE7;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-gold: 0 4px 20px rgba(197, 160, 40, 0.25);
    --shadow-gold-lg: 0 8px 30px rgba(197, 160, 40, 0.35);

    /* Glass */
    --glass-bg: rgba(255,255,255,0.75);
    --glass-border: rgba(255,255,255,0.3);
    --glass-blur: 20px;

    /* Status */
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;

    /* Misc */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50px;
    --transition: all 0.3s cubic-bezier(.4,0,.2,1);
    --transition-slow: all 0.5s cubic-bezier(.4,0,.2,1);

    /* Navbar height */
    --navbar-height: 72px;
}

/* ---------- Dark Mode ---------- */
[data-theme="dark"] {
    --bg-primary: #0D0D0D;
    --bg-secondary: #1A1A1A;
    --bg-card: #1E1E1E;
    --bg-card-hover: #252520;
    --text-primary: #F5F5F5;
    --text-secondary: #B0B0B0;
    --text-muted: #707070;
    --border-color: #2A2A28;
    --border-light: #222220;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
    --glass-bg: rgba(30,30,30,0.75);
    --glass-border: rgba(50,50,50,0.4);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.8;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.page-loading { overflow: hidden; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--gold-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* Selection */
::selection { background: rgba(197,160,40,0.3); color: var(--text-primary); }

/* Focus */
:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

/* ---------- Typography Helpers ---------- */
.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted-custom { color: var(--text-muted); }
.text-secondary-custom { color: var(--text-secondary); }

/* ---------- Background Helpers ---------- */
.gold-bg { background: var(--gold-gradient); }
.gold-border { border: 2px solid var(--gold-primary); }

/* ---------- Page Loader ---------- */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.page-loader .loader-icon {
    width: 60px; height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Navbar ---------- */
.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    min-height: var(--navbar-height);
    z-index: 1000;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-brand {
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.navbar-brand span { color: var(--gold-primary); }
.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 600;
    margin: 0 8px;
    position: relative;
    transition: var(--transition);
    font-size: 0.95rem;
}
.nav-link:hover, .nav-link.active { color: var(--gold-primary) !important; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px; right: 0;
    width: 0; height: 2px;
    background: var(--gold-gradient);
    transition: width 0.3s ease;
    border-radius: 1px;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Theme Toggle */
.theme-toggle {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--gold-primary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}
.theme-toggle:hover {
    background: rgba(197,160,40,0.1);
    border-color: var(--gold-primary);
    transform: rotate(20deg);
}

/* ---------- Buttons ---------- */
.btn-gold {
    background: var(--gold-gradient);
    color: #fff !important;
    font-weight: 700;
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-gold::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--gold-shimmer);
    transition: left 0.5s ease;
}
.btn-gold:hover::before { left: 100%; }
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-lg);
    color: #fff !important;
}
.btn-gold:active { transform: translateY(0); }

.btn-outline-gold {
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    background: transparent;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-outline-gold:hover {
    background: var(--gold-gradient);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-dark-gold {
    background: var(--text-primary);
    color: var(--gold-primary) !important;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-dark-gold:hover {
    background: var(--gold-primary);
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}
.btn-ghost:hover { color: var(--gold-primary); background: rgba(197,160,40,0.08); }

/* ---------- Section Layout ---------- */
.section-padding { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; font-weight: 900; margin-bottom: 15px; }
.section-title p { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.section-title .line {
    width: 80px; height: 4px;
    background: var(--gold-gradient);
    margin: 20px auto;
    border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
    padding-top: var(--navbar-height);
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(197,160,40,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-glow 8s ease-in-out infinite;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(197,160,40,0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-glow 10s ease-in-out infinite reverse;
}
@keyframes float-glow {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(30px,-20px) scale(1.1); }
}

.hero-content { position: relative; z-index: 2; }
.hero-content h1 {
    font-size: 3.5rem; font-weight: 900;
    line-height: 1.2; margin-bottom: 20px;
    color: var(--text-primary);
}
.hero-content p {
    font-size: 1.2rem; color: var(--text-secondary);
    margin-bottom: 30px; max-width: 600px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(197,160,40,0.1);
    border: 1px solid rgba(197,160,40,0.3);
    padding: 8px 20px; border-radius: var(--radius-full);
    font-size: 0.9rem; color: var(--gold-primary);
    margin-bottom: 20px;
    animation: badge-glow 3s ease-in-out infinite;
}
@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(197,160,40,0); }
    50% { box-shadow: 0 0 20px 5px rgba(197,160,40,0.1); }
}

.hero-stats { display: flex; gap: 40px; margin-top: 40px; }
.hero-stat h3 {
    font-size: 2rem; font-weight: 900;
    color: var(--gold-primary); margin: 0;
}
.hero-stat span { font-size: 0.9rem; color: var(--text-muted); }

/* Hero Visual */
.hero-image-wrapper { position: relative; z-index: 2; }
.hero-image-main { width: 100%; max-width: 500px; position: relative; }
.hero-image-main .coin-float {
    position: absolute;
    width: 80px; height: 80px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #fff;
    box-shadow: var(--shadow-gold);
    animation: float-coin 6s ease-in-out infinite;
}
.hero-image-main .coin-float:nth-child(3) {
    top: 10%; right: 0%;
    animation-delay: 0s;
    width: 60px; height: 60px; font-size: 1.5rem;
}
.hero-image-main .coin-float:nth-child(4) {
    top: 50%; left: -10%;
    animation-delay: 2s;
    width: 100px; height: 100px; font-size: 2.5rem;
}
.hero-image-main .coin-float:nth-child(5) {
    bottom: 10%; right: 10%;
    animation-delay: 4s;
    width: 70px; height: 70px; font-size: 1.8rem;
}
@keyframes float-coin {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}
.gold-ring {
    width: 400px; height: 400px;
    border: 3px solid var(--gold-primary);
    border-radius: 50%;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    opacity: 0.2;
    animation: pulse-ring 4s ease-in-out infinite;
}
.gold-ring:nth-child(2) {
    width: 300px; height: 300px;
    animation-delay: 1s;
}
@keyframes pulse-ring {
    0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.2; }
    50% { transform: translate(-50%,-50%) scale(1.1); opacity: 0.1; }
}

/* ---------- Price Ticker ---------- */
.price-ticker-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 30px;
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    margin-top: 30px;
    flex-wrap: wrap;
}
.ticker-item { text-align: center; flex: 1; min-width: 150px; }
.ticker-item .label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 5px; }
.ticker-item .value { font-size: 1.4rem; font-weight: 800; color: var(--gold-primary); }
.ticker-item .change { font-size: 0.85rem; color: var(--success); font-weight: 600; }
.ticker-divider { width: 1px; height: 40px; background: var(--border-color); }

/* Compact ticker strip (for shop/profile) */
.price-ticker-strip {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    overflow: hidden;
    position: sticky;
    top: var(--navbar-height);
    z-index: 999;
}
.price-ticker-strip .ticker-scroll {
    display: flex;
    gap: 40px;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}
.price-ticker-strip .ticker-scroll .t-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.85rem; font-weight: 600;
}
.price-ticker-strip .ticker-scroll .t-item .t-label { color: var(--text-muted); }
.price-ticker-strip .ticker-scroll .t-item .t-value { color: var(--gold-primary); font-weight: 800; }
.price-ticker-strip .ticker-scroll .t-item .t-change { color: var(--success); font-size: 0.8rem; }
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- Price Cards ---------- */
.price-section { background: var(--bg-secondary); }
.price-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.price-card-modern::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 100%;
    background: var(--gold-shimmer);
    transition: left 0.6s ease;
    pointer-events: none;
}
.price-card-modern:hover::after { left: 100%; }
.price-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-primary);
}
.price-card-modern .icon-wrap {
    width: 70px; height: 70px;
    background: var(--gold-gradient);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem; color: #fff;
    box-shadow: var(--shadow-gold);
}
.price-card-modern h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; }
.price-card-modern .price { font-size: 2.2rem; font-weight: 900; color: var(--gold-primary); margin: 10px 0; }
.price-card-modern .unit { color: var(--text-muted); font-size: 0.85rem; }
.price-card-modern .trend {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(40,167,69,0.1); color: var(--success);
    padding: 5px 15px; border-radius: 20px;
    font-size: 0.85rem; font-weight: 600; margin-top: 15px;
}

/* ---------- Products / Shop ---------- */
.products-section { background: var(--bg-primary); }
.product-showcase {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}
.product-showcase:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-primary);
}
.product-showcase .product-img-area {
    height: 260px;
    background: linear-gradient(135deg, rgba(248,245,238,1) 0%, rgba(240,230,200,0.5) 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
[data-theme="dark"] .product-showcase .product-img-area {
    background: linear-gradient(135deg, #1A1A18 0%, #252520 100%);
}
.product-showcase .product-img-area::before {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(197,160,40,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.product-showcase .product-img-area i {
    font-size: 5rem; color: var(--gold-primary);
    position: relative; z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(197,160,40,0.3));
    transition: var(--transition);
}
.product-showcase:hover .product-img-area i { transform: scale(1.1) rotate(5deg); }

.product-showcase .product-badge-new {
    position: absolute; top: 20px; right: 20px;
    background: var(--gold-gradient); color: #fff;
    padding: 6px 16px; border-radius: 20px;
    font-weight: 700; font-size: 0.8rem;
    box-shadow: var(--shadow-sm); z-index: 3;
}
.product-showcase .product-badge-new.out-of-stock { background: var(--danger); }

/* Wishlist heart */
.product-showcase .wishlist-btn {
    position: absolute; top: 20px; left: 20px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 3;
    transition: var(--transition);
    color: var(--text-muted);
    font-size: 1rem;
}
.product-showcase .wishlist-btn:hover,
.product-showcase .wishlist-btn.active {
    color: var(--danger);
    border-color: var(--danger);
    background: rgba(220,53,69,0.08);
}
.product-showcase .wishlist-btn.active i::before { content: "\f004"; font-weight: 900; }

.product-showcase .product-info-new { padding: 25px; }
.product-showcase .product-info-new .category {
    font-size: 0.8rem; color: var(--gold-primary);
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 8px;
}
.product-showcase .product-info-new h3 {
    font-size: 1.2rem; font-weight: 800;
    margin-bottom: 8px; color: var(--text-primary);
}
.product-showcase .product-info-new .weight-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(197,160,40,0.1); color: var(--gold-primary);
    padding: 5px 14px; border-radius: 20px;
    font-size: 0.85rem; font-weight: 700; margin-bottom: 15px;
}
.product-showcase .product-info-new .price-row {
    display: flex; align-items: baseline; gap: 10px; margin-bottom: 15px;
}
.product-showcase .product-info-new .price-main {
    font-size: 1.6rem; font-weight: 900; color: var(--text-primary);
}
.product-showcase .product-info-new .price-unit {
    font-size: 0.9rem; color: var(--text-muted);
}
.product-showcase .product-info-new .installment-box {
    background: linear-gradient(135deg, rgba(197,160,40,0.08) 0%, rgba(197,160,40,0.02) 100%);
    border: 1px solid rgba(197,160,40,0.2);
    border-radius: var(--radius-sm); padding: 12px; margin-bottom: 18px;
}
.product-showcase .product-info-new .installment-box .inst-label {
    font-size: 0.78rem; color: var(--text-muted); margin-bottom: 3px;
}
.product-showcase .product-info-new .installment-box .inst-value {
    font-size: 1rem; font-weight: 800; color: var(--gold-primary);
}
.product-showcase .product-info-new .installment-box .inst-period {
    font-size: 0.78rem; color: var(--text-muted);
}
.product-showcase .product-info-new .btn-buy {
    width: 100%;
    background: var(--gold-gradient); color: #fff;
    border: none; padding: 13px;
    border-radius: var(--radius-sm);
    font-weight: 800; font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
    cursor: pointer;
    position: relative; overflow: hidden;
}
.product-showcase .product-info-new .btn-buy::before {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--gold-shimmer);
    transition: left 0.5s ease;
}
.product-showcase .product-info-new .btn-buy:hover::before { left: 100%; }
.product-showcase .product-info-new .btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-lg);
}

/* ---------- Calculator ---------- */
.calculator-section { background: var(--bg-secondary); }
.calculator-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}
.calculator-wrapper h3 {
    text-align: center;
    font-size: 1.8rem; font-weight: 900;
    margin-bottom: 40px;
}
.form-label-custom {
    font-weight: 700; color: var(--text-primary);
    margin-bottom: 10px; font-size: 0.95rem;
    display: block;
}
.form-control-custom {
    width: 100%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}
.form-control-custom:focus {
    background: var(--bg-card);
    border-color: var(--gold-primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 4px rgba(197,160,40,0.1);
    outline: none;
}
.range-value-display { text-align: center; margin-top: 10px; }
.range-value-display .value { font-size: 1.5rem; font-weight: 900; color: var(--gold-primary); }
.range-value-display .label { font-size: 0.9rem; color: var(--text-muted); }

.result-panel {
    background: linear-gradient(135deg, rgba(197,160,40,0.05) 0%, rgba(197,160,40,0.01) 100%);
    border: 2px solid var(--gold-primary);
    border-radius: var(--radius-lg); padding: 40px; margin-top: 40px;
}
.result-panel h4 {
    text-align: center; color: var(--gold-primary);
    font-weight: 800; margin-bottom: 25px; font-size: 1.3rem;
}
.result-panel .total-price {
    text-align: center; font-size: 3rem;
    font-weight: 900; color: var(--text-primary); margin-bottom: 30px;
}
.result-grid {
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 20px; margin-bottom: 30px;
}
.result-grid-item {
    background: var(--bg-card);
    border-radius: var(--radius-md); padding: 20px;
    text-align: center; box-shadow: var(--shadow-sm);
}
.result-grid-item .label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.result-grid-item .value { font-size: 1.3rem; font-weight: 800; color: var(--gold-primary); }

/* ---------- Steps ---------- */
.how-it-works { background: var(--bg-primary); }
.step-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 30px; text-align: center;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}
.step-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-primary);
}
.step-card-modern .step-icon {
    width: 80px; height: 80px;
    background: var(--gold-gradient);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem; color: #fff;
    box-shadow: var(--shadow-gold);
}
.step-card-modern .step-num {
    position: absolute; top: -15px; left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1rem;
}
.step-card-modern h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 15px; }
.step-card-modern p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; }

/* ---------- Contracts ---------- */
.contract-section { background: var(--bg-secondary); }
.contract-card-modern {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px; text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.contract-card-modern:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.contract-card-modern .icon-circle {
    width: 90px; height: 90px;
    background: linear-gradient(135deg, rgba(197,160,40,0.1) 0%, rgba(197,160,40,0.05) 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px; font-size: 2.2rem;
    color: var(--gold-primary);
    border: 2px solid rgba(197,160,40,0.2);
}
.contract-card-modern h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 15px; }
.contract-card-modern p { color: var(--text-secondary); margin-bottom: 25px; font-size: 0.95rem; }
.contract-features-modern { list-style: none; text-align: right; }
.contract-features-modern li {
    padding: 10px 0; color: var(--text-secondary);
    display: flex; align-items: center; gap: 12px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}
.contract-features-modern li:last-child { border-bottom: none; }
.contract-features-modern li i { color: var(--gold-primary); font-size: 1.1rem; }

/* ---------- Dashboard / Profile ---------- */
.dashboard-section { background: var(--bg-primary); }
.dashboard-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.dashboard-card-modern:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.dashboard-card-modern .dash-header {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.dashboard-card-modern .dash-header h4 {
    font-size: 1rem; font-weight: 700; margin: 0; color: var(--text-secondary);
}
.dashboard-card-modern .dash-header i { color: var(--gold-primary); font-size: 1.3rem; }
.dashboard-card-modern .dash-value { font-size: 2.2rem; font-weight: 900; color: var(--text-primary); }
.dashboard-card-modern .dash-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 5px; }
.dashboard-card-modern .dash-progress {
    height: 8px; background: var(--bg-secondary);
    border-radius: 4px; overflow: hidden; margin-top: 15px;
}
.dashboard-card-modern .dash-progress-bar {
    height: 100%; background: var(--gold-gradient);
    border-radius: 4px; transition: width 1s ease;
}

/* ---------- Testimonials ---------- */
.testimonials-section { background: var(--bg-secondary); }
.testimonial-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px; transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.testimonial-card-modern:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.testimonial-card-modern .quote-icon {
    font-size: 2.5rem; color: var(--gold-primary);
    opacity: 0.3; margin-bottom: 15px;
}
.testimonial-card-modern p {
    color: var(--text-secondary); font-style: italic;
    margin-bottom: 25px; line-height: 1.8; font-size: 0.95rem;
}
.testimonial-card-modern .stars { color: var(--gold-primary); margin-bottom: 20px; }
.testimonial-author-modern { display: flex; align-items: center; gap: 15px; }
.testimonial-author-modern .avatar {
    width: 55px; height: 55px; border-radius: 50%;
    background: var(--gold-gradient);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; color: #fff; font-size: 1.3rem;
    box-shadow: var(--shadow-gold);
}
.testimonial-author-modern .info h5 { font-size: 1.05rem; font-weight: 800; margin: 0; }
.testimonial-author-modern .info span { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq-section { background: var(--bg-primary); }
.accordion-item-custom {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md) !important;
    margin-bottom: 15px; overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.accordion-button-custom {
    background: var(--bg-card); color: var(--text-primary);
    font-weight: 800; padding: 22px 25px;
    font-size: 1.05rem; border: none; width: 100%;
    text-align: right; cursor: pointer;
    display: flex; align-items: center;
    font-family: inherit;
}
.accordion-button-custom:not(.collapsed) {
    background: linear-gradient(135deg, rgba(197,160,40,0.05) 0%, transparent 100%);
    color: var(--gold-primary); box-shadow: none;
}
.accordion-button-custom:focus { box-shadow: none; }
.accordion-button-custom::after { filter: invert(0.2); }
.accordion-body-custom { color: var(--text-secondary); padding: 20px 25px; line-height: 1.8; }

/* ---------- CTA ---------- */
.cta-section {
    background: var(--gold-gradient);
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23fff" opacity="0.1"/></svg>');
    background-size: 30px 30px;
}
.cta-section .cta-content { position: relative; z-index: 2; }

/* ---------- Footer ---------- */
.footer-modern {
    background: #111111;
    padding: 80px 0 30px;
}
[data-theme="dark"] .footer-modern { background: #0A0A0A; }
.footer-modern .footer-brand {
    font-size: 2rem; font-weight: 900;
    margin-bottom: 20px; color: #fff;
}
.footer-modern .footer-brand span { color: var(--gold-primary); }
.footer-modern p { color: rgba(255,255,255,0.6); line-height: 1.8; font-size: 0.95rem; }
.footer-modern h4 { font-size: 1.1rem; font-weight: 800; margin-bottom: 25px; color: var(--gold-primary); }
.footer-modern .footer-links { list-style: none; }
.footer-modern .footer-links li { margin-bottom: 12px; }
.footer-modern .footer-links a {
    color: rgba(255,255,255,0.6); text-decoration: none;
    transition: var(--transition); font-size: 0.9rem;
}
.footer-modern .footer-links a:hover { color: var(--gold-primary); padding-right: 5px; }
.footer-modern .social-links-modern { display: flex; gap: 12px; margin-top: 25px; }
.footer-modern .social-links-modern a {
    width: 45px; height: 45px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6); transition: var(--transition);
    text-decoration: none;
}
.footer-modern .social-links-modern a:hover {
    background: var(--gold-gradient); color: #fff;
    border-color: var(--gold-primary);
    transform: translateY(-3px);
}
.footer-bottom-modern {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 50px; padding-top: 25px;
    text-align: center; color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* ---------- Auth Pages ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    background: var(--bg-primary);
}
.auth-page .auth-branding {
    flex: 1;
    background: var(--gold-gradient);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    min-height: 100vh;
}
.auth-page .auth-branding .brand-content {
    position: relative; z-index: 2;
    text-align: center; padding: 40px;
    color: #fff;
}
.auth-page .auth-branding .brand-content h1 {
    font-size: 3rem; font-weight: 900; margin-bottom: 15px;
}
.auth-page .auth-branding .brand-content p {
    font-size: 1.1rem; opacity: 0.9; max-width: 400px; margin: 0 auto;
}
.auth-page .auth-branding .floating-shapes {
    position: absolute; inset: 0; overflow: hidden;
}
.auth-page .auth-branding .floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    animation: float-shape 12s ease-in-out infinite;
}
.auth-page .auth-branding .floating-shapes .shape:nth-child(1) {
    width: 200px; height: 200px; top: 10%; right: 10%;
    animation-delay: 0s;
}
.auth-page .auth-branding .floating-shapes .shape:nth-child(2) {
    width: 120px; height: 120px; bottom: 20%; left: 15%;
    animation-delay: 3s;
}
.auth-page .auth-branding .floating-shapes .shape:nth-child(3) {
    width: 80px; height: 80px; top: 60%; right: 25%;
    animation-delay: 6s;
}
.auth-page .auth-branding .floating-shapes .shape:nth-child(4) {
    width: 150px; height: 150px; bottom: 10%; right: 5%;
    animation-delay: 2s;
}
@keyframes float-shape {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 0.2; }
}
.auth-page .auth-form-side {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
    background: var(--bg-primary);
}
.auth-page .auth-form-container {
    width: 100%; max-width: 480px;
}
.auth-page .auth-form-container .form-header {
    margin-bottom: 35px;
}
.auth-page .auth-form-container .form-header .back-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-muted); text-decoration: none;
    font-size: 0.9rem; font-weight: 600;
    margin-bottom: 25px; transition: var(--transition);
}
.auth-page .auth-form-container .form-header .back-link:hover {
    color: var(--gold-primary);
}
.auth-page .auth-form-container .form-header h2 {
    font-size: 2rem; font-weight: 900; margin-bottom: 8px;
}
.auth-page .auth-form-container .form-header p {
    color: var(--text-muted); font-size: 0.95rem;
}

/* Auth inputs */
.auth-form-group { margin-bottom: 22px; }
.auth-form-group label {
    display: block; font-weight: 700;
    margin-bottom: 8px; font-size: 0.9rem;
    color: var(--text-primary);
}
.auth-input {
    width: 100%; padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem; transition: var(--transition);
    font-family: inherit;
}
.auth-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(197,160,40,0.1);
}
.auth-input.error { border-color: var(--danger); }
.auth-input-wrapper {
    position: relative;
}
.auth-input-wrapper .toggle-password {
    position: absolute; left: 15px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--text-muted); cursor: pointer;
    font-size: 1rem; transition: var(--transition);
}
.auth-input-wrapper .toggle-password:hover { color: var(--gold-primary); }

.auth-btn-submit {
    width: 100%; padding: 16px;
    background: var(--gold-gradient); color: #fff;
    border: none; border-radius: var(--radius-sm);
    font-weight: 800; font-size: 1.1rem;
    cursor: pointer; transition: var(--transition);
    box-shadow: var(--shadow-gold);
    font-family: inherit;
    position: relative; overflow: hidden;
}
.auth-btn-submit::before {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--gold-shimmer);
    transition: left 0.5s ease;
}
.auth-btn-submit:hover::before { left: 100%; }
.auth-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-lg);
}
.auth-btn-submit:disabled {
    opacity: 0.6; cursor: not-allowed;
    transform: none !important;
}
.auth-btn-submit .spinner {
    display: none; width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff; border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto;
}
.auth-btn-submit.loading .btn-text { display: none; }
.auth-btn-submit.loading .spinner { display: inline-block; }

.auth-divider {
    display: flex; align-items: center; gap: 15px;
    margin: 25px 0; color: var(--text-muted); font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border-color);
}
.social-auth-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; width: 100%; padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card); color: var(--text-primary);
    font-weight: 700; cursor: pointer;
    transition: var(--transition);
    font-family: inherit; font-size: 0.95rem;
    text-decoration: none;
}
.social-auth-btn:hover {
    border-color: var(--gold-primary);
    background: rgba(197,160,40,0.05);
}

/* Password Strength */
.password-strength { margin-top: 10px; }
.password-strength .strength-bar {
    height: 4px; background: var(--border-color);
    border-radius: 2px; overflow: hidden;
    margin-bottom: 6px;
}
.password-strength .strength-bar .fill {
    height: 100%; border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
    width: 0%;
}
.password-strength .strength-text {
    font-size: 0.78rem; font-weight: 600;
}

/* Multi-step progress */
.steps-progress {
    display: flex; align-items: center;
    justify-content: center; gap: 0;
    margin-bottom: 40px;
}
.steps-progress .step-indicator {
    display: flex; align-items: center; gap: 0;
}
.steps-progress .step-dot {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--bg-card);
    transition: var(--transition);
    position: relative;
}
.steps-progress .step-dot.active {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: 0 0 0 4px rgba(197,160,40,0.15);
}
.steps-progress .step-dot.completed {
    border-color: var(--gold-primary);
    background: var(--gold-gradient);
    color: #fff;
}
.steps-progress .step-line {
    width: 60px; height: 2px;
    background: var(--border-color);
    transition: var(--transition);
}
.steps-progress .step-line.completed { background: var(--gold-primary); }

/* OTP input */
.otp-inputs {
    display: flex; gap: 12px;
    justify-content: center;
    direction: ltr;
}
.otp-inputs input {
    width: 55px; height: 60px;
    text-align: center; font-size: 1.5rem;
    font-weight: 800; border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
    font-family: inherit;
}
.otp-inputs input:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(197,160,40,0.1);
}

/* ---------- User Dropdown ---------- */
.user-dropdown .dropdown-toggle {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-weight: 700; transition: var(--transition);
    cursor: pointer; text-decoration: none;
}
.user-dropdown .dropdown-toggle:hover {
    border-color: var(--gold-primary);
    background: rgba(197,160,40,0.05);
}
.user-dropdown .dropdown-toggle::after { display: none; }
.user-dropdown .avatar-sm {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gold-gradient);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 0.9rem;
}
.user-dropdown .dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px; min-width: 220px;
    background: var(--bg-card);
}
.user-dropdown .dropdown-item {
    padding: 12px 16px; border-radius: var(--radius-sm);
    font-weight: 600; color: var(--text-primary);
    transition: var(--transition);
}
.user-dropdown .dropdown-item:hover {
    background: rgba(197,160,40,0.08);
    color: var(--gold-primary);
}
.user-dropdown .dropdown-item i { width: 24px; color: var(--gold-primary); }
.user-dropdown .dropdown-divider { border-color: var(--border-color); margin: 8px 0; }

/* ---------- Shop Page Specific ---------- */
.shop-header { padding-top: calc(var(--navbar-height) + 60px); padding-bottom: 30px; }
.shop-header h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: 10px; }
.shop-header p { color: var(--text-secondary); font-size: 1.1rem; }

.shop-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 15px; margin-bottom: 30px;
    padding: 15px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.shop-search {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 8px 20px;
    flex: 1; max-width: 400px;
    transition: var(--transition);
}
.shop-search:focus-within {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px rgba(197,160,40,0.1);
}
.shop-search input {
    border: none; background: transparent;
    color: var(--text-primary); font-size: 0.95rem;
    width: 100%; outline: none;
    font-family: inherit;
}
.shop-search i { color: var(--text-muted); }

.shop-sort select {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    color: var(--text-primary);
    font-weight: 600; font-size: 0.9rem;
    cursor: pointer; font-family: inherit;
    transition: var(--transition);
}
.shop-sort select:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.view-toggle { display: flex; gap: 5px; }
.view-toggle button {
    width: 40px; height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-muted); cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.view-toggle button.active,
.view-toggle button:hover {
    background: var(--gold-gradient);
    color: #fff; border-color: var(--gold-primary);
}

/* Shop Filter Sidebar */
.shop-filter {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(var(--navbar-height) + 70px);
}
.shop-filter h4 {
    font-size: 1.1rem; font-weight: 800;
    margin-bottom: 20px; color: var(--text-primary);
    display: flex; align-items: center; gap: 10px;
}
.shop-filter h4 i { color: var(--gold-primary); }
.filter-group { margin-bottom: 25px; }
.filter-group h5 {
    font-size: 0.95rem; font-weight: 700;
    margin-bottom: 12px; color: var(--text-secondary);
}
.filter-group .filter-option {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; cursor: pointer;
    color: var(--text-secondary); transition: var(--transition);
    font-size: 0.9rem;
}
.filter-group .filter-option:hover { color: var(--gold-primary); }
.filter-group .filter-option input[type="checkbox"],
.filter-group .filter-option input[type="radio"] {
    accent-color: var(--gold-primary);
    width: 18px; height: 18px;
}
.filter-group .filter-option .count {
    margin-right: auto;
    background: var(--bg-secondary);
    padding: 2px 10px; border-radius: 10px;
    font-size: 0.78rem; color: var(--text-muted);
}

/* Cart drawer */
.cart-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998; opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.cart-overlay.show { opacity: 1; visibility: visible; }
.cart-drawer {
    position: fixed; top: 0; left: 0;
    width: 420px; max-width: 90vw;
    height: 100vh;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-xl);
}
.cart-drawer.show { transform: translateX(0); }
.cart-drawer .cart-header {
    padding: 25px; border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
}
.cart-drawer .cart-header h3 { font-size: 1.3rem; font-weight: 800; margin: 0; }
.cart-drawer .cart-header .close-cart {
    width: 40px; height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%; background: var(--bg-secondary);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: var(--transition); color: var(--text-primary);
}
.cart-drawer .cart-header .close-cart:hover {
    background: var(--danger); color: #fff; border-color: var(--danger);
}
.cart-drawer .cart-body {
    flex: 1; overflow-y: auto; padding: 20px;
}
.cart-drawer .cart-item {
    display: flex; gap: 15px; padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}
.cart-drawer .cart-item .item-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, rgba(248,245,238,1) 0%, rgba(240,230,200,0.5) 100%);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-primary); font-size: 1.5rem;
    flex-shrink: 0;
}
[data-theme="dark"] .cart-drawer .cart-item .item-icon {
    background: linear-gradient(135deg, #1A1A18 0%, #252520 100%);
}
.cart-drawer .cart-item .item-details { flex: 1; }
.cart-drawer .cart-item .item-details h5 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.cart-drawer .cart-item .item-details .item-meta { font-size: 0.8rem; color: var(--text-muted); }
.cart-drawer .cart-item .item-details .item-price { font-weight: 800; color: var(--gold-primary); margin-top: 5px; }
.cart-drawer .cart-item .remove-item {
    background: none; border: none;
    color: var(--text-muted); cursor: pointer;
    font-size: 1rem; transition: var(--transition);
    padding: 5px;
}
.cart-drawer .cart-item .remove-item:hover { color: var(--danger); }
.cart-drawer .cart-empty {
    text-align: center; padding: 60px 20px;
    color: var(--text-muted);
}
.cart-drawer .cart-empty i { font-size: 3rem; margin-bottom: 15px; color: var(--border-color); }
.cart-drawer .cart-footer {
    padding: 25px; border-top: 1px solid var(--border-color);
}
.cart-drawer .cart-footer .cart-total {
    display: flex; justify-content: space-between;
    margin-bottom: 15px; font-size: 1.1rem;
}
.cart-drawer .cart-footer .cart-total .total-label { font-weight: 700; }
.cart-drawer .cart-footer .cart-total .total-value { font-weight: 900; color: var(--gold-primary); }

/* Cart badge */
.cart-btn {
    position: relative;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition);
    font-size: 1.1rem;
}
.cart-btn:hover { border-color: var(--gold-primary); color: var(--gold-primary); }
.cart-btn .cart-count {
    position: absolute; top: -5px; right: -5px;
    width: 20px; height: 20px;
    background: var(--danger); color: #fff;
    border-radius: 50%; font-size: 0.7rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.cart-btn .cart-count.empty { display: none; }

/* ---------- Profile Page ---------- */
.profile-page {
    padding-top: calc(var(--navbar-height) + 30px);
    min-height: 100vh;
    background: var(--bg-secondary);
}
.profile-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(var(--navbar-height) + 30px);
}
.profile-sidebar .user-info {
    text-align: center; margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}
.profile-sidebar .user-info .user-avatar {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px;
    font-size: 2.5rem; color: #fff; font-weight: 900;
    box-shadow: var(--shadow-gold);
}
.profile-sidebar .user-info h4 { font-weight: 800; margin-bottom: 5px; font-size: 1.2rem; }
.profile-sidebar .user-info p { color: var(--text-muted); font-size: 0.85rem; }
.profile-sidebar .user-info .membership-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(197,160,40,0.1);
    color: var(--gold-primary); padding: 5px 15px;
    border-radius: var(--radius-full);
    font-size: 0.8rem; font-weight: 700; margin-top: 10px;
}

.profile-sidebar .nav-menu { list-style: none; }
.profile-sidebar .nav-menu li { margin-bottom: 5px; }
.profile-sidebar .nav-menu a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: var(--radius-sm);
    color: var(--text-secondary); text-decoration: none;
    font-weight: 600; font-size: 0.95rem;
    transition: var(--transition);
}
.profile-sidebar .nav-menu a:hover {
    background: rgba(197,160,40,0.08);
    color: var(--gold-primary);
}
.profile-sidebar .nav-menu a.active {
    background: var(--gold-gradient);
    color: #fff;
    box-shadow: var(--shadow-gold);
}
.profile-sidebar .nav-menu a i { width: 20px; text-align: center; }

.profile-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    min-height: 600px;
}
.profile-content .content-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 30px; padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.profile-content .content-header h3 {
    font-size: 1.5rem; font-weight: 800; margin: 0;
}

/* ---------- Toast Notifications ---------- */
.toast-container {
    position: fixed; top: 90px; left: 50%;
    transform: translateX(-50%);
    z-index: 99990;
    display: flex; flex-direction: column; gap: 10px;
    align-items: center;
}
.toast-notification {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 12px;
    font-weight: 600; font-size: 0.95rem;
    animation: toast-in 0.4s ease;
    min-width: 300px;
}
.toast-notification.success { border-right: 4px solid var(--success); }
.toast-notification.error { border-right: 4px solid var(--danger); }
.toast-notification.info { border-right: 4px solid var(--gold-primary); }
.toast-notification i { font-size: 1.2rem; }
.toast-notification.success i { color: var(--success); }
.toast-notification.error i { color: var(--danger); }
.toast-notification.info i { color: var(--gold-primary); }
.toast-notification.hiding { animation: toast-out 0.3s ease forwards; }
@keyframes toast-in {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* ---------- Animations ---------- */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.slide-in-right { opacity: 0; transform: translateX(40px); transition: all 0.6s ease; }
.slide-in-right.visible { opacity: 1; transform: translateX(0); }

.scale-in { opacity: 0; transform: scale(0.9); transition: all 0.5s ease; }
.scale-in.visible { opacity: 1; transform: scale(1); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .auth-page .auth-branding { display: none; }
    .auth-page .auth-form-side { flex: 1; }
    
    /* Profile Mobile Redesign */
    .profile-sidebar { position: static; margin-bottom: 20px; padding: 20px; }
    .profile-sidebar .user-info {
        margin-bottom: 20px; padding-bottom: 15px;
        display: flex; align-items: center; text-align: right; gap: 15px;
    }
    .profile-sidebar .user-info .user-avatar { width: 60px; height: 60px; font-size: 1.8rem; margin: 0; }
    .profile-sidebar .user-info .membership-badge { margin-top: 5px; }
    .profile-sidebar .nav-menu {
        display: flex; overflow-x: auto; white-space: nowrap; gap: 8px;
        padding-bottom: 8px; -webkit-overflow-scrolling: touch;
    }
    .profile-sidebar .nav-menu li { margin-bottom: 0; flex-shrink: 0; }
    .profile-sidebar .nav-menu a { padding: 10px 16px; font-size: 0.88rem; }

    /* Collapsed Navbar Card dropdown style */
    .navbar-collapse {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 20px; margin-top: 15px;
        box-shadow: var(--shadow-md);
        position: relative;
        z-index: 1005;
    }
    .navbar-nav { gap: 10px; text-align: right; }
    .nav-link { margin: 0; padding: 8px 0; }
    .nav-link::after { display: none; }

    /* Custom Toggler Design */
    .navbar-toggler {
        width: 38px; height: 38px;
        padding: 0;
        display: flex; align-items: center; justify-content: center;
        font-size: 0.95rem;
        border: 1px solid var(--border-color);
        background: var(--bg-secondary);
        color: var(--text-primary);
        border-radius: 50%;
        transition: var(--transition);
    }
    .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(197, 160, 40, 0.15); }

    /* User Dropdown Premium Aligned Mobile Layout */
    .user-dropdown .dropdown-menu {
        position: absolute;
        top: 100% !important;
        left: 0 !important; right: auto !important;
        min-width: 240px;
        margin-top: 8px;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border-color);
        background: var(--bg-card);
        border-radius: var(--radius-md);
    }
    .user-dropdown .dropdown-item {
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: right;
        justify-content: flex-start;
        padding: 10px 16px;
    }
    .user-dropdown .dropdown-item i {
        width: 18px; margin: 0;
        text-align: center;
    }

    .cart-drawer { width: 100%; max-width: 100%; }
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .section-title h2 { font-size: 1.8rem; }
    .result-grid { grid-template-columns: repeat(2,1fr); }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .price-ticker-bar { flex-direction: column; }
    .ticker-divider { display: none; }
    .calculator-wrapper { padding: 25px; }
    .shop-toolbar { flex-direction: column; align-items: stretch; }
    .shop-search { max-width: 100%; }
    .navbar-brand { font-size: 1.3rem; }
}
@media (max-width: 576px) {
    .result-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 15px; }
    .otp-inputs input { width: 45px; height: 50px; font-size: 1.2rem; }
    .section-padding { padding: 60px 0; }
    
    /* Contain the floating gold ring elements inside viewport to prevent horizontal scroll overflow */
    .gold-ring { width: 280px; height: 280px; }
    .gold-ring:nth-child(2) { width: 200px; height: 200px; }
    .hero-image-main { max-width: 280px; margin: 0 auto; }
    
    .auth-page .auth-form-side { padding: 20px; }

    /* Mobile Header Shrinking and Refinement */
    .navbar-brand { font-size: 1.15rem; gap: 4px; }
    .navbar-brand i { font-size: 1.1rem; }
    
    .theme-toggle, .cart-btn {
        width: 36px; height: 36px;
        font-size: 0.95rem;
    }
    .cart-btn .cart-count {
        width: 18px; height: 18px;
        font-size: 0.65rem;
        top: -4px; right: -4px;
    }
    .navbar-toggler {
        width: 36px; height: 36px;
        font-size: 0.9rem;
    }
    
    /* User Dropdown Avatar-only Mode on Mobile */
    .user-dropdown .dropdown-toggle {
        padding: 0;
        border: none;
        background: transparent;
        gap: 0;
    }
    .user-dropdown .dropdown-toggle i { display: none; }
    .user-dropdown .avatar-sm { width: 36px; height: 36px; }
    .user-dropdown .dropdown-menu {
        left: -10px !important;
        min-width: 210px;
    }

    /* Collapse Menu Auth buttons resize */
    #mobileAuthButtons .btn {
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
        border-radius: var(--radius-sm) !important;
        height: auto !important;
        box-shadow: none !important;
    }
}
