/* Impact Panel - FluidQuote Admin */
/* Built from Impact Crew Design System v2 */

/* ---------------------------------------------------------------------------
   Theme tokens
   --------------------------------------------------------------------------- */

:root,
html[data-theme="dark"] {
    --bg:           #05002b;
    --bg-2:         #1d0133;
    --nav-bg:       #1d0133;
    --card-bg:      rgba(255, 255, 255, 0.10);
    --border:       rgba(255, 255, 255, 0.1);
    --border-table: rgba(255, 255, 255, 0.12);
    --text:         #ffffff;
    --text-2:       #9ca3af;
    --text-3:       rgba(255, 255, 255, 0.35);
    --input-bg:     rgba(255, 255, 255, 0.10);
    --input-border: rgba(156, 163, 175, 0.3);
    --accent:       #f2f27a;
    --accent-dim:   rgba(242, 242, 122, 0.12);
    --hover-bg:     rgba(255, 255, 255, 0.07);
    --row-hover:    rgba(255, 255, 255, 0.05);
}

html[data-theme="mid"] {
    --bg:           #f9fafb;
    --bg-2:         #ffffff;
    --nav-bg:       #1d0133;
    --card-bg:      #ffffff;
    --border:       #e5e7eb;
    --border-table: #e5e7eb;
    --text:         #1d0133;
    --text-2:       #4a0a66;
    --text-3:       #9ca3af;
    --input-bg:     #ffffff;
    --input-border: #d1d5db;
    --accent:       #7505cc;
    --accent-dim:   rgba(117, 5, 204, 0.08);
    --hover-bg:     #f3f4f6;
    --row-hover:    #f9fafb;
}

html[data-theme="light"] {
    --bg:           #f9fafb;
    --bg-2:         #ffffff;
    --nav-bg:       #ffffff;
    --card-bg:      #ffffff;
    --border:       #e5e7eb;
    --border-table: #e5e7eb;
    --text:         #1d0133;
    --text-2:       #4a0a66;
    --text-3:       #9ca3af;
    --input-bg:     #ffffff;
    --input-border: #d1d5db;
    --accent:       #7505cc;
    --accent-dim:   rgba(117, 5, 204, 0.08);
    --hover-bg:     #f3f4f6;
    --row-hover:    #f9fafb;
}

/* Fixed brand colors (never change with theme) */
:root {
    --purple:       #6842b9;
    --yellow:       #deeb0c;
    --orange:       #eb5e17;
    --cyan:         #00d4d4;
    --success:      #c4dd00;
    --destructive:  #d63826;
}

/* ---------------------------------------------------------------------------
   Reset & base
   --------------------------------------------------------------------------- */

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

* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

body {
    margin: 0;
    font-family: 'p22-underground', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------------
   Nav bar
   --------------------------------------------------------------------------- */

.nav {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand:hover { text-decoration: none; }

.nav-brand::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--yellow);
    flex-shrink: 0;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 32px;
}

.nav-links li { margin: 0; }
.nav-sep { display: none; }
.nav-user { display: none; }

.nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    padding: 6px 14px;
    border-radius: 8px;
}

.nav-links a:hover {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.06);
    text-decoration: none;
}

.nav-links a.active {
    color: #fff;
    background: var(--orange);
    font-weight: 400;
    border-radius: 999px;
}

/* Nav right: theme toggle + account */
.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-theme-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.nav-theme-btn:hover { background: var(--orange, #f97316); }
.nav-theme-btn svg { width: 22px; height: 22px; }
.nav-theme-btn .icon-moon,
.nav-theme-btn .icon-half,
.nav-theme-btn .icon-sun { display: none; }
html[data-theme="dark"] .nav-theme-btn .icon-moon { display: block; }
html[data-theme="mid"] .nav-theme-btn .icon-half { display: block; }
html[data-theme="light"] .nav-theme-btn .icon-sun { display: block; }

.nav-account { position: relative; }

.nav-account-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--purple);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav-account-btn:hover { filter: brightness(1.15); }

.nav-account-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 160px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 300;
}

.nav-account.open .nav-account-menu { display: block; }

