:root {
    --bg-base: #e8eef6;
    --bg-panel: rgba(255, 255, 255, 0.86);
    --bg-panel-strong: #f8fbff;
    --line-soft: rgba(116, 138, 166, 0.22);
    --line-strong: rgba(82, 110, 146, 0.34);
    --text-strong: #16253d;
    --text-body: #42556f;
    --text-muted: #6d7f98;
    --accent: #2a6df6;
    --accent-soft: rgba(42, 109, 246, 0.12);
    --accent-warm: #f4a339;
    --shadow-soft: 0 24px 60px rgba(27, 43, 69, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    line-height: 1.5;
    color: var(--text-body);
    background:
        radial-gradient(circle at top left, rgba(42, 109, 246, 0.18), transparent 30rem),
        radial-gradient(circle at top right, rgba(244, 163, 57, 0.12), transparent 24rem),
        linear-gradient(180deg, #f4f7fb 0%, var(--bg-base) 100%);
}

a {
    color: var(--accent);
    text-decoration: none;
}

p,
ul,
ol {
    color: var(--text-body);
}

ul,
ol {
    padding-left: 1.2rem;
}

h2,
h3,
strong {
    color: var(--text-strong);
}

.page-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 24px 56px;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: clamp(2rem, 3.2vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-strong);
}

.page-header p {
    max-width: 44rem;
    margin-top: 8px;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.page-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 255, 0.94));
    border: 1px solid var(--line-soft);
    border-radius: 28px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.page-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), transparent);
}

.grid {
    display: grid;
    gap: 18px;
}

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

.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stack {
    display: grid;
    gap: 12px;
}

button {
    border: 1px solid rgba(28, 70, 148, 0.18);
    background: linear-gradient(135deg, #2a6df6, #1948b6);
    color: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(42, 109, 246, 0.24);
}

input {
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-strong);
    padding: 12px 14px;
    border-radius: 14px;
    width: 100%;
}

pre.console {
    background: #15202b;
    color: #d2f8d2;
    padding: 18px;
    min-height: 220px;
    border-radius: 18px;
    white-space: pre-wrap;
}

.metric {
    display: grid;
    gap: 10px;
    min-height: 220px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--line-soft);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 248, 255, 0.92)),
        var(--bg-panel-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.metric__label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric strong {
    display: block;
    font-size: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.metric p {
    font-size: 0.97rem;
    color: var(--text-muted);
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    gap: 20px;
    margin-bottom: 18px;
    padding: 28px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(19, 39, 72, 0.96), rgba(35, 76, 154, 0.92)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
    color: rgba(235, 242, 255, 0.88);
    box-shadow: 0 24px 60px rgba(17, 29, 51, 0.24);
}

.dashboard-hero h2,
.dashboard-hero strong {
    color: #fff;
}

.dashboard-hero p {
    max-width: 42rem;
    color: rgba(225, 235, 255, 0.8);
}

.dashboard-hero--pending {
    background:
        linear-gradient(135deg, rgba(104, 65, 17, 0.96), rgba(183, 116, 32, 0.92)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
}

.dashboard-hero--blocked {
    background:
        linear-gradient(135deg, rgba(95, 35, 35, 0.96), rgba(152, 58, 58, 0.92)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
}

.dashboard-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dashboard-status {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-status__row {
    display: grid;
    gap: 4px;
}

.dashboard-status__row span {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(214, 226, 255, 0.7);
}

.dashboard-status__row strong {
    font-size: 1.02rem;
}

.dashboard-kpis,
.dashboard-panels {
    margin-top: 18px;
}

.dashboard-panel {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--line-soft);
    background: var(--bg-panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.dashboard-panel--accent {
    background:
        linear-gradient(180deg, rgba(244, 163, 57, 0.12), rgba(255, 255, 255, 0.92)),
        var(--bg-panel);
}

.dashboard-actions {
    display: grid;
    gap: 14px;
    align-content: start;
}

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

.dashboard-actions__hint a {
    font-weight: 700;
}

.dashboard-console {
    min-height: 160px;
}

.dashboard-panel__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-panel h3 {
    margin-bottom: 10px;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.dashboard-list {
    display: grid;
    gap: 10px;
    padding-left: 1.1rem;
}

.lead {
    font-size: 1.04rem;
    color: var(--text-body);
}

.placeholder-card,
.form-shell,
.empty-state,
.migration-details {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--line-soft);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.92)),
        var(--bg-panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.placeholder-card--glow {
    background:
        linear-gradient(135deg, rgba(42, 109, 246, 0.12), rgba(255, 255, 255, 0.96) 52%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.92));
}

.placeholder-card__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.placeholder-card h2,
.form-shell h2 {
    font-size: clamp(1.45rem, 2.5vw, 2.1rem);
    letter-spacing: -0.04em;
}

.placeholder-card h3,
.empty-state h3,
.migration-panel h3 {
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.placeholder-card p,
.empty-state p {
    margin-top: 10px;
    color: var(--text-muted);
}

.placeholder-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-left: 1.1rem;
}

.placeholder-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(82, 110, 146, 0.18);
    background: rgba(19, 39, 72, 0.05);
    color: var(--text-strong);
    font-size: 0.82rem;
    font-weight: 700;
}

label {
    display: grid;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

button {
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(42, 109, 246, 0.28);
    filter: saturate(1.04);
}

input:focus {
    outline: none;
    border-color: rgba(42, 109, 246, 0.42);
    box-shadow: 0 0 0 4px rgba(42, 109, 246, 0.14);
}

.form-shell {
    display: grid;
    gap: 18px;
}

.form-shell--narrow {
    max-width: 540px;
    margin: 0 auto;
}

.empty-state {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 100%;
    border-style: dashed;
    border-color: var(--line-strong);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(239, 246, 255, 0.88)),
        var(--bg-panel);
}

.auth-shell {
    max-width: 560px;
    margin: 0 auto;
}

.migration-panel {
    display: grid;
    gap: 18px;
}

.migration-panel h2 {
    font-size: clamp(1.5rem, 2.3vw, 2rem);
    letter-spacing: -0.04em;
}

.migration-panel .button-grid {
    margin: 0;
}

.migration-panel .button-grid button {
    width: 100%;
    text-align: left;
}

@media (max-width: 960px) {
    .two-up,
    .three-up,
    .dashboard-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page-shell {
        padding: 28px 16px 40px;
    }

    .page-card,
    .dashboard-hero,
    .metric,
    .dashboard-panel,
    .placeholder-card,
    .form-shell,
    .empty-state,
    .migration-details {
        padding: 20px;
        border-radius: 22px;
    }

    .page-header h1 {
        font-size: 2.1rem;
    }
}
