/* ═══════════════════════════════════════════════════════
   HFAi Studios v2.3 — Complete Stylesheet
   ═══════════════════════════════════════════════════════ */
:root {
    --bg: #0a0a0c;
    --bg2: #111115;
    --bg3: #17171c;
    --card: #14141a;
    --white: #f0f0f5;
    --dim: rgba(240, 240, 245, .55);
    --faint: rgba(240, 240, 245, .12);
    --accent: #9366ff;
    --accent2: #5eead4;
    --glow: rgba(147, 102, 255, .35);
    --gradient: linear-gradient(135deg, #9366ff, #5eead4);
    --font: 'Outfit', system-ui, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
    --r: 12px;
    --r2: 18px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--bg);
    color: var(--white);
    font-family: var(--font)
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased
}

a {
    color: var(--accent);
    text-decoration: none
}

a:hover {
    color: var(--accent2)
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px
}

.small {
    font-size: .82rem;
    color: var(--dim)
}

.grad {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

img,
video {
    max-width: 100%;
    display: block;
    user-select: none;
    -webkit-user-drag: none
}

.h1 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.02em
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 8px
}

.section-lead {
    color: var(--dim);
    margin-bottom: 32px;
    max-width: 600px
}

::selection {
    background: var(--accent);
    color: #fff
}

/* ═══ Buttons ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    border: 1px solid var(--faint);
    background: transparent;
    color: var(--white);
    cursor: pointer;
    transition: .25s
}

.btn:hover {
    border-color: var(--accent);
    color: var(--accent)
}

.btn.primary {
    background: var(--gradient);
    border: none;
    color: #000
}

.btn.primary:hover {
    opacity: .88
}

.btn.small {
    padding: 7px 16px;
    font-size: .8rem
}

/* ═══ Navigation ═══ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 12, .8);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--faint);
    padding: 12px 0
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--white)
}

.brand-orbit {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center
}

.brand-orbit img {
    width: 40px;
    height: auto;
    filter: brightness(1.25) drop-shadow(0 0 6px rgba(94, 234, 212, .35));
    position: relative;
    z-index: 2
}

.orbit-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    background: #5eead4;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    animation: orbitCCW 3s linear infinite;
    box-shadow: 0 0 10px rgba(94, 234, 212, .7)
}

@keyframes orbitCCW {
    0% {
        transform: rotate(0deg) translateX(18px)
    }

    100% {
        transform: rotate(-360deg) translateX(18px)
    }
}

.brand-label {
    font-size: .85rem;
    color: var(--dim);
    letter-spacing: .04em
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center
}

.nav-links a {
    color: var(--dim);
    font-weight: 500;
    font-size: .9rem;
    transition: .2s
}

.nav-links a:hover {
    color: var(--white)
}

/* ═══ Hero ═══ */
.hero {
    padding: 140px 0 60px
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--faint);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: .8rem;
    color: var(--accent);
    margin-bottom: 16px
}

.badge i {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block
}

.sub {
    color: var(--dim);
    max-width: 500px;
    margin: 18px 0 28px;
    font-size: 1.05rem
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap
}

.kpis {
    display: flex;
    gap: 30px;
    flex-wrap: wrap
}

.kpi .n {
    font-weight: 800;
    font-size: 1rem;
    color: var(--accent2)
}

.kpi .t {
    font-size: .78rem;
    color: var(--dim)
}

.panel {
    background: var(--card);
    border-radius: var(--r2);
    border: 1px solid var(--faint);
    overflow: hidden;
    position: relative
}

.reel {
    aspect-ratio: 16/9
}

.reel-box {
    width: 100%;
    height: 100%;
    position: relative
}

.reel-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.showreel-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg2)
}

.showreel-placeholder__label {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: .25em;
    color: var(--faint)
}

.hero-grid .reel-box video+.showreel-placeholder {
    display: none
}

/* ═══ Stats Bar ═══ */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 28px 0;
    border-top: 1px solid var(--faint);
    border-bottom: 1px solid var(--faint);
    margin: 0 0 40px
}

