/* ============================================================
   PanelVault — Global Design System
   Dark Glassmorphism + Purple-Blue Gradient Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
    --bg-base: #070a14;
    --bg-surface: #0d1220;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-h: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);
    --border-h: rgba(255, 255, 255, 0.18);

    --grad-1: #8b5cf6;
    --grad-2: #3b82f6;
    --grad-mix: linear-gradient(135deg, #8b5cf6, #3b82f6);
    --grad-glow: linear-gradient(135deg, rgba(139, 92, 246, .15), rgba(59, 130, 246, .15));

    --gold: #f59e0b;
    --silver: #94a3b8;
    --bronze: #a16207;

    --green: #10b981;
    --red: #ef4444;
    --yellow: #f59e0b;

    --text-1: #f1f5f9;
    --text-2: #94a3b8;
    --text-3: #64748b;

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow: 0 4px 24px rgba(0, 0, 0, .4);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, .25);

    --sidebar-w: 260px;
    --nav-h: 64px;

    --transition: all .2s cubic-bezier(.4, 0, .2, 1);
}

/* ── Reset ────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-base);
    color: var(--text-1);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    outline: none;
    border: none;
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, .5);
    border-radius: 3px;
}

/* ── Animated Background ──────────────────────────────────── */
.bg-animated {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.bg-animated::before,
.bg-animated::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .25;
    animation: float 12s ease-in-out infinite;
}

.bg-animated::before {
    width: 600px;
    height: 600px;
    background: var(--grad-1);
    top: -200px;
    left: -100px;
}

.bg-animated::after {
    width: 500px;
    height: 500px;
    background: var(--grad-2);
    bottom: -150px;
    right: -100px;
    animation-delay: -6s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 40px) scale(1.1);
    }
}

/* ── Glass Card ───────────────────────────────────────────── */
.glass {
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.glass:hover {
    background: var(--bg-card-h);
    border-color: var(--border-h);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad-mix);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, .35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, .5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-h);
    color: var(--text-1);
}

.btn-outline:hover {
    background: var(--bg-card-h);
    border-color: var(--grad-1);
    color: var(--grad-1);
}

.btn-sm {
    padding: 8px 16px;
    font-size: .8rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-danger {
    background: rgba(239, 68, 68, .15);
    border: 1px solid rgba(239, 68, 68, .3);
    color: var(--red);
}

.btn-success {
    background: rgba(16, 185, 129, .15);
    border: 1px solid rgba(16, 185, 129, .3);
    color: var(--green);
}

/* ── Badge ────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.badge-green {
    background: rgba(16, 185, 129, .15);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, .3);
}

.badge-red {
    background: rgba(239, 68, 68, .15);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, .3);
}

.badge-yellow {
    background: rgba(245, 158, 11, .15);
    color: var(--yellow);
    border: 1px solid rgba(245, 158, 11, .3);
}

.badge-blue {
    background: rgba(59, 130, 246, .15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, .3);
}

.badge-purple {
    background: rgba(139, 92, 246, .15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, .3);
}

/* ── Gradient Text ────────────────────────────────────────── */
.gradient-text {
    background: var(--grad-mix);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    padding: 0 40px;
    background: rgba(7, 10, 20, .85);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    gap: auto;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    margin-right: auto;
}

.navbar .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--grad-mix);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar .nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-2);
    transition: var(--transition);
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: var(--text-1);
    background: var(--bg-card-h);
}

.navbar .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 24px;
}

.lang-selector {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-2);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    cursor: pointer;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(139, 92, 246, .1);
    border: 1px solid rgba(139, 92, 246, .3);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    color: #a78bfa;
    margin-bottom: 28px;
    animation: fadeUp .6s ease both;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 20px;
    animation: fadeUp .6s ease .1s both;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-2);
    max-width: 580px;
    margin: 0 auto 40px;
    animation: fadeUp .6s ease .2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp .6s ease .3s both;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 80px;
    animation: fadeUp .6s ease .4s both;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-val {
    font-size: 2rem;
    font-weight: 800;
}

