:root {
    --bg: #f2f4f7;
    --surface: rgba(255, 255, 255, 0.84);
    --surface-strong: #ffffff;
    --stroke: rgba(10, 15, 44, 0.08);
    --text: #0a0f2c;
    --muted: #5f6784;
    --navy: #0a0f2c;
    --violet: #5b2eff;
    --pink: #ff2f8e;
    --blue: #0066ff;
    --success: #0fbe74;
    --danger: #ff4a6a;
    --shadow: 0 20px 60px rgba(14, 23, 71, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --font: Inter, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(91, 46, 255, 0.16), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255, 47, 142, 0.14), transparent 24%),
        var(--bg);
    color: var(--text);
    font-family: var(--font);
}

body::before {
    content: "";
    position: fixed;
    inset: auto -10% -15% auto;
    width: 42vw;
    height: 42vw;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.12) 0%, rgba(0, 102, 255, 0) 65%);
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

.eyebrow {
    margin: 0 0 0.65rem;
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lede {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

.auth-shell,
.app-shell {
    padding: 24px;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 430px);
    gap: 24px;
    min-height: calc(100vh - 48px);
}

.auth-layout-brand {
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, 430px);
    align-items: stretch;
}

.auth-brand-stage {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 0.85fr;
    gap: 18px;
    min-height: calc(100vh - 48px);
}

.auth-panel,
.login-card,
.sidebar,
.panel,
.hero-panel,
.flash {
    backdrop-filter: blur(18px);
    background: var(--surface);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
}

.auth-panel {
    padding: 48px;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-panel::after,
.sidebar::after {
    content: "";
    position: absolute;
    right: -6%;
    bottom: -8%;
    width: 300px;
    height: 180px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 47, 142, 0.6) 0 1px, transparent 1px),
        radial-gradient(circle at 80% 60%, rgba(0, 102, 255, 0.8) 0 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.45;
    transform: perspective(500px) rotateX(55deg);
}

.auth-panel h1 {
    max-width: 14ch;
    margin: 0 0 1rem;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 0.95;
}

.brand-board {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(10, 15, 44, 0.06);
    box-shadow: var(--shadow);
}

