:root {
    --bg-color: #000000;
    /* Pure Cinematic Black */
    --bg-elevated: #080808;
    --text-primary: #ffffff;
    --text-sec: #888888;
    --text-muted: #444444;
    --accent: #ffffff;
    /* Čistě bílá / Stříbrná místo zelené */
    --metallic: linear-gradient(135deg, #ffffff 0%, #a0a0a0 50%, #404040 100%);
    /* Liquid Chrome */
    --border-color: #1a1a1a;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --border-thin: 1px solid var(--border-color);
    --noise-bg: url('/assets/noise.png');
}

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

html {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

body.modal-open {
    overflow: hidden !important;
}

/* Background Grid Pattern - Acid Style */
.bg-pattern {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    background-image: linear-gradient(to right, #111 1px, transparent 1px), linear-gradient(to bottom, #111 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, transparent 60%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, transparent 60%);
}

/* CSS-generated raw noise texture added to the very top */
.tv-noise {
    position: fixed;
    inset: 0;
    z-index: 9987;
    pointer-events: none;
    background: var(--noise-bg);
    opacity: 0.05;
    mix-blend-mode: screen;
}

/* WOW Effect: Scanlines - redefined for premium feel */
.scanlines {
    position: fixed;
    inset: 0;
    z-index: 9988;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    opacity: 0.15;
}

/* Blur Background Aesthetic */
.blur-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.blur-blob {
    position: absolute;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    filter: blur(150px);
    border-radius: 50%;
    animation: floating-blur 20s ease-in-out infinite alternate;
    will-change: transform;
}

.bb-1 {
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.bb-2 {
    bottom: -10%;
    right: -10%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.bb-3 {
    top: 30%;
    right: 10%;
    width: 40vw;
    height: 40vw;
    animation-duration: 20s;
    animation-delay: -10s;
}

@keyframes floating-blur {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10%, 10%) scale(1.1);
    }
}

/* Modal Styling */
.registration-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.registration-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-close {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s;
}

.modal-close:hover {
    transform: rotate(90deg);
    color: var(--accent);
}

.modal-content {
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    background: #050505;
    border: 1px solid #151515;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.modal-header h2 {
    font-size: 2rem;
    letter-spacing: -0.02em;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

.btn-tactical-subtle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
}

.btn-tactical-subtle:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.folder-rename-mini-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tactical-input-sm {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 8px 15px;
    outline: none;
    width: 180px;
}

.tactical-input-sm:focus {
    border-color: var(--accent);
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 3px;
}

.form-group input {
    background: #0a0a0a;
    border: 1px solid #151515;
    padding: 12px 15px;
    color: #fff;
    font-family: var(--font-body);
    outline: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.form-group input:focus {
    border-color: #444;
    background: #111;
}

.modal-footer {
    margin-top: 2rem;
    border-top: 1px solid #111;
    padding-top: 1rem;
    opacity: 0.4;
}

.textured-bg {
    position: relative;
    z-index: 1;
}

.mobile-menu-btn {
    display: none;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10006;
    padding: 0;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.hamburger-line {
    display: block;
    width: 18px;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.3s ease, 
                background-color 0.3s ease;
    transform-origin: center;
}

/* Morphing to X state */
.mobile-menu-btn.active .line-1 {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .line-2 {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active .line-3 {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-btn.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

/* CAD Corners Hover animations for Menu Button & Drawer Close Button */
.mobile-menu-btn:hover .cad-focus-frame span,
.mobile-nav-drawer .mobile-drawer-close:hover .cad-focus-frame span {
    border-color: #fff;
}

.mobile-menu-btn:hover .cad-focus-frame span:nth-child(1),
.mobile-nav-drawer .mobile-drawer-close:hover .cad-focus-frame span:nth-child(1) {
    transform: translate(-3px, -3px);
}

.mobile-menu-btn:hover .cad-focus-frame span:nth-child(2),
.mobile-nav-drawer .mobile-drawer-close:hover .cad-focus-frame span:nth-child(2) {
    transform: translate(3px, -3px);
}

.mobile-menu-btn:hover .cad-focus-frame span:nth-child(3),
.mobile-nav-drawer .mobile-drawer-close:hover .cad-focus-frame span:nth-child(3) {
    transform: translate(-3px, 3px);
}

.mobile-menu-btn:hover .cad-focus-frame span:nth-child(4),
.mobile-nav-drawer .mobile-drawer-close:hover .cad-focus-frame span:nth-child(4) {
    transform: translate(3px, 3px);
}

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex;
    }

    .desktop-only {
        display: none !important;
    }

    .navbar {
        padding: 1.2rem 4vw;
    }
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

/* Custom Selection */
::selection {
    background: var(--text-primary);
    color: #000;
}

/* Typography */
h1,
h2,
h3,
h4,
.font-heading {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.05;
}

.mono-label,
.pc-num,
.svc-index,
.stat-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-sec);
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 6rem);
    letter-spacing: -0.03em;
    font-weight: 500;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4vw;
}

.container-tight {
    max-width: 1200px;
}

.bordered-section {
    padding: 10vh 0;
    border-top: var(--border-thin);
}

/* GSAP */
.reveal-text .char {
    transform: translateY(110%);
    opacity: 0;
}

body.loading {
    overflow: hidden;
}

body.modal-open {
    overflow: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preloader-text {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--text-sec);
}

.preloader-progress {
    width: 250px;
    height: 1px;
    background: var(--border-color);
    margin-top: 15px;
    position: relative;
}

.preloader-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--after-width, 0%);
    background: var(--text-primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4vw;
    z-index: 9990;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-sec);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-sec);
    font-family: var(--font-mono);
    font-size: 0.95rem; /* Zvětšeno z 0.72rem */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    letter-spacing: 0.1em; /* Mírně zmenšeno z 0.15em kvůli většímu fontu */
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
    padding: 6px 12px; /* Větší padding pro lepší klikatelnost a proporce */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Left Bracket */
.nav-link::before {
    content: '[';
    position: absolute;
    left: -5px;
    opacity: 0;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-weight: 300;
    transform: scaleY(0.5);
}

/* Right Bracket (Replacing the old underline logic) */
.nav-link::after {
    content: ']';
    position: absolute;
    right: -5px;
    opacity: 0;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-weight: 300;
    transform: scaleY(0.5);
    /* Reset previous underline styles */
    width: auto;
    height: auto;
    background: none;
    bottom: auto;
    left: auto;
}

.nav-link:hover {
    color: #fff;
    letter-spacing: 0.3em;
}

.nav-link:hover::before {
    opacity: 1;
    left: -2px;
    transform: scaleY(1.2);
}

.nav-link:hover::after {
    opacity: 1;
    right: -2px;
    transform: scaleY(1.2);
    width: auto; /* Ensure it doesn't take width: 100% from previous style */
}

.lang-switcher {
    display: flex;
    gap: 0;
    align-items: center;
    margin-left: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    padding: 3px;
    position: relative;
    overflow: hidden;
}

.lang-btn {
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 8px 16px;
    letter-spacing: 1px;
}

.lang-btn.active {
    background: #fff;
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.lang-btn:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Admin Nav Menu */
.nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.auth-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-filled {
    background: #fff;
    color: #000;
    border-color: #fff;
    font-weight: 700;
}

.auth-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.auth-btn:hover *,
.auth-btn:hover i {
    color: #fff !important;
}

.nav-admin-btn {
    background: transparent;
    color: #fff;
    padding: 6px 14px;
    border-radius: 0;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-admin-btn:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-admin-db {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-sec);
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-admin-db:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}


/* GLOBAL PERSISTENT BACKGROUND (REDO) */
.global-site-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    background: url('/assets/kolaz_v5.jpg') repeat-y top center / 100% auto;
    opacity: 0.45;
    filter: brightness(0.99);
    pointer-events: none;
}

.global-site-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    /* Balanced overlay */
    pointer-events: none;
}

/* =============================================
   HERO V2 — 3-COLUMN LAYOUT
   ============================================= */

.hero-v2 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: transparent;
    padding-top: 80px;
}

/* Nodes layer */
.hero-v2-nodes {
    opacity: 0.15;
    z-index: 1;
}

.hero-v2-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 10;
    flex: 1;
}

/* ---- SIDE PANELS ---- */
.hero-side-panel {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    opacity: 0;
    animation: simple-reveal 1s ease forwards;
    animation-delay: 2s;
    justify-content: center;
    position: absolute;
    top: 45%;
    /* Moved slightly higher */
    transform: translateY(-50%);
    width: 280px;
    z-index: 20;
}

.hero-panel-left {
    left: 2vw;
}

.hero-panel-right {
    right: 2vw;
}

.hpanel-header {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 0.6rem;
    margin-bottom: 0.2rem;
}

.hpanel-section {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.hpanel-label {
    font-size: 0.52rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
}

.hpanel-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    width: 100%;
}

/* Services list (left panel) */
.hpanel-service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hpanel-service-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.hpanel-service-item>i {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
    flex-shrink: 0;
    transition: color 0.3s;
}

.hpanel-service-item:hover>i {
    color: #ff9500;
}

.hpanel-svc-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.hpanel-svc-desc {
    display: block;
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.1em;
    margin-top: 2px;
}

.hpanel-bio {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    font-style: italic;
}

/* Availability badge */
.hpanel-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(52, 199, 89, 0.06);
    border: 1px solid rgba(52, 199, 89, 0.2);
    padding: 0.5rem 0.8rem;
    margin-top: 0.4rem;
}

.hpanel-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34c759;
    box-shadow: 0 0 8px #34c759;
    animation: pulse-live 2s infinite;
    flex-shrink: 0;
}

.hpanel-badge .mono-label {
    color: rgba(52, 199, 89, 0.7);
    font-size: 0.5rem;
    letter-spacing: 0.15em;
}

/* Tech specs grid (right panel) */
.hpanel-spec-grid {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.hpanel-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.4rem;
}

.hpanel-spec-row .mono-label {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.hpanel-spec-val {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hpanel-spec-val.accent-val {
    color: #ff9500;
}

/* Social links */
.hpanel-social-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hpanel-social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.hpanel-social-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.hpanel-social-link>i:first-child {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.hpanel-social-link span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hpanel-arrow {
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.hpanel-social-link:hover .hpanel-arrow {
    opacity: 0.6;
}

/* Response bar */
.hpanel-response-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.07);
    width: 100%;
    border-radius: 2px;
    overflow: hidden;
}

.hpanel-response-fill {
    height: 100%;
    width: 85%;
    background: linear-gradient(to right, #007aff, #34c759);
    border-radius: 2px;
    animation: response-bar-anim 2.5s ease forwards;
    animation-delay: 2.5s;
    width: 0;
}

@keyframes response-bar-anim {
    from {
        width: 0;
    }

    to {
        width: 85%;
    }
}

.hpanel-response-label {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 0.3rem;
    letter-spacing: 0.1em;
}

/* ---- CENTERED VERTICAL LAYOUT ---- */
.hero-v2-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
    gap: 1.6rem;
    opacity: 0;
    animation: simple-reveal 1s ease forwards;
    animation-delay: 1.8s;
}

/* keep legacy classes unused but not broken */
.hero-v2-inner {
    display: none;
}

.hero-v2-left {
    display: none;
}

.hero-v2-right {
    display: none;
}

.hero-v2-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

.hero-rec-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 8px #ff3b30;
    animation: pulse-live 1.5s infinite;
    vertical-align: middle;
    margin-right: 2px;
}

.hero-v2-brand-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-v2-title {
    font-size: clamp(4rem, 9vw, 12rem);
    font-weight: 900;
    font-family: var(--font-heading);
    color: #ffffff;
    letter-spacing: -0.04em;
    line-height: 0.85;
    text-transform: uppercase;
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.07));
    opacity: 0;
    animation: simple-reveal 1.2s ease forwards;
    animation-delay: 2s;
}

.hero-v2-tagline {
    opacity: 0.45;
    letter-spacing: 0.4em;
    font-size: 0.7rem;
    text-transform: uppercase;
    text-align: center;
}

/* Service Pills */
.hero-v2-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    animation: simple-reveal 1s ease forwards;
    animation-delay: 2.3s;
}

.service-pill {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.9rem;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.02);
}

.service-pill:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.service-pill.accent-pill {
    color: #ff9500;
    border-color: rgba(255, 149, 0, 0.3);
    background: rgba(255, 149, 0, 0.04);
}

.service-pill.accent-pill:hover {
    border-color: rgba(255, 149, 0, 0.7);
    background: rgba(255, 149, 0, 0.08);
    box-shadow: 0 0 12px rgba(255, 149, 0, 0.1);
}

/* Description */
.hero-v2-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 560px;
    font-family: var(--font-body);
    text-align: center;
    opacity: 0;
    animation: simple-reveal 1s ease forwards;
    animation-delay: 2.5s;
}

