:root {
    --bg: #050816;
    --bg-deep: #03050f;
    --bg-soft: #0b1020;

    --card: rgba(12, 18, 35, 0.74);
    --card-strong: rgba(14, 22, 40, 0.88);

    --text: #f5f7ff;
    --muted: #97a0b8;
    --muted-soft: #727c96;

    --line: rgba(255,255,255,0.08);
    --line-strong: rgba(120,255,225,0.16);

    --accent: #4cf2c2;
    --accent-2: #6be7ff;
    --accent-soft: rgba(76,242,194,0.14);

    --danger: #ff6b8a;
    --warning: #ffd36b;

    --radius-sm: 16px;
    --radius-md: 22px;
    --radius-lg: 30px;
    --radius-xl: 38px;

    --shadow: 0 28px 90px rgba(0,0,0,0.42);
    --shadow-soft: 0 14px 45px rgba(0,0,0,0.28);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(circle at 55% 0%, rgba(76,242,194,0.10), transparent 32%),
        radial-gradient(circle at 8% 75%, rgba(60,160,255,0.06), transparent 30%),
        var(--bg);

    color: var(--text);
}

body::selection {
    background: rgba(76,242,194,0.32);
    color: var(--text);
}

#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

main {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
}

/* HEADER */

.site-header {
    width: min(1320px, calc(100% - 48px));
    height: 92px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;

    font-size: 15px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.brand-mark {
    width: 12px;
    height: 12px;
    border-radius: 999px;

    background: var(--accent);

    box-shadow:
        0 0 20px rgba(76,242,194,0.9),
        0 0 42px rgba(76,242,194,0.25);
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    position: relative;

    color: var(--muted);
    font-size: 14px;
    font-weight: 500;

    transition:
        color .25s ease,
        opacity .25s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;

    height: 1px;

    background: var(--accent);

    opacity: 0;

    transition:
        right .25s ease,
        opacity .25s ease;
}

.nav a:hover {
    color: var(--text);
}

.nav a:hover::after {
    right: 0;
    opacity: 1;
}

/* COMMON */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;

    margin-bottom: 22px;
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;

    border-radius: 999px;

    background: var(--accent);

    box-shadow: 0 0 18px rgba(76,242,194,0.85);
}

.btn {
    height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 28px;

    border: 0;
    border-radius: 18px;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        color .25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background:
        linear-gradient(135deg, #4cf2c2, #62f5d4);

    color: #04120e;

    box-shadow:
        0 0 36px rgba(76,242,194,0.25),
        inset 0 1px 0 rgba(255,255,255,0.36);
}

.btn-primary:hover {
    box-shadow:
        0 0 55px rgba(76,242,194,0.38),
        inset 0 1px 0 rgba(255,255,255,0.42);
}

.btn-secondary {
    border: 1px solid var(--line);

    color: var(--text);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.018)
        );

    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    border-color: rgba(76,242,194,0.24);
    background: rgba(76,242,194,0.055);
}

/* HERO */

.hero {
    min-height: calc(100vh - 92px);

    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 64px;
    align-items: center;
}

.hero-content {
    max-width: 760px;
}

.hero h1 {
    margin-bottom: 28px;

    font-size: clamp(52px, 7vw, 96px);
    line-height: .95;
    letter-spacing: -0.06em;
}

.hero-text {
    max-width: 640px;

    color: var(--muted);

    font-size: 18px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-top: 42px;
}

/* HERO RIGHT PREMIUM CONSOLE */

.hero-panel {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.studio-console {
    position: relative;

    width: 100%;
    max-width: 560px;

    padding: 30px;

    border-radius: 36px;

    background:
        linear-gradient(
            145deg,
            rgba(14, 22, 40, 0.90),
            rgba(7, 11, 24, 0.80)
        );

    border: 1px solid rgba(120, 255, 225, 0.15);

    box-shadow:
        0 34px 100px rgba(0, 0, 0, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.055);

    backdrop-filter: blur(30px);

    overflow: hidden;
}

.studio-console::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at 18% 0%, rgba(76, 242, 194, 0.18), transparent 34%),
        radial-gradient(circle at 92% 100%, rgba(60, 160, 255, 0.11), transparent 38%);

    pointer-events: none;
}

.studio-console::after {
    content: "";
    position: absolute;
    inset: 1px;

    border-radius: 35px;

    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(76, 242, 194, 0.055),
            transparent
        );

    opacity: .75;
    pointer-events: none;
}

.console-top,
.console-main,
.console-line,
.console-grid {
    position: relative;
    z-index: 2;
}

