:root {
    color-scheme: dark;
    --bg: #0a0c10;
    --bg-deep: #07090c;
    --surface: #111318;
    --surface-2: #161b26;
    --surface-3: #202631;
    --surface-glass: rgba(18, 22, 32, 0.72);
    --gold: #d4af37;
    --gold-light: #e5c07b;
    --blue: #1e6bff;
    --green: #10b981;
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: rgba(255, 255, 255, 0.09);
    --line-gold: rgba(212, 175, 55, 0.22);
    --danger: #fb7185;
    --warning: #fbbf24;
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
    --font-display: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 12% 8%, rgba(30, 107, 255, 0.08), transparent 32rem),
        radial-gradient(circle at 88% 30%, rgba(212, 175, 55, 0.055), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { color: inherit; font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, dl, dd { margin-top: 0; }
h1, h2, h3, h4 {
    color: var(--text);
    font-family: var(--font-display);
    line-height: 1.12;
    letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.08rem; }
::selection { background: var(--gold); color: #111; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    transform: translateY(-150%);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--gold);
    color: #101216;
    font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }
.container, .container-wide { width: min(100% - 32px, 1180px); margin-inline: auto; }
.container-wide { width: min(100% - 48px, 1480px); }
.content-narrow { max-width: 940px; }

/* Header */
.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    background: rgba(8, 10, 14, 0.82);
    backdrop-filter: blur(24px) saturate(140%);
}
.site-header__inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 18px;
}
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.brand__logo {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-gold);
    border-radius: 11px;
    object-fit: cover;
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.14);
}
.brand__text { display: flex; flex-direction: column; font-family: var(--font-display); line-height: 1.1; }
.brand__text strong { font-size: 0.98rem; }
.brand__text small { margin-top: 4px; color: var(--gold-light); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.main-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
}
.main-nav a {
    padding: 7px 11px;
    border-radius: 9px;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    transition: 180ms ease;
}
.main-nav a:hover, .main-nav a.is-active { background: var(--surface-3); color: var(--gold-light); }
.header-search {
    display: flex;
    min-width: 190px;
    max-width: 360px;
    height: 40px;
    flex: 1;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
}
.header-search:focus-within { border-color: rgba(30, 107, 255, 0.75); box-shadow: 0 0 0 4px rgba(30, 107, 255, 0.1); }
.header-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 0.78rem; }
.header-search kbd { color: var(--muted); font-size: 0.65rem; }
.header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.user-chip { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.78rem; }
.avatar {
    display: inline-grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 1px solid var(--line-gold);
    border-radius: 50%;
    background: linear-gradient(145deg, var(--surface-3), #2e2615);
    color: var(--gold-light);
    font-family: var(--font-display);
    font-weight: 800;
}
.icon-button { border: 0; background: transparent; }
.nav-toggle { display: none; width: 42px; height: 42px; margin-left: auto; border: 1px solid var(--line); border-radius: 12px; }

/* Buttons and common controls */
.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: scale(0.98); }
.button--gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #15130d; box-shadow: 0 6px 24px rgba(212, 175, 55, 0.22); }
.button--gold:hover { box-shadow: 0 9px 30px rgba(212, 175, 55, 0.34); }
.button--ghost { border-color: var(--line); background: rgba(255, 255, 255, 0.04); color: var(--text); }
.button--ghost:hover { border-color: rgba(212, 175, 55, 0.35); background: rgba(255, 255, 255, 0.075); }
.button--danger { border-color: rgba(251,113,133,.35); background: rgba(251,113,133,.12); color: #fecdd3; }
.button--danger:hover { background: rgba(251,113,133,.2); }
.button--compact { min-height: 36px; padding: 7px 14px; font-size: 0.72rem; }
.button--full { width: 100%; }
.text-link { color: var(--gold-light); font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; }
.text-link:hover { color: #ffe099; }
.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.eyebrow--gold { color: var(--gold-light); }
.eyebrow--green { color: #6ee7b7; }

/* Hero areas */
.aura-parallax-hero {
    position: relative;
    width: 100%;
    height: clamp(470px, 56.3vw, 860px);
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    background: #07090c;
}
.aura-parallax-hero::after {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 0;
    left: 0;
    height: 28%;
    background: linear-gradient(180deg, transparent, rgba(7, 9, 12, 0.48) 64%, var(--bg));
    content: "";
    pointer-events: none;
}
.aura-parallax-scene,
.aura-parallax-layer,
.aura-parallax-media {
    position: absolute;
    inset: 0;
}
.aura-parallax-scene {
    overflow: hidden;
}
.aura-parallax-layer {
    inset: -10% -4%;
    will-change: transform;
}
.aura-parallax-media {
    will-change: transform, opacity;
}
.aura-parallax-layer img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}
.aura-parallax-layer--back {
    z-index: 1;
    background: #020712;
}
.aura-parallax-layer--back img {
    filter: saturate(1.04) contrast(1.06) brightness(0.82);
}
.aura-parallax-poster {
    --poster-lift: clamp(72px, 6.5vw, 100px);
    position: absolute;
    z-index: 2;
    top: calc(45% - var(--poster-lift));
    left: 0;
    width: 100%;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(4rem, 16vw, 16rem);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: 0.075em;
    opacity: 0.88;
    text-align: center;
    text-shadow: 0 5px 22px rgba(0, 0, 0, 0.58);
    transform: translateY(-50%);
    -webkit-text-stroke: clamp(1px, 0.13vw, 2px) #05070b;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    will-change: transform, opacity;
}
.aura-parallax-layer--middle {
    z-index: 4;
}
.aura-parallax-layer--middle::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 7, 10, 0.24), transparent 28%, transparent 72%, rgba(5, 7, 10, 0.24)),
        linear-gradient(180deg, rgba(5, 7, 10, 0.08), transparent 70%);
    content: "";
    pointer-events: none;
}
.aura-parallax-layer--middle img {
    object-position: center bottom;
    filter: saturate(1.05) contrast(1.08) brightness(0.88) drop-shadow(0 22px 32px rgba(0, 0, 0, 0.36));
}
.aura-parallax-layer--front {
    z-index: 3;
    inset: -10% -4%;
}
.aura-parallax-layer--front img {
    object-position: center bottom;
    opacity: 0.96;
    mix-blend-mode: screen;
    filter: saturate(1.02) contrast(1.08) brightness(0.9);
}
.live-hero h1 em { color: var(--gold-light); font-style: normal; }
.hero-search {
    display: flex;
    width: 100%;
    max-width: 800px;
    min-height: 58px;
    align-items: center;
    gap: 12px;
    margin-inline: auto;
    padding: 7px 8px 7px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(18, 22, 32, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.hero-search:focus-within { border-color: rgba(30, 107, 255, 0.72); box-shadow: 0 0 0 5px rgba(30, 107, 255, 0.1), var(--shadow); }
.hero-search input { width: 100%; border: 0; outline: 0; background: transparent; }
.catalog-hero {
    position: relative;
    padding: 100px 0 85px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 50% 5%, rgba(212, 175, 55, 0.08), transparent 28rem),
        linear-gradient(180deg, #10141c, var(--bg));
    text-align: center;
}
.catalog-hero .eyebrow { justify-content: center; }
.catalog-hero h1 { max-width: 900px; margin: 0 auto 20px; font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
.catalog-hero .content-narrow > p:not(.eyebrow) { max-width: 690px; margin: 0 auto 30px; color: var(--muted); }
.quick-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 18px; }
.quick-chips a, .live-capabilities span {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
}
.quick-chips a:hover { border-color: var(--line-gold); color: var(--gold-light); }

/* Live page */
.live-hero { position: relative; min-height: 610px; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(110deg, #0c1018, #0b0f13 60%, #10140f); }
.live-hero__glow { position: absolute; top: -30%; right: -8%; width: 680px; height: 680px; border-radius: 50%; background: radial-gradient(circle, rgba(16, 185, 129, 0.16), rgba(30, 107, 255, 0.09) 35%, transparent 68%); filter: blur(30px); }
.live-hero__grid { position: relative; display: grid; min-height: 610px; grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr); align-items: center; gap: 70px; padding-block: 70px; }
.live-hero h1 { margin-bottom: 20px; font-size: clamp(3rem, 6vw, 5.4rem); }
.live-hero__copy > p:not(.eyebrow) { max-width: 620px; margin-bottom: 28px; color: var(--muted); font-size: 1rem; }
.live-hero .hero-search { margin-left: 0; }
.live-capabilities { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.live-capabilities span:first-child, .live-capabilities span:nth-child(2), .live-capabilities span:nth-child(3) { border-color: rgba(16, 185, 129, 0.3); color: #6ee7b7; }
.live-feature {
    position: relative;
    display: block;
    min-height: 390px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.48), 0 0 60px rgba(30, 107, 255, 0.12);
}
.live-feature::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(4, 6, 9, 0.9)); content: ""; }
.live-feature img, .live-feature video { width: 100%; height: 100%; min-height: 390px; object-fit: cover; transition: transform 700ms ease; }
.live-feature:hover img, .live-feature:hover video { transform: scale(1.035); }
.live-feature__status { position: absolute; z-index: 2; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(16, 185, 129, 0.4); border-radius: 999px; background: rgba(5, 12, 14, 0.74); color: #a7f3d0; font-size: 0.65rem; font-weight: 800; backdrop-filter: blur(12px); }
.live-feature__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.live-feature__play { position: absolute; z-index: 2; inset: 50% auto auto 50%; display: grid; width: 64px; height: 64px; place-items: center; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(9, 12, 17, 0.66); color: var(--gold-light); backdrop-filter: blur(16px); }
.live-feature__caption { position: absolute; z-index: 2; right: 24px; bottom: 22px; left: 24px; display: flex; flex-direction: column; }
.live-feature__caption strong { font-family: var(--font-display); font-size: 1.25rem; }
.live-feature__caption small { margin-top: 4px; color: var(--muted); }
.live-feature--empty { display: grid; place-items: center; background: radial-gradient(circle, rgba(212,175,55,.2), transparent 8%, transparent 20%), conic-gradient(from 90deg at 50% 50%, #0e1724, #15140d, #0b1d18, #0e1724); }
.live-feature--empty > span { color: var(--gold-light); font-size: 4rem; }
.live-feature--empty i { position: absolute; width: 70%; height: 35%; border: 1px solid rgba(212,175,55,.15); border-radius: 50%; transform: rotate(18deg); }
.live-feature--empty i:nth-of-type(2) { transform: rotate(78deg); }
.live-feature--empty i:nth-of-type(3) { transform: rotate(138deg); }
.device-preview-section { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(460px, 1.25fr); align-items: center; gap: 70px; margin-top: 76px; padding: 48px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(120deg, rgba(22,27,38,.94), rgba(17,19,24,.75)); box-shadow: var(--shadow); }
.device-preview-copy h2 { margin-bottom: 16px; }
.device-preview-copy > p:not(.eyebrow) { color: var(--muted); }
.device-preview-actions { display: flex; gap: 8px; margin: 24px 0 18px; }
.device-stage { display: flex; min-height: 330px; flex-direction: column; align-items: center; justify-content: center; transition: 300ms ease; }
.device-stage__screen { position: relative; width: min(100%, 650px); aspect-ratio: 16 / 9; overflow: hidden; border: 9px solid #080a0d; border-radius: 15px; background: #050608; box-shadow: 0 26px 60px rgba(0,0,0,.48); transition: 300ms ease; }
.device-stage__screen img, .device-stage__screen video { width: 100%; height: 100%; object-fit: cover; }
.device-stage__stand { width: 110px; height: 40px; border-bottom: 9px solid #090b0e; transform: perspective(80px) rotateX(18deg); }
.device-stage.is-mobile .device-stage__screen { width: 180px; aspect-ratio: 9 / 16; border-width: 7px; border-radius: 26px; }
.device-stage.is-mobile .device-stage__stand { display: none; }

/* Catalog */
.catalog-section, .page-section, .showcase-section { padding-block: 74px; }
.catalog-toolbar, .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.catalog-toolbar h2, .section-heading h2 { margin-bottom: 0; }
.catalog-toolbar__actions { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 0.76rem; }
.catalog-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 28px; }
.catalog-results { min-width: 0; }
.filters-panel {
    position: sticky;
    top: 96px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(17, 19, 24, 0.82);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(18px);
}
.filters-panel__heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.filters-panel__heading h2 { margin: 0; font-size: 1.1rem; }
.filters-panel__heading a { color: var(--gold-light); font-size: 0.65rem; font-weight: 800; text-transform: uppercase; }
.filters-panel form { display: grid; gap: 17px; }
.filters-panel fieldset { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; }
.filters-panel legend, .field-group > label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.02em; }
.radio-row { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; color: var(--muted); font-size: 0.75rem; }
.radio-row:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.radio-row input { accent-color: var(--gold); }
.field-group input, .field-group select, .field-group textarea, .upload-form input, .upload-form select, .upload-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: 0;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
}
.field-group textarea, .upload-form textarea { resize: vertical; }
.field-group input:focus, .field-group select:focus, .field-group textarea:focus, .upload-form input:focus, .upload-form select:focus, .upload-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30,107,255,.1); }
select option { background: var(--surface-2); }
.filter-toggle { display: none; }
.wallpaper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 245px), 1fr)); gap: 18px; }
.wallpaper-grid--featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wallpaper-grid--motion { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wallpaper-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(22, 27, 38, 0.72); box-shadow: 0 14px 35px rgba(0,0,0,.18); transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease; }
.wallpaper-card:hover { transform: translateY(-4px); border-color: rgba(212, 175, 55, 0.28); box-shadow: 0 18px 46px rgba(0,0,0,.32), 0 0 28px rgba(30,107,255,.08); }
.wallpaper-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(145deg, #161b26, #0d1016); }
.wallpaper-card--portrait .wallpaper-card__media { aspect-ratio: 4 / 5; }
.wallpaper-card__media img, .wallpaper-card__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.wallpaper-card:hover .wallpaper-card__media img, .wallpaper-card:hover .wallpaper-card__media video { transform: scale(1.035); }
.card-badges { position: absolute; z-index: 2; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.badge { display: inline-flex; padding: 5px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(6,8,11,.72); color: var(--text); font-family: var(--font-display); font-size: .57rem; font-weight: 800; letter-spacing: .07em; backdrop-filter: blur(10px); }
.badge--gold { border-color: rgba(212,175,55,.35); color: var(--gold-light); }
.badge--live { border-color: rgba(16,185,129,.38); color: #6ee7b7; }
.card-overlay { position: absolute; inset: 0; display: flex; align-items: end; justify-content: center; padding: 20px; background: linear-gradient(180deg, transparent 45%, rgba(5,7,10,.82)); opacity: 0; transition: opacity 220ms ease; }
.card-overlay span { padding: 7px 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(8,10,14,.72); font-size: .7rem; font-weight: 700; backdrop-filter: blur(10px); }
.wallpaper-card:hover .card-overlay { opacity: 1; }
.media-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-light); font-size: 2rem; }
.card-favorite { position: absolute; z-index: 4; top: 9px; right: 9px; }
.card-favorite button { display: grid; width: 33px; height: 33px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; background: rgba(7,9,12,.72); color: var(--text); font-size: 1rem; backdrop-filter: blur(10px); }
.card-favorite button:hover { border-color: var(--gold); color: var(--gold-light); }
.wallpaper-card__body { padding: 15px; }
.wallpaper-card__title-row { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.wallpaper-card__title-row h3 { margin-bottom: 8px; overflow: hidden; font-size: .98rem; text-overflow: ellipsis; white-space: nowrap; }
.wallpaper-card__title-row h3 a:hover { color: var(--gold-light); }
.download-count { flex: 0 0 auto; color: var(--gold-light); font-size: .64rem; font-weight: 700; }
.wallpaper-card__meta { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-bottom: 12px; color: var(--muted); font-size: .64rem; }
.wallpaper-card__meta a:hover { color: var(--text); }
.wallpaper-card__actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: .67rem; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 34px; }
.pagination a { display: grid; min-width: 40px; height: 40px; place-items: center; padding-inline: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: .74rem; }
.pagination a:hover, .pagination a.is-current { border-color: var(--gold); background: rgba(212,175,55,.1); color: var(--gold-light); }

/* Home and listing sections */
.showcase-section { border-bottom: 1px solid rgba(255,255,255,.04); }
.section-heading > div > p:last-child { max-width: 640px; margin: 9px 0 0; color: var(--muted); }
.motion-section { padding-block: 78px; border-block: 1px solid rgba(16,185,129,.11); background: linear-gradient(110deg, rgba(6,19,18,.6), rgba(10,12,16,.82)); }
.motion-placeholder { display: flex; align-items: center; gap: 22px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-glass); }
.motion-placeholder > span { display: grid; width: 68px; height: 68px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(16,185,129,.3); border-radius: 50%; color: #6ee7b7; }
.motion-placeholder h3 { margin-bottom: 7px; }
.motion-placeholder p { margin: 0; color: var(--muted); }
.category-grid, .collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.category-card, .collection-card { position: relative; min-height: 190px; padding: 25px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(22,27,38,.92), rgba(13,16,22,.92)); transition: transform 220ms ease, border-color 220ms ease; }
.category-card::after, .collection-card::after { position: absolute; right: -40px; bottom: -80px; width: 170px; height: 170px; border-radius: 50%; background: var(--card-glow, rgba(30,107,255,.13)); filter: blur(15px); content: ""; }
.category-card:nth-child(2n), .collection-card:nth-child(2n) { --card-glow: rgba(212,175,55,.13); }
.category-card:nth-child(3n), .collection-card:nth-child(3n) { --card-glow: rgba(16,185,129,.12); }
.category-card:hover, .collection-card:hover { transform: translateY(-3px); border-color: rgba(212,175,55,.28); }
.category-card > span, .collection-card > span { color: var(--gold-light); font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.category-card h2, .category-card h3, .collection-card h2 { margin: 24px 0 9px; }
.category-card p, .collection-card p { max-width: 88%; margin-bottom: 0; color: var(--muted); font-size: .8rem; }
.category-grid--large { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-hero { padding: 90px 0 70px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 50% 0, rgba(30,107,255,.11), transparent 32rem); }
.page-hero h1 { margin-bottom: 15px; font-size: clamp(2.5rem, 5vw, 4.2rem); }
.page-hero p:last-child { max-width: 650px; margin-bottom: 0; color: var(--muted); }
.avatar--hero { width: 104px; height: 104px; flex: 0 0 auto; font-size: 2.2rem; }

/* Wallpaper details */
.detail-page { padding-block: 36px 80px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; color: var(--muted); font-size: .72rem; }
.breadcrumb a:hover { color: var(--gold-light); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(330px, .75fr); align-items: start; gap: 30px; }
.detail-preview { display: grid; min-height: 520px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #06080b; box-shadow: var(--shadow); }
.detail-preview img, .detail-preview video { width: 100%; max-height: 78vh; object-fit: contain; }
.detail-preview--portrait img, .detail-preview--portrait video { width: auto; max-width: 100%; }
.detail-panel { position: sticky; top: 100px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-glass); backdrop-filter: blur(18px); }
.detail-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.detail-panel h1 { margin-bottom: 16px; font-size: clamp(2rem, 3vw, 3rem); }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 24px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.spec-grid div { padding: 13px; background: var(--surface-2); }
.spec-grid dt { color: var(--muted); font-size: .63rem; text-transform: uppercase; }
.spec-grid dd { margin: 3px 0 0; font-family: var(--font-display); font-size: .83rem; font-weight: 700; }
.detail-actions { display: grid; gap: 9px; margin-top: 22px; }

/* Forms, profiles and states */
.auth-shell { display: grid; min-height: 72vh; place-items: center; padding: 70px 16px; background: radial-gradient(circle at 50% 30%, rgba(30,107,255,.1), transparent 28rem); }
.auth-card { width: min(100%, 480px); padding: 38px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(17,19,24,.88); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.auth-card--compact { max-width: 430px; }
.auth-card h1 { margin-bottom: 12px; font-size: 2.2rem; }
.auth-card > p:not(.eyebrow):not(.auth-switch) { color: var(--muted); }
.stack-form { display: grid; gap: 17px; margin-top: 25px; }
.auth-switch { margin: 22px 0 0; color: var(--muted); text-align: center; font-size: .78rem; }
.auth-switch a { color: var(--gold-light); font-weight: 700; }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-field button { position: absolute; top: 50%; right: 7px; width: 36px; height: 34px; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); }
.form-errors { margin: 20px 0; padding: 14px 16px; border: 1px solid rgba(251,113,133,.3); border-radius: 11px; background: rgba(251,113,133,.07); color: #fecdd3; }
.form-errors[hidden] { display: none; }
.form-errors p { margin: 0; }
.form-page { padding-block: 70px; }
.form-page__heading { max-width: 720px; margin-bottom: 30px; }
.form-page__heading h1 { margin-bottom: 12px; }
.form-page__heading > p:last-child { color: var(--muted); }
.upload-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-glass); }
.field-group--wide { grid-column: 1 / -1; }
.field-group label small { display: block; margin-top: 2px; font-weight: 500; }
.profile-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 28px; padding-block: 70px; }
.profile-summary, .profile-content { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-glass); }
.profile-summary { display: flex; flex-direction: column; align-items: center; text-align: center; }
.profile-summary h1 { margin: 15px 0 5px; font-size: 1.6rem; }
.profile-summary > p { color: var(--muted); font-size: .75rem; }
.profile-summary dl { display: grid; width: 100%; grid-template-columns: repeat(2, 1fr); margin: 23px 0; border-block: 1px solid var(--line); }
.profile-summary dl div { padding: 13px 4px; }
.profile-summary dt { color: var(--muted); font-size: .6rem; }
.profile-summary dd { margin: 3px 0 0; font-family: var(--font-display); font-weight: 800; }
.profile-summary .button + .button { margin-top: 8px; }
.profile-summary .text-link { margin-top: 16px; }
.profile-content h2 { margin-bottom: 18px; }
.empty-state { display: grid; min-height: 280px; place-items: center; align-content: center; padding: 35px; border: 1px dashed rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.02); text-align: center; }
.empty-state > span { color: var(--gold-light); font-size: 2.4rem; }
.empty-state h2, .empty-state h3 { margin: 10px 0 8px; }
.empty-state p { max-width: 550px; margin-bottom: 18px; color: var(--muted); }
.empty-state--warning { border-color: rgba(251,191,36,.25); background: rgba(251,191,36,.035); }
.error-page { display: grid; min-height: 70vh; place-items: center; align-content: center; padding: 60px 20px; text-align: center; }
.error-page > span { color: transparent; font-family: var(--font-display); font-size: clamp(6rem, 19vw, 14rem); font-weight: 800; line-height: .8; -webkit-text-stroke: 1px rgba(212,175,55,.5); }
.error-page h1 { margin: 28px 0 10px; font-size: 2.5rem; }
.error-page p { color: var(--muted); }

