:root {
    --bg-0: #07050f;
    --bg-1: #130a2b;
    --bg-2: #231047;
    --bg-3: #311766;
    --panel: rgba(22, 15, 47, 0.74);
    --panel-strong: rgba(28, 18, 57, 0.92);
    --line: rgba(177, 113, 255, 0.34);
    --line-soft: rgba(105, 227, 255, 0.22);
    --text: #f4ebff;
    --muted: #b9a8da;
    --accent: #b455ff;
    --accent-2: #5be7ff;
    --accent-3: #ff6fd8;
    --success: #66f2d2;
    --danger: #ff5eb0;
    --warning: #ffd166;
    --shadow-neon: 0 0 0 1px rgba(180, 85, 255, 0.28), 0 24px 50px rgba(5, 0, 16, 0.6), 0 0 40px rgba(180, 85, 255, 0.22);
    --panel-adaptive: #00000061;
    --panel-adaptive-soft: #00000052;
    --panel-adaptive-strong: #00000073;
    --bg-radial-cyan: rgba(91, 231, 255, 0.2);
    --bg-radial-purple: rgba(180, 85, 255, 0.28);
    --bg-radial-pink: rgba(255, 111, 216, 0.2);
    --fx-orb-cyan: rgba(91, 231, 255, 0.34);
    --fx-orb-purple: rgba(180, 85, 255, 0.38);
    --fx-orb-pink: rgba(255, 111, 216, 0.3);
    --fx-conic-cyan: rgba(91, 231, 255, 0.12);
    --fx-conic-purple: rgba(180, 85, 255, 0.14);
    --fx-conic-pink: rgba(255, 111, 216, 0.12);
    --fx-layer-opacity: 0.5;
    --fx-layer-blur: 20px;
    --fx-orbit-duration: 44s;
    --fx-pulse-duration: 12s;
    --fx-orbit-scale: 1.03;
    --fx-light-core: rgba(194, 242, 255, 0.78);
    --fx-light-glow: rgba(91, 231, 255, 0.52);
    --kp1: #ffadad;
    --kp2: #ffd6a5;
    --kp3: #fdffb6;
    --kp4: #caffbf;
    --kp5: #9bf6ff;
    --kp-shift-ms: 1600ms;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.ui-future {
    margin: 0;
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 8%, var(--bg-radial-cyan), transparent 38%),
        radial-gradient(circle at 88% 4%, var(--bg-radial-purple), transparent 42%),
        radial-gradient(circle at 52% 100%, var(--bg-radial-pink), transparent 45%),
        linear-gradient(145deg, var(--bg-0), var(--bg-1) 40%, var(--bg-2) 72%, var(--bg-3));
    background-attachment: fixed;
}

body.ui-future[data-bg-preset="aurora"] {
    --bg-radial-cyan: rgba(112, 235, 255, 0.24);
    --bg-radial-purple: rgba(104, 131, 255, 0.24);
    --bg-radial-pink: rgba(96, 255, 216, 0.18);
    --fx-orb-cyan: rgba(120, 237, 255, 0.38);
    --fx-orb-purple: rgba(111, 130, 255, 0.34);
    --fx-orb-pink: rgba(111, 255, 231, 0.3);
    --fx-conic-cyan: rgba(123, 239, 255, 0.14);
    --fx-conic-purple: rgba(126, 148, 255, 0.14);
    --fx-conic-pink: rgba(111, 255, 231, 0.13);
    --fx-light-core: rgba(205, 255, 250, 0.8);
    --fx-light-glow: rgba(116, 195, 255, 0.5);
}

body.ui-future[data-bg-preset="sunset"] {
    --bg-radial-cyan: rgba(255, 171, 106, 0.2);
    --bg-radial-purple: rgba(255, 107, 196, 0.28);
    --bg-radial-pink: rgba(255, 95, 141, 0.22);
    --fx-orb-cyan: rgba(255, 180, 105, 0.34);
    --fx-orb-purple: rgba(255, 102, 198, 0.36);
    --fx-orb-pink: rgba(255, 96, 149, 0.32);
    --fx-conic-cyan: rgba(255, 178, 106, 0.13);
    --fx-conic-purple: rgba(255, 112, 196, 0.15);
    --fx-conic-pink: rgba(255, 96, 149, 0.14);
    --fx-light-core: rgba(255, 225, 172, 0.82);
    --fx-light-glow: rgba(255, 124, 196, 0.5);
}

body.ui-future[data-bg-preset="deep_ocean"] {
    --bg-radial-cyan: rgba(54, 152, 255, 0.2);
    --bg-radial-purple: rgba(42, 95, 212, 0.24);
    --bg-radial-pink: rgba(86, 221, 255, 0.16);
    --fx-orb-cyan: rgba(71, 178, 255, 0.32);
    --fx-orb-purple: rgba(64, 111, 229, 0.34);
    --fx-orb-pink: rgba(96, 222, 255, 0.28);
    --fx-conic-cyan: rgba(84, 188, 255, 0.14);
    --fx-conic-purple: rgba(70, 128, 240, 0.14);
    --fx-conic-pink: rgba(94, 229, 255, 0.13);
    --fx-light-core: rgba(190, 238, 255, 0.78);
    --fx-light-glow: rgba(88, 182, 255, 0.52);
}

body.ui-future[data-bg-preset="emerald"] {
    --bg-radial-cyan: rgba(96, 255, 210, 0.18);
    --bg-radial-purple: rgba(54, 200, 165, 0.2);
    --bg-radial-pink: rgba(126, 255, 230, 0.16);
    --fx-orb-cyan: rgba(108, 255, 219, 0.3);
    --fx-orb-purple: rgba(69, 221, 183, 0.3);
    --fx-orb-pink: rgba(140, 255, 235, 0.26);
    --fx-conic-cyan: rgba(106, 255, 220, 0.12);
    --fx-conic-purple: rgba(74, 230, 189, 0.13);
    --fx-conic-pink: rgba(150, 255, 238, 0.12);
    --fx-light-core: rgba(214, 255, 246, 0.8);
    --fx-light-glow: rgba(90, 237, 196, 0.5);
}

body.ui-future[data-bg-preset="mono"] {
    --bg-radial-cyan: rgba(176, 186, 212, 0.12);
    --bg-radial-purple: rgba(129, 139, 166, 0.14);
    --bg-radial-pink: rgba(200, 206, 224, 0.1);
    --fx-orb-cyan: rgba(188, 197, 224, 0.22);
    --fx-orb-purple: rgba(149, 158, 185, 0.24);
    --fx-orb-pink: rgba(206, 212, 230, 0.2);
    --fx-conic-cyan: rgba(186, 196, 222, 0.1);
    --fx-conic-purple: rgba(151, 160, 187, 0.11);
    --fx-conic-pink: rgba(206, 214, 233, 0.1);
    --fx-light-core: rgba(231, 235, 246, 0.72);
    --fx-light-glow: rgba(162, 170, 191, 0.4);
}

body.ui-future[data-bg-preset="neon_fire"] {
    --bg-radial-cyan: rgba(255, 62, 62, 0.24);
    --bg-radial-purple: rgba(255, 120, 0, 0.3);
    --bg-radial-pink: rgba(255, 0, 132, 0.24);
    --fx-orb-cyan: rgba(255, 78, 78, 0.42);
    --fx-orb-purple: rgba(255, 142, 28, 0.42);
    --fx-orb-pink: rgba(255, 0, 154, 0.38);
    --fx-conic-cyan: rgba(255, 82, 82, 0.18);
    --fx-conic-purple: rgba(255, 144, 26, 0.2);
    --fx-conic-pink: rgba(255, 0, 160, 0.18);
    --fx-light-core: rgba(255, 214, 176, 0.9);
    --fx-light-glow: rgba(255, 96, 36, 0.62);
}

body.ui-future[data-bg-preset="acid"] {
    --bg-radial-cyan: rgba(127, 255, 0, 0.28);
    --bg-radial-purple: rgba(0, 255, 174, 0.24);
    --bg-radial-pink: rgba(217, 255, 0, 0.22);
    --fx-orb-cyan: rgba(140, 255, 0, 0.42);
    --fx-orb-purple: rgba(0, 255, 188, 0.36);
    --fx-orb-pink: rgba(224, 255, 38, 0.34);
    --fx-conic-cyan: rgba(142, 255, 20, 0.18);
    --fx-conic-purple: rgba(0, 255, 201, 0.16);
    --fx-conic-pink: rgba(227, 255, 50, 0.16);
    --fx-light-core: rgba(236, 255, 176, 0.9);
    --fx-light-glow: rgba(132, 255, 0, 0.62);
}

