:root {
    --bg: #f3efe6;
    --paper: #fffdf8;
    --paper-strong: #fffaf1;
    --ink: #142126;
    --muted: #627178;
    --line: #d5ccbc;
    --accent: #0d6b57;
    --accent-deep: #10392e;
    --accent-soft: #dcefe8;
    --gold: #b88635;
    --warning: #b33a3a;
    --shadow: 0 24px 60px rgba(20, 33, 38, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(184, 134, 53, 0.18), transparent 26%),
        radial-gradient(circle at right, rgba(13, 107, 87, 0.14), transparent 28%),
        linear-gradient(135deg, #ebe3d4 0%, #f8f4eb 42%, #f3efe6 100%);
}

.setup-body {
    min-height: 100vh;
}

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

.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.sidebar {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(16, 57, 46, 0.98), rgba(9, 37, 29, 0.98));
    color: #eef4f1;
}

.sidebar-glow {
    position: absolute;
    inset: -80px auto auto -60px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(184, 134, 53, 0.28), transparent 65%);
    pointer-events: none;
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 36px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--gold), #8d6322);
    box-shadow: var(--shadow);
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.brand-subtitle {
    color: rgba(238, 244, 241, 0.7);
    font-size: 0.92rem;
}

.sidebar-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(238, 244, 241, 0.6);
}

.nav {
    display: grid;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.nav a {
    padding: 12px 14px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.88);
    transition: background-color 160ms ease, transform 160ms ease;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.main {
    padding: 32px;
}

.setup-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.setup-intro {
    padding: 48px;
    background: linear-gradient(180deg, rgba(16, 57, 46, 0.98), rgba(9, 37, 29, 0.98));
    color: #eef4f1;
}

.setup-intro h1 {
    margin: 24px 0 12px;
    font-size: 3rem;
    letter-spacing: -0.04em;
}

.setup-intro p {
    max-width: 640px;
    color: rgba(238, 244, 241, 0.78);
    line-height: 1.7;
}

.setup-intro .account-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #eef4f1;
}

.setup-intro .account-card strong {
    color: #ffffff;
}

.setup-intro .company-detail-list,
.setup-intro .account-card span {
    color: rgba(238, 244, 241, 0.82);
}

.setup-panel {
    display: grid;
    place-items: center;
    padding: 32px;
}

.brand-standalone {
    margin-bottom: 24px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.topbar h1 {
    margin: 6px 0 8px;
    font-size: 2.3rem;
    letter-spacing: -0.03em;
}

.topbar p {
    margin: 0;
    color: var(--muted);
}

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

.topbar-button {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(20, 33, 38, 0.1);
    background: rgba(255, 255, 255, 0.6);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-size: 0.88rem;
    font-weight: 700;
}

.badge-muted {
    background: rgba(29, 42, 47, 0.08);
    color: var(--ink);
}

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

.hero,
.panel,
.hero-metrics {
    background: rgba(255, 253, 248, 0.92);
    border: 1px solid rgba(213, 204, 188, 0.82);
    box-shadow: var(--shadow);
    border-radius: 24px;
}

.hero {
    padding: 28px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
}

.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero h2 {
    font-size: 2.5rem;
    margin: 8px 0 10px;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 720px;
    color: var(--muted);
}

.hero-metrics,
.cards,
.grid {
    display: grid;
    gap: 16px;
}

.hero-metrics {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    padding: 18px;
}

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

.panel {
    padding: 24px;
}

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

.panel-heading h2,
.panel-heading h3 {
    margin: 6px 0 0;
}

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

.panel-kicker {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.metric-card,
.account-card {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fffdf9, #fbf6ed);
    border: 1px solid var(--line);
}

.metric-card span,
.account-card-header {
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.metric-card strong,
.account-balance {
    display: block;
    margin-top: 8px;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

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

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

.table th,
.table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
}

.table th {
    color: var(--muted);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

.form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.form input,
.form button,
.form select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    font: inherit;
    background: #fff;
}

.form button,
.button-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.button-link {
    box-shadow: 0 12px 28px rgba(13, 107, 87, 0.18);
}

.code-inline {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    background: #142126;
    color: #f6f5ef;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.92rem;
}

.button-secondary {
    background: rgba(20, 33, 38, 0.07);
    color: var(--ink);
    box-shadow: none;
}

.alert {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(179, 58, 58, 0.1);
    color: var(--warning);
    margin-bottom: 16px;
}

.alert-success {
    background: rgba(13, 107, 87, 0.1);
    color: var(--accent-deep);
}

.narrow {
    max-width: 560px;
}

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

    .setup-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(29, 42, 47, 0.08);
    }

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

    .topbar {
        flex-direction: column;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
    }
}