.stat-item .stat-lbl {
    font-size: .8rem;
    color: var(--text-2);
    margin-top: 4px;
}

/* ── Section ──────────────────────────────────────────────── */
.section {
    padding: 80px 24px;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header .eyebrow {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--grad-1);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.section-header p {
    color: var(--text-2);
    max-width: 540px;
    margin: 0 auto;
}

/* ── Features Grid ────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 28px;
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--grad-glow);
    border: 1px solid rgba(139, 92, 246, .25);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: .875rem;
    color: var(--text-2);
    line-height: 1.7;
}

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.pricing-card {
    padding: 36px 28px;
    position: relative;
    text-align: center;
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(139, 92, 246, .12), rgba(59, 130, 246, .12));
    border-color: rgba(139, 92, 246, .4);
    box-shadow: 0 0 60px rgba(139, 92, 246, .2);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-mix);
    padding: 4px 18px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.pricing-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin: 20px 0 4px;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-2);
}

.pricing-card .price-sub {
    font-size: .82rem;
    color: var(--text-2);
    margin-bottom: 24px;
}

.pricing-discount {
    background: rgba(16, 185, 129, .12);
    border: 1px solid rgba(16, 185, 129, .3);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 24px;
}

.pricing-features {
    text-align: left;
    margin-bottom: 28px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: .875rem;
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border: none;
}

.pricing-features .check {
    color: var(--green);
    font-size: .9rem;
}

/* ── Live Feed ────────────────────────────────────────────── */
.live-feed {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-weight: 700;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(1.4);
    }
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .85rem;
    animation: slideIn .4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feed-item .fi-avatar {
    width: 32px;
    height: 32px;
    background: var(--grad-mix);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.feed-item .fi-text {
    flex: 1;
}

.feed-item .fi-id {
    font-weight: 700;
    color: var(--grad-1);
}

.feed-item .fi-time {
    font-size: .75rem;
    color: var(--text-3);
    margin-left: auto;
}

/* ── Steps ────────────────────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    position: relative;
}

.step-card {
    padding: 28px 24px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--grad-mix);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 auto 16px;
}

.step-card h4 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: .82rem;
    color: var(--text-2);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 40px 32px;
    text-align: center;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.footer-links a {
    font-size: .875rem;
    color: var(--text-2);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-1);
}

.footer-social {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    border-color: var(--grad-1);
    color: var(--grad-1);
    transform: translateY(-2px);
}

.footer-copy {
    font-size: .8rem;
    color: var(--text-3);
}

/* ── Login Page ───────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 44px;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo .logo-icon-lg {
    width: 64px;
    height: 64px;
    background: var(--grad-mix);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 12px;
}

.login-logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
}

.login-logo p {
    font-size: .875rem;
    color: var(--text-2);
    margin-top: 4px;
}

.tab-group {
    display: flex;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 28px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-2);
    background: transparent;
}

.tab-btn.active {
    background: var(--grad-mix);
    color: #fff;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-1);
    font-size: .9rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--grad-1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .15);
    background: rgba(139, 92, 246, .05);
}

.form-group input::placeholder {
    color: var(--text-3);
}

.login-hint {
    text-align: center;
    font-size: .8rem;
    color: var(--text-3);
    margin-top: 16px;
}

.login-hint a {
    color: var(--grad-1);
}

/* ── Dashboard Layout ─────────────────────────────────────── */
.dash-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: rgba(13, 18, 32, .95);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(20px);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: transform .3s;
}

.sidebar-logo {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--grad-mix);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.sidebar-nav .nav-section-title {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-3);
    padding: 8px 10px;
    margin-top: 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-2);
    transition: var(--transition);
    margin-bottom: 2px;
    cursor: pointer;
}

.sidebar-nav a:hover {
    color: var(--text-1);
    background: var(--bg-card-h);
}

.sidebar-nav a.active {
    color: #fff;
    background: var(--grad-mix);
}