.console-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 34px;
}

.console-dots {
    display: flex;
    gap: 9px;
}

.console-dots span {
    width: 9px;
    height: 9px;

    border-radius: 999px;

    background: rgba(255,255,255,0.18);
}

.console-dots span:first-child {
    background: var(--accent);
    box-shadow: 0 0 18px rgba(76,242,194,0.8);
}

.console-status {
    display: flex;
    align-items: center;
    gap: 9px;

    color: rgba(210,255,245,0.72);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.console-status span {
    width: 7px;
    height: 7px;

    border-radius: 999px;

    background: var(--accent);

    box-shadow: 0 0 18px rgba(76,242,194,0.9);
}

.console-label {
    margin-bottom: 20px;

    color: var(--accent);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.console-main h2 {
    max-width: 460px;

    margin-bottom: 20px;

    font-size: clamp(32px, 3.2vw, 46px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.console-main p {
    max-width: 450px;

    color: var(--muted);

    font-size: 15px;
    line-height: 1.8;
}

.console-line {
    height: 1px;

    margin: 30px 0;

    background:
        linear-gradient(
            90deg,
            rgba(76,242,194,0.70),
            rgba(76,242,194,0.12),
            transparent
        );
}

.console-line span {
    display: block;

    width: 90px;
    height: 1px;

    background: var(--accent);

    box-shadow: 0 0 22px rgba(76,242,194,0.8);
}

.console-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.console-item {
    position: relative;

    min-height: 150px;

    padding: 22px;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.055),
            rgba(255,255,255,0.025)
        );

    border: 1px solid rgba(255,255,255,0.07);

    overflow: hidden;

    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease;
}

.console-item::before {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            rgba(76,242,194,0.8),
            transparent
        );

    opacity: .45;
}

.console-item:hover {
    transform: translateY(-3px);

    border-color: rgba(76,242,194,0.22);

    background:
        linear-gradient(
            145deg,
            rgba(76,242,194,0.075),
            rgba(255,255,255,0.028)
        );
}

.console-item span {
    display: inline-flex;

    margin-bottom: 18px;

    color: rgba(76,242,194,0.76);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: .16em;
}

.console-item strong {
    display: block;

    margin-bottom: 10px;

    color: var(--text);

    font-size: 15px;
    line-height: 1.3;
}

.console-item p {
    color: var(--muted);

    font-size: 13px;
    line-height: 1.65;
}

/* SECTIONS */

.section,
.page-section {
    padding: 120px 0;
}

.section-head {
    margin-bottom: 54px;
}

.section-head h2,
.page-section h1 {
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.card {
    padding: 34px;

    border-radius: var(--radius-lg);

    background: var(--card);

    border: 1px solid var(--line);

    backdrop-filter: blur(20px);

    box-shadow: var(--shadow-soft);

    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease;
}

.card:hover {
    transform: translateY(-4px);

    border-color: rgba(76,242,194,0.24);

    background: rgba(14,22,40,0.78);
}

.card h3 {
    margin-bottom: 18px;

    font-size: 26px;
    letter-spacing: -0.03em;
}

.card p {
    color: var(--muted);
    line-height: 1.8;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.step {
    padding: 28px;

    border-radius: 24px;

    background: rgba(255,255,255,0.03);

    border: 1px solid var(--line);
}

.step span {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--accent);

    font-size: 13px;
    font-weight: 900;
    letter-spacing: .18em;
}

.step h3 {
    margin-bottom: 14px;
}

.step p {
    color: var(--muted);
    line-height: 1.7;
}

.cta-section {
    margin-bottom: 120px;

    padding: 52px;

    border-radius: 36px;

    background:
        linear-gradient(
            135deg,
            rgba(76,242,194,0.08),
            rgba(255,255,255,0.02)
        );

    border: 1px solid var(--line);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cta-section h2 {
    margin-bottom: 16px;

    font-size: clamp(34px, 4vw, 52px);
    letter-spacing: -0.04em;
}

.cta-section p {
    color: var(--muted);
}

/* FORMS */

.form-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 48px;
}

.form-card,
.auth-card {
    padding: 38px;

    border-radius: 32px;

    background:
        linear-gradient(
            145deg,
            rgba(14,22,40,0.88),
            rgba(7,11,24,0.78)
        );

    border: 1px solid rgba(120,255,225,0.12);

    backdrop-filter: blur(24px);

    box-shadow: var(--shadow);
}

.form-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-card label {
    display: flex;
    flex-direction: column;
    gap: 12px;

    color: var(--muted);

    font-size: 14px;
    font-weight: 500;
}

input,
textarea,
select {
    width: 100%;

    border: 1px solid rgba(255,255,255,0.08);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.022)
        );

    color: var(--text);

    border-radius: 18px;

    padding: 16px 18px;

    outline: none;

    font-size: 15px;
    font-weight: 600;

    transition:
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

input::placeholder,
textarea::placeholder {
    color: rgba(151,160,184,0.58);
    font-weight: 500;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(76,242,194,0.48);

    background:
        linear-gradient(
            145deg,
            rgba(76,242,194,0.055),
            rgba(255,255,255,0.025)
        );

    box-shadow:
        0 0 0 4px rgba(76,242,194,0.06),
        0 0 28px rgba(76,242,194,0.08);
}

textarea {
    min-height: 160px;
    resize: vertical;
}

/* NORMAL SELECT, NO WHITE WINDOWS DROPDOWN STYLE AS MUCH AS BROWSER ALLOWS */

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding-right: 54px;

    cursor: pointer;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.022)
        ),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='none'%3E%3Cpath d='M6 8.5L11 13.5L16 8.5' stroke='%2397A0B8' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 18px center;
}