/* Actions */
.hero-v2-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: simple-reveal 1s ease forwards;
    animation-delay: 2.7s;
}

/* Bottom section (desc + CTA) */
.hero-v2-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    width: 100%;
}

.btn-secondary-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.2rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.btn-secondary-hero:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

/* ---- VIDEO WRAP (centered) ---- */
.hero-v2-video-wrap {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    opacity: 0;
    animation: simple-reveal 1.2s ease forwards;
    animation-delay: 2.2s;
}

.hero-v2-video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.45;
    font-size: 0.62rem;
    letter-spacing: 2px;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-v2-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background-color: #020202;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    overflow: hidden;
}

/* Scanline overlay on video */
.hero-v2-frame-scanline {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom,
            transparent 0px,
            transparent 3px,
            rgba(0, 0, 0, 0.06) 3px,
            rgba(0, 0, 0, 0.06) 4px);
    mix-blend-mode: multiply;
}

.hero-v2-frame-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.4;
    font-size: 0.62rem;
    letter-spacing: 2px;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- INFO BAR ---- */
.hero-v2-infobar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 4vw;
    position: relative;
    z-index: 10;
    opacity: 0;
    animation: simple-reveal 1s ease forwards;
    animation-delay: 3s;
}

.hero-infobar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0 2.5vw;
    flex: 1;
    text-align: center;
}

.hero-infobar-val {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
}

.hero-infobar-sep {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Keep legacy classes that may be referenced in JS */
.hero-center-workspace {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    padding-top: 100px;
    background: transparent;
}

.hero-center-content {
    position: relative;
    z-index: 100;
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-top-labels-center {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    width: 100%;
    opacity: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    animation: simple-reveal 1s ease forwards;
    animation-delay: 1.8s;
}

.giant-branding-wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1000;
}

.giant-branding {
    font-size: clamp(3rem, 10vw, 11rem);
    font-weight: 900;
    font-family: var(--font-heading);
    color: #ffffff;
    letter-spacing: -0.04em;
    line-height: 0.8;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    animation: simple-reveal 1.2s ease forwards;
    animation-delay: 2s;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.05));
    display: inline-block;
}

@keyframes simple-reveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.hero-title {
    font-size: clamp(2rem, 5vw, 5rem);
    margin-top: 0.5rem;
    letter-spacing: -0.02em;
    font-weight: 500;
    opacity: 0.8;
}

.hero-subline {
    text-align: center;
    margin-top: 1rem;
    opacity: 0.5;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    color: var(--text-sec);
    text-transform: uppercase;
}

/* Node Editor Design Layer */
.node-design-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.4;
}

.node-element {
    position: absolute;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 0.8rem;
    min-width: 140px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.node-header {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.4rem;
    margin-bottom: 0.4rem;
    display: flex;
    justify-content: space-between;
    opacity: 0.8;
}

.node-port {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #444;
    position: absolute;
}

.node-port.input {
    left: -4px;
    top: 50%;
}

.node-port.output {
    right: -4px;
    top: 50%;
}

.node-port.active {
    background: #007aff;
    box-shadow: 0 0 8px #007aff;
}

.node-port.orange {
    background: #ff9500;
    box-shadow: 0 0 8px #ff9500;
}

.node-connection-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.node-path {
    fill: none;
    stroke: rgba(0, 122, 255, 0.4);
    stroke-width: 1.5;
}

.node-path.orange {
    stroke: rgba(255, 149, 0, 0.4);
}

/* Centered Monitor Workspace (legacy) */
.monitor-workspace {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.media-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    background-color: #020202;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
}

.frame-corners {
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 1.8rem;
    color: #fff;
    z-index: 12;
}

.hero-video {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.frame-label {
    margin-top: 0.8rem;
    text-align: right;
    color: var(--text-sec);
    font-size: 0.65rem;
    letter-spacing: 2px;
}

/* CTA Group */
.hero-cta-group {
    margin-top: 4rem;
    position: relative;
    z-index: 10;
    text-align: center;
}

.btn-primary {
    padding: 1.2rem 3.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-decoration: none;
    color: #000;
    background: var(--metallic);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    border: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 2px;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

/* Side Info Panels */
.ui-interface-wrapper {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.ui-panel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    padding: 1.5rem;
    pointer-events: auto;
}

.ui-panel-left {
    left: 4vw;
}

.ui-panel-right {
    right: 4vw;
}

.ui-panel .mono-label {
    display: block;
    margin-bottom: 1rem;
    opacity: 0.4;
    font-size: 0.6rem;
}

.ui-stat {
    margin-bottom: 1.2rem;
}

.ui-stat .stat-label {
    font-size: 0.55rem;
    color: var(--text-sec);
    display: block;
    margin-bottom: 0.4rem;
}

.ui-stat .stat-bar {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    position: relative;
}

.ui-stat .stat-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #fff;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .hero-v2-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .hero-side-panel {
        display: none;
    }

    .hero-v2-center {
        padding: 90px 4vw 1rem;
        gap: 1.2rem;
    }

    .hero-v2-title {
        font-size: clamp(3rem, 12vw, 6rem);
    }

    .hero-v2-video-wrap {
        max-width: 100%;
    }

    .hero-v2-nodes {
        opacity: 0.12;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .hero-v2-grid {
        grid-template-columns: 180px 1fr 180px;
    }

    .hero-side-panel {
        padding: 100px 0.8rem 1.5rem;
    }
}

@media (max-width: 1200px) {
    .node-design-layer {
        opacity: 0.2;
    }

    .giant-branding {
        font-size: 4rem;
    }
}

/* Manifesto Section */
.manifesto-section {
    position: relative;
    z-index: 10;
    text-align: center;
}

.manifesto-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.manifesto-content p {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-center-content {
    position: relative;
    z-index: 100;
    /* Higher than background layers */
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-top-labels-center {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    width: 100%;
    opacity: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    animation: simple-reveal 1s ease forwards;
    animation-delay: 1.8s;
    /* After preloader */
}

.giant-branding-wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1000;
}

.giant-branding {
    font-size: clamp(3rem, 10vw, 11rem);
    font-weight: 900;
    font-family: var(--font-heading);
    color: #ffffff;
    letter-spacing: -0.04em;
    line-height: 0.8;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    animation: simple-reveal 1.2s ease forwards;
    animation-delay: 2s;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.05));
    display: inline-block;
}

@keyframes simple-reveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.hero-title {
    font-size: clamp(2rem, 5vw, 5rem);
    margin-top: 0.5rem;
    letter-spacing: -0.02em;
    font-weight: 500;
    opacity: 0.8;
}

.hero-subline {
    text-align: center;
    margin-top: 1rem;
    opacity: 0.5;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    color: var(--text-sec);
    text-transform: uppercase;
}

/* Node Editor Design Layer */
.node-design-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.4;
}

.node-element {
    position: absolute;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 0.8rem;
    min-width: 140px;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.node-header {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.4rem;
    margin-bottom: 0.4rem;
    display: flex;
    justify-content: space-between;
    opacity: 0.8;
}

.node-port {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #444;
    position: absolute;
}

.node-port.input {
    left: -4px;
    top: 50%;
}

.node-port.output {
    right: -4px;
    top: 50%;
}

.node-port.active {
    background: #007aff;
    box-shadow: 0 0 8px #007aff;
}

.node-port.orange {
    background: #ff9500;
    box-shadow: 0 0 8px #ff9500;
}

.node-connection-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.node-path {
    fill: none;
    stroke: rgba(0, 122, 255, 0.4);
    stroke-width: 1.5;
}

.node-path.orange {
    stroke: rgba(255, 149, 0, 0.4);
}

/* Centered Monitor Workspace */
.monitor-workspace {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 720px;
    /* Even smaller as requested */
    margin: 0 auto;
}

.media-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 2px solid rgba(255, 255, 255, 0.3);
    /* Stronger border */
    padding: 1rem;
    display: flex;
    flex-direction: column;
    background-color: #020202;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
}

.frame-corners {
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 1.8rem;
    color: #fff;
    z-index: 12;
}

.hero-video {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.frame-label {
    margin-top: 0.8rem;
    text-align: right;
    color: var(--text-sec);
    font-size: 0.65rem;
    letter-spacing: 2px;
}

/* CTA Group */
.hero-cta-group {
    margin-top: 4rem;
    position: relative;
    z-index: 10;
    text-align: center;
}

.btn-primary {
    padding: 1.2rem 3.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-decoration: none;
    color: #000;
    background: var(--metallic);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    border: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 2px;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

/* Side Info Panels (Subtle Integration) */
.ui-interface-wrapper {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.ui-panel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    padding: 1.5rem;
    pointer-events: auto;
}

.ui-panel-left {
    left: 4vw;
}

.ui-panel-right {
    right: 4vw;
}

.ui-panel .mono-label {
    display: block;
    margin-bottom: 1rem;
    opacity: 0.4;
    font-size: 0.6rem;
}

.ui-stat {
    margin-bottom: 1.2rem;
}

.ui-stat .stat-label {
    font-size: 0.55rem;
    color: var(--text-sec);
    display: block;
    margin-bottom: 0.4rem;
}

.ui-stat .stat-bar {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    position: relative;
}

.ui-stat .stat-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #fff;
}

@media (max-width: 1200px) {
    .ui-panel {
        display: none;
    }

    .giant-branding {
        font-size: 4rem;
    }

    .node-design-layer {
        opacity: 0.2;
    }
}



/* PORTFOLIO EDITORIAL GRID */
.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.portfolio-filters {
    display: flex;
    gap: 1rem;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: color 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--text-primary);
}

.editorial-grid {
    display: flex;
    flex-direction: column;
    gap: 10rem;
    width: 100%;
}

.port-item {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    width: 100%;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.port-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.port-img-wrap,
.port-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.port-img,
.port-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), 
                opacity 1s ease,
                filter 1.2s ease;
}

/* Fluid Loading States */
.img-reveal-hidden {
    opacity: 0;
    transform: scale(1.1);
    filter: blur(15px);
}

.img-reveal-visible {
    opacity: 1 !important;
    transform: scale(1) !important;
    /* Use 'none' instead of 'blur(0)' to prevent the browser from maintaining a heavy filter context */
    filter: none !important;
}

.img-loading-trigger {
    background: linear-gradient(90deg, #050505 25%, #0a0a0a 50%, #050505 75%);
    background-size: 200% 100%;
    animation: shimmer 2.5s infinite linear;
    position: relative;
}

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

.port-item:hover .port-img,
.port-item:hover .port-video-preview {
    transform: scale(1.05);
}

.video-grid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    opacity: 0.6;
    transition: 0.3s;
    pointer-events: none;
    z-index: 5;
}

.port-item:hover .video-grid-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0);
}

.port-info {
    padding: 1.5rem;
    text-align: left;
    flex-grow: 1;
}

.port-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-transform: none;
}

.port-cat {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.port-line {
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

body.admin-enabled .delete-btn {
    display: flex;
}

/* Delete Button Tactical Styling */
.delete-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 4px;
}

.delete-btn:hover {
    background: #ff4444;
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
    transform: scale(1.1);
}

.admin-badge-container {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}

/* ARCHIVE GRID & FOLDERS (Refined) */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 4vw;
    margin-top: 5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.folder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.folder-icon-wrap {
    width: clamp(100px, 10vw, 150px);
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0.8rem;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.folder-icon {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.folder-name {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 400;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0.12em;
    transition: all 0.3s ease;
}

.folder-grid-rename {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    margin-top: 5px;
}

.tactical-input-xs {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    padding: 4px 6px;
    width: 130px;
    text-align: center;
    outline: none;
}

.save-grid-rename {
    background: #fff;
    color: #000;
    border: none;
    padding: 4px 12px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
}

.save-grid-rename:hover {
    background: var(--accent);
}

@media (hover: hover) {
    .folder-item:hover {
        transform: translateY(-8px);
    }

    .folder-item:hover .folder-icon-wrap {
        background: none;
        border-color: transparent;
        box-shadow: none;
    }

    .folder-item:hover .folder-icon {
        transform: scale(1.05);
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    }

    .folder-item:hover .folder-name {
        color: var(--text-primary);
        text-shadow: 0 0 8px #ffffff, 0 0 15px rgba(255, 255, 255, 0.5);
    }
}

/* FOLDER CONTENT MODAL (macOS GLASS VERSION) */
.folder-content-modal {
    width: 95vw;
    height: 95vh;
    max-width: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    border-radius: 14px;
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform-origin: center;
    will-change: transform, opacity;
}

.window-title-bar {
    background: rgba(20, 20, 20, 0.4);
    padding: 1.2rem 2.5rem;
    display: flex;
    flex-shrink: 0;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: default;
}

.window-controls-left {
    display: flex;
    gap: 10px;
}

.win-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.win-dot i {
    font-size: 7px;
    opacity: 0;
    transition: opacity 0.2s;
    color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    /* Make icons non-interactive for better dot hits */
}

/* Disable conflicting CSS transitions for GSAP-controlled folder modal */
#folder-modal,
#folder-modal .modal-overlay {
    transition: none !important;
}

.win-dot.minimize {
    background: #ffbd2e;
    border: 0.5px solid #e09e1b;
}

.win-dot.maximize {
    background: #28c840;
    border: 0.5px solid #14ab2b;
}

.window-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    font-weight: 600;
}

.window-controls-right {
    display: flex;
    gap: 1.8rem;
}

.win-btn {
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: 1.1rem;
}

.win-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.folder-content-modal #folder-items-grid {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    /* Reserve scrollbar space so right padding matches left padding */
    scrollbar-gutter: stable;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    /* grid-auto-rows is intentionally omitted: each port-item uses aspect-ratio:1
       so the browser derives row height from the item's width automatically. */
    align-content: start;
    gap: 2rem;
    padding: 2rem;
    scroll-behavior: smooth;
    /* Force Hardware Acceleration for 60fps scrolling over backdrop-filter */
    transform: translateZ(0);
    will-change: scroll-position;
}

