/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f0f2f5;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-input: #f8f9fb;
    --bg-subtle: #f4f5f7;
    --border: rgba(0,0,0,0.06);
    --border-strong: rgba(0,0,0,0.1);
    --text: #1a1a2e;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --accent: #26a7f5;
    --accent-light: rgba(38,167,245,0.08);
    --accent-glow: rgba(38,167,245,0.25);
    --orange: #f59e0b;
    --orange-bg: rgba(245,158,11,0.1);
    --green: #10b981;
    --green-bg: rgba(16,185,129,0.1);
    --red: #ef4444;
    --red-bg: rgba(239,68,68,0.08);
    --blue: #3b82f6;
    --blue-bg: rgba(59,130,246,0.08);
    --gradient-main: linear-gradient(135deg, #26a7f5 0%, #f06830 100%);
    --gradient-warm: linear-gradient(135deg, #f06830 0%, #f44933 100%);
    --gradient-cool: linear-gradient(135deg, #1b96ea 0%, #26a7f5 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 24px rgba(38,167,245,0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --nav-bg: rgba(255,255,255,0.8);
    --nav-text: #1a1a2e;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* === Navbar === */
.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 124px;
}

.nav-brand {
    color: var(--text);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.02em;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 108px;
    height: 108px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 4px;
    background: var(--bg-subtle);
    padding: 4px;
    border-radius: 12px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg-card);
}

.nav-link.active {
    color: var(--text);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

/* === Container === */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
    width: 100%;
}

/* === Nav User === */
.nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-username {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.nav-logout {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    border: 1px solid var(--border-strong);
    transition: all 0.2s;
}

.nav-logout:hover {
    color: var(--red);
    border-color: var(--red);
    background: var(--red-bg);
}

/* === Auth Pages === */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .nav-icon {
    width: 216px;
    height: 216px;
    margin: 0 auto 1rem;
    border-radius: 24px;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.4rem;
    letter-spacing: -0.03em;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form .form-group {
    gap: 0.35rem;
}

.btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

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

.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.auth-alert-error {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid rgba(239,68,68,0.2);
}

.auth-alert-info {
    background: var(--blue-bg);
    color: var(--blue);
    border: 1px solid rgba(59,130,246,0.2);
}

.auth-alert-success {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid rgba(16,185,129,0.2);
}

/* === Forgot password link === */
.auth-forgot {
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}

.auth-forgot a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-forgot a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* === Verification banner === */
.verification-banner {
    background: linear-gradient(135deg, rgba(245,158,11,0.12) 0%, rgba(240,104,48,0.12) 100%);
    border-bottom: 1px solid rgba(245,158,11,0.25);
    padding: 0.65rem 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    padding: 0;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--orange);
}

/* === Footer === */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

/* === Calendar Header === */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.calendar-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    min-width: 240px;
    text-align: center;
    letter-spacing: -0.03em;
}

.btn-nav {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.55rem 1rem;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-nav:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: var(--shadow), 0 0 0 3px var(--accent-light);
    transform: translateY(-1px);
}

/* === Calendar Grid === */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 2rem;
}

.cal-header {
    text-align: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.6rem 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cal-header.weekend {
    color: var(--text-muted);
    opacity: 0.6;
}

.cal-day {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    min-height: 82px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.cal-day:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow), 0 0 0 3px var(--accent-light);
    transform: translateY(-2px);
}

.cal-day.other-month {
    background: transparent;
    border-color: transparent;
    opacity: 0.3;
    cursor: default;
}

.cal-day.other-month:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.cal-day.weekend {
    background: var(--bg-subtle);
}

.cal-day.today {
    border-color: var(--orange);
    background: var(--orange-bg);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

.cal-day.today:hover {
    box-shadow: 0 0 0 3px rgba(245,158,11,0.25), var(--shadow);
}

.cal-day-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.cal-day.today .cal-day-number {
    color: var(--orange);
    font-weight: 800;
}

.cal-day.filled::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(16,185,129,0.5);
}

.cal-day-badge {
    margin-top: auto;
    background: var(--gradient-main);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-align: center;
    width: fit-content;
    letter-spacing: 0.02em;
}

