/* ============================================================
   Crazy Systems - Main Stylesheet
   Version 1.0.0
   Design: Dark Theme + Cyan/Violet Gradient
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
    --color-bg:          #0a0b0f;
    --color-bg-2:        #0f1117;
    --color-bg-3:        #13161e;
    --color-bg-card:     #141720;
    --color-border:      rgba(255,255,255,0.07);
    --color-border-glow: rgba(0,229,255,0.25);

    --color-primary:     #00e5ff;
    --color-primary-dim: rgba(0,229,255,0.15);
    --color-secondary:   #7b2fff;
    --color-secondary-dim: rgba(123,47,255,0.15);

    --gradient-main:     linear-gradient(135deg, #00e5ff 0%, #7b2fff 100%);
    --gradient-main-r:   linear-gradient(135deg, #7b2fff 0%, #00e5ff 100%);
    --gradient-glow:     linear-gradient(135deg, rgba(0,229,255,0.2) 0%, rgba(123,47,255,0.2) 100%);

    --color-text:        #e8eaf0;
    --color-text-muted:  #7a7f92;
    --color-text-light:  #a8adb8;
    --color-white:       #ffffff;

    --color-success:     #00d68f;
    --color-warning:     #f5a623;
    --color-danger:      #ff3d6b;
    --color-info:        #00aaff;

    --font-main:   'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono:   'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-full: 9999px;

    --shadow-sm:   0 2px 8px rgba(0,0,0,0.4);
    --shadow-md:   0 4px 20px rgba(0,0,0,0.5);
    --shadow-lg:   0 8px 40px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 30px rgba(0,229,255,0.2);
    --shadow-glow-violet: 0 0 30px rgba(123,47,255,0.3);

    --transition: 0.2s ease;
    --transition-slow: 0.4s ease;

    --nav-height: 70px;
    --sidebar-width: 260px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: #fff; }

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-white);
}

p { color: var(--color-text-light); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-2); }
::-webkit-scrollbar-thumb { background: var(--color-bg-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,229,255,0.4); }

/* ---------- Selection ---------- */
::selection { background: rgba(0,229,255,0.25); color: #fff; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-lg {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid {
    display: grid;
    gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; gap: 12px; align-items: center; }
.flex-col { display: flex; flex-direction: column; }

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: rgba(10,11,15,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    z-index: 3100;
    transition: background var(--transition-slow);
}

.navbar.scrolled {
    background: rgba(10,11,15,0.97);
    border-bottom-color: var(--color-border-glow);
}

.navbar__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.navbar__logo img { height: 40px; width: auto; }
.navbar__logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.navbar__nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.navbar__nav a:hover,
.navbar__nav a.active {
    color: var(--color-white);
    background: rgba(255,255,255,0.05);
}

.navbar__nav a.active {
    color: var(--color-primary);
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.navbar__cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    color: var(--color-text-light);
    font-size: 1.1rem;
    transition: all var(--transition);
}
.navbar__cart:hover { background: var(--color-primary-dim); color: var(--color-primary); }
.navbar__cart .badge {
    position: absolute;
    top: -6px; right: -6px;
    background: var(--color-primary);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}
.navbar__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(0,229,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(123,47,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-glow);
    background: var(--color-primary-dim);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero__title .gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero__stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__stat {
    text-align: center;
}
.hero__stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: #000;
    box-shadow: 0 4px 20px rgba(0,229,255,0.25);
}
.btn-primary:hover {
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(0,229,255,0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border-glow);
    color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary-dim);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-ghost {
    background: rgba(255,255,255,0.05);
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
}

.btn-danger {
    background: var(--color-danger);
    color: #fff;
}
.btn-danger:hover {
    background: #e02250;
    color: #fff;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--color-success);
    color: #000;
}

.btn-sm { padding: 7px 16px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--color-border-glow);
    box-shadow: var(--shadow-glow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
}

/* ============================================================
   PRICING CARDS
   ============================================================ */
.pricing-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity var(--transition);
}

.pricing-card:hover,
.pricing-card.featured {
    border-color: var(--color-border-glow);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--shadow-glow);
}

.pricing-card:hover::before,
.pricing-card.featured::before {
    opacity: 1;
}

.pricing-card.featured {
    background: var(--color-bg-3);
}

