@font-face {
    font-family: "Roboto Local";
    src: url("/assets/roboto-medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

:root {
    --bg-dark: #0a0a0a;
    --card-bg: #141414;
    --accent-gold: #d4af37;
    --text-white: #ffffff;
    --text-muted: #8e8e93;
    --border-color: #2c2c2e;
    --input-bg: #1c1c1e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-white);
    text-decoration: none;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-white);
    color: var(--text-white);
}

.btn-outline:hover {
    background: var(--text-white);
    color: var(--bg-dark);
}

.btn-soft-calc {
    position: relative;
    overflow: visible;
    padding: 10px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.btn-soft-calc::after {
    content: '';
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 5px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 122, 24, 0.85), transparent);
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.btn-soft-calc:hover {
    color: #ff9b45;
    transform: translateY(-1px);
    text-shadow: 0 0 18px rgba(255, 122, 24, 0.28);
    box-shadow: none;
}

.btn-soft-calc:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.btn-soft-calc:active {
    transform: translateY(0);
}


.btn-gold {
    background: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    color: var(--bg-dark);
    font-weight: 600;
}

.btn-gold:hover {
    background: transparent;
    color: var(--accent-gold);
}

.hero {
    padding: 160px 20px 80px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.form-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 24px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.form-wrapper h2 {
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 15px;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}


.casting-photo-group {
    margin-top: -4px;
}

.casting-photo-upload {
    min-height: 46px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(28, 28, 30, 0.72);
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 15px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    cursor: pointer;
    transition: border-color .22s ease, background .22s ease, box-shadow .22s ease, color .22s ease;
}

.casting-photo-upload:hover {
    border-color: rgba(255, 122, 24, 0.64);
    background: rgba(255, 122, 24, 0.08);
    color: #fff !important;
    box-shadow: 0 10px 26px rgba(255, 122, 24, 0.08);
}

.casting-photo-plus {
    color: var(--accent-orange, #ff7a18);
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
}

.casting-photo-input {
    display: none;
}

.casting-photo-preview {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 12px;
    line-height: 1.35;
}

.casting-photo-preview span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.age-confirm-note {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
    letter-spacing: 0.01em;
}

.age-confirm-note:hover {
    color: rgba(255, 255, 255, 0.58);
}

.status-msg {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.status-success {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.status-error {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}


/* Главная страница: фоновое видео */
.landing-page {
    min-height: 100vh;
    background: #050505;
}

.hero-media {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: #050505;
}

.hero-video,
.hero-video-fallback,
.hero-video-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-video {
    object-fit: cover;
    opacity: 0.74;
    filter: saturate(0.85) contrast(1.12) brightness(0.72);
}

.hero-video-fallback {
    z-index: -1;
    background:
        radial-gradient(circle at 18% 22%, rgba(212, 175, 55, 0.24), transparent 30%),
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.08), transparent 24%),
        linear-gradient(135deg, rgba(19, 19, 19, 0.98), rgba(5, 5, 5, 1) 52%, rgba(29, 24, 12, 0.92));
}

.hero-video-overlay {
    background:
        linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.58) 48%, rgba(5, 5, 5, 0.88) 100%),
        linear-gradient(180deg, rgba(5, 5, 5, 0.42) 0%, rgba(5, 5, 5, 0.22) 42%, rgba(5, 5, 5, 0.9) 100%);
}

.landing-page header {
    background: rgba(5, 5, 5, 0.54);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.landing-page .nav-buttons .language-flags {
    margin-right: 2px;
}

.landing-page .nav-buttons .language-flag {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
}

.landing-page .nav-buttons .language-flag.active {
    border-color: rgba(212, 175, 55, 0.76);
    background: rgba(212, 175, 55, 0.13);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.10), 0 6px 18px rgba(212, 175, 55, 0.12);
}

.landing-page .hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 500px;
    align-items: center;
    gap: 56px;
    padding: 130px 28px 70px;
    text-align: left;
}

.hero-copy {
    max-width: 620px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(212, 175, 55, 0.34);
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.10);
    color: var(--accent-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.landing-page .hero h1 {
    font-size: clamp(44px, 5.2vw, 78px);
    line-height: 0.98;
    letter-spacing: -2.5px;
    text-shadow: 0 18px 45px rgba(0, 0, 0, 0.75);
}

.landing-page .hero p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 18px;
    line-height: 1.75;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
}

.landing-page .form-wrapper {
    max-width: 500px;
    width: 100%;
    margin: 0;
    background: rgba(20, 20, 20, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72);
}

.landing-page input,
.landing-page select,
.landing-page textarea {
    background: rgba(28, 28, 30, 0.84);
}

@media (max-width: 980px) {
    .landing-page .hero {
        grid-template-columns: 1fr;
        max-width: 680px;
        text-align: center;
        gap: 34px;
    }

    .hero-copy,
    .landing-page .hero p {
        max-width: 100%;
    }

    .landing-page .form-wrapper {
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .landing-page header {
        padding: 16px 18px;
    }

    .landing-page .logo {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .landing-page .btn {
        padding: 9px 14px;
        font-size: 12px;
    }

    .landing-page .hero {
        padding: 112px 18px 50px;
    }

    .landing-page .form-wrapper {
        padding: 28px 22px;
    }
}

/* Главная: калькулятор потенциального дохода */
.income-calc-section {
    padding: 34px 24px 84px;
    background:
        radial-gradient(circle at 22% 34%, rgba(255, 122, 24, 0.08), transparent 38%),
        linear-gradient(180deg, #070707 0%, #0c0c0d 100%);
}

.income-calc-card {
    max-width: 1508px;
    min-height: 510px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(500px, 1.06fr) minmax(500px, 0.78fr) minmax(220px, 0.30fr);
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 0;
    overflow: hidden;
    background: rgba(255,255,255,0.035);
    box-shadow: 0 38px 90px rgba(0,0,0,0.34);
}

.income-calc-visual {
    position: relative;
    min-height: 510px;
    overflow: hidden;
    isolation: isolate;
    background-color: rgba(0,0,0,0.42);
    background:
        radial-gradient(circle at 45% 40%, rgba(255, 122, 24, 0.14), transparent 35%),
        linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

.income-calc-visual::before,
.income-calc-visual::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 62px;
    z-index: 2;
    pointer-events: none;
}

.income-calc-visual::before {
    top: 0;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.75) 0%, rgba(8, 8, 8, 0.28) 52%, rgba(8, 8, 8, 0) 100%);
}

.income-calc-visual::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(8, 8, 8, 0.82) 0%, rgba(8, 8, 8, 0.34) 52%, rgba(8, 8, 8, 0) 100%);
}

.income-calc-photo {
    position: absolute;
    inset: -6px 0 -6px 0;
    background-image: url('./assets/calculator-model.jpg');
    background-size: cover;
    background-position: center 42%;
    opacity: 0.86;
    transform: scale(1.02);
}

.income-calc-photo-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.14), rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.22)),
        linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.30) 55%, rgba(0,0,0,0.46));
}

.income-calc-photo-title {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 58px;
    transform: translateX(-50%);
    width: min(88%, 640px);
    color: #fff;
    text-align: center;
    font-size: clamp(36px, 3.1vw, 58px);
    line-height: 0.96;
    letter-spacing: -0.07em;
    font-weight: 950;
    text-transform: uppercase;
    text-shadow: 0 16px 34px rgba(0,0,0,0.42);
}

.income-calc-panel {
    position: relative;
    z-index: 2;
    margin: 30px 0 30px -24px;
    padding: 36px 44px 34px 44px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 122, 24, 0.20), transparent 34%),
        linear-gradient(145deg, rgba(29,29,31,0.96), rgba(16,16,18,0.96));
    box-shadow: -24px 0 50px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}

.income-kicker {
    margin: 0 0 12px;
    color: var(--accent-orange, #ff7a18);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.income-calc-panel h2 {
    max-width: 520px;
    margin-bottom: 30px;
    color: #fff;
    font-size: clamp(30px, 2.25vw, 45px);
    line-height: 1.05;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.calc-question {
    margin-top: 26px;
}

.calc-question:first-of-type {
    margin-top: 0;
}

.calc-question-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 13px;
}

.calc-question-title {
    margin-bottom: 0;
    color: rgba(255,255,255,0.78);
    font-size: 16px;
    font-weight: 700;
}

.calc-hint {
    position: relative;
    flex-shrink: 0;
}

.calc-hint-trigger {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 122, 24, 0.65);
    background: rgba(255, 122, 24, 0.08);
    color: #ffb46d;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: help;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.calc-hint:hover .calc-hint-trigger,
.calc-hint:focus-within .calc-hint-trigger {
    transform: translateY(-1px);
    border-color: rgba(255, 122, 24, 0.95);
    background: rgba(255, 122, 24, 0.16);
}

.calc-hint-bubble {
    position: absolute;
    right: -78px;
    top: calc(100% + 13px);
    width: 220px;
    padding: 15px 16px;
    border: 1px solid rgba(255, 122, 24, 0.28);
    border-radius: 16px;
    background: rgba(18,18,19,0.98);
    color: rgba(255,255,255,0.82);
    font-size: 12px;
    line-height: 1.38;
    box-shadow: 0 20px 44px rgba(0,0,0,0.36);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 5;
    pointer-events: none;
}

.calc-hint-bubble::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 82px;
    width: 13px;
    height: 13px;
    background: rgba(18,18,19,0.98);
    border-left: 1px solid rgba(255, 122, 24, 0.28);
    border-top: 1px solid rgba(255, 122, 24, 0.28);
    transform: rotate(45deg);
}

.calc-hint:hover .calc-hint-bubble,
.calc-hint:focus-within .calc-hint-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.calc-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.calc-options-wide {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.calc-option {
    height: 48px;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 0;
    background: rgba(255,255,255,0.045);
    color: rgba(255,255,255,0.78);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}

.calc-option:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 122, 24, 0.55);
    background: rgba(255, 122, 24, 0.10);
    color: #fff;
}

.calc-option.active {
    border-color: rgba(255, 185, 86, 0.9);
    background: linear-gradient(135deg, #ffd36b, #ff7b1c);
    color: #0a0a0a;
    box-shadow: 0 16px 32px rgba(255, 122, 24, 0.22);
}

.income-note {
    display: none;
}

.income-result-panel {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    margin: 30px 0 30px 0;
    min-width: 220px;
    border: 1px solid rgba(255,255,255,0.12);
    border-left: 0;
    border-radius: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 122, 24, 0.18), transparent 52%),
        linear-gradient(180deg, rgba(255,138,42,0.96), rgba(255,174,67,0.90));
}