body.ui-future[data-bg-preset="ultraviolet"] {
    --bg-radial-cyan: rgba(126, 0, 255, 0.26);
    --bg-radial-purple: rgba(86, 0, 255, 0.28);
    --bg-radial-pink: rgba(222, 0, 255, 0.22);
    --fx-orb-cyan: rgba(136, 0, 255, 0.42);
    --fx-orb-purple: rgba(97, 0, 255, 0.4);
    --fx-orb-pink: rgba(236, 0, 255, 0.34);
    --fx-conic-cyan: rgba(144, 0, 255, 0.18);
    --fx-conic-purple: rgba(102, 0, 255, 0.2);
    --fx-conic-pink: rgba(241, 0, 255, 0.18);
    --fx-light-core: rgba(233, 206, 255, 0.86);
    --fx-light-glow: rgba(168, 78, 255, 0.62);
}

body.ui-future[data-bg-preset="minenergo"] {
    --bg-radial-cyan: rgba(54, 148, 235, 0.18);
    --bg-radial-purple: rgba(5, 61, 108, 0.28);
    --bg-radial-pink: rgba(21, 101, 177, 0.2);
    --fx-orb-cyan: rgba(78, 172, 255, 0.34);
    --fx-orb-purple: rgba(5, 61, 108, 0.38);
    --fx-orb-pink: rgba(39, 124, 205, 0.3);
    --fx-conic-cyan: rgba(64, 158, 242, 0.16);
    --fx-conic-purple: rgba(5, 61, 108, 0.18);
    --fx-conic-pink: rgba(30, 109, 186, 0.16);
    --fx-light-core: rgba(182, 220, 255, 0.82);
    --fx-light-glow: rgba(5, 61, 108, 0.58);
    --bg-0: #021a30;
    --bg-1: #053d6c;
    --bg-2: #0a538f;
    --bg-3: #0f6aa9;
}

body.ui-future[data-bg-preset="blue_ice"] {
    --bg-radial-cyan: rgba(124, 196, 255, 0.2);
    --bg-radial-purple: rgba(34, 68, 120, 0.18);
    --bg-radial-pink: rgba(244, 249, 255, 0.1);
    --fx-orb-cyan: rgba(155, 216, 255, 0.32);
    --fx-orb-purple: rgba(62, 112, 196, 0.22);
    --fx-orb-pink: rgba(255, 255, 255, 0.22);
    --fx-conic-cyan: rgba(168, 224, 255, 0.13);
    --fx-conic-purple: rgba(76, 128, 214, 0.12);
    --fx-conic-pink: rgba(255, 255, 255, 0.1);
    --fx-light-core: rgba(244, 249, 255, 0.9);
    --fx-light-glow: rgba(140, 211, 255, 0.54);
    --bg-0: #02060d;
    --bg-1: #07111d;
    --bg-2: #10243b;
    --bg-3: #1b3553;
}

body.ui-future[data-bg-preset="teal_graphite"] {
    --bg-radial-cyan: rgba(25, 136, 149, 0.24);
    --bg-radial-purple: rgba(25, 59, 69, 0.32);
    --bg-radial-pink: rgba(120, 228, 230, 0.12);
    --fx-orb-cyan: rgba(42, 164, 178, 0.34);
    --fx-orb-purple: rgba(28, 75, 86, 0.36);
    --fx-orb-pink: rgba(136, 236, 238, 0.2);
    --fx-conic-cyan: rgba(37, 160, 174, 0.15);
    --fx-conic-purple: rgba(27, 83, 94, 0.18);
    --fx-conic-pink: rgba(153, 239, 241, 0.1);
    --fx-light-core: rgba(219, 252, 251, 0.8);
    --fx-light-glow: rgba(25, 136, 149, 0.56);
    --bg-0: #071116;
    --bg-1: #10262d;
    --bg-2: #193b45;
    --bg-3: #198895;
}

body.ui-future[data-bg-preset="caspian_glow"] {
    --bg-radial-cyan: rgba(25, 136, 149, 0.3);
    --bg-radial-purple: rgba(12, 38, 46, 0.26);
    --bg-radial-pink: rgba(118, 248, 255, 0.16);
    --fx-orb-cyan: rgba(49, 182, 196, 0.38);
    --fx-orb-purple: rgba(22, 71, 82, 0.28);
    --fx-orb-pink: rgba(165, 250, 255, 0.24);
    --fx-conic-cyan: rgba(57, 185, 199, 0.16);
    --fx-conic-purple: rgba(30, 88, 98, 0.12);
    --fx-conic-pink: rgba(180, 251, 255, 0.14);
    --fx-light-core: rgba(235, 255, 254, 0.86);
    --fx-light-glow: rgba(74, 210, 221, 0.6);
    --bg-0: #041014;
    --bg-1: #0d2930;
    --bg-2: #14505b;
    --bg-3: #198895;
}

body.ui-future[data-bg-preset="mint_steel"] {
    --bg-radial-cyan: rgba(105, 225, 228, 0.18);
    --bg-radial-purple: rgba(25, 59, 69, 0.24);
    --bg-radial-pink: rgba(226, 255, 255, 0.1);
    --fx-orb-cyan: rgba(123, 233, 235, 0.3);
    --fx-orb-purple: rgba(42, 88, 99, 0.26);
    --fx-orb-pink: rgba(236, 255, 255, 0.18);
    --fx-conic-cyan: rgba(136, 236, 238, 0.12);
    --fx-conic-purple: rgba(50, 104, 114, 0.13);
    --fx-conic-pink: rgba(245, 255, 255, 0.1);
    --fx-light-core: rgba(246, 255, 255, 0.9);
    --fx-light-glow: rgba(122, 216, 220, 0.48);
    --bg-0: #0a1012;
    --bg-1: #131f24;
    --bg-2: #1d4851;
    --bg-3: #4ca6ad;
}

body.ui-future[data-bg-preset="abyss_teal"] {
    --bg-radial-cyan: rgba(25, 136, 149, 0.2);
    --bg-radial-purple: rgba(8, 20, 24, 0.34);
    --bg-radial-pink: rgba(82, 201, 205, 0.12);
    --fx-orb-cyan: rgba(34, 155, 169, 0.28);
    --fx-orb-purple: rgba(16, 43, 50, 0.34);
    --fx-orb-pink: rgba(97, 210, 214, 0.18);
    --fx-conic-cyan: rgba(35, 162, 177, 0.12);
    --fx-conic-purple: rgba(18, 48, 56, 0.18);
    --fx-conic-pink: rgba(108, 216, 220, 0.1);
    --fx-light-core: rgba(214, 248, 247, 0.72);
    --fx-light-glow: rgba(25, 136, 149, 0.46);
    --bg-0: #020607;
    --bg-1: #07171b;
    --bg-2: #10272e;
    --bg-3: #193b45;
}

body.ui-future[data-bg-preset="none"] {
    --text: #ffffff;
    --muted: #c7d0dc;
    --accent: #7bd8e7;
    --accent-2: #a7f1ff;
    --accent-3: #8fb7ff;
    --bg-radial-cyan: transparent;
    --bg-radial-purple: transparent;
    --bg-radial-pink: transparent;
    --fx-orb-cyan: rgba(91, 231, 255, 0.22);
    --fx-orb-purple: rgba(180, 85, 255, 0.22);
    --fx-orb-pink: rgba(255, 111, 216, 0.18);
    --fx-conic-cyan: rgba(91, 231, 255, 0.08);
    --fx-conic-purple: rgba(180, 85, 255, 0.08);
    --fx-conic-pink: rgba(255, 111, 216, 0.08);
    --fx-light-core: rgba(208, 243, 255, 0.72);
    --fx-light-glow: rgba(91, 231, 255, 0.36);
    --bg-0: #000000;
    --bg-1: #000000;
    --bg-2: #000000;
    --bg-3: #000000;
}