.pricing-card__badge {
    position: absolute;
    top: 16px; right: 16px;
    padding: 4px 12px;
    background: var(--gradient-main);
    color: #000;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--color-primary-dim);
    border: 1px solid var(--color-border-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.pricing-card__name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.pricing-card__tagline {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.pricing-card__price {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: 24px;
}

.pricing-card__amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
}

.pricing-card__currency {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.pricing-card__period {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.pricing-card__features {
    flex: 1;
    margin-bottom: 28px;
}

.pricing-card__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--color-text-light);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.pricing-card__feature:last-child { border-bottom: none; }

.pricing-card__feature .feature-icon {
    color: var(--color-primary);
    font-size: 0.9rem;
    flex-shrink: 0;
    width: 16px;
}

.pricing-card__feature .feature-label { flex: 1; }
.pricing-card__feature .feature-value { color: var(--color-white); font-weight: 600; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.form-label .required { color: var(--color-danger); margin-left: 3px; }

.form-control {
    width: 100%;
    padding: 11px 14px;
    background: var(--color-bg-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: all var(--transition);
    outline: none;
    appearance: none;
}

.form-control::placeholder { color: var(--color-text-muted); }

.form-control:focus {
    border-color: var(--color-primary);
    background: var(--color-bg-3);
    box-shadow: 0 0 0 3px rgba(0,229,255,0.1);
}

.form-control.is-invalid {
    border-color: var(--color-danger);
}

.form-control.is-valid {
    border-color: var(--color-success);
}

.form-error {
    font-size: 0.8rem;
    color: var(--color-danger);
    margin-top: 6px;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 6px;
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237a7f92' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form-check label {
    font-size: 0.88rem;
    color: var(--color-text-light);
    cursor: pointer;
}

/* ============================================================
   ALERTS / FLASH MESSAGES
   ============================================================ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(0,214,143,0.1);
    border-color: rgba(0,214,143,0.3);
    color: var(--color-success);
}

.alert-danger {
    background: rgba(255,61,107,0.1);
    border-color: rgba(255,61,107,0.3);
    color: var(--color-danger);
}

.alert-warning {
    background: rgba(245,166,35,0.1);
    border-color: rgba(245,166,35,0.3);
    color: var(--color-warning);
}

.alert-info {
    background: rgba(0,170,255,0.1);
    border-color: rgba(0,170,255,0.3);
    color: var(--color-info);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-success  { background: rgba(0,214,143,0.15); color: var(--color-success); }
.badge-danger   { background: rgba(255,61,107,0.15); color: var(--color-danger); }
.badge-warning  { background: rgba(245,166,35,0.15); color: var(--color-warning); }
.badge-info     { background: rgba(0,170,255,0.15); color: var(--color-info); }
.badge-primary  { background: var(--color-primary-dim); color: var(--color-primary); }
.badge-secondary{ background: rgba(255,255,255,0.08); color: var(--color-text-muted); }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

table.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.table th {
    padding: 12px 16px;
    background: var(--color-bg-3);
    color: var(--color-text-muted);
    font-weight: 600;
    text-align: left;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border-bottom: 1px solid var(--color-border);
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    vertical-align: middle;
}

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

.table tbody tr {
    transition: background var(--transition);
}
.table tbody tr:hover { background: rgba(255,255,255,0.02); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header__label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-header__title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.section-header__subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--color-bg-2);
    border-top: 1px solid var(--color-border);
    padding: 60px 0 24px;
    margin-top: auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer__brand img { height: 44px; margin-bottom: 16px; }
.footer__brand p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer__socials {
    display: flex;
    gap: 10px;
}

.footer__social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: all var(--transition);
}
.footer__social-link:hover {
    background: var(--color-primary-dim);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.footer__col-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links a {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    transition: color var(--transition);
}
.footer__links a:hover { color: var(--color-primary); }

.footer__bottom {
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.footer__bottom a { color: var(--color-text-muted); }
.footer__bottom a:hover { color: var(--color-primary); }

/* ============================================================
   GRADIENT TEXT / EFFECTS
   ============================================================ */
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: var(--gradient-main);
}

.glow {
    box-shadow: var(--shadow-glow);
}

.bg-grid {
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--nav-height);
}

/* ============================================================
   CLIENT DASHBOARD
   ============================================================ */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - var(--nav-height));
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--color-bg-2);
    border-right: 1px solid var(--color-border);
    padding: 32px 16px;
    flex-shrink: 0;
    position: sticky;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    overflow-y: auto;
}