.income-result-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 18px 18px;
    border-bottom: 1px solid rgba(10,10,10,0.16);
    color: #0a0a0a;
    text-align: center;
}

.income-result-item:last-child {
    border-bottom: 0;
}

.income-result-item strong {
    display: block;
    font-size: clamp(28px, 1.95vw, 38px);
    line-height: 1;
    letter-spacing: -0.07em;
    font-weight: 950;
    transform-origin: center center;
    transition: transform .18s ease, text-shadow .18s ease;
}

.income-result-item strong.is-counting {
    transform: scale(1.035);
    text-shadow: 0 10px 24px rgba(255,255,255,0.28);
}

.income-result-item span {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: 0;
    opacity: 0.74;
}

@media (max-width: 1240px) {
    .income-calc-card {
        grid-template-columns: minmax(420px, 1fr) minmax(430px, 0.92fr) 205px;
    }

    .income-calc-panel {
        margin-left: -38px;
        padding: 36px 34px;
    }
}

@media (max-width: 1100px) {
    .income-calc-card {
        grid-template-columns: 1fr;
    }

    .income-calc-visual {
        min-height: 340px;
        background-color: rgba(0,0,0,0.42);
    }

    .income-calc-photo,
    .income-calc-photo-overlay {
        inset: 0;
    }

    .income-calc-visual::before,
    .income-calc-visual::after {
        height: 40px;
    }

    .income-calc-photo-title {
        bottom: 42px;
    }

    .income-calc-panel {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .income-result-panel {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: none;
        margin: 0;
        border-left: 1px solid rgba(255,255,255,0.12);
        border-radius: 0;
    }

    .income-result-item {
        border-bottom: 0;
        border-right: 1px solid rgba(10,10,10,0.16);
    }

    .income-result-item:last-child {
        border-right: 0;
    }
}

@media (max-width: 640px) {
    .income-calc-section {
        padding: 18px 14px 60px;
    }

    .income-calc-card {
        border-radius: 0;
    }

    .income-calc-visual {
        min-height: 260px;
    }

    .income-calc-photo,
    .income-calc-photo-overlay {
        inset: 0;
    }

    .income-calc-visual::before,
    .income-calc-visual::after {
        height: 40px;
    }

    .income-calc-photo-title {
        bottom: 26px;
        font-size: 31px;
    }

    .income-calc-panel {
        padding: 30px 22px;
    }

    .income-calc-panel h2 {
        font-size: 28px;
    }

    .calc-question-title {
        font-size: 15px;
    }

    .calc-question-heading {
        align-items: flex-start;
    }

    .calc-hint-bubble {
        right: 0;
        width: min(220px, calc(100vw - 60px));
    }

    .calc-hint-bubble::before {
        right: 8px;
    }

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

    .income-result-panel {
        grid-template-columns: 1fr;
    }

    .income-result-item {
        border-right: 0;
        border-bottom: 1px solid rgba(10,10,10,0.16);
    }
}

/* Личный Кабинет & Админка */
.container {
    max-width: 1000px;
    margin: 120px auto 60px auto;
    padding: 0 20px;
}

.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
}

.param-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.param-item {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.param-item .val {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-gold);
}

.param-item .lbl {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 5px;
}

.model-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.model-list-table th, .model-list-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.model-list-table th {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
}
/* =================================================== */
/* КАСТОМНЫЙ ПОЛЗУНОК (СКРОЛЛБАР) В СТИЛЕ САЙТА        */
/* =================================================== */

/* Настройки для Google Chrome, Opera, Safari и Edge */
::-webkit-scrollbar {
    width: 8px;               /* Ширина вертикального скроллбара */
    height: 8px;              /* Высота горизонтального скроллбара */
}

/* Дорожка, по которой двигается ползунок (фон) */
::-webkit-scrollbar-track {
    background: #0f0f0f;      /* Глубокий темный цвет под фон сайта */
}

/* Сам ползунок */
::-webkit-scrollbar-thumb {
    background: #bfa36f;      /* Золотой оттенок (можешь заменить на var(--accent-gold)) */
    border-radius: 10px;      /* Скругляем вbutton-style */
    border: 2px solid #0f0f0f; /* Делаем отступы вокруг ползунка за счет цвета фона */
}

/* Ползунок при наведении мышкой */
::-webkit-scrollbar-thumb:hover {
    background: #d4af37;      /* Чуть более яркое золото при ховере */
    cursor: pointer;
}

/* Поддержка для браузера Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #bfa36f #0f0f0f; /* [цвет ползунка] [цвет фона] */
}

/* Админка: расширенная таблица, доходы и действия */
.admin-container {
    max-width: 1480px;
    padding-left: 24px;
    padding-right: 24px;
}

.admin-layout {
    display: grid;
    grid-template-columns: 392px minmax(760px, 1fr);
    gap: 24px;
    align-items: start;
}

.admin-list-card {
    padding: 30px 28px;
    min-width: 0;
}

.admin-table-wrap {
    overflow-x: visible;
}

.admin-list-card .model-list-table {
    table-layout: auto;
    font-size: 14px;
}

.admin-list-card .model-list-table th,
.admin-list-card .model-list-table td {
    padding: 14px 9px;
    vertical-align: middle;
}

.admin-list-card .model-list-table th:nth-child(1),
.admin-list-card .model-list-table td:nth-child(1) { width: 31%; }
.admin-list-card .model-list-table th:nth-child(2),
.admin-list-card .model-list-table td:nth-child(2) { width: 13%; }
.admin-list-card .model-list-table th:nth-child(3),
.admin-list-card .model-list-table td:nth-child(3) { width: 14%; }
.admin-list-card .model-list-table th:nth-child(4),
.admin-list-card .model-list-table td:nth-child(4) { width: 12%; }
.admin-list-card .model-list-table th:nth-child(5),
.admin-list-card .model-list-table td:nth-child(5) { width: 9%; }
.admin-list-card .model-list-table th:nth-child(6),
.admin-list-card .model-list-table td:nth-child(6) { width: 13%; }
.admin-list-card .model-list-table th:nth-child(7),
.admin-list-card .model-list-table td:nth-child(7) { width: 6%; text-align: center; }

.income-mini {
    white-space: nowrap;
    font-size: 13px;
    color: var(--text-white);
}

