:root {
    --bg-dark: #050505;
    --bg-panel: #111111;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-soft: rgba(255, 255, 255, 0.08);
    --text-main: #f5f5f5;
    --text-soft: #b7b7b7;
    --accent: #b58a4c;
    --accent-strong: #d8b37b;
    --accent-shadow: rgba(181, 138, 76, 0.35);
    --danger: #d25661;
    --success: #4fbf93;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: 'Outfit', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(181, 138, 76, 0.1), transparent 26%),
        linear-gradient(180deg, #030303 0%, #0a0a0a 100%);
    color: var(--text-main);
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

.mobile-frame {
    position: relative;
    width: min(100%, 420px);
    min-height: 860px;
    overflow: hidden;
    border-radius: 36px;
    border: 1px solid var(--border-soft);
    background:
        linear-gradient(180deg, rgba(12, 12, 12, 0.95), rgba(18, 18, 18, 0.98)),
        linear-gradient(150deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    box-shadow: var(--shadow);
}

.onboarding-frame {
    padding: 34px 24px 30px;
}

.ambient {
    position: absolute;
    border-radius: 999px;
    opacity: 0.7;
}

.ambient-one {
    top: 90px;
    right: -36px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(181, 138, 76, 0.32), transparent 70%);
}

.ambient-two {
    bottom: 160px;
    left: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 72%);
}

.slide-track {
    display: flex;
    width: 200%;
    transition: transform 0.45s ease;
}

.slide-track.is-second {
    transform: translateX(-50%);
}

.hero-slide {
    width: 50%;
    flex: 0 0 50%;
    padding-right: 12px;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.loader-brand {
    margin-bottom: 34px;
}

.brand-row.compact {
    margin-bottom: 24px;
}

.brand-mark {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #090909;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 18px 30px var(--accent-shadow);
}

.brand-mark.large {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    margin: 0 auto 18px;
}

.brand-kicker {
    margin: 0 0 4px;
    color: var(--accent-strong);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
}

.brand-row h1,
.brand-row h2,
.auth-copy h1 {
    margin: 0;
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    line-height: 1.05;
}

.poster-stack {
    margin: 20px 0 28px;
}

.poster-card {
    position: relative;
    width: max-content;
    min-width: 160px;
    padding: 18px 24px;
    margin-bottom: 16px;
    border-radius: 22px;
    background: #191919;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
}

.poster-card span {
    display: block;
    font-size: clamp(2rem, 6vw, 2.8rem);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.poster-card i {
    display: block;
    width: 62px;
    height: 6px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
}

.poster-primary {
    background: linear-gradient(145deg, #262626, #151515);
}

.poster-secondary {
    margin-left: auto;
    background: linear-gradient(145deg, var(--accent), #8d6838);
    color: #0d0d0d;
}

.poster-highlight {
    width: 100%;
}

.hero-copy,
.auth-copy p,
.download-card span,
.notice-text {
    color: var(--text-soft);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
}

.text-link {
    color: var(--text-soft);
    font-weight: 500;
}

.circle-next {
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #090909;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 12px 26px var(--accent-shadow);
}

.card-showcase {
    position: relative;
    min-height: 350px;
    margin: 8px 0 18px;
}

.phone-card {
    position: absolute;
    inset: 42px 32px 0;
    padding: 16px 14px;
    border-radius: 34px;
    background: linear-gradient(180deg, #101010, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-notch {
    width: 110px;
    height: 18px;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.phone-screen {
    display: grid;
    gap: 16px;
}

.metric-box,
.income-card {
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-box small,
.income-card span {
    display: block;
    color: var(--text-soft);
    margin-bottom: 8px;
}

.metric-box strong,
.income-card strong {
    font-size: 1.4rem;
}

.metric-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 110px;
    padding: 18px 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
}

.metric-chart span {
    flex: 1;
    border-radius: 999px 999px 8px 8px;
    background: linear-gradient(180deg, var(--accent), var(--accent-strong));
}

.metric-chart span:nth-child(1) {
    height: 42%;
}

.metric-chart span:nth-child(2) {
    height: 68%;
}

.metric-chart span:nth-child(3) {
    height: 88%;
}

.metric-chart span:nth-child(4) {
    height: 56%;
}

.income-card {
    position: absolute;
    width: 150px;
}

.income-card-top {
    top: 18px;
    right: 0;
}

.income-card-bottom {
    bottom: 6px;
    left: 0;
}

.button-stack {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    border-radius: 20px;
    font-weight: 700;
    border: 1px solid transparent;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #090909;
    box-shadow: 0 16px 30px var(--accent-shadow);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.slide-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.dot.is-active {
    width: 34px;
    border-radius: 999px;
    background: var(--accent);
}

.auth-frame {
    padding: 28px 24px 34px;
}

.auth-header {
    text-align: center;
    padding-top: 8px;
}

.back-link {
    position: absolute;
    top: 26px;
    left: 24px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

.auth-copy p {
    margin-top: 8px;
}

.auth-form {
    margin-top: 28px;
}

.field-block {
    display: block;
    margin-bottom: 18px;
}

.field-block span {
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 500;
}

.field-block input {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    outline: none;
}

.field-block textarea,
.select-field {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.field-block textarea {
    min-height: 120px;
    resize: vertical;
}

.select-field {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    outline: none;
}

.field-block input::placeholder {
    color: rgba(183, 183, 183, 0.8);
}

.field-block input:focus,
.referral-input:focus {
    border-color: rgba(216, 179, 123, 0.6);
    box-shadow: 0 0 0 4px rgba(216, 179, 123, 0.12);
}

.password-wrap {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 14px;
    bottom: 14px;
    border: 0;
    background: transparent;
    color: var(--accent-strong);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-meta,
.checkbox-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.checkbox-line {
    justify-content: flex-start;
}

.checkbox-line input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.muted-link,
.switch-text,
.switch-text a {
    color: var(--text-soft);
}

.full-width {
    width: 100%;
    border: 0;
    cursor: pointer;
    margin-top: 24px;
}

.switch-text {
    margin: 24px 0 0;
    text-align: center;
}

.switch-text a {
    color: var(--accent-strong);
    font-weight: 600;
}

.divider {
    position: relative;
    margin: 28px 0 24px;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.divider span {
    position: relative;
    padding: 0 16px;
    background: #121212;
    color: var(--text-soft);
}

.download-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.download-card strong {
    display: block;
    margin-bottom: 4px;
}

.download-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--success), #8ee0be);
    color: #05241a;
    font-weight: 800;
}

.terms-line {
    margin-top: 20px;
}

.flash-message,
.error-message {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 0.96rem;
}

.flash-message {
    background: rgba(79, 191, 147, 0.12);
    border: 1px solid rgba(79, 191, 147, 0.26);
    color: #9fe8c9;
}

.error-message {
    background: rgba(210, 86, 97, 0.12);
    border: 1px solid rgba(210, 86, 97, 0.26);
    color: #f1a6ae;
}

.mobile-only {
    display: none;
}

.dashboard-body {
    background: #0a0a0a;
}

.dashboard-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 210px 1fr;
    background: #000;
}

.sidebar {
    background: #000;
    border-right: 1px solid var(--border-soft);
    padding: 24px 14px 96px;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.menu-toggle {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
}

.logo-lockup strong {
    display: block;
    color: var(--accent-strong);
    letter-spacing: 0.08em;
    font-size: 1rem;
}

.logo-lockup span {
    color: var(--text-soft);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
}

.menu-group {
    margin-bottom: 20px;
}

.menu-title {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
}

.menu-list {
    display: grid;
    gap: 6px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    color: var(--text-main);
    transition: background 0.2s ease;
}

.menu-item:hover,
.menu-item.is-active {
    background: rgba(255, 255, 255, 0.06);
}

.menu-icon {
    width: 18px;
    color: var(--accent-strong);
    text-align: center;
    font-size: 0.85rem;
}

.dashboard-main {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.08), transparent 0, transparent 28%),
        linear-gradient(90deg, #1c1c1c 0%, #121212 48%, #0f0f0f 100%);
    min-width: 0;
}

.topbar {
    height: 72px;
    padding: 16px 28px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, 0.9);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-avatar {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.topbar-meta strong,
.topbar-meta span {
    display: block;
    text-align: left;
}

.topbar-meta span {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.dashboard-content {
    padding: 18px 16px 96px;
}

.dashboard-panel {
    max-width: 980px;
    padding: 18px 14px 30px;
}

.hero-block h1 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 500;
}

.hero-block p {
    margin: 4px 0 0;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.invest-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0 10px;
}

.medal-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #7b5a2e, var(--accent-strong));
    color: #fff;
}

.progress-wrap {
    flex: 1;
}

.progress-wrap strong {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.progress-bar span {
    display: block;
    width: 22%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #6c522f);
}

.activation-text {
    color: var(--text-soft);
    margin-bottom: 14px;
}

.section-divider {
    height: 1px;
    margin: 14px 0 18px;
    background: rgba(255, 255, 255, 0.18);
}

.rank-title {
    margin: 0 0 14px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 500;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.panel-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    padding: 18px;
}

.referral-box {
    text-align: center;
}

.referral-input {
    width: 100%;
    min-height: 54px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    text-align: center;
    padding: 0 16px;
    outline: none;
}

.copy-btn {
    width: auto;
    padding: 0 20px;
    margin: 14px auto 0;
}

.banner-card {
    margin-top: 22px;
    padding: 0;
    overflow: hidden;
}

.banner-inner {
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: 220px;
    background: linear-gradient(135deg, #111 0%, #1f1f1f 35%, #84d7bf 36%, #58c6a0 100%);
}

.banner-figure {
    position: relative;
    background:
        radial-gradient(circle at 30% 30%, rgba(204, 156, 85, 0.4), transparent 20%),
        linear-gradient(180deg, #111111 0%, #0b0b0b 100%);
}

.coin-stack,
.coin-stack::before,
.coin-stack::after {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #c79d58, #85612d);
}

.coin-stack {
    width: 84px;
    height: 84px;
    left: 34px;
    bottom: 24px;
}

.coin-stack::before,
.coin-stack::after {
    content: '';
    width: 64px;
    height: 64px;
    left: 42px;
    bottom: 18px;
}

.coin-stack::after {
    width: 44px;
    height: 44px;
    left: 84px;
    bottom: 56px;
}

.person-shape {
    position: absolute;
    left: 86px;
    bottom: 26px;
    width: 62px;
    height: 120px;
    border-radius: 30px 30px 18px 18px;
    background: linear-gradient(180deg, #ef8f81, #a74851);
    transform: skew(-8deg);
}

.person-shape::before {
    content: '';
    position: absolute;
    top: -36px;
    left: 10px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f3c4b2;
}

.banner-copy {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-copy h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-style: italic;
}

.banner-copy p {
    margin: 0;
    color: #f1fff8;
    font-size: 1.4rem;
}

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

.stat-card {
    text-align: center;
    padding: 10px 8px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #8f6a37, var(--accent-strong));
    color: #fff;
    font-size: 1.3rem;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    display: block;
    color: var(--accent-strong);
}

.summary-card {
    margin-top: 18px;
}

.summary-card h4 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.summary-list {
    display: grid;
    gap: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-soft);
}

.summary-item strong {
    color: var(--text-main);
    font-weight: 600;
}

.content-stack {
    display: grid;
    gap: 20px;
}

.section-card {
    padding: 20px;
}

.section-heading {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.section-subtext {
    margin: 0 0 18px;
    color: var(--text-soft);
    line-height: 1.6;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.package-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.package-card strong {
    font-size: 1.05rem;
}

.package-card span {
    color: var(--text-soft);
    line-height: 1.5;
}

.action-form {
    display: grid;
    gap: 16px;
}

.action-form-inline {
    grid-template-columns: minmax(200px, 320px) auto;
    align-items: end;
}

.plan-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.field-span-full {
    grid-column: 1 / -1;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    white-space: nowrap;
}

.data-table th {
    color: var(--accent-strong);
    font-weight: 600;
}

.data-table td {
    color: var(--text-main);
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.metrics-row-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0;
}

.metric-panel,
.reward-card {
    display: grid;
    gap: 8px;
}

.metric-panel span,
.reward-card span {
    color: var(--text-soft);
}

.metric-panel strong,
.reward-card strong {
    font-size: 1.4rem;
}

.table-btn {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #0a0a0a;
    font-weight: 700;
    cursor: pointer;
}

.danger-btn {
    background: linear-gradient(135deg, #a53e48, #d25661);
    color: #fff;
}

.table-link-btn {
    min-height: 38px;
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.inline-actions-stack {
    margin-top: 18px;
}

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

.small-select {
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.receiver-preview,
.check-row,
.split-head {
    display: flex;
    align-items: center;
}

.announcement-stack {
    display: grid;
    gap: 16px;
}

.announcement-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 10px;
}

.announcement-card p,
.announcement-card small {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.announcement-tag {
    width: max-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(181, 138, 76, 0.18);
    color: var(--accent-strong);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.receiver-preview {
    min-height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
}

.check-row {
    gap: 10px;
    color: var(--text-soft);
}

.split-head {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.tree-wrap {
    overflow-x: auto;
    padding: 12px 0;
}

.tree-list,
.tree-list ul {
    list-style: none;
    margin: 0;
    padding-left: 32px;
}

.tree-list > li {
    padding-left: 0;
}

.tree-list li {
    position: relative;
    margin: 0;
    padding: 16px 0 0 24px;
}

.tree-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 34px;
    border-left: 2px solid rgba(216, 179, 123, 0.45);
    border-bottom: 2px solid rgba(216, 179, 123, 0.45);
}

.tree-list > li::before {
    display: none;
}

.tree-node {
    min-width: 170px;
    max-width: 240px;
    display: inline-grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.tree-node strong,
.tree-node span,
.tree-node small {
    display: block;
}

.tree-node span,
.tree-node small {
    color: var(--text-soft);
}

.tree-status-active {
    border-color: rgba(79, 191, 147, 0.45);
}

.tree-status-pending {
    border-color: rgba(216, 179, 123, 0.45);
}

.tree-status-banned {
    border-color: rgba(210, 86, 97, 0.45);
}

.bottom-nav {
    position: fixed;
    left: 210px;
    right: 0;
    bottom: 0;
    height: 72px;
    background: #000;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 20;
}

.bottom-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-main);
    font-size: 0.85rem;
}

.bottom-link span:first-child {
    font-size: 1.2rem;
}

.bottom-link.is-center {
    width: 54px;
    height: 54px;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #0a0a0a;
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--accent-shadow);
}

.bottom-link.is-center span:last-child {
    display: none;
}

.sidebar.is-collapsed {
    display: none;
}

.dashboard-shell.is-collapsed {
    grid-template-columns: 1fr;
}

.dashboard-shell.is-collapsed .bottom-nav {
    left: 0;
}

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

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 260px;
        z-index: 30;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .mobile-only {
        display: inline-flex;
    }

    .topbar {
        justify-content: space-between;
        padding-left: 18px;
        padding-right: 18px;
    }

    .dashboard-content {
        padding: 16px 12px 96px;
    }

    .dashboard-panel {
        padding: 12px 4px 30px;
    }

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

    .bottom-nav {
        left: 0;
        gap: 18px;
    }

    .metrics-row-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .plan-form-grid {
        grid-template-columns: 1fr;
    }

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

    .field-span-full {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 0;
    }

    .mobile-frame {
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
    }

    .poster-card span {
        font-size: 1.8rem;
    }

    .income-card {
        width: 132px;
    }

    .topbar-meta strong {
        font-size: 0.92rem;
    }

    .topbar-meta span {
        font-size: 0.8rem;
    }

    .banner-inner {
        grid-template-columns: 1fr;
    }

    .banner-figure {
        min-height: 180px;
    }

    .metrics-row,
    .metrics-row-wide {
        grid-template-columns: 1fr;
    }
}