.fx-lights {
    position: fixed;
    inset: -12vh 0 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -2;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

body.ui-future[data-bg-effect="lines"] .fx-lights {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.fx-light {
    position: absolute;
    left: 50%;
    bottom: -24vh;
    width: 2px;
    height: 22vh;
    opacity: 0;
    border-radius: 999px;
    background: linear-gradient(to top, transparent 0%, var(--fx-light-core) 45%, transparent 100%);
    box-shadow: 0 0 18px var(--fx-light-glow), 0 0 34px var(--fx-light-glow);
    filter: blur(0.3px);
    transform: translate3d(0, 0, 0) scaleY(0.82);
    animation: future-light-rise var(--light-duration, 7.2s) linear infinite;
    animation-delay: var(--light-delay, 0s);
}

.fx-light:nth-child(1) {
    left: 7%;
    --light-duration: 8.8s;
    --light-delay: -3.4s;
    --light-drift: 18px;
}

.fx-light:nth-child(2) {
    left: 15%;
    --light-duration: 6.3s;
    --light-delay: -5.2s;
    --light-drift: -14px;
}

.fx-light:nth-child(3) {
    left: 24%;
    --light-duration: 9.4s;
    --light-delay: -1.8s;
    --light-drift: 10px;
}

.fx-light:nth-child(4) {
    left: 36%;
    --light-duration: 7.1s;
    --light-delay: -6s;
    --light-drift: -20px;
}

.fx-light:nth-child(5) {
    left: 49%;
    --light-duration: 10.2s;
    --light-delay: -2.6s;
    --light-drift: 14px;
}

.fx-light:nth-child(6) {
    left: 62%;
    --light-duration: 5.8s;
    --light-delay: -4.7s;
    --light-drift: -12px;
}

.fx-light:nth-child(7) {
    left: 74%;
    --light-duration: 8.1s;
    --light-delay: -1.2s;
    --light-drift: 22px;
}

.fx-light:nth-child(8) {
    left: 86%;
    --light-duration: 6.8s;
    --light-delay: -3.9s;
    --light-drift: -16px;
}

.fx-light:nth-child(9) {
    left: 94%;
    --light-duration: 9.7s;
    --light-delay: -5.5s;
    --light-drift: 12px;
}

body.ui-future::before {
    content: "";
    display: none;
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 70px 70px;
    mix-blend-mode: soft-light;
    opacity: 0.3;
    z-index: -3;
}

body.ui-future::after {
    content: "";
    display: none;
    position: fixed;
    inset: -36%;
    pointer-events: none;
    opacity: var(--fx-layer-opacity);
    z-index: -4;
    mix-blend-mode: screen;
    transform-origin: 50% 50%;
    background:
        radial-gradient(circle at 16% 18%, var(--fx-orb-cyan), transparent 34%),
        radial-gradient(circle at 84% 18%, var(--fx-orb-purple), transparent 36%),
        radial-gradient(circle at 50% 84%, var(--fx-orb-pink), transparent 38%),
        conic-gradient(from 0deg at 50% 50%, var(--fx-conic-cyan), var(--fx-conic-purple), var(--fx-conic-pink), var(--fx-conic-cyan));
    filter: blur(var(--fx-layer-blur));
    animation: future-bg-orbit var(--fx-orbit-duration) linear infinite, future-bg-pulse var(--fx-pulse-duration) ease-in-out infinite alternate;
    will-change: transform;
}

body.ui-future[data-bg-effect="orbit"]::before,
body.ui-future[data-bg-effect="orbit"]::after {
    display: block;
}

body.ui-future[data-bg-effect="lines"]::before {
    display: block;
}

body.ui-future[data-bg-effect="strobe"]::before,
body.ui-future[data-bg-effect="strobe"]::after {
    display: block;
}

body.ui-future[data-bg-effect="strobe"]::after {
    animation: future-bg-strobe 1.1s steps(2, end) infinite;
}

body.ui-future[data-bg-effect="turbulence"]::after {
    display: block;
    animation: future-bg-turbulence 5.5s ease-in-out infinite;
}

body.ui-future[data-bg-effect="laser"] .fx-lights {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

body.ui-future[data-bg-effect="laser"] .fx-light {
    width: 3px;
    filter: blur(0.1px);
    animation-duration: 3.6s;
}

body.ui-future[data-bg-effect="ribbons"] {
    background-color: #403060;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 100%);
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

@media (hover: none) and (pointer: coarse) {
    body.ui-future,
    body.ui-future[data-bg-effect="ribbons"] {
        background-attachment: scroll;
    }

    body.ui-future.public-join-page,
    body.ui-future.public-ask-page,
    body.ui-future.public-join-page[data-bg-effect="ribbons"],
    body.ui-future.public-ask-page[data-bg-effect="ribbons"] {
        background-attachment: fixed;
    }

    body.ui-future.public-join-page::before,
    body.ui-future.public-join-page::after,
    body.ui-future.public-join-page .fx-lights,
    body.ui-future.public-join-page .fx-ribbons-canvas,
    body.ui-future.public-join-page .fx-tubes-canvas,
    body.ui-future.public-join-page .fx-wavegrid-canvas,
    body.ui-future.public-join-page .fx-psy-dots,
    body.ui-future.public-join-page .fx-clock,
    body.ui-future.public-join-page .fx-circles,
    body.ui-future.public-join-page .fx-duotone {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        animation: none !important;
    }

    body.ui-future.public-join-page .public-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(22, 15, 47, 0.88);
    }
}

.fx-ribbons-canvas {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    z-index: -1;
    pointer-events: none;
}

.fx-tubes-canvas {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.7s ease;
}

body.ui-future[data-bg-effect="tubes"] .fx-tubes-canvas {
    opacity: 1;
}

.fx-wavegrid-canvas {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.7s ease;
}

body.ui-future[data-bg-effect="wave_grid"] .fx-wavegrid-canvas,
body.ui-future[data-bg-effect="wave-grid"] .fx-wavegrid-canvas {
    opacity: 1;
}

.ui-background-pattern {
    --bg-pattern-opacity: 0;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: var(--bg-pattern-opacity);
    transition: opacity 0.25s ease;
}

.fx-psy-dots {
    display: block;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

body.ui-future[data-bg-effect="psy_dots"],
body.ui-future[data-bg-effect="psy-dots"] {
    background-color: #123;
}

body.ui-future[data-bg-effect="psy_dots"] .fx-psy-dots,
body.ui-future[data-bg-effect="psy-dots"] .fx-psy-dots {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.fx-clock {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

body.ui-future[data-bg-effect="clock"] .fx-clock {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.fx-clock-face,
.fx-clock-ring,
.fx-clock-hand,
.fx-clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.fx-clock-face {
    width: min(72vmin, 660px);
    height: min(72vmin, 660px);
    border-radius: 50%;
    border: 2px solid rgba(133, 248, 255, 0.28);
    box-shadow:
        0 0 28px rgba(95, 243, 255, 0.22),
        inset 0 0 40px rgba(180, 85, 255, 0.16);
    background:
        radial-gradient(circle at center, rgba(180, 85, 255, 0.1) 0%, rgba(9, 8, 23, 0.02) 58%, transparent 74%),
        repeating-conic-gradient(
            from 0deg,
            rgba(91, 231, 255, 0.24) 0deg 1deg,
            transparent 1deg 6deg
        );
    animation: future-clock-face 14s linear infinite;
}

.fx-clock-ring {
    border-radius: 50%;
    border: 1px solid rgba(180, 85, 255, 0.34);
    box-shadow: 0 0 18px rgba(181, 89, 255, 0.24);
}

.fx-clock-ring-1 {
    width: min(80vmin, 740px);
    height: min(80vmin, 740px);
    animation: future-clock-ring-cw 38s linear infinite;
}

.fx-clock-ring-2 {
    width: min(62vmin, 560px);
    height: min(62vmin, 560px);
    border-color: rgba(91, 231, 255, 0.3);
    box-shadow: 0 0 22px rgba(91, 231, 255, 0.26);
    animation: future-clock-ring-ccw 26s linear infinite;
}

.fx-clock-hand {
    transform-origin: center bottom;
    border-radius: 999px;
    filter: drop-shadow(0 0 14px rgba(91, 231, 255, 0.6));
}

.fx-clock-hand-hour {
    width: 8px;
    height: min(18vmin, 160px);
    background: linear-gradient(180deg, rgba(245, 224, 255, 0.96), rgba(182, 95, 255, 0.72));
    animation: future-clock-hour 120s linear infinite;
}

.fx-clock-hand-minute {
    width: 5px;
    height: min(26vmin, 240px);
    background: linear-gradient(180deg, rgba(220, 250, 255, 0.96), rgba(91, 231, 255, 0.78));
    animation: future-clock-minute 20s linear infinite;
}

.fx-clock-center {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff, #8ef4ff 56%, #8a4eff);
    box-shadow: 0 0 18px rgba(142, 244, 255, 0.68);
}

.fx-psy-dot {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 3em;
    height: 3em;
    font-size: 52px;
    line-height: 1.3;
    color: transparent;
    mix-blend-mode: screen;
    opacity: 0;
    filter: blur(0.7px);
    transition: opacity 1s ease, filter 1s ease;
    animation: future-psy-move 44s ease-in-out infinite alternate;
}

body.ui-future[data-bg-effect="psy_dots"] .fx-psy-dot,
body.ui-future[data-bg-effect="psy-dots"] .fx-psy-dot {
    opacity: 0.95;
    filter: blur(0);
}

.fx-psy-dot-a {
    text-shadow:
        -0.8em -0.1em 7px hsla(12, 100%, 50%, 0.9),
        0.5em -0.6em 7px hsla(36, 100%, 50%, 0.9),
        0.9em 0.4em 7px hsla(112, 100%, 50%, 0.9),
        -0.4em 0.8em 7px hsla(188, 100%, 50%, 0.9),
        0.2em 1.1em 7px hsla(248, 100%, 58%, 0.9),
        -1em 0.5em 7px hsla(302, 100%, 58%, 0.9);
    animation-duration: 44s;
    animation-delay: -27s;
}

.fx-psy-dot-b {
    text-shadow:
        -0.3em -0.9em 7px hsla(20, 100%, 52%, 0.88),
        0.8em -0.3em 7px hsla(74, 100%, 54%, 0.88),
        1.1em 0.7em 7px hsla(152, 100%, 54%, 0.88),
        -0.7em 0.6em 7px hsla(206, 100%, 54%, 0.88),
        0.1em 0.9em 7px hsla(270, 100%, 60%, 0.88),
        -1.1em -0.1em 7px hsla(332, 100%, 60%, 0.88);
    animation-duration: 43s;
    animation-delay: -32s;
}

.fx-psy-dot-c {
    text-shadow:
        -0.9em 0.2em 7px hsla(6, 100%, 52%, 0.88),
        0.4em -1em 7px hsla(48, 100%, 52%, 0.88),
        0.95em 0.1em 7px hsla(124, 100%, 50%, 0.88),
        -0.2em 0.95em 7px hsla(176, 100%, 52%, 0.88),
        0.8em 0.9em 7px hsla(236, 100%, 60%, 0.88),
        -1.05em -0.5em 7px hsla(296, 100%, 60%, 0.88);
    animation-duration: 42s;
    animation-delay: -23s;
}

.fx-psy-dot-d {
    text-shadow:
        -0.5em -0.8em 7px hsla(0, 100%, 52%, 0.86),
        0.7em -0.7em 7px hsla(58, 100%, 54%, 0.86),
        1.05em 0.5em 7px hsla(138, 100%, 54%, 0.86),
        -0.8em 0.9em 7px hsla(196, 100%, 54%, 0.86),
        0.3em 1.1em 7px hsla(258, 100%, 60%, 0.86),
        -1.2em 0.1em 7px hsla(320, 100%, 60%, 0.86);
    animation-duration: 41s;
    animation-delay: -19s;
}

.fx-circles {
    display: block;
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -2;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s ease, visibility 0s linear 1.1s;
}

body.ui-future[data-bg-effect="floating"] .fx-circles {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.fx-duotone {
    display: block;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -5;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

body.ui-future[data-bg-effect="duotone"] .fx-duotone {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.fx-duotone-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.fx-duotone-a {
    background: linear-gradient(to right, #1d2b64, #f8cdda);
    animation: future-duotone-a 25s ease infinite;
}

.fx-duotone-b {
    background: linear-gradient(to right, #43cea2, #185a9d);
    animation: future-duotone-b 25s ease infinite;
}

.fx-circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: future-floating 25s linear infinite;
    bottom: -150px;
    opacity: 0;
}

.fx-circles li:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.fx-circles li:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.fx-circles li:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.fx-circles li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.fx-circles li:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.fx-circles li:nth-child(6) { left: 75%; width: 110px; height: 110px; animation-delay: 3s; }
.fx-circles li:nth-child(7) { left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
.fx-circles li:nth-child(8) { left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; }
.fx-circles li:nth-child(9) { left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
.fx-circles li:nth-child(10) { left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; }

@keyframes future-light-rise {
    0% {
        transform: translate3d(0, 22vh, 0) scaleY(0.76);
        opacity: 0;
    }

    16% {
        opacity: 0.68;
    }

    56% {
        opacity: 0.34;
    }

    100% {
        transform: translate3d(var(--light-drift, 0px), -112vh, 0) scaleY(1.2);
        opacity: 0;
    }
}

@keyframes future-bg-orbit {
    0% {
        transform: rotate(0deg) scale(var(--fx-orbit-scale));
    }

    100% {
        transform: rotate(360deg) scale(var(--fx-orbit-scale));
    }
}

@keyframes future-bg-pulse {
    0% {
        opacity: 0.42;
        filter: blur(20px) saturate(1) brightness(1);
    }

    100% {
        opacity: 0.56;
        filter: blur(24px) saturate(1.2) brightness(1.08);
    }
}

@keyframes future-bg-pulse-fast {
    0% {
        opacity: 0.38;
        filter: blur(16px) saturate(1) brightness(1);
        transform: scale(1.01);
    }

    100% {
        opacity: 0.62;
        filter: blur(26px) saturate(1.22) brightness(1.1);
        transform: scale(1.08);
    }
}

@keyframes future-kaleido-core-orbit {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.06);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes future-kaleido-conic-spin {
    0% {
        transform: rotate(0deg) scale(1.08);
    }

    100% {
        transform: rotate(-360deg) scale(1.08);
    }
}

@keyframes future-kaleido-breathe {
    0% {
        opacity: 0.28;
        filter: blur(66px) saturate(1.1) brightness(1);
    }

    100% {
        opacity: 0.6;
        filter: blur(86px) saturate(1.45) brightness(1.1);
    }
}

@keyframes future-bg-strobe {
    0% {
        opacity: 0.18;
        filter: blur(10px) saturate(1.2) brightness(1);
        transform: scale(1.01);
    }

    50% {
        opacity: 0.74;
        filter: blur(18px) saturate(1.55) brightness(1.22);
        transform: scale(1.08);
    }

    100% {
        opacity: 0.2;
        filter: blur(12px) saturate(1.15) brightness(1);
        transform: scale(1.02);
    }
}

@keyframes future-bg-turbulence {
    0% {
        transform: rotate(0deg) scale(1.02) translate3d(-1.2%, -1%, 0);
        filter: blur(20px) saturate(1.05);
    }

    25% {
        transform: rotate(60deg) scale(1.08) translate3d(1.8%, -1.4%, 0);
        filter: blur(28px) saturate(1.3);
    }

    50% {
        transform: rotate(140deg) scale(1.12) translate3d(1.2%, 1.8%, 0);
        filter: blur(26px) saturate(1.2);
    }

    75% {
        transform: rotate(230deg) scale(1.06) translate3d(-1.8%, 1.2%, 0);
        filter: blur(30px) saturate(1.4);
    }

    100% {
        transform: rotate(360deg) scale(1.02) translate3d(-1.2%, -1%, 0);
        filter: blur(20px) saturate(1.05);
    }
}

@keyframes future-floating {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
        border-radius: 0;
    }

    18% {
        opacity: 0.9;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

@keyframes future-psy-move {
    from {
        transform: rotate(0deg) scale(12) translateX(-20px);
    }

    to {
        transform: rotate(360deg) scale(18) translateX(20px);
    }
}

@keyframes future-duotone-a {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes future-duotone-b {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes future-clock-face {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        filter: brightness(0.95);
    }

    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1.03);
        filter: brightness(1.08);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1);
        filter: brightness(0.95);
    }
}

@keyframes future-clock-ring-cw {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes future-clock-ring-ccw {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes future-clock-hour {
    from {
        transform: translate(-50%, -100%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -100%) rotate(360deg);
    }
}

@keyframes future-clock-minute {
    from {
        transform: translate(-50%, -100%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -100%) rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.ui-future::after {
        animation: none;
    }

    .fx-light {
        animation: none;
        opacity: 0.08;
    }
}

a {
    color: var(--accent-2);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.main-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px;
    position: relative;
    z-index: 1;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(10, 7, 25, 0.72);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(4, 0, 12, 0.45);
}

.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-slot {
    width: 196px;
    height: 60px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(178, 88, 255, 0.15), rgba(91, 231, 255, 0.14));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 25px rgba(180, 85, 255, 0.18), 0 0 24px rgba(91, 231, 255, 0.12);
}

.logo-slot img {
    max-width: 172px;
    max-height: 48px;
    object-fit: contain;
}

.logo-placeholder {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #ddcaf8;
    font-weight: 700;
    text-align: center;
}

.brand-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #f6ebff;
}

.muted {
    color: var(--muted);
}

.top-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: linear-gradient(125deg, rgba(180, 85, 255, 0.16), rgba(91, 231, 255, 0.1));
    color: #f5eeff;
    font-weight: 700;
    text-decoration: none;
}

.top-link:hover {
    text-decoration: none;
    box-shadow: 0 0 0 1px rgba(91, 231, 255, 0.45), 0 0 18px rgba(180, 85, 255, 0.35);
}

.moderator-page {
    --sidebar-width: 318px;
    --sidebar-collapsed-width: 128px;
}

.moderator-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, var(--sidebar-width)) minmax(0, 1fr);
    min-height: 100vh;
    max-width: 1680px;
    margin: 0 auto;
}

.dashboard-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    padding: 24px 0 24px 24px;
}

.dashboard-sidebar-panel {
    height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 22px 20px 20px;
    border: 1px solid rgba(167, 122, 237, 0.28);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(7, 8, 20, 0.9), rgba(17, 11, 36, 0.82)),
        radial-gradient(circle at top right, rgba(91, 231, 255, 0.08), transparent 34%);
    box-shadow: var(--shadow-neon);
    backdrop-filter: blur(18px) saturate(1.06);
    -webkit-backdrop-filter: blur(18px) saturate(1.06);
}

.dashboard-sidebar-head {
    position: relative;
    /* display: flex; */
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.sidebar-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.moderator-brand {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    min-width: 0;
    width: 100%;
}

.moderator-brand-media {
    position: relative;
    min-width: 0;
}

.dashboard-sidebar .logo-slot {
    width: 100%;
    min-height: 104px;
    height: auto;
    display: block;
    padding: 16px 24px;
}

.dashboard-sidebar .logo-slot img {
    display: block;
    /* width: calc(100% - 24px); */
    max-width: none;
    max-height: 72px;
    margin: 0 auto;
}

.moderator-brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.moderator-brand-copy .muted {
    font-size: 14px;
    line-height: 1.45;
}

.dashboard-sidebar-content {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 14px;
    scrollbar-gutter: stable both-edges;
    scrollbar-width: thin;
    scrollbar-color: rgba(91, 231, 255, 0.62) rgba(255, 255, 255, 0.06);
}

.dashboard-sidebar-content::-webkit-scrollbar {
    width: 4px;
}

.dashboard-sidebar-content::-webkit-scrollbar-track {
    margin: 6px 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
}

.dashboard-sidebar-content::-webkit-scrollbar-thumb {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(91, 231, 255, 0.9), rgba(180, 85, 255, 0.78));
    box-shadow: 0 0 12px rgba(91, 231, 255, 0.18);
}

.dashboard-sidebar-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(123, 240, 255, 0.96), rgba(196, 113, 255, 0.86));
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-section-label {
    padding: 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(223, 211, 247, 0.68);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 18px;
    border: 1px solid rgba(177, 113, 255, 0.18);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-link:hover {
    text-decoration: none;
    transform: translateX(2px);
    border-color: rgba(91, 231, 255, 0.36);
    background: linear-gradient(130deg, rgba(91, 231, 255, 0.12), rgba(180, 85, 255, 0.14));
    box-shadow: 0 0 0 1px rgba(91, 231, 255, 0.14), 0 18px 30px rgba(5, 0, 16, 0.28);
}

.sidebar-link.is-active {
    border-color: rgba(91, 231, 255, 0.4);
    background: linear-gradient(135deg, rgba(91, 231, 255, 0.16), rgba(180, 85, 255, 0.2));
    box-shadow: 0 0 0 1px rgba(91, 231, 255, 0.18), 0 18px 34px rgba(5, 0, 16, 0.32);
}

.sidebar-link-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 21px;
    line-height: 1;
}

.sidebar-link-text {
    min-width: 0;
    font-weight: 700;
    line-height: 1.3;
}

.sidebar-link-meta {
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
}

.sidebar-user-card {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(91, 231, 255, 0.18);
    background: linear-gradient(180deg, rgba(91, 231, 255, 0.08), rgba(180, 85, 255, 0.1));
}

.sidebar-user-email {
    font-size: 14px;
    line-height: 1.45;
    color: #f7f1ff;
    word-break: break-word;
}

.sidebar-logout-form {
    margin: 0;
}

.sidebar-toggle,
.sidebar-collapse-toggle,
.sidebar-logout-button,
.sidebar-dismiss,
.moderator-mobile-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sidebar-logout-button {
    width: 100%;
}

.sidebar-collapse-toggle {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(177, 113, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sidebar-collapse-toggle--overlay {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.sidebar-collapse-toggle-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.7;
    transition: transform 0.18s ease;
    pointer-events: none;
}

.sidebar-collapse-toggle.is-collapsed .sidebar-collapse-toggle-icon {
    transform: scaleX(-1);
}

.sidebar-collapse-toggle:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.sidebar-dismiss,
.sidebar-backdrop,
.moderator-mobile-bar {
    display: none;
}

.sidebar-dismiss {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(177, 113, 255, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
}

.sidebar-dismiss .material-icons,
.sidebar-toggle .material-icons,
.sidebar-logout-button .material-icons,
.moderator-mobile-home .material-icons {
    font-size: 20px;
    line-height: 1;
}

body.moderator-sidebar-collapsed .moderator-layout {
    grid-template-columns: var(--sidebar-collapsed-width) minmax(0, 1fr);
}

body.moderator-sidebar-collapsed .dashboard-sidebar {
    padding: 16px 0 16px 12px;
}

body.moderator-sidebar-collapsed .dashboard-sidebar-panel {
    gap: 18px;
    padding: 18px 12px 16px;
}

body.moderator-sidebar-collapsed .dashboard-sidebar-head {
    align-items: center;
    justify-content: center;
}

body.moderator-sidebar-collapsed .sidebar-head-actions {
    position: absolute;
    top: 0;
    right: 0;
}

body.moderator-sidebar-collapsed .moderator-brand {
    gap: 10px;
    align-items: center;
}

body.moderator-sidebar-collapsed .moderator-brand-media {
    width: 100%;
}

body.moderator-sidebar-collapsed .dashboard-sidebar .logo-slot {
    width: 100%;
    min-height: 84px;
    /* display: grid; */
    place-items: center;
    padding: 12px 16px;
}

body.moderator-sidebar-collapsed .dashboard-sidebar .logo-slot img {
    /* width: 100%;
    max-height: 48px; */
}

body.moderator-sidebar-collapsed .moderator-brand-copy,
body.moderator-sidebar-collapsed .sidebar-section-label,
body.moderator-sidebar-collapsed .sidebar-link-text,
body.moderator-sidebar-collapsed .sidebar-link-meta,
body.moderator-sidebar-collapsed .sidebar-user-email {
    display: none;
}

body.moderator-sidebar-collapsed .dashboard-sidebar-content {
    gap: 14px;
    padding-right: 0;
    scrollbar-width: none;
}

body.moderator-sidebar-collapsed .dashboard-sidebar-content::-webkit-scrollbar {
    width: 0;
}

body.moderator-sidebar-collapsed .sidebar-section {
    gap: 10px;
}

body.moderator-sidebar-collapsed .sidebar-nav {
    gap: 8px;
}

body.moderator-sidebar-collapsed .sidebar-link {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
    padding: 11px;
}

body.moderator-sidebar-collapsed .sidebar-link:hover {
    transform: translateY(-1px);
}

body.moderator-sidebar-collapsed .sidebar-link-icon {
    width: 42px;
    height: 42px;
}

body.moderator-sidebar-collapsed .sidebar-user-card {
    gap: 10px;
    align-items: center;
    padding: 12px 10px;
}

body.moderator-sidebar-collapsed .sidebar-user-card .sidebar-link,
body.moderator-sidebar-collapsed .sidebar-logout-button {
    width: 100%;
}

body.moderator-sidebar-collapsed .sidebar-user-card .sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
}

body.moderator-sidebar-collapsed .sidebar-user-card .sidebar-link-icon {
    margin: 0;
}

body.moderator-sidebar-collapsed .sidebar-logout-button {
    padding: 11px;
}

body.moderator-sidebar-collapsed .sidebar-logout-button span:not(.material-icons) {
    display: none;
}

.moderator-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.moderator-layout .main-shell {
    max-width: none;
    margin: 0;
    padding: 34px clamp(22px, 3vw, 40px) 48px;
}

.moderator-layout .alert {
    margin-bottom: 20px;
}

.moderator-mobile-brand {
    min-width: 0;
    flex: 1;
}

.moderator-mobile-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff7ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.moderator-mobile-subtitle {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.moderator-mobile-home {
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    text-decoration: none;
}

.moderator-mobile-home:hover {
    text-decoration: none;
}

.card {
    background: var(--panel-adaptive);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow-neon);
    backdrop-filter: blur(12px) saturate(1.08);
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.page-title {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 34px);
    color: #fff7ff;
    letter-spacing: 0.01em;
}

.inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.col-6 {
    grid-column: span 6;
}

.col-12 {
    grid-column: span 12;
}

.split-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.btn {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    position: relative;
    isolation: isolate;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.btn-icon .material-icons {
    font-size: 20px;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #aa62ff 0%, #9169ff 38%, #7d8eff 68%, #71d5ff 100%);
    border-color: rgba(156, 118, 255, 0.58);
    box-shadow: 0 8px 18px rgba(10, 6, 28, 0.34);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(128, 93, 201, 0.72), rgba(101, 76, 176, 0.7) 52%, rgba(78, 63, 153, 0.74));
    border-color: var(--line);
    box-shadow: 0 8px 16px rgba(10, 6, 28, 0.28);
}

.btn-warning {
    background: linear-gradient(135deg, #ffd36b 0%, #ffba46 48%, #ff9f1c 100%);
    color: #1e1305;
    border-color: rgba(255, 209, 102, 0.62);
    box-shadow: 0 8px 16px rgba(49, 32, 7, 0.28);
}

.btn-danger {
    background: linear-gradient(135deg, #ff7a98 0%, #f6567d 52%, #df2856 100%);
    border-color: rgba(255, 126, 150, 0.62);
    box-shadow: 0 8px 16px rgba(48, 8, 20, 0.28);
}

.btn-action {
    background: rgba(45, 29, 86, 0.8);
    border-color: rgba(141, 103, 214, 0.45);
    box-shadow: none;
    color: #efe5ff;
}

.btn-action:hover {
    box-shadow: 0 0 0 1px rgba(128, 204, 255, 0.28), 0 0 12px rgba(147, 100, 226, 0.2);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.action-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-card form,
.action-card button {
    width: 100%;
}

.action-hint {
    font-size: 12px;
    line-height: 1.3;
    color: #bba9df;
}

.session-section-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #cbb8ef;
}

.session-meta-grid {
    display: grid;
    gap: 2px;
}

.session-meta-item {
    display: grid;
    grid-template-columns: minmax(140px, 180px) 1fr;
    gap: 10px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(131, 100, 200, 0.2);
}

.session-meta-item:last-child {
    border-bottom: 0;
}

.session-meta-key {
    color: #b8a6dd;
    font-size: 13px;
    font-weight: 700;
}

.session-meta-value {
    color: #f4ebff;
}

.session-link-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.session-link-btn {
    justify-content: center;
    width: 100%;
}

.session-extra-links {
    position: relative;
    width: 100%;
    display: grid;
}

.session-extra-toggle {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    font: inherit;
    min-height: 46px;
}

.session-extra-icon {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.18s ease;
}

.session-extra-links.is-open .session-extra-icon {
    transform: rotate(90deg);
}

.session-extra-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(420px, calc(100vw - 72px));
    max-width: 100%;
    z-index: 30;
    padding: 12px;
    gap: 10px;
    border: 1px solid rgba(91, 231, 255, 0.3);
    border-radius: 16px;
    background: linear-gradient(170deg, rgba(21, 14, 49, 0.96), rgba(33, 20, 70, 0.94));
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(180, 85, 255, 0.2);
}

.session-extra-menu .session-link-btn {
    min-height: 44px;
    background: rgba(71, 44, 132, 0.25);
    border-color: rgba(140, 110, 210, 0.58);
}

.session-extra-menu .session-link-btn:hover {
    border-color: rgba(91, 231, 255, 0.6);
}

.session-extra-links.is-open .session-extra-menu {
    display: grid;
    animation: extraMenuIn 0.16s ease-out;
}

@keyframes extraMenuIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 10, 35, 0.82);
    color: #f5ecff;
    padding: 13px 14px;
    font-size: 15px;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(91, 231, 255, 0.08);
}

select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23dac9fb' d='M4.2 5.6 8 9.4l3.8-3.8 1.2 1.2L8 11.8 3 6.8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 14px;
}

select::-ms-expand {
    display: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-2);
    box-shadow: inset 0 0 0 1px rgba(91, 231, 255, 0.25), 0 0 0 3px rgba(91, 231, 255, 0.12), 0 0 20px rgba(91, 231, 255, 0.18);
}

form label + input,
form label + select,
form label + textarea {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #dfcffb;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 18px;
}

.checkbox-row input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.poll-options-list {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.poll-option-row {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(135, 96, 214, 0.34);
    border-radius: 12px;
    background: rgba(10, 6, 28, 0.5);
    align-items: flex-start;
}

.poll-option-row input[type="radio"],
.poll-option-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    padding: 0;
    flex: 0 0 auto;
    box-shadow: none;
    accent-color: #5be7ff;
}

.poll-option-row span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.3;
    color: #efe4ff;
}

.public-join-page .public-shell {
    width: min(860px, 96vw);
}

.public-join-page .public-card {
    width: min(820px, 100%);
}

.public-ask-page .public-shell {
    width: min(1220px, 96vw);
}

.public-ask-page .public-card {
    width: min(1140px, 100%);
    padding: 20px 22px;
}

.public-ask-page .public-title.small {
    font-size: clamp(28px, 3.5vw, 48px);
}

.public-ask-page .public-subtitle {
    margin-bottom: 8px;
    font-size: clamp(15px, 1.7vw, 22px);
}

.public-ask-page .card {
    padding: 14px !important;
    margin-bottom: 12px !important;
}

.public-ask-page #speaker-grid {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)) !important;
    gap: 12px !important;
    margin-top: 8px !important;
}

.public-ask-page [data-speaker-button] {
    min-height: 164px !important;
    padding: 12px 8px !important;
    gap: 10px !important;
}

.public-ask-page [data-speaker-button] > div:first-child {
    width: 96px !important;
    height: 96px !important;
}

.public-ask-page #presentation-wrap {
    margin-top: 10px !important;
}

.public-ask-page #presentation-selected-card {
    margin-top: 10px !important;
    padding: 16px !important;
}

.public-ask-page #presentation-selected-title {
    font-size: 22px !important;
    line-height: 1.12 !important;
}

.public-ask-page textarea {
    min-height: 118px;
    max-height: 118px;
}

.public-ask-page .alert {
    margin-bottom: 12px;
}

.public-seminars-page {
    min-height: 100vh;
    height: auto;
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    padding: clamp(12px, 1.4vw, 22px);
}

.public-seminars-page .public-shell {
    width: min(1140px, 96vw);
    max-height: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 0 18px;
}

.public-seminars-page .public-card {
    width: 100%;
    margin: 0;
    max-height: none;
    overflow: visible;
    padding: 20px 22px;
}

.seminars-page-topbar {
    padding-top: 2px;
}

.public-seminars-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.seminars-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seminars-section-title {
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 900;
    color: #fff9ff;
}

.seminar-resource-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seminar-resource-card {
    border: 1px solid rgba(91, 231, 255, 0.2);
    border-radius: 18px;
    padding: 16px 18px;
    background: rgba(12, 8, 27, 0.48);
}

.seminar-resource-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.seminar-resource-title {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
    color: #f7f1ff;
}

.seminar-resource-description {
    margin-top: 8px;
    color: #cfbff2;
    font-size: 14px;
    line-height: 1.45;
}

.seminar-resource-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.seminar-recording-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 12px;
    border-radius: 18px;
    border: 1px solid rgba(137, 96, 255, 0.72);
    background:
        linear-gradient(135deg, rgba(179, 79, 255, 0.92), rgba(91, 231, 255, 0.88)),
        rgba(22, 12, 44, 0.92);
    color: #fffaff;
    box-shadow: 0 14px 30px rgba(27, 12, 56, 0.44), 0 0 0 1px rgba(91, 231, 255, 0.18), 0 0 28px rgba(180, 85, 255, 0.28);
    white-space: nowrap;
}