.folder-content-modal .port-item {
    background: #000;
    border-color: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: block;
    /* Reset the global hover transform so items don't escape their grid cell */
    transform: none !important;

    /* BULLETPROOF SQUARE HACK FOR CSS GRID */
    /* This forces the element to be a perfect square and forces the CSS Grid row to size correctly */
    width: 100%;
    height: 0;
    padding-bottom: 100%;
}

.folder-content-modal .port-media-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.folder-content-modal .port-img-wrap,
.folder-content-modal .port-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    min-height: unset;
    border: none;
}

.item-overlay-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.2rem;
    color: #fff;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 5;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.folder-content-modal .port-item:hover .item-overlay-icon {
    opacity: 1;
    transform: scale(1);
}

.folder-content-modal .port-info {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    z-index: 6;
}

.folder-content-modal .port-item:hover .port-info {
    opacity: 1;
}

.folder-content-modal .port-info h3,
.folder-content-modal .port-cat,
.view-indicator {
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
    opacity: 0;
}

.folder-content-modal .port-item:hover .port-info h3,
.folder-content-modal .port-item:hover .port-cat,
.folder-content-modal .port-item:hover .view-indicator {
    transform: translateY(0);
    opacity: 1;
}

.folder-content-modal .port-item:hover .port-info h3 {
    transition-delay: 0.05s;
}

.folder-content-modal .port-item:hover .view-indicator {
    transition-delay: 0.1s;
}

.folder-content-modal .port-info h3 {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin: 0.4rem 0;
    text-transform: none;
    font-weight: 600;
}

.folder-content-modal .port-cat {
    font-size: 0.55rem;
    color: #fff;
    opacity: 0.5;
    letter-spacing: 2px;
    font-family: var(--font-mono);
}

.view-indicator {
    margin-top: 0.8rem;
    font-size: 0.6rem;
    color: var(--accent);
    letter-spacing: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.5rem;
}



.folder-content-modal #folder-items-grid::-webkit-scrollbar {
    width: 6px;
    display: block;
}

.folder-content-modal #folder-items-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.folder-content-modal #folder-items-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
}

.folder-content-modal #folder-items-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}


.placeholder-card {
    aspect-ratio: 16/9;
    background: #080808;
    border: 1px solid #151515;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: #333;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.placeholder-card i {
    font-size: 2.5rem;
    opacity: 0.3;
}

.placeholder-card span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.placeholder-card i {
    font-size: 2.5rem;
    opacity: 0.3;
}

.placeholder-card span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.placeholder-card:hover {
    border-color: #444;
    color: #fff;
    background: #0c0c0c;
    transform: scale(1.02);
}

.placeholder-card:hover i {
    opacity: 1;
    color: var(--accent);
}

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

    .folder-icon-wrap {
        width: 130px;
    }
}


/* ABOUT ME SECTION */
.about-me-section {
    background: transparent !important;
}

.about-me-split {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-top: 3rem;
}

.about-me-photo-container {
    border: 1px solid var(--border-color);
    width: 100%;
    aspect-ratio: 0.75;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: visible;
    background: rgba(255, 255, 255, 0.02);
}

/* Premium Offset Frame for better integration */
.about-me-photo-container::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: -1;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-me-photo-container:hover::after {
    transform: translate(-5px, -5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.about-me-photo-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--noise-bg);
    opacity: 0.06;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 2;
}

.about-me-photo-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-me-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    opacity: 1;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-me-photo-container:hover .about-me-photo {
    transform: scale(1.05);
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: transparent;
    border: none;
}

.bento-cell {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 !important;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.bento-cell::after {
    display: none;
}

.cell-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.bento-metric {
    align-items: flex-start;
    padding: 2rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--text-primary);
}

.stat-suffix {
    color: white;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
}

/* DOCTRINE & ARSENAL (Replaced Process) */
.giant-manifesto-text {
    font-size: clamp(3rem, 7vw, 9rem);
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.manifesto-line {
    display: block;
    margin-bottom: 0.5rem;
}

.arsenal-grid {
    margin-top: 3rem;
}

.arsenal-item {
    transition: transform 0.3s, border-color 0.3s;
}

.arsenal-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.arsenal-item:hover .ai-header i {
    animation: rotate-glitch 0.3s forwards;
}

@keyframes rotate-glitch {
    0% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(-10deg) scale(1.1);
    }

    50% {
        transform: rotate(15deg) scale(1.2);
    }

    100% {
        transform: rotate(0deg) scale(1.1);
        filter: drop-shadow(0 0 8px var(--accent));
    }
}

.ai-header i {
    font-size: 2rem;
}

/* CONTACT SECTION V3 REDESIGN */
.contact-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 4rem;
    align-items: stretch;
}

/* Social Uplink Panel */
.social-uplink-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.social-node {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.3rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.social-node:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.node-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.node-status {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #ff4444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #ff4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff4444;
    animation: flash 1s infinite alternate;
}

@keyframes flash {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.3;
    }
}

.node-main {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.insta-icon-wrapper {
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    color: #fff;
    position: relative;
}

.icon-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s;
}

.social-node:hover .icon-glow {
    opacity: 1;
}

.node-handle {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    letter-spacing: 1px;
}

.node-desc {
    font-size: 0.85rem;
    color: var(--text-sec);
}

.node-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.6rem;
    color: var(--text-muted);
}

.terminal-meta-v3 {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.meta-row:last-child {
    border-bottom: none;
}

.meta-val {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
}

/* V3 Form Styles */
.v3-module {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.v3-module:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.form-header-v3 {
    padding: 2.5rem 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.section-title-sm {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.header-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.transmission-form-v3 {
    padding: 3rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.section-tag {
    font-size: 0.6rem;
    color: var(--accent);
    opacity: 0.6;
}

.form-row-v3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tactical-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.2rem 1.8rem;
    transition: all 0.3s;
    position: relative;
}

.tactical-input:focus-within {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.tactical-input label {
    display: block;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.5rem;
}

.tactical-input input,
.tactical-input textarea {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
    resize: none;
}

/* Options Matrix */
.options-matrix {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
}

.option-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-col .small {
    font-size: 0.68rem;
    color: var(--text-primary);
    opacity: 0.9;
    letter-spacing: 0.08em;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.matrix-3col {
    grid-template-columns: repeat(3, 1fr) !important;
}

.matrix-grid input[type="radio"],
.matrix-grid input[type="checkbox"] {
    display: none;
}

.matrix-grid label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-sec);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.matrix-grid label:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.matrix-grid input[type="radio"]:checked+label,
.matrix-grid input[type="checkbox"]:checked+label {
    background: #fff;
    color: #000;
    font-weight: 800;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Submit V3 */
.submit-btn-v3 {
    width: 100%;
    margin-top: 0.5rem;
}

.submit-btn-v3:active {
    transform: scale(0.98);
}

.scan-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    opacity: 0.15;
    animation: scan-v3 3s linear infinite;
    z-index: 2;
}

@keyframes scan-v3 {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

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

    .form-row-v3,
    .options-matrix {
        grid-template-columns: 1fr;
    }

    .transmission-form-v3 {
        padding: 2rem;
    }
}

.op-type-nodes input[type="radio"]:checked+label {
    background: #fff;
    color: #000;
    border-color: #fff;
    font-weight: 700;
}

/* Execute Button */
.execute-btn {
    width: 100%;
    height: 70px;
    background: var(--metallic);
    color: #000;
    border: none;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.execute-btn:hover {
    transform: scale(0.98);
}

.execute-btn .btn-text {
    position: relative;
    z-index: 2;
}

.execute-glitch {
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    z-index: 1;
}

.execute-btn:active .execute-glitch {
    opacity: 0.2;
}

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



.scanline-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 50%,
            rgba(255, 255, 255, 0.02) 50%,
            rgba(255, 255, 255, 0.02) 52%,
            transparent 52%);
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.5;
}

.input-prompt-wrap:focus-within .scanline-effect {
    animation: move-scanline 6s linear infinite;
    opacity: 1;
}

@keyframes move-scanline {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Custom Select Styling */
.input-prompt-wrap select {
    cursor: pointer;
}

.input-prompt-wrap select option {
    background: #111;
    color: #fff;
}

@media (max-width: 991px) {
    .command-center {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .terminal-interface {
        padding: 2rem;
    }
}


.form-header {
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 1rem;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
}

.submit-btn {
    background: var(--metallic);
    color: #000;
    border: none;
    padding: 1rem;
    font-family: var(--font-mono);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* REVIEWS SECTION REDESIGN (Tactical Grid) */
.reviews-section {
    padding: 12vh 0;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px;
    /* Offset for fixed navbar */
}

/* REVIEWS MARQUEE SYSTEM */

/* INSTAGRAM DM REVIEWS REDESIGN */
.reviews-marquee-viewport {
    height: 700px;
    overflow: hidden;
    position: relative;
    padding: 0;
    margin-top: 2rem;
    width: 100%;
    /* Smoother multi-step mask for a more organic-looking falloff */
    -webkit-mask-image: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 0, 0, 1) 15%,
            rgba(0, 0, 0, 1) 85%,
            transparent 100%);
    mask-image: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 0, 0, 1) 15%,
            rgba(0, 0, 0, 1) 85%,
            transparent 100%);
}

/* Optimized: Removed backdrop-filter for performance, using simple gradients instead */
.reviews-marquee-viewport::before,
.reviews-marquee-viewport::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 250px;
    z-index: 20;
    pointer-events: none;
}

.reviews-marquee-viewport::before {
    top: 0;
}

.reviews-marquee-viewport::after {
    bottom: 0;
}

#reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 0;
    will-change: transform;
}

.insta-dm-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    width: 100%;
    position: relative;
}

.dm-avatar-wrapper {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    position: relative;
}

.dm-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.insta-dm-card:hover .dm-avatar {
    transform: scale(1.1);
    border-color: var(--accent);
}

.dm-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 80%;
}

.dm-username {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-sec);
    letter-spacing: 1px;
    padding-left: 0.5rem;
    opacity: 0.7;
}

.dm-bubble {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.2rem 1.8rem;
    border-radius: 22px 22px 22px 4px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.insta-dm-card:hover .dm-bubble {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.dm-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
    font-weight: 400;
}

.dm-meta {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    padding-left: 0.5rem;
    margin-top: 0.2rem;
}

.dm-scanner-line {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    opacity: 0.3;
    transition: width 0.6s ease;
}

.insta-dm-card:hover .dm-scanner-line,
.insta-dm-card.card-paused .dm-scanner-line {
    width: 100%;
}

.insta-dm-card.card-paused .dm-avatar {
    transform: scale(1.1);
    border-color: var(--accent);
}

.insta-dm-card.card-paused .dm-bubble {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    #reviews-grid {
        display: flex;
        flex-direction: column;
    }
}

