:root {
    /* Deep Mystic Luxury Palette - Dark Mode */
    --bg-void: #05020a;
    /* Deepest Black-Purple */
    --bg-nebula: #1a0b2e;
    /* Rich Purple/Blue */

    --primary-color: #9D50BB;
    /* Brand Purple */
    --primary-glow: #b05eff;
    /* Purple Glow */
    --brand-indigo: #300e57;
    /* Deep Void Purple */

    --accent-color: #ee6306;
    /* Solar Orange */
    --royal-gold: #D4AF37;
    /* Metallic Gold */
    --accent-glow: #ffd700;
    /* Bright Gold Glow */

    --text-primary: #f0f0f0;
    /* Stardust White */
    --text-secondary: #b0b0b0;
    /* Muted Grey */

    /* Glass System Tokens */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-surface: rgba(10, 5, 20, 0.6);

    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    /* Subtle Nebula Background */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(106, 13, 173, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(16, 4, 30, 0.8) 0%, transparent 100%);
    background-attachment: fixed;
    background-size: cover;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
}

h3 {
    font-size: 1.8rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(179, 136, 235, 0.3);
}

.text-gold {
    color: var(--accent-color);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

/* Glass Panels (Enhanced Deep Mystic Luxury) */
.glass-panel {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 3rem;

    /* Multi-layer shadows for depth */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 60px rgba(157, 80, 187, 0.03);

    /* Enhanced glassmorphism */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    /* Smooth transitions */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.03),
            transparent);
    transition: left 0.8s ease;
}

.glass-panel:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.15);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 80px rgba(157, 80, 187, 0.08);
}

.glass-panel:hover::before {
    left: 100%;
}