.income-mini span {
    color: var(--text-muted);
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.btn-small {
    min-width: 66px;
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-edit {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

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

.btn-delete {
    background: rgba(231, 76, 60, 0.16);
    color: #ff6b6b;
    border: 1px solid rgba(231, 76, 60, 0.35);
}

.btn-delete:hover {
    background: #e74c3c;
    color: #fff;
    transform: translateY(-1px);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    z-index: 2000;
}

.modal-overlay.is-open {
    display: flex;
}

.modal-card {
    position: relative;
    width: min(440px, 100%);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
}

.modal-card h2 {
    margin-bottom: 8px;
    font-size: 22px;
    text-transform: uppercase;
}

.modal-subtitle {
    margin-bottom: 22px;
    color: var(--text-muted);
    font-size: 14px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--input-bg);
    color: var(--text-white);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

@media (max-width: 1180px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 720px) {
    .model-register-params-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Фото профиля модели */
.profile-header {
    align-items: flex-start;
}

.profile-header-expanded {
    display: block;
}

.profile-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.profile-overview {
    display: grid;
    grid-template-columns: auto minmax(260px, 360px);
    gap: 34px;
    align-items: stretch;
    margin-top: 24px;
}

.profile-photo-wrap {
    margin-top: 0;
}

.profile-photo {
    display: block;
    width: auto;
    max-width: min(260px, 100%);
    height: auto;
    max-height: 340px;
    object-fit: contain;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
}

.profile-params-card {
    align-self: start;
    min-height: auto;
    padding: 22px 24px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.26);
}

.profile-params-kicker {
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.profile-params-toggle {
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    color: var(--text-muted);
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-align: left;
    text-transform: uppercase;
}

.profile-params-toggle:disabled {
    opacity: 1;
}

.profile-params-chevron {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-right: 2px solid #ffae55;
    border-bottom: 2px solid #ffae55;
    transform: rotate(45deg);
    transition: transform 0.24s ease;
}

html:not(.telegram-mini-app) .profile-params-chevron {
    display: none;
}

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

.profile-param-mini {
    min-height: 72px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
}

.profile-param-mini span {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.profile-param-mini strong {
    display: block;
    color: var(--accent-gold);
    font-size: 20px;
    line-height: 1.15;
}

.profile-param-wide {
    grid-column: auto;
}

.admin-model-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
}

.admin-model-photo {
    width: 46px;
    height: 58px;
    flex: 0 0 46px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
}

.admin-model-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-weight: 700;
}

.btn-photo {
    background: rgba(212, 175, 55, 0.12);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.btn-photo:hover {
    background: rgba(212, 175, 55, 0.24);
    transform: translateY(-1px);
}

.btn-status {
    background: rgba(86, 156, 214, 0.16);
    color: #6fc3ff;
    border: 1px solid rgba(86, 156, 214, 0.4);
}

.btn-status:hover {
    background: rgba(86, 156, 214, 0.28);
    transform: translateY(-1px);
}

.admin-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.16);
    color: var(--accent-gold);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.photo-modal-card {
    width: min(520px, 100%);
}

.photo-preview {
    position: relative;
    width: 100%;
    height: 360px;
    margin-bottom: 14px;
    border: 1px dashed rgba(212, 175, 55, 0.45);
    border-radius: 24px;
    background: var(--input-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.photo-preview:hover,
.photo-preview:focus-visible {
    border-color: rgba(212, 175, 55, 0.9);
    background: rgba(212, 175, 55, 0.06);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.08), 0 18px 42px rgba(0, 0, 0, 0.18);
    outline: none;
    transform: translateY(-1px);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: rgba(255, 255, 255, 0.02);
}

.photo-preview:not(.empty)::after {
    content: 'Нажмите, чтобы заменить фото';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.7px;
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.photo-preview:not(.empty):hover::after,
.photo-preview:not(.empty):focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.photo-preview.empty {
    background: linear-gradient(135deg, rgba(28, 28, 30, 1), rgba(20, 20, 20, 1));
}

.photo-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 24px;
}

.photo-upload-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.38);
    color: var(--accent-gold);
    font-size: 30px;
    line-height: 1;
    box-shadow: 0 0 28px rgba(212, 175, 55, 0.10);
}

.photo-upload-title {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 900;
}

.photo-upload-text {
    max-width: 280px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    text-transform: none;
    letter-spacing: 0.2px;
}

.photo-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-hint {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.photo-form-hint {
    margin-bottom: 20px;
}

.modal-actions-row {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 12px;
}

.btn-modal-secondary,
.btn-modal-primary {
    width: 100%;
    padding: 14px;
}

@media (max-width: 640px) {
    .profile-header {
        flex-direction: column;
        gap: 16px;
    }

    .profile-title-row {
        flex-direction: column;
        gap: 14px;
    }

    .profile-overview {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .profile-photo {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 340px;
    }

    .profile-params-card {
        padding: 18px;
    }

    .photo-preview {
        height: 300px;
    }

    .modal-actions-row {
        grid-template-columns: 1fr;
    }
}

/* Личный кабинет: Telegram-кнопка и редактирование соцсетей */
.profile-main-info {
    min-width: 0;
}

.profile-kicker {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-section-title {
    font-size: 18px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.profile-section-spaced {
    margin-top: 30px;
}

.telegram-assistant-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2aabee, #229ed9);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(34, 158, 217, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.telegram-assistant-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 18px 38px rgba(34, 158, 217, 0.34);
}

.telegram-assistant-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    line-height: 1;
}

 .social-panel {
    background: #1a1a1a;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

.social-current {
    display: grid;
    gap: 4px;
    color: #ccc;
    font-size: 14px;
}

.social-row {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
}

.social-row:last-child {
    border-bottom: none;
}

.social-row-head {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-brand-name,
.social-brand-link {
    color: #f1f1f1;
    font-weight: 800;
}

.social-brand-link {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.social-brand-link:hover {
    color: #ffd84a;
    text-shadow: 0 0 14px rgba(212, 175, 55, 0.22);
}

.social-empty {
    color: var(--text-muted);
}

.social-edit-btn {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.30);
    background: rgba(212, 175, 55, 0.06);
    color: var(--accent-gold);
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    opacity: 0.72;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.social-row:hover .social-edit-btn,
.social-edit-btn:hover {
    opacity: 1;
}

.social-edit-btn:hover {
    transform: scale(1.08);
    border-color: rgba(212, 175, 55, 0.70);
    background: rgba(212, 175, 55, 0.15);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08);
}

.social-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.social-edit-modal.active {
    display: flex;
}

.social-edit-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.66);
    backdrop-filter: blur(6px);
}

.social-edit-dialog {
    position: relative;
    width: min(460px, 100%);
    padding: 28px;
    border-radius: 22px;
    border: 1px solid var(--border-color);
    background: #171717;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.social-edit-dialog h3 {
    margin: 2px 0 18px;
    font-size: 26px;
    color: var(--text-main);
}

.social-edit-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font-size: 22px;
    cursor: pointer;
}

.social-modal-input {
    width: 100%;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-main);
    outline: none;
}

.social-modal-input:focus {
    border-color: rgba(212, 175, 55, 0.65);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08);
}

.social-modal-actions {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 12px;
    margin-top: 18px;
}

.social-modal-actions .btn {
    width: 100%;
}

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

.social-save-btn {
    width: 100%;
    margin-top: 4px;
}

@media (max-width: 840px) {
    .grid-3,
    .social-current {
        grid-template-columns: 1fr;
    }

    .telegram-assistant-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Личный кабинет: кнопка ассистента в шапке рядом с выходом */
.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-assistant-btn {
    margin-top: 0;
    padding: 10px 18px;
    min-height: 40px;
    white-space: nowrap;
}

.header-assistant-btn .telegram-assistant-icon {
    width: 22px;
    height: 22px;
    font-size: 12px;
}

@media (max-width: 720px) {
    .dashboard-header {
        align-items: flex-start;
        gap: 14px;
        flex-direction: column;
    }

    .dashboard-header-actions {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .header-assistant-btn,
    .dashboard-header-actions .btn-outline {
        flex: 1;
        padding-left: 12px;
        padding-right: 12px;
        font-size: 12px;
    }
}


/* Личный кабинет: боковое меню */
.dashboard-page .container.dashboard-container {
    max-width: none;
    margin: 0;
    padding: 0;
}

.dashboard-shell {
    width: min(1320px, calc(100% - 40px));
    margin: 120px auto 60px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.dashboard-sidebar {
    position: sticky;
    top: 96px;
    min-height: 320px;
    padding: 24px;
    border-radius: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}



.sidebar-kicker {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
}

.dashboard-sidebar h2 {
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

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

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.sidebar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    box-shadow: 0 0 0 rgba(212, 175, 55, 0);
    transition: all 0.25s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--text-white);
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.10);
}

.sidebar-link:hover .sidebar-dot,
.sidebar-link.active .sidebar-dot {
    background: var(--accent-gold);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.55);
}

.dashboard-content {
    min-width: 0;
}

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

    .dashboard-sidebar {
        position: static;
        min-height: unset;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sidebar-link {
        justify-content: center;
    }
}

@media (max-width: 700px) {
    .dashboard-shell {
        width: calc(100% - 28px);
        margin-top: 160px;
    }

    .dashboard-sidebar {
        padding: 18px;
    }

    .sidebar-nav {
        grid-template-columns: 1fr 1fr;
    }

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

/* Реквизиты выплат в ЛК и админке */
.dashboard-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.dashboard-shell {
    width: min(1540px, calc(100% - 40px));
}

.dashboard-side-panel {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 96px;
}

.payment-details-card {
    padding: 28px;
}

.collaboration-terms-card {
    padding: 24px 28px;
    overflow: hidden;
    position: relative;
}

.collaboration-terms-card::before {
    content: '';
    position: absolute;
    inset: -80px auto auto -80px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(46, 213, 115, 0.22), transparent 68%);
    pointer-events: none;
}

.collaboration-percent {
    color: #2ed573;
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin: 12px 0 12px;
    text-shadow: 0 0 22px rgba(46, 213, 115, 0.22);
}

.payment-title {
    font-size: 24px;
    margin: 4px 0 8px;
    text-transform: uppercase;
}

.payment-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 18px;
}

.payment-preview {
    min-height: 86px;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.20);
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.payment-preview span {
    color: var(--text-muted);
}

.payment-method-fields {
    display: none;
}

.payment-save-btn {
    width: 100%;
    margin-top: 4px;
}

.payment-modal-card {
    width: min(520px, 100%);
}

.admin-payment-preview {
    margin-bottom: 20px;
}

.btn-payment {
    background: rgba(46, 204, 113, 0.14);
    color: #58d68d;
    border: 1px solid rgba(46, 204, 113, 0.36);
}

.btn-payment:hover {
    background: rgba(46, 204, 113, 0.24);
    transform: translateY(-1px);
}

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

    .dashboard-side-panel {
        position: static;
    }
}

@media (max-width: 980px) {
    .dashboard-content-grid {
        display: block;
    }
}

/* Compact admin settings button */
.admin-actions-single {
    align-items: center;
}

.btn-settings {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.42);
    background: rgba(212, 175, 55, 0.12);
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-settings svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-settings:hover {
    transform: translateY(-1px) rotate(18deg);
    background: rgba(212, 175, 55, 0.23);
    border-color: rgba(212, 175, 55, 0.72);
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.12);
}

.settings-modal-card {
    width: min(560px, 100%);
}

.settings-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
}

.settings-action {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-white);
    text-align: left;
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.settings-action:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, 0.42);
    background: rgba(255, 255, 255, 0.055);
}

.settings-action-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--accent-gold);
    font-weight: 900;
    font-size: 17px;
}

.settings-action strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
}

.settings-action small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
}

.settings-action-delete {
    border-color: rgba(231, 76, 60, 0.28);
}

.settings-action-delete .settings-action-icon {
    background: rgba(231, 76, 60, 0.14);
    color: #ff6b6b;
}

.settings-action-delete:hover {
    border-color: rgba(231, 76, 60, 0.55);
    background: rgba(231, 76, 60, 0.08);
}

/* Admin password privacy: blur + eye toggle */
.admin-password-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 150px;
}

.admin-password-value {
    display: inline-block;
    max-width: 105px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.admin-password-value.is-hidden {
    filter: blur(5px);
    opacity: 0.72;
    user-select: none;
    pointer-events: none;
}

.password-eye-btn {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.34);
    background: rgba(212, 175, 55, 0.10);
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.password-eye-btn svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.password-eye-btn:hover,
.password-eye-btn.is-visible {
    background: rgba(212, 175, 55, 0.22);
    border-color: rgba(212, 175, 55, 0.72);
}

.password-eye-btn:hover {
    transform: translateY(-1px);
}

/* Расписание сотрудников: админка + личный кабинет */
.settings-action-schedule .settings-action-icon {
    background: rgba(52, 152, 219, 0.14);
    color: #74b9ff;
}

.schedule-modal-card {
    width: min(920px, 100%);
}

.schedule-editor-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 16px;
    align-items: end;
    margin-top: 18px;
}

.schedule-month-admin {
    margin-bottom: 0;
}

.schedule-editor-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.schedule-editor-buttons .btn {
    border-radius: 14px;
    padding: 12px 16px;
}

.schedule-editor-wrap,
.schedule-view-wrap {
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: rgba(28, 28, 30, 0.54);
}

.schedule-editor-wrap {
    max-height: 540px;
    margin-top: 18px;
}

.schedule-editor-table,
.schedule-view-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.schedule-editor-table th,
.schedule-editor-table td,
.schedule-view-table th,
.schedule-view-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.schedule-editor-table th,
.schedule-view-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #141414;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
}

.schedule-editor-table td strong,
.schedule-view-table td strong {
    display: block;
    font-size: 13px;
    color: var(--text-white);
}

.schedule-editor-table td small,
.schedule-view-table td small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 11px;
}

.schedule-editor-table select,
.schedule-editor-table input[type="time"] {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
}

.schedule-editor-row.is-work {
    background: rgba(46, 204, 113, 0.055);
}

.schedule-editor-row.is-off {
    background: rgba(255, 255, 255, 0.018);
}

.schedule-editor-row input:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.schedule-card {
    scroll-margin-top: 100px;
}

.schedule-card-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 22px;
    margin-bottom: 22px;
}

.schedule-month-control {
    min-width: 220px;
}

.schedule-month-control label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.schedule-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.schedule-summary div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.18);
}

