/* ===========================================
   NETRCOL DASHBOARD - PREMIUM LANDING PAGE
   Cyan Tech Theme - Award-Winning Design
   =========================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --bg-primary: #0a0f1a;
    --bg-secondary: #0d1526;
    --bg-tertiary: #111827;
    --accent: #00d4ff;
    --accent-secondary: #0891b2;
    --accent-glow: rgba(0, 212, 255, 0.4);
    --accent-subtle: rgba(0, 212, 255, 0.1);
    --text: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #64748b;
    --border: rgba(0, 212, 255, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.05);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0891b2 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(8, 145, 178, 0.1) 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(0, 212, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(8, 145, 178, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(0, 212, 255, 0.1) 0px, transparent 50%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.3);
    --shadow-glow-intense: 0 0 60px rgba(0, 212, 255, 0.5);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', var(--font-primary);

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1400px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== MESH BACKGROUND ===== */
.mesh-gradient {
    position: fixed;
    inset: 0;
    background: var(--gradient-mesh);
    pointer-events: none;
    z-index: -3;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -2;
    opacity: 0.5;
}

#particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-base);
}

.navbar.scrolled {
    padding: 15px 5%;
    background: rgba(10, 15, 26, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.4rem;
    font-family: var(--font-display);
}

.nav-logo img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-glow);
    transition: var(--transition-base);
}

.nav-logo:hover img {
    transform: rotate(10deg) scale(1.1);
    box-shadow: var(--shadow-glow-intense);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid var(--border-subtle);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-base);
    position: relative;
}

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

.nav-link.active {
    color: var(--bg-primary);
    background: var(--accent);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-btn-secondary {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-base);
}

.nav-btn-secondary:hover {
    color: var(--accent);
}

.nav-btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-glow);
    border: none;
    cursor: pointer;
}

.nav-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-intense);
}

/* Logged-in User Profile */
.nav-user-logged {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    padding: 6px 16px 6px 6px;
    border-radius: 50px;
    border: 1px solid var(--border-subtle);
}

.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.nav-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    z-index: 999;
    flex-direction: column;
    gap: 15px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 5% 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-subtle);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0.5;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 50px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

.btn {
    padding: 18px 40px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-intense);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: var(--accent-subtle);
    transform: translateY(-4px);
}

/* Hero Visual */
.hero-visual {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 400px;
    opacity: 0.15;
    pointer-events: none;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: var(--section-padding) 5%;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-subtle);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.section-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 24px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.bento-card {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition-base);
}

.bento-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.bento-card:hover::before {
    opacity: 1;
}

/* Card Sizes */
.bento-card.large {
    grid-column: span 6;
    grid-row: span 2;
}

.bento-card.medium {
    grid-column: span 6;
}

.bento-card.small {
    grid-column: span 4;
}

.bento-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 24px;
    transition: var(--transition-base);
}

.bento-card:hover .bento-icon {
    background: var(--accent);
    color: var(--bg-primary);
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.bento-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: var(--font-display);
}

.bento-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* ===== STATS SECTION ===== */
.stats {
    padding: var(--section-padding) 5%;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    max-width: var(--container-max);
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.stat-number .suffix {
    font-size: 0.5em;
    -webkit-text-fill-color: var(--accent);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.stat-item .live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

/* ===== COMMANDS SECTION ===== */
.commands {
    padding: var(--section-padding) 5%;
}

.commands-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.commands-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.tab-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 18px 24px;
    text-align: left;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-base);
}

.tab-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text);
    padding-left: 28px;
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.commands-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 35px;
}

.cmd-group {
    display: none;
    animation: fadeIn 0.3s ease;
}

.cmd-group.active {
    display: block;
}

.cmd-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-base);
    border-radius: 12px;
    margin-bottom: 8px;
}

.cmd-item:hover {
    background: var(--accent-subtle);
    padding-left: 28px;
}

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

.cmd-name {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: var(--accent);
    font-weight: 600;
    font-size: 1.05rem;
    background: var(--bg-tertiary);
    padding: 6px 14px;
    border-radius: 8px;
}

.cmd-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== FAQ SECTION ===== */
.faq {
    padding: var(--section-padding) 5%;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition-base);
}

.faq-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--text);
}

.faq-question i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 4px;
}

.faq-answer {
    color: var(--text-muted);
    line-height: 1.7;
    padding-left: 34px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 80px 5% 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    max-width: var(--container-max);
    margin: 0 auto 60px;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 20px;
    font-family: var(--font-display);
}

.footer-brand .logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
    max-width: var(--container-max);
    margin: 0 auto;
}

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

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition-base);
}