.stat {
    text-align: center
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.stat-label {
    font-size: .78rem;
    color: var(--dim)
}

/* ═══ 5-Column Checkerboard Grid ═══ */
.checker-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px
}

.checker-item {
    position: relative;
    border-radius: var(--r);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/2;
    background: var(--bg2);
    transition: transform .25s, box-shadow .25s
}

.checker-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .5)
}

.checker-item video,
.checker-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none
}

.checker-item .type-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    z-index: 2
}

.checker-item .type-dot.video {
    background: #ff4466
}

.checker-item .type-dot.photo {
    background: #448aff
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 0;
    grid-column: 1/-1;
    color: var(--dim)
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--faint);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .8s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* ═══ Services Cards ═══ */
#services {
    padding: 80px 0 40px
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.card {
    background: var(--card);
    border: 1px solid var(--faint);
    border-radius: var(--r2);
    padding: 28px;
    transition: .3s;
    position: relative;
    overflow: hidden
}

.card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--r2);
    background: var(--gradient);
    opacity: 0;
    transition: .3s;
    z-index: 0
}

.card:hover::before {
    opacity: .08
}

.card:hover {
    border-color: rgba(147, 102, 255, .3);
    transform: translateY(-2px)
}

.card>* {
    position: relative;
    z-index: 1
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 12px
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px
}

.card-tagline {
    color: var(--accent2);
    font-size: .88rem;
    font-weight: 500;
    margin-bottom: 14px;
    font-style: italic
}

.card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 14px
}

.card li {
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
    font-size: .88rem;
    color: var(--dim)
}

.card li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700
}

.card-for {
    font-size: .78rem;
    color: var(--accent);
    border-top: 1px solid var(--faint);
    padding-top: 12px;
    margin-top: 12px
}

/* ═══ Process Steps ═══ */
#process {
    padding: 60px 0
}

.steps {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px
}

.step {
    flex: 1;
    min-width: 180px;
    background: var(--card);
    border: 1px solid var(--faint);
    border-radius: var(--r2);
    padding: 24px 18px;
    text-align: center;
    transition: .25s;
    position: relative
}

.step:hover {
    border-color: rgba(147, 102, 255, .3)
}

.step::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid var(--faint)
}

.step:last-child::after {
    display: none
}

.step .no {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1
}

.step .step-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 6px 0 4px
}

.step .step-day {
    font-size: .75rem;
    color: var(--accent2);
    font-weight: 600;
    margin-bottom: 6px
}

.step .step-desc {
    font-size: .78rem;
    color: var(--dim);
    line-height: 1.4
}

/* ═══ Packages ═══ */
#packages {
    padding: 60px 0
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.package {
    background: var(--card);
    border: 1px solid var(--faint);
    border-radius: var(--r2);
    padding: 28px;
    position: relative;
    transition: .25s
}

.package:hover {
    border-color: rgba(147, 102, 255, .3);
    transform: translateY(-2px)
}

.package.featured {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(147, 102, 255, .15)
}

.popular-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--gradient);
    color: #000;
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px
}

.package .name {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 4px
}

.package .tagline {
    color: var(--dim);
    font-size: .85rem;
    margin-bottom: 14px
}

.package ul {
    list-style: none;
    padding: 0;
    margin: 0 0 14px
}

.package li {
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
    font-size: .85rem;
    color: var(--white)
}

.package li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent2);
    font-weight: 700;
    font-size: .75rem
}

.package .timeline {
    font-size: .8rem;
    color: var(--accent2);
    font-weight: 600;
    margin-bottom: 6px
}

.package .price {
    font-size: .82rem;
    color: var(--dim);
    margin-bottom: 14px
}

/* ═══ Lens Form ═══ */
#studio-lens {
    padding: 60px 0
}

.lens-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px
}

.lens-form {
    padding: 28px
}

.lens-form label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 4px;
    color: var(--dim)
}

.lens-form input,
.lens-form select,
.lens-form textarea {
    width: 100%;
    padding: 9px 14px;
    border-radius: var(--r);
    border: 1px solid var(--faint);
    background: var(--bg);
    color: var(--white);
    font-size: .9rem;
    font-family: var(--font)
}