.schedule-summary span {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.schedule-summary strong {
    display: block;
    margin-top: 4px;
    color: var(--accent-gold);
    font-size: 22px;
    line-height: 1.1;
}

.schedule-view-row.is-work {
    background: rgba(46, 204, 113, 0.045);
}

.schedule-view-row.is-off {
    background: rgba(255, 255, 255, 0.018);
}

.schedule-view-row.is-empty {
    opacity: 0.74;
}

.schedule-badge,
.schedule-period {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.schedule-badge-work {
    background: rgba(46, 204, 113, 0.15);
    color: #58d68d;
    border: 1px solid rgba(46, 204, 113, 0.30);
}

.schedule-badge-off {
    background: rgba(231, 76, 60, 0.13);
    color: #ff8b80;
    border: 1px solid rgba(231, 76, 60, 0.28);
}

.schedule-badge-empty {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.schedule-period {
    background: rgba(212, 175, 55, 0.10);
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(212, 175, 55, 0.18);
}

@media (max-width: 980px) {
    .sidebar-nav {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }

    .schedule-editor-toolbar,
    .schedule-card-header {
        grid-template-columns: 1fr;
        display: grid;
    }

    .schedule-editor-buttons {
        justify-content: stretch;
    }

    .schedule-editor-buttons .btn {
        flex: 1 1 180px;
    }
}

@media (max-width: 700px) {
    .schedule-summary {
        grid-template-columns: 1fr;
    }

    .schedule-month-control {
        min-width: 0;
    }
}

/* Workday reports / schedule completion */
.admin-report-count {
    margin-top: 7px;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.28);
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.settings-action-reports .settings-action-icon {
    color: #2ecc71;
}

.work-reports-modal-card {
    max-width: 980px;
}

.work-reports-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.work-reports-summary div {
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.work-reports-summary span {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.work-reports-summary strong {
    font-size: 24px;
    color: var(--text-white);
}

.work-reports-wrap {
    max-height: 520px;
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: 18px;
}

.work-reports-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.work-reports-table th,
.work-reports-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: middle;
}

.work-reports-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #151515;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.work-reports-table td strong {
    display: block;
    font-size: 14px;
}

.work-reports-table td small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 11px;
}

.work-report-pill,
.workday-check-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.work-report-pill.is-empty,
.workday-check-pill.is-empty,
.workday-check-pill.is-disabled {
    background: rgba(142, 142, 147, 0.12);
    border: 1px solid rgba(142, 142, 147, 0.24);
    color: var(--text-muted);
}

.work-report-pill.is-pending,
.workday-check-pill.is-pending {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.36);
    color: var(--accent-gold);
}

.work-report-pill.is-approved,
.workday-check-pill.is-approved {
    background: rgba(46, 204, 113, 0.14);
    border: 1px solid rgba(46, 204, 113, 0.34);
    color: #2ecc71;
}

.work-report-pill.is-rejected,
.workday-check-pill.is-rejected {
    background: rgba(231, 76, 60, 0.14);
    border: 1px solid rgba(231, 76, 60, 0.34);
    color: #e74c3c;
}

.work-report-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-work-approve,
.btn-work-reject,
.workday-complete-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-work-approve,
.workday-complete-btn {
    background: var(--accent-gold);
    color: #0a0a0a;
}

.btn-work-reject {
    background: rgba(231, 76, 60, 0.16);
    color: #ff6b5f;
    border: 1px solid rgba(231, 76, 60, 0.32);
}

.btn-work-approve:hover,
.workday-complete-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.18);
}

.btn-work-reject:hover {
    background: rgba(231, 76, 60, 0.24);
}

.workday-complete-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

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

.schedule-view-row.is-pending {
    background: rgba(212, 175, 55, 0.04);
}

.schedule-view-row.is-approved {
    background: rgba(46, 204, 113, 0.045);
}

.schedule-view-row.is-rejected {
    background: rgba(231, 76, 60, 0.045);
}

@media (max-width: 768px) {
    .work-reports-summary {
        grid-template-columns: 1fr;
    }

    .work-report-actions,
    .workday-complete-box {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Logo accent: WebModel.X white + Club orange */
.logo-main {
    color: var(--text-white);
}

.logo-club {
    color: #ff8a1d;
}

.logo-club-clickable {
    display: inline-block;
    cursor: pointer;
    transform-origin: center;
    transition: transform 0.22s ease, text-shadow 0.22s ease, color 0.22s ease;
}

.logo-club-clickable:hover {
    transform: translateY(-1px) scale(1.14);
    color: #ff9a35;
    text-shadow: 0 0 18px rgba(255, 122, 24, 0.44);
}

.logo-club-clickable:focus-visible {
    outline: none;
    transform: translateY(-1px) scale(1.14);
    color: #ff9a35;
    text-shadow: 0 0 18px rgba(255, 122, 24, 0.44);
}

.logo-admin {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82em;
    letter-spacing: 2px;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Payouts page and payout history */
.payouts-card {
    scroll-margin-top: 100px;
    margin-top: 24px;
}

.payouts-card-header,
.admin-page-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-page-title-row h1 {
    font-size: 30px;
    text-transform: uppercase;
    margin: 4px 0 8px;
}

.payouts-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.payouts-summary div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 138, 29, 0.08);
    border: 1px solid rgba(255, 138, 29, 0.20);
}

.payouts-summary span {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.payouts-summary strong {
    display: block;
    margin-top: 4px;
    color: #ffb15f;
    font-size: 21px;
    line-height: 1.1;
}

.payouts-table-wrap {
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: rgba(28, 28, 30, 0.54);
}

.payouts-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.admin-payouts-table {
    min-width: 900px;
}

.payouts-table th,
.payouts-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: middle;
}

.payouts-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #151515;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.payouts-table td strong {
    display: block;
    font-size: 14px;
}

.payouts-table td small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 11px;
}

.admin-payouts-page {
    max-width: 1420px;
}

.admin-payouts-layout {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.admin-payout-form-card {
    margin: 0;
    max-width: none;
    position: sticky;
    top: 100px;
}

.admin-payouts-list-card {
    padding: 28px;
}

.admin-payouts-table-wrap {
    max-height: 660px;
}

@media (max-width: 980px) {
    .admin-payouts-layout {
        grid-template-columns: 1fr;
    }

    .admin-payout-form-card {
        position: static;
    }

    .payouts-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .admin-page-title-row,
    .payouts-card-header {
        flex-direction: column;
    }

    .admin-header-actions {
        width: 100%;
    }

    .admin-header-actions .btn {
        flex: 1;
        padding-left: 12px;
        padding-right: 12px;
        font-size: 12px;
    }
}

.logo {
    text-transform: none;
}


/* Separate employee payouts page */
.payouts-shell .dashboard-content {
    min-width: 0;
}

.payouts-page-card {
    margin-top: 0;
}

@media (min-width: 981px) {
    .payouts-shell {
        grid-template-columns: 260px minmax(0, 1fr);
    }
}

/* Meetings / planning page */
.meetings-card {
    scroll-margin-top: 100px;
    margin-top: 24px;
}

.meetings-card-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.meeting-next-box {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 138, 29, 0.22);
    background: rgba(255, 138, 29, 0.06);
    margin-bottom: 22px;
}

.meetings-history-block h3 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.meetings-list {
    display: grid;
    gap: 12px;
}

.meeting-info-card,
.meeting-card-empty {
    padding: 16px;
    border-radius: 18px;
    background: rgba(28, 28, 30, 0.82);
    border: 1px solid var(--border-color);
}

.meeting-info-card.is-next {
    border-color: rgba(255, 138, 29, 0.42);
    box-shadow: 0 0 24px rgba(255, 138, 29, 0.06);
}

.meeting-card-empty {
    color: var(--text-muted);
    text-align: center;
}

.meeting-info-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.meeting-info-top strong {
    font-size: 18px;
}

.meeting-label,
.meeting-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    white-space: nowrap;
}

.meeting-label,
.meeting-status-badge.is-upcoming {
    color: #ffb15f;
    background: rgba(255, 138, 29, 0.12);
    border: 1px solid rgba(255, 138, 29, 0.25);
}