.seminar-recording-link:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(27, 12, 56, 0.54), 0 0 0 1px rgba(91, 231, 255, 0.28), 0 0 36px rgba(180, 85, 255, 0.42);
}

.seminar-recording-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(12, 10, 34, 0.26);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.seminar-recording-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.seminar-recording-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}

.seminar-recording-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.86;
}

.seminar-recording-title {
    margin-top: 4px;
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
}

.seminar-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.seminar-session-button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 188px;
    padding: 18px 16px;
    border-radius: 24px;
    border: 1px solid rgba(122, 84, 195, 0.45);
    background: rgba(12, 7, 28, 0.72);
    color: inherit;
    text-align: left;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 14px 32px rgba(6, 4, 18, 0.18);
    overflow: hidden;
    position: relative;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.seminar-session-button:hover,
.seminar-session-button:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(114, 227, 255, 0.88);
    background: linear-gradient(180deg, rgba(18, 12, 43, 0.96) 0%, rgba(15, 9, 35, 0.88) 100%);
    box-shadow: 0 0 0 2px rgba(114, 227, 255, 0.12), 0 20px 40px rgba(17, 10, 42, 0.34), 0 0 26px rgba(114, 227, 255, 0.14);
}

.seminar-session-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(148, 78, 255, 0.92), rgba(91, 231, 255, 0.82));
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(91, 231, 255, 0.16);
}