select option {
    background: #0b1020;
    color: #f5f7ff;
}

select option:checked {
    background: #122034;
    color: #4cf2c2;
}

/* AUTH */

.auth-section {
    min-height: calc(100vh - 92px);

    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    width: 100%;
    max-width: 520px;
}

/* FLASH */

.flash-wrap {
    position: fixed;
    top: 110px;
    right: 24px;

    display: flex;
    flex-direction: column;
    gap: 12px;

    z-index: 1000;
}

.flash {
    min-width: 320px;

    padding: 16px 20px;

    border-radius: 18px;

    background: rgba(12,18,35,0.94);

    border: 1px solid rgba(76,242,194,0.18);

    backdrop-filter: blur(20px);

    color: var(--text);

    box-shadow: var(--shadow-soft);
}

/* ADMIN */

.admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 38px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;

    margin-bottom: 42px;
}

.stat-card {
    position: relative;

    padding: 32px;

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(14,22,40,0.88),
            rgba(7,11,24,0.76)
        );

    border: 1px solid rgba(120,255,225,0.12);

    box-shadow: var(--shadow-soft);

    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(76,242,194,0.12),
            transparent 34%
        );

    pointer-events: none;
}

.stat-card span,
.stat-card strong {
    position: relative;
    z-index: 2;
}

.stat-card span {
    color: var(--muted);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;

    margin-top: 18px;

    font-size: 52px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.admin-block {
    padding: 34px;

    border-radius: 32px;

    background:
        linear-gradient(
            145deg,
            rgba(14,22,40,0.88),
            rgba(7,11,24,0.76)
        );

    border: 1px solid rgba(120,255,225,0.12);

    box-shadow: var(--shadow-soft);
}

.admin-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 28px;
}

.admin-block-head h2 {
    font-size: 28px;
    letter-spacing: -0.03em;
}

.admin-block-head a {
    color: var(--accent);

    font-size: 14px;
    font-weight: 800;
}

.lead-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lead-item {
    padding: 20px;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.02)
        );

    border: 1px solid rgba(255,255,255,0.06);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.lead-item h3 {
    margin-bottom: 6px;

    font-size: 17px;
}

.lead-item p {
    color: var(--muted);

    font-size: 14px;
}

.status {
    flex: 0 0 auto;

    padding: 10px 14px;

    border-radius: 999px;

    background: rgba(76,242,194,0.12);

    color: var(--accent);

    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.leads-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.lead-card {
    padding: 34px;

    border-radius: 32px;

    background:
        linear-gradient(
            145deg,
            rgba(14,22,40,0.88),
            rgba(7,11,24,0.76)
        );

    border: 1px solid rgba(120,255,225,0.12);

    box-shadow: var(--shadow-soft);
}

.lead-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 24px;
}

.lead-card-head h2 {
    margin-bottom: 8px;

    font-size: 26px;
    letter-spacing: -0.03em;
}

.lead-card-head p {
    color: var(--muted);
}

.lead-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 24px;
}

.lead-meta span {
    padding: 10px 13px;

    border-radius: 999px;

    background: rgba(255,255,255,0.035);

    border: 1px solid rgba(255,255,255,0.055);

    color: var(--muted);

    font-size: 13px;
}

.lead-message {
    margin-bottom: 26px;

    color: rgba(245,247,255,0.88);

    line-height: 1.9;
}