.sidebar-nav a .nav-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.sidebar-bottom {
    padding: 16px 12px;
    border-top: 1px solid var(--border);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.user-chip .avatar {
    width: 36px;
    height: 36px;
    background: var(--grad-mix);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
}

.user-chip .user-info {
    flex: 1;
    min-width: 0;
}

.user-chip .user-name {
    font-size: .875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-chip .user-tier {
    font-size: .72rem;
    color: var(--text-2);
}

.dash-main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dash-topbar {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    padding: 0 32px;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 10, 20, .7);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 16px;
}

.dash-topbar .page-title {
    font-size: 1.1rem;
    font-weight: 700;
    flex: 1;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, .1);
    border: 1px solid rgba(139, 92, 246, .3);
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 700;
    color: #a78bfa;
}

.icon-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.icon-btn:hover {
    background: var(--bg-card-h);
    border-color: var(--border-h);
}

.icon-btn .badge-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid var(--bg-base);
}

.dash-content {
    padding: 32px;
    flex: 1;
}

/* ── Stat Cards ───────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-card .sc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-card .sc-label {
    font-size: .8rem;
    color: var(--text-2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.stat-card .sc-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.stat-card .sc-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.stat-card .sc-change {
    font-size: .78rem;
}

.sc-icon.purple {
    background: rgba(139, 92, 246, .15);
    color: #a78bfa;
}

.sc-icon.blue {
    background: rgba(59, 130, 246, .15);
    color: #60a5fa;
}

.sc-icon.green {
    background: rgba(16, 185, 129, .15);
    color: var(--green);
}

.sc-icon.yellow {
    background: rgba(245, 158, 11, .15);
    color: var(--yellow);
}

/* ── Table ────────────────────────────────────────────────── */
.table-card {
    overflow: hidden;
}

