@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Apple Obsidian Pro Theme Colors */
    --color-bg-deep: #070708;
    --color-bg-mid: #121214;
    --color-bg-card: rgba(22, 22, 24, 0.6);
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-glow: rgba(255, 255, 255, 0.08);

    /* Apple-style Accent Colors */
    --color-primary: #0071e3;
    --color-primary-glow: rgba(0, 113, 227, 0.25);
    --color-secondary: #86868b;
    --color-secondary-glow: rgba(134, 134, 139, 0.25);
    --color-success: #34c759;
    --color-warning: #ff9500;
    --color-danger: #ff453a;
    
    /* Text Colors */
    --text-main: #f5f5f7;
    --text-muted: #86868b;
    --text-glow: #ffffff;

    --transition-smooth: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
    --box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: var(--font-primary);
    background: radial-gradient(circle at top right, #0e1324 0%, #070708 65%, #040405 100%);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: #fff;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Space Background Glow Blobs */
.bg-glow-container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.22;
    animation: floatBlob 25s infinite alternate ease-in-out;
}

.bg-glow-blob-1 {
    width: 500px;
    height: 500px;
    background: var(--color-primary);
    top: -10%;
    left: -10%;
}

.bg-glow-blob-2 {
    width: 600px;
    height: 600px;
    background: var(--color-secondary);
    bottom: -15%;
    right: -10%;
    animation-delay: -5s;
}

.bg-glow-blob-3 {
    width: 400px;
    height: 400px;
    background: #8b5cf6;
    top: 40%;
    left: 50%;
    animation-delay: -10s;
}

/* Animations */
@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.15); }
    100% { transform: translate(-40px, -60px) scale(0.9); }
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.04),
        transparent
    );
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(0, 113, 227, 0.35);
    box-shadow: 0 12px 40px 0 rgba(0, 113, 227, 0.12);
    transform: translateY(-4px);
}

.glass-card:hover::before {
    left: 150%;
    transition: 0.8s ease-in-out;
}

