:root {
    --navy: #07111f;
    --navy-2: #0b1c32;
    --navy-3: #0c3458;
    --brand: #0ea5e9;
    --brand-2: #2563eb;
    --cyan: #67e8f9;
    --ink: #0f172a;
    --soft: #475569;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-soft: #eef2f7;
    --surface: #f4f7fb;
    --white: #fff;
    --danger: #b91c1c;
    --success: #15803d;
    --warning: #b45309;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

button,
input,
select,
textarea {
    font: inherit;
}

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

.icon {
    flex: none;
}

.panel-body {
    min-height: 100vh;
    background: var(--surface);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

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

/* Sidebar ----------------------------------------------------------------- */
.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    padding: 22px 16px;
    color: #cbd5e1;
    background: linear-gradient(180deg, #07111f 0%, #0a1c32 55%, #0b2440 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 40;
}

.side-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 6px 20px;
    color: #fff;
}

.side-logo {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #22d3ee, #0ea5e9 45%, #4f46e5);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.04em;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}

.side-brand-text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: #e2e8f0;
}

.side-brand-text strong {
    font-weight: 800;
    color: var(--cyan);
}

.side-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
}

.avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(34, 211, 238, 0.15);
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
}

.side-user-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.3;
}

.side-user-text strong {
    overflow: hidden;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-user-text small {
    color: #94a3b8;
    font-size: 10.5px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 10px 11px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.side-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.side-link.is-active {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.22), rgba(79, 70, 229, 0.14));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.24);
}

.side-link.is-active .icon {
    color: var(--cyan);
}

.side-link-quiet {
    color: #94a3b8;
    font-size: 12.5px;
}

.side-link-quiet:hover {
    color: #fff;
}

.side-foot {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 18px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.side-logout {
    margin: 0;
}

/* Main -------------------------------------------------------------------- */
.panel-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.topbar-title {
    min-width: 0;
    flex: 1;
}

.eyebrow {
    margin: 0 0 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow.light {
    color: #7dd3fc;
}

.topbar h1 {
    margin: 0;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

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

.topbar-search {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 220px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.topbar-search:focus-within {
    border-color: rgba(14, 165, 233, 0.45);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.topbar-search input {
    min-width: 0;
    flex: 1;
    padding: 5px 7px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 11.5px;
}

.topbar-search input::placeholder {
    color: #94a3b8;
}

.topbar-search button {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.topbar-search button:hover {
    background: #e8eef7;
    color: var(--brand);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font-size: 18px;
    cursor: pointer;
}

.content {
    width: 100%;
    max-width: 1400px;
    flex: 1;
    padding: 28px 32px 48px;
    margin: 0 auto;
}

.panel-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    max-width: 1400px;
    width: 100%;
    padding: 0 32px 26px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 11.5px;
}

.panel-footer a {
    color: var(--brand-2);
    font-weight: 700;
}

/* Stats and cards --------------------------------------------------------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.stat-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}

.stat-label {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stat-value {
    margin-top: 6px;
    color: var(--ink);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.stat-meta {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 11.5px;
}

.card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.card + .card {
    margin-top: 20px;
}

.card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line-soft);
}

.card-head h2,
.card-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.card-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.card-body {
    padding: 20px;
}

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

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

/* Tables ------------------------------------------------------------------ */
.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 13.5px;
}

.table th {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line-soft);
    background: #fbfdff;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.table td {
    padding: 13px 14px;
    border-top: 1px solid var(--line-soft);
    vertical-align: middle;
}

.table tbody tr:hover td {
    background: #f8fbfe;
}

.table .strong {
    color: var(--ink);
    font-weight: 700;
}

.table .sub {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11.5px;
}

.table .num {
    text-align: right;
    white-space: nowrap;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    white-space: nowrap;
}

/* Badges ------------------------------------------------------------------ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-new {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-in_progress,
.badge-pending {
    background: #fef3c7;
    color: #a16207;
}

.badge-resolved,
.badge-active,
.badge-confirmed,
.badge-provisioned {
    background: #dcfce7;
    color: #15803d;
}

.badge-spam,
.badge-cancelled,
.badge-suspended {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-refunded {
    background: #ede9fe;
    color: #6d28d9;
}

/* Buttons ----------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff;
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.22);
}

.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.btn-ghost {
    border-color: #dbe3ee;
    background: #fff;
    color: #334155;
}

.btn-ghost:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.btn-danger {
    border-color: #fecaca;
    background: #fff;
    color: var(--danger);
}

.btn-danger:hover {
    background: #fef2f2;
}

.btn-sm {
    padding: 7px 11px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Forms ------------------------------------------------------------------- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.field label {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font-size: 13.5px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea {
    min-height: 110px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.field .hint {
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.5;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--soft);
    font-size: 12.5px;
    line-height: 1.5;
}

.check input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--brand);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 9px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line-soft);
    background: #fbfdff;
}

.filters .field {
    min-width: 145px;
}

.filters .field label {
    font-size: 10px;
}

.filters .grow {
    min-width: 220px;
    flex: 1;
}

.filters .btn {
    margin-bottom: 1px;
}

/* Alerts ------------------------------------------------------------------ */
.alert {
    padding: 12px 15px;
    margin-bottom: 18px;
    border: 1px solid;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 600;
}

.alert-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: var(--success);
}

.alert-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: var(--danger);
}

.alert-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: var(--warning);
}