.lens-form input:focus,
.lens-form select:focus,
.lens-form textarea:focus {
    outline: none;
    border-color: var(--accent)
}

.lens-form textarea {
    resize: vertical;
    min-height: 80px
}

.lens-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px
}

.lens-recipient {
    font-weight: 700;
    font-size: .9rem
}

.lens-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    cursor: pointer
}

.field-hint {
    font-size: .72rem;
    color: var(--dim);
    margin-top: 2px
}

hr.soft {
    border: none;
    border-top: 1px solid var(--faint);
    margin: 16px 0
}

.preview {
    background: var(--card);
    border-radius: var(--r2);
    border: 1px solid var(--faint);
    padding: 28px;
    position: sticky;
    top: 80px
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.preview-title {
    font-weight: 700;
    font-size: 1rem
}

#lensPreview {
    white-space: pre-wrap;
    font-size: .82rem;
    color: var(--dim);
    font-family: var(--font)
}

/* ═══ Footer ═══ */
.footer {
    border-top: 1px solid var(--faint);
    padding: 32px 0
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center
}

/* ═══ Modal ═══ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px
}

.modal.open {
    display: flex
}

.modal-card {
    background: var(--bg2);
    border-radius: var(--r2);
    border: 1px solid var(--faint);
    max-width: 950px;
    width: 100%;
    max-height: 90vh;
    overflow: auto
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--faint)
}

.modal-body {
    padding: 20px
}

.modal-media video,
.modal-media img {
    width: 100%;
    border-radius: var(--r)
}

.x {
    background: transparent;
    border: 1px solid var(--faint);
    color: var(--white);
    border-radius: var(--r);
    padding: 6px 14px;
    cursor: pointer;
    font-size: .85rem
}

.x:hover {
    border-color: var(--accent);
    color: var(--accent)
}

/* ═══════════════════════════════════════════════════════
   Floating Audio Player (Side Pull-Tab + Glassmorphism)
   ═══════════════════════════════════════════════════════ */
.audio-float {
    position: fixed;
    bottom: 120px;
    right: 0;
    z-index: 200;
    transition: none
}

.audio-tab {
    position: absolute;
    right: 0;
    top: 0;
    width: 56px;
    height: 72px;
    background: rgba(147, 102, 255, .9);
    backdrop-filter: blur(12px);
    border-radius: 14px 0 0 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    box-shadow: -3px 0 18px rgba(147, 102, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .12);
    transition: .25s;
    user-select: none;
    animation: tabPulse 2.5s ease-in-out infinite
}

.audio-tab-icon {
    width: 26px;
    height: 26px;
    background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 3v10.55c-.59-.34-1.27-.55-2-.55C7.79 13 6 14.79 6 17s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 3v10.55c-.59-.34-1.27-.55-2-.55C7.79 13 6 14.79 6 17s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z'/%3E%3C/svg%3E") center/contain no-repeat
}

.audio-tab-label {
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .9);
    text-transform: uppercase
}

@keyframes tabPulse {

    0%,
    100% {
        box-shadow: -3px 0 18px rgba(147, 102, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .12)
    }

    50% {
        box-shadow: -3px 0 24px rgba(147, 102, 255, .55), inset 0 0 0 1px rgba(255, 255, 255, .2)
    }
}

.audio-tab:hover {
    width: 62px;
    background: rgba(147, 102, 255, 1);
    box-shadow: -3px 0 24px rgba(147, 102, 255, .55), inset 0 0 0 1px rgba(255, 255, 255, .2)
}

.audio-float.open .audio-tab {
    display: none
}

.audio-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 300px;
    max-height: 520px;
    background: rgba(18, 18, 26, .82);
    backdrop-filter: blur(24px) saturate(1.8);
    border: 1px solid rgba(147, 102, 255, .2);
    border-radius: var(--r2);
    box-shadow: 0 -12px 48px rgba(0, 0, 0, .6);
    display: none;
    flex-direction: column;
    padding: 16px;
    overflow-y: auto
}

.audio-float.open .audio-panel {
    display: flex
}

.audio-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    cursor: move
}