/* FOOTER & MODALS */
/* FOOTER REDESIGN (Tactical CommandCenter) */
.footer {
    border-top: var(--border-thin);
    padding: 6vh 0 2vh 0;
    z-index: 10;
    position: relative;
    background: #000;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1fr;
    gap: 4rem;
    margin-bottom: 6vh;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-col-title {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col-title::after {
    content: '';
    height: 1px;
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-sec);
    line-height: 1.8;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link {
    color: var(--text-sec);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-link i {
    font-size: 1rem;
    opacity: 0.5;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.footer-system-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat-node {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff00;
}

@media (max-width: 991px) {
    .footer-main-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 3rem;
    }
}

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

    .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    backdrop-filter: blur(10px);
}

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

#lightbox-title {
    text-transform: none;
}

.bento-modal {
    background: var(--bg-color);
    border: 1px solid #333;
    width: 450px;
    padding: 2.5rem;
}

/* ADMIN DASHBOARD REDESIGN */
.dashboard-modal {
    width: 90vw;
    max-width: 1000px;
    height: 85vh;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* CUSTOM CONFIRM MODAL */
.confirm-modal .modal-overlay {
    background: rgba(0,0,0,0.9);
}

/* SIMPLE CONFIRM MODAL */
.confirm-panel-simple {
    max-width: 400px !important;
    padding: 0 !important;
    border: 1px solid #333;
    background: #000 !important;
    border-radius: 0;
}

.confirm-header-simple {
    padding: 1.5rem;
    border-bottom: 1px solid #111;
    text-align: center;
}

.confirm-title {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: #888;
}

.confirm-body-simple {
    padding: 2.5rem 2rem;
    text-align: center;
}

.confirm-body-simple p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #fff;
    margin: 0;
}

.confirm-footer-simple {
    display: flex;
    border-top: 1px solid #111;
}

.confirm-footer-simple button {
    flex: 1;
    padding: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
    color: #888;
    letter-spacing: 1px;
}

.confirm-btn-secondary {
    border-right: 1px solid #111 !important;
}

.confirm-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.confirm-btn-primary {
    color: var(--accent) !important;
}

.confirm-btn-primary:hover {
    background: #fff;
    color: #000 !important;
}

.dashboard-modal .modal-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 2.5rem;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #00ff00;
    letter-spacing: 1px;
}

.live-indicator .dot {
    width: 6px;
    height: 6px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff00;
}

.publish-btn {
    background: var(--metallic) !important;
    color: #000 !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    border: 1px solid #fff !important;
    padding: 1.2rem !important;
    transition: all 0.3s !important;
}

.publish-btn:hover {
    background: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    flex-grow: 1;
    overflow: hidden;
}

.dashboard-sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 0.5rem;
}

.db-nav-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-sec);
    padding: 1rem 1.5rem;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.db-nav-btn i {
    font-size: 1.2rem;
}

.db-nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.db-nav-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
    border-left: 2px solid var(--accent);
}

.dashboard-main {
    padding: 3rem;
    /* Symmetrical padding */
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

#portfolio-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 100%;
}

.db-tab-content {
    display: none;
    height: 100%;
}

.db-tab-content.active {
    display: flex;
    flex-direction: column;
    animation: fade-in 0.4s ease;
}

.form-body {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 5rem;
}

.form-footer {
    position: sticky;
    bottom: -2.5rem;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #080808 80%, transparent);
    padding: 1.5rem 0 2.5rem 0;
    z-index: 10;
}

.dashboard-main .form-group {
    margin-bottom: 2rem;
}

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

.input-with-action {
    display: flex;
    gap: 1rem;
}

.input-with-action input {
    flex-grow: 1;
    margin-bottom: 0 !important;
}

.action-btn {
    background: var(--metallic);
    color: #000;
    border: none;
    padding: 0 1.5rem;
    font-family: var(--font-mono);
    font-weight: 700;
    cursor: pointer;
}

.action-btn:hover {
    background: #fff;
}

.settings-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 4px;
}

.scrollbar-minimal::-webkit-scrollbar {
    width: 4px;
}

.scrollbar-minimal::-webkit-scrollbar-track {
    background: transparent;
}

.scrollbar-minimal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

.close-btn {
    cursor: pointer;
    transition: color 0.3s;
}

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

.bento-modal input,
.bento-modal select,
.bento-modal textarea {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 1rem;
    color: #fff;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    outline: none;
}

.bento-modal input:focus,
.bento-modal select:focus,
.bento-modal textarea:focus {
    border-color: var(--accent);
}

.lightbox-content {
    width: 95vw;
    height: 95vh;
    display: flex;
    flex-direction: column;
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    position: relative;
    backdrop-filter: blur(20px);
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

#lightbox-media-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    background: #000;
    min-height: 0;
}

#lightbox-media-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

#lightbox-media-container iframe:not(.ig-embed-iframe):not(.tiktok-embed-iframe),
#lightbox-media-container video {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    aspect-ratio: 16/9;
}

.lightbox-info {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hidden {
    display: none !important;
}

/* Modals */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    visibility: hidden;
    pointer-events: none;
}

.auth-modal.active {
    visibility: visible;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.auth-modal.active .modal-overlay {
    opacity: 1;
}

/* Nav Auth Buttons */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-btn {
    padding: 0.8rem 1.6rem;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.btn-login {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
}

.btn-register {
    border: 1px solid #fff;
    background: #fff;
    color: #000;
    font-weight: 700;
}

.auth-btn:hover {
    transform: translateY(-2px);
    border-color: #fff;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-register:hover {
    background: transparent;
    color: #fff;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.logout-btn {
    background: transparent;
    border: none;
    color: var(--text-sec);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.65rem;
}

/* Modals */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
    padding: 2rem;
}

.auth-modal.active {
    visibility: visible;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(25px);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.auth-modal.active .modal-overlay {
    opacity: 1;
}

.modal-panel {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    z-index: 2;
    overflow-y: auto;
    scrollbar-width: none;
    opacity: 0;
    transform: scale(0.98) translateY(30px);
    transition: all 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 0;
}

.auth-modal.active .modal-panel {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.modal-panel::-webkit-scrollbar {
    display: none;
}

/* Technical corner details for modal */
.modal-panel::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    pointer-events: none;
    z-index: 0;
}

.modal-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #fff, transparent);
    opacity: 0.2;
    animation: auth-scan 8s cubic-bezier(0.19, 1, 0.22, 1) infinite;
    z-index: 5;
    pointer-events: none;
}

@keyframes auth-scan {
    0%, 100% { transform: translateY(0); opacity: 0; }
    5% { opacity: 0.5; }
    50% { transform: translateY(500px); opacity: 0; }
}

.auth-content {
    position: relative;
    z-index: 2;
}

.auth-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.auth-close:hover {
    opacity: 1;
    transform: rotate(90deg) scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.auth-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
    color: var(--text-sec);
    text-align: center;
    text-transform: uppercase;
    opacity: 0.5;
}

.auth-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.8rem;
    text-align: center;
    letter-spacing: -0.02em;
    font-family: var(--font-heading);
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 0.7rem;
    text-align: center;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0;
}

.input-group label {
    font-size: 0.6rem;
    opacity: 0.6;
    padding-left: 0.2rem;
    letter-spacing: 1px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem 1.5rem;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    outline: none;
    border-radius: 0;
}

.auth-form input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}


.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.password-wrap {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.4;
    transition: 0.3s;
}

.toggle-password:hover {
    opacity: 1;
    color: var(--accent);
}

.auth-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    position: relative;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid #333;
    position: relative;
}

.checkbox-label input:checked+.checkmark::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #fff;
}

.forgot-link {
    color: var(--text-sec);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.forgot-link:hover {
    border-bottom-color: #fff;
}

.auth-submit {
    width: 100%;
    margin-top: 0.5rem;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 0.3rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    position: relative;
    background: #000;
    padding: 0 1rem;
    font-size: 0.55rem;
    color: #777;
    border-radius: 4px;
}

.auth-switch {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-sec);
}

.switch-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    margin-left: 0.5rem;
    text-decoration: underline;
    font-size: 0.75rem;
}

.switch-btn-full {
    width: 100%;
    height: 50px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-sec);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-top: 0;
}

.switch-btn-full:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Password Strength */
.password-strength {
    height: 2px;
    width: 100%;
    background: #111;
    margin-top: -1rem;
    position: relative;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.4s ease;
}

.strength-bar.weak {
    width: 33%;
    background: #ff4444;
}

.strength-bar.medium {
    width: 66%;
    background: #ffbb33;
}

.strength-bar.strong {
    width: 100%;
    background: #00C851;
}

.error-msg {
    color: #ff4444;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    min-height: 1rem;
    margin-top: 0.2rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    pointer-events: auto;
    min-width: 300px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateX(110%);
}

.toast-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast.success .toast-dot {
    background: #00C851;
    box-shadow: 0 0 10px #00C851;
}

.toast.error .toast-dot {
    background: #ff4444;
    box-shadow: 0 0 10px #ff4444;
}

.toast.info .toast-dot {
    background: #33b5e5;
    box-shadow: 0 0 10px #33b5e5;
}

.toast-msg {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #fff;
}

/* Mobile Adaptations */
@media (max-width: 768px) {
    .modal-panel {
        max-width: 100%;
        border-left: none;
        transform: translateY(100%);
        border-top: 1px solid #222;
        height: 90vh;
        top: auto;
        bottom: 0;
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .toast {
        min-width: 0;
        width: 100%;
    }

    .nav-auth {
        display: none;
    }

    /* Handled by burger */
    .mobile-auth {
        padding: 2rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        border-top: 1px solid #111;
        margin-top: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 2rem;
    }

    .giant-branding {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .giant-manifesto-text {
        font-size: 3.5rem;
    }

    .about-me-split {
        grid-template-columns: 1fr;
    }

    .about-me-photo-placeholder {
        min-height: 250px;
    }

    .editorial-grid {
        column-count: 1;
    }

    .process-card {
        width: 100%;
    }

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

/* UI FRAME OVERLAY & TICKER (Global micro-details) */
.ui-frame {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9989;
    display: flex;
}

.ui-crosshair {
    position: absolute;
    width: 15px;
    height: 15px;
}

.ui-crosshair::before,
.ui-crosshair::after {
    content: '';
    position: absolute;
    background: var(--border-color);
    opacity: 0.5;
}

.ui-crosshair::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
}

.ui-crosshair::after {
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
}

.ui-ch-tl {
    top: 2rem;
    left: 4vw;
}

.ui-ch-tr {
    top: 2rem;
    right: 4vw;
}

.ui-ch-bl {
    bottom: 2rem;
    left: 4vw;
}

.ui-ch-br {
    bottom: 2rem;
    right: 4vw;
}

.bg-data-ticker {
    position: fixed;
    right: -2rem;
    top: 0;
    height: 100vh;
    pointer-events: none;
    z-index: -2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 4px;
    opacity: 0.03;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
}

.bg-data-ticker span {
    display: inline-block;
    animation: tick-down 160s linear infinite;
}

@keyframes tick-down {
    0% {
        transform: translateY(-5%);
    }

    100% {
        transform: translateY(-95%);
    }
}

/* ADMIN DATABASE MODAL */
.admin-db-modal {
    max-width: 95vw;
    width: 1200px;
    height: 85vh;
    display: flex;
    flex-direction: column;
}

.db-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow: hidden;
}

.db-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    align-items: flex-end;
}

.db-tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 0.6rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.db-tab-btn.active {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

.db-tab-btn:hover:not(.active) {
    border-color: var(--accent);
    color: var(--text-color);
}

.db-stats {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--accent);
    opacity: 0.8;
}

.db-view-area {
    flex: 1;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 100%;
    padding: 2.5rem;
    /* Symmetry with external containers */
    overscroll-behavior: contain;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-align: left;
}

.admin-table th {
    position: sticky;
    top: 0;
    background: #111;
    padding: 1rem;
    border-bottom: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 500;
    z-index: 2;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    opacity: 0.9;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-row-clickable {
    cursor: pointer;
    transition: background 0.2s;
}

.table-row-clickable:hover td {
    background: rgba(255, 255, 255, 0.05);
    opacity: 1;
}

.action-icon-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff4444;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 0.5rem;
    border-radius: 4px;
    font-size: 1.1rem;
}

.action-icon-btn:hover {
    background: #ff4444;
    color: #000;
    border-color: #ff4444;
}

.btn-status-toggle:hover {
    background: #4CAF50 !important;
    border-color: #4CAF50 !important;
    color: #fff !important;
}

/* STANDALONE ADMIN DB MODAL */
.admin-db-modal {
    max-width: 95vw !important;
    width: 1400px !important;
    height: 90vh !important;
}

/* ADMIN DETAIL PANEL */
.db-detail-panel {
    position: absolute;
    top: 0;
    right: -100%;
    width: 60%;
    height: 100%;
    background: #0a0a0a;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100;
    overflow-y: auto;
    padding: 2.5rem;
}

.db-detail-panel.active {
    right: 0;
}

.db-detail-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    backdrop-filter: blur(2px);
}

.db-detail-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.detail-close {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.detail-close:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: rotate(90deg);
}

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

.transmission-log-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    border-radius: 4px;
}

.transmission-log-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
}