.meeting-status-badge.is-past {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

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

.meeting-info-grid div {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.meeting-info-grid span {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.meeting-info-grid b {
    display: block;
    margin-top: 3px;
    font-size: 14px;
}

.meeting-created {
    display: block;
    margin-top: 12px;
    color: var(--text-muted);
}

.admin-meetings-table {
    min-width: 980px;
}

.btn-small {
    border: 0;
    border-radius: 10px;
    padding: 8px 10px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
}

.btn-danger-soft {
    color: #ff7777;
    background: rgba(231, 76, 60, 0.14);
    border: 1px solid rgba(231, 76, 60, 0.42);
}

.btn-danger-soft:hover {
    background: rgba(231, 76, 60, 0.22);
}

@media (max-width: 760px) {
    .meeting-info-grid {
        grid-template-columns: 1fr;
    }

    .meeting-info-top {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Separate employee schedule page */
.schedule-page-shell .dashboard-content {
    min-width: 0;
}

.schedule-page-card {
    margin-top: 0;
}

.schedule-profile-line {
    margin-bottom: 18px;
    justify-content: flex-start;
}

@media (min-width: 981px) {
    .schedule-page-shell {
        grid-template-columns: 260px minmax(0, 1fr);
    }
}

/* Переключатель языка в шапке ЛК */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.language-flags {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 2px;
}

.language-flag {
    position: relative;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.language-flag::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.language-flag-ru::before {
    background: linear-gradient(to bottom, #ffffff 0 33.333%, #1f5eff 33.333% 66.666%, #d72828 66.666% 100%);
}

.language-flag-en::before {
    background:
        linear-gradient(to right, #24408e 0 45%, transparent 45% 100%),
        repeating-linear-gradient(to bottom,
            #b22234 0 7.69%,
            #ffffff 7.69% 15.38%);
}

.language-flag:hover {
    transform: translateY(-1px) scale(1.03);
    border-color: rgba(255, 122, 24, 0.42);
    background: rgba(255, 122, 24, 0.08);
}

.language-flag.active {
    border-color: rgba(255, 122, 24, 0.78);
    background: rgba(255, 122, 24, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.10), 0 6px 18px rgba(255, 122, 24, 0.14);
}

.language-flag.active::before {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.language-flag:focus-visible {
    outline: none;
    border-color: rgba(255, 122, 24, 0.9);
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.18);
}

@media (max-width: 720px) {
    .language-flags {
        gap: 6px;
        padding: 2px 0;
    }

    .language-flag {
        width: 34px;
        height: 34px;
    }

    .language-flag::before {
        width: 22px;
        height: 22px;
    }
}


#meetings {
    scroll-margin-top: 96px;
}


/* Мульти-фото в админке */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-height: 360px;
    margin: 22px 0 18px;
}

.photo-thumb,
.photo-add-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: var(--input-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: block;
    object-fit: contain;
    background: #111;
}

.photo-add-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-style: dashed;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.photo-add-tile.is-empty {
    grid-column: 1 / -1;
    min-height: 360px;
}

.photo-add-tile:hover,
.photo-add-tile:focus-visible {
    outline: none;
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.75);
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
}

.photo-main-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.92);
    color: #111;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.photo-thumb-remove {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(12, 12, 12, 0.78);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.photo-thumb-remove:hover {
    transform: scale(1.05);
    background: rgba(178, 44, 44, 0.9);
    border-color: rgba(255, 103, 103, 0.5);
}

/* Карусель фото в ЛК */
.profile-photo-carousel {
    position: relative;
    display: inline-block;
    max-width: min(260px, 100%);
}

.profile-photo-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 36px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 999px;
    background: rgba(14, 14, 14, 0.74);
    color: var(--accent-gold);
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.92);
    transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
    backdrop-filter: blur(10px);
}

.profile-photo-arrow-prev {
    left: -18px;
}

.profile-photo-arrow-next {
    right: -18px;
}

.profile-photo-carousel.has-multiple:hover .profile-photo-arrow {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
}

.profile-photo-arrow:hover {
    background: rgba(212, 175, 55, 0.18);
    border-color: rgba(212, 175, 55, 0.85);
}

.profile-photo-counter {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 2;
    transform: translateX(-50%);
    min-width: 46px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(14, 14, 14, 0.68);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transition: opacity 0.22s ease;
    backdrop-filter: blur(10px);
}

.profile-photo-carousel.has-multiple:hover .profile-photo-counter {
    opacity: 1;
}

@media (max-width: 640px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }

    .photo-add-tile.is-empty {
        min-height: 300px;
    }

    .profile-photo-arrow {
        opacity: 1;
        pointer-events: auto;
        width: 34px;
        height: 50px;
    }

    .profile-photo-arrow-prev {
        left: 8px;
    }

    .profile-photo-arrow-next {
        right: 8px;
    }
}

/* =========================================================
   WM.X 2026 PREMIUM REDESIGN SYSTEM
   Context preserved: model agency, employee portal, admin CRM
   ========================================================= */
:root {
    --bg-dark: #050506;
    --bg-soft: #0d0d10;
    --card-bg: rgba(18, 18, 21, 0.82);
    --card-bg-strong: rgba(24, 24, 28, 0.92);
    --input-bg: rgba(255, 255, 255, 0.045);
    --border-color: rgba(255, 255, 255, 0.105);
    --accent-gold: #f0b24a;
    --accent-orange: #ff7a18;
    --accent-orange-soft: rgba(255, 122, 24, 0.16);
    --text-white: #f7f4ee;
    --text-muted: rgba(247, 244, 238, 0.56);
    --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.42);
    --shadow-glow: 0 18px 55px rgba(255, 122, 24, 0.12);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 122, 24, 0.115), transparent 26%),
        radial-gradient(circle at 88% 8%, rgba(240, 178, 74, 0.09), transparent 24%),
        radial-gradient(circle at 52% 95%, rgba(255, 255, 255, 0.045), transparent 30%),
        linear-gradient(135deg, #050506 0%, #0b0b0e 44%, #060606 100%);
    color: var(--text-white);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 78%);
}

header,
.dashboard-header {
    min-height: 74px;
    padding: 18px clamp(20px, 3vw, 48px);
    background: rgba(7, 7, 9, 0.72) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
    backdrop-filter: blur(22px) saturate(1.18);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: clamp(15px, 1.3vw, 22px);
    font-weight: 900;
    letter-spacing: 2.8px;
    text-transform: none;
    color: var(--text-white);
}

.logo-main { color: var(--text-white); }
.logo-club {
    color: var(--accent-orange) !important;
    text-shadow: 0 0 22px rgba(255, 122, 24, 0.28);
}
.logo-admin {
    margin-left: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 1.3px;
    color: #090909;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
}

.btn,
button.btn,
a.btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 800;
    letter-spacing: 0.2px;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease, color .22s ease;
}

.btn:hover,
button.btn:hover,
a.btn:hover {
    transform: translateY(-2px);
}

.btn-outline {
    color: var(--text-white) !important;
    background: rgba(255, 255, 255, 0.045) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.btn-outline:hover {
    color: #090909 !important;
    border-color: rgba(255, 122, 24, 0.7) !important;
    background: linear-gradient(135deg, #f6c264, var(--accent-orange)) !important;
    box-shadow: var(--shadow-glow);
}

.btn-gold,
.payment-save-btn,
.social-modal-actions .btn-gold {
    color: #111 !important;
    background: linear-gradient(135deg, #ffd36f 0%, var(--accent-gold) 48%, var(--accent-orange) 100%) !important;
    border: 0 !important;
    box-shadow: 0 12px 34px rgba(255, 122, 24, 0.18);
}

.btn-gold:hover,
.payment-save-btn:hover {
    color: #111 !important;
    box-shadow: 0 18px 48px rgba(255, 122, 24, 0.26);
}

input, select, textarea {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--text-white);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

input:focus, select:focus, textarea:focus {
    border-color: rgba(255, 122, 24, 0.72);
    box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.12), inset 0 1px 0 rgba(255,255,255,.05);
}

.form-group label,
.profile-kicker,
.sidebar-kicker,
.payment-subtitle,
.model-list-table th {
    color: rgba(247, 244, 238, 0.50);
    letter-spacing: 1.35px;
}

.form-wrapper,
.profile-card,
.dashboard-sidebar,
.payment-details-card,
.admin-list-card,
.modal-card,
.social-edit-dialog,
.meeting-next-box,
.payouts-page-card {
    position: relative;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.070), rgba(255,255,255,0.026)),
        rgba(14, 14, 17, 0.84) !important;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(20px) saturate(1.08);
}

.form-wrapper::before,
.profile-card::before,
.dashboard-sidebar::before,
.payment-details-card::before,
.modal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,122,24,0.12), transparent 36%, rgba(255,255,255,0.035));
    opacity: 0.55;
}

.form-wrapper > *,
.profile-card > *,
.dashboard-sidebar > *,
.payment-details-card > *,
.modal-card > * {
    position: relative;
    z-index: 1;
}

/* Landing page */
.landing-page .hero-video {
    opacity: 0.62;
    filter: saturate(0.9) contrast(1.14) brightness(0.62);
}

.landing-page .hero-video-overlay {
    background:
        radial-gradient(circle at 34% 44%, rgba(255,122,24,0.12), transparent 28%),
        linear-gradient(90deg, rgba(5,5,6,0.94), rgba(5,5,6,0.52) 48%, rgba(5,5,6,0.92)),
        linear-gradient(180deg, rgba(5,5,6,0.28), rgba(5,5,6,0.92));
}

.hero-kicker {
    background: rgba(255, 122, 24, 0.10);
    border-color: rgba(255, 122, 24, 0.32);
    color: #ffb15d;
    box-shadow: 0 0 35px rgba(255, 122, 24, 0.08);
}

.landing-page .hero h1 {
    max-width: 760px;
    background: linear-gradient(180deg, #fff 0%, #f3e4cf 70%, #d6a96b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-page .form-wrapper {
    padding: 34px;
    border-radius: 34px !important;
}

/* Dashboard shell */
.dashboard-shell {
    max-width: 1640px;
    gap: 26px;
    padding: 110px 26px 60px;
}

.dashboard-content-grid {
    gap: 26px;
}

.dashboard-sidebar {
    position: sticky;
    top: 94px;
    overflow: hidden;
}

.dashboard-sidebar h2,
.profile-card h1,
.payment-title,
.form-wrapper h2,
.admin-container h1 {
    letter-spacing: -0.6px;
    line-height: 1.06;
}

.sidebar-nav {
    gap: 10px;
}

.sidebar-link {
    border-radius: 18px;
    min-height: 52px;
    border: 1px solid transparent;
    background: transparent;
    transition: transform .22s ease, background .22s ease, border-color .22s ease, color .22s ease;
}

.sidebar-link:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-link.active {
    background: rgba(255, 122, 24, 0.12);
    border-color: rgba(255, 122, 24, 0.33);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 14px 34px rgba(255, 122, 24, 0.08);
}

.sidebar-dot {
    background: rgba(255,255,255,.35);
    box-shadow: none;
}

.sidebar-link.active .sidebar-dot {
    background: var(--accent-gold);
    box-shadow: 0 0 18px rgba(255, 122, 24, 0.65);
}

/* Profile hero */
.profile-card {
    padding: clamp(26px, 3vw, 42px);
}

.profile-header {
    border-bottom-color: rgba(255, 255, 255, 0.10);
}

.profile-hero-grid {
    align-items: center;
    gap: clamp(28px, 5vw, 82px);
}

.profile-photo-wrap,
.profile-photo-carousel {
    filter: drop-shadow(0 18px 42px rgba(0,0,0,.38));
}

.profile-photo,
.photo-preview img,
.admin-model-photo {
    border: 1px solid rgba(255,255,255,.13);
    box-shadow: 0 18px 46px rgba(0,0,0,.45);
}

.profile-photo {
    background: rgba(255,255,255,.035);
}

.profile-photo-arrow {
    background: rgba(10,10,12,.68);
    border: 1px solid rgba(255, 122, 24, 0.38);
    color: #ffd36f;
    backdrop-filter: blur(14px);
}

.profile-photo-arrow:hover {
    background: linear-gradient(135deg, rgba(255, 211, 111, 0.28), rgba(255, 122, 24, 0.28));
    color: #fff;
}

.profile-params-side,
.param-compact-card {
    background: rgba(255,255,255,.040) !important;
    border: 1px solid rgba(255,255,255,.105) !important;
}

.profile-params-grid {
    gap: 12px;
}

.param-compact-card,
.param-item {
    border-radius: 18px !important;
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.param-compact-card:hover,
.param-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 122, 24, 0.24) !important;
    background: rgba(255,255,255,.062) !important;
}

.param-compact-value,
.param-item .val {
    color: #ffd36f !important;
    text-shadow: 0 0 20px rgba(255, 122, 24, 0.18);
}