.nav-account-name {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--text);
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.nav-account-menu .nav-logout-btn {
    display: block;
    width: 100%;
    text-align: left;
    color: var(--text-3);
    font-size: 13px;
    font-weight: 300;
    padding: 4px 0;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-account-menu .nav-logout-btn:hover { color: var(--text); }

/* Light theme nav overrides */
html[data-theme="light"] .nav { border-bottom-color: #e5e7eb; }
html[data-theme="light"] .nav-brand { color: #1d0133; }
html[data-theme="light"] .nav-links a { color: #374151; }
html[data-theme="light"] .nav-links a:hover { color: #1d0133; background: #f3f4f6; }
html[data-theme="light"] .nav-links a.active { color: #fff; background: var(--orange); border-radius: 999px; }
html[data-theme="dark"] .nav-theme-btn svg { color: rgba(255,255,255,0.6); }
html[data-theme="mid"] .nav-theme-btn svg { color: rgba(255,255,255,0.6); }
html[data-theme="light"] .nav-theme-btn svg { color: #6b7280; }
.nav-theme-btn:hover svg { color: #fff; }
html[data-theme="light"] .nav-account-menu { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

/* Mid theme: nav stays dark */
html[data-theme="mid"] .nav-brand { color: #fff; }
html[data-theme="mid"] .nav-links a { color: rgba(255,255,255,0.7); }
html[data-theme="mid"] .nav-links a:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.06); }
html[data-theme="mid"] .nav-links a.active { color: #fff; background: var(--orange); }
html[data-theme="mid"] .nav-account-menu { background: #fff; border-color: #e5e7eb; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
html[data-theme="mid"] .nav-account-name { color: #1d0133; }
html[data-theme="mid"] .nav-account-menu .nav-logout-btn { color: #9ca3af; }
html[data-theme="mid"] .nav-account-menu .nav-logout-btn:hover { color: #1d0133; }

/* ---------------------------------------------------------------------------
   Layout
   --------------------------------------------------------------------------- */

.page-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 32px 80px;
}

.page-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}

/* h1: text-4xl font-thin text-theme-accent tracking-tight */
.page-title {
    font-family: 'p22-underground', system-ui, sans-serif;
    font-size: 2.25rem;
    font-weight: 100;
    color: var(--accent);
    margin: 0;
    letter-spacing: -0.025em;
    line-height: 1.1;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
}

/* ---------------------------------------------------------------------------
   Buttons: rounded-lg, text-sm, font-semibold
   --------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 10px 16px 6px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    font-family: inherit;
    line-height: 1;
}

.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn:active { filter: brightness(0.9); }

/* Default: brand purple */
.btn-primary {
    background: var(--purple);
    color: #fff;
}

/* Secondary: outline, theme-aware */
.btn-secondary {
    background: var(--card-bg);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--hover-bg);
}

/* Destructive: brand red */
.btn-danger {
    background: var(--destructive);
    color: #fff;
}

/* Prominent yellow CTA (e.g. "Add Company", "Export CSV") */
.btn-cta {
    background: var(--yellow);
    color: #1d0133;
}

.btn-sm {
    height: 32px;
    padding: 8px 12px 4px;
    font-size: 13px;
}

/* Mid/light secondary override */
html[data-theme="mid"] .btn-secondary,
html[data-theme="light"] .btn-secondary {
    color: #1d0133;
    border-color: #d1d5db;
}
html[data-theme="mid"] .btn-secondary:hover,
html[data-theme="light"] .btn-secondary:hover {
    background: #f3f4f6;
}

/* ---------------------------------------------------------------------------
   Forms: rounded-lg, h-9
   --------------------------------------------------------------------------- */

.form-group { margin-bottom: 18px; }

/* Stat card label style: text-xs font-semibold uppercase tracking-wide gray */
.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* h-9, rounded-lg, font-light */
.form-control {
    display: block;
    width: 100%;
    height: 36px;
    padding: 0 12px;
    padding-top: 2px;
    font-size: 14px;
    font-weight: 300;
    color: var(--text);
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

/* focus: ring-2 ring-brand-purple */
.form-control:focus {
    outline: 0;
    border-color: var(--purple);
    box-shadow: 0 0 0 2px rgba(104, 66, 185, 0.3);
}

.form-control::placeholder { color: var(--text-3); }

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%239ca3af' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.form-hint {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 4px;
    font-weight: 300;
}

.form-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.form-row .form-group { flex: 1; min-width: 160px; }

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

/* ---------------------------------------------------------------------------
   Filter bar
   --------------------------------------------------------------------------- */

.filter-bar {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-bar .form-group { margin-bottom: 0; min-width: 140px; flex: 1; }
.filter-bar .form-label { margin-bottom: 3px; font-size: 11px; }

.filter-actions {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    flex-shrink: 0;
}

/* ---------------------------------------------------------------------------
   Tables: text-sm, theme-aware borders and hover
   --------------------------------------------------------------------------- */

.table-wrap {
    overflow-x: auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

/* text-xs font-semibold uppercase tracking-wide text-gray-400 */
thead th {
    color: var(--text-2);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-table);
    white-space: nowrap;
}

tbody td {
    padding: 10px 24px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-weight: 300;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--row-hover); }
tbody tr.clickable-row { cursor: pointer; }

.td-nowrap { white-space: nowrap; }
.td-muted { color: var(--text-2); font-size: 12px; }

.td-mono {
    font-family: 'SF Mono', ui-monospace, monospace;
    font-size: 12px;
    color: var(--cyan);
    background: rgba(0, 212, 212, 0.08);
    padding: 2px 7px;
    border-radius: 4px;
}

html[data-theme="mid"] .td-mono,
html[data-theme="light"] .td-mono {
    color: var(--accent);
    background: var(--accent-dim);
}

/* ---------------------------------------------------------------------------
   Badges: rounded-lg, px-2.5, text-xs, font-semibold
   --------------------------------------------------------------------------- */

.badge {
    display: inline-block;
    padding: 4px 10px 2px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1;
}

.badge-admin {
    background: var(--purple);
    color: #fff;
}

.badge-client {
    background: var(--success);
    color: #1d0133;
}

.badge-count {
    background: var(--card-bg);
    color: var(--text-2);
    border: 1px solid var(--border);
    text-transform: none;
    font-weight: 400;
}

/* ---------------------------------------------------------------------------
   Cards: rounded-xl, border, theme-aware
   --------------------------------------------------------------------------- */

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
}

/* font-normal, larger, like CRM widget titles */
.card-title {
    font-size: 20px;
    font-weight: 400;
    color: var(--text);
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------------------
   Pagination
   --------------------------------------------------------------------------- */

.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    padding: 28px 0 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 2px 8px 0;
    font-size: 13px;
    font-weight: 400;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text);
    text-decoration: none;
}

.pagination a:hover {
    background: var(--hover-bg);
    text-decoration: none;
}

.pagination span.current {
    background: var(--accent);
    color: #05002b;
    border-color: var(--accent);
    font-weight: 600;
}

html[data-theme="mid"] .pagination span.current,
html[data-theme="light"] .pagination span.current {
    color: #fff;
}

.pagination span.disabled {
    color: var(--text-3);
    pointer-events: none;
}

.pagination-info {
    font-size: 12px;
    color: var(--text-3);
    text-align: center;
    margin-top: 8px;
    font-weight: 300;
}

/* ---------------------------------------------------------------------------
   Flash messages
   --------------------------------------------------------------------------- */

.flash {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 24px;
    border: 1px solid transparent;
}

.flash-success { background: rgba(196,221,0,0.1); border-color: rgba(196,221,0,0.25); color: var(--success); }
.flash-error { background: rgba(214,56,38,0.1); border-color: rgba(214,56,38,0.25); color: #ff8a80; }
.flash-info { background: rgba(0,212,212,0.08); border-color: rgba(0,212,212,0.2); color: var(--cyan); }

html[data-theme="mid"] .flash-success, html[data-theme="light"] .flash-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
html[data-theme="mid"] .flash-error, html[data-theme="light"] .flash-error { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }
html[data-theme="mid"] .flash-info, html[data-theme="light"] .flash-info { background: #eff6ff; color: #1e40af; border-color: #93c5fd; }

/* ---------------------------------------------------------------------------
   Detail view
   --------------------------------------------------------------------------- */

.detail-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.detail-grid dt {
    font-weight: 600;
    font-size: 10px;
    color: var(--text-3);
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.detail-grid dd {
    margin: 0;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 300;
    word-break: break-word;
}

.detail-grid dt:last-of-type, .detail-grid dd:last-of-type { border-bottom: none; }

html[data-theme="mid"] .detail-grid dt, html[data-theme="light"] .detail-grid dt { background: #f9fafb; }

/* ---------------------------------------------------------------------------
   Login
   --------------------------------------------------------------------------- */

.login-body {
    background: #05002b;
    background-image:
        radial-gradient(ellipse at 30% 60%, rgba(104,66,185,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(0,212,212,0.08) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    background: #1d0133;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 48px 36px 36px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.login-logo { text-align: center; margin-bottom: 36px; }

.login-logo h1 {
    font-size: 28px;
    font-weight: 100;
    color: #fff;
    margin: 0;
    letter-spacing: -0.03em;
}

.login-logo h1::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: #deeb0c;
    margin: 0 auto 14px;
}

.login-logo p {
    font-size: 14px;
    color: #9ca3af;
    margin: 8px 0 0;
    font-weight: 300;
}

.login-error {
    background: rgba(214,56,38,0.12);
    border: 1px solid rgba(214,56,38,0.3);
    color: #ff8a80;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 20px;
    font-weight: 400;
}

.login-body .form-control {
    background: rgba(255,255,255,0.1);
    border-color: rgba(156,163,175,0.3);
    color: #fff;
}

.login-body .form-control:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 2px rgba(104,66,185,0.4);
}

.login-body .form-label { color: #9ca3af; }

.login-body .btn-primary {
    background: var(--yellow);
    color: #1d0133;
    width: 100%;
    height: 40px;
}

/* ---------------------------------------------------------------------------
   Utilities
   --------------------------------------------------------------------------- */

.text-muted { color: var(--text-2); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }

.empty-state { text-align: center; padding: 56px 24px; color: var(--text-3); }
.empty-state p { margin: 0; font-size: 15px; font-weight: 300; }

.actions-cell { display: flex; gap: 5px; flex-wrap: wrap; }

/* ---------------------------------------------------------------------------
   Calculator cards
   --------------------------------------------------------------------------- */

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.calc-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-card[data-active="0"] {
    opacity: 0.5;
}

.calc-card-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -20px -20px 0;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    border-radius: 12px 12px 0 0;
    background: rgba(255, 255, 255, 0.03);
}

html[data-theme="mid"] .calc-card-topbar,
html[data-theme="light"] .calc-card-topbar {
    background: #f9fafb;
}

.calc-card-header {
    display: flex;
    flex-direction: column;
    margin-top: 4px;
}

.calc-card-name {
    font-size: 18px;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.01em;
    margin: 0;
}

.calc-status-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px 3px;
    border-radius: 999px;
    line-height: 1;
    flex-shrink: 0;
    white-space: nowrap;
}

.calc-status-active {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.calc-status-inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

html[data-theme="mid"] .calc-status-active,
html[data-theme="light"] .calc-status-active {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

html[data-theme="mid"] .calc-status-inactive,
html[data-theme="light"] .calc-status-inactive {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.calc-client-name {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


.calc-card-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 13px;
    font-weight: 300;
    color: var(--text-2);
}

.calc-card-stats strong {
    font-weight: 400;
    color: var(--text);
}

.calc-stat-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-3);
    flex-shrink: 0;
}

.calc-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .nav { padding: 0 16px; flex-wrap: wrap; }
    .nav-links { margin-left: 16px; }
    .page-wrapper { padding: 24px 16px 48px; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .page-title { font-size: 28px; }
    .calc-grid { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; }
    .filter-bar .form-group { min-width: 100%; }
    .filter-actions { width: 100%; }
    .filter-actions .btn { flex: 1; justify-content: center; }
    .form-row { flex-direction: column; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-grid dt { padding-bottom: 2px; border-bottom: none; }
    .detail-grid dd { padding-top: 0; padding-bottom: 10px; }
}

@media (max-width: 480px) {
    .nav-links { display: none; }
    .login-card { padding: 32px 24px 28px; }
    thead th, tbody td { padding: 10px 12px; }
}