/* Messages */
.flash-stack { position: fixed; z-index: 200; top: 88px; right: 20px; display: grid; width: min(380px, calc(100% - 40px)); gap: 8px; }
.flash { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(17,19,24,.94); box-shadow: var(--shadow); font-size: .75rem; backdrop-filter: blur(16px); }
.flash--success { border-color: rgba(16,185,129,.3); }
.flash--error { border-color: rgba(251,113,133,.3); }
.flash--warning { border-color: rgba(251,191,36,.3); }
.flash button { border: 0; background: transparent; color: var(--muted); font-size: 1.2rem; }

/* Administration */
.admin-page main, .admin-login-page main { min-height: calc(100vh - 76px); }
.admin-nav { display: flex; position: sticky; z-index: 90; top: 76px; align-items: center; gap: 5px; padding-block: 10px; border-bottom: 1px solid var(--line); background: rgba(10,12,16,.94); backdrop-filter: blur(18px); }
.admin-nav a, .admin-nav button { display: inline-flex; min-height: 36px; align-items: center; padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-family: var(--font-display); font-size: .75rem; font-weight: 800; }
.admin-nav a:hover, .admin-nav a.is-active, .admin-nav button:hover { background: var(--surface-3); color: var(--gold-light); }
.admin-nav form { margin-left: auto; }
.admin-shell { padding-block: 55px 75px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
.admin-heading h1 { margin-bottom: 10px; font-size: clamp(2.3rem, 5vw, 4rem); }
.admin-heading p:last-child { margin-bottom: 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); gap: 12px; margin-bottom: 28px; }
.metric-card { display: flex; min-height: 128px; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(22,27,38,.85), rgba(13,16,22,.9)); }
.metric-card span { color: var(--muted); font-size: .7rem; font-weight: 700; }
.metric-card strong { color: var(--gold-light); font-family: var(--font-display); font-size: 2rem; }
.admin-panel { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-glass); }
.admin-panel .section-heading { margin-bottom: 20px; }
.admin-filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto auto; align-items: end; gap: 12px; margin-bottom: 24px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.025); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 14px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-table th { color: var(--muted); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.admin-table td { font-size: .76rem; }
.admin-table td strong, .admin-table td small { display: block; }
.admin-table td small { margin-top: 4px; color: var(--muted); font-size: .66rem; }
.admin-thumbnail { width: 92px; height: 60px; border-radius: 9px; object-fit: cover; background: var(--bg-deep); }
.status-pill { display: inline-flex; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.status-pill--published { border-color: rgba(16,185,129,.3); color: #6ee7b7; }
.status-pill--pending { border-color: rgba(251,191,36,.3); color: #fde68a; }
.status-pill--archived, .status-pill--rejected { color: var(--muted); }
.table-actions { display: flex; align-items: center; gap: 10px; }
.table-actions form { margin: 0; }
.text-link--danger, .link-button, .delete-details summary { color: #fda4af; }
.link-button { padding: 0; border: 0; background: transparent; font-size: .72rem; font-weight: 700; }
.admin-split { display: grid; grid-template-columns: 360px minmax(0, 1fr); align-items: start; gap: 24px; }
.admin-panel--form { position: sticky; top: 142px; }
.admin-panel--form h2 { font-size: 1.45rem; }
.check-row { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .75rem; }
.delete-details { position: relative; }
.delete-details summary { cursor: pointer; font-size: .72rem; font-weight: 700; }
.delete-details[open] form { display: grid; position: absolute; z-index: 20; right: 0; width: 280px; gap: 12px; padding: 15px; border: 1px solid rgba(251,113,133,.3); border-radius: 12px; background: #111318; box-shadow: var(--shadow); }
.delete-details label { display: grid; gap: 6px; color: var(--muted); font-size: .67rem; }
.delete-details select { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.upload-preview { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .72rem; }
.upload-preview[hidden] { display: none; }
.upload-preview img, .upload-preview video { width: 150px; height: 90px; border-radius: 9px; object-fit: cover; background: var(--bg-deep); }
.upload-preview img[hidden], .upload-preview video[hidden] { display: none; }
.upload-file-info { margin: 8px 0 0; color: var(--muted); font-size: .72rem; overflow-wrap: anywhere; }
.upload-server-limits { margin: 8px 0 0; padding: 10px 12px; border: 1px solid rgba(30,107,255,.22); border-radius: 9px; background: rgba(30,107,255,.06); color: var(--muted); font-size: .72rem; line-height: 1.55; }
.upload-server-limits strong { color: var(--text); }
.upload-progress { padding: 15px 17px; border: 1px solid rgba(30,107,255,.28); border-radius: 12px; background: rgba(30,107,255,.07); }
.upload-progress[hidden] { display: none; }
.upload-progress div { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 9px; color: var(--muted); font-size: .72rem; }
.upload-progress strong { color: var(--text); font-variant-numeric: tabular-nums; }
.upload-progress progress { display: block; width: 100%; height: 9px; overflow: hidden; border: 0; border-radius: 999px; accent-color: var(--blue); background: var(--surface-2); }
.upload-progress progress::-webkit-progress-bar { border-radius: 999px; background: var(--surface-2); }
.upload-progress progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--gold)); }
.upload-progress progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--gold)); }
.upload-form button:disabled, .upload-form input:disabled, .upload-form select:disabled { cursor: wait; opacity: .65; }

@media (max-width: 1240px) {
    .header-search { display: none; }
    .main-nav { margin-left: auto; }
    .wallpaper-grid--motion { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .container-wide { width: min(100% - 32px, 1480px); }
    .aura-parallax-hero { height: clamp(430px, 68vw, 670px); }
    .aura-parallax-poster { --poster-lift: clamp(58px, 8vw, 78px); top: calc(44% - var(--poster-lift)); font-size: clamp(4rem, 17vw, 10rem); }
    .aura-parallax-layer { inset-inline: -10%; }
    .aura-parallax-layer--middle img, .aura-parallax-layer--front img { object-position: center bottom; }
    .nav-toggle { display: grid; place-items: center; }
    .main-nav { position: fixed; z-index: 120; top: 76px; right: 0; bottom: 0; left: 0; display: none; align-content: start; align-items: stretch; gap: 5px; padding: 24px 16px; border: 0; border-radius: 0; background: rgba(8,10,14,.98); }
    .main-nav.is-open { display: grid; }
    .main-nav a { padding: 14px 16px; font-size: .9rem; }
    .header-actions { margin-left: 0; }
    .user-chip > span:last-child { display: none; }
    .live-hero__grid { grid-template-columns: 1fr; gap: 36px; }
    .live-hero__copy { max-width: 760px; }
    .live-feature { min-height: 350px; }
    .device-preview-section { grid-template-columns: 1fr; gap: 35px; }
    .catalog-layout { grid-template-columns: 1fr; }
    .filter-toggle { display: inline-flex; }
    .filters-panel { position: static; display: none; }
    .filters-panel.is-open { display: block; }
    .wallpaper-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-grid, .collection-grid, .category-grid--large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-panel { position: static; }
    .profile-shell { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
    .admin-filters { grid-template-columns: repeat(3, 1fr); }
    .admin-split { grid-template-columns: 1fr; }
    .admin-panel--form { position: static; }
}
@media (max-width: 700px) {
    body { font-size: 14px; }
    .container, .container-wide { width: min(100% - 24px, 1180px); }
    .aura-parallax-hero { height: clamp(390px, 116vw, 590px); }
    .aura-parallax-poster { --poster-lift: clamp(40px, 11vw, 64px); top: calc(42% - var(--poster-lift)); font-size: clamp(3.5rem, 15.5vw, 6.5rem); letter-spacing: 0.02em; }
    .aura-parallax-layer { inset: -7% -20%; }
    .aura-parallax-layer--middle img { object-position: 50% bottom; }
    .aura-parallax-layer--front { inset: -5% -12%; }
    .aura-parallax-layer--front img { object-position: 50% bottom; }
    .aura-parallax-hero::after { height: 34%; }
    .site-header__inner { min-height: 68px; gap: 9px; }
    .brand__logo { width: 36px; height: 36px; }
    .brand__text small { display: none; }
    .main-nav { top: 68px; }
    .header-register { display: none; }
    .catalog-hero h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
    .hero-search { min-height: 56px; padding-left: 14px; }
    .hero-search .button { min-width: 48px; padding-inline: 14px; }
    .catalog-hero { padding-block: 75px 62px; }
    .live-hero__grid { min-height: auto; padding-block: 58px; }
    .live-hero h1 { font-size: clamp(3rem, 15vw, 4.2rem); }
    .live-feature, .live-feature img, .live-feature video { min-height: 300px; }
    .device-preview-section { margin-top: 42px; padding: 25px 18px; }
    .device-stage { min-height: 250px; }
    .catalog-section, .page-section, .showcase-section { padding-block: 50px; }
    .catalog-toolbar, .section-heading { align-items: start; flex-direction: column; }
    .wallpaper-grid, .wallpaper-grid--featured, .wallpaper-grid--motion { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .wallpaper-card__body { padding: 11px; }
    .wallpaper-card__title-row { display: block; }
    .download-count { display: block; margin-bottom: 7px; }
    .wallpaper-card__meta span:nth-child(2) { display: none; }
    .motion-placeholder { align-items: start; flex-direction: column; }
    .category-grid, .collection-grid, .category-grid--large { grid-template-columns: 1fr; }
    .page-hero { padding-block: 65px 50px; }
    .detail-page { padding-top: 22px; }
    .detail-preview { min-height: 300px; }
    .detail-panel { padding: 21px; }
    .auth-card { padding: 28px 21px; }
    .upload-form { grid-template-columns: 1fr; padding: 22px 17px; }
    .field-group--wide { grid-column: auto; }
    .admin-page main, .admin-login-page main { min-height: calc(100vh - 68px); }
    .admin-nav { top: 68px; overflow-x: auto; }
    .admin-heading { align-items: start; flex-direction: column; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-filters { grid-template-columns: 1fr; }
    .admin-panel { padding: 18px 13px; }
    .admin-table th, .admin-table td { padding: 11px 9px; }
}
@media (max-width: 430px) {
    .brand__text strong { font-size: .82rem; }
    .header-actions .button--compact { padding-inline: 11px; }
    .wallpaper-grid, .wallpaper-grid--featured, .wallpaper-grid--motion { grid-template-columns: 1fr 1fr; }
    .wallpaper-card__media, .wallpaper-card--portrait .wallpaper-card__media { aspect-ratio: 4 / 5; }
    .card-badges .badge + .badge { display: none; }
    .wallpaper-card__title-row h3 { font-size: .83rem; }
    .spec-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .aura-parallax-layer, .aura-parallax-media { transform: none !important; will-change: auto; }
    .wallpaper-card:hover, .button:hover, .category-card:hover, .collection-card:hover { transform: none; }
    video { transition: none !important; }
}
