:root {
    color-scheme: dark;
    --bg-top: #2f4362;
    --bg-bottom: #0f1824;
    --glass: rgba(255, 255, 255, 0.14);
    --glass-strong: rgba(255, 255, 255, 0.2);
    --glass-soft: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.2);
    --line-soft: rgba(255, 255, 255, 0.1);
    --text: #f8fbff;
    --text-strong: #ffffff;
    --muted: rgba(240, 247, 255, 0.78);
    --shadow: 0 30px 80px rgba(31, 54, 97, 0.24);
    --accent: #cbe3ff;
    --accent-strong: #8cc7ff;
    --danger: #ffd4ce;
    --success: #d7ffe8;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 16% 16%, rgba(131, 175, 235, 0.26), transparent 24%),
        radial-gradient(circle at 78% 12%, rgba(110, 162, 233, 0.18), transparent 20%),
        radial-gradient(circle at 86% 82%, rgba(93, 126, 186, 0.22), transparent 24%),
        linear-gradient(180deg, var(--bg-top) 0%, #1a2940 40%, var(--bg-bottom) 100%);
    color: var(--text);
    padding: clamp(18px, 3vw, 36px);
    position: relative;
    overflow-x: hidden;
}
body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(10px);
}
body::before {
    width: 28vw;
    height: 28vw;
    min-width: 240px;
    min-height: 240px;
    top: 10%;
    left: -8%;
    background: radial-gradient(circle, rgba(119, 170, 238, 0.3), rgba(119, 170, 238, 0));
}
body::after {
    width: 34vw;
    height: 34vw;
    min-width: 260px;
    min-height: 260px;
    right: -10%;
    bottom: -6%;
    background: radial-gradient(circle, rgba(95, 129, 189, 0.28), rgba(95, 129, 189, 0));
}
.page-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}
.shell {
    position: relative;
    width: 100%;
    min-height: calc(100vh - clamp(36px, 6vw, 72px));
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 460px);
    grid-template-areas: "header panel";
    gap: clamp(20px, 2.6vw, 30px);
    align-items: stretch;
    border: 1px solid var(--line-soft);
    border-radius: 40px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03)),
        rgba(38, 56, 83, 0.38);
    box-shadow: var(--shadow);
    backdrop-filter: blur(36px) saturate(180%);
    -webkit-backdrop-filter: blur(36px) saturate(180%);
}
.shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 36%),
        linear-gradient(320deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 28%);
    pointer-events: none;
}
.shell-status {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 0 18px;
}
.shell-status .status-box {
    margin: 0;
}
.status-top-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.status-top-copy {
    min-width: 0;
    flex: 1 1 280px;
}
.status-top-copy .hint {
    margin-top: 10px;
}
.status-top-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.shell-header,
.panel {
    position: relative;
    z-index: 1;
    padding: clamp(28px, 4vw, 48px);
}
.shell-header {
    grid-area: header;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background:
        linear-gradient(180deg, rgba(14, 24, 39, 0.90), rgba(16, 28, 45, 0.56)),
        radial-gradient(circle at top center, rgba(118, 161, 231, 0.14), transparent 42%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 36%);
    border-right: 1px solid var(--line-soft);
    align-items: center;
    text-align: center;
}
.hero-preview-anchor {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
}
.panel {
    grid-area: panel;
    margin: 18px 18px 18px 0;
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
        rgba(62, 84, 119, 0.18);
    border: 1px solid var(--line);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 18px 40px rgba(61, 87, 126, 0.16);
    backdrop-filter: blur(34px) saturate(175%);
    -webkit-backdrop-filter: blur(34px) saturate(175%);
}
.shell-logo {
    display: block;
    width: min(100%, 420px);
    height: auto;
    object-fit: contain;
    transform-origin: center center;
    animation: infoLogoEntrance 1700ms cubic-bezier(0.16, 0.84, 0.22, 1) both;
}
.shell-logo-base {
    animation:
        infoLogoEntrance 1700ms cubic-bezier(0.16, 0.84, 0.22, 1) both,
        logoBaseFadeOut 220ms ease 1760ms forwards;
}
.shell-logo-wrap {
    position: relative;
    width: min(100%, 420px);
    margin: 0 auto 36px;
    transform-origin: center center;
    animation: infoLogoStampKick 420ms cubic-bezier(0.2, 0.9, 0.28, 1.2) 1705ms both;
}
.shell-digital-logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    pointer-events: none;
    animation: digitalLogoReveal 240ms ease 1760ms forwards;
}
@keyframes infoLogoEntrance {
    0% {
        opacity: 0;
        transform: translateY(0) scale(1.75);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}
@keyframes infoLogoStampKick {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(10px) scale(0.96);
    }
    75% {
        transform: translateY(-4px) scale(1.02);
    }
}
@keyframes logoBaseFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
@keyframes digitalLogoReveal {
    0% {
        opacity: 0;
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}
h1 {
    margin: 0 0 18px;
    font-size: clamp(20px, 2.6vw, 36px);
    line-height: 0.95;
    letter-spacing: -0.035em;
    color: var(--text-strong);
}
.hero-accent {
    color: #f2a3b8;
}
.lead {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.55;
    max-width: 42ch;
    margin-inline: auto;
}
.lead a {
    color: #d8ecff;
    text-decoration-color: rgba(216, 236, 255, 0.6);
    text-underline-offset: 0.18em;
}
.hero-copy {
    width: min(100%, 560px);
    margin: 0 auto;
    transform: translateY(-30px);
}
.hero-primary-action {
    display: flex;
    justify-content: center;
    margin: 26px 0 0;
}
.hero-primary-action .button {
    min-width: 240px;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
}
.glass-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
        rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.44),
        0 8px 18px rgba(71, 94, 136, 0.12);
    color: rgba(255, 255, 255, 0.96);
    font-size: 14px;
    letter-spacing: 0.01em;
}
.glass-chip-button {
    appearance: none;
    cursor: pointer;
    font: inherit;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(235, 246, 255, 0.98);
    background: linear-gradient(180deg, rgba(236, 248, 255, 0.96), rgba(190, 229, 255, 0.92));
    color: #16324f;
    box-shadow:
        0 8px 18px rgba(10, 22, 36, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.glass-chip-button:hover {
    background: linear-gradient(180deg, rgba(242, 250, 255, 0.98), rgba(200, 234, 255, 0.94));
}
.preview-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(7, 11, 18, 0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 20;
}
.preview-overlay.is-open {
    display: flex;
}
.preview-dialog {
    position: relative;
    width: min(980px, 100%);
    padding: 18px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(14, 24, 39, 0.92), rgba(16, 28, 45, 0.82)),
        rgba(38, 56, 83, 0.42);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.preview-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.preview-dialog-copy {
    min-width: 0;
}
.preview-dialog-copy strong {
    display: block;
    font-size: 20px;
    color: #fff;
    line-height: 1.1;
}
.preview-dialog-copy span {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: rgba(245, 249, 255, 0.72);
    line-height: 1.5;
}
.preview-close {
    appearance: none;
    cursor: pointer;
    min-width: 42px;
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 10px 22px rgba(0, 0, 0, 0.22);
}
.preview-close:hover {
    background: rgba(255, 255, 255, 0.14);
}
.preview-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.preview-player video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}
.preview-status {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(245, 249, 255, 0.72);
}
.preview-gate {
    display: none;
    padding: 28px 20px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(9, 18, 31, 0.3);
    text-align: center;
}
.preview-gate.is-visible {
    display: block;
}
.preview-gate-media {
    display: block;
    width: min(100%, 280px);
    margin: 0 auto 20px;
    height: auto;
    border-radius: 18px;
}
.preview-gate-logo {
    object-fit: contain;
}
.preview-gate-thumb {
    display: none;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}
.preview-gate-thumb.is-visible {
    display: block;
}
.preview-gate p {
    margin: 0;
    color: rgba(245, 249, 255, 0.8);
    font-size: 16px;
    line-height: 1.65;
}
.preview-gate-action {
    display: none;
    margin: 18px auto 0;
    min-width: 180px;
}
.preview-gate-action.is-visible {
    display: inline-flex;
}
.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: -14px;
    width: 100%;
}
.hero-grid .hero-card:last-child {
    grid-column: 1 / -1;
}
.hero-card {
    min-height: 132px;
    padding: 18px 18px 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
        rgba(9, 18, 31, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
}
.hero-card-label {
    display: block;
    margin-bottom: 12px;
    color: rgba(243, 248, 255, 0.72);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.hero-card strong {
    display: block;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.1;
    color: #fff;
}
.hero-card span {
    display: block;
    margin-top: 8px;
    color: rgba(244, 248, 255, 0.72);
    font-size: 14px;
    line-height: 1.45;
}
.hero-note {
    width: min(100%, 760px);
    margin: 16px auto 0;
    color: rgba(244, 248, 255, 0.66);
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}
.panel-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.account-tabs {
    display: grid;
    gap: 14px;
}
.account-tab-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.account-tab {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 12px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(8, 16, 28, 0.18);
    color: rgba(245, 249, 255, 0.8);
    text-align: center;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, color 180ms ease;
}
.account-tab:hover {
    transform: translateY(-1px);
}
.account-tab.is-active {
    border-color: rgba(255, 255, 255, 0.34);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
        rgba(14, 24, 39, 0.28);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        0 16px 28px rgba(31, 54, 97, 0.16);
}
.account-tab-title {
    display: block;
    font-size: 14px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.account-panel {
    display: none;
}
.account-panel.is-active {
    display: block;
}
.card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
        rgba(11, 20, 33, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 18px 34px rgba(71, 94, 136, 0.12);
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 34%);
    pointer-events: none;
}
.label {
    margin: 0 0 12px;
    color: rgba(243, 248, 255, 0.72);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.card-title {
    margin: 0 0 10px;
    color: #fff;
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}
.card-intro {
    margin: 0 0 22px;
    color: rgba(245, 249, 255, 0.76);
    font-size: 15px;
    line-height: 1.6;
}
.status {
    margin: 0;
    line-height: 1.6;
}
.status-box {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}
.status-box.error {
    border-color: rgba(255, 184, 176, 0.46);
    background: rgba(255, 161, 151, 0.14);
    color: var(--danger);
}
.status-box.success {
    border-color: rgba(184, 255, 212, 0.44);
    background: rgba(160, 255, 201, 0.14);
    color: var(--success);
}
form {
    display: grid;
    gap: 18px;
}
.field {
    display: grid;
    gap: 10px;
}
.field label {
    font-size: 13px;
    color: rgba(243, 248, 255, 0.82);
    letter-spacing: 0.01em;
}
.input {
    width: 100%;
    min-height: 56px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
        rgba(8, 16, 28, 0.22);
    color: #fff;
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.masked-input {
    -webkit-text-security: disc;
}
.input::placeholder {
    color: rgba(242, 248, 255, 0.5);
}
.input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.46);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 0 0 4px rgba(217, 232, 255, 0.16);
}
.hint {
    margin: 0;
    color: rgba(243, 248, 255, 0.74);
    font-size: 14px;
    line-height: 1.5;
}
.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: 1px solid rgba(255, 255, 255, 0.28);
    cursor: pointer;
    font: inherit;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        0 14px 28px rgba(71, 94, 136, 0.12);
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.button:hover {
    transform: translateY(-1px);
}
.button-primary:not(.preview-gate-action),
.button-secondary,
.button:not(.preview-gate-action):not(.button-primary):not(.button-secondary) {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.button-primary.preview-gate-action {
    background:
        linear-gradient(180deg, rgba(217, 232, 255, 0.92), rgba(149, 187, 241, 0.58)),
        rgba(255, 255, 255, 0.24);
    color: #122947;
}
.info-note-outer {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.06);
    padding: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.info-note {
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(8, 16, 28, 0.16);
}
.info-note p {
    margin: 0 0 10px;
    color: rgba(245, 249, 255, 0.76);
    font-size: 14px;
    line-height: 1.7;
}
.info-note p:last-child {
    margin-bottom: 0;
}
code {
    padding: 0.15em 0.45em;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}
@media (max-width: 1080px) {
    .shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "panel";
        min-height: auto;
    }
    .shell-header,
    .panel {
        padding: 28px;
    }
    .hero-preview-anchor {
        top: 10px;
        left: 10px;
    }
    .shell-header {
        border-right: 0;
        border-bottom: 1px solid var(--line-soft);
    }
    .shell-logo-wrap {
        margin: 0 auto 26px;
    }
    .panel {
        margin: 0 18px 18px;
    }
    .hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    h1,
    .lead {
        max-width: none;
    }
}
@media (max-width: 920px) {
    .account-tab-list {
        grid-template-columns: 1fr;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-card {
        min-height: 0;
    }
    .hero-grid {
        gap: 12px;
    }
}
@media (max-width: 560px) {
    body {
        padding: 12px;
    }
    .shell {
        border-radius: 28px;
    }
    .shell-header,
    .panel {
        padding: 22px;
    }
    .hero-preview-anchor {
        top: 6px;
        left: 6px;
    }
    .shell-status {
        margin-bottom: 12px;
    }
    .status-top-card,
    .status-top-actions {
        align-items: stretch;
    }
    .panel {
        margin: 0 12px 12px;
        border-radius: 24px;
    }
    .preview-overlay {
        align-items: flex-start;
        padding: 10px;
    }
    .preview-dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 14px 14px 18px;
        border-radius: 22px;
    }
    .preview-dialog-header {
        position: sticky;
        top: 0;
        z-index: 2;
        margin: -14px -14px 12px;
        padding: 14px 14px 10px;
        background:
            linear-gradient(180deg, rgba(14, 24, 39, 0.98), rgba(16, 28, 45, 0.92)),
            rgba(38, 56, 83, 0.42);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-top-left-radius: 22px;
        border-top-right-radius: 22px;
    }
    .preview-close {
        min-width: 48px;
        min-height: 48px;
        font-size: 28px;
        border-color: rgba(255, 255, 255, 0.28);
        background: rgba(255, 255, 255, 0.14);
    }
}