/* Premium Glass Panel - For hero sections and featured content */
.glass-panel-premium {
    background: linear-gradient(135deg,
            rgba(212, 175, 55, 0.08) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 3rem;
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(212, 175, 55, 0.1),
        0 0 80px rgba(212, 175, 55, 0.05);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-panel-premium:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow:
        0 16px 64px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(212, 175, 55, 0.2),
        0 0 100px rgba(212, 175, 55, 0.12);
}

/* Interactive Glass Panel - For clickable cards */
.glass-panel-interactive {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.glass-panel-interactive:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(157, 80, 187, 0.3);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(157, 80, 187, 0.3),
        0 0 80px rgba(157, 80, 187, 0.15);
}

/* Subtle Glass Panel - For dense layouts */
.glass-panel-subtle {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.glass-panel-subtle:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Highlight Glass Panel - For CTAs and important sections */
.glass-panel-highlight {
    background: linear-gradient(135deg,
            rgba(238, 99, 6, 0.05) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(238, 99, 6, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(238, 99, 6, 0.15),
        0 0 60px rgba(238, 99, 6, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-panel-highlight:hover {
    transform: translateY(-3px);
    border-color: rgba(238, 99, 6, 0.3);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(238, 99, 6, 0.25),
        0 0 80px rgba(238, 99, 6, 0.15);
}

/* Buttons */
.btn-luxury {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
}

.btn-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: -1;
}

.btn-luxury:hover {
    color: var(--bg-void);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    border-color: transparent;
}

.btn-luxury:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Navigation */
header {
    background: rgba(5, 2, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.05);
}

.nav-links a {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    background: #020105;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

footer h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

footer a {
    color: var(--text-secondary);
}

footer a:hover {
    color: var(--accent-color);
}

/* Helpers */
.w-100 {
    width: 100%;
}

.mb-4 {
    margin-bottom: 2rem;
}

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

/* Product/Card Specifics */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

/* Glass Tables */
.luxury-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.luxury-table th {
    text-align: left;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--royal-gold);
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.luxury-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    vertical-align: middle;
    transition: background 0.3s ease;
}

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

.luxury-table tr:hover {
    background: rgba(212, 175, 55, 0.03);
}

/* Badges & Status */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Dashboard Navigation (Inner Glass) */
.dash-nav-item {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 8px;
    border: 1px solid transparent;
}

.dash-nav-item:hover,
.dash-nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateX(5px);
}

.dash-nav-item.active {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.2);
    color: var(--royal-gold);
}

/* Form Inputs (Clear Glass) */
.dash-input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.dash-input:focus {
    outline: none;
    border-color: var(--royal-gold);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.dash-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.dash-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
}

/* Glass List System */
.glass-list-item {
    display: flex;
    justify-content: space-between;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid transparent;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.glass-list-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.product-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
}

.card-img {
    height: 250px;
    background: #111;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover .card-img img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.card-price {
    font-family: 'Courier New', monospace;
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* --- HEADER BEAUTIFICATION --- */

/* Mystic Nav Links */
.nav-link-mystic {
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link-mystic::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 10px var(--accent-color);
}

.nav-link-mystic:hover {
    color: #fff !important;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.6),
        0 0 20px var(--primary-glow);
}

.nav-link-mystic:hover::after {
    width: 100%;
    left: 0;
}

/* Logo Pulse */
.logo-pulse {
    transition: filter 0.5s ease;
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}

.logo-pulse:hover {
    filter: drop-shadow(0 0 15px rgba(179, 136, 235, 0.6));
}

/* Jewel Button for Header */
.btn-jewel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 0 10px rgba(255, 215, 0, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 30px;
    /* Pill shape */
    transition: all 0.3s ease;
}

.btn-jewel:hover {
    border-color: var(--accent-color);
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
}

/* --- MOBILE DASHBOARD PATCH --- */
@media (max-width: 992px) {

    /* Stack Dashboard Containers */
    .dash-container,
    .vendor-dashboard-container,
    body.admin-body {
        flex-direction: column !important;
        display: flex !important;
    }

    /* Sidebar Resets */
    .dash-sidebar,
    .admin-sidebar {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px !important;
        overflow-y: visible !important;
    }

    /* Admin Main Reset */
    .admin-main {
        margin-left: 0 !important;
        padding: 20px !important;
        width: 100% !important;
    }

    /* Vendor Specifics */
    .vendor-dashboard-container {
        display: flex;
        gap: 30px;
    }

    /* Animation Keyframes */
    @keyframes ping {

        75%,
        100% {
            transform: scale(2);
            opacity: 0;
        }
    }

    /* --- MOBILE REFINEMENTS (Cart & Auth) --- */
    @media (max-width: 768px) {

        /* Reduce Auth Padding */
        .auth-wrapper {
            padding-top: 120px !important;
            padding-bottom: 60px !important;
            align-items: flex-start !important;
            /* Allow scrolling on small screens */
        }

        .auth-card {
            padding: 30px !important;
            margin: 20px 0;
        }

        /* Cart Items Stacking */
        .cart-item-card {
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
            position: relative;
        }

        .item-thumb {
            width: 80px;
            height: 80px;
        }

        .cart-item-card .remove-btn {
            position: absolute;
            top: 10px;
            right: 10px;
        }

        .item-price {
            font-size: 1.1rem;
        }

        /* Adjust Blog Grid Gap */
        .grid-container {
            gap: 1.5rem !important;
        }
    }

    /* Healer Dashboard Tabs */
    .healer-dashboard .glass-panel>div:nth-child(2) {
        flex-wrap: wrap;
    }

    .dash-tab {
        flex: 1 1 50%;
        text-align: center;
        padding: 1rem 0.5rem !important;
        font-size: 0.9rem !important;
    }

    /* Responsive Tables */
    .table-responsive,
    .dash-content,
    .admin-main {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll on iOS */
        max-width: 100vw;
        /* Prevent container from pushing out */
    }

    .luxury-table {
        min-width: 700px;
        /* Force horizontal scroll for data tables */
    }

    /* Adjust Content Padding */
    .dash-content {
        padding: 20px !important;
    }

    /* Force Grid Stacking */
    .row,
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    /* Mobile Menu Visibility Fixes */
    .top-bar {
        display: none !important;
        /* Hide tiny utility bar on mobile */
    }

    /* Adjust Hero Padding for Mobile Header */
    main {
        padding-top: 100px !important;
    }

    /* POLICY PAGE FIX: Reduce massive padding on glass panels */
    .glass-panel-premium,
    .glass-panel {
        padding: 1.5rem !important;
        /* Override inline 4rem */
    }
}

/* Base style for Vendor Container (Desktop default) */
.vendor-dashboard-container {
    display: flex;
    gap: 30px;
}