.status-badge {
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 122, 24, 0.14);
    border: 1px solid rgba(255, 122, 24, 0.22);
    color: #ffd36f;
}

/* Compact brand/social list */
.social-panel {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.social-current {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.social-row {
    min-height: 34px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.social-row-head {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-brand-name,
.social-brand-link {
    font-size: 14px !important;
    font-weight: 800;
    color: var(--text-white) !important;
    text-decoration: none;
}

.social-brand-link {
    color: #ffd36f !important;
}

.social-brand-link:hover {
    color: var(--accent-orange) !important;
    text-decoration: none !important;
}

.social-empty {
    font-size: 13px;
    color: rgba(247, 244, 238, 0.38);
}

.social-edit-btn {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,122,24,.24) !important;
    background: rgba(255,122,24,.08) !important;
    color: #ffd36f !important;
    opacity: 0.78;
}

.social-row:hover .social-edit-btn,
.social-edit-btn:hover {
    opacity: 1;
    transform: scale(1.06);
    box-shadow: 0 10px 24px rgba(255,122,24,.12);
}

.social-edit-modal.active .social-edit-dialog {
    animation: modalRise .24s ease both;
}

@keyframes modalRise {
    from { transform: translateY(10px) scale(.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Payments, meetings, schedule */
.payment-preview,
.meeting-card-empty,
.payouts-summary > div,
.schedule-table-row,
.schedule-stat-card,
.workday-reports-list .report-item {
    border-radius: 18px !important;
    background: rgba(255,255,255,.045) !important;
    border: 1px solid rgba(255,255,255,.09) !important;
}

.meeting-next-box {
    border-color: rgba(255,122,24,.22) !important;
    background: rgba(255,122,24,.055) !important;
}

/* Admin CRM */
.admin-container {
    max-width: 1560px !important;
}

.admin-layout {
    gap: 28px;
}

.admin-list-card,
.admin-layout > .form-wrapper {
    overflow: hidden;
}

.model-list-table {
    border-collapse: separate;
    border-spacing: 0 10px;
}

.model-list-table thead th {
    border-bottom: 0;
    padding-bottom: 8px;
}

.model-list-table tbody tr {
    background: rgba(255,255,255,.035);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.065);
}

.model-list-table tbody td {
    border-bottom: 0;
}

.model-list-table tbody tr td:first-child {
    border-radius: 16px 0 0 16px;
}

.model-list-table tbody tr td:last-child {
    border-radius: 0 16px 16px 0;
}

.settings-action {
    border-radius: 20px !important;
    background: rgba(255,255,255,.045) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
}

.settings-action:hover {
    border-color: rgba(255,122,24,.28) !important;
    background: rgba(255,122,24,.075) !important;
}

.settings-action-icon {
    background: linear-gradient(135deg, rgba(255,211,111,.22), rgba(255,122,24,.16));
    color: #ffd36f;
}

/* Language flags */
.language-flags {
    border-radius: 999px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
    padding: 4px;
}

.language-flag {
    border-color: transparent !important;
}

.language-flag.active {
    background: rgba(255, 122, 24, 0.14) !important;
    border-color: rgba(255, 122, 24, 0.55) !important;
}

/* Login page */
body:not(.landing-page):not(.dashboard-page) > .container .form-wrapper {
    max-width: 480px;
}

body:not(.landing-page):not(.dashboard-page) > .container {
    margin-top: 150px !important;
}

/* Responsive redesign */
@media (max-width: 1180px) {
    .dashboard-shell,
    .dashboard-content-grid {
        gap: 18px;
    }

    .social-current {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    header,
    .dashboard-header {
        padding: 14px 16px;
    }

    .logo {
        letter-spacing: 1.8px;
    }

    .profile-card,
    .form-wrapper {
        padding: 24px !important;
        border-radius: 24px !important;
    }

    .social-current {
        gap: 6px !important;
    }
}

/* Custom dropdowns for payment/settings selects */
select option {
    color: #f7f4ee;
    background: #171514;
}

select option:checked {
    color: #111;
    background: #f3b64d;
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.native-select-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    left: 0;
    top: 0;
}

.custom-select {
    position: relative;
    width: 100%;
    z-index: 5;
}

.custom-select.is-open {
    z-index: 90;
}

.custom-select-toggle {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 122, 24, 0.34);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.070), rgba(255,255,255,0.030)),
        rgba(18, 18, 18, 0.92);
    color: #f7f4ee;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 28px rgba(0,0,0,.18);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.custom-select-toggle:hover,
.custom-select.is-open .custom-select-toggle {
    border-color: rgba(255, 122, 24, 0.78);
    box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.12), 0 18px 36px rgba(255, 122, 24, 0.08);
}

.custom-select-arrow {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--accent-gold);
    background: rgba(255, 122, 24, 0.08);
    transition: transform .2s ease;
}

.custom-select.is-open .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(255, 122, 24, 0.30);
    background:
        linear-gradient(145deg, rgba(37, 30, 24, 0.98), rgba(16, 16, 16, 0.98));
    box-shadow: 0 24px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03) inset;
    backdrop-filter: blur(18px);
    max-height: 240px;
    overflow: auto;
    opacity: 0;
    transform: translateY(-4px) scale(.98);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.custom-select.is-open .custom-select-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.custom-select-option {
    width: 100%;
    padding: 12px 13px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: rgba(247, 244, 238, 0.74);
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.custom-select-option:hover {
    color: #fff;
    background: rgba(255, 122, 24, 0.14);
    transform: translateX(2px);
}

.custom-select-option.is-active {
    color: #111;
    background: linear-gradient(135deg, #ffd36f, var(--accent-gold), var(--accent-orange));
    box-shadow: 0 10px 24px rgba(255, 122, 24, 0.16);
}

.custom-select-option:disabled {
    opacity: .42;
    cursor: not-allowed;
}


/* Глобально убираем стрелки у number-полей */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Google Authenticator 2FA */
.two-factor-setup {
    margin: 16px 0 14px;
    padding: 16px;
    border: 1px solid rgba(255, 122, 24, 0.26);
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(255, 122, 24, 0.16), transparent 48%),
        rgba(255, 255, 255, 0.035);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.20);
}

.two-factor-setup p {
    margin: 8px 0 12px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.two-factor-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.10);
    border: 1px solid rgba(37, 211, 102, 0.26);
    color: #35e686;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.two-factor-qr-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px 0 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 122, 24, 0.22);
}

.two-factor-qr {
    display: block;
    width: 210px;
    height: 210px;
    border-radius: 12px;
}

.two-factor-key-label {
    margin-bottom: 8px !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.62) !important;
}

.two-factor-key {
    padding: 12px 13px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px dashed rgba(255, 122, 24, 0.34);
    color: var(--accent-gold);
    font-weight: 900;
    letter-spacing: 0.10em;
    word-break: break-all;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.two-factor-copy {
    margin-top: 10px;
    width: 100%;
    border: 1px solid rgba(255, 122, 24, 0.28);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 122, 24, 0.08);
    color: var(--accent-gold);
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.two-factor-copy:hover {
    transform: translateY(-1px);
    background: rgba(255, 122, 24, 0.14);
    border-color: rgba(255, 122, 24, 0.44);
}

/* Страница штрафов */
.fines-empty-card {
    margin-top: 20px;
    padding: 26px;
    border-radius: 22px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-muted);
    line-height: 1.65;
}

.fines-empty-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 18px;
}

.two-factor-open-btn {
    width: 100%;
    border: 1px solid rgba(255, 122, 24, 0.32);
    background: rgba(255, 122, 24, 0.08);
    color: #ffd38a;
    border-radius: 16px;
    padding: 13px 16px;
    font-weight: 900;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.two-factor-open-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 122, 24, 0.62);
    background: rgba(255, 122, 24, 0.14);
    box-shadow: 0 12px 28px rgba(255, 122, 24, 0.13);
}

@media (max-width: 640px) {
    .btn-soft-calc {
        padding: 9px 13px;
        font-size: 12px;
    }
}

/* FIX: кнопка калькулятора в шапке — только текст, без фона/рамки */
.landing-page header .nav-buttons .btn-soft-calc,
.landing-page header .nav-buttons button.btn-soft-calc,
.landing-page header .nav-buttons .btn.btn-soft-calc {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 4px 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    line-height: 1.2 !important;
}

.landing-page header .nav-buttons .btn-soft-calc:hover,
.landing-page header .nav-buttons button.btn-soft-calc:hover,
.landing-page header .nav-buttons .btn.btn-soft-calc:hover {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #ff9b45 !important;
    transform: translateY(-1px) !important;
    text-shadow: 0 0 18px rgba(255, 122, 24, 0.34) !important;
}

.landing-page header .nav-buttons .btn-soft-calc:focus,
.landing-page header .nav-buttons .btn-soft-calc:focus-visible {
    outline: 0 !important;
    box-shadow: none !important;
}

/* Form age notice refinement */
.age-confirm-note {
    margin: 8px 0 0;
    color: rgba(170, 170, 170, 0.28);
    font-size: 10px;
    line-height: 1.35;
    font-weight: 500;
}

.age-confirm-note:hover {
    color: rgba(170, 170, 170, 0.38);
}

.landing-page .form-wrapper {
    padding-bottom: 20px !important;
}

@media (max-width: 640px) {
    .landing-page .form-wrapper {
        padding-bottom: 18px !important;
    }
}


/* Footer / Legal pages */
.site-footer {
    position: relative;
    z-index: 2;
    padding: 34px 28px 38px;
    background: linear-gradient(180deg, rgba(8,8,9,0.98), #060606);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.site-footer-inner {
    max-width: 1508px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 34px;
}

.site-footer-brand {
    max-width: 560px;
}

.site-footer-brand .logo {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 18px;
    letter-spacing: 3px;
}

.site-footer-brand p {
    margin: 0;
    color: rgba(255,255,255,0.42);
    font-size: 13px;
    line-height: 1.65;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px 22px;
    max-width: 620px;
}

.site-footer-links a {
    color: rgba(255,255,255,0.62);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color .18s ease, text-shadow .18s ease;
}

.site-footer-links a:hover {
    color: #ff8a24;
    text-shadow: 0 0 18px rgba(255,122,24,0.28);
}

.legal-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 22% 18%, rgba(255,122,24,0.12), transparent 34%),
        linear-gradient(180deg, #070707 0%, #0c0c0d 100%);
    color: #fff;
}

.legal-page header {
    position: sticky;
    top: 0;
    z-index: 10;
}