.status-form {
    display: flex;
    align-items: center;
    gap: 14px;
}

.status-form select {
    max-width: 240px;
}

.muted {
    color: var(--muted);
}

/* SCROLLBAR */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #050816;
}

::-webkit-scrollbar-thumb {
    background: rgba(76,242,194,0.22);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(76,242,194,0.34);
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .hero,
    .form-layout,
    .cards-grid,
    .steps,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-panel {
        justify-content: flex-start;
    }

    .cta-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    main,
    .site-header {
        width: min(100% - 28px, 1320px);
    }

    .site-header {
        height: auto;

        padding: 24px 0;

        flex-direction: column;
        justify-content: center;
        gap: 18px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }

    .hero h1 {
        font-size: 54px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .section,
    .page-section {
        padding: 80px 0;
    }

    .cta-section,
    .form-card,
    .auth-card,
    .card,
    .lead-card,
    .admin-block,
    .studio-console {
        padding: 24px;
    }

    .console-grid {
        grid-template-columns: 1fr;
    }

    .console-item {
        min-height: auto;
    }

    .admin-head,
    .admin-block-head,
    .lead-card-head,
    .status-form {
        flex-direction: column;
        align-items: stretch;
    }

    .flash-wrap {
        left: 14px;
        right: 14px;
        top: 100px;
    }

    .flash {
        min-width: 0;
    }
}

/* LANGUAGE SWITCH */

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.lang-link {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
}

.lang-link.active,
.lang-link:hover {
    color: var(--accent);
}

.lang-divider {
    color: var(--muted-soft);
    font-size: 12px;
}

/* WIZARD */

.wizard-layout {
    align-items: start;
}

.wizard-form {
    gap: 28px;
}

.wizard-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.wizard-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.wizard-section-title {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.wizard-fallback {
    margin-top: 18px;
}

.wizard-fallback a {
    color: var(--accent);
    font-weight: 700;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-group-label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.checkbox-item input {
    width: auto;
    accent-color: var(--accent);
}

.success-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ADMIN EXTRAS */

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.lead-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.lead-filters a {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    background: rgba(255,255,255,0.03);
}

.lead-filters a.active,
.lead-filters a:hover {
    color: var(--accent);
    border-color: rgba(76,242,194,0.24);
    background: rgba(76,242,194,0.08);
}

.lead-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.detail-controls {
    margin-top: 28px;
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b8a, #ff89a0);
    color: #2b0610;
    box-shadow: 0 0 28px rgba(255,107,138,0.22);
}

.lead-card-head h2 a {
    color: inherit;
}

.lead-card-head h2 a:hover {
    color: var(--accent);
}

.brief-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin: 28px 0;
}

.brief-block {
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(14,22,40,0.88), rgba(7,11,24,0.76));
    border: 1px solid rgba(120,255,225,0.12);
    box-shadow: var(--shadow-soft);
    margin-bottom: 22px;
}

.brief-block h2 {
    margin-bottom: 16px;
    font-size: 22px;
}

.brief-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--muted);
    line-height: 1.7;
}

.brief-list strong {
    color: var(--text);
}

.brief-text,
.brief-markdown {
    color: rgba(245,247,255,0.9);
    line-height: 1.8;
    white-space: pre-wrap;
}

.brief-markdown {
    padding: 18px;
    border-radius: 18px;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.06);
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
}

@media (max-width: 768px) {
    .brief-grid {
        grid-template-columns: 1fr;
    }

    .lang-switch {
        margin-left: 0;
    }
}

.owner-layout {
    background: var(--bg);
}

.owner-layout .owner-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.owner-badge {
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(245, 247, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.owner-main {
    position: relative;
    z-index: 1;
}

.offline-page {
    min-height: 100vh;
}

.offline-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offline-card {
    max-width: 520px;
    text-align: center;
}

.pwa-install-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 20;
    max-width: 360px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: var(--card-strong);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-soft);
}

.pwa-install-text {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.pwa-install-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .pwa-install-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }

    .pwa-install-actions {
        flex-direction: column;
    }
}

.app-layout {
    background: var(--bg);
}

.app-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-main {
    position: relative;
    z-index: 1;
}

.inline-logout-form {
    display: inline;
}

.nav-button {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.nav-button:hover {
    color: var(--accent);
}

.auth-switch {
    margin-top: 18px;
}

.auth-switch a {
    color: var(--accent);
}

.chat-panel {
    margin-top: 24px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--card);
    border: 1px solid var(--line);
}

