/* =========================================================
   Base
========================================================= */
:root {
    --bg: #08090d;
    --bg-soft: #101216;
    --surface: rgba(19, 21, 27, 0.94);
    --surface-strong: rgba(24, 27, 34, 0.98);
    --surface-border: rgba(255, 255, 255, 0.06);
    --text: #f3f4f6;
    --muted: #9ea4b0;
    --muted-soft: #707784;
    --accent: #9be15d;
    --accent-2: #6fb1ff;
    --accent-3: #f5bf5c;
    --danger: #ff7f96;
    --warning: #f2c14f;
    --success: #6fe28f;
    --shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --blur: blur(10px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.08), transparent 22%),
        radial-gradient(circle at top right, rgba(155, 225, 93, 0.08), transparent 20%),
        radial-gradient(circle at bottom left, rgba(111, 177, 255, 0.08), transparent 24%),
        linear-gradient(180deg, #050608 0%, #090a0d 45%, #0b0d11 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

body::before {
    top: -4rem;
    left: -4rem;
    background: rgba(110, 168, 255, 0.24);
}

body::after {
    right: -4rem;
    bottom: 5rem;
    background: rgba(116, 240, 209, 0.18);
}

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

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

.app-shell {
    position: relative;
    z-index: 1;
    padding: 1rem 1rem 6rem;
}

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

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

.value-positive,
.income {
    color: var(--success);
}

.value-negative,
.expense {
    color: #ff9ca3;
}

.glass-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    background-color: var(--surface);
    border: 1px solid var(--surface-border);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%);
    pointer-events: none;
}

.card-pad {
    padding: 1.1rem;
}

.card-hover {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
    border-color: rgba(255, 255, 255, 0.16);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d7e2f6;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: #dce7fa;
    max-width: 100%;
    white-space: normal;
    text-align: left;
}

.badge-accent {
    background: rgba(155, 225, 93, 0.12);
    color: var(--accent);
}

.badge-warning {
    background: rgba(255, 207, 112, 0.13);
    color: var(--warning);
}

.badge-danger {
    background: rgba(255, 127, 150, 0.13);
    color: var(--danger);
}

.badge-info {
    background: rgba(111, 177, 255, 0.14);
    color: #8fd1ff;
}

.metric-value {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.35rem, 3vw, 2.4rem);
    line-height: 1;
    letter-spacing: -0.06em;
    margin: 0;
    white-space: nowrap;
}

