/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:          #2c3e50;
    --bg-card:     rgba(255,255,255,0.12);
    --bg-card-h:   rgba(255,255,255,0.18);
    --border:      rgba(255,255,255,0.15);
    --text:        #ffffff;
    --text-muted:  rgba(255,255,255,0.7);
    --accent:      linear-gradient(135deg, #2196f3 0%, #00bcd4 50%, #4caf50 100%);
    --accent-red:  linear-gradient(135deg, #f44336 0%, #ff5722 40%, #ff9800 70%, #ffc107 100%);
    --radius:      12px;
    --shadow:      0 8px 25px rgba(0,0,0,0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ===== LANDING PAGE ===== */
.landing { font-family: 'Inter', 'Segoe UI', sans-serif; }

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    overflow: hidden;
}
.hero__bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 40%, transparent 100%);
}
.hero__content { position: relative; text-align: center; max-width: 720px; }
.hero__badge {
    display: inline-block;
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64b5f6;
    background: rgba(33,150,243,0.12);
    border: 1px solid rgba(33,150,243,0.25);
    border-radius: 20px;
    padding: 5px 18px;
    margin-bottom: 28px;
}
.hero__title {
    font-size: clamp(3em, 8vw, 5.5em);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 20px;
}
.hero__title--accent {
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__subtitle {
    font-size: 1.15em;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 560px;
    margin: 0 auto 28px;
}
.hero__privacy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82em;
    color: rgba(76,175,80,0.9);
    background: rgba(76,175,80,0.08);
    border: 1px solid rgba(76,175,80,0.2);
    border-radius: 20px;
    padding: 7px 18px;
    margin-bottom: 36px;
}
.hero__privacy svg { flex-shrink: 0; color: rgba(76,175,80,0.7); }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-cta {
    padding: 14px 36px;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-cta:hover { transform: translateY(-2px); }
.btn-cta--primary { background: linear-gradient(135deg, #2196f3, #00bcd4); color: #fff; box-shadow: 0 4px 20px rgba(33,150,243,0.35); }
.btn-cta--primary:hover { box-shadow: 0 8px 30px rgba(33,150,243,0.5); }
.btn-cta--ghost { background: rgba(255,255,255,0.08); border: 1px solid var(--border); color: var(--text); }
.btn-cta--ghost:hover { background: rgba(255,255,255,0.14); }
.hero__user {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.92em;
    color: var(--text-muted);
}
.hero__user-sep { opacity: 0.4; }
.hero__logout {
    font-size: 0.82em;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.15);
    margin-left: 8px;
    transition: all 0.2s;
}
.hero__logout:hover { color: #ef9a9a; border-color: rgba(244,67,54,0.4); }

/* ── Section common ── */
.section-title {
    font-size: 2em;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05em;
    margin-bottom: 48px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Features ── */
.features { padding: 80px 24px; max-width: 1100px; margin: 0 auto; }
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.features__grid--narrow { max-width: 400px; margin-left: auto; margin-right: auto; }
.fcard {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 32px 28px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.fcard:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border-color: rgba(33,150,243,0.3);
}
.fcard--compact { flex-direction: row; align-items: center; gap: 16px; padding: 20px 24px; }
.fcard__icon-wrap {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fcard__icon-wrap--blue   { background: rgba(33,150,243,0.15); color: #64b5f6; }
.fcard__icon-wrap--amber  { background: rgba(255,193,7,0.15); color: #ffd54f; }
.fcard__icon-wrap--green  { background: rgba(76,175,80,0.15); color: #81c784; }
.fcard__icon-wrap--red    { background: rgba(244,67,54,0.15); color: #ef9a9a; }
.fcard__title { font-size: 1.2em; font-weight: 700; }
.fcard__desc { color: var(--text-muted); font-size: 0.9em; line-height: 1.55; }
.fcard__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.tag {
    font-size: 0.72em;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.08);
}

/* ── Advantages ── */
.advantages { padding: 80px 24px; max-width: 900px; margin: 0 auto; }
.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}
.adv { text-align: center; }
.adv__num {
    font-size: 2.2em;
    font-weight: 900;
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}
.adv__title { font-size: 1.1em; font-weight: 700; margin-bottom: 8px; }
.adv__desc { font-size: 0.88em; color: var(--text-muted); line-height: 1.55; }

/* ── Team ── */
.team { padding: 80px 24px; max-width: 900px; margin: 0 auto; }
.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}
.team-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
}
.team-card__avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2196f3, #00bcd4);
    color: #fff;
    font-size: 1.3em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.team-card__name { font-size: 1.1em; font-weight: 700; margin-bottom: 14px; }
.team-card__roles { display: flex; flex-direction: column; gap: 5px; }
.team-card__role {
    font-size: 0.82em;
    color: var(--text-muted);
    line-height: 1.4;
}
.team-card__role--primary { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.team-card__role--accent { color: rgba(100,181,246,0.85); font-size: 0.78em; }

/* ── Footer ── */
.landing-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 48px 24px 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.footer__cols {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}
.footer__logo {
    font-size: 1.4em;
    font-weight: 800;
}
.footer__logo span {
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer__tagline { font-size: 0.85em; color: var(--text-muted); margin-top: 8px; }
.footer__col-title { font-size: 0.82em; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; color: var(--text-muted); }
.footer__text { font-size: 0.82em; color: rgba(255,255,255,0.5); line-height: 1.6; }
.footer__link { display: block; font-size: 0.82em; color: rgba(100,181,246,0.8); text-decoration: none; line-height: 1.8; transition: color 0.2s; }
.footer__link:hover { color: #90caf9; }
.footer__bottom { text-align: center; font-size: 0.78em; color: rgba(255,255,255,0.3); padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); }

@media (max-width: 700px) {
    .footer__cols { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .team__grid { grid-template-columns: 1fr; }
    .features__grid { grid-template-columns: 1fr; }
}

/* ── Hub pages (vpr, vsosh) ── */
.hub-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px 40px;
    overflow: hidden;
}
.hub-hero__content { position: relative; text-align: center; max-width: 780px; width: 100%; }
.hub-hero__title {
    font-size: clamp(2.5em, 6vw, 4em);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 12px;
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hub-back {
    display: inline-block;
    font-size: 0.88em;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 32px;
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}
.hub-back:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.features__grid--narrow-2 { max-width: 640px; margin: 36px auto 0; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .features__grid--narrow-2 { grid-template-columns: 1fr; } }

/* ── Mini footer (inner pages) ── */
.mini-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 24px;
}
.mini-footer__inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.mini-footer__brand {
    font-size: 1.05em;
    font-weight: 800;
    color: var(--text);
}
.mini-footer__brand span {
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mini-footer__link {
    font-size: 0.82em;
    color: rgba(100,181,246,0.8);
    text-decoration: none;
    transition: color 0.2s;
}
.mini-footer__link:hover { color: #90caf9; }
@media (max-width: 500px) {
    .mini-footer__inner { justify-content: center; text-align: center; }
}

/* ── Legacy compat (used by inner pages) ── */
.privacy-note {
    background: rgba(76,175,80,0.15);
    border: 1px solid rgba(76,175,80,0.3);
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.85em;
    color: rgba(255,255,255,0.8);
}

/* ===== INNER PAGES LAYOUT ===== */
.page-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 30px 60px;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
}

.back-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.back-btn:hover { background: var(--bg-card-h); }

.page-title {
    font-size: 1.9em;
    font-weight: 700;
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== TWO-COLUMN LAYOUT ===== */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

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

/* ===== CARD ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.9);
}

/* ===== FORM ELEMENTS ===== */
label.field-label {
    display: block;
    font-size: 0.85em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.file-drop {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
    font-size: 0.9em;
    position: relative;
}
.file-drop:hover, .file-drop.dragover {
    border-color: #2196f3;
    background: rgba(33,150,243,0.08);
    color: var(--text);
}
.file-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.file-drop .drop-icon { font-size: 1.8em; margin-bottom: 6px; }
.file-drop .drop-hint { font-size: 0.8em; margin-top: 4px; }

.file-list {
    margin-top: 10px;
    font-size: 0.82em;
    color: var(--text-muted);
    max-height: 100px;
    overflow-y: auto;
    text-align: left;
}
.file-list span { display: block; padding: 2px 0; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(33,150,243,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(33,150,243,0.4); }

.btn-run {
    background: var(--accent-red);
    color: #fff;
    width: 100%;
    font-size: 1.1em;
    padding: 14px;
    box-shadow: 0 4px 15px rgba(244,67,54,0.3);
}
.btn-run:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(244,67,54,0.4); }
.btn-run:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-download {
    background: rgba(76,175,80,0.2);
    border: 1px solid rgba(76,175,80,0.4);
    color: #81c784;
    width: 100%;
    margin-bottom: 10px;
    justify-content: flex-start;
}
.btn-download:hover { background: rgba(76,175,80,0.3); }

/* ===== STATUS ===== */
.status-message {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9em;
    display: none;
}
.status-message.info    { display:block; background:rgba(33,150,243,0.15); color:#90caf9; }
.status-message.success { display:block; background:rgba(76,175,80,0.15);  color:#a5d6a7; }
.status-message.error   { display:block; background:rgba(244,67,54,0.15);  color:#ef9a9a; }

/* ===== RESULTS SECTION ===== */
.results-section { display: none; }
.results-section.visible { display: block; }

/* ===== SIDEBAR (instruction) ===== */
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 20px;
}

.sidebar-card h3 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 16px;
}

.sidebar-card ol {
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 0.88em;
    line-height: 1.7;
}

.sidebar-card li { margin-bottom: 8px; }

.privacy-badge {
    margin-top: 20px;
    background: rgba(76,175,80,0.12);
    border: 1px solid rgba(76,175,80,0.25);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.8em;
    color: #a5d6a7;
    line-height: 1.4;
}

/* ===== SKIPPED FILES ===== */
.skipped-box {
    background: rgba(255,152,0,0.1);
    border: 1px solid rgba(255,152,0,0.3);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.82em;
    color: #ffcc80;
    white-space: pre-wrap;
    margin-top: 10px;
    display: none;
}
.skipped-box.visible { display: block; }

/* ===== AUTH PAGES ===== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 30px 16px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    padding: 44px 40px 36px;
    width: 100%;
    max-width: 420px;
}

.auth-card--wide { max-width: 520px; }

.auth-logo {
    display: block;
    font-size: 1.5em;
    font-weight: 800;
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 18px;
    text-align: center;
    text-decoration: none;
}

.auth-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.5;
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }

.auth-label { font-size: 0.85em; color: var(--text-muted); font-weight: 500; }

.auth-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1em;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.auth-input:focus { outline: none; border-color: #2196f3; }
.auth-input::placeholder { color: rgba(255,255,255,0.3); }

.auth-input--code {
    font-size: 1.6em;
    letter-spacing: 0.3em;
    text-align: center;
    font-weight: 700;
}

.auth-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #2196f3, #00bcd4);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 4px;
}
.auth-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.auth-btn--max {
    background: linear-gradient(135deg, #5c6bc0, #3949ab);
    margin-top: 20px;
}

.auth-error {
    background: rgba(244,67,54,0.15);
    border: 1px solid rgba(244,67,54,0.4);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.88em;
    color: #ef9a9a;
    margin-bottom: 4px;
}

.auth-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0 16px;
}

.auth-hint {
    text-align: center;
    font-size: 0.88em;
    color: var(--text-muted);
}

.auth-link { color: #90caf9; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

/* ── Шаги регистрации ── */
.reg-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.reg-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.reg-step__num {
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2196f3, #00bcd4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    font-weight: 700;
    flex-shrink: 0;
}

.reg-step__text {
    font-size: 0.9em;
    color: var(--text-muted);
    padding-top: 5px;
    line-height: 1.5;
}

.reg-consent-note {
    background: rgba(76,175,80,0.1);
    border: 1px solid rgba(76,175,80,0.3);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85em;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    margin-bottom: 4px;
}

.reg-pending {
    background: rgba(255,152,0,0.1);
    border: 1px solid rgba(255,152,0,0.35);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 0.88em;
    color: #ffcc80;
    line-height: 1.5;
    margin-top: 20px;
    text-align: center;
}

/* ── Auth page buttons (used on auth forms) ── */
.auth-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 32px;
}
.btn-auth {
    padding: 13px 36px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}
.btn-auth:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-auth--primary { background: linear-gradient(135deg, #2196f3, #00bcd4); color: #fff; }
.btn-auth--secondary { background: rgba(255,255,255,0.12); border: 1px solid var(--border); color: var(--text); }

/* ── Поля формы регистрации ── */
.field { display: flex; flex-direction: column; gap: 5px; }
.req { color: #ef5350; }

.auth-input--err { border-color: rgba(244,67,54,0.6) !important; }
.field-err { font-size: 0.78em; color: #ef9a9a; margin-top: 2px; }

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85em;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
    margin-top: 4px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: border-color 0.2s;
}
.consent-label--err { border-color: rgba(244,67,54,0.4); }
.consent-check {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #2196f3;
    width: 16px;
    height: 16px;
}

/* ── Шаги после регистрации ── */
.done-steps { display: flex; flex-direction: column; gap: 14px; margin: 20px 0 4px; }
.done-step { display: flex; align-items: flex-start; gap: 14px; }
.done-step__num {
    min-width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, #2196f3, #00bcd4);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85em; font-weight: 700; flex-shrink: 0;
}
.done-step__text {
    font-size: 0.9em; color: var(--text-muted);
    padding-top: 4px; line-height: 1.5;
}

/* ── Секции формы регистрации ── */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
}

.form-section__title {
    font-size: 0.78em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.45);
    margin-bottom: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

.field-hint {
    font-size: 0.78em;
    color: rgba(255,255,255,0.35);
    margin-top: 2px;
}

/* ── Обёртка согласия ── */
.consent-box {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 4px;
    transition: border-color 0.2s;
}
.consent-box--err { border-color: rgba(244,67,54,0.4); }

/* ── Таймер повторного кода ── */
.code-retry {
    text-align: center;
    margin-top: 18px;
    min-height: 22px;
}

.code-retry__timer {
    font-size: 0.85em;
    color: var(--text-muted);
}

.code-retry__link {
    font-size: 0.85em;
    color: #90caf9;
    text-decoration: none;
}
.code-retry__link:hover { text-decoration: underline; }

/* ── Галочка «готово» ── */
.done-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 16px rgba(76,175,80,0.35);
}

/* ── Кнопка бота ── */
.auth-btn--bot {
    background: linear-gradient(135deg, #5c6bc0, #3949ab);
    margin-top: 20px;
}

/* ── Подвал auth-карточки ── */
.auth-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.88em;
}

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

.auth-footer__link {
    color: #90caf9;
    text-decoration: none;
    margin-left: 4px;
}
.auth-footer__link:hover { text-decoration: underline; }

/* ── QR-блок ── */
.qr-block {
    margin-top: 24px;
    text-align: center;
}

.qr-block__hint {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.qr-block__code {
    display: inline-block;
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    line-height: 0;
}

.qr-block__code svg {
    width: 180px;
    height: 180px;
}

/* ===== ADMIN PANEL ===== */
.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}

.admin-tab {
    padding: 10px 22px;
    border-radius: 8px 8px 0 0;
    font-size: 0.92em;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-bottom: none;
    transition: background 0.2s;
}
.admin-tab:hover { background: rgba(255,255,255,0.1); }
.admin-tab--active {
    color: var(--text);
    background: var(--bg-card);
}

.admin-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88em;
}

.admin-table th {
    text-align: left;
    padding: 12px 14px;
    font-weight: 600;
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.5);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted);
    vertical-align: top;
}

.admin-table tbody tr:hover {
    background: rgba(255,255,255,0.04);
}

.admin-table .cell-name { color: var(--text); font-weight: 500; white-space: nowrap; }
.admin-table .cell-mono { font-family: monospace; font-size: 0.92em; }
.admin-table .cell-date { white-space: nowrap; font-size: 0.85em; }
.admin-table .cell-comment {
    max-width: 320px;
    font-size: 0.82em;
    word-break: break-word;
    color: rgba(255,255,255,0.55);
}

.row--dim { opacity: 0.55; }

/* ── Бейджи ── */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78em;
    font-weight: 600;
    white-space: nowrap;
}
.badge--ok {
    background: rgba(76,175,80,0.2);
    color: #81c784;
    border: 1px solid rgba(76,175,80,0.35);
}
.badge--warn {
    background: rgba(255,152,0,0.2);
    color: #ffcc80;
    border: 1px solid rgba(255,152,0,0.35);
}
.badge--err {
    background: rgba(244,67,54,0.2);
    color: #ef9a9a;
    border: 1px solid rgba(244,67,54,0.35);
}
.badge--admin {
    background: rgba(33,150,243,0.2);
    color: #90caf9;
    border: 1px solid rgba(33,150,243,0.35);
}
.badge--action {
    background: rgba(156,39,176,0.15);
    color: #ce93d8;
    border: 1px solid rgba(156,39,176,0.3);
}

.admin-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    font-size: 0.95em;
}

/* ── Пагинация ── */
.admin-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.admin-pager__link {
    color: #90caf9;
    text-decoration: none;
    font-size: 0.9em;
}
.admin-pager__link:hover { text-decoration: underline; }

.admin-pager__info {
    font-size: 0.85em;
    color: var(--text-muted);
}

/* ── Рассылка ── */
.bc-preview {
    margin-top: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.bc-preview__label {
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
}

.bc-preview__text {
    font-size: 0.92em;
    color: var(--text);
    white-space: pre-wrap;
    line-height: 1.5;
}

.bc-warn {
    color: #ffcc80;
    font-size: 0.92em;
    margin-bottom: 10px;
}

.bc-timer {
    font-size: 0.88em;
    color: var(--text-muted);
    margin-bottom: 12px;
    min-height: 22px;
}

.bc-btn--danger {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #f44336, #ff5722);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.bc-btn--danger:hover { opacity: 0.9; }
.bc-btn--danger:disabled { opacity: 0.4; cursor: not-allowed; }

.bc-btn--cancel {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.88em;
    cursor: pointer;
    transition: border-color 0.2s;
}
.bc-btn--cancel:hover { border-color: rgba(255,255,255,0.4); color: var(--text); }