.chat-panel-head h2 {
    margin: 0 0 16px;
    font-size: 1.1rem;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-message {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--card-strong);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-message-system {
    opacity: 0.8;
    font-style: italic;
}

.chat-message-meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.chat-message-body {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
}

.chat-compose {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-compose textarea {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--card-strong);
    color: inherit;
    font: inherit;
}

.chat-error {
    margin-bottom: 12px;
    color: #ff8f8f;
}

.chat-translation-notice {
    margin: 0;
    font-size: 13px;
}

.translation-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: rgba(120, 180, 255, 0.12);
    color: #9ec5ff;
    border: 1px solid rgba(120, 180, 255, 0.25);
}

.translation-error-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: rgba(255, 143, 143, 0.12);
    color: #ff9f9f;
    border: 1px solid rgba(255, 143, 143, 0.25);
}

.message-language-meta {
    font-size: 12px;
    color: var(--muted);
}

.message-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.message-action-button {
    background: none;
    border: 1px solid var(--line);
    color: var(--accent);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}

.message-action-button:hover {
    border-color: var(--accent);
}

.push-settings-card {
    margin-top: 20px;
}

.push-status-line {
    margin: 16px 0;
}

.push-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    background: #ff6b6b;
    color: #fff;
}

.notification-badge.is-hidden {
    display: none;
}

.nav-notifications-link {
    display: inline-flex;
    align-items: center;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notification-card {
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--card);
    border: 1px solid var(--line);
}

.notification-card.unread {
    border-color: rgba(120, 180, 255, 0.45);
    background: rgba(120, 180, 255, 0.06);
}

.notification-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.notification-card-head h2 {
    margin: 0;
    font-size: 1.05rem;
}

.notification-status {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.notification-card.unread .notification-status {
    color: #9ec5ff;
}

.notification-body {
    margin: 0 0 10px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.notification-date {
    margin: 0 0 12px;
    font-size: 13px;
}

.notification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.convert-form {
    display: inline-block;
    margin-right: 12px;
}

.project-summary {
    margin-bottom: 20px;
}

.admin-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

/* START CHOICE + AI PROJECT ARCHITECT */

.start-choice-layout {
    max-width: 960px;
    margin: 0 auto;
}

.start-choice-header {
    margin-bottom: 32px;
}

.start-choice-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.start-choice-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.start-choice-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.start-choice-card h2 {
    font-size: 24px;
    letter-spacing: -0.02em;
}

.start-choice-card p {
    color: var(--muted);
    flex: 1;
}

.start-choice-card-primary {
    border-color: rgba(99, 102, 241, 0.35);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), rgba(255, 255, 255, 0.02));
}

.start-choice-badge {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

.ai-project-section {
    padding-bottom: 48px;
}

.ai-project-layout {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ai-project-header {
    max-width: 720px;
}

.ai-project-progress {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-project-progress-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.ai-project-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    transition: width 0.3s ease;
}

.ai-project-progress-label {
    font-size: 13px;
    color: var(--muted);
}

.ai-project-panels {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 20px;
    align-items: start;
}

.panel-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
}

.ai-project-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 320px;
    max-height: 52vh;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 16px;
}

.ai-project-message {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 92%;
}

.ai-project-message-user {
    align-self: flex-end;
}

.ai-project-message-assistant {
    align-self: flex-start;
}

.ai-project-message-role {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.ai-project-message-body {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    white-space: pre-wrap;
    line-height: 1.5;
}

.ai-project-message-user .ai-project-message-body {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
}

.ai-project-message-assistant .ai-project-message-body {
    background: rgba(255, 255, 255, 0.03);
}

.ai-project-input-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-project-input-form textarea {
    resize: vertical;
    min-height: 88px;
}

.ai-project-input-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ai-project-hint {
    font-size: 12px;
}

.ai-project-review-title {
    font-size: 18px;
    margin-bottom: 12px;
}

.ai-project-brief {
    max-height: 280px;
    overflow: auto;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.2);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    margin-bottom: 20px;
}

.ai-project-confirm-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ai-project-confirm-form h3 {
    font-size: 16px;
}

.ai-project-error {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.1);
    color: #fecaca;
    font-size: 14px;
}

.ai-project-fallback {
    font-size: 14px;
}

.ai-project-fallback a {
    color: var(--accent);
    font-weight: 700;
}

@media (max-width: 900px) {
    .start-choice-cards,
    .ai-project-panels {
        grid-template-columns: 1fr;
    }

    .ai-project-messages {
        max-height: 42vh;
    }
}

.site-footer {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px 40px;
    text-align: center;
}

.site-footer a {
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent);
}