/* Neon Glow Utilities */
.text-gradient-primary {
    background: linear-gradient(135deg, #fff 30%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-secondary {
    background: linear-gradient(135deg, #fff 30%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fff 30%, var(--color-warning) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-admin {
    background: linear-gradient(135deg, #fff 30%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-text {
    text-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.glow-text-cyan {
    text-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
}

/* Buttons */
.btn-premium {
    font-family: var(--font-primary);
    font-weight: 500;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #0071e3 0%, #00c6ff 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0077ed 0%, #00e0ff 100%);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.45);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-glow-cyan {
    background: linear-gradient(135deg, var(--color-secondary), #0891b2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}

.btn-glow-cyan:hover {
    box-shadow: 0 6px 22px rgba(6, 182, 212, 0.55);
    transform: scale(1.03);
}

/* Navigation Layout */
.navbar-glass {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 8, 17, 0.65);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 2rem;
    transition: var(--transition-smooth);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    letter-spacing: -0.5px;
}

.nav-logo-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Ticker Bar */
.ticker-wrap {
    width: 100%;
    background: rgba(13, 20, 38, 0.85);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    padding: 0.5rem 0;
}

.ticker {
    display: flex;
    width: 200%;
    animation: marquee 25s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.ticker-item span.up {
    color: var(--color-success);
}

.ticker-item span.down {
    color: var(--color-danger);
}

.ticker-coin {
    color: #fff;
}

/* Main Container spacing */
.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 4rem 0;
}

@media (max-width: 968px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

@media (max-width: 968px) {
    .hero-description {
        margin: 0 auto 2.5rem auto;
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 968px) {
    .hero-buttons {
        justify-content: center;
    }
}

/* Mock Chart Graphic */
.mock-chart-container {
    position: relative;
}

.chart-badge {
    position: absolute;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-success);
    font-weight: 700;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Grid Sections */
.section-title-wrap {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Plan Card Styles */
.plan-card {
    text-align: center;
    border: 1px solid var(--color-border);
}

.plan-card.premium {
    border-color: rgba(99, 102, 241, 0.45);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(13, 20, 38, 0.45) 100%);
    transform: scale(1.03);
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    background: rgba(0, 113, 227, 0.08);
    border: 1px solid rgba(0, 113, 227, 0.25);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.plan-price {
    font-family: var(--font-display);
    font-size: 3rem;
    color: #fff;
    margin: 1rem 0;
    font-weight: 800;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-muted);
}

.plan-features li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.plan-features li svg {
    color: var(--color-success);
}

/* Footer */
.footer {
    background: rgba(5, 8, 17, 0.95);
    border-top: 1px solid var(--color-border);
    padding: 4rem 2rem 2rem 2rem;
    margin-top: 6rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-links-title {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* About Us Layout styling */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 4rem 0;
}

@media (max-width: 580px) {
    .about-features {
        grid-template-columns: 1fr;
    }
}

/* Contact Us Layout styling */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (max-width: 860px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-family: var(--font-primary);
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

/* Dashboard Shell Layout */
.db-layout {
    display: flex;
    min-height: 100vh;
    background: transparent;
    max-width: 100%;
    overflow-x: hidden;
}

/* Sidebar Navigation */
.db-sidebar {
    width: 260px;
    background: rgba(10, 10, 12, 0.45);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid rgba(255, 255, 255, 0.035);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: var(--transition-smooth);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.db-sidebar-logo {
    margin-bottom: 1.5rem;
}

.db-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.db-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.58rem 0.9rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.db-menu-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.035);
    padding-left: 1.05rem;
}

.db-menu-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.05);
}

.db-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 3px;
    background: var(--color-primary);
    border-radius: 4px;
    opacity: 0;
    transition: all 0.2s ease;
    transform: scaleY(0.3);
}

.db-menu-link.active::before {
    opacity: 1;
    transform: scaleY(1);
    height: 60%;
    top: 20%;
}

.db-menu-link svg {
    width: 16px;
    height: 16px;
    opacity: 0.65;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.db-menu-link:hover svg {
    opacity: 1;
    transform: scale(1.05);
}

.db-menu-link.active svg {
    opacity: 1;
    color: var(--color-primary);
    filter: drop-shadow(0 0 4px var(--color-primary-glow));
}

.db-sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

.db-user-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.db-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #00c6ff);
    box-shadow: 0 0 12px rgba(0, 113, 227, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.db-user-info {
    overflow: hidden;
}

.db-user-name {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.db-user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.db-main {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

@media (max-width: 968px) {
    .db-sidebar {
        transform: translateX(-100%);
    }
    .db-sidebar.open {
        transform: translateX(0);
    }
    .db-main {
        margin-left: 0;
    }
}

.db-header {
    height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    background: rgba(7, 7, 8, 0.6);
    backdrop-filter: blur(30px) saturate(180%);
}

.db-title {
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.db-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.db-status-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    background: rgba(52, 199, 89, 0.12);
    color: var(--color-success);
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.db-status-badge.inactive {
    background: rgba(255, 69, 58, 0.12);
    color: var(--color-danger);
    border-color: rgba(255, 69, 58, 0.2);
}

.db-body {
    padding: 2.5rem;
    flex: 1;
}

/* Dashboard Metric Grids */
.db-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.metric-card {
    padding: 1.5rem;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.metric-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

.metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.metric-value {
    font-family: var(--font-primary);
    font-size: 2.25rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 0.35rem;
    letter-spacing: -0.03em;
}

.metric-change {
    font-size: 0.8rem;
    font-weight: 600;
}

.metric-change.up {
    color: var(--color-success);
}

.metric-change.down {
    color: var(--color-danger);
}

/* Chart and Tables Grid */
.db-graphics-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 1100px) {
    .db-graphics-grid {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    min-height: 380px;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.25rem;
}

/* Transactions Table */
.db-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.75rem;
}
.db-table-container::-webkit-scrollbar {
    height: 8px !important;
    display: block !important;
}
.db-table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 4px;
}
.db-table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px;
}
.db-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.db-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.db-table th {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.db-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
}

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

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-pending {
    background: rgba(245, 158, 11, 0.12);
    color: var(--color-warning);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Spreadsheet-like Table Input Controls */
.table-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 5px;
    padding: 0.32rem 0.55rem;
    color: #fff;
    font-size: 0.8rem;
    transition: all 0.2s ease-in-out;
    font-family: var(--font-primary);
}
.table-input:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}
.table-input:focus {
    outline: none;
    background: rgba(0, 113, 227, 0.05);
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 113, 227, 0.25);
}
.table-input-center {
    text-align: center;
}

.table-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 5px;
    padding: 0.32rem 0.55rem;
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-family: var(--font-primary);
}
.table-select:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}
.table-select:focus {
    outline: none;
    background: rgba(0, 113, 227, 0.05);
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 113, 227, 0.25);
}

/* Switch Toggle CSS */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
}
.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: .25s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 22px;
}
.slider-toggle:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: #86868b;
    transition: .25s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 50%;
}
input:checked + .slider-toggle {
    background-color: rgba(52, 199, 89, 0.15);
    border-color: rgba(52, 199, 89, 0.3);
}
input:checked + .slider-toggle:before {
    transform: translateX(16px);
    background-color: #34c759;
}