.transmission-log-card .meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.transmission-log-card .meta-item span {
    display: block;
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.transmission-log-card .meta-item strong {
    font-size: 0.85rem;
    color: #fff;
}

.transmission-log-card .msg-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #eee;
    white-space: pre-wrap;
}

.btn-admin-db {

    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    cursor: pointer;
    margin-right: 1.5rem;
    transition: all 0.3s;
}

.btn-admin-db:hover {
    background: var(--accent);
    color: #000;
}

.loading-state,
.error-state {
    padding: 4rem;
    text-align: center;
    color: var(--accent);
    letter-spacing: 0.2em;
    font-family: var(--font-mono);
}

.error-state {
    color: #f44336;
}

/* GLOBAL BRUTALIST SCROLLBAR - Simple & Discrete for main page */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #fff;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* INTERNAL MENU SCROLLBAR - Premium with Visual Gap */
.dashboard-main::-webkit-scrollbar,
.db-view-area::-webkit-scrollbar {
    width: 20px;
}

.dashboard-main::-webkit-scrollbar-thumb,
.db-view-area::-webkit-scrollbar-thumb {
    background-color: #fff;
    border: 7px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
}


/* Remove old scrollbar helpers */
.scrollbar-minimal::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .folder-content-modal #folder-items-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 1.25rem !important;
        gap: 1rem !important;
    }

    .btn-admin-db {
        margin-right: 0.5rem;
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
    }

    .db-modal-body {
        padding: 1rem;
    }

    .admin-table {
        font-size: 0.7rem;
    }

    .db-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .db-stats {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* MISSION STATUS STYLES */
.completed-row {
    background: rgba(76, 175, 80, 0.03) !important;
}

.transmission-log-card.completed {
    border-color: rgba(76, 175, 80, 0.3) !important;
    background: rgba(0, 0, 0, 0.4) !important;
}

.transmission-log-card.completed .meta-item strong {
    color: #4CAF50 !important;
}

.transmission-log-card.completed .msg-content {
    opacity: 0.5;
    text-decoration: line-through;
    text-decoration-color: rgba(255,255,255,0.2);
}


@keyframes pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

.loading-state {
    animation: pulse 1.5s infinite;
}

/* UPLOAD DROPZONE & PREVIEW */
.upload-dropzone {
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 4px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.03);
}

.upload-dropzone.drag-over {
    border-style: solid;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.upload-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.dropzone-content i {
    font-size: 2.5rem;
    opacity: 0.3;
    margin-bottom: 1rem;
    display: block;
}

.dropzone-content span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    opacity: 0.5;
}

.preview-container {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.preview-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding-bottom: 2.5rem; /* Space for meta overlay */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.preview-gallery::-webkit-scrollbar {
    width: 4px;
}
.preview-gallery::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
}

.preview-thumb {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    animation: simple-reveal 0.3s ease-out;
}

.preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(255, 68, 68, 0.9);
    color: #fff;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    z-index: 20;
    opacity: 0;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.preview-thumb:hover .preview-remove {
    opacity: 1;
}

.preview-remove:hover {
    background: #ff4444;
    transform: scale(1.1);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    background: rgba(255,255,255,0.02);
}

.video-placeholder i {
    font-size: 1.2rem;
}

.preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    z-index: 30;
}

.preview-overlay .meta-info {
    display: flex;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
}

.preview-overlay .status-ready {
    color: #4CAF50;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    opacity: 0.5;
    z-index: 25;
    pointer-events: none;
    animation: scanMove 3s linear infinite;
}

/* SUCCESS OVERLAY */
.admin-success-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    backdrop-filter: blur(10px);
}

.success-content {
    text-align: center;
}

.success-icon {
    font-size: 5rem;
    color: #00ff00;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(0, 255, 0, 0.4));
}

.glitch-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

/* LIGHTBOX IMPROVEMENTS */
.lightbox-nav-btns {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 4vw;
    pointer-events: none;
    transform: translateY(-50%);
    z-index: 10;
}

.lb-nav-btn {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-nav-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: scale(1.1);
}

/* ADMIN DASHBOARD REDESIGN */
.db-section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.db-section-header .header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.2), transparent);
}

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

.form-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    padding: 1.5rem;
    padding-top: 2rem;
}

.form-panel.full-width {
    grid-column: span 2;
}

.panel-header {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    font-size: 0.6rem;
    letter-spacing: 2px;
    border-bottom-right-radius: 4px;
    color: var(--accent);
    opacity: 0.8;
}

.brut-input,
.brut-select,
.brut-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.8rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border-radius: 0;
    transition: all 0.3s;
    resize: none;
}

.brut-input:focus,
.brut-select:focus,
.brut-textarea:focus {
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.5);
    outline: none;
}

.tactical-input-group {
    display: flex;
    gap: 0.5rem;
}

.action-btn-tactical {
    background: #fff;
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.action-btn-tactical:hover {
    background: var(--accent);
}

.btn-danger-tactical {
    background: rgba(255, 68, 68, 0.1) !important;
    color: #ff4444 !important;
    border: 1px solid rgba(255, 68, 68, 0.2) !important;
}

.btn-danger-tactical:hover {
    background: #ff4444 !important;
    color: #000 !important;
    border-color: #ff4444 !important;
}

.btn-logout-tactical {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0;
}

.btn-logout-tactical:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.4);
    color: #ff4444;
}

.btn-logout-tactical i {
    font-size: 0.8rem;
    opacity: 0.6;
}

.btn-logout-tactical:hover i {
    opacity: 1;
}

.settings-panel {
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.group-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.group-header i {
    font-size: 1.2rem;
    color: var(--accent);
}

@media (max-width: 900px) {
    .form-grid-dashboard {
        grid-template-columns: 1fr;
    }

    .form-panel.full-width {
        grid-column: auto;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* =============================================
   HERO SALES V3 (CONVERSION FOCUSED)
   ============================================= */
.hero-sales-v3 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 90px 4vw 60px 4vw;
    background: radial-gradient(circle at 70% 50%, rgba(255, 149, 0, 0.03) 0%, transparent 60%);
    overflow: hidden;
}

.giant-branding-wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
    margin-top: 0;
}

.giant-branding {
    font-size: clamp(3.5rem, 10vw, 9.5rem);
    font-weight: 800;
    font-family: var(--font-heading);
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.0;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0.9;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.05));
    display: inline-block;
}

.giant-branding:hover {
    letter-spacing: 0em;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.hero-subline {
    text-align: center;
    margin-top: 1rem;
    opacity: 0.5;
    letter-spacing: 0.3em;
    font-size: 0.95rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

.hero-sales-container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 10;
}

/* Left Content */
.hero-sales-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.8rem;
    opacity: 0;
    animation: slide-up-fade 1s ease forwards;
    animation-delay: 0.5s;
}

@keyframes slide-up-fade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-sales-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.hero-sales-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    font-family: var(--font-heading);
    color: #ffffff;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.hero-sales-title span.accent {
    color: transparent;
    -webkit-text-stroke: 1px #ff9500;
    text-shadow: 0 0 20px rgba(255, 149, 0, 0.2);
}

.hero-sales-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    max-width: 90%;
    font-family: var(--font-body);
}

/* Disciplines Tags */
.hero-disciplines {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.discipline-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.02);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.discipline-tag:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.hero-sales-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.5rem;
    border-radius: 12px;
}

.hs-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hs-stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.hs-stat-label {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.hs-stat-div {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-sales-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-cad-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.8rem 4.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 3px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    z-index: 1;
}

.cad-grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 15px 15px;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.btn-cad-primary:hover .cad-grid-bg {
    opacity: 1;
    animation: blueprint-pulse 2s ease-in-out infinite;
}

@keyframes blueprint-pulse {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.5;
    }
}

.cad-scanner {
    position: absolute;
    top: 0;
    left: -20%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #fff, transparent);
    box-shadow: 0 0 15px #fff;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.btn-cad-primary:hover .cad-scanner {
    animation: scanner-sweep 2.5s linear infinite;
    opacity: 0.4;
}

@keyframes scanner-sweep {
    0% {
        left: -20%;
    }

    100% {
        left: 120%;
    }
}

.cad-corners span {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.cad-corners span:nth-child(1) {
    top: 6px;
    left: 6px;
    border-right: 0;
    border-bottom: 0;
}

.cad-corners span:nth-child(2) {
    top: 6px;
    right: 6px;
    border-left: 0;
    border-bottom: 0;
}

.cad-corners span:nth-child(3) {
    bottom: 6px;
    left: 6px;
    border-right: 0;
    border-top: 0;
}

.cad-corners span:nth-child(4) {
    bottom: 6px;
    right: 6px;
    border-left: 0;
    border-top: 0;
}

.btn-cad-primary:hover .cad-corners span {
    width: 14px;
    height: 14px;
    border-color: #fff;
}

/* Extension Lines */
.btn-cad-primary::before,
.btn-cad-primary::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.4s;
    pointer-events: none;
}

.btn-cad-primary::before {
    left: -10px;
    top: -15px;
    width: 1px;
    height: calc(100% + 30px);
}

.btn-cad-primary::after {
    right: -10px;
    top: -15px;
    width: 1px;
    height: calc(100% + 30px);
}

.cad-dim-w {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.55rem;
    opacity: 0.4;
    letter-spacing: 1px;
}

.cad-dim-h {
    position: absolute;
    left: -42px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 0.55rem;
    opacity: 0.4;
    letter-spacing: 1px;
}

.btn-cad-primary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.btn-cad-primary:hover::before,
.btn-cad-primary:hover::after {
    background: rgba(255, 255, 255, 0.5);
    height: calc(100% + 40px);
    top: -20px;
}

/* Secondary Button - Cinematic Focus Frame Style */
.btn-cad-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.8rem 4.5rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 4px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cad-focus-frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cad-focus-frame span {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.cad-focus-frame span:nth-child(1) {
    top: -2px;
    left: -2px;
    border-right: 0;
    border-bottom: 0;
}

.cad-focus-frame span:nth-child(2) {
    top: -2px;
    right: -2px;
    border-left: 0;
    border-bottom: 0;
}

.cad-focus-frame span:nth-child(3) {
    bottom: -2px;
    left: -2px;
    border-right: 0;
    border-top: 0;
}

.cad-focus-frame span:nth-child(4) {
    bottom: -2px;
    right: -2px;
    border-left: 0;
    border-top: 0;
}

.btn-cad-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    letter-spacing: 6px;
    /* Subtle expansion */
}

.btn-cad-secondary:hover .cad-focus-frame span {
    width: 20px;
    height: 20px;
    border-color: #fff;
}

.btn-cad-secondary:hover .cad-focus-frame span:nth-child(1) {
    top: -8px;
    left: -8px;
}

.btn-cad-secondary:hover .cad-focus-frame span:nth-child(2) {
    top: -8px;
    right: -8px;
}

.btn-cad-secondary:hover .cad-focus-frame span:nth-child(3) {
    bottom: -8px;
    left: -8px;
}

.btn-cad-secondary:hover .cad-focus-frame span:nth-child(4) {
    bottom: -8px;
    right: -8px;
}

.btn-cad-secondary::before {
    content: 'REC';
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 0.75rem;
    color: #ff3b30;
    opacity: 0;
    transition: opacity 0.3s;
    letter-spacing: 1px;
}

.btn-cad-secondary:hover::before {
    opacity: 1;
    animation: pulse-live 1s infinite;
}

@keyframes icon-glitch-anim {
    0% {
        transform: translate(0);
        border-color: rgba(255, 255, 255, 0.2);
    }

    50% {
        transform: translate(-2px, 1px);
        border-color: rgba(255, 255, 255, 0.5);
    }

    100% {
        transform: translate(2px, -1px);
        border-color: rgba(255, 255, 255, 0.2);
    }
}

.hero-sales-trust {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.hs-trust-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hs-trust-tags span {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Right Visual */
.hero-sales-visual {
    position: relative;
    width: 100%;
    opacity: 0;
    animation: slide-up-fade 1.2s ease forwards;
    animation-delay: 0.8s;
    transform: translateY(-40px);
    /* Shifted up as requested */
}

.hs-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.hs-video-container::before {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    pointer-events: none;
    z-index: 5;
    border-radius: 16px;
}

.hs-video-deco-1 {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 149, 0, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
}

.hs-video-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    z-index: 10;
    pointer-events: none;
}

.hs-dots {
    display: flex;
    gap: 6px;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.hs-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hs-dots:hover span {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.15);
}

.hs-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hs-video-iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hs-floating-card {
    position: absolute;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 20;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    animation: hs-float 6s ease-in-out infinite alternate;
}

.hs-float-1 {
    bottom: -20px;
    left: -30px;
}

.hs-float-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: #fff;
}

.hs-float-sub {
    display: block;
    font-size: 0.6rem;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

@keyframes hs-float {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-15px);
    }
}