.alert-info {
    border-color: #bae6fd;
    background: #f0f9ff;
    color: #0369a1;
}

/* Empty state, pager, details -------------------------------------------- */
.empty {
    padding: 42px 20px;
    text-align: center;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 12px;
    border-radius: 13px;
    background: #e0f2fe;
    color: #0284c7;
}

.empty h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
}

.empty p {
    max-width: 420px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 12.5px;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding: 15px 20px;
    border-top: 1px solid var(--line-soft);
}

.pager a,
.pager span {
    display: inline-flex;
    min-width: 31px;
    height: 31px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--soft);
    font-size: 12px;
    font-weight: 700;
}

.pager a:hover {
    border-color: #bae6fd;
    color: #0369a1;
}

.pager .is-current {
    border-color: #0ea5e9;
    background: #0ea5e9;
    color: #fff;
}

.detail-list {
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    margin: 0;
    border-top: 1px solid var(--line-soft);
}

.detail-list dt,
.detail-list dd {
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
    margin: 0;
    font-size: 13px;
}

.detail-list dt {
    color: var(--muted);
    font-weight: 600;
}

.detail-list dd {
    color: var(--ink);
    font-weight: 600;
}

.message-box {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdff;
    color: #334155;
    font-size: 13.5px;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Account hero ------------------------------------------------------------ */
.hero-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    margin-bottom: 22px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0b1f38, #0c3458 58%, #0e4a6e);
    color: #fff;
    box-shadow: 0 18px 40px rgba(8, 30, 55, 0.22);
}

.hero-card::after {
    position: absolute;
    top: -110px;
    right: -60px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.28), transparent 65%);
    content: "";
    pointer-events: none;
}

.hero-card h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-card p {
    position: relative;
    z-index: 1;
    max-width: 690px;
    margin: 8px 0 0;
    color: #cbd5e1;
    font-size: 13.5px;
    line-height: 1.65;
}

.hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.hero-actions .btn-ghost {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.hero-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.hero-stat {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.075);
}