.footer-socials a:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

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

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--accent-glow), 0 0 60px var(--accent-glow);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {

    .bento-card.large,
    .bento-card.medium {
        grid-column: span 6;
    }

    .bento-card.small {
        grid-column: span 6;
    }
}

@media (max-width: 992px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    /* Mobile Menu Styles - only show when active on mobile */
    .mobile-menu.active {
        display: flex !important;
        visibility: visible;
        opacity: 1;
    }

    .mobile-menu .nav-link {
        padding: 15px 20px;
        background: var(--bg-tertiary);
        border-radius: 12px;
        text-align: center;
        font-weight: 600;
    }

    .mobile-menu .nav-btn-primary {
        width: 100%;
        justify-content: center;
        padding: 16px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero {
        padding: 120px 5% 80px;
        min-height: auto;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    .bento-card.large,
    .bento-card.medium,
    .bento-card.small {
        grid-column: span 12;
        grid-row: span 1;
    }

    .bento-grid {
        gap: 20px;
    }

    .bento-card {
        padding: 25px;
    }

    .bento-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .commands-container {
        grid-template-columns: 1fr;
    }

    .commands-tabs {
        flex-direction: row;
        overflow-x: auto;
        position: static;
        padding: 10px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .cmd-item {
        padding: 15px;
    }

    .cmd-name {
        font-size: 0.95rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-item {
        padding: 25px;
    }

    .faq-question {
        font-size: 1.1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }

    /* Stats Grid Mobile */
    .stats-grid {
        flex-direction: column;
        gap: 30px;
    }

    .stat-item {
        padding: 20px;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    /* Section Headers Mobile */
    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
    }

    /* Admin Modal Mobile */
    .admin-modal {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .admin-modal-body {
        padding: 20px;
    }

    .admin-modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .admin-btn-cancel,
    .admin-btn-save {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    :root {
        --section-padding: 60px;
    }

    .navbar {
        padding: 15px 20px;
    }

    .nav-logo span {
        display: none;
    }

    .nav-logo img {
        width: 40px;
        height: 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .bento-card {
        padding: 20px;
    }

    .bento-title {
        font-size: 1.2rem;
    }

    .commands-tabs {
        padding: 8px;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .tab-btn i {
        display: none;
    }

    .faq-item {
        padding: 20px;
    }

    .faq-question {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .faq-answer {
        font-size: 0.95rem;
    }

    .stats-grid {
        gap: 25px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 60px 20px 30px;
    }

    .footer-col h4 {
        font-size: 1rem;
    }

    .footer-col ul li a {
        font-size: 0.95rem;
    }

    /* Touch friendly */
    .admin-edit-btn {
        width: 40px;
        height: 40px;
    }
}

/* ===== TOUCH DEVICE IMPROVEMENTS ===== */
@media (hover: none) {

    /* Disable hover effects that look bad on touch */
    .bento-card:hover {
        transform: none;
    }

    .btn:hover,
    .nav-btn-primary:hover {
        transform: none;
    }

    /* Make touch targets bigger */
    .nav-link,
    .footer-col ul li a {
        padding: 12px 0;
    }

    /* Active states for touch */
    .btn:active {
        transform: scale(0.98);
    }

    .bento-card:active {
        transform: scale(0.99);
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* ===== SELECTION ===== */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ===== ENHANCED MICRO-INTERACTIONS ===== */
/* Button press feedback */
.btn:active,
.nav-btn-primary:active,
.nav-btn-secondary:active,
.tab-btn:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
}

/* Card subtle glow on hover */
.bento-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 25px;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(0, 212, 255, 0.15) 0%,
            transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.bento-card:hover::after {
    opacity: 1;
}

/* FAQ item highlight effect */
.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 4px 0 0 4px;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.faq-item:hover::before {
    transform: scaleY(1);
}

/* Command item slide indicator */
.cmd-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    width: 4px;
    height: 60%;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
    transition: transform 0.3s ease;
}

.cmd-item:hover::before {
    transform: translateY(-50%) scaleX(1);
}

.cmd-item {
    position: relative;
}

/* ===== SCROLL PROGRESS INDICATOR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 10000;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s ease-out;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-intense);
}

.back-to-top:active {
    transform: scale(0.95);
}

/* ===== LOADING SPINNER ===== */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== SKELETON LOADING ===== */
.skeleton {
    background: linear-gradient(90deg,
            var(--bg-tertiary) 0%,
            var(--bg-secondary) 50%,
            var(--bg-tertiary) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===== TOOLTIP ===== */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--bg-tertiary);
    color: var(--text);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    border: 1px solid var(--border);
    z-index: 100;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

/* ===== RESPONSIVE ADJUSTMENTS FOR NEW ELEMENTS ===== */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .scroll-progress {
        height: 2px;
    }
}