/* Global Background Glow System */
.main-glow-system {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    animation: blob-float 20s ease-in-out infinite alternate;
}

.gb-orange {
    background: #ff9500;
}

.gb-purple {
    background: #7000ff;
}

.gb-cyan {
    background: #00f2ff;
}

.gb-blue {
    background: #0066ff;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, 80px) scale(1.3);
    }
}

/* Remove old section-specific styles */
.section-glow {
    display: none;
}



@media (max-width: 991px) {
    .hero-sales-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-sales-content {
        align-items: center;
        text-align: center;
    }

    .hero-sales-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .hero-sales-desc {
        text-align: center;
    }

    .hero-sales-stats {
        justify-content: center;
        width: 100%;
    }

    .hero-sales-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-sales-primary,
    .btn-sales-secondary {
        width: 100%;
        justify-content: center;
    }

    .hs-trust-tags {
        justify-content: center;
    }

    .hs-float-1 {
        bottom: 10px;
        left: 10px;
    }

    .hs-video-container {
        aspect-ratio: 16/9;
    }
}


/* Testimonials Avatar Styles */
.t-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.t-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t-project {
    opacity: 0.5;
    font-size: 0.8em;
    font-weight: 300;
}

/* Admin Data List Management */
.admin-data-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.admin-data-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.admin-data-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.row-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.row-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.row-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #fff;
}

.row-meta {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 400px;
}

.delete-btn-tactical {
    background: none;
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}

.delete-btn-tactical:hover {
    background: #ff4444;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

/* --- Unique admin content continues below --- */


/* Success Overlay */
.preview-container {
    position: absolute;
    inset: 10px;
    z-index: 10;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    pointer-events: none;
}

.preview-stack {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stack-item {
    position: absolute;
    width: 140px;
    height: 140px;
    background: #000;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
    will-change: transform, opacity;
}

.stack-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stack-item i {
    font-size: 1.5rem;
    opacity: 0.5;
}

.preview-gallery.grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
    width: 100%;
}

.preview-thumb {
    aspect-ratio: 1;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(255, 68, 68, 0.9);
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.preview-remove:hover {
    background: #ff4444;
}

.video-placeholder-lg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
}

.video-placeholder-lg i {
    font-size: 2rem;
}

@keyframes scanMove {
    0% { top: 0; }
    100% { top: 100%; }
}

.mini-manage-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mini-manage-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.removing {
    pointer-events: none;
    animation: snappy-out 0.2s ease-in forwards;
}

@keyframes snappy-out {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.9); }
}

.btn-purge-all {
    background: rgba(255, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 0, 0, 0.5) !important;
    color: #ff3333 !important;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-purge-all:hover {
    background: #ff0000 !important;
    color: #fff !important;
    border-color: #ff0000 !important;
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.6);
}

/* =============================================
   ADMIN BATCH ACTIONS & SORTING UI
   ============================================= */

.batch-actions-bar {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 100000;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 20px rgba(255,255,255,0.05);
    border-radius: 4px;
}

.batch-actions-bar.active {
    bottom: 40px;
}

.selection-info {
    display: flex;
    flex-direction: column;
}

.selection-count {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #fff;
    font-weight: 700;
}

.batch-btns {
    display: flex;
    gap: 1rem;
}

.btn-batch-delete {
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid rgba(255, 50, 50, 0.3);
    color: #ff5555;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-batch-delete:hover {
    background: #ff3333;
    color: #fff;
    border-color: #ff3333;
}

.btn-batch-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-batch-cancel:hover {
    background: rgba(255,255,255,0.1);
}

/* Sorting & Selection Styles for Items */
.port-item.selecting {
    cursor: cell;
    transition: transform 0.3s, border-color 0.3s;
}

.port-item.selecting:hover {
    transform: scale(1.02);
    border-color: rgba(255,255,255,0.5);
}

.port-item.selected .port-media-container::after {
    content: '\f26b'; /* ph-check-circle */
    font-family: "Phosphor";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    z-index: 10;
    transition: all 0.3s;
}

.port-item.selected .port-media-container {
    border: 2px solid #fff;
}

.port-item.selecting:not(.selected) .port-media-container:hover::after {
    content: '\f26c'; /* ph-check-square */
    font-family: "Phosphor";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 5;
}

.folder-admin-controls {
    display: flex;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.btn-admin-mode {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #888;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-admin-mode:hover, .btn-admin-mode.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Sortable Classes */
.sortable-ghost {
    opacity: 0.3;
    background: #222;
}

.sortable-drag {
    opacity: 0.9;
    cursor: grabbing;
}

.drag-handle {
    pointer-events: auto !important;
    background: rgba(0,0,0,0.5);
    padding: 4px;
    border-radius: 2px;
}

.admin-badge-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 15;
}

.promote-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.promote-btn:hover {
    background: #fff;
    color: #000;
}

body.is-dragging, body.is-dragging * {
    cursor: grabbing !important;
}

.sortable-fallback,
.sortable-drag {
    transition: none !important;
}

/* Retain square aspect ratio and inner layout for the drag clone when appended to body */
body > .sortable-fallback.port-item {
    background: #000 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    aspect-ratio: 1 !important;
    overflow: hidden !important;
}

body > .sortable-fallback.port-item .port-media-container {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

body > .sortable-fallback.port-item .port-img-wrap,
body > .sortable-fallback.port-item .port-video-wrap {
    height: 100% !important;
    min-height: unset !important;
    border: none !important;
    aspect-ratio: unset !important;
}

body > .sortable-fallback.port-item .port-info {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 1.5rem !important;
    opacity: 0 !important;
}

/* ==========================================
   INSTAGRAM REEL EMBED STYLES
   ========================================== */

/* --- Grid Thumbnail Card --- */
.ig-reel-thumb {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    border-radius: 4px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 180px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Subtle shimmer effect on hover */
.ig-reel-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.port-item:hover .ig-reel-thumb::before {
    opacity: 1;
}

.ig-thumb-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    z-index: 1;
    text-align: center;
    padding: 1rem;
}

.ig-thumb-icon {
    font-size: 2.8rem;
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.port-item:hover .ig-thumb-icon {
    transform: scale(1.1);
}

.ig-thumb-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.55rem;
    letter-spacing: 3px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* --- Lightbox Embed Container --- */
.ig-embed-wrapper {
    position: relative;
    width: 325px;
    height: 580px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    background: #000;
}

/* Loading state shown until iframe fires onload */
.ig-embed-loading {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 2;
    pointer-events: none;
}

.ig-embed-loading i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ig-pulse 1.5s ease-in-out infinite;
}

.ig-embed-loading .mono-label {
    font-size: 0.6rem;
    letter-spacing: 2px;
    opacity: 0.5;
}

@keyframes ig-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.95); }
}

/* The actual Instagram iframe */
#lightbox-media-container .ig-embed-iframe {
    position: absolute;
    top: -55px; /* Shift up to crop header */
    left: 0;
    width: 325px;
    height: 700px; /* Push bottom footer out of crop bounds */
    border: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    aspect-ratio: unset;
}

/* Error state */
.ig-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--accent);
    height: 100%;
}

.ig-error-state i {
    font-size: 3rem;
    opacity: 0.7;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .ig-embed-iframe {
        max-width: 340px;
        min-height: 500px;
    }
}

@media (max-width: 480px) {
    .ig-embed-iframe {
        max-width: 100%;
        min-height: 450px;
    }
}

/* INSTAGRAM REEL EMBED & REDIRECT CARD STYLES */
.ig-lightbox-redirect-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    max-height: 80vh;
    max-width: 450px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    background: #000;
}
.ig-lightbox-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.ig-lightbox-redirect-card:hover .ig-lightbox-cover {
    transform: scale(1.05);
}
.ig-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: background 0.3s;
}
.ig-lightbox-redirect-card:hover .ig-lightbox-overlay {
    background: rgba(0, 0, 0, 0.2);
}
.ig-play-button-pulsing {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: igPulse 2s infinite;
}
.ig-lightbox-redirect-card:hover .ig-play-button-pulsing {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}
@keyframes igPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.ig-redirect-cta {
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ==========================================
   TIKTOK EMBED & REDIRECT CARD STYLES
   ========================================== */

.tiktok-embed-wrapper {
    position: relative;
    width: 325px;
    height: 580px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    background: #000;
}

.tiktok-embed-loading {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 2;
    pointer-events: none;
}

.tiktok-embed-loading i {
    font-size: 2.5rem;
    color: #fff;
    filter: drop-shadow(-2px -2px 0px #00f2fe) drop-shadow(2px 2px 0px #fe0979);
    animation: tiktok-pulse 1.5s ease-in-out infinite;
}

.tiktok-embed-loading .mono-label {
    font-size: 0.6rem;
    letter-spacing: 2px;
    opacity: 0.5;
}

@keyframes tiktok-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.95); }
}

#lightbox-media-container .tiktok-embed-iframe {
    position: absolute;
    top: -80px; /* Shift up to crop title/profile */
    left: -100px; /* Shift left to crop sidebar */
    width: 535px; /* Make iframe wider so video is centered after shift */
    height: 730px; /* Push bottom bar out */
    border: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    aspect-ratio: unset;
}

.tiktok-lightbox-redirect-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    max-height: 80vh;
    max-width: 450px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    background: #000;
}

.tiktok-lightbox-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tiktok-lightbox-redirect-card:hover .tiktok-lightbox-cover {
    transform: scale(1.05);
}

.tiktok-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: background 0.3s;
}

.tiktok-lightbox-redirect-card:hover .tiktok-lightbox-overlay {
    background: rgba(0, 0, 0, 0.25);
}

.tiktok-play-button-pulsing {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    filter: drop-shadow(-2px -2px 0px #00f2fe) drop-shadow(2px 2px 0px #fe0979);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: tiktokPulse 2s infinite;
}

.tiktok-lightbox-redirect-card:hover .tiktok-play-button-pulsing {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255,255,255,0.4);
}

@keyframes tiktokPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.4); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 15px rgba(254, 9, 121, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

.tiktok-redirect-cta {
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .tiktok-embed-iframe {
        max-width: 340px;
        min-height: 500px;
    }
}

@media (max-width: 480px) {
    .tiktok-embed-iframe {
        max-width: 100%;
        min-height: 450px;
    }
}

/* ==========================================
   PREMIUM SOCIAL REDIRECT CARDS (IG & TIKTOK)
   ========================================== */

.social-redirect-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.social-ambient-glow {
    position: absolute;
    inset: -20px;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: blur(40px) saturate(1.8) opacity(0.35);
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.social-redirect-card {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 9/16;
    max-height: calc(85vh - 120px);
    max-width: 380px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    cursor: pointer;
    background: #000;
    text-decoration: none;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.social-redirect-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.9), 0 0 60px rgba(255, 255, 255, 0.15);
}

.social-cover-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.social-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.social-redirect-card:hover .social-cover {
    transform: scale(1.05);
}

.social-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.85) 100%);
    transition: background 0.3s ease;
}

.social-redirect-card:hover .social-card-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.75) 100%);
}

/* Camera Viewfinder HUD Elements */
.hud-element {
    position: absolute;
    z-index: 3;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    pointer-events: none;
    text-transform: uppercase;
}

.hud-top-left {
    top: 15px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hud-rec-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff3b30;
    display: inline-block;
    box-shadow: 0 0 8px #ff3b30;
    animation: hudBlink 1s infinite alternate;
}

.hud-top-right {
    top: 15px;
    right: 20px;
}

.hud-bottom-left {
    bottom: 75px;
    left: 20px;
    opacity: 0.5;
}

/* Viewfinder Corners */
.hud-crosshair-tl,
.hud-crosshair-tr,
.hud-crosshair-bl,
.hud-crosshair-br {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    z-index: 3;
    pointer-events: none;
}

.hud-crosshair-tl {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
}

.hud-crosshair-tr {
    top: 12px;
    right: 12px;
    border-left: none;
    border-bottom: none;
}

.hud-crosshair-bl {
    bottom: 12px;
    left: 12px;
    border-right: none;
    border-top: none;
}

.hud-crosshair-br {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
}

@keyframes hudBlink {
    0% { opacity: 0.2; }
    100% { opacity: 1; }
}

/* Pulsing Center Play Button */
.social-center-cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.social-play-btn {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    animation: unifiedPulse 2s infinite;
}

.social-redirect-card:hover .social-play-btn {
    transform: scale(1.12);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.2);
}

@keyframes unifiedPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.15); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Bottom CTA Actions */
.social-bottom-bar {
    position: absolute;
    bottom: 22px;
    left: 0;
    width: 100%;
    padding: 0 20px;
    z-index: 4;
    display: flex;
    justify-content: center;
}