.sidebar__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
    margin-top: 24px;
}

.sidebar__label:first-child { margin-top: 0; }

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    margin-bottom: 2px;
}

.sidebar__link i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.sidebar__link:hover {
    background: rgba(255,255,255,0.04);
    color: var(--color-white);
}

.sidebar__link:hover i,
.sidebar__link.active i {
    color: var(--color-primary);
}

.sidebar__link.active {
    background: var(--color-primary-dim);
    color: var(--color-primary);
    border: 1px solid var(--color-border-glow);
}

.dashboard-main {
    flex: 1;
    padding: 32px;
    overflow-x: hidden;
    min-width: 0;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.page-subtitle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: var(--color-border-glow);
    transform: translateY(-2px);
}

.stat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-card__icon.cyan   { background: var(--color-primary-dim); color: var(--color-primary); }
.stat-card__icon.violet { background: var(--color-secondary-dim); color: var(--color-secondary); }
.stat-card__icon.green  { background: rgba(0,214,143,0.12); color: var(--color-success); }
.stat-card__icon.orange { background: rgba(245,166,35,0.12); color: var(--color-warning); }

.stat-card__value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card__label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ============================================================
   CART
   ============================================================ */
.cart-page { padding: 40px 0; }

.cart-table { width: 100%; }

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}

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

.cart-summary {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: calc(var(--nav-height) + 20px);
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border);
}

.cart-summary__row:last-of-type { border-bottom: none; }
.cart-summary__row.total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
    margin-top: 4px;
}

.cart-summary__row.total .amount {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-nav { margin-top: 24px; }
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}
.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: 0.88rem;
    transition: all var(--transition);
}
.pagination li a:hover,
.pagination li.active a {
    background: var(--color-primary-dim);
    border-color: var(--color-border-glow);
    color: var(--color-primary);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-glow);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(20px);
    transition: transform var(--transition);
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal__title { font-size: 1.2rem; }

.modal__close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color var(--transition);
}
.modal__close:hover { color: var(--color-white); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb__sep { color: var(--color-border); }
.breadcrumb__current { color: var(--color-text-light); }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    top: calc(var(--nav-height) + 16px);
    right: 16px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 340px;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: 0.88rem;
    animation: slideInRight 0.3s ease;
}

.toast.success { border-left: 3px solid var(--color-success); }
.toast.error   { border-left: 3px solid var(--color-danger); }
.toast.warning { border-left: 3px solid var(--color-warning); }
.toast.info    { border-left: 3px solid var(--color-info); }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   FEATURE ICONS SECTION
   ============================================================ */
.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
    text-align: center;
}

