:root {
    --bg: #f6f7fb;
    --panel: #ffffff;
    --ink: #121826;
    --muted: #657085;
    --line: #e6e9f1;
    --accent: #1f6feb;
    --accent-dark: #1553b7;
    --success: #117a4a;
    --danger: #b42318;
    --shadow: 0 18px 45px rgba(18, 24, 38, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.app-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 26px 20px;
    background: #0f172a;
    color: #dbe6ff;
}

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

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: #94a3b8;
    margin-top: 2px;
}

.nav-group {
    display: grid;
    gap: 7px;
}

.nav-group a {
    border-radius: 8px;
    color: #cbd5e1;
    padding: 11px 12px;
}

.nav-group a:hover,
.nav-group a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.workspace {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 34px;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.topbar h1 {
    margin: 2px 0 0;
    font-size: 24px;
}

.eyebrow {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

.user-chip {
    color: var(--muted);
    font-size: 14px;
}

.content {
    width: min(1180px, calc(100% - 48px));
    margin: 28px auto;
    flex: 1;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 34px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
    min-height: 470px;
    padding: 54px;
    border-radius: 12px;
    background:
        radial-gradient(circle at top right, rgba(31, 111, 235, 0.18), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #edf4ff 100%);
    box-shadow: var(--shadow);
}

.hero h2 {
    margin: 0;
    font-size: clamp(38px, 5vw, 70px);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 620px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.hero-visual {
    min-height: 330px;
    border-radius: 12px;
    background:
        linear-gradient(140deg, rgba(15, 23, 42, 0.88), rgba(31, 111, 235, 0.72)),
        repeating-linear-gradient(90deg, transparent 0 28px, rgba(255, 255, 255, 0.16) 29px 30px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

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

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

.card,
.table-wrap,
.form-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.card {
    padding: 22px;
}

.card h3 {
    margin: 0 0 8px;
}

.card p {
    color: var(--muted);
    line-height: 1.6;
}

.metric {
    font-size: 32px;
    font-weight: 800;
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    padding: 0 16px;
}

.button:hover {
    background: var(--accent-dark);
}

.button.ghost {
    background: #eef4ff;
    color: var(--accent);
}

.button.danger {
    background: var(--danger);
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 30px 0 14px;
}

.section-title h2 {
    margin: 0;
}

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

.product-card {
    display: flex;
    flex-direction: column;
    min-height: 270px;
}

.product-thumb {
    min-height: 130px;
    border-radius: 8px;
    background: linear-gradient(135deg, #dceaff, #ffffff);
    border: 1px solid var(--line);
    margin-bottom: 16px;
}

.price {
    color: var(--accent);
    font-weight: 900;
    font-size: 20px;
}

.form-panel {
    max-width: 560px;
    margin: 0 auto;
    padding: 28px;
}

.field {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

.field label {
    color: #344054;
    font-weight: 800;
    font-size: 14px;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    font: inherit;
}

.alert {
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 13px 15px;
    font-weight: 700;
}

.alert.success {
    color: var(--success);
    background: #eaf8f0;
}

.alert.error {
    color: var(--danger);
    background: #fff1f0;
}

.table-wrap {
    overflow: auto;
}

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

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}

th {
    color: #475467;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    padding: 5px 10px;
}

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

    .sidebar {
        position: static;
        height: auto;
    }

    .topbar,
    .footer,
    .section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .content {
        width: min(100% - 28px, 1180px);
    }

    .hero,
    .grid,
    .grid.two {
        grid-template-columns: 1fr;
    }
}
.public-layout {
    display: block;
    min-height: 100vh;
}

.public-layout .workspace {
    width: 100%;
    min-width: 0;
}

.public-layout .topbar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 16px 5%;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.topbar-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-right: auto;
}

.topbar-menu a {
    color: #667085;
    font-weight: 600;
    text-decoration: none;
}

.topbar-menu a:hover,
.topbar-menu a.active {
    color: #4f46e5;
}

.public-layout .content {
    width: 100%;
    max-width: none;
}

@media (max-width: 768px) {
    .public-layout .topbar {
        flex-wrap: wrap;
    }

    .topbar-menu {
        order: 3;
        width: 100%;
        overflow-x: auto;
    }

    .user-chip {
        display: none;
    }
}