.social-btn-cta {
    width: 100%;
    padding: 0.95rem 1.2rem;
    border-radius: 4px; /* Standardize with the brutalist sharp corners of the website */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-weight: 500;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(10, 10, 10, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.social-redirect-card:hover .social-btn-cta {
    transform: translateY(-2px);
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
}

/* Platform button styling variants (Unified to the dark minimalist aesthetic) */
.instagram-gradient-btn, .tiktok-neon-btn {
    /* Use unified styles, overriding legacy colorful gradients */
}

/* Mobile responsive optimization */
@media (max-width: 480px) {
    .social-redirect-card {
        max-height: calc(75vh - 120px);
        max-width: 290px;
    }
    .social-play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    .social-btn-cta {
        padding: 0.8rem 1rem;
        font-size: 0.6rem;
        letter-spacing: 1.5px;
    }
    .hud-element {
        font-size: 0.5rem;
    }
}

/* ==========================================
   GSAP PERFORMANCE & FLUIDITY ENHANCEMENTS
   ========================================== */

/* Disable conflicting native CSS transitions for all GSAP-controlled modals and overlays */
.modal-overlay,
#folder-modal,
#lightbox-modal,
.auth-modal,
.bento-modal,
.folder-content-modal,
.cookie-overlay,
.cookie-banner-v3 {
    transition: none !important;
}

/* Eliminate native CSS opacity/all transitions on folder items to enable 60fps/120fps GSAP staggers */
#folder-items-grid .reveal-fade {
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                border-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                background 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* ==========================================
   COOKIE BANNER V3 - UPGRADED PREMIUM MODAL
   ========================================== */
.cookie-overlay {
    position: fixed;
    bottom: 2rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 960px;
    max-width: calc(100vw - 4rem);
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(0px) saturate(100%);
    -webkit-backdrop-filter: blur(0px) saturate(100%);
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cookie-overlay.active {
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.cookie-banner-v3 {
    width: 100%;
    background: rgba(10, 10, 10, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cookie-overlay.active .cookie-banner-v3 {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cookie-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.cookie-main-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.2rem 1.6rem;
}

.cookie-text-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cookie-text-area h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
}

.cookie-text-area p {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    margin: 0;
}

.cookie-actions-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    flex-shrink: 0;
}

.cookie-btn-row {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
}

/* Settings panel inside banner (expands downwards when customized) */
.cookie-settings-panel {
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem 1.6rem;
    background: rgba(0, 0, 0, 0.25);
}

.cookie-settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.cookie-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: border-color 0.3s;
}

.cookie-setting-item:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.cookie-setting-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 0.8rem;
}

.cookie-setting-title {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.cookie-setting-desc {
    font-family: var(--font-body);
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.3;
}

/* Tactical Switch toggle styling */
.tactical-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 18px;
    flex-shrink: 0;
}

.tactical-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: .3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    left: 3px;
    bottom: 3px;
    background-color: #555;
    transition: .3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tactical-switch input:checked + .switch-slider {
    background-color: #fff;
    border-color: #fff;
}

.tactical-switch input:checked + .switch-slider:before {
    transform: translateX(18px);
    background-color: #000;
}

/* Suppress pulsing REC text on the secondary button inside the cookie banner */
.cookie-banner-v3 .btn-cad-secondary::before {
    content: '' !important;
    display: none !important;
}

/* Scaled-down CAD buttons for the cookie banner to match the rest of the website's custom industrial button theme */
.cookie-banner-v3 .btn-cad-primary,
.cookie-banner-v3 .btn-cad-secondary {
    padding: 0.6rem 1.6rem !important;
    height: auto !important;
    width: auto !important;
    min-width: 140px;
    font-size: 0.68rem !important;
    letter-spacing: 2px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

/* Restrict the size of extension line animations on small cookie buttons */
.cookie-banner-v3 .btn-cad-primary::before,
.cookie-banner-v3 .btn-cad-primary::after {
    top: -8px !important;
    height: calc(100% + 16px) !important;
}

.cookie-banner-v3 .btn-cad-primary:hover::before,
.cookie-banner-v3 .btn-cad-primary:hover::after {
    top: -12px !important;
    height: calc(100% + 24px) !important;
}

.cookie-link-btn {
    background: none;
    border: none;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s;
    padding: 0;
}

.cookie-link-btn:hover {
    color: #fff;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .cookie-overlay {
        width: 700px;
    }
    .cookie-settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cookie-overlay {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        width: auto;
        max-width: none;
        transform: none;
    }
    .cookie-main-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
        padding: 1.2rem;
    }
    .cookie-actions-area {
        align-items: stretch;
    }
    .cookie-btn-row {
        flex-direction: column;
        gap: 0.6rem;
    }
    .cookie-btn-row button {
        width: 100% !important;
    }
    .cookie-settings-grid {
        grid-template-columns: 1fr;
    }
    .cookie-settings-panel div[style*="justify-content: flex-end"] {
        justify-content: center !important;
        margin-top: 0.8rem !important;
        padding-top: 0.8rem !important;
    }
    .cookie-settings-panel button {
        width: 100% !important;
    }

}

/* ==========================================================================
   MOBILE MENU NAVIGATION OVERLAY (CAD / Cyberpunk brutalist style)
   ========================================================================== */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 10005;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.mobile-nav-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    position: relative;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.mobile-nav-logo-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
    color: #fff;
    letter-spacing: 1px;
}

.mobile-nav-close {
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.mobile-nav-close:hover {
    color: #000;
    background: #fff;
    border-color: #fff;
    transform: rotate(90deg);
}

.mobile-nav-links {
    counter-reset: mobile-menu-count;
    display: flex;
    flex-direction: column;
    margin-top: 2.5rem;
    flex-grow: 1;
    border-top: 1px solid var(--border-color);
}

.mobile-nav-link {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-sec);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link::before {
    counter-increment: mobile-menu-count;
    content: '0' counter(mobile-menu-count) ' // [';
    font-size: 0.65rem;
    opacity: 0.4;
    color: var(--text-primary);
    transition: all 0.3s ease;
    margin-right: 10px;
    transform: scaleY(0.7);
    font-weight: 300;
}

.mobile-nav-link::after {
    content: ']';
    opacity: 1;
    color: var(--text-primary);
    transition: all 0.3s ease;
    margin-left: auto;
    transform: scaleY(0.7);
    font-weight: 300;
}

.mobile-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
    padding-left: 15px;
    letter-spacing: 3px;
}

.mobile-nav-link:hover::before {
    opacity: 1;
    transform: scaleY(1);
    color: #fff;
}

.mobile-nav-link:hover::after {
    opacity: 1;
    transform: scaleY(1);
}

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

.mobile-nav-auth {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ==========================================================================
   ADDITIONAL MOBILE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
    /* Background Scaling & Visible Mask overlay to match PC aesthetics exactly */
    .global-site-bg {
        background: url('/assets/kolaz_v5.jpg') repeat-y top center / 100% auto !important;
        opacity: 0.45 !important;
    }
    
    .global-site-bg::after {
        background: rgba(0, 0, 0, 0.45) !important;
    }
    
    /* Option Selector budget matrix to display in 3 cols on mobile */
    .options-matrix .option-col:last-child .matrix-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* Hide Vertical Data Ticker to free space */
    .bg-data-ticker {
        display: none !important;
    }

    /* Keep Bento Grid Metrics Side-by-Side and Snug on Mobile */
    .bento-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    /* Fix Mismatched Button Selectors for Mobile Full Width CTAs */
    .btn-cad-primary,
    .btn-cad-secondary {
        width: 100% !important;
        justify-content: center !important;
        padding: 1.1rem 2rem !important;
        font-size: 0.82rem !important;
        letter-spacing: 2px !important;
    }
    
    /* Disciplines Tags Alignment */
    .hero-disciplines {
        justify-content: center !important;
    }
    
    /* Glow System adjustment for Mobile contrast */
    .glow-blob {
        opacity: 0.03 !important;
    }
    
    /* Window Title Bar Padding Reduction */
    .window-title-bar {
        padding: 1rem 1.2rem !important;
    }
    
    .window-title {
        letter-spacing: 1px !important;
        font-size: 0.7rem !important;
    }
    
    /* Lightbox Modal Optimizations */
    .lightbox-inner-content {
        padding: 1.2rem !important;
    }
    
    .lightbox-info {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.6rem !important;
    }
    
    #lightbox-edit-btn:not(.hidden) {
        float: none !important;
        margin-right: 0 !important;
        margin-top: 0.5rem !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }

    .lightbox-index {
        margin-left: 0 !important;
        margin-top: 0.3rem !important;
        display: block !important;
    }

    .lightbox-nav-btns {
        left: 0 !important;
        right: 0 !important;
        width: auto !important;
        padding: 0 10px !important;
    }
    
    .lb-nav-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.1rem !important;
        background: rgba(0, 0, 0, 0.6) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }
    
    /* Social Media Embed Sizing Constraints */
    .ig-embed-wrapper,
    .tiktok-lightbox-redirect-card,
    .ig-lightbox-redirect-card {
        max-width: 100% !important;
    }

    #lightbox-media-container .ig-embed-iframe,
    #lightbox-media-container .tiktok-embed-iframe {
        max-width: 100% !important;
    }
    
    /* Reviews Marquee Viewport - Vertical Scrolling on Mobile */
    .reviews-marquee-viewport {
        height: 480px !important;
        overflow-y: hidden !important;
        overflow-x: hidden !important;
        position: relative !important;
        display: block !important;
        padding: 0 !important;
    }
    
    #reviews-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        width: 100% !important;
        padding: 1.5rem 0 !important;
    }
    
    .insta-dm-card {
        width: 100% !important;
        max-width: 100% !important;
        flex-shrink: 0 !important;
        padding: 0 0.5rem !important;
        gap: 0.75rem !important;
    }
    .insta-dm-card .dm-avatar-wrapper {
        width: 32px !important;
        height: 32px !important;
    }
    .insta-dm-card .dm-content-wrapper {
        max-width: calc(100% - 44px) !important;
    }
    .insta-dm-card .dm-bubble {
        padding: 0.8rem 1.2rem !important;
        border-radius: 18px 18px 18px 4px !important;
    }
    .insta-dm-card .dm-text {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }

    /* ============================================
       ABOUT ME SECTION — MOBILE FIXES
       ============================================ */
    .about-me-split {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .about-me-photo-container {
        width: 100% !important;
        max-width: 320px !important;
        aspect-ratio: 0.75 !important;
        margin: 0 auto 2rem auto !important;
    }
    
    .about-me-text.bento-cell {
        padding: 1.25rem !important;
    }
    
    .bento-cell {
        padding: 1.25rem !important;
    }
    
    .bento-metric {
        padding: 1rem !important;
    }
    
    .bento-metric .cell-header {
        margin-bottom: 0.8rem !important;
    }
    
    .stat-number {
        font-size: 2.2rem !important;
    }
    
    .bento-metric .stat-suffix {
        font-size: 1.4rem !important;
    }

    .bento-metric .stat-label {
        font-size: 0.62rem !important;
        line-height: 1.2 !important;
        margin-top: 0.4rem !important;
        display: block !important;
    }

    /* ============================================
       HERO SECTION — MOBILE FIXES
       ============================================ */
    .hero-sales-v3 {
        padding: 100px 4vw 50px 4vw !important;
    }
    
    .giant-branding-wrapper {
        margin-bottom: 2.5rem !important;
    }
    
    .hero-sales-desc {
        max-width: 100% !important;
        font-size: 0.95rem !important;
    }
    
    .hs-video-container {
        aspect-ratio: 16/9 !important;
    }

    /* ============================================
       CONTACT SECTION — MOBILE FIXES  
       ============================================ */
    .contact-grid-v2 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .transmission-form-v3 {
        padding: 1.5rem !important;
    }
    
    .form-header-v3 {
        padding: 1.5rem !important;
    }
    
    .options-matrix {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .form-row-v3 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .node-handle {
        font-size: 1.1rem !important;
    }
    
    .social-node {
        padding: 1.5rem !important;
    }
    
    .node-main {
        gap: 1rem !important;
    }
    
    .insta-icon-wrapper {
        width: 55px !important;
        height: 55px !important;
        font-size: 2.4rem !important;
    }
}


/* Form diagnostics bar */
.form-protocol-status {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-status-metric {
    font-size: 0.68rem;
    letter-spacing: 1px;
    color: var(--text-sec);
}

.form-status-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

.form-status-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #ff9500; /* Custom orange diagnostics highlight */
    box-shadow: 0 0 10px #ff9500;
}

.form-status-state {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

#form-state-val {
    color: #fff;
    font-weight: bold;
}

/* Folder Highlight Pulse Animation */
.folder-item.highlight-glow {
    animation: folderHighlightPulse 0.7s ease-in-out;
}

@keyframes folderHighlightPulse {
    0% {
        transform: scale(1.0);
        filter: drop-shadow(0 0 0 rgba(255, 149, 0, 0));
    }
    50% {
        transform: scale(1.12);
        filter: drop-shadow(0 0 25px #ff9500);
    }
    100% {
        transform: scale(1.0);
        filter: drop-shadow(0 0 0 rgba(255, 149, 0, 0));
    }
}

/* ==========================================================================
   MOBILE NAV DRAWER & RESPONSIVE STYLES
   ========================================================================== */

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 10005;
    background-color: #030303;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center;
    transform: translateY(-100%);
    visibility: hidden;
    display: flex;
    flex-direction: column;
    padding: 0; /* Fullscreen padding removed */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95);
    overflow: hidden;
    box-sizing: border-box;
}