.brand-board-hero {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    display: grid;
    align-content: space-between;
    min-height: 420px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand-mark-large {
    width: 72px;
    height: 72px;
}

.brand-lockup-copy strong {
    display: block;
    font-size: clamp(2.8rem, 4vw, 4.2rem);
    line-height: 0.9;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.brand-lockup-copy span {
    display: block;
    font-size: clamp(2rem, 2.8vw, 3rem);
    line-height: 0.95;
    color: #1b2145;
    letter-spacing: -0.05em;
}

.brand-lockup-copy em {
    font-style: normal;
    background: linear-gradient(90deg, var(--violet), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-manifesto h1 {
    margin: 0 0 16px;
    max-width: 13ch;
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.brand-manifesto h1 span {
    background: linear-gradient(90deg, var(--blue), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-manifesto p {
    max-width: 36ch;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.brand-wave {
    position: absolute;
    right: -4%;
    bottom: -6%;
    width: 48%;
    height: 180px;
    background:
        radial-gradient(circle at 10% 30%, rgba(255, 47, 142, 0.75) 0 1.4px, transparent 1.5px),
        radial-gradient(circle at 65% 70%, rgba(0, 102, 255, 0.82) 0 1.3px, transparent 1.4px);
    background-size: 11px 11px;
    opacity: 0.58;
    transform: perspective(600px) rotateX(62deg) rotateZ(-7deg);
    filter: blur(0.15px);
}

.brand-board-palette,
.brand-board-icons,
.brand-board-typography,
.brand-board-components,
.brand-board-quote {
    min-height: 188px;
}

.brand-section-head {
    margin-bottom: 16px;
}

.brand-section-head span {
    font-size: 1.02rem;
    font-weight: 700;
    color: #161d46;
}

.color-swatch-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.color-swatch {
    display: grid;
    gap: 8px;
}

.color-swatch span {
    display: block;
    width: 100%;
    height: 76px;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}

.color-swatch small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.brand-board-icons {
    display: grid;
    align-content: space-between;
}

.brand-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.brand-pills span {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(91, 46, 255, 0.18);
    background: rgba(255,255,255,0.82);
    color: #434b72;
    font-size: 0.82rem;
    font-weight: 600;
}

.brand-mini-icons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.brand-mini-icons i {
    display: block;
    aspect-ratio: 1;
    border-radius: 14px;
    border: 1.5px solid rgba(91, 46, 255, 0.22);
    background:
        radial-gradient(circle at center, rgba(91, 46, 255, 0.2) 0 2px, transparent 2.2px),
        linear-gradient(135deg, rgba(91, 46, 255, 0.08), rgba(0, 102, 255, 0.08));
}

.type-showcase {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: center;
}

.type-showcase strong {
    display: block;
    font-size: 4rem;
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.type-showcase span,
.type-showcase small {
    color: var(--muted);
}

.type-showcase h3 {
    margin: 0 0 8px;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--navy);
}

.type-showcase p {
    margin: 0 0 6px;
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--violet);
    font-weight: 700;
}

.component-preview-row {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.preview-btn {
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.88rem;
    border: 1px solid rgba(10, 15, 44, 0.08);
}

.preview-btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--violet), #7a43ff);
}

.preview-btn-secondary {
    color: var(--navy);
    background: rgba(255,255,255,0.92);
}

.component-kpi-preview {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 18px;
    align-items: center;
}

.component-kpi-preview small,
.component-kpi-preview span {
    color: var(--muted);
}

.component-kpi-preview strong {
    display: block;
    margin: 8px 0 6px;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.05em;
}

.component-line {
    height: 78px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(0, 102, 255, 0.06), rgba(0, 102, 255, 0)),
        linear-gradient(135deg, transparent 0 10%, rgba(0, 102, 255, 0.2) 10% 12%, transparent 12% 20%, rgba(91, 46, 255, 0.22) 20% 22%, transparent 22% 32%, rgba(0, 102, 255, 0.25) 32% 34%, transparent 34% 48%, rgba(91, 46, 255, 0.2) 48% 50%, transparent 50% 100%);
}

.brand-board-quote {
    display: grid;
    align-content: center;
    background: linear-gradient(135deg, #2046df, #5b2eff 48%, #ff2f8e);
    color: #fff;
}

.brand-quote-mark {
    font-size: 3.6rem;
    line-height: 1;
    opacity: 0.7;
}

.brand-board-quote p {
    margin: 0;
    max-width: 18ch;
    font-size: 1.6rem;
    line-height: 1.4;
    letter-spacing: -0.03em;
}

.auth-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.auth-feature-grid article,
.sidebar-card,
.module-card,
.highlight-card,
.feed-item,
.timeline-item,
.metric-card {
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(10, 15, 44, 0.06);
}

.auth-feature-grid article {
    padding: 18px;
}

.auth-feature-grid strong,
.login-card strong,
.brand-copy strong,
.panel h3,
.module-card strong,
.highlight-card strong,
.timeline-item strong {
    display: block;
}

.auth-feature-grid span,
.module-card p,
.highlight-card p,
.feed-item p,
.timeline-item p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.login-card {
    border-radius: var(--radius-xl);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.login-card-premium {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82)),
        rgba(255,255,255,0.82);
    display: grid;
    align-content: center;
    gap: 22px;
}

.login-card-premium::before {
    content: "";
    position: absolute;
    inset: auto -22% -16% auto;
    width: 78%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(91,46,255,0.12) 0%, rgba(91,46,255,0) 68%);
    pointer-events: none;
}

.login-brand,
.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-brand-premium strong {
    font-size: 1.35rem;
    line-height: 1.1;
}

.login-brand-premium span:last-child {
    color: var(--muted);
}

.login-copy {
    display: grid;
    gap: 12px;
}

.login-copy h2 {
    margin: 0;
    font-size: clamp(1.8rem, 2.2vw, 2.4rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.login-copy p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.brand-mark {
    width: 56px;
    height: 56px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.brand-mark span {
    border-radius: 12px;
    background: linear-gradient(180deg, var(--violet), var(--pink));
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(4) {
    background: linear-gradient(180deg, #835bff, #0066ff);
}

.brand-mark span:nth-child(5) {
    background: linear-gradient(180deg, #0a0f2c, #0066ff);
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-form-premium {
    position: relative;
    z-index: 1;
}

.login-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.login-form input {
    width: 100%;
    border: 1px solid rgba(10, 15, 44, 0.08);
    background: rgba(255,255,255,0.96);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.74);
}

.login-form input:focus {
    outline: none;
    border-color: rgba(91, 46, 255, 0.36);
    box-shadow:
        0 0 0 4px rgba(91, 46, 255, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.74);
}

.login-submit {
    margin-top: 6px;
}

.primary-button,
.ghost-button {
    border: 0;
    border-radius: 14px;
    padding: 14px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(90deg, var(--violet), var(--pink));
    box-shadow: 0 18px 30px rgba(91, 46, 255, 0.28);
}

.ghost-button {
    background: rgba(10, 15, 44, 0.06);
    color: var(--navy);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-1px);
}

.demo-access {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(10, 15, 44, 0.04);
    color: var(--muted);
}

.demo-access-premium {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10, 15, 44, 0.03), rgba(91, 46, 255, 0.05));
}

.demo-access code {
    color: var(--violet);
    font-weight: 700;
}

.login-footer-note {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.login-footer-note span {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(10, 15, 44, 0.06);
    background: rgba(255,255,255,0.75);
    color: #495178;
    font-size: 0.8rem;
    font-weight: 700;
}

.app-frame {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
}

.sidebar {
    border-radius: var(--radius-xl);
    padding: 28px 22px;
    min-height: calc(100vh - 48px);
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow: hidden;
}

.brand-copy strong {
    font-size: 2.2rem;
    line-height: 0.95;
}

.brand-copy span {
    color: var(--muted);
    font-size: 1.15rem;
}

.side-nav {
    display: grid;
    gap: 8px;
}

.side-nav a {
    padding: 14px 16px;
    border-radius: 14px;
    color: var(--muted);
    font-weight: 600;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.side-nav a.is-active,
.side-nav a:hover {
    color: #fff;
    background: linear-gradient(90deg, var(--violet), #355bff);
    transform: translateX(2px);
}

.sidebar-card {
    margin-top: auto;
    padding: 20px;
    display: grid;
    gap: 10px;
    background: linear-gradient(145deg, rgba(10, 15, 44, 0.96), rgba(91, 46, 255, 0.88));
    color: #fff;
}

.sidebar-card span {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.main-shell {
    display: grid;
    gap: 20px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.topbar h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.period-pill,
.profile-pill,
.status-pill {
    border: 1px solid rgba(10, 15, 44, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.period-pill,
.status-pill {
    padding: 10px 14px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.profile-pill {
    padding: 8px 12px 8px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-pill span {
    color: var(--muted);
    font-size: 0.82rem;
}

.avatar {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--pink));
    color: #fff;
    font-weight: 800;
}

.flash {
    padding: 14px 18px;
    border-radius: 16px;
    color: var(--navy);
}

.flash-success {
    border-color: rgba(15, 190, 116, 0.22);
}

.flash-error {
    border-color: rgba(255, 74, 106, 0.22);
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 360px;
    gap: 20px;
    padding: 30px;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(91, 46, 255, 0.08), rgba(255, 47, 142, 0.08));
}

.hero-panel > * {
    position: relative;
    z-index: 1;
}

.hero-panel h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.hero-quote,
.hero-stat {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0a0f2c, #5b2eff 58%, #ff2f8e);
    color: #fff;
    display: grid;
    gap: 10px;
    align-content: center;
}

.hero-quote strong,
.hero-stat strong {
    font-size: 2rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.metric-card {
    padding: 18px;
    display: grid;
    gap: 14px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72)),
        rgba(255, 255, 255, 0.7);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 18px 48px rgba(14, 23, 71, 0.08);
    transform: translateY(18px) scale(0.985);
    opacity: 0;
    transition:
        transform 680ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 320ms ease,
        border-color 320ms ease;
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 12%, rgba(255, 255, 255, 0.68) 32%, transparent 54%);
    transform: translateX(-120%);
    opacity: 0.9;
    pointer-events: none;
}

.metric-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.metric-card.is-visible::before {
    animation: metric-sheen 1500ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--stagger) * 90ms + 180ms) 1 both;
}

.metric-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: color-mix(in srgb, var(--accent) 26%, rgba(10, 15, 44, 0.06));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 28px 60px rgba(14, 23, 71, 0.12);
}

.metric-glow {
    position: absolute;
    inset: auto -18% -42% auto;
    width: 62%;
    aspect-ratio: 1;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent) 0%, transparent 66%);
    filter: blur(10px);
    opacity: 0.9;
    pointer-events: none;
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), opacity 320ms ease;
}

.metric-card:hover .metric-glow {
    transform: scale(1.08) translate(-4%, -4%);
    opacity: 1;
}

.metric-header,
.metric-value,
.panel-head,
.module-meta,
.timeline-item,
.timeline-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.metric-header span {
    color: var(--muted);
    font-weight: 600;
}

.metric-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background:
        radial-gradient(circle closest-side, rgba(255, 255, 255, 1) 64%, transparent 65%),
        conic-gradient(var(--accent) 0deg, var(--accent) var(--ring-progress), rgba(10, 15, 44, 0.08) var(--ring-progress));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.72),
        0 10px 24px color-mix(in srgb, var(--accent) 14%, transparent);
    transform: scale(0.88);
    opacity: 0.72;
    transition:
        transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 720ms ease;
}

.metric-card.is-visible .metric-ring {
    transform: scale(1);
    opacity: 1;
}

.metric-value strong {
    font-size: 2.2rem;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    text-rendering: optimizeLegibility;
}

.metric-delta {
    font-weight: 700;
    font-size: 0.92rem;
}

.metric-delta.is-up {
    color: var(--success);
}

.metric-delta.is-down {
    color: var(--danger);
}

.metric-context {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.sparkline {
    width: 100%;
    height: 48px;
    overflow: visible;
}

.sparkline polyline {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 8px 18px color-mix(in srgb, var(--accent) 28%, transparent));
    stroke-dasharray: var(--line-length, 160);
    stroke-dashoffset: var(--line-length, 160);
    opacity: 0;
    transition:
        stroke-dashoffset 1200ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 420ms ease;
}

.metric-card.is-visible .sparkline polyline {
    stroke-dashoffset: 0;
    opacity: 1;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 18px;
}

.dashboard-grid-module {
    grid-template-columns: 1.2fr 1fr;
}

.panel {
    border-radius: var(--radius-xl);
    padding: 24px;
}

.panel h3 {
    margin: 0.2rem 0 0;
    font-size: 1.25rem;
}

.panel-chart,
.panel-modules,
.panel-timeline,
.panel-copy {
    grid-column: 1 / -1;
}

#momentumChart {
    width: 100%;
    height: 280px;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

#momentumChart.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.feed-list,
.timeline-list,
.highlight-grid,
.module-grid {
    display: grid;
    gap: 14px;
}

.feed-item,
.timeline-item,
.highlight-card,
.module-card {
    padding: 18px;
}

.feed-tag {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(91, 46, 255, 0.12);
    color: var(--violet);
    font-size: 0.75rem;
    font-weight: 700;
}

.module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-card {
    display: grid;
    gap: 10px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(14, 23, 71, 0.09);
}

.module-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--blue));
}