.seminar-session-title {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
    color: #f4efff;
}

.seminar-session-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #d8cff7;
}

.seminar-session-stat {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(140, 108, 214, 0.34);
    background: rgba(31, 20, 64, 0.72);
    color: #ebe0ff;
    font-size: 13px;
    font-weight: 800;
}

.seminar-session-stat.is-active {
    border-color: rgba(91, 231, 255, 0.38);
    background: rgba(26, 34, 72, 0.84);
    color: #f8f3ff;
}

.seminar-session-cta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(147, 70, 255, 0.92), rgba(91, 231, 255, 0.88));
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 26px rgba(110, 83, 245, 0.24);
}

.seminar-focus-card {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(91, 231, 255, 0.2);
    border-radius: 24px;
    background: rgba(12, 8, 27, 0.48);
}

.seminar-focus-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.seminar-focus-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.speaker-materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.speaker-materials-grid-two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seminar-speaker-material-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.seminar-speaker-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seminar-speaker-head {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.seminar-speaker-head-linked {
    padding-top: 12px;
    border-top: 1px solid rgba(114, 227, 255, 0.14);
}

.seminar-speaker-avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(114, 227, 255, 0.38);
    background: rgba(24, 16, 49, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.seminar-speaker-avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 16%;
}

.seminar-speaker-avatar-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 24px;
    font-weight: 900;
    color: #f7f0ff;
    letter-spacing: 0.04em;
}

