/* ==========================================================================
   CODEX STUDIOS LIMITED — Master Design System
   Visual Identity: Deep Void, Obsidian, Silver Slate & Electric Cyan Accents
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-void: #08090d;
    --bg-base: #0d0f17;
    --bg-surface: #141724;
    --bg-elevated: #1a1e2e;
    --bg-highlight: #23293d;
    --bg-glass: rgba(18, 22, 34, 0.75);

    /* Text & Foregrounds */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #08090d;

    /* Technical & Signal Accents */
    --accent-cyan: #00e5ff;
    --accent-cyan-glow: rgba(0, 229, 255, 0.25);
    --accent-blue: #0284c7;
    --accent-blue-deep: #0369a1;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;

    /* Hairline Borders */
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-medium: rgba(255, 255, 255, 0.14);
    --border-active: rgba(0, 229, 255, 0.4);

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
    --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", Menlo, monospace;

    /* Elevation & Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 18px;
    --radius-full: 9999px;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-elevated: 0 10px 35px rgba(0, 0, 0, 0.6);
    --shadow-cyan: 0 0 25px rgba(0, 229, 255, 0.18);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow-wrap: break-word;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--bg-void);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

section[id] {
    scroll-margin-top: 90px;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    background-color: var(--bg-void);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Background Technical Ambient Mesh */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 80% 10%, rgba(0, 229, 255, 0.04) 0%, transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(2, 132, 199, 0.04) 0%, transparent 45%);
    pointer-events: none;
    z-index: -1;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.mono {
    font-family: var(--font-mono);
}

.text-cyan { color: var(--accent-cyan) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 960px;
}

.main-content {
    flex: 1 0 auto;
    padding-bottom: 4rem;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(8, 9, 13, 0.85);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-smooth);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.brand-mark {
    width: 28px;
    height: 28px;
    border: 2px solid var(--accent-cyan);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.brand-mark::after {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 1px;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    padding: 0.4rem 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

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

.nav-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.nav-cart-btn:hover {
    border-color: var(--border-active);
    color: var(--accent-cyan);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-cyan);
    color: var(--text-inverse);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ==========================================================================
   Buttons & Action Controls
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-smooth);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--text-inverse);
    box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.btn-primary:hover {
    background: #4ef0ff;
    color: var(--text-inverse);
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--border-active);
    color: var(--accent-cyan);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.05);
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Cards & Content Containers
   ========================================================================== */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

/* Equal-height stretching strictly for direct items in multi-column rows */
.grid-3col > .card,
.grid-auto > .card {
    height: 100%;
}

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

.card-elevated {
    background: var(--bg-elevated);
    border-color: var(--border-medium);
}

.card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.card-footer {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.card-grid-title {
    min-height: 2.7em;
    line-height: 1.35;
    margin-bottom: 0.65rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-grid-tagline {
    min-height: 2.8em;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer-clean {
    border-top: none;
    padding-top: 0;
}

.card-header-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-header-flex .badge {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--bg-highlight);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
    line-height: 1.2;
    flex-shrink: 0;
}

.badge-cyan {
    background: rgba(0, 229, 255, 0.12);
    color: var(--accent-cyan);
    border-color: rgba(0, 229, 255, 0.3);
}

.badge-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald);
    border-color: rgba(16, 185, 129, 0.3);
}

.badge-amber {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-amber);
    border-color: rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   Forms & Controls
   ========================================================================== */
.form-group {
    margin-bottom: 1.25rem;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: var(--bg-base);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}

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

/* ==========================================================================
   Flash Alerts & Notifications
   ========================================================================== */
.flash-container {
    margin-bottom: 1.5rem;
}

.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.flash-success {
    background: rgba(16, 185, 129, 0.15);
    color: #a7f3d0;
    border-color: rgba(16, 185, 129, 0.4);
}

.flash-error {
    background: rgba(244, 63, 94, 0.15);
    color: #fecdd3;
    border-color: rgba(244, 63, 94, 0.4);
}

.flash-info {
    background: rgba(0, 229, 255, 0.15);
    color: #cffafe;
    border-color: rgba(0, 229, 255, 0.4);
}

.flash-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.4);
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
}

/* ==========================================================================
   Page Sections & Layout Grids
   ========================================================================== */
.content-section {
    padding: 3.5rem 0;
    position: relative;
}

.content-section-compact {
    padding: 2.25rem 0;
    position: relative;
}

.feature-section {
    padding: 4.5rem 0;
    position: relative;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

/* Specifications & Parameter List Styling */
.product-specs-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 0;
}