.module-meta {
    color: var(--muted);
    font-size: 0.85rem;
}

.highlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.highlight-card {
    display: grid;
    gap: 10px;
    border-top: 4px solid var(--accent);
}

.highlight-card span {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.timeline-item small {
    color: var(--muted);
}

.rich-copy p {
    margin: 0;
    color: var(--muted);
    white-space: pre-line;
    line-height: 1.8;
}

@keyframes metric-sheen {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .metric-card,
    .metric-card::before,
    .metric-ring,
    .sparkline polyline,
    #momentumChart {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
        stroke-dashoffset: 0 !important;
    }
}

@media (max-width: 1180px) {
    .auth-layout,
    .auth-layout-brand,
    .auth-brand-stage,
    .app-frame,
    .hero-panel,
    .dashboard-grid,
    .dashboard-grid-module,
    .kpi-grid,
    .module-grid,
    .highlight-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        min-height: auto;
        position: static;
    }

    .brand-board-hero {
        min-height: 340px;
    }
}

@media (max-width: 780px) {
    .auth-shell,
    .app-shell {
        padding: 14px;
    }

    .auth-panel,
    .login-card,
    .sidebar,
    .panel,
    .hero-panel {
        padding: 20px;
    }

    .brand-lockup {
        align-items: flex-start;
    }

    .brand-lockup-copy strong {
        font-size: 2.4rem;
    }

    .brand-lockup-copy span {
        font-size: 1.9rem;
    }

    .component-kpi-preview,
    .type-showcase,
    .color-swatch-grid {
        grid-template-columns: 1fr;
    }

    .auth-feature-grid,
    .topbar-actions {
        grid-template-columns: 1fr;
        display: grid;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