.seminar-speaker-content {
    min-width: 0;
}

.seminar-speaker-content .seminar-resource-title {
    margin-top: 2px;
}

.seminar-speaker-content .seminar-resource-description {
    margin-top: 10px;
}

.seminar-material-button-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

.seminar-material-btn {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.seminar-material-action {
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.92;
}

.seminar-material-title {
    display: block;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: none;
}

.public-poll-page .public-shell {
    width: min(980px, 96vw);
}

.public-poll-page .public-card {
    width: min(920px, 100%);
    padding: 22px 24px;
}

.public-poll-page .public-subtitle {
    margin-bottom: 10px;
}

.public-poll-page .public-message {
    padding: 16px 18px;
}

.public-poll-page .rating-grid {
    gap: 10px;
    margin-bottom: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    border: 1px solid rgba(91, 231, 255, 0.28);
    background: rgba(53, 38, 91, 0.8);
    color: #d6c7f9;
}

.badge-on {
    border-color: rgba(102, 242, 210, 0.45);
    color: #8cf7de;
}

.badge-off {
    border-color: rgba(255, 111, 216, 0.38);
    color: #f9a3da;
}

.alert {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(63, 191, 243, 0.16);
    border-color: rgba(91, 231, 255, 0.35);
    color: #c6f5ff;
}

.alert-error {
    background: rgba(247, 76, 170, 0.14);
    border-color: rgba(255, 94, 176, 0.4);
    color: #ffd6ee;
}

.table-wrap {
    overflow: auto;
    border-radius: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    /* background: rgba(11, 8, 26, 0.42); */
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(162, 127, 235, 0.25);
    text-align: left;
    vertical-align: top;
    line-height: 1.45;
}

th {
    font-size: 13px;
    color: #cab5ef;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

tr:hover td {
    background: rgba(145, 87, 255, 0.08);
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.public-shell,
.auth-shell,
.screen-shell {
    width: min(980px, 96vw);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.public-join-page,
.public-screen-page,
.public-ask-page,
.public-poll-page {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    /* overflow: hidden; */
    padding: clamp(10px, 1.2vw, 18px);
    box-sizing: border-box;
}

.public-theme-backdrop {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.public-theme-stage {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
}

.public-theme-stage .ui-background-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: 100% 100%;
    background-position: center center;
}

.public-theme-stage .join-theme-logo {
    position: absolute;
    z-index: 1;
}

.public-join-page .public-shell,
.public-screen-page .screen-shell,
.public-ask-page .public-shell,
.public-poll-page .public-shell {
    margin: 0 auto;
    max-height: 100%;
}

.public-card,
.auth-card,
.screen-frame {
    background: var(--panel-adaptive);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-neon);
    backdrop-filter: blur(14px) saturate(1.08);
}

.public-card,
.auth-card {
    width: min(640px, 100%);
    margin: 0 auto;
    padding: 24px;
    max-height: 100%;
    overflow: hidden;
}

.speaker-choice-avatar {
    position: relative;
}

.speaker-choice-photo {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 14%;
}

.auth-card {
    width: min(460px, 100%);
}

.public-title {
    margin: 0 0 8px;
    font-size: clamp(34px, 4.6vw, 56px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: 0.01em;
    color: #fff7ff;
}

.public-title.small {
    font-size: clamp(28px, 3.7vw, 42px);
}

.public-subtitle {
    color: var(--muted);
    margin: 0 0 12px;
    font-size: clamp(16px, 1.8vw, 24px);
}

.public-message {
    border-radius: 14px;
    border: 1px solid rgba(91, 231, 255, 0.35);
    padding: 20px;
    background: var(--panel-adaptive-soft);
    color: #e7dcff;
    font-weight: 700;
}

.join-card {
    width: min(760px, 100%);
    position: relative;
}

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

.join-theme-logo {
    --logo-orbit-radius: clamp(44px, 5vw, 96px);
    position: fixed;
    left: 0;
    top: 0;
    width: 0;
    z-index: 1;
    display: block;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    filter: drop-shadow(0 12px 34px rgba(0, 0, 0, 0.34));
    transition: opacity 0.35s ease, top 0.35s ease, width 0.35s ease;
    transform-origin: center center;
    will-change: transform, opacity;
}

.join-theme-logo[data-logo-animation="spin"] {
    animation: joinLogoSpin 18s linear infinite;
}

.join-theme-logo[data-logo-animation="pulse"] {
    animation: joinLogoPulse 4.2s ease-in-out infinite;
}

.join-theme-logo[data-logo-animation="float"] {
    animation: joinLogoFloat 6.4s ease-in-out infinite;
}

.join-theme-logo[data-logo-animation="orbit"] {
    transform-origin: calc(50% - var(--logo-orbit-radius)) calc(50% + (var(--logo-orbit-radius) * 0.35));
    animation: joinLogoOrbit 12s linear infinite;
}

@keyframes joinLogoSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes joinLogoPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

@keyframes joinLogoFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -14px, 0);
    }
}

@keyframes joinLogoOrbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.join-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.join-grid.join-grid-single {
    grid-template-columns: 1fr;
    justify-items: center;
}

.join-grid.join-grid-single .join-tile {
    width: min(420px, 100%);
}

.join-tile {
    display: block;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel-adaptive);
    padding: 18px;
    min-height: 144px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    text-decoration: none;
}