.audio-panel-title {
    font-weight: 800;
    font-size: .95rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.audio-panel-close {
    background: transparent;
    border: none;
    color: var(--dim);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: .2s
}

.audio-panel-close:hover {
    color: var(--white);
    background: rgba(255, 255, 255, .08)
}

.audio-now {
    font-size: .82rem;
    color: var(--accent2);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 20px
}

.audio-viz {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
    margin-bottom: 8px
}

.audio-viz .bar {
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: height .15s
}

.audio-progress-wrap {
    margin-bottom: 10px
}

.audio-progress {
    height: 4px;
    background: var(--faint);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden
}

.audio-bar {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    width: 0;
    transition: width .1s linear
}

.audio-times {
    display: flex;
    justify-content: space-between;
    font-size: .7rem;
    color: var(--dim);
    margin-top: 4px
}

.audio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px
}

.ac {
    background: transparent;
    border: 1px solid var(--faint);
    color: var(--white);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .75rem;
    transition: .2s;
    flex-shrink: 0
}

.ac:hover {
    border-color: var(--accent);
    color: var(--accent)
}

.ac.play {
    width: 40px;
    height: 40px;
    font-size: .95rem;
    background: var(--gradient);
    border: none;
    color: #000
}

.ac.active {
    border-color: var(--accent2);
    color: var(--accent2);
    background: rgba(94, 234, 212, .1)
}

.audio-volume-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px
}

.vol-icon {
    font-size: .85rem;
    cursor: pointer
}

.vol-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    background: var(--faint);
    border-radius: 4px;
    outline: none
}

.vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer
}

.vol-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    cursor: pointer
}

.audio-playlist {
    max-height: 180px;
    overflow-y: auto;
    border-top: 1px solid var(--faint);
    padding-top: 8px
}

.audio-playlist::-webkit-scrollbar {
    width: 4px
}

.audio-playlist::-webkit-scrollbar-track {
    background: transparent
}

.audio-playlist::-webkit-scrollbar-thumb {
    background: var(--faint);
    border-radius: 4px
}

.audio-pl-item {
    padding: 6px 8px;
    border-radius: 6px;
    font-size: .78rem;
    cursor: pointer;
    transition: .15s;
    color: var(--dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.audio-pl-item:hover {
    background: rgba(255, 255, 255, .05);
    color: var(--white)
}

.audio-pl-item.active {
    background: rgba(147, 102, 255, .15);
    color: var(--accent)
}

.audio-resize-handle {
    position: absolute;
    bottom: 4px;
    right: 4px;
    cursor: nwse-resize;
    font-size: .75rem;
    color: var(--dim);
    opacity: .4;
    transition: .2s;
    user-select: none
}

.audio-resize-handle:hover {
    opacity: 1
}

/* ═══════════════════════════════════════════════════════
   Admin Platform (Full Overlay)
   ═══════════════════════════════════════════════════════ */
.admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--bg);
    display: none;
    opacity: 0;
    transition: opacity .35s
}

.admin-overlay.open {
    display: flex;
    opacity: 1
}

.admin-app {
    display: flex;
    width: 100%;
    height: 100%
}

.admin-sidebar {
    width: 220px;
    background: var(--bg2);
    border-right: 1px solid var(--faint);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    flex-shrink: 0
}

.admin-logo {
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 28px
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    color: var(--dim);
    font-size: .88rem;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: var(--r);
    cursor: pointer;
    transition: .2s;
    text-align: left;
    width: 100%;
    font-family: var(--font)
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, .04);
    color: var(--white)
}

.admin-nav-item.active {
    background: rgba(147, 102, 255, .12);
    color: var(--accent)
}

.admin-exit {
    background: transparent;
    border: 1px solid var(--faint);
    color: var(--dim);
    padding: 10px;
    border-radius: var(--r);
    cursor: pointer;
    font-size: .85rem;
    transition: .2s;
    margin-top: auto;
    font-family: var(--font)
}

.admin-exit:hover {
    border-color: var(--accent);
    color: var(--accent)
}

.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    border-bottom: 1px solid var(--faint)
}

.admin-topbar-title {
    font-weight: 800;
    font-size: 1.15rem
}