.spec-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    box-sizing: border-box;
}

.spec-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.spec-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.section-header-title {
    max-width: 680px;
}

.legal-card {
    padding: 2.5rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.license-box {
    background: var(--bg-base);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.license-key-text {
    font-family: var(--font-mono);
    word-break: break-all;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent-cyan);
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */
.hero-section {
    padding: 4.25rem 0 3.25rem;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-tag::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
}

.hero-title {
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   Data Tables
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.table th {
    background: var(--bg-elevated);
    padding: 1rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-medium);
}

.table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

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

.table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--bg-base);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.footer-col-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

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

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

.footer-link:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.825rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Grid & Layout Utilities
   ========================================================================== */
.account-dashboard-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
}

.account-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.invoice-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.mobile-only-link {
    display: none;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .account-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

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

    .grid-3col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-header-row {
        margin-bottom: 2rem;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .mobile-only-link {
        display: block;
    }

    .account-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .account-nav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.75rem;
    }

    .account-nav-grid .card {
        padding: 0.85rem 0.5rem !important;
    }

    .account-nav-grid .card div:last-child {
        font-size: 0.8rem;
    }

    .form-row-2col,
    .invoice-details-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .container {
        padding: 0 1rem !important;
    }

    .site-header {
        overflow-x: clip;
    }

    .nav-wrapper {
        height: 64px;
        gap: 0.4rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
    }

    header nav {
        display: contents;
    }

    .brand-mark {
        width: 24px !important;
        height: 24px !important;
        flex-shrink: 0;
    }

    .brand-logo {
        font-size: 0.9rem !important;
        gap: 0.45rem !important;
        min-width: 0 !important;
        flex: 0 1 auto !important;
        max-width: calc(100% - 115px) !important;
        overflow: hidden !important;
    }

    .brand-logo > div {
        min-width: 0 !important;
        overflow: hidden !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .brand-logo span:first-child {
        font-size: clamp(0.85rem, 3.8vw, 1.05rem) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    .brand-logo .mono {
        font-size: 0.58rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    .nav-actions {
        display: flex !important;
        align-items: center !important;
        gap: 0.35rem !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }

    .nav-actions .badge {
        display: none !important;
    }

    .nav-actions .btn {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.75rem !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .nav-actions a[href="/logout"] {
        display: none !important;
    }

    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0 !important;
        font-size: 1.4rem !important;
        line-height: 1 !important;
        flex-shrink: 0 !important;
    }

    .hero-tag {
        font-size: 0.72rem !important;
        letter-spacing: 0.08em !important;
        gap: 0.35rem !important;
        flex-wrap: wrap !important;
    }

    .hero-section {
        padding: 2.25rem 0 1.75rem;
    }

    .content-section {
        padding: 2rem 0;
    }

    .content-section-compact {
        padding: 1.5rem 0;
    }

    .feature-section {
        padding: 2.25rem 0;
    }

    .legal-card {
        padding: 1.25rem;
    }

    h1, .hero-title {
        font-size: clamp(1.75rem, 6.5vw, 2.35rem) !important;
    }

    h2, [style*="font-size: 2.2rem"] {
        font-size: clamp(1.35rem, 5vw, 1.85rem) !important;
    }

    h3, [style*="font-size: 1.5rem"] {
        font-size: clamp(1.15rem, 4vw, 1.35rem) !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 1.25rem;
    }

    .card {
        padding: 1.25rem !important;
    }

    .license-box {
        padding: 1rem !important;
    }

    .license-key-text {
        font-size: clamp(0.92rem, 3.8vw, 1.15rem) !important;
    }

    .card-grid-title, .card-grid-tagline {
        min-height: auto;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
        background: rgba(8, 9, 13, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem 1.25rem;
        border-bottom: 1px solid var(--border-medium);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
        gap: 1rem;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-cta {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.85rem;
    }

    .hero-cta a,
    .hero-cta button,
    .hero-cta .btn {
        width: 100% !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .brand-logo .mono {
        display: none !important;
    }

    .account-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .hero-section {
        padding: 2rem 0 1.5rem;
    }

    .card {
        padding: 1rem !important;
    }

    .nav-actions .btn-sm {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
    }

    .nav-actions #navAdminBtn {
        display: none !important;
    }

    .nav-actions a[href="/logout"] {
        display: none !important;
    }
}

/* ==========================================================================
   Anti-Spam Decoy Traps
   ========================================================================== */
.cdx-hp-container,
.cdx-hp-group {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