/* Responsive Hamburger Button & Spacings */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.3rem;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
}
.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 968px) {
    .hamburger-btn {
        display: flex;
    }
    .db-sidebar {
        z-index: 10000; /* Ensure it overlays everything on mobile */
    }
}

@media (max-width: 768px) {
    .db-header {
        padding: 0 1rem;
    }
    .db-body {
        padding: 1rem;
    }
    .db-title {
        font-size: 1.15rem;
    }
    .db-status-badge {
        display: none; /* Hide header badges to save mobile space */
    }
    .glass-card {
        padding: 1.15rem !important; /* Make card padding compact on mobile */
    }
}

/* Mobile Grid Menu Strip */
.mobile-menu-strip {
    display: none;
    background: rgba(7, 7, 8, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
}
.mobile-menu-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}
.mobile-menu-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.25) 0%, rgba(139, 92, 246, 0.18) 100%);
    border-color: rgba(0, 113, 227, 0.5);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}
.mobile-menu-link:nth-child(odd):last-child {
    grid-column: span 2;
}

@media (max-width: 968px) {
    .mobile-menu-strip {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* Unified Metrics Stats Card Grid */
.stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}
@media (max-width: 1024px) {
    .stats-summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .stats-summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 0.85rem;
    }
}
.stats-summary-item {
    padding: 0.25rem;
}

/* Referral Demo Layout */
.referral-demo-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}
.referral-demo-card-0 {
    margin-left: 0;
}
.referral-demo-card-1 {
    margin-left: 2rem;
}
.referral-demo-card-2 {
    margin-left: 4rem;
}
.referral-demo-arrow-1 {
    margin-left: 0;
    text-align: center;
}
.referral-demo-arrow-2 {
    margin-left: 2rem;
    text-align: center;
}

/* Responsive overrides for Public Pages Navbar & Hero */
.nav-toggle {
    display: none;
}

@media (max-width: 968px) {
    .referral-demo-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block !important;
        z-index: 1001;
        margin-right: 0.5rem;
    }
    .nav-logo {
        margin-right: auto;
    }
    .navbar-glass {
        padding: 0.75rem 1.5rem;
    }
    .navbar-container {
        position: relative;
    }
    .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: -1.5rem;
        right: -1.5rem;
        background: rgba(5, 8, 17, 0.98);
        border-bottom: 1px solid var(--color-border);
        padding: 1.5rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.6);
        z-index: 999;
    }
    .nav-links.active {
        display: flex !important;
    }
    .nav-link {
        font-size: 1.05rem !important;
        width: 100%;
        padding: 0.5rem 0;
        display: block;
    }
    .nav-logo span {
        font-size: 1.4rem;
    }
    .nav-logo-img {
        width: 54px;
        height: 54px;
    }
    .nav-actions .btn-premium {
        padding: 0.45rem 0.9rem;
        font-size: 0.8rem;
    }
    .hero-title {
        font-size: 2.1rem; /* Scale down the giant hero title on mobile */
    }
    .hero-buttons {
        gap: 0.75rem;
    }
    .hero-buttons .btn-premium {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .responsive-passwords-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .glass-card {
        padding: 1.25rem;
    }
    .referral-demo-card-1, .referral-demo-arrow-2 {
        margin-left: 1rem !important;
    }
    .referral-demo-card-2 {
        margin-left: 2rem !important;
    }
}

@media (max-width: 480px) {
    .nav-logo span {
        font-size: 1.15rem !important;
    }
    .nav-logo-img {
        width: 36px !important;
        height: 36px !important;
    }
    .nav-actions .btn-premium {
        padding: 0.35rem 0.7rem !important;
        font-size: 0.72rem !important;
    }
    .navbar-glass {
        padding: 0.75rem 1rem !important;
    }
}