.admin-login-inline {
    display: flex;
    gap: 8px
}

.admin-login-inline input {
    padding: 7px 14px;
    border-radius: var(--r);
    border: 1px solid var(--faint);
    background: var(--bg);
    color: var(--white);
    font-size: .85rem;
    width: 200px
}

.admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 28px
}

.admin-view {
    display: none
}

.admin-view.active {
    display: block
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px
}

.admin-stat-card {
    background: var(--card);
    border: 1px solid var(--faint);
    border-radius: var(--r);
    padding: 20px;
    text-align: center
}

.admin-stat-n {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.admin-actions-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--r);
    border: 1px solid var(--faint);
    background: transparent;
    color: var(--white);
    font-size: .85rem;
    cursor: pointer;
    transition: .2s;
    font-family: var(--font)
}

.admin-btn:hover {
    border-color: var(--accent);
    color: var(--accent)
}

.admin-btn.danger {
    border-color: rgba(255, 68, 102, .3);
    color: #ff4466
}

.admin-btn.danger:hover {
    border-color: #ff4466;
    background: rgba(255, 68, 102, .1)
}

/* Upload */
.upload-zone {
    border: 2px dashed var(--faint);
    border-radius: var(--r2);
    padding: 60px 24px;
    text-align: center;
    cursor: pointer;
    transition: .3s;
    position: relative
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(147, 102, 255, .04)
}

.upload-zone .icon {
    font-size: 3rem;
    margin-bottom: 10px
}

.upload-zone .formats {
    margin-top: 8px
}

.upload-progress {
    height: 4px;
    background: var(--faint);
    border-radius: 4px;
    margin-top: 16px;
    overflow: hidden;
    display: none
}

.upload-progress .bar {
    height: 100%;
    background: var(--gradient);
    width: 0;
    transition: width .3s
}

.upload-progress.active {
    display: block
}

/* Gallery */
.admin-gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px
}

.admin-filter-tabs {
    display: flex;
    gap: 6px
}

.admin-filter {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--faint);
    background: transparent;
    color: var(--dim);
    font-size: .82rem;
    cursor: pointer;
    transition: .2s;
    font-family: var(--font)
}

.admin-filter:hover {
    border-color: var(--accent);
    color: var(--white)
}

.admin-filter.active {
    background: rgba(147, 102, 255, .15);
    border-color: var(--accent);
    color: var(--accent)
}

.admin-select-all {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    color: var(--dim);
    cursor: pointer
}

.admin-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px
}

.admin-thumb {
    position: relative;
    border-radius: var(--r);
    overflow: hidden;
    background: var(--bg);
    border: 2px solid transparent;
    cursor: pointer;
    transition: .2s;
    aspect-ratio: 3/2
}

.admin-thumb:hover {
    border-color: var(--accent)
}

.admin-thumb.selected {
    border-color: var(--accent2)
}

.admin-thumb img,
.admin-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.admin-thumb .audio-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg2);
    font-size: 2rem
}

.admin-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 60%, rgba(0, 0, 0, .7));
    pointer-events: none
}

.admin-thumb-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: .2s
}

.admin-thumb:hover .admin-thumb-actions {
    opacity: 1
}

.admin-thumb-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .7);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: .7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .15s
}

.admin-thumb-btn:hover {
    background: var(--accent)
}

.admin-thumb-check {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .4);
    background: transparent;
    cursor: pointer;
    transition: .2s
}

.admin-thumb.selected .admin-thumb-check {
    background: var(--accent2);
    border-color: var(--accent2)
}

.admin-thumb-label {
    position: absolute;
    bottom: 6px;
    left: 6px;
    font-size: .68rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .6);
    color: var(--white);
    pointer-events: none
}

.admin-thumb.dragging {
    opacity: .4;
    transform: scale(.95)
}

.admin-pass-section {
    margin-top: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, .04);
    border-radius: var(--r2);
    border: 1px solid rgba(255, 255, 255, .06)
}

.admin-input {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    padding: 8px 12px;
    color: #fff;
    font-size: .85rem;
    outline: none;
    transition: .2s
}

.admin-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(147, 102, 255, .2)
}