.hero-stat span {
    display: block;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-stat strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Dashboard extras ------------------------------------------------------- */
.dashboard-grid {
    align-items: stretch;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.chart-key {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 3px;
}

.chart-key-enquiry {
    background: #0ea5e9;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.55);
}

.chart-key-order {
    background: #6366f1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.45);
}

.chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 190px;
    padding: 8px 2px 0;
    border-bottom: 1px solid var(--line-soft);
}

.chart-column {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    height: 100%;
}

.chart-stack {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    width: 100%;
    height: 150px;
}

.chart-bar {
    flex: 1;
    min-height: 0;
    border-radius: 5px 5px 2px 2px;
    transition: height 0.5s ease, filter 0.2s ease;
}

.chart-bar-enquiry {
    background: linear-gradient(180deg, #67e8f9, #0ea5e9);
    box-shadow: 0 0 14px -4px rgba(14, 165, 233, 0.7);
}

.chart-bar-order {
    background: linear-gradient(180deg, #a5b4fc, #4f46e5);
    box-shadow: 0 0 14px -4px rgba(79, 70, 229, 0.55);
}

.chart-column:hover .chart-bar {
    filter: brightness(1.16);
}

.chart-label {
    max-width: 100%;
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.chart-foot {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.attention-list {
    display: grid;
    gap: 7px;
}

.attention-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 11px;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.attention-row:hover {
    background: #f8fbff;
    border-color: #cfe2f5;
    transform: translateX(2px);
}

.attention-icon {
    display: grid;
    flex: none;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
}

.attention-icon .icon {
    width: 15px;
    height: 15px;
}

.attention-amber {
    background: #fef3c7;
    color: #b45309;
}

.attention-blue {
    background: #e0f2fe;
    color: #0369a1;
}

.attention-rose {
    background: #ffe4e6;
    color: #be123c;
}

.attention-slate {
    background: #eef2f7;
    color: #475569;
}

.attention-text {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    line-height: 1.35;
}

.attention-text strong {
    color: var(--ink);
    font-size: 12.5px;
}

.attention-text small {
    color: var(--muted);
    font-size: 10.5px;
}

.attention-count {
    min-width: 24px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.attention-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--line-soft);
}

.activity-list {
    display: grid;
}

.activity-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 18px;
    border-top: 1px solid var(--line-soft);
}

.activity-row:first-child {
    border-top: 0;
}

.activity-dot {
    flex: none;
    width: 7px;
    height: 7px;
    margin-top: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.activity-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    line-height: 1.4;
}

.activity-copy strong {
    color: var(--ink);
    font-size: 12.5px;
}

.activity-copy span {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-row time {
    flex: none;
    color: var(--muted);
    font-size: 10.5px;
    white-space: nowrap;
}

.stat-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.stat-card::before {
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    content: "";
    opacity: 0;
    transition: opacity 0.22s ease;
}

.stat-card:hover {
    border-color: #cfe2f5;
    box-shadow: 0 16px 34px -20px rgba(11, 36, 64, 0.35);
    transform: translateY(-2px);
}

.stat-card:hover::before {
    opacity: 1;
}

.table tbody tr {
    transition: background 0.16s ease;
}

/* Onboarding -------------------------------------------------------------- */
.onboarding-card .card-body {
    padding-top: 16px;
}

.onboarding-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 5px 10px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.08);
    color: #0369a1;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 0 24px -10px rgba(14, 165, 233, 0.7);
}

.progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef7;
}

.progress-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22d3ee, #0ea5e9 55%, #4f46e5);
    box-shadow: 0 0 18px rgba(14, 165, 233, 0.45);
    transition: width 0.45s ease;
}

.checklist {
    display: grid;
    gap: 7px;
    margin-top: 14px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 11px;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.checklist-item:hover {
    background: #f8fbff;
    border-color: #cfe2f5;
    transform: translateX(2px);
}

.checklist-mark {
    display: grid;
    flex: none;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #dbe6f2;
    border-radius: 9px;
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.checklist-mark .icon {
    width: 14px;
    height: 14px;
}

.checklist-item.is-done .checklist-mark {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}

.checklist-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 1px;
    line-height: 1.4;
}

.checklist-copy strong {
    color: var(--ink);
    font-size: 12.5px;
}

.checklist-copy small {
    color: var(--muted);
    font-size: 10.5px;
}

.checklist-item.is-done .checklist-copy strong {
    color: #475569;
}

.checklist-arrow {
    color: #94a3b8;
    font-size: 13px;
    transition: transform 0.18s ease, color 0.18s ease;
}

.checklist-item:hover .checklist-arrow {
    color: var(--brand);
    transform: translateX(2px);
}

/* Auth -------------------------------------------------------------------- */
.auth-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(900px 600px at 15% 10%, rgba(14, 165, 233, 0.22), transparent 60%),
        radial-gradient(700px 500px at 90% 90%, rgba(79, 70, 229, 0.25), transparent 60%),
        #07111f;
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    width: min(1100px, 100%);
    min-height: 670px;
    overflow: hidden;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.5);
}