.table-card .tc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.table-card .tc-title {
    font-size: 1rem;
    font-weight: 700;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

thead th {
    padding: 14px 24px;
    text-align: left;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-3);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

tbody td {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    color: var(--text-2);
}

tbody tr:hover td {
    background: rgba(255, 255, 255, .02);
}

tbody tr:last-child td {
    border: none;
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal {
    width: 100%;
    max-width: 500px;
    padding: 36px;
    animation: scaleIn .2s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
}

.modal-close {
    background: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text-2);
    padding: 4px;
}

/* ── Products Page ────────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.product-card {
    padding: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-mix);
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover::before {
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
}

.product-img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.product-card h3 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-card .product-desc {
    font-size: .8rem;
    color: var(--text-2);
    flex: 1;
    margin-bottom: 16px;
}

.product-prices {
    margin-bottom: 16px;
}

.product-prices .orig-price {
    font-size: .8rem;
    color: var(--text-3);
    text-decoration: line-through;
}

.product-prices .your-price {
    font-size: 1.4rem;
    font-weight: 800;
}

.product-prices .savings {
    font-size: .78rem;
    color: var(--green);
    font-weight: 600;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.product-stock {
    font-size: .75rem;
    color: var(--text-3);
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    background: var(--bg-card-h);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-1);
    transition: var(--transition);
}

.qty-btn:hover {
    border-color: var(--grad-1);
    color: var(--grad-1);
}

.qty-val {
    font-size: .9rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* ── Page Content Tabs ────────────────────────────────────── */
.dash-page {
    display: none;
}

.dash-page.active {
    display: block;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nudgePulse {
    from { box-shadow: 0 0 0 0 rgba(16,185,129,.0); border-color: rgba(16,185,129,.35); }
    to   { box-shadow: 0 0 18px 4px rgba(16,185,129,.18); border-color: rgba(16,185,129,.6); }
}

.fade-up {
    animation: fadeUp .5s ease both;
}

/* ── Toast ────────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    animation: slideFromRight .3s ease;
    box-shadow: var(--shadow);
}

@keyframes slideFromRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    background: rgba(16, 185, 129, .15);
    border: 1px solid rgba(16, 185, 129, .4);
}

.toast-error {
    background: rgba(239, 68, 68, .15);
    border: 1px solid rgba(239, 68, 68, .4);
}

.toast-info {
    background: rgba(59, 130, 246, .15);
    border: 1px solid rgba(59, 130, 246, .4);
}

.toast-exit {
    animation: slideFromRight .3s ease reverse;
}

/* ── Tier Card ────────────────────────────────────────────── */
.tier-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.tier-starter {
    background: rgba(107, 114, 128, .1);
    border: 1px solid rgba(107, 114, 128, .3);
}

.tier-pro {
    background: rgba(59, 130, 246, .1);
    border: 1px solid rgba(59, 130, 246, .3);
}

.tier-elite {
    background: rgba(245, 158, 11, .1);
    border: 1px solid rgba(245, 158, 11, .3);
}

.tier-icon {
    font-size: 2rem;
}

.tier-info h4 {
    font-size: 1rem;
    font-weight: 700;
}

.tier-info p {
    font-size: .8rem;
    color: var(--text-2);
}

/* ── Progress Bar ─────────────────────────────────────────── */
.progress-bar {
    background: rgba(255, 255, 255, .06);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-fill {
    height: 100%;
    background: var(--grad-mix);
    border-radius: 999px;
    transition: width .5s;
}

/* ── Mobile ───────────────────────────────────────────────── */
.sidebar-toggle {
    display: none;
    background: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--text-1);
    padding: 4px;
}

@media(max-width:768px) {
    .navbar {
        padding: 0 20px;
    }

    .navbar .nav-links {
        display: none;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: flex;
    }

    .dash-main {
        margin-left: 0;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stats .stat-val {
        font-size: 1.5rem;
    }

    .dash-content {
        padding: 20px;
    }

    .login-card {
        padding: 28px 24px;
    }

    /* Pricing / Tier section mobile */
    .section {
        padding: 56px 16px;
    }

    /* 3-step flow: stack on mobile */
    .pricing-step-row>div {
        border-right: none !important;
        border-bottom: 1px solid var(--border);
    }

    .pricing-step-row>div:last-child {
        border-bottom: none;
    }

    /* Tier cards: compress layout */
    .tier-card-row {
        flex-direction: column;
        gap: 8px;
    }

    /* Callout card: smaller padding, wrap content */
    .pricing-callout {
        padding: 16px;
        font-size: .82rem;
    }

    .pricing-callout-icon {
        display: none;
    }

    /* Tier card inner: allow text to wrap, reduce icon */
    .glass[style*="display:flex"][style*="align-items:center"][style*="gap:20px"] {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px !important;
    }

    .glass[style*="display:flex"][style*="align-items:center"][style*="gap:20px"]>span:first-child {
        font-size: 1.3rem !important;
        min-width: 1.5rem !important;
    }

    /* Tier card headline: allow wrap */
    .glass[style*="display:flex"][style*="align-items:center"][style*="gap:20px"] [style*="display:flex"][style*="align-items:center"][style*="gap:10px"] {
        flex-wrap: wrap;
        font-size: .88rem;
    }

    /* Badge: keep right but allow it to wrap below */
    .glass[style*="display:flex"][style*="align-items:center"][style*="gap:20px"] .badge {
        margin-top: 4px;
    }

    /* Hero headline size */
    .hero h1 {
        font-size: 2.4rem;
        letter-spacing: -0.5px;
    }

    .hero p {
        font-size: .95rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: .9rem;
        width: 100%;
        justify-content: center;
        max-width: 320px;
    }

    /* Callout box compact */
    .section-inner>div[style*="border-radius:var(--radius-lg)"][style*="overflow:hidden"] {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Footer notes grid */
    .section-inner>div[style*="grid-template-columns"][style*="minmax(200px"] {
        grid-template-columns: 1fr !important;
    }
}

@media(max-width:480px) {

    /* Extra small screens */
    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-stats .stat-val {
        font-size: 1.3rem;
    }

    .glass[style*="display:flex"][style*="padding:20px 24px"] {
        padding: 14px 14px !important;
    }
}