.legal-section {
    max-width: 980px;
    margin: 0 auto;
    padding: 140px 24px 70px;
}

.legal-card {
    padding: clamp(28px, 4vw, 54px);
    background: rgba(22,22,24,0.78);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0,0,0,0.42);
    backdrop-filter: blur(16px);
}

.legal-card h1 {
    margin: 0 0 18px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.legal-card h2 {
    margin: 30px 0 12px;
    color: #ff9a32;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.legal-card p,
.legal-card li {
    color: rgba(255,255,255,0.68);
    font-size: 15px;
    line-height: 1.72;
}

.legal-card ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

.legal-card a {
    color: #ffb866;
    text-decoration: none;
}

.legal-note {
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(255,138,36,0.22);
    background: rgba(255,122,24,0.08);
    color: rgba(255,255,255,0.74);
    border-radius: 18px;
}

@media (max-width: 760px) {
    .site-footer-inner {
        flex-direction: column;
    }

    .site-footer-links {
        justify-content: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .legal-section {
        padding-top: 120px;
    }
}

/* Telegram account linking in the model dashboard */
.dashboard-sidebar-column {
    position: sticky;
    top: 94px;
    min-width: 0;
}

.dashboard-sidebar-column .dashboard-sidebar {
    position: relative;
    top: auto;
}

.telegram-link-card {
    margin-top: 12px;
}

.telegram-link-button {
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #fff;
    text-align: left;
    border: 1px solid rgba(79, 194, 255, 0.46);
    border-radius: 18px;
    background:
        radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.22), transparent 35%),
        linear-gradient(135deg, #168dcc 0%, #25a8e8 100%);
    box-shadow: 0 14px 34px rgba(25, 151, 214, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.telegram-link-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 18px 38px rgba(25, 151, 214, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.telegram-link-button:focus-visible {
    outline: 3px solid rgba(79, 194, 255, 0.34);
    outline-offset: 3px;
}

.telegram-link-button:disabled {
    cursor: wait;
    filter: saturate(0.65);
    opacity: 0.78;
    transform: none;
}

.telegram-link-button.is-linked {
    border-color: rgba(56, 224, 133, 0.42);
    background:
        radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.16), transparent 35%),
        linear-gradient(135deg, rgba(14, 103, 86, 0.96), rgba(22, 154, 119, 0.96));
    box-shadow: 0 14px 34px rgba(21, 151, 113, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.telegram-link-card-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #1597d5;
    background: #fff;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.18);
    font-size: 15px;
}

.telegram-link-button.is-linked .telegram-link-card-icon {
    color: #159b74;
}

.telegram-link-button-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.telegram-link-button-copy strong {
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.telegram-link-button-copy small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.76);
    font-size: 10px;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.telegram-link-arrow {
    color: rgba(255, 255, 255, 0.72);
    font-size: 26px;
    line-height: 1;
}

.telegram-link-status {
    min-height: 0;
    margin: 7px 6px 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    line-height: 1.35;
}

.telegram-link-status:empty {
    display: none;
}

.telegram-link-status.is-success {
    color: #38dc85;
}

.telegram-link-status.is-error {
    color: #ff8585;
}

@media (max-width: 980px) {
    .dashboard-sidebar-column {
        position: static;
    }

    .telegram-link-card {
        max-width: 360px;
    }
}

@media (max-width: 700px) {
    .telegram-link-card {
        max-width: none;
    }
}

/* Dedicated Telegram Mini App entry */
.miniapp-entry-page {
    min-height: var(--tg-viewport-stable-height, 100dvh);
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% -10%, rgba(35, 166, 229, 0.18), transparent 34%),
        radial-gradient(circle at 90% 82%, rgba(255, 122, 24, 0.11), transparent 28%),
        linear-gradient(180deg, #08080a 0%, #0d0d11 100%);
}

.miniapp-entry {
    width: min(100%, 480px);
    min-height: var(--tg-viewport-stable-height, 100dvh);
    margin: 0 auto;
    padding:
        calc(28px + env(safe-area-inset-top))
        18px
        calc(22px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 24px;
}

.miniapp-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 2.2px;
}

.miniapp-auth-card {
    width: 100%;
    align-self: center;
    padding: 30px 22px 26px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 28px;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
        rgba(15, 15, 19, 0.92);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(22px);
}

.miniapp-auth-visual {
    position: relative;
    width: 78px;
    height: 78px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
}

.miniapp-auth-icon {
    position: relative;
    z-index: 2;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #159bd8;
    background: #fff;
    box-shadow: 0 14px 36px rgba(31, 164, 225, 0.24);
    font-size: 22px;
    font-weight: 900;
}

.miniapp-auth-spinner {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(37, 168, 232, 0.16);
    border-top-color: #25a8e8;
    border-radius: 50%;
    animation: miniapp-auth-spin 0.9s linear infinite;
}

.miniapp-auth-card:not([data-state="loading"]) .miniapp-auth-spinner {
    display: none;
}

.miniapp-auth-card[data-state="success"] .miniapp-auth-icon {
    color: #fff;
    background: linear-gradient(135deg, #20c982, #129b72);
    box-shadow: 0 14px 36px rgba(32, 201, 130, 0.24);
}

.miniapp-auth-card[data-state="unlinked"] .miniapp-auth-icon,
.miniapp-auth-card[data-state="unavailable"] .miniapp-auth-icon,
.miniapp-auth-card[data-state="error"] .miniapp-auth-icon {
    color: #111;
    background: linear-gradient(135deg, #ffd36f, #ff8a24);
    box-shadow: 0 14px 36px rgba(255, 138, 36, 0.22);
}

.miniapp-auth-kicker {
    margin-bottom: 8px;
    color: #ffab55;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.45px;
    text-transform: uppercase;
}

.miniapp-auth-card h1 {
    margin: 0 0 12px;
    font-size: clamp(25px, 8vw, 34px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.miniapp-auth-card > p:last-of-type {
    max-width: 340px;
    margin: 0 auto;
    color: rgba(247, 244, 238, 0.60);
    font-size: 14px;
    line-height: 1.58;
}

.miniapp-auth-retry {
    width: 100%;
    min-height: 50px;
    margin-top: 22px;
    padding: 12px 18px;
    border: 0;
    border-radius: 16px;
    color: #111;
    background: linear-gradient(135deg, #ffd36f, #ff8a24);
    box-shadow: 0 14px 34px rgba(255, 122, 24, 0.20);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.miniapp-entry-note {
    max-width: 360px;
    margin: 0 auto;
    color: rgba(247, 244, 238, 0.38);
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
}

@keyframes miniapp-auth-spin {
    to { transform: rotate(360deg); }
}

/* Mobile portal layout inside Telegram WebView */
html.telegram-mini-app {
    min-height: var(--tg-viewport-stable-height, 100dvh);
    background: #08080a;
    overscroll-behavior: none;
}

body.telegram-mini-app {
    min-height: var(--tg-viewport-height, 100dvh);
    padding-bottom: env(safe-area-inset-bottom);
    overscroll-behavior-y: contain;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

body.telegram-mini-app * {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

body.telegram-mini-app input,
body.telegram-mini-app textarea,
body.telegram-mini-app [contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

body.telegram-mini-app img,
body.telegram-mini-app a {
    -webkit-user-drag: none;
    user-drag: none;
}

body.telegram-mini-app input,
body.telegram-mini-app select,
body.telegram-mini-app textarea {
    font-size: 16px;
}

body.telegram-mini-app .dashboard-header {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: 58px;
    padding: 9px 12px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    background: rgba(8, 8, 10, 0.92) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
}

body.telegram-mini-app .dashboard-header .logo {
    min-width: 0;
    flex: 1;
    gap: 5px;
    overflow: hidden;
    font-size: 13px;
    letter-spacing: 1.35px;
    white-space: nowrap;
}

body.telegram-mini-app .dashboard-header-actions {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 5px;
}

body.telegram-mini-app .header-assistant-btn,
body.telegram-mini-app .dashboard-header-actions > .btn-outline {
    display: none;
}

body.telegram-mini-app .language-flags {
    gap: 4px;
    padding: 0;
}

body.telegram-mini-app .language-flag {
    width: 31px;
    height: 31px;
}

body.telegram-mini-app .language-flag::before {
    width: 20px;
    height: 20px;
}

body.telegram-mini-app .dashboard-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px 12px calc(24px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.telegram-mini-app .dashboard-sidebar-column {
    position: static;
    width: 100%;
}

body.telegram-mini-app .dashboard-sidebar {
    position: static;
    width: 100%;
    min-height: 0;
    padding: 5px;
    border-radius: 18px !important;
}

body.telegram-mini-app .dashboard-sidebar .sidebar-kicker,
body.telegram-mini-app .dashboard-sidebar h2 {
    display: none;
}

body.telegram-mini-app .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
}

body.telegram-mini-app .sidebar-link {
    min-width: 0;
    min-height: 42px;
    padding: 7px 4px;
    justify-content: center;
    border-radius: 13px;
    font-size: clamp(9px, 2.7vw, 11px);
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

body.telegram-mini-app .sidebar-link:hover {
    transform: none;
}

body.telegram-mini-app .sidebar-dot {
    display: none;
}

body.telegram-mini-app .telegram-link-card {
    display: none;
}

body.telegram-mini-app .dashboard-content,
body.telegram-mini-app .dashboard-content-grid,
body.telegram-mini-app .dashboard-side-panel {
    width: 100%;
    min-width: 0;
    display: block;
}

body.telegram-mini-app .dashboard-side-panel {
    margin-top: 12px;
}

body.telegram-mini-app .dashboard-side-panel > * + * {
    margin-top: 12px;
}

body.telegram-mini-app .profile-card,
body.telegram-mini-app .payment-details-card {
    width: 100%;
    margin-bottom: 12px;
    padding: 16px !important;
    border-radius: 21px !important;
}

body.telegram-mini-app .profile-title-row {
    flex-direction: column;
    gap: 10px;
}

body.telegram-mini-app .profile-card h1 {
    overflow-wrap: anywhere;
    font-size: clamp(23px, 7vw, 30px);
    line-height: 1.08;
}

body.telegram-mini-app .profile-kicker {
    font-size: 9px;
    letter-spacing: 1.15px;
}

body.telegram-mini-app .status-badge {
    align-self: flex-start;
    max-width: 100%;
    padding: 7px 11px;
    font-size: 10px;
    white-space: normal;
}

body.telegram-mini-app .profile-overview {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 16px;
}

body.telegram-mini-app .profile-overview.has-profile-photo {
    grid-template-columns: clamp(156px, 47vw, 180px) minmax(0, 1fr);
    align-items: start;
}

body.telegram-mini-app .profile-photo-wrap {
    width: clamp(156px, 47vw, 180px);
    max-width: 180px;
}

body.telegram-mini-app .profile-photo {
    width: 100%;
    max-width: 180px;
    height: clamp(200px, 60vw, 230px);
    max-height: 230px;
    object-fit: cover;
    border-radius: 18px;
}

body.telegram-mini-app .profile-photo-arrow {
    width: 28px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #ffd36f;
    font-size: 32px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
    backdrop-filter: none;
}

body.telegram-mini-app .profile-photo-arrow-prev {
    left: 0;
}

body.telegram-mini-app .profile-photo-arrow-next {
    right: 0;
}

body.telegram-mini-app .profile-photo-arrow:hover,
body.telegram-mini-app .profile-photo-arrow:active {
    border: 0;
    background: transparent;
    color: #fff1ba;
}

body.telegram-mini-app .profile-photo-carousel:not(.has-multiple) .profile-photo-arrow {
    display: none;
}

body.telegram-mini-app .profile-params-card {
    width: 100%;
    min-width: 0;
    height: clamp(200px, 60vw, 230px);
    padding: 8px !important;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
}

body.telegram-mini-app .profile-params-kicker {
    margin-bottom: 10px;
    font-size: 10px;
}

body.telegram-mini-app .profile-params-toggle {
    min-height: 22px;
    margin-bottom: 6px;
    padding: 0;
    color: rgba(247, 244, 238, 0.58);
    font-size: 7.5px;
    line-height: 1.1;
    letter-spacing: 0.45px;
    cursor: default;
}

body.telegram-mini-app .profile-params-toggle:focus-visible {
    outline: none;
}

body.telegram-mini-app .profile-params-chevron {
    display: none;
}

body.telegram-mini-app .profile-params-grid {
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
    overflow: hidden;
    opacity: 1;
    transition: none;
}

body.telegram-mini-app .profile-params-card[data-collapsed="true"] .profile-params-toggle {
    height: 30px;
    min-height: 30px;
    margin-bottom: 0;
    padding: 0 2px;
    line-height: 1;
}

body.telegram-mini-app .profile-params-card[data-collapsed="true"] {
    min-height: 32px;
    padding: 0 12px !important;
    border-radius: 14px !important;
}

body.telegram-mini-app .profile-params-card[data-collapsed="true"] .profile-params-grid {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

body.telegram-mini-app .profile-params-card[data-collapsed="false"] .profile-params-chevron {
    transform: rotate(225deg);
}

body.telegram-mini-app .profile-params-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 4px;
}

body.telegram-mini-app .profile-param-mini {
    min-width: 0;
    min-height: 0;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 9px;
}

body.telegram-mini-app .profile-param-mini span {
    margin-bottom: 2px;
    overflow-wrap: anywhere;
    font-size: 6.5px;
    line-height: 1.15;
    letter-spacing: 0.25px;
}

body.telegram-mini-app .profile-param-mini strong {
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.05;
}

body.telegram-mini-app .profile-section-title {
    margin-top: 18px;
    font-size: 15px;
}

body.telegram-mini-app .param-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.telegram-mini-app .param-item {
    padding: 14px 10px;
}

body.telegram-mini-app .param-item .val {
    font-size: 20px;
}

body.telegram-mini-app .social-current {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
}

body.telegram-mini-app .collaboration-terms-card,
body.telegram-mini-app .payment-details-card {
    padding: 18px !important;
}

body.telegram-mini-app .payment-title {
    font-size: 21px;
}

body.telegram-mini-app .payment-subtitle {
    font-size: 12px;
}

body.telegram-mini-app .schedule-card-header,
body.telegram-mini-app .payouts-card-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

body.telegram-mini-app .schedule-month-control {
    width: 100%;
    min-width: 0;
}

body.telegram-mini-app .schedule-summary,
body.telegram-mini-app .payouts-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

body.telegram-mini-app .schedule-summary div,
body.telegram-mini-app .payouts-summary div {
    min-width: 0;
    padding: 10px 7px;
    border-radius: 13px;
}

body.telegram-mini-app .schedule-summary span,
body.telegram-mini-app .payouts-summary span {
    font-size: 8px;
    letter-spacing: 0.45px;
}

body.telegram-mini-app .schedule-summary strong,
body.telegram-mini-app .payouts-summary strong {
    font-size: 17px;
}

body.telegram-mini-app .schedule-view-wrap,
body.telegram-mini-app .payouts-table-wrap {
    max-width: 100%;
    border-radius: 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

body.telegram-mini-app .schedule-view-table {
    min-width: 590px;
}

body.telegram-mini-app .payouts-table {
    min-width: 540px;
}

body.telegram-mini-app .schedule-view-table th,
body.telegram-mini-app .schedule-view-table td,
body.telegram-mini-app .payouts-table th,
body.telegram-mini-app .payouts-table td {
    padding: 10px;
}

body.telegram-mini-app .social-edit-dialog,
body.telegram-mini-app .modal-card {
    width: calc(100% - 24px);
    max-height: calc(var(--tg-viewport-height, 100dvh) - 24px);
    overflow-y: auto;
}

body.telegram-mini-app #meetings {
    scroll-margin-top: 76px;
}

@media (max-width: 360px) {
    .miniapp-entry {
        padding-left: 12px;
        padding-right: 12px;
    }

    body.telegram-mini-app .dashboard-shell {
        padding-left: 8px;
        padding-right: 8px;
    }

    body.telegram-mini-app .dashboard-header .logo {
        font-size: 12px;
        letter-spacing: 1px;
    }

    body.telegram-mini-app .language-flag {
        width: 29px;
        height: 29px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .miniapp-auth-spinner {
        animation-duration: 1.8s;
    }
}

/* Context icons for the Telegram bottom navigation */
.mobile-nav-icon {
    display: none;
}

body.telegram-mini-app .dashboard-sidebar-column {
    display: contents;
}

body.telegram-mini-app .dashboard-shell {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

body.telegram-mini-app .dashboard-sidebar {
    position: fixed;
    z-index: 1300;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: calc(8px + env(safe-area-inset-bottom));
    width: auto;
    height: auto;
    max-height: 64px;
    min-height: 0;
    padding: 6px;
    border-radius: 20px !important;
    background: rgba(14, 14, 17, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px) saturate(1.18);
}

body.telegram-mini-app .sidebar-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

body.telegram-mini-app .sidebar-link {
    position: relative;
    min-height: 48px;
    padding: 8px;
    color: rgba(247, 244, 238, 0.52);
    border-radius: 15px;
    touch-action: manipulation;
}

body.telegram-mini-app .sidebar-link.active,
body.telegram-mini-app .sidebar-link:active {
    color: #ffad52;
    border-color: rgba(255, 138, 36, 0.30);
    background: rgba(255, 122, 24, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px rgba(255, 122, 24, 0.10);
}

body.telegram-mini-app .sidebar-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.telegram-mini-app .mobile-nav-icon {
    position: relative;
    width: 24px;
    height: 24px;
    display: block;
    flex: 0 0 24px;
    color: currentColor;
}

.mobile-nav-icon-schedule {
    border: 2px solid currentColor;
    border-radius: 5px;
}

.mobile-nav-icon-schedule::before {
    content: '';
    position: absolute;
    left: 3px;
    right: 3px;
    top: 5px;
    border-top: 2px solid currentColor;
}

.mobile-nav-icon-schedule::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 4px;
    width: 3px;
    height: 3px;
    border-radius: 1px;
    background: currentColor;
    box-shadow: 6px 0 currentColor, 12px 0 currentColor, 0 6px currentColor, 6px 6px currentColor, 12px 6px currentColor;
}

.mobile-nav-icon-meetings {
    background:
        radial-gradient(circle at 7px 6px, currentColor 0 3px, transparent 3.5px),
        radial-gradient(circle at 17px 6px, currentColor 0 3px, transparent 3.5px),
        radial-gradient(ellipse at 7px 18px, currentColor 0 5px, transparent 5.5px),
        radial-gradient(ellipse at 17px 18px, currentColor 0 5px, transparent 5.5px);
}

.mobile-nav-icon-payouts {
    height: 19px !important;
    margin-top: 2px;
    border: 2px solid currentColor;
    border-radius: 5px;
}

.mobile-nav-icon-payouts::before {
    content: '';
    position: absolute;
    left: 3px;
    right: 3px;
    top: 4px;
    border-top: 2px solid currentColor;
    opacity: 0.78;
}

.mobile-nav-icon-payouts::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 7px;
    width: 8px;
    height: 6px;
    border: 2px solid currentColor;
    border-radius: 3px;
    background: #151518;
}

.mobile-nav-icon-fines {
    width: 24px;
    height: 22px !important;
    margin-top: 1px;
    background: currentColor;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.mobile-nav-icon-fines::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 7px;
    width: 2px;
    height: 7px;
    border-radius: 2px;
    background: #151518;
}

.mobile-nav-icon-fines::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 16px;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #151518;
}

@media (max-width: 360px) {
    body.telegram-mini-app .dashboard-sidebar {
        left: 8px;
        right: 8px;
        bottom: calc(6px + env(safe-area-inset-bottom));
    }
}

/* Compact centered Mini App header and model title */
body.telegram-mini-app .dashboard-header {
    min-height: 46px;
    padding: 6px 10px;
    justify-content: center;
}

body.telegram-mini-app .dashboard-header .logo {
    position: absolute;
    left: 50%;
    max-width: calc(100% - 104px);
    flex: 0 1 auto;
    justify-content: center;
    font-size: 14px;
    letter-spacing: 1.25px;
    transform: translateX(-50%);
}

body.telegram-mini-app .dashboard-header-actions {
    position: absolute;
    right: 10px;
    margin: 0;
}

body.telegram-mini-app .dashboard-shell {
    padding-top: 4px;
}

body.telegram-mini-app #modelName {
    font-family: "Roboto Local", Roboto, Arial, sans-serif;
    font-size: clamp(19px, 5.2vw, 21px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

@media (max-width: 360px) {
    body.telegram-mini-app .dashboard-header .logo {
        max-width: calc(100% - 96px);
        font-size: 12.5px;
        letter-spacing: 1px;
    }

    body.telegram-mini-app #modelName {
        font-size: 19px;
    }
}