.btn-premium,
.btn-ghost-premium,
.inline-action {
    border: 1px solid transparent;
    border-radius: 16px;
    font-weight: 700;
    padding: 0.8rem 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn-premium {
    color: #0d120d;
    background: linear-gradient(135deg, var(--accent), #d1ff72);
    box-shadow: 0 10px 24px rgba(155, 225, 93, 0.18);
}

.btn-premium:hover,
.btn-premium:focus {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(155, 225, 93, 0.24);
    color: #0d120d;
}

.btn-ghost-premium,
.inline-action {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.btn-ghost-premium:hover,
.btn-ghost-premium:focus,
.inline-action:hover,
.inline-action:focus {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
}

.btn-sm {
    padding: 0.55rem 0.85rem;
    font-size: 0.86rem;
}

.progress-premium {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.progress-premium .progress-bar {
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #d8ff85);
    height: 100%;
    display: block;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.section-title h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.15rem;
    margin: 0;
    letter-spacing: -0.04em;
}

.section-title p {
    margin: 0.3rem 0 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.item-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.item-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #f6f7fb;
}

.item-subtitle {
    margin: 0.28rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

/* =========================================================
   Layout
========================================================= */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 1600px;
    margin: 0 auto;
}

.sidebar {
    display: none;
}

.content-area {
    display: grid;
    gap: 1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.kpi-grid,
.goals-grid,
.products-grid,
.income-grid,
.planning-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* =========================================================
   Header
========================================================= */
.topbar {
    display: grid;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
}

.brand-block {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1rem;
}

.brand-head {
    align-items: flex-start;
    gap: 0.9rem;
    min-width: 0;
}

.top-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.bottom-head {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand-mark {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(116, 240, 209, 0.18), rgba(110, 168, 255, 0.22));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    font-size: 1.25rem;
    color: var(--accent);
    flex-shrink: 0;
}

.brand-copy h1 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.35rem, 4vw, 2rem);
    letter-spacing: -0.06em;
}

.brand-copy p {
    margin: 0.2rem 0 0;
    color: var(--muted);
    max-width: 34rem;
    line-height: 1.35;
    font-size: 0.92rem;
}

.date-tile {
    min-width: 0;
    width: fit-content;
    padding: 0.85rem 1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(116, 240, 209, 0.12), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.date-tile .day {
    font-size: 0.82rem;
    color: var(--muted);
}

.date-tile .date {
    margin-top: 0.2rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
}

.header-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    justify-content: start;
    width: fit-content;
    max-width: 100%;
}

.header-actions .btn {
    min-height: 48px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-wrap: balance;
    min-width: 290px;
}

/* =========================================================
   Sidebar
========================================================= */
.sidebar {
    position: sticky;
    top: 1rem;
    align-self: start;
}

.sidebar-panel {
    padding: 1rem;
    display: grid;
    gap: 1.2rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
}

.sidebar-nav {
    display: grid;
    gap: 0.45rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    color: var(--muted);
    transition: 0.25s ease;
}

.sidebar-link i {
    font-size: 1rem;
}

.sidebar-link.active,
.sidebar-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-mini-stat {
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-panel::-webkit-scrollbar {
    width: 8px;
}

.sidebar-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.sidebar-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

/* =========================================================
   Hero / Charts
========================================================= */
.hero-card,
.insight-card,
.scenario-card {
    padding: 1.15rem;
}

.hero-panel {
    position: relative;
    z-index: 1;
}

.hero-amount {
    margin: 1rem 0 0.6rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.7rem, 9vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero-subtitle {
    margin: 0;
    max-width: 60rem;
    color: var(--muted);
    line-height: 1.65;
}

.hero-meta,
.product-meta,
.goal-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.hero-stat,
.meta-cell,
.income-stat {
    padding: 0.9rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat strong,
.meta-cell {
    display: block;
}

.meta-cell {
    color: #eef2f8;
    font-weight: 600;
}

.meta-cell span {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.line-chart,
.bar-chart {
    position: relative;
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bar-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.95rem;
}

.bar-chart-head strong {
    font-size: 0.98rem;
}

.bar-chart-head span {
    color: var(--muted);
    font-size: 0.82rem;
}

.line-chart-canvas {
    position: relative;
    height: 220px;
    display: flex;
    align-items: end;
}

.line-bars {
    position: absolute;
    inset: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 0.65rem;
    align-items: end;
}

.line-bars span {
    display: block;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(111, 177, 255, 0.1));
    min-height: 20%;
}

.line-bars span.active {
    background: linear-gradient(180deg, rgba(155, 225, 93, 0.32), rgba(111, 177, 255, 0.16));
}

.line-svg {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.line-main,
.line-secondary {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.line-main {
    stroke: var(--accent);
}

.line-secondary {
    stroke: rgba(143, 209, 255, 0.8);
    stroke-dasharray: 6 10;
}

.chart-points circle {
    fill: #ffffff;
    stroke: var(--accent);
    stroke-width: 3;
}

.line-labels {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 0.65rem;
    margin-top: 0.8rem;
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
}

.chart-tooltip {
    position: absolute;
    left: 50%;
    top: 1rem;
    transform: translateX(-50%);
    padding: 0.45rem 0.65rem;
    border-radius: 12px;
    background: rgba(7, 12, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: #dce7fa;
    opacity: 0;
    pointer-events: none;
}

.micro-week .line-chart-canvas {
    height: 190px;
}

/* =========================================================
   Lists / Cards
========================================================= */
.timeline-list,
.expense-list,
.planning-list,
.income-list,
.insight-list,
.ops-list,
.chat-list {
    display: grid;
    gap: 0.85rem;
}

.timeline-item,
.expense-item,
.plan-item,
.income-item,
.insight-item,
.ops-row,
.chat-shell,
.product-card,
.goal-card {
    position: relative;
    z-index: 1;
}

.timeline-item,
.expense-item,
.plan-item,
.income-item,
.insight-item {
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-item {
    padding-left: 1.1rem;
}

.timeline-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03);
    margin-bottom: 0.85rem;
}

.priority-high {
    background: var(--danger);
}

.priority-medium {
    background: var(--warning);
}

.priority-low {
    background: var(--accent);
}

.priority-info {
    background: var(--accent-2);
}

.event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 0.95rem;
    flex-wrap: wrap;
}

.event-date {
    color: var(--muted);
    font-size: 0.86rem;
}

.kpi-card {
    padding: 1rem;
}

.kpi-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(111, 177, 255, 0.14), rgba(116, 240, 209, 0.15));
    color: #dbe8ff;
    margin-bottom: 0.9rem;
    font-size: 1.15rem;
}

.trend {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.7rem;
    color: #d7e2f6;
    font-size: 0.85rem;
}

.trend-positive {
    color: var(--success);
}

.product-card,
.goal-card {
    padding: 1rem;
}

.product-card header,
.goal-card header {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.realism {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(111, 177, 255, 0.07);
    border: 1px solid rgba(111, 177, 255, 0.12);
    color: #dce7fa;
    line-height: 1.5;
    font-size: 0.9rem;
}

.expense-track {
    margin-top: 0.9rem;
}

.row-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 0.55rem;
    flex-wrap: wrap;
}

.income-analytics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.income-stat .item-subtitle {
    margin-top: 0.6rem;
}

.bar-chart-rows {
    display: grid;
    gap: 0.85rem;
}

.bar-row {
    display: grid;
    grid-template-columns: minmax(64px, 92px) minmax(0, 1fr) minmax(78px, auto);
    gap: 0.8rem;
    align-items: center;
}

.bar-row-label,
.bar-row-value {
    font-size: 0.84rem;
    color: #dce7fa;
}

.bar-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #d8ff85);
}

.bar-fill.blue {
    background: linear-gradient(90deg, #74b6ff, #8fd1ff);
}

.bar-fill.red {
    background: linear-gradient(90deg, #ff8a8a, #ffc16e);
}

.ops-table {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.6rem;
}

.ops-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    padding: 0.85rem;
    border-radius: 18px;
}

.ops-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ops-meta,
.ops-time {
    color: var(--muted);
    font-size: 0.84rem;
}

.ops-amount {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
    letter-spacing: -0.04em;
}

.insight-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.55rem;
}

.insight-item strong {
    color: #f5f7fb;
}

.chat-shell {
    padding: 1rem;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(111, 177, 255, 0.16), rgba(155, 225, 93, 0.13));
    color: #dce7fa;
    flex-shrink: 0;
}

.chat-bubble {
    max-width: min(720px, 100%);
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.55;
}

.chat-message.user .chat-bubble {
    background: rgba(155, 225, 93, 0.1);
    border-color: rgba(155, 225, 93, 0.2);
}

.chat-points {
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
}

.chat-points li + li {
    margin-top: 0.45rem;
}

.chat-input {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.chat-input .form-control {
    min-height: 52px;
}

/* =========================================================
   Forms / Modal
========================================================= */
.modal-content {
    background: linear-gradient(180deg, rgba(18, 19, 23, 0.98), rgba(10, 11, 14, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    color: var(--text);
}

.modal-header,
.modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
    padding: 1rem 1.2rem;
}

.modal-body {
    padding: 1rem 1.2rem 1.3rem;
}

.btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.8;
}

.form-label {
    color: #dce6f8;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.form-control,
.form-select,
.form-control:focus,
.form-select:focus {
    color: var(--text);
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    min-height: 50px;
    box-shadow: none;
}

.form-control::placeholder {
    color: #94a6c3;
}

textarea.form-control {
    min-height: 110px;
}

.form-note {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.45rem;
}

/* =========================================================
   Bottom nav
========================================================= */
.mobile-nav {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.55rem;
    border-radius: 24px;
    background: rgba(11, 20, 34, 0.88);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
}

.mobile-nav a {
    flex: 1;
    text-align: center;
    padding: 0.55rem 0.35rem;
    border-radius: 18px;
    color: var(--muted);
    font-size: 0.78rem;
}

.mobile-nav a.active,
.mobile-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   Login Page
========================================================= */
.login-shell {
    display: grid;
    align-items: center;
    min-height: 100vh;
    padding-bottom: 1rem;
}

.login-layout {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 1rem;
    align-items: stretch;
}

.login-aside,
.login-card {
    min-height: 100%;
}

.login-aside-inner,
.login-card-inner {
    position: relative;
    z-index: 1;
    padding: 1.35rem;
}

.login-aside-inner {
    display: grid;
    gap: 1.4rem;
}

.login-brand-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    letter-spacing: -0.06em;
}

.login-lead {
    max-width: 36rem;
    margin: 0;
    color: #dce6f8;
    line-height: 1.65;
    font-size: 1rem;
}

.login-aside-stack {
    display: grid;
    gap: 1rem;
}

.login-side-card {
    padding: 1.1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-feature-list {
    display: grid;
    gap: 0.95rem;
}

.login-feature-item {
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.login-feature-item i {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--accent);
    background: rgba(155, 225, 93, 0.1);
    font-size: 1rem;
}

.login-feature-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #f5f7fb;
}

.login-feature-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.92rem;
}

.login-metric-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.login-small-metric {
    font-size: clamp(1rem, 2vw, 1.35rem);
}

.login-main {
    display: grid;
}

.login-card {
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
}

.login-heading {
    margin-bottom: 1.5rem;
}

.login-title {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    letter-spacing: -0.06em;
}

.login-subtitle {
    margin: 0.7rem 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.login-form {
    display: grid;
    gap: 1rem;
}

.input-premium {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-premium:focus-within {
    border-color: rgba(155, 225, 93, 0.5);
    box-shadow: 0 0 0 0.22rem rgba(155, 225, 93, 0.08);
}

.input-premium .input-group-text {
    background: transparent;
    border: 0;
    color: #c9d5e8;
    padding-left: 1rem;
    padding-right: 0.35rem;
}

.input-premium .form-control {
    border: 0;
    background: transparent;
}

.input-premium .form-control:focus {
    background: transparent;
}

.login-link {
    color: #d9e6ff;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.login-link:hover {
    color: var(--accent);
}

.login-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.login-check {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.login-check .form-check-input {
    margin: 0;
    width: 1.1rem;
    height: 1.1rem;
    border-color: rgba(255, 255, 255, 0.16);
    background-color: rgba(255, 255, 255, 0.04);
}

.login-check .form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.login-submit {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.login-divider {
    position: relative;
    text-align: center;
    margin: 1.3rem 0 1rem;
}

.login-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.login-divider span {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0 0.9rem;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.login-actions .btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.login-note {
    margin-top: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(111, 177, 255, 0.08);
    border: 1px solid rgba(111, 177, 255, 0.14);
    color: #dbe8ff;
    line-height: 1.55;
    font-size: 0.92rem;
}

.login-note i {
    color: #8fd1ff;
    font-size: 1rem;
    margin-top: 0.1rem;
}

/* =========================================================
   Responsive
========================================================= */
@media (min-width: 576px) {
    .app-shell {
        padding: 1.2rem 1.2rem 7rem;
    }

    .topbar {
        padding: 1.2rem;
    }

    .header-actions {
        grid-template-columns: repeat(2, minmax(280px, max-content));
    }

    .hero-meta,
    .product-meta,
    .goal-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .product-card header,
    .goal-card header {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .chat-input {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

@media (min-width: 768px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .brand-block {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .date-tile {
        text-align: right;
    }

    .ops-row {
        grid-template-columns: minmax(0, 1.8fr) auto auto auto;
        align-items: center;
    }

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

@media (max-width: 767.98px) {
    .ops-row {
        grid-template-columns: 1fr auto;
    }

    .ops-row .ops-meta,
    .ops-row .ops-amount,
    .ops-row .badge-soft {
        justify-self: start;
    }

    .header-actions .btn {
        min-width: 0;
        width: 100%;
    }

    .header-actions {
        width: 100%;
    }

    .line-chart,
    .bar-chart,
    .chat-shell {
        padding: 0.85rem;
    }

    .login-aside-inner,
    .login-card-inner {
        padding: 1.1rem;
    }

    .login-metric-row {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 992px) {
    .app-shell {
        padding: 1.2rem;
    }

    .dashboard-layout {
        grid-template-columns: 290px minmax(0, 1fr);
        align-items: start;
    }

    .sidebar {
        display: block;
    }

    .mobile-nav {
        display: none;
    }

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

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

    .hero-wrap {
        grid-column: span 8;
    }

    .events-wrap {
        grid-column: span 4;
    }

    .kpi-wrap,
    .products-wrap,
    .expenses-wrap,
    .goals-wrap,
    .planning-wrap,
    .income-wrap,
    .insight-wrap,
    .scenario-wrap {
        grid-column: span 6;
    }

    .login-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    }

    .login-main {
        align-items: center;
    }
}

@media (min-width: 1200px) {
    .expenses-wrap,
    .income-wrap {
        grid-column: span 7;
    }

    .goals-wrap,
    .insight-wrap {
        grid-column: span 5;
    }

    .planning-wrap,
    .scenario-wrap,
    .products-wrap,
    #operations.kpi-wrap {
        grid-column: span 6;
    }
}