.feature-card:hover {
    border-color: var(--color-border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.feature-card__icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--gradient-glow);
    border: 1px solid var(--color-border-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 0 auto 18px;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ============================================================
   LOADER
   ============================================================ */
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(0,229,255,0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

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

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-primary  { color: var(--color-primary) !important; }
.text-secondary{ color: var(--color-secondary) !important; }
.text-muted    { color: var(--color-text-muted) !important; }
.text-white    { color: var(--color-white) !important; }
.text-success  { color: var(--color-success) !important; }
.text-danger   { color: var(--color-danger) !important; }
.text-warning  { color: var(--color-warning) !important; }

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

.mt-1 { margin-top: 4px; }  .mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 40px; } .mt-6 { margin-top: 64px; }

.mb-1 { margin-bottom: 4px; }  .mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 40px; } .mb-6 { margin-bottom: 64px; }

.p-0 { padding: 0; }
.w-100 { width: 100%; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .grid-4   { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }

    .navbar__nav { display: none; }
    .navbar__hamburger { display: flex; }

    .navbar__nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-height);
        left: 0; right: 0;
        background: var(--color-bg-2);
        border-bottom: 1px solid var(--color-border);
        padding: 16px;
        gap: 4px;
    }

    .hero__stats { gap: 32px; }
    .hero__actions { flex-direction: column; align-items: center; }

    .footer__grid { grid-template-columns: 1fr; }

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

    .dashboard-layout { flex-direction: column; }
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .dashboard-main { padding: 20px 16px; }

    .cart-item { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .section { padding: 60px 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .btn-lg { padding: 12px 24px; font-size: 0.95rem; }
}

/* ============================================================
   ADMIN PANEL — CONTRAST OVERRIDES
   Scoped to .admin-page body class (set by admin-sidebar.php)
   ============================================================ */
.admin-page {
    --color-border:       rgba(255,255,255,0.12);
    --color-border-glow:  rgba(0,229,255,0.35);
    --color-bg-card:      #181c28;
    --color-bg-2:         #12151f;
    --color-bg-3:         #1a1e2c;
    --color-text-muted:   #9ba3bb;
    --color-text-light:   #b8bece;
}

/* Sidebar contrast */
.admin-page .sidebar {
    background: var(--color-bg-2);
    border-right: 1px solid rgba(255,61,107,0.15);
}
.admin-page .sidebar__label { color: var(--color-text-muted); }
.admin-page .sidebar__link  { color: var(--color-text-light); }
.admin-page .sidebar__link:hover {
    background: rgba(255,255,255,0.06);
    color: var(--color-white);
}

/* Cards contrast */
.admin-page .card {
    border-color: var(--color-border);
    background: var(--color-bg-card);
}
.admin-page .card:hover { border-color: var(--color-border-glow); }
.admin-page .card-header { border-bottom-color: var(--color-border); }

/* Stat cards */
.admin-page .stat-card { border-color: var(--color-border); background: var(--color-bg-card); }
.admin-page .stat-card:hover { border-color: var(--color-border-glow); }
.admin-page .stat-card__label { color: var(--color-text-muted); }

/* Table contrast: stronger borders + alternating rows */
.admin-page .table-wrapper { border-color: var(--color-border); }
.admin-page .table th {
    background: var(--color-bg-3);
    color: var(--color-text-light);
    border-bottom-color: var(--color-border);
    font-size: 0.8rem;
}
.admin-page .table td {
    border-bottom-color: var(--color-border);
    color: var(--color-text);
}
.admin-page .table tbody tr:nth-child(even) { background: rgba(255,255,255,0.025); }
.admin-page .table tbody tr:hover { background: rgba(0,229,255,0.05); }

/* Form controls */
.admin-page .form-control {
    background: var(--color-bg-3);
    border-color: var(--color-border);
}
.admin-page .form-control:focus { border-color: var(--color-primary); }

/* Badge / status badges */
.admin-page .badge { opacity: 1; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    width: calc(100% - 40px);
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    z-index: 9999;
    background: var(--color-bg-card, #181c28);
    border: 1px solid rgba(0,229,255,0.2);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,229,255,0.05);
    padding: 20px 24px;
}
.cookie-banner__inner { width: 100%; }
#cookieCompact {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-banner__text {
    flex: 1;
    font-size: 0.875rem;
    color: var(--color-text-muted, #9ba3bb);
    min-width: 200px;
}
.cookie-banner__text strong {
    display: block;
    color: var(--color-text, #e8eaf0);
    margin-bottom: 4px;
    font-size: 0.95rem;
}
.cookie-banner__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.cookie-category {
    border-top: 1px solid var(--color-border, rgba(255,255,255,0.08));
    padding: 14px 0;
}
.cookie-category__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.cookie-category__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text, #e8eaf0);
}
.cookie-category__desc {
    font-size: 0.8rem;
    color: var(--color-text-muted, #9ba3bb);
    margin: 4px 0 0;
    line-height: 1.5;
}
.cookie-always-active {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-success, #00d68f);
    white-space: nowrap;
    margin-top: 2px;
}
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle__slider {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    transition: background 0.25s;
}
.cookie-toggle__slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
}
.cookie-toggle input:checked + .cookie-toggle__slider { background: var(--color-primary, #00e5ff); }
.cookie-toggle input:checked + .cookie-toggle__slider::before { transform: translateX(20px); }
@media (max-width: 600px) {
    .cookie-banner { bottom: 0; left: 0; right: 0; width: 100%; max-width: 100%; margin: 0; border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0; }
    #cookieCompact { flex-direction: column; align-items: flex-start; }
}