.mobile-nav-drawer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/kolaz_v5.jpg') repeat-y top center / 100% auto;
    opacity: 0.45;
    filter: brightness(0.9);
    z-index: -2;
    pointer-events: none;
}

.mobile-nav-drawer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--noise-bg);
    opacity: 0.05;
    mix-blend-mode: screen;
    z-index: -1;
    pointer-events: none;
}

.mobile-nav-drawer.open {
    transform: translateY(0);
    visibility: visible;
}

.mobile-nav-drawer .ui-crosshair {
    z-index: 10;
    pointer-events: none;
    position: absolute;
}
.mobile-nav-drawer .ui-ch-tl { top: max(1.5rem, calc(0.8rem + env(safe-area-inset-top, 0px))); left: 1.5rem; }
.mobile-nav-drawer .ui-ch-tr { top: max(1.5rem, calc(0.8rem + env(safe-area-inset-top, 0px))); right: 1.5rem; }
.mobile-nav-drawer .ui-ch-bl { bottom: max(1.5rem, calc(0.8rem + env(safe-area-inset-bottom, 0px))); left: 1.5rem; }
.mobile-nav-drawer .ui-ch-br { bottom: max(1.5rem, calc(0.8rem + env(safe-area-inset-bottom, 0px))); right: 1.5rem; }

.mobile-nav-drawer .mobile-nav-content {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    border: none; /* Removed inner boxed borders */
    background-color: rgba(3, 3, 3, 0.97); /* Solid, sleek translucent backdrop */
    background-image: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    background-size: 100% 4px, 30px 30px, 30px 30px, 100% 100%;
    background-blend-mode: overlay, normal, normal, normal;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: max(2.5rem, calc(1.5rem + env(safe-area-inset-top, 0px))) 2rem max(2rem, calc(1.5rem + env(safe-area-inset-bottom, 0px))) 2rem;
    box-sizing: border-box;
    z-index: 5;
    overflow-y: auto;
    overflow-x: hidden;
    animation: menu-grid-drift 25s linear infinite; /* Slowly moving technical grid */
}

@keyframes menu-grid-drift {
    from { background-position: 0px 0px, 0px 0px, 0px 0px, 0px 0px; }
    to { background-position: 0px 0px, 30px 30px, 30px 30px, 0px 0px; }
}

/* Rotating SVG Target Circle in background */
.mobile-nav-drawer .menu-radar-bg {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130vw;
    height: 130vw;
    max-width: 500px;
    max-height: 500px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.mobile-nav-drawer .menu-radar-bg svg {
    width: 100%;
    height: 100%;
    animation: menu-radar-rotate 60s linear infinite;
}

@keyframes menu-radar-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Camera Viewfinder Telemetry Overlay */
.mobile-nav-drawer .menu-viewfinder-telemetry {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1.5rem auto;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
    z-index: 6;
}

/* Telemetry Diagnostics Panel */
.mobile-nav-drawer .menu-telemetry-panel {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-sec);
    opacity: 0.5;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 0.6rem;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    z-index: 6;
}

/* Fullscreen sweep scanline */
.mobile-nav-drawer .menu-scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 4px rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 6;
    animation: menu-scanner-sweep 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes menu-scanner-sweep {
    0% { top: 0%; opacity: 0; }
    5% { opacity: 0.8; }
    95% { opacity: 0.8; }
    100% { top: 100%; opacity: 0; }
}

.mobile-nav-drawer .mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.mobile-nav-drawer .logo a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    color: #fff;
    letter-spacing: 1px;
}

.mobile-nav-drawer .mobile-drawer-close {
    font-size: 1.1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.mobile-nav-drawer .mobile-drawer-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-nav-drawer .mobile-nav-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    margin-top: auto;
    margin-bottom: auto;
    flex-grow: 1;
    border: none;
    padding: 2rem 0;
}

.mobile-nav-drawer .mobile-nav-link.btn-cad-primary {
    width: 100%;
    max-width: 400px;
    margin: 0.8rem auto;
    height: 60px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 16, 16, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    font-size: 0.95rem !important;
    letter-spacing: 3px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1) !important;
    position: relative;
    overflow: visible !important;
}

/* Ensure extension lines and scanners are fully visible on mobile drawer links */
.mobile-nav-drawer .mobile-nav-link.btn-cad-primary::before,
.mobile-nav-drawer .mobile-nav-link.btn-cad-primary::after {
    display: block !important;
    content: '' !important;
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.4s;
    pointer-events: none;
    left: -10px;
    top: -10px;
    width: 1px;
    height: calc(100% + 20px);
    margin-right: 0 !important;
    margin-left: 0 !important;
    transform: none !important;
}
.mobile-nav-drawer .mobile-nav-link.btn-cad-primary::after {
    left: auto;
    right: -10px;
}

/* Hover/Active states */
.mobile-nav-drawer .mobile-nav-link.btn-cad-primary:hover,
.mobile-nav-drawer .mobile-nav-link.btn-cad-primary:active {
    color: #fff !important;
    background: rgba(28, 28, 28, 0.95) !important;
    border-color: #fff !important;
    letter-spacing: 5px !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
    padding-left: 0 !important;
}

.mobile-nav-drawer .mobile-nav-link.btn-cad-primary:hover::before,
.mobile-nav-drawer .mobile-nav-link.btn-cad-primary:hover::after,
.mobile-nav-drawer .mobile-nav-link.btn-cad-primary:active::before,
.mobile-nav-drawer .mobile-nav-link.btn-cad-primary:active::after {
    background: rgba(255, 255, 255, 0.5);
    height: calc(100% + 30px);
    top: -15px;
}

/* Dimensions inside mobile drawer */
.mobile-nav-drawer .btn-cad-primary .cad-dim-w,
.mobile-nav-drawer .btn-cad-primary .cad-dim-h {
    display: block !important;
    position: absolute;
    font-size: 0.55rem;
    opacity: 0.45;
    letter-spacing: 1px;
    font-family: var(--font-mono);
    color: var(--text-sec);
}

.mobile-nav-drawer .btn-cad-primary .cad-dim-w {
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-nav-drawer .btn-cad-primary .cad-dim-h {
    left: -32px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
}

/* Scanner sweep animation on mobile drawer */
.mobile-nav-drawer .btn-cad-primary:hover .cad-scanner,
.mobile-nav-drawer .btn-cad-primary:active .cad-scanner {
    animation: scanner-sweep 2.5s linear infinite;
    opacity: 0.4;
}

.mobile-nav-drawer .btn-cad-primary:hover .cad-grid-bg,
.mobile-nav-drawer .btn-cad-primary:active .cad-grid-bg {
    opacity: 1;
    animation: blueprint-pulse 2s ease-in-out infinite;
}

/* Corners hover animation */
.mobile-nav-drawer .btn-cad-primary:hover .cad-corners span,
.mobile-nav-drawer .btn-cad-primary:active .cad-corners span {
    width: 14px;
    height: 14px;
    border-color: #fff;
}

.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 10004;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer-lang-switcher {
    display: flex;
    gap: 4px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    padding: 3px;
    position: relative;
    overflow: hidden;
    align-self: flex-start;
}

.drawer-lang-btn {
    background: none;
    border: 1px solid transparent;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 5px 10px;
    letter-spacing: 1px;
}

.drawer-lang-btn.active {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-weight: 700;
    border-color: rgba(255, 255, 255, 0.15);
}

.drawer-lang-btn:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.drawer-instagram-link,
.drawer-cookie-link {
    color: var(--text-sec);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.drawer-instagram-link:hover,
.drawer-cookie-link:hover {
    color: #fff;
    letter-spacing: 1px;
}

.mobile-nav-drawer .mobile-drawer-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.mobile-nav-drawer .mobile-nav-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

/* Navbar optimization */
@media (max-width: 1024px) {
    .navbar .lang-switcher {
        display: none !important;
    }
    .mobile-menu-btn {
        display: flex !important;
        width: 44px !important;
        height: 44px !important;
        align-items: center;
        justify-content: center;
    }
}

/* Hero adaptations */
@media (max-width: 1024px) {
    .hero-subline {
        letter-spacing: 0.12em !important;
    }
}
@media (max-width: 480px) {
    .hero-subline {
        letter-spacing: 0.08em !important;
    }
    .hero-sales-title {
        font-size: clamp(1.6rem, 7vw, 2.5rem) !important;
    }
}

.giant-branding {
    font-size: clamp(2rem, 10vw, 8rem) !important;
}

@media (max-width: 768px) {
    .hero-sales-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 1rem !important;
    }
    .hero-sales-actions .btn-cad-primary,
    .hero-sales-actions .btn-cad-secondary {
        width: 100% !important;
    }
    .btn-cad-primary .cad-dim-w,
    .btn-cad-primary .cad-dim-h,
    .btn-cad-secondary .cad-dim-w,
    .btn-cad-secondary .cad-dim-h {
        display: none !important;
    }
}

/* About Section adaptations */
@media (max-width: 991px) {
    .about-me-split {
        display: flex !important;
        flex-direction: column !important;
    }
    .about-me-photo-container {
        order: -1 !important;
        margin: 0 auto 2rem auto !important;
    }
    .about-me-photo-container::after {
        display: none !important;
    }
}

/* Bento Grid & Section Headers */
@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr !important;
    }
    .section-title, .about-me-text h3 {
        font-size: 2rem !important;
    }
}

/* Archive folder icons scale */
@media (max-width: 480px) {
    .folder-icon-wrap {
        width: 90px !important;
        height: 90px !important;
    }
}
@media (max-width: 375px) {
    .folder-icon-wrap {
        width: 75px !important;
        height: 75px !important;
    }
}

/* Folder Modal */
@media (max-width: 768px) {
    #folder-modal .folder-content-modal {
        width: 100vw !important;
        height: 100dvh !important;
        max-width: none !important;
        max-height: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important; /* Full-bleed layout so scrollbar is at the edge and header spans full-width */
    }
    #folder-modal .window-controls-left {
        display: none !important;
    }
    #folder-modal .win-btn, #close-folder-modal {
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem !important;
        color: rgba(255, 255, 255, 0.75) !important; /* Fleshed out for better visibility on mobile screens */
    }
}

/* Contact Form iOS zoom fix and column stacks */
@media (max-width: 768px) {
    .transmission-form-v3 input,
    .transmission-form-v3 textarea,
    .transmission-form-v3 select {
        font-size: 16px !important;
    }
    .matrix-grid label {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}
@media (max-width: 480px) {
    .form-row-v3 {
        grid-template-columns: 1fr !important;
    }
    .options-matrix {
        grid-template-columns: 1fr !important;
    }
}

/* UI Crosshairs & Ticker */
@media (max-width: 768px) {
    .ui-frame {
        display: none !important;
    }
    .bg-data-ticker {
        display: none !important;
    }
}

/* Lightbox Modal fullscreen */
@media (max-width: 768px) {
    #lightbox-modal .modal-content {
        width: 100vw !important;
        height: 100dvh !important;
        max-width: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important; /* Full-bleed layout to maximize photo size on mobile screens */
    }
    #lightbox-media-container {
        max-height: 72dvh !important; /* Raised from 55dvh to make the photo larger and eliminate empty space below it */
    }
}

/* Footer Safe Area */
@media (max-width: 768px) {
    .footer {
        padding-bottom: max(3vh, calc(2vh + env(safe-area-inset-bottom, 12px))) !important;
    }
}

/* General Spacing */
@media (max-width: 768px) {
    .bordered-section {
        padding: 7vh 0 !important;
    }
}
@media (max-width: 480px) {
    .bordered-section {
        padding: 6vh 0 !important;
    }
}

/* Narrow mobile viewports (<= 360px) contact form & project types stacking */
@media (max-width: 360px) {
    .options-matrix .matrix-grid,
    .options-matrix .option-col:last-child .matrix-grid {
        grid-template-columns: 1fr !important;
    }
    .transmission-form-v3 {
        padding: 1rem !important;
    }
}

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
    }
}