.admin-selected-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle
}

.admin-hero-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px
}

.admin-hero-card {
    background: rgba(255, 255, 255, .04);
    border-radius: var(--r2);
    border: 1px solid rgba(255, 255, 255, .06);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px
}

.admin-hero-preview {
    width: 100%;
    max-height: 320px;
    border-radius: var(--r);
    background: var(--bg);
    object-fit: cover
}

.admin-hero-url-row {
    display: flex;
    gap: 10px;
    align-items: center
}

.admin-hero-url-row input {
    flex: 1
}

/* Editor */
.editor-placeholder {
    padding: 80px 0;
    text-align: center;
    color: var(--dim)
}

.editor-workspace {
    display: flex;
    gap: 24px;
    height: calc(100vh - 160px)
}

.editor-canvas-wrap {
    flex: 1;
    background: var(--bg);
    border-radius: var(--r);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative
}

.editor-canvas-wrap canvas {
    max-width: 100%;
    max-height: 100%
}

.editor-tools {
    width: 260px;
    flex-shrink: 0;
    background: var(--card);
    border-radius: var(--r);
    padding: 20px;
    overflow-y: auto
}

.editor-section-title {
    font-size: .78rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px
}

.editor-tools label {
    display: block;
    font-size: .78rem;
    margin-top: 8px;
    color: var(--dim)
}

.editor-tools input[type="range"] {
    width: calc(100% - 40px);
    margin-right: 6px;
    vertical-align: middle;
    -webkit-appearance: none;
    height: 4px;
    background: var(--faint);
    border-radius: 4px;
    outline: none
}

.editor-tools input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer
}

.editor-tools span {
    font-size: .72rem;
    color: var(--dim)
}

.editor-btn-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px
}

.editor-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--r);
    border: 1px solid var(--faint);
    background: transparent;
    color: var(--white);
    cursor: pointer;
    font-size: 1rem;
    transition: .15s;
    display: flex;
    align-items: center;
    justify-content: center
}

.editor-btn:hover {
    border-color: var(--accent);
    color: var(--accent)
}

.editor-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px
}

.editor-filter {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--faint);
    background: transparent;
    color: var(--dim);
    font-size: .72rem;
    cursor: pointer;
    transition: .2s;
    font-family: var(--font)
}

.editor-filter:hover,
.editor-filter.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(147, 102, 255, .1)
}

/* ═══ Responsive ═══ */
@media(max-width:1100px) {
    .checker-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .hero-grid {
        grid-template-columns: 1fr
    }

    .cards,
    .packages-grid {
        grid-template-columns: 1fr 1fr
    }

    .lens-wrap {
        grid-template-columns: 1fr
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr)
    }

    .editor-workspace {
        flex-direction: column;
        height: auto
    }

    .editor-tools {
        width: 100%
    }
}

@media(max-width:768px) {
    .checker-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px
    }

    .nav-links {
        gap: 14px;
        font-size: .8rem
    }

    .hero {
        padding: 100px 0 40px
    }

    .cards,
    .packages-grid,
    .steps {
        grid-template-columns: 1fr
    }

    .steps {
        flex-direction: column
    }

    .step::after {
        display: none
    }

    .stats-bar {
        gap: 24px
    }

    .kpis {
        gap: 16px
    }

    .audio-panel {
        width: 280px
    }

    .admin-sidebar {
        width: 60px;
        padding: 16px 8px
    }

    .admin-sidebar .admin-logo,
    .admin-nav-item span,
    .admin-exit {
        font-size: .7rem;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .admin-thumb-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr))
    }
}

@media(max-width:480px) {
    .checker-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px
    }

    .checker-item {
        aspect-ratio: 1/1
    }

    .hero-actions {
        flex-direction: column
    }

    .btn {
        width: 100%;
        justify-content: center
    }

    .audio-float {
        bottom: 80px
    }

    .audio-panel {
        width: 260px;
        min-height: 280px
    }
}

@media(prefers-reduced-motion:reduce) {
    .orbit-dot {
        animation: none
    }

    * {
        transition-duration: 0s !important;
        animation-duration: 0s !important
    }
}