.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 38px;
    background: linear-gradient(160deg, #07111f, #0b2544 60%, #0c3458);
    color: #fff;
}

.auth-brand::before {
    position: absolute;
    top: -160px;
    left: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3), transparent 65%);
    content: "";
}

.auth-brand .side-brand {
    position: relative;
    z-index: 1;
    padding: 0;
}

.auth-copy {
    position: relative;
    z-index: 1;
    margin: 40px 0;
}

.auth-copy h1 {
    margin: 8px 0 0;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.auth-copy h1 span {
    color: var(--cyan);
}

.auth-copy p {
    max-width: 390px;
    margin: 16px 0 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.7;
}

.auth-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 24px 0 0;
    color: #e2e8f0;
    font-size: 12.5px;
    list-style: none;
}

.auth-list li {
    display: flex;
    align-items: center;
    gap: 9px;
}

.auth-list .icon {
    color: var(--cyan);
}

.auth-foot {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #94a3b8;
    font-size: 11px;
}

.auth-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 38px;
}

.auth-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 24px;
    border-radius: 11px;
    background: #f1f5f9;
}

.auth-tabs a {
    flex: 1;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.auth-tabs a.is-active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.auth-title {
    margin: 0;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.auth-sub {
    margin: 7px 0 22px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.auth-card .field {
    margin-bottom: 14px;
}

.auth-card .btn {
    width: 100%;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 12px;
}

.auth-links a {
    color: var(--brand-2);
    font-weight: 700;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-note {
    padding: 11px 13px;
    margin-top: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.55;
}

/* Utilities --------------------------------------------------------------- */
.muted {
    color: var(--muted);
}

.small {
    font-size: 12px;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.nowrap {
    white-space: nowrap;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 6px;
}

.mt-2 {
    margin-top: 12px;
}

.mt-3 {
    margin-top: 18px;
}

.mb-0 {
    margin-bottom: 0;
}

.between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.inline-form {
    display: inline;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1100px) {
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .auth-brand {
        display: none;
    }

    .auth-card {
        padding: 32px;
    }
}

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

    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 270px;
        height: 100vh;
        transform: translateX(-105%);
        transition: transform 0.24s ease;
    }

    .sidebar.is-open {
        transform: none;
        box-shadow: 20px 0 50px rgba(2, 6, 23, 0.35);
    }

    .menu-btn {
        display: grid;
    }

    .topbar {
        padding: 14px 18px;
    }

    .topbar-search {
        width: 165px;
    }

    .content {
        padding: 20px 18px 40px;
    }

    .panel-footer {
        padding: 0 18px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 720px) {
    .grid-2,
    .grid-3,
    .form-grid,
    .stat-grid,
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .topbar h1 {
        font-size: 19px;
    }

    .topbar-search {
        display: none;
    }

    .topbar-actions .btn-ghost {
        display: none;
    }

    .topbar-actions .btn {
        padding: 8px 10px;
        font-size: 11.5px;
    }

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

    .detail-list dt {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .detail-list dd {
        padding-top: 2px;
    }

    .filters {
        align-items: stretch;
    }

    .filters .field,
    .filters .grow {
        min-width: 100%;
    }

    .panel-footer {
        flex-direction: column;
        gap: 4px;
    }

    .chart {
        gap: 2px;
        height: 160px;
    }

    .chart-stack {
        height: 118px;
    }

    .chart-label {
        font-size: 8px;
    }

    .activity-row {
        flex-wrap: wrap;
    }

    .activity-row time {
        width: 100%;
        margin-left: 18px;
    }

    .attention-actions .btn {
        flex: 1;
    }
}

@media (max-width: 520px) {
    .auth-body {
        padding: 12px;
    }

    .auth-card {
        padding: 24px 18px;
    }

    .auth-title {
        font-size: 24px;
    }

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

    .hero-card {
        padding: 20px;
    }

    .hero-card h2 {
        font-size: 21px;
    }
}