.join-tile:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(91, 231, 255, 0.4), 0 16px 24px rgba(2, 0, 10, 0.35);
    border-color: rgba(91, 231, 255, 0.44);
}

.join-tile-title {
    font-size: clamp(20px, 2.8vw, 28px);
    font-weight: 800;
    color: #fff9ff;
    margin-bottom: 8px;
}

.join-tile-desc {
    color: #d5c5f7;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.join-tile.is-disabled {
    opacity: 0.62;
    pointer-events: none;
    cursor: not-allowed;
}

.rating-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.rating-item {
    border-radius: 12px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--panel-adaptive-strong);
}

.rating-item input {
    display: none;
}

.rating-item label {
    display: block;
    margin: 0;
    text-align: center;
    font-size: 22px;
    padding: 13px 6px;
    cursor: pointer;
    color: #d3c3f6;
}

.rating-item input:checked + label {
    background: linear-gradient(135deg, #aa62ff 0%, #9169ff 38%, #7d8eff 68%, #71d5ff 100%);
    color: #fff;
}

.qr-image {
    width: min(460px, 74vw);
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    border: 1px solid rgba(91, 231, 255, 0.48);
    box-shadow: 0 0 0 1px rgba(180, 85, 255, 0.4), 0 0 30px rgba(180, 85, 255, 0.35);
    background: #fff;
    padding: 12px;
}

.qr-image.local-qr,
.stage-qr-image.local-qr {
    display: grid;
    place-items: center;
    overflow: hidden;
}

.qr-image.local-qr img,
.qr-image.local-qr canvas,
.stage-qr-image.local-qr img,
.stage-qr-image.local-qr canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.screen-frame {
    width: min(1100px, 96vw);
    margin: 32px auto;
    padding: 34px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.screen-frame::before,
.screen-frame::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.55;
    pointer-events: none;
}

.screen-frame::before {
    width: 220px;
    height: 220px;
    top: -80px;
    left: -60px;
    background: rgba(91, 231, 255, 0.42);
}

.screen-frame::after {
    width: 260px;
    height: 260px;
    right: -90px;
    bottom: -90px;
    background: rgba(180, 85, 255, 0.48);
}

.screen-meta {
    color: #d7c8f6;
    margin-top: 16px;
}

.screen-frame .qr-image {
    margin: 0 auto;
}

.url-glow {
    margin-top: 18px;
    color: var(--accent-2);
    font-weight: 800;
    font-size: clamp(18px, 2vw, 26px);
    text-shadow: 0 0 14px rgba(91, 231, 255, 0.35);
}

.glow-divider {
    height: 1px;
    border: 0;
    margin: 18px 0;
    background: linear-gradient(90deg, transparent, rgba(180, 85, 255, 0.8), rgba(91, 231, 255, 0.8), transparent);
}

.live-question-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.live-question-embed {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.live-question-embed .live-screen-shell {
    width: 100%;
}

.live-question-embed .live-stage {
    min-height: 100vh;
    padding: clamp(10px, 1.6vw, 20px);
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.live-screen-shell {
    width: min(1700px, 96vw);
}

.live-stage {
    position: relative;
    min-height: 78vh;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 64px);
    overflow: visible;
}

.live-placeholder {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    text-align: center;
    color: #d7c9f5;
    letter-spacing: 0.02em;
    text-shadow: 0 0 18px rgba(180, 85, 255, 0.24);
}

.live-placeholder.is-hidden {
    display: none;
}

.live-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: min(1640px, 98vw);
    max-height: min(90vh, 980px);
    border-radius: 30px;
    border: 1px solid rgba(198, 231, 255, 0.2);
    background: linear-gradient(156deg, rgba(11, 10, 26, 0.58), rgba(31, 17, 58, 0.46));
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-mask-image: -webkit-radial-gradient(#fff, #000);
    mask-image: radial-gradient(#fff, #000);
    box-shadow:
        0 14px 44px rgba(0, 0, 0, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04),
        0 0 24px rgba(180, 85, 255, 0.18),
        0 0 18px rgba(91, 231, 255, 0.12);
    padding: clamp(22px, 2.3vw, 40px);
    display: flex;
    flex-direction: column;
}

.live-card::before,
.live-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.live-card::before {
    opacity: 0.18;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.35' numOctaves='3' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 120px 120px;
    mix-blend-mode: normal;
    filter: grayscale(1) contrast(1.2);
}

.live-card::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.01) 100%);
}