.cal-day-note {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === Week Summary === */
.week-summary {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.week-summary h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.summary-card {
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.summary-card.highlight-orange {
    border-color: rgba(245,158,11,0.3);
    background: var(--orange-bg);
}

.summary-card.highlight-red {
    border-color: rgba(239,68,68,0.2);
    background: var(--red-bg);
}

.summary-card.highlight-green {
    border-color: rgba(16,185,129,0.2);
    background: var(--green-bg);
}

.summary-card.highlight-blue {
    border-color: rgba(59,130,246,0.2);
    background: var(--blue-bg);
}

.summary-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.summary-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}

.summary-detail {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.summary-card.highlight-orange .summary-value { color: #d97706; }
.summary-card.highlight-red .summary-value { color: #dc2626; }
.summary-card.highlight-green .summary-value { color: #059669; }
.summary-card.highlight-blue .summary-value { color: #2563eb; }

/* === Modal === */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    from { transform: scale(0.95) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.modal-close {
    background: var(--bg-subtle);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    line-height: 1;
}

.modal-close:hover {
    background: var(--red-bg);
    color: var(--red);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    gap: 0.5rem;
}

.modal-footer-right {
    display: flex;
    gap: 0.5rem;
}

/* === Forms === */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.form-group input[type="time"],
.form-group input[type="number"],
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    padding: 0.7rem 0.85rem;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-input);
    transition: all 0.2s ease;
    font-weight: 500;
    height: 44px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
    background: var(--bg-card);
}

.calc-display {
    padding: 0.65rem 0.85rem;
    background: var(--accent-light);
    border: 1.5px solid rgba(38,167,245,0.15);
    border-radius: var(--radius-sm);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent);
    text-align: center;
    letter-spacing: -0.02em;
}

/* === Buttons === */
.btn {
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 2px 8px rgba(38,167,245,0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(38,167,245,0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-subtle);
    color: var(--text-secondary);
    border: 1.5px solid var(--border-strong);
}

.btn-secondary:hover {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.btn-danger {
    background: var(--red-bg);
    color: var(--red);
    border: 1.5px solid rgba(239,68,68,0.15);
}

.btn-danger:hover {
    background: var(--red);
    color: white;
    box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
}

.btn-lg {
    padding: 0.8rem 2.5rem;
    font-size: 0.95rem;
    border-radius: 12px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* === Settings === */
.settings-page h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.75rem;
    letter-spacing: -0.03em;
}

.settings-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}

.settings-section:hover {
    box-shadow: var(--shadow-md);
}

.settings-section h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.01em;
}

.preset-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.settings-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.save-feedback {
    color: var(--green);
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.save-feedback.visible {
    opacity: 1;
}

/* Toggle switch */
.toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    margin-top: 0.25rem;
}

.toggle input {
    display: none;
}

.toggle-slider {
    width: 48px;
    height: 26px;
    background: var(--border-strong);
    border-radius: 13px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.toggle-slider::after {
    content: '';
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.toggle input:checked + .toggle-slider {
    background: var(--gradient-main);
}

.toggle input:checked + .toggle-slider::after {
    transform: translateX(22px);
}

.toggle-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* === History === */
.history-page h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}

.export-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: flex-end;
}

.history-table-wrap {
    overflow-x: auto;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    font-size: 0.88rem;
}

.history-table th {
    background: var(--text);
    color: white;
    padding: 0.85rem 0.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.history-table th:first-child {
    border-radius: var(--radius) 0 0 0;
}

.history-table th:last-child {
    border-radius: 0 var(--radius) 0 0;
}

.history-table th.weekend {
    opacity: 0.7;
}

.history-table td {
    padding: 0.75rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.history-table tbody tr {
    transition: background 0.15s;
}

.history-table tbody tr:hover {
    background: var(--accent-light);
}

.history-table td.has-hours {
    font-weight: 700;
    color: var(--text);
}

.history-table td.weekend-cell {
    background: var(--bg-subtle);
}

.history-table td.sup-cell {
    font-size: 0.78rem;
    line-height: 1.4;
}

.sup-badge-25 {
    display: inline-block;
    background: var(--orange-bg);
    color: #d97706;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

.sup-badge-50 {
    display: inline-block;
    background: var(--red-bg);
    color: #dc2626;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

.history-table tfoot td {
    font-weight: 800;
    background: var(--bg-subtle);
    border-top: 2px solid var(--text);
}

.history-totals {
    margin-top: 1.5rem;
}

.history-totals h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 0.75rem 0;
        gap: 0.5rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .nav-user {
        order: -1;
        width: 100%;
        justify-content: flex-end;
    }

    .form-row {
        flex-direction: column;
    }

    .calendar-header h1 {
        font-size: 1.3rem;
        min-width: auto;
    }

    .cal-day {
        min-height: 60px;
        padding: 0.3rem;
    }

    .cal-day-number {
        font-size: 0.75rem;
    }

    .cal-day-badge {
        font-size: 0.6rem;
        padding: 1px 5px;
    }

    .cal-header {
        font-size: 0.65rem;
        padding: 0.4rem 0.1rem;
    }

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

    .modal {
        max-width: 100%;
        border-radius: 16px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer-right {
        width: 100%;
    }

    .modal-footer-right .btn {
        flex: 1;
    }

    #btn-delete {
        width: 100%;
    }

    .history-table {
        font-size: 0.78rem;
    }

    .history-table th,
    .history-table td {
        padding: 0.45rem 0.25rem;
    }

    .export-bar {
        justify-content: center;
    }

    .container {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 480px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .calendar-grid {
        gap: 3px;
    }

    .cal-day {
        min-height: 50px;
    }
}

/* === Dark Mode === */
:root.dark {
    --bg: #0f0f13;
    --bg-card: #1a1a24;
    --bg-card-hover: #1f1f2e;
    --bg-input: #15151f;
    --bg-subtle: #141420;
    --border: rgba(255,255,255,0.06);
    --border-strong: rgba(255,255,255,0.1);
    --text: #eaeaf0;
    --text-secondary: #8b8b9e;
    --text-muted: #5c5c72;
    --accent: #3db5ff;
    --accent-light: rgba(61,181,255,0.1);
    --accent-glow: rgba(61,181,255,0.25);
    --orange: #fbbf24;
    --orange-bg: rgba(251,191,36,0.1);
    --green: #34d399;
    --green-bg: rgba(52,211,153,0.1);
    --red: #f87171;
    --red-bg: rgba(248,113,113,0.08);
    --blue: #60a5fa;
    --blue-bg: rgba(96,165,250,0.08);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow: 0 4px 12px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 24px rgba(61,181,255,0.2);
    --nav-bg: rgba(15,15,19,0.85);
    --nav-text: #eaeaf0;
}

:root.dark .summary-card.highlight-orange .summary-value { color: #fbbf24; }
:root.dark .summary-card.highlight-red .summary-value { color: #f87171; }
:root.dark .summary-card.highlight-green .summary-value { color: #34d399; }
:root.dark .summary-card.highlight-blue .summary-value { color: #60a5fa; }

:root.dark .history-table th {
    background: #1a1a28;
    color: #9b9bb0;
}

:root.dark .history-table tfoot td {
    background: #141420;
    border-top-color: #3b82f6;
}

:root.dark .sup-badge-25 {
    background: rgba(251,191,36,0.12);
    color: #fbbf24;
}

:root.dark .sup-badge-50 {
    background: rgba(248,113,113,0.1);
    color: #f87171;
}

:root.dark .toggle-slider::after {
    background: #2a2a3a;
}

:root.dark .toggle input:checked + .toggle-slider::after {
    background: white;
}

:root.dark .btn-primary {
    box-shadow: 0 2px 12px rgba(61,181,255,0.25);
}

:root.dark .btn-primary:hover {
    box-shadow: 0 4px 20px rgba(61,181,255,0.35);
}

:root.dark .cal-day.today {
    border-color: var(--orange);
    background: var(--orange-bg);
    box-shadow: 0 0 0 3px rgba(251,191,36,0.12);
}

:root.dark .form-group input:focus {
    box-shadow: 0 0 0 3px rgba(61,181,255,0.15);
}

:root.dark .calc-display {
    background: rgba(61,181,255,0.08);
    border-color: rgba(61,181,255,0.12);
    color: #3db5ff;
}

:root.dark .save-feedback {
    color: #34d399;
}

:root.dark .modal-close:hover {
    background: rgba(248,113,113,0.1);
    color: #f87171;
}

:root.dark .verification-banner {
    background: linear-gradient(135deg, rgba(251,191,36,0.08) 0%, rgba(240,104,48,0.08) 100%);
    border-bottom-color: rgba(251,191,36,0.15);
}

:root.dark .auth-alert-success {
    background: rgba(52,211,153,0.1);
    color: #34d399;
    border-color: rgba(52,211,153,0.2);
}