.live-card > * {
    position: relative;
    z-index: 2;
}

.live-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(91, 231, 255, 0.4);
    color: #d8f8ff;
    font-size: clamp(15px, 1.4vw, 22px);
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.live-kicker .material-icons {
    font-size: 1.1em;
    line-height: 1;
}

.live-question-address {
    display: flex;
    justify-content: center;
    max-width: 100%;
    text-align: center;
    line-height: 1.16;
    white-space: normal;
    text-wrap: balance;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.live-question-text {
    font-size: clamp(36px, 4.2vw, 74px);
    line-height: 1.1;
    font-weight: 900;
    color: #fff8ff;
    text-wrap: pretty;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.live-question-author {
    margin-top: clamp(14px, 2vw, 24px);
    color: #9df1ff;
    font-size: clamp(22px, 2vw, 34px);
    font-weight: 700;
}

.live-card.is-hidden {
    display: none;
}

.live-card.is-entering {
    animation: liveCloudIn 0.82s cubic-bezier(0.17, 0.9, 0.24, 1) forwards;
}

.live-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.live-card.is-leaving {
    animation: liveCloudOut 0.76s cubic-bezier(0.41, 0.03, 0.54, 0.94) forwards;
}

.question-fog-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.question-fog-shell {
    width: min(1860px, 98vw);
    height: min(94vh, 1020px);
}

.question-fog-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.question-fog-empty {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 16px 22px;
    border-radius: 14px;
    border: 1px solid rgba(91, 231, 255, 0.35);
    background: rgba(26, 17, 54, 0.62);
    color: #e7dcff;
    font-size: clamp(18px, 1.7vw, 28px);
    font-weight: 700;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.question-fog-empty.is-visible {
    opacity: 1;
}

.question-fog-item {
    position: absolute;
    max-width: min(36vw, 680px);
    opacity: 0;
    filter: blur(14px);
    transform: translate3d(0, 84px, 0) scale(0.95);
    animation: questionFogFloat var(--fog-duration, 18s) linear infinite;
    animation-delay: var(--fog-delay, 0s);
    will-change: transform, opacity, filter;
    pointer-events: none;
}

.question-fog-item-text {
    display: block;
    color: #f9f2ff;
    font-size: clamp(24px, 2.05vw, 46px);
    line-height: 1.3;
    font-weight: 700;
    text-wrap: balance;
    text-shadow: 0 0 18px rgba(180, 85, 255, 0.42), 0 0 16px rgba(91, 231, 255, 0.26);
}

@keyframes questionFogFloat {
    0% {
        opacity: 0;
        filter: blur(20px);
        transform: translate3d(0, 84px, 0) scale(0.95);
    }
    22% {
        opacity: 0.92;
        filter: blur(0);
        transform: translate3d(calc(var(--fog-shift-x, 44px) * 0.4), 6px, 0) scale(1);
    }
    72% {
        opacity: 0.9;
        filter: blur(0.4px);
    }
    100% {
        opacity: 0;
        filter: blur(18px);
        transform: translate3d(var(--fog-shift-x, 44px), calc(var(--fog-rise, 156px) * -1), 0) scale(1.04);
    }
}

@keyframes liveCloudIn {
    0% {
        opacity: 0;
        transform: translateY(70px) scale(0.92);
        filter: blur(12px);
    }
    55% {
        opacity: 1;
        transform: translateY(-10px) scale(1.01);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes liveCloudOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-56px) scale(0.94);
        filter: blur(14px);
    }
}

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

    .live-stage {
        min-height: 70vh;
        border-radius: 0;
    }

    .question-fog-item {
        max-width: min(52vw, 580px);
    }

    .question-fog-item-text {
        font-size: clamp(20px, 2.8vw, 36px);
    }
}

@media (max-width: 980px) {
    body.moderator-sidebar-open {
        overflow: hidden;
    }

    .moderator-layout {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .dashboard-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(88vw, 348px);
        height: 100vh;
        padding: 16px 0 16px 16px;
        z-index: 35;
        pointer-events: none;
    }

    .dashboard-sidebar-panel {
        height: 100%;
        transform: translateX(calc(-100% - 24px));
        transition: transform 0.22s ease;
        pointer-events: auto;
    }

    body.moderator-sidebar-open .dashboard-sidebar-panel {
        transform: translateX(0);
    }

    .dashboard-sidebar .logo-slot {
        width: 100%;
        min-height: 96px;
        padding-right: 54px;
    }

    .sidebar-collapse-toggle {
        display: none;
    }

    .sidebar-head-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        position: absolute;
        top: 0;
        right: 0;
        flex: none;
    }

    .dashboard-sidebar .logo-slot img {
        max-height: 62px;
    }

    .sidebar-dismiss {
        display: inline-flex;
        position: absolute;
        top: 0;
        right: 0;
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 30;
        border: 0;
        padding: 0;
        background: rgba(4, 4, 10, 0.66);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    body.moderator-sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .moderator-mobile-bar {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 20;
        align-items: center;
        gap: 12px;
        padding: 14px 18px;
        border-bottom: 1px solid var(--line-soft);
        background: rgba(10, 7, 25, 0.78);
        box-shadow: 0 10px 24px rgba(4, 0, 12, 0.28);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .sidebar-toggle {
        flex: none;
        padding: 10px 14px;
    }

    .moderator-layout .main-shell {
        padding: 22px 18px 34px;
    }
}

@media (max-width: 760px) {
    .col-6 {
        grid-column: span 12;
    }

    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 14px 16px;
    }

    .top-actions {
        justify-content: flex-start;
    }

    .logo-slot {
        width: 168px;
        height: 52px;
    }

    .main-shell {
        padding: 18px;
    }

    .moderator-layout .main-shell {
        padding: 20px 16px 28px;
    }

    .public-card,
    .auth-card,
    .screen-frame {
        padding: 22px;
    }

    .rating-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .poll-option-row {
        padding: 10px 12px;
        gap: 10px;
    }

    .poll-option-row span {
        font-size: 15px;
    }

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

    .public-seminars-page .public-shell {
        max-height: 100%;
    }

    .public-seminars-grid {
        grid-template-columns: 1fr;
    }

    .seminar-selector-grid {
        grid-template-columns: 1fr;
    }

    .seminar-resource-head {
        flex-direction: column;
        align-items: stretch;
    }

    .seminar-focus-head {
        flex-direction: column;
    }

    .speaker-materials-grid-two-column {
        grid-template-columns: 1fr;
    }

    .seminar-focus-actions {
        justify-content: stretch;
    }

    .seminar-speaker-head {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 12px;
    }

    .seminar-speaker-avatar {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .seminar-resource-btn {
        width: 100%;
        text-align: center;
    }

    .seminar-recording-link {
        width: 100%;
        justify-content: center;
    }

    .seminar-recording-text {
        align-items: flex-start;
    }

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

    .session-meta-item {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px 0;
    }

    .session-extra-menu {
        left: 0;
        right: auto;
        width: 100%;
        max-width: 100%;
    }

    .public-join-page,
    .public-screen-page,
    .public-ask-page,
    .public-poll-page {
        display: block;
        min-height: 100%;
        height: auto;
        overflow: auto;
        padding: 0;
    }

    .public-join-page .public-shell,
    .public-screen-page .screen-shell,
    .public-ask-page .public-shell,
    .public-poll-page .public-shell {
        margin: 24px auto;
    }

    .speaker-choice-photo {
        object-position: center top;
    }

    .live-question-page {
        display: block;
    }

    .live-screen-shell {
        width: min(98vw, 980px);
        margin: 16px auto;
    }

    .live-stage {
        min-height: 72vh;
        padding: 16px;
    }

    .live-kicker {
        font-size: 14px;
    }

    .question-fog-shell {
        width: 100vw;
        height: 100vh;
    }

    .question-fog-stage {
        min-height: 100vh;
    }

    .question-fog-item {
        max-width: 78vw;
    }

    .question-fog-item-text {
        font-size: clamp(18px, 4.6vw, 30px);
        line-height: 1.28;
    }
}

@media (max-width: 560px) {
    .dashboard-sidebar {
        width: min(92vw, 340px);
        padding-left: 12px;
    }

    .dashboard-sidebar-panel {
        padding: 18px 16px 16px;
        border-radius: 24px;
    }

    .moderator-brand {
        gap: 12px;
    }

    .dashboard-sidebar .logo-slot {
        min-height: 88px;
        padding: 14px 50px 14px 14px;
    }

    .moderator-brand-copy .muted {
        font-size: 13px;
    }

    .sidebar-link {
        padding: 12px 13px;
    }

    .sidebar-link-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }
}
