:root {
      color-scheme: dark;
      --bg-primary: #0F172A;
      --bg-secondary: #1E293B;
      --bg-card: #1E293B;
      --bg-elevated: #1a2240;
      --text-primary: #FFFFFF;
      --text-secondary: #9CA3AF;
      --text-muted: #6B7280;
      --border-color: #334155;
      --border-light: #2d3a54;
      --nav-bg: #0F172A;
      --nav-border: #334155;
      --nav-inactive: #9CA3AF;
      --input-bg: #1E293B;
      --input-border: #334155;
      --accent-purple: #7C3AED;
      --accent-purple-hover: #6D28D9;
      --accent-purple-light: #8B5CF6;
      --accent-purple-bg: rgba(124, 58, 237, 0.12);
      --accent-green: #10B981;
      --green-bg: rgba(16, 185, 129, 0.12);
      --accent-blue: #3b82f6;
      --blue-bg: rgba(59, 130, 246, 0.12);
      --accent-orange: #f59e0b;
      --orange-bg: rgba(245, 158, 11, 0.12);
      --accent-red: #ef4444;
      --card-shadow: none;
      --card-bg-raw: 30, 41, 59;
      --modal-overlay: rgba(0, 0, 0, 0.7);
      --radius: 12px;
      --radius-lg: 16px;
      --radius-sm: 8px;
      --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
      --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
      --transition: all 0.2s ease;
      --hover-bg: rgba(99, 102, 241, 0.08);
  
      --purple-bg: rgba(124, 58, 237, 0.12);
      --bg-tertiary: #0F172A;
      --surface: #1E293B;
      --text-tertiary: #4B5563;
      --purple-500: #7C3AED;
      --purple-400: #7C3AED;
      --purple-600: #8B5CF6;
      --green-500: #10B981;
      --blue-500: #3b82f6;
      --orange-500: #f59e0b;
      --red-500: #ef4444;
}

[data-theme="light"] {
      color-scheme: light;
      --bg-primary: #FFFFFF;
      --bg-secondary: #F9FAFB;
      --bg-card: #FFFFFF;
      --bg-elevated: #F3F4F6;
      --text-primary: #1F2937;
      --text-secondary: #6B7280;
      --text-muted: #9CA3AF;
      --border-color: #E5E7EB;
      --border-light: #E5E7EB;
      --nav-bg: #FFFFFF;
      --nav-border: #E5E7EB;
      --nav-inactive: #6B7280;
      --input-bg: #FFFFFF;
      --input-border: #E5E7EB;
      --accent-purple: #7C3AED;
      --accent-purple-hover: #6D28D9;
      --accent-purple-light: #8B5CF6;
      --accent-purple-bg: rgba(124, 58, 237, 0.06);
      --accent-green: #10B981;
      --green-bg: rgba(16, 185, 129, 0.08);
      --accent-blue: #3b82f6;
      --blue-bg: rgba(59, 130, 246, 0.08);
      --accent-orange: #f59e0b;
      --orange-bg: rgba(245, 158, 11, 0.08);
      --accent-red: #ef4444;
      --card-shadow: 0 1px 3px rgba(0,0,0,0.1);
      --card-bg-raw: 255, 255, 255;
      --modal-overlay: rgba(0, 0, 0, 0.3);
      --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
      --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
      --hover-bg: rgba(124, 58, 237, 0.06);
  
      --purple-bg: rgba(124, 58, 237, 0.06);
      --bg-tertiary: #F3F4F6;
      --surface: #FFFFFF;
      --text-tertiary: #9CA3AF;
      --purple-500: #7C3AED;
      --purple-400: #7C3AED;
      --purple-600: #8B5CF6;
      --green-500: #10B981;
      --blue-500: #3b82f6;
      --orange-500: #f59e0b;
      --red-500: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.screen { display: none; }
.screen.active { display: flex; flex-direction: column; }
.hidden { display: none !important; }
.page { display: none; opacity: 0; transition: opacity 0.3s ease; }
.page.active { display: block; opacity: 1; animation: page-fade-in 0.35s ease; }
@keyframes page-fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.prelogin-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 24px;
    background: rgba(var(--card-bg-raw), 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}
.prelogin-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.prelogin-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.prelogin-nav-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}
.prelogin-nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo-wrap {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    margin-bottom: 16px;
}

.logo {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-light), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.tagline {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 6px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.entity-type-custom-input {
    margin-top: 8px;
}

.entity-type-custom-input.hidden {
    display: none;
}

.input-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

textarea {
    min-height: 80px;
    resize: vertical;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-light));
    color: white;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    border-color: var(--accent-purple);
    color: var(--text-primary);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-red), #dc2626);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-green), #16a34a);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: auto;
}

.btn-outline:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.btn-link-purple {
    background: none;
    border: none;
    color: var(--accent-purple);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 8px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.btn-link-purple:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.btn-outline-purple {
    background: transparent;
    border: 1.5px solid var(--accent-purple);
    color: var(--accent-purple);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.btn-outline-purple:hover {
    background: rgba(139,92,246,0.1);
}

.btn-outline-dashed {
    background: transparent;
    border: 1px dashed var(--border-light);
    color: var(--text-muted);
    margin: 16px 0;
}

.btn-outline-dashed:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
}

.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-link {
    background: transparent;
    color: var(--accent-purple);
    padding: 4px 8px;
    width: auto;
    font-size: 13px;
}

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

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    width: auto;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-light));
    color: white;
    border-radius: 6px;
}

.error-text {
    color: var(--accent-red);
    font-size: 13px;
    margin-top: 4px;
    text-align: center;
}
.tos-check-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}
.tos-check-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--accent-purple);
    flex-shrink: 0;
    cursor: pointer;
}
.tos-check-row label {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    cursor: pointer;
}
.tos-check-row label a {
    color: var(--accent-purple);
    text-decoration: none;
}
.tos-check-row label a:hover {
    text-decoration: underline;
}
#signup-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.onboarding-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.onboarding-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 48px;
}

.onboarding-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.onboarding-progress-step span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.onboarding-progress-step.active span {
    color: var(--accent-purple);
}

.onboarding-progress-step.completed span {
    color: var(--accent-green);
}

.progress-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s;
}

.onboarding-progress-step.active .progress-circle {
    border-color: var(--accent-purple);
    background: var(--purple-bg);
    color: var(--accent-purple);
}

.onboarding-progress-step.completed .progress-circle {
    border-color: var(--accent-green);
    background: var(--accent-green);
    color: white;
}

.progress-line {
    width: 60px;
    height: 2px;
    background: var(--border-color);
    margin: 0 8px;
    margin-bottom: 24px;
}

.progress-line.completed {
    background: var(--accent-green);
}

.onboarding-container {
    max-width: 440px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.onboarding-header {
    text-align: center;
    margin-bottom: 32px;
}

.onboarding-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.onboarding-header p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.onboarding-form .input-group {
    margin-bottom: 20px;
}

.onboarding-continue-btn {
    width: 100%;
    margin-top: 8px;
}

.onboarding-skip-text {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
}

.onboarding-skip-text a {
    color: var(--text-muted);
    text-decoration: none;
}

.onboarding-skip-text a:hover {
    color: var(--text-secondary);
    text-decoration: underline;
}

.card {
    background: rgba(var(--card-bg-raw), 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: var(--border-light);
}

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

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

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

.form-group.half {
    flex: 1;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.checkbox-item:hover {
    border-color: var(--accent-purple);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--accent-purple);
}

#app-shell {
    height: 100vh;
}

.app-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 72px;
}

.page-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    padding-bottom: 80px;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-top: 16px;
}

.dash-greeting { margin-bottom: 24px; }
.greeting-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 4px;
}
.greeting-date {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.logo-small {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-light), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.logo-shimmer {
    background: linear-gradient(90deg, var(--accent-purple), #a855f7, #e879f9, var(--accent-purple));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear 1;
}
.dash-donut-section {
    margin-bottom: 16px;
}
.dash-donut-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
}
.dash-donut-wrap canvas {
    width: 100px !important;
    height: 100px !important;
    flex-shrink: 0;
}
.dash-donut-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.donut-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.donut-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.donut-legend-label {
    flex: 1;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.donut-legend-value {
    font-weight: 600;
    color: var(--text-primary);
}

.page-header {
    padding: 12px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.profile-menu-wrap {
    position: relative;
}
.profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-purple-light);
    color: white;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    letter-spacing: 0;
}
.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
}
.profile-avatar-sm {
    width: 30px;
    height: 30px;
    font-size: 13px;
}

.dash-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reminders-bell-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.15s;
}
.reminders-bell-btn:hover {
    background: rgba(255,255,255,0.07);
}

.reminders-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.reminders-badge.hidden {
    display: none;
}
.profile-dropdown {
    position: fixed;
    top: 60px;
    right: 16px;
    width: 200px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 200;
    overflow: hidden;
    animation: profileDropIn 0.15s ease;
}
@keyframes profileDropIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.profile-dropdown-info {
    padding: 14px 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.profile-dropdown-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.profile-dropdown-email {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
}
.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}
.profile-dropdown-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
}
.profile-dropdown-logout {
    color: var(--accent-red);
}
.profile-dropdown-logout:hover {
    background: rgba(239, 68, 68, 0.08);
    color: var(--accent-red);
}

.entity-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.entity-pills::-webkit-scrollbar { display: none; }

.entity-pill {
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transition: var(--transition);
}

.entity-pill:hover {
    border-color: var(--accent-purple);
}

.entity-pill.active {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-light));
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

.entity-pill.add-pill {
    border-style: dashed;
    color: var(--text-muted);
}

.entity-pill.add-pill:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.stats-grid[data-visible="2"] {
    grid-template-columns: repeat(2, 1fr);
}
.stats-grid[data-visible="3"] {
    grid-template-columns: repeat(3, 1fr);
}
.stats-grid[data-visible="2"] .stat-card,
.stats-grid[data-visible="3"] .stat-card {
    min-width: 0;
}

.stat-card {
    background: rgba(var(--card-bg-raw), 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.stat-icon-green { background: var(--green-bg); color: var(--accent-green); }
.stat-icon-blue { background: var(--blue-bg); color: var(--accent-blue); }
.stat-icon-purple { background: var(--purple-bg); color: var(--accent-purple); }
.stat-icon-orange { background: var(--orange-bg); color: var(--accent-orange); }

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.voice-section {
    margin: 24px 0;
}

.voice-step {
    text-align: center;
}

.mic-button {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-light));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: none;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.35), 0 0 0 0 rgba(99, 102, 241, 0.2);
    animation: mic-glow 3s ease-in-out infinite;
    transition: var(--transition);
    cursor: pointer;
}

@keyframes mic-glow {
    0%, 100% { box-shadow: 0 4px 24px rgba(99, 102, 241, 0.35), 0 0 0 0 rgba(99, 102, 241, 0.2); }
    50% { box-shadow: 0 4px 32px rgba(99, 102, 241, 0.5), 0 0 0 12px rgba(99, 102, 241, 0.05); }
}

.mic-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 32px rgba(99, 102, 241, 0.5);
}

.mic-button:active {
    transform: scale(0.98);
}

.mic-svg { display: block; }

.mic-text {
    font-size: 11px;
    color: rgba(255,255,255,0.85);
    margin-top: 4px;
    font-weight: 500;
}

.dash-entity-select {
    margin-bottom: 28px;
    text-align: center;
}

.entity-select-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.entity-select-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 160px;
    justify-content: center;
}

.entity-select-dropdown:hover {
    border-color: var(--accent-purple);
}

.entity-select-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.entity-select-chevron {
    color: var(--text-secondary);
    transition: var(--transition);
}

.entity-select-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 100;
    overflow: hidden;
    animation: profileDropIn 0.15s ease;
}

.entity-select-option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.entity-select-option:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
}

.entity-select-option.active {
    color: var(--accent-purple);
    font-weight: 600;
}

.dash-entity-single {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    padding: 12px 24px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.dash-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 8px;
}

.dash-hero-text {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 24px;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    letter-spacing: 0;
}
.dash-category-cards {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 16px;
}
.dash-cat-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 8px;
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.dash-cat-card.selected {
    border-color: #9333EA;
    background: rgba(147,51,234,0.1);
    box-shadow: 0 0 20px rgba(147,51,234,0.15);
}
.dash-cat-card:not(.selected):hover {
    border-color: rgba(147,51,234,0.3);
    background: rgba(255,255,255,0.06);
}
.dash-cat-icon { margin-bottom: 10px; }
.dash-cat-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.dash-cat-card.selected .dash-cat-label { color: #C4B5FD; }
.dash-cat-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    text-align: center;
    margin: 20px 0 0;
    line-height: 1.4;
}

.dash-action-buttons {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mic-button.mic-button-large {
    width: 140px;
    height: 140px;
    box-shadow: 0 8px 48px rgba(99, 102, 241, 0.45), 0 0 60px rgba(99, 102, 241, 0.2), 0 0 0 0 rgba(99, 102, 241, 0.15);
    animation: mic-glow-large 3s ease-in-out infinite;
}

@keyframes mic-glow-large {
    0%, 100% { box-shadow: 0 8px 48px rgba(99, 102, 241, 0.45), 0 0 60px rgba(99, 102, 241, 0.2), 0 0 0 0 rgba(99, 102, 241, 0.15); }
    50% { box-shadow: 0 8px 56px rgba(99, 102, 241, 0.6), 0 0 80px rgba(99, 102, 241, 0.25), 0 0 0 16px rgba(99, 102, 241, 0.05); }
}

.mic-button.mic-button-large:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 56px rgba(99, 102, 241, 0.65), 0 0 80px rgba(99, 102, 241, 0.3);
}

.mic-hint {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 16px;
    margin-bottom: 0;
    text-align: center;
}

.voice-examples-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 18px 20px;
    margin: 16px 22px;
}

.voice-examples-heading {
    font-size: 13px;
    font-weight: 600;
    color: #A78BFA;
    margin-bottom: 10px;
}

.voice-examples-instruction {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.voice-examples-single {
    font-size: 14px;
    color: #888;
    font-style: italic;
    margin-top: 12px;
    line-height: 1.6;
}

.voice-examples-tip {
    font-size: 11px;
    color: #444;
    margin-top: 10px;
}

.dash-secondary-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 36px;
}

.dash-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
    transition: var(--transition);
}

.dash-action-link:hover {
    color: var(--accent-purple);
}

.dash-action-link svg {
    opacity: 0.6;
}

.dash-action-link:hover svg {
    opacity: 1;
    stroke: var(--accent-purple);
}
.dash-action-dot {
    color: var(--text-secondary);
    opacity: 0.4;
    font-size: 16px;
    user-select: none;
}
.receipt-attach-prompt {
    margin-top: 12px;
    margin-bottom: 8px;
}
.receipt-prompt-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px dashed rgba(99, 102, 241, 0.4);
    border-radius: 12px;
}
.receipt-prompt-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.receipt-prompt-sub {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 1px;
}

.report-entity-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px;
    border-radius: 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.report-entity-card:hover {
    border-color: var(--accent-purple-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15);
}

.report-entity-card-info {
    flex: 1;
    min-width: 0;
}

.report-entity-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.report-entity-card-type {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: capitalize;
    margin-top: 2px;
    display: block;
}

.report-entity-card-total {
    text-align: right;
    flex-shrink: 0;
}

.report-entity-card-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-purple);
    display: block;
}

.report-entity-card-period {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

.report-entity-card-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
}

.report-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--accent-purple);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 8px;
    transition: var(--transition);
}

.report-back-btn:hover {
    color: var(--accent-purple);
}

.report-detail-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px;
}

.report-recent-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.report-recent-entry:last-child {
    border-bottom: none;
}

.report-recent-entry-info {
    flex: 1;
    min-width: 0;
}

.report-recent-entry-desc {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-recent-entry-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    display: block;
}

.report-recent-entry-amount {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
    margin-left: 12px;
}

@keyframes mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
}

.listening-card {
    text-align: left;
}

.listening-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--accent-purple);
    font-weight: 600;
}

.listening-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-red);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.live-transcript {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-primary);
    min-height: 60px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.final-text { color: var(--text-primary); }
.interim-text { color: var(--text-muted); font-style: italic; }

.processing-card {
    text-align: center;
    padding: 40px 24px;
}

.processing-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-light);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.processing-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.processing-sub {
    font-size: 13px;
    color: var(--text-muted);
}

.split-choice-card {
    text-align: center;
    padding: 32px 24px;
}
.split-choice-icon {
    width: 56px;
    height: 56px;
    background: var(--purple-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.split-choice-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.5;
}
.split-choice-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.split-choice-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
}
.split-preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.split-badge {
    background: var(--purple-bg);
    color: var(--accent-purple);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}
.split-entry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    transition: var(--transition);
}
.split-entry-card:hover {
    border-color: var(--border-light);
}
.split-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.split-entry-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-purple);
    background: var(--purple-bg);
    padding: 2px 10px;
    border-radius: 10px;
}
.split-entry-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: var(--transition);
}
.split-entry-remove:hover {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}
.split-entry-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.split-field-row {
    display: flex;
    gap: 10px;
}
.split-field-row > .preview-field {
    flex: 1;
}
.split-preview-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.split-preview-actions .btn-success {
    flex: 1;
}

.edit-card, .preview-card {
    text-align: left;
}

.field-label {
    display: block;
    font-size: 13px;
    color: var(--accent-purple);
    margin-bottom: 10px;
    font-weight: 600;
}

.edit-card textarea {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.5;
}

.preview-title {
    font-size: 18px;
    color: var(--accent-purple);
    margin-bottom: 20px;
    font-weight: 700;
}

.preview-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.preview-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.preview-field label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-row {
    display: flex;
    gap: 12px;
}

.preview-field.half { flex: 1; }

.preview-actions {
    display: flex;
    gap: 10px;
}

.section {
    margin-top: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header h3, .section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
}

.entry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.entry-card:hover {
    background: var(--bg-elevated);
    border-color: var(--border-light);
    transform: translateX(2px);
}

.entry-card:active {
    transform: scale(0.98);
}

.entry-info { flex: 1; min-width: 0; }

.entry-desc {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entry-property-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #22C55E;
    font-weight: 600;
    margin-bottom: 4px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 20px;
    padding: 2px 8px 2px 5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Property detected popup */
.property-popup-overlay {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: calc(100% - 32px);
    max-width: 400px;
    animation: slideUpFade 0.3s ease;
    display: block;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.property-popup-card {
    background: rgba(22, 27, 46, 0.97);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 20px;
    padding: 20px 20px 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(34,197,94,0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.property-popup-icon {
    width: 48px;
    height: 48px;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.property-popup-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.property-popup-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 16px;
    line-height: 1.4;
}

.property-popup-sub strong {
    color: #22C55E;
    font-weight: 600;
}

.property-popup-actions {
    display: flex;
    gap: 10px;
}

.property-popup-btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #22C55E, #16A34A);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.property-popup-btn-skip {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Property setup modal */
.prop-type-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.prop-type-btn {
    flex: 1;
    min-width: 80px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.prop-type-btn.active {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--purple-500, #7C3AED);
    color: #fff;
}

.prop-mic-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 58, 237, 0.15);
    border: 1.5px solid rgba(124, 58, 237, 0.4);
    border-radius: 12px;
    color: var(--purple-300, #C4B5FD);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 16px;
    cursor: pointer;
    width: 100%;
    transition: all 0.15s;
}

.prop-mic-btn.recording {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
    color: #EF4444;
    animation: pulse 1s infinite;
}

.prop-gps-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px 16px;
}

.prop-gps-label {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.prop-gps-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.prop-save-btn {
    background: linear-gradient(135deg, #7C3AED, #6D28D9);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.prop-success-details {
    margin-top: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 16px;
    width: 100%;
    max-width: 280px;
}

.prop-success-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 12px;
}

.prop-success-row:last-child {
    border-bottom: none;
}

.prop-success-label {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    flex-shrink: 0;
}

.prop-success-val {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    text-align: right;
}

.entry-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.entry-entity {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--purple-bg);
    color: var(--accent-purple);
    border-radius: 100px;
    font-weight: 500;
}

.category-tag {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border-radius: 100px;
    font-weight: 500;
}

.entry-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-left: 12px;
    white-space: nowrap;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-top: 1px solid var(--border-light);
    display: flex;
    min-height: 56px;
    padding: 4px 0 env(safe-area-inset-bottom, 4px);
    z-index: 50;
}

.light-mode .bottom-nav {
    border-top-color: var(--border-color);
}
.light-mode .nav-tab {
    color: var(--text-muted);
}
.light-mode .nav-tab svg {
    stroke: var(--text-muted);
}
.light-mode .nav-tab.active {
    color: var(--accent-purple);
}
.light-mode .nav-tab.active svg {
    stroke: var(--accent-purple);
}

.nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    background: transparent;
    color: var(--nav-inactive);
    font-size: 11px;
    font-weight: 500;
    border: none;
    border-radius: 0;
    width: auto;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.nav-tab svg {
    width: 22px;
    height: 22px;
    transition: var(--transition);
    stroke: var(--text-secondary);
}

.nav-tab.active {
    color: var(--purple-500, var(--accent-purple));
}

.nav-tab.active svg {
    stroke: var(--purple-500, var(--accent-purple));
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.6));
}

.nav-tab:hover {
    color: var(--text-primary);
}

.nav-tab:hover svg {
    stroke: var(--text-primary);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.search-bar svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.search-bar input {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 14px;
}

.search-bar input:focus {
    box-shadow: none;
}

.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: nowrap;
}

.filter-bar select, .filter-bar input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    font-size: 13px;
    background: var(--bg-card);
}

.entries-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.entries-search-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 12px;
    max-width: 160px;
}

.entries-search-mini svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.entries-search-mini input {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 13px;
    width: 100%;
    color: var(--text-primary);
}

.entries-search-mini input:focus {
    box-shadow: none;
    outline: none;
}

.entries-entity-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 16px 22px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.entries-entity-pills::-webkit-scrollbar { display: none; }

.entries-entity-pills .entity-pill {
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #666;
    transition: all 0.2s ease;
}

.entries-entity-pills .entity-pill:hover {
    border-color: var(--accent-purple);
    color: var(--text-primary);
}

.entries-entity-pills .entity-pill.active {
    background: #7C3AED;
    border-color: #7C3AED;
    color: #FFFFFF;
}

.entity-pill {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.entity-pill:hover {
    border-color: var(--accent-purple);
    color: var(--text-primary);
}

.entity-pill.active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: var(--text-primary);
}

.entries-time-filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 14px 22px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.entries-time-filters::-webkit-scrollbar { display: none; }

.time-filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    color: #555;
    transition: all 0.2s ease;
    position: relative;
}

.time-filter-btn:hover {
    color: var(--text-primary);
}

.time-filter-btn.active {
    color: #A78BFA;
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.4);
}

.time-filter-btn.active::after {
    display: none;
}

.entries-type-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.entries-type-tabs::-webkit-scrollbar { display: none; }

.type-tab {
    flex: 1;
    min-width: 0;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.2s ease;
    position: relative;
    text-align: center;
}

.type-tab:hover {
    color: var(--text-primary);
}

.type-tab.active {
    color: var(--accent-purple);
}

.type-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-purple);
    border-radius: 1px 1px 0 0;
}

.type-tab-count {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 10px;
    background: var(--bg-elevated);
    color: var(--text-muted);
    margin-left: 4px;
}

.type-tab.active .type-tab-count {
    background: var(--purple-bg);
    color: var(--accent-purple);
}

.type-tab-receipts {
    color: #34D399;
}
.type-tab-receipts:hover {
    color: #34D399;
}
.type-tab-count-receipts {
    background: rgba(52,211,153,0.15);
    color: #34D399;
}
.type-tab-receipts.active {
    color: #34D399;
}
.type-tab-receipts.active::after {
    background: #34D399;
}
.type-tab-receipts.active .type-tab-count-receipts {
    background: #34D399;
    color: #fff;
}

.entries-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 4px 0;
}

.cat-grid-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cat-grid-card:active {
    transform: scale(0.97);
}

.cat-grid-icon {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-grid-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 4px;
    min-height: 34px;
    display: flex;
    align-items: center;
}

.cat-grid-count {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.cat-grid-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-purple);
}

.cat-drilldown {}

.cat-drilldown-back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    padding: 4px 0 12px;
    cursor: pointer;
}

.cat-drilldown-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
}

.cat-drilldown-count {
    font-size: 13px;
    color: var(--text-muted);
}

.cat-drilldown-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-purple);
}

.cat-drilldown-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.cat-drilldown-entry:active {
    background: var(--bg-elevated);
}

.cat-drilldown-entry-left {
    flex: 1;
    min-width: 0;
}

.cat-drilldown-entry-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.cat-drilldown-entry-desc {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-drilldown-entry-meta {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.cat-drilldown-entry-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 12px;
}

.cat-drilldown-entry-amount {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.mileage-summary-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.mileage-summary-item {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.mileage-summary-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.mileage-deduction-value {
    color: var(--accent-purple);
}

.mileage-summary-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mileage-list, .hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mileage-entry, .hours-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.mileage-entry:active, .hours-entry:active {
    background: var(--bg-elevated);
}

.mileage-entry-left, .hours-entry-left {
    flex: 1;
    min-width: 0;
}

.mileage-entry-date, .hours-entry-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.mileage-entry-route {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mileage-entry-right, .hours-entry-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 12px;
}

.mileage-entry-miles {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.mileage-entry-deduct {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-purple);
}

.hours-entry-desc {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hours-progress-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.hours-progress-row {}

.hours-progress-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.hours-type-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hours-type-reps {
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-purple);
}

.hours-type-str {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.hours-progress-text {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.hours-progress-track {
    width: 100%;
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 4px;
    overflow: hidden;
}

.hours-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.hours-progress-reps {
    background: var(--accent-purple);
}

.hours-progress-str {
    background: var(--accent-blue);
}

.hours-entry-hrs {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.entries-month-group {
    padding: 0 16px;
}

.entries-month-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 12px 0 6px;
}

.entries-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.15s ease;
}

.entries-item:last-child {
    border-bottom: none;
}

.entries-item:hover {
    background: var(--bg-elevated);
    margin: 0 -16px;
    padding: 10px 16px;
}

.entries-item-left {
    flex: 1;
    min-width: 0;
}

.entries-item-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.entries-item-desc {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entries-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.entries-item-amount {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.entries-item-receipt {
    color: var(--accent-purple);
    font-size: 14px;
}

.entries-totals {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.entries-total-item {
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.entries-total-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.entries-total-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.pdf-period-content {
    max-width: 380px;
}

.pdf-period-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdf-period-btn {
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.pdf-period-btn:hover {
    border-color: var(--accent-purple);
    background: var(--purple-bg);
}

.pdf-confirm-summary {
    text-align: center;
    padding: 20px 0 8px;
}
.pdf-confirm-entity {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}
.pdf-confirm-period {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}
.pdf-loading-wrap {
    text-align: center;
    padding: 40px 0;
}
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.pdf-done-wrap {
    text-align: center;
    padding: 30px 0;
}
.btn-block {
    display: block;
    width: 100%;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-outline:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}
.pdf-custom-range {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.pdf-custom-range.hidden { display: none; }

.pdf-date-row {
    margin-bottom: 10px;
}

.pdf-date-row label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.pdf-date-row input {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
}

.entries-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.entries-empty-state svg {
    margin-bottom: 12px;
    opacity: 0.5;
}

.entries-empty-state p {
    font-size: 14px;
}

.report-period {
    margin-bottom: 20px;
}

.period-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.period-pills::-webkit-scrollbar { display: none; }

.period-pill {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transition: var(--transition);
    width: auto;
}

.period-pill:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.period-pill.active {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-light));
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

.custom-range {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.custom-range span {
    color: var(--text-muted);
    font-size: 13px;
}

.custom-range input {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.report-summary-card {
    background: rgba(var(--card-bg-raw), 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    transition: transform 0.2s, border-color 0.2s;
}
.report-summary-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-light);
}
.summary-card-value {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}
.summary-val-purple { color: var(--accent-purple) !important; }
.summary-val-blue { color: var(--accent-blue) !important; }
.summary-val-green { color: var(--accent-green) !important; }
.summary-card-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 4px;
}
.summary-card-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}
.summary-sub-green {
    color: var(--accent-green) !important;
}
.report-entity-select-wrap {
    margin-bottom: 14px;
}
.report-entity-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.report-entity-select-box {
    position: relative;
}
.report-entity-select-box select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(var(--card-bg-raw), 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px 40px 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.report-entity-select-box select:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.report-entity-select-box select option {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 8px;
}
.report-entity-select-box::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-secondary);
    pointer-events: none;
}

.report-time-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.report-time-filters::-webkit-scrollbar { display: none; }
.report-summary-card {
    cursor: pointer;
}
.report-summary-card.drilldown-active {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}
.report-drilldown {
    margin-bottom: 16px;
    max-height: 360px;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    background: rgba(var(--card-bg-raw), 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
}
.report-drilldown.hidden {
    display: none;
}
.report-drilldown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}
.report-drilldown-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.report-drilldown-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    line-height: 1;
    position: absolute;
    top: 10px;
    right: 12px;
}
.report-drilldown-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(var(--card-bg-raw), 0.3);
    gap: 12px;
}
.report-drilldown-item:last-child {
    border-bottom: none;
}
.rdi-date {
    font-size: 11px;
    color: var(--text-muted);
    min-width: 52px;
    flex-shrink: 0;
}
.rdi-desc {
    font-size: 13px;
    color: var(--text-primary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rdi-cat {
    font-size: 10px;
    color: var(--text-secondary);
    background: rgba(var(--card-bg-raw), 0.8);
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}
.rdi-amount {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
    text-align: right;
    min-width: 60px;
}
.rdi-amount.rdi-purple { color: var(--accent-purple); }
.rdi-amount.rdi-blue { color: var(--accent-blue); }
.rdi-amount.rdi-green { color: var(--accent-green); }
.report-section {
    margin-bottom: 20px;
}
.report-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.report-download-cards {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.report-dl-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.report-dl-card:hover {
    border-color: rgba(147,51,234,0.4);
    background: rgba(255,255,255,0.04);
}
.report-dl-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.report-dl-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.report-dl-sub {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
}
.rr-modal-content {
    max-width: 480px;
}
.rr-section {
    margin-bottom: 20px;
}
.rr-section-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.rr-period-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.rr-pill {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.2s;
}
.rr-pill-active {
    background: rgba(147,51,234,0.15);
    border-color: #9333EA;
    color: #C4B5FD;
}
.rr-custom-dates {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}
.rr-date-row {
    flex: 1;
}
.rr-date-row label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.rr-date-row input[type="date"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    font-size: 13px;
}
.rr-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.rr-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.2s;
}
.rr-chip-active {
    border-color: rgba(147,51,234,0.4);
    background: rgba(147,51,234,0.1);
    color: #C4B5FD;
}
.rr-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.rr-chip-check {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1.5px solid rgba(255,255,255,0.2);
    position: relative;
    flex-shrink: 0;
}
.rr-chip-active .rr-chip-check {
    border-color: #9333EA;
    background: #9333EA;
}
.rr-chip-active .rr-chip-check::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 3px;
    width: 5px;
    height: 8px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}
.rr-entity-select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239CA3AF' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.rr-entity-select:focus {
    outline: none;
    border-color: #9333EA;
}
.rr-preview-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(52,211,153,0.08);
    border: 1px solid rgba(52,211,153,0.2);
    border-radius: 10px;
    margin-top: 8px;
}
.rr-preview-box span {
    font-size: 13px;
    color: #34D399;
    font-weight: 500;
}
.cat-bar-row {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.cat-bar-row:last-child {
    border-bottom: none;
}
.cat-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.cat-bar-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.cat-bar-amount {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}
.cat-bar-pct {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 12px;
}
.cat-bar-track {
    width: 100%;
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 3px;
    overflow: hidden;
}
.cat-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}
.report-card {
    background: rgba(var(--card-bg-raw), 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}
.report-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.report-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.report-card-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-purple);
    background: var(--purple-bg);
    padding: 3px 10px;
    border-radius: 12px;
}

.report-stat-card {
    background: rgba(var(--card-bg-raw), 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.report-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}
.stat-expenses::before { background: linear-gradient(90deg, #22c55e, #16a34a); }
.stat-hours::before { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.stat-miles::before { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.stat-entries::before { background: linear-gradient(90deg, #f59e0b, #d97706); }

.report-stat-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.report-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}
.stat-expenses .report-stat-icon { background: var(--green-bg); color: var(--accent-green); }
.stat-hours .report-stat-icon { background: var(--purple-bg); color: var(--accent-purple); }
.stat-miles .report-stat-icon { background: var(--blue-bg); color: var(--accent-blue); }
.stat-entries .report-stat-icon { background: var(--orange-bg); color: var(--accent-orange); }

.report-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}
.report-stat-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 2px;
}

.reps-circular-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
}
.reps-circular {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}
.reps-ring {
    width: 100%;
    height: 100%;
}
#reps-ring-fill {
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.reps-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.reps-center-hours {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}
.reps-center-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}
.reps-details {
    flex: 1;
}
.reps-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}
.reps-detail-row:last-child { border-bottom: none; }
.reps-detail-label { font-size: 13px; color: var(--text-secondary); }
.reps-detail-value { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.reps-pct { color: var(--accent-purple); }

.category-section {
    border-bottom: 1px solid var(--border-color);
}
.category-section:last-child { border-bottom: none; }
.category-section.expanded { background: var(--bg-elevated); margin: 0 -20px; padding: 0 20px; border-radius: var(--radius); }

.category-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}
.category-row-clickable {
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}
.category-row-clickable:hover {
    opacity: 0.85;
}
.category-row-clickable:active {
    transform: scale(0.99);
}
.category-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.25s ease;
    display: flex;
    align-items: center;
}
.category-section.expanded .category-chevron {
    transform: rotate(180deg);
}
.category-count {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1px 7px;
    margin-left: 4px;
    vertical-align: middle;
}

.category-entries-list {
    padding: 0 0 8px 22px;
}
.category-entries-list.hidden { display: none; }

.cat-entry-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin-bottom: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.cat-entry-row:hover {
    border-color: var(--border-light);
}
.cat-entry-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.cat-entry-date {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}
.cat-entry-desc {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cat-entry-entity {
    font-size: 11px;
    color: var(--text-secondary);
}
.cat-entry-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 10px;
}
.cat-entry-amount {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}
.cat-entry-edit {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 5px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.cat-entry-edit:hover {
    color: var(--accent-purple);
    border-color: var(--accent-purple);
    background: var(--purple-bg);
}

.category-color {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}
.category-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.category-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}
.category-bar-wrap {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 100px;
}
.category-bar-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-values {
    text-align: right;
    flex-shrink: 0;
}
.category-amount {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}
.category-percent {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}

.chart-container {
    height: 220px;
    position: relative;
}

.entity-compare-row {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.entity-compare-row:last-child { border-bottom: none; }
.entity-compare-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.entity-compare-name {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.entity-color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.entity-compare-amount {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.entity-compare-bar-wrap {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 100px;
    overflow: hidden;
}
.entity-compare-bar {
    height: 100%;
    border-radius: 100px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.export-section {
    margin-top: 24px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.export-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}
.export-option-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-light));
    color: white;
    border: none;
}
.export-option-primary:hover {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple));
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}
.export-option-primary .export-option-icon {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.export-option-title {
    font-size: 15px;
    font-weight: 700;
    display: block;
}
.export-option-desc {
    font-size: 12px;
    opacity: 0.85;
    display: block;
    margin-top: 2px;
}
.export-option-text {
    display: flex;
    flex-direction: column;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 12px;
    min-height: 40px;
}

.settings-label {
    font-size: 14px;
    color: var(--text-secondary);
    flex-shrink: 0;
    white-space: nowrap;
}

.settings-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.settings-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    gap: 12px;
}
.settings-field:last-child { border-bottom: none; }
.settings-field-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}
.settings-field-label {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.settings-field-value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.3;
    word-break: break-word;
}

.settings-entity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.settings-entity-item:last-child {
    border-bottom: none;
}

.settings-entity-item:hover {
    opacity: 0.8;
}

.settings-entity-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-entity-name {
    font-size: 15px;
    font-weight: 500;
}

.settings-entity-type {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: capitalize;
}

.settings-entity-arrow {
    color: var(--text-muted);
    font-size: 18px;
}

.app-info {
    text-align: center;
    padding: 32px 0 20px;
    color: var(--text-muted);
    font-size: 12px;
}

.app-info p {
    margin-bottom: 4px;
}

.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(4px);
    animation: modal-in 0.25s ease;
}

@keyframes modal-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

#receipt-modal-img[src=""] {
    display: none;
}
.modal-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--modal-overlay);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modal-slide-up 0.3s ease, modal-slide-in 0.25s ease;
}

@keyframes modal-slide-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modal-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    padding: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 8px;
}

.empty-state::before {
    content: '';
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--bg-elevated);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.5'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

@media (min-width: 520px) {
    .modal-content {
        border-radius: var(--radius-lg);
        max-height: 85vh;
    }

    .modal {
        align-items: center;
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .stats-grid[data-visible="2"] {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid[data-visible="3"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mileage-calc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--accent-green);
    margin-top: 4px;
    padding: 6px 10px;
    background: var(--green-bg);
    border-radius: var(--radius-sm);
}
.mileage-calc.hidden { display: none; }
.quick-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.quick-actions .btn-outline-dashed { flex: 1; }

@media (max-width: 380px) {
    .filter-bar {
        flex-wrap: wrap;
    }

    .filter-bar select, .filter-bar input {
        min-width: calc(50% - 4px);
    }
}

.notifications-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.notification-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: rgba(var(--card-bg-raw), 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.notification-warning { border-left: 3px solid var(--accent-orange); }
.notification-success { border-left: 3px solid var(--accent-green); }
.notification-info { border-left: 3px solid var(--accent-blue); }
.notif-icon { flex-shrink: 0; }
.notif-message {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}
.notif-dismiss {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.notif-dismiss:hover { color: var(--text-primary); }

.voice-buttons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.receipt-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--bg-elevated);
    border: 2px dashed var(--border-light);
    border-radius: 16px;
    padding: 16px 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    width: auto;
}
.receipt-btn:hover, .receipt-btn:active {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}
.receipt-btn-text { font-size: 12px; }
.receipt-thumbnail {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid var(--border-color);
}
.receipt-thumb-area {
    margin-top: 8px;
}
.receipt-thumb-area.hidden { display: none; }
.receipt-thumb-preview {
    position: relative;
    display: inline-block;
}
.receipt-thumb-preview .receipt-thumbnail {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-light);
}
.receipt-remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.receipt-indicator {
    cursor: pointer;
    display: inline-flex;
    margin-left: 6px;
    opacity: 0.8;
}
.receipt-indicator:hover { opacity: 1; }
.receipt-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(147,51,234,0.15);
    border: 1px solid rgba(147,51,234,0.3);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #C4B5FD;
    cursor: pointer;
    white-space: nowrap;
    margin-left: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
}
.receipt-badge:hover {
    background: rgba(147,51,234,0.25);
}
.receipt-modal-content {
    max-width: 500px;
}
.receipt-modal-body {
    text-align: center;
    padding: 8px;
}
.receipt-modal-body img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: var(--radius);
}
.receipt-zoom-wrap {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pinch-zoom;
    text-align: center;
}
.receipt-modal-details {
    padding: 16px 4px 0;
    text-align: left;
}
.receipt-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.receipt-detail-row:last-of-type {
    border-bottom: none;
}
.receipt-detail-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}
.receipt-detail-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}
.receipts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 4px 0;
}
@media (min-width: 480px) {
    .receipts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.receipts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.receipt-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.receipt-list-item:hover {
    border-color: rgba(52,211,153,0.4);
}
.receipt-list-left {
    flex: 1;
    min-width: 0;
    margin-right: 12px;
}
.receipt-list-desc {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.receipt-list-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}
.receipt-list-amount {
    font-size: 13px;
    font-weight: 600;
    color: #34D399;
    margin-top: 3px;
}
.receipt-list-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid rgba(52,211,153,0.3);
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}
.receipt-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.receipt-grid-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.receipt-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.receipt-grid-item:active {
    transform: scale(0.97);
}
.receipt-grid-thumb {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: var(--bg-elevated);
}
.receipt-grid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.receipt-grid-info {
    padding: 10px;
}
.receipt-grid-date {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}
.receipt-grid-desc {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.receipt-grid-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-purple);
}
.report-donut-wrap {
    display: flex;
    justify-content: center;
    padding: 16px 0;
    margin-bottom: 8px;
}
.report-donut-wrap canvas {
    max-width: 200px !important;
    max-height: 200px !important;
}
.mom-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.mom-item:last-child { border-bottom: none; }
.mom-cat { font-size: 13px; color: var(--text-secondary); flex: 1; }
.mom-values { font-size: 13px; color: var(--text-muted); }
.mom-change {
    font-size: 13px;
    font-weight: 600;
    margin-left: 12px;
    min-width: 70px;
    text-align: right;
}
.mom-change.up { color: var(--accent-red); }
.mom-change.down { color: var(--accent-green); }
.mom-change.same { color: var(--text-muted); }
.top-deduction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.top-deduction-item:last-child { border-bottom: none; }
.top-deduction-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--purple-bg);
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.top-deduction-info { flex: 1; min-width: 0; }
.top-deduction-desc {
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.top-deduction-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    gap: 6px;
    margin-top: 2px;
}
.top-deduction-amount {
    font-weight: 600;
    color: var(--accent-green);
    white-space: nowrap;
}
.recurring-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}
.recurring-item:last-child { border-bottom: none; }
.recurring-paused { opacity: 0.5; }
.recurring-info { flex: 1; min-width: 0; }
.recurring-desc {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.recurring-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    flex-wrap: wrap;
    align-items: center;
}
.recurring-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.recurring-amount {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}
.recurring-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
}
.recurring-action-btn:hover { color: var(--text-primary); background: var(--bg-elevated); }
.recurring-delete:hover { color: var(--accent-red); }
.empty-state-small {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}
.tutorial-overlay.hidden { display: none; }
.tutorial-spotlight {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.8), 0 0 30px 8px rgba(139, 92, 246, 0.5);
    border: 2px solid var(--accent-purple);
    pointer-events: none;
    transition: all 0.4s ease;
    display: none;
    z-index: 1001;
}
.tutorial-spotlight.active { display: block; }
.tutorial-card {
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    z-index: 1002;
    position: relative;
    animation: tutorialSlideIn 0.3s ease;
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.15);
}
@keyframes tutorialSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.tutorial-progress {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 24px;
}
.tutorial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light);
    transition: var(--transition);
}
.tutorial-dot.active {
    background: var(--accent-purple);
    width: 20px;
    border-radius: 4px;
}
.tutorial-step { }
.tutorial-icon { margin-bottom: 16px; }
.tutorial-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.tutorial-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}
.tutorial-pointer {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    color: var(--accent-purple);
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    animation: tutorialBounce 1.5s ease infinite;
}
@keyframes tutorialBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}
.tutorial-highlight-target {
    position: relative;
    z-index: 1003;
    animation: tutorialGlow 1.5s ease infinite;
}
@keyframes tutorialGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(139, 92, 246, 0.4); }
    50% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.8), 0 0 40px rgba(139, 92, 246, 0.3); }
}
.tutorial-example {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: left;
}
.tutorial-example-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}
.tutorial-example-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tutorial-pill {
    background: var(--purple-bg);
    color: var(--accent-purple);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}
.tutorial-example-quote {
    font-size: 13px;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.4;
}
.tutorial-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}
.entry-tag {
    background: var(--purple-bg);
    color: var(--accent-purple);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
}
.daily-total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.daily-total-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.daily-total-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-green);
}

.glass-card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-primary:active, .btn-success:active, .btn-outline:active, .btn-ghost:active, .export-option:active, .mic-button:active, .receipt-btn:active, .entity-pill:active, .nav-tab:active, .period-pill:active, .dash-action-link:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--accent-purple-light);
    border-radius: 2px;
    animation: nav-indicator-in 0.25s ease;
}
@keyframes nav-indicator-in {
    from { width: 0; opacity: 0; }
    to { width: 24px; opacity: 1; }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-card {
    height: 80px;
    margin-bottom: 8px;
}
.skeleton-stat {
    height: 90px;
}
.skeleton-text {
    height: 16px;
    width: 60%;
    margin-bottom: 8px;
}

.pricing-link {
    font-size: 0.85rem;
    color: var(--accent-purple);
    margin-top: 4px;
}

.pricing-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 70px 16px 40px;
    overflow-y: auto;
    max-height: 100vh;
    -webkit-overflow-scrolling: touch;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.pricing-back-btn {
    position: absolute;
    left: 0;
    top: 0;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.pricing-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pricing-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

@media (min-width: 640px) {
    .pricing-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 20px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.pricing-card.popular {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 1px var(--accent-purple), 0 4px 16px rgba(99,102,241,0.2);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple));
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 3px 12px;
    border-radius: 12px;
    white-space: nowrap;
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 20px;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.plan-price {
    margin-bottom: 4px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.plan-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.plan-features li.feature-disabled {
    color: var(--text-muted);
    opacity: 0.6;
}

.pricing-btn {
    width: 100%;
}

.plan-note {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin: 8px 0 0;
    line-height: 1.3;
}

.comparison-section {
    margin-bottom: 40px;
}

.comparison-title, .faq-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    min-width: 500px;
}

.comparison-table th, .comparison-table td {
    padding: 10px 14px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.comparison-table th:first-child, .comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table th {
    background: var(--surface);
    font-weight: 700;
    font-size: 0.8rem;
}

.highlight-col {
    background: rgba(99, 102, 241, 0.06);
}

.check-yes {
    color: var(--accent-green);
    font-weight: 700;
}

.check-no {
    color: var(--text-muted);
    opacity: 0.5;
}

.faq-section {
    margin-bottom: 32px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-item:hover {
    background: var(--surface-hover, var(--surface));
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.faq-chevron {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    margin-top: 10px;
}

.pricing-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.payment-modal-content {
    max-width: 440px;
}

.payment-plan-summary {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.payment-plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.payment-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.payment-period {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.payment-cancel-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--accent-green);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.apple-pay-btn, .google-pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}

.apple-pay-btn:hover, .google-pay-btn:hover {
    opacity: 0.9;
}

.apple-pay-btn {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.google-pay-btn {
    background: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.payment-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.payment-divider::before, .payment-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.card-form .form-group {
    margin-bottom: 12px;
}

.card-form .form-row {
    display: flex;
    gap: 12px;
}

.card-form .form-group.half {
    flex: 1;
}

.card-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.card-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    box-sizing: border-box;
}

.card-form input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.full-width {
    width: 100%;
}

.promo-section {
    margin-top: 16px;
    text-align: center;
}

.promo-toggle {
    background: none;
    border: none;
    color: var(--accent-purple);
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
}

.promo-input-area {
    margin-top: 10px;
}

.promo-input-row {
    display: flex;
    gap: 8px;
}

.promo-input-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.promo-hint {
    font-size: 0.78rem;
    margin-top: 6px;
}

.confetti-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -10px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.pwa-install-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius);
    margin-bottom: 16px;
    animation: page-fade-in 0.35s ease;
}
.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.pwa-install-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pwa-install-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pwa-install-text strong {
    font-size: 14px;
    color: var(--text-primary);
}
.pwa-install-text span {
    font-size: 12px;
    color: var(--text-muted);
}
.pwa-install-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 12px;
}
@media (max-width: 480px) {
    .pwa-install-banner {
        flex-direction: column;
        gap: 12px;
    }
    .pwa-install-actions {
        margin-left: 0;
        width: 100%;
    }
    .pwa-install-actions .btn-sm {
        flex: 1;
    }
}

/* ======== LANDING PAGE ======== */
#landing-screen.active {
    display: block;
    overflow-y: auto;
    height: 100vh;
}

.landing-page {
    width: 100%;
    overflow-x: hidden;
}

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    background: rgba(var(--card-bg-raw), 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}
.landing-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.code-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}
.code-logo-icon {
    margin-bottom: 8px;
    line-height: 0;
}
.code-logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1;
}
.code-logo-tm {
    font-size: 0.5em;
    vertical-align: super;
    font-weight: 600;
    color: var(--accent-purple);
}
.code-logo-tagline {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 500;
}
.code-logo-lg .code-logo-text {
    font-size: 36px;
}
.code-logo-lg .code-logo-tagline {
    font-size: 14px;
}
.code-logo-sm {
    flex-direction: row;
    gap: 8px;
    margin-bottom: 0;
}
.code-logo-sm .code-logo-icon {
    margin-bottom: 0;
}

.landing-nav-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
.landing-nav-logo img {
    width: 32px;
    height: 32px;
}
.landing-hero img[alt="Deduxe"] {
    max-width: 220px !important;
    width: 220px !important;
    height: auto !important;
}
.landing-nav-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}
.landing-nav-tagline {
    display: none;
}
.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.landing-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.landing-nav-link:hover {
    color: var(--text-primary);
}

.landing-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 24px 16px;
    display: flex;
    align-items: center;
    gap: 60px;
}
.landing-hero-content {
    flex: 1;
    min-width: 0;
}
.landing-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--purple-bg);
    color: var(--accent-purple);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}
.landing-hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -1.5px;
}
.gradient-text {
    background: linear-gradient(135deg, #6366f1, var(--accent-purple-light), #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.landing-hero-sub {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 480px;
}
.landing-hero-btns {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
    max-width: 320px;
}
.landing-nav button, .landing-cta button {
    width: auto;
}
.landing-hero-btns button,
.landing-hero-btns a {
    width: 100%;
    text-align: center;
    justify-content: center;
}
.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.landing-hero-note {
    font-size: 13px;
    color: var(--text-muted);
}
.landing-hero-mockup {
    flex: 0 0 320px;
    position: relative;
}
.mockup-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}
.mockup-img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 300px;
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(99, 102, 241, 0.2), 0 8px 32px rgba(0,0,0,0.4);
    display: block;
    margin: 0 auto;
}

.landing-section {
    padding: 100px 24px;
}
.landing-section-alt {
    background: var(--bg-secondary);
}
.landing-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.landing-section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-badge {
    display: inline-block;
    padding: 5px 14px;
    background: var(--purple-bg);
    color: var(--accent-purple);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.landing-section-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}
.landing-section-sub {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 12px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.3s ease;
}
.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.1);
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.feature-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    flex: 1;
    max-width: 300px;
    text-align: center;
    transition: all 0.3s ease;
}
.step-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, var(--accent-purple-light));
    color: white;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.step-connector {
    flex-shrink: 0;
}

.proof-block {
    text-align: center;
    margin-bottom: 60px;
}
.proof-headline {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.proof-sub {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}
.proof-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}
.proof-stat {
    text-align: center;
}
.proof-stat-num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--accent-purple);
}
.proof-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.testimonial-stars {
    color: var(--accent-orange);
    font-size: 16px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}
.testimonial-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, var(--accent-purple-light));
    color: white;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimonial-author strong {
    font-size: 13px;
}
.testimonial-author .text-muted {
    font-size: 12px;
    color: var(--text-muted);
}

.landing-cta {
    text-align: center;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, transparent 100%);
}
.cta-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.cta-sub {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.landing-footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 24px 32px;
    background: var(--bg-secondary);
}
.landing-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 40px;
}
.footer-brand {
    flex: 0 0 280px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.footer-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}
.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 4px;
}
.footer-email {
    font-size: 13px;
    margin-top: 6px;
}
.footer-email a {
    color: var(--accent-purple);
    text-decoration: none;
}
.footer-email a:hover {
    text-decoration: underline;
}
.footer-links {
    display: flex;
    gap: 60px;
}
.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: var(--accent-purple);
}
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .landing-hero {
        flex-direction: column;
        padding-top: 100px;
        text-align: center;
        gap: 40px;
    }
    .landing-hero-title {
        font-size: 40px;
    }
    .landing-hero-sub {
        margin: 0 auto 32px;
    }
    .landing-hero-btns {
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }
    .landing-hero-mockup {
        flex: 0 0 auto;
    }
    .features-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .steps-grid {
        flex-direction: column;
    }
    .step-connector {
        transform: rotate(90deg);
    }
    .proof-stats {
        gap: 30px;
    }
    .proof-headline {
        font-size: 28px;
    }
    .landing-section-title {
        font-size: 30px;
    }
    .footer-top {
        flex-direction: column;
        gap: 32px;
    }
    .footer-brand {
        flex: none;
        text-align: center;
    }
    .footer-logo {
        justify-content: center;
    }
    .footer-links {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    .landing-nav-link {
        display: none;
    }
}
@media (max-width: 480px) {
    .landing-hero-title {
        font-size: 32px;
    }
    .proof-stats {
        flex-direction: column;
        gap: 20px;
    }
    .cta-title {
        font-size: 28px;
    }
}

/* Theme Toggle Switch */
.theme-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}
.theme-toggle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.theme-toggle-label {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}
.theme-toggle-hint {
    font-size: 12px;
    color: var(--text-muted);
}
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--border-light);
    border-radius: 26px;
    transition: 0.3s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-light));
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.track-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    margin-top: 8px;
}
.track-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-secondary);
}
.track-toggle-row + .track-toggle-row {
    border-top: 1px solid var(--border-light);
}
.track-toggle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.track-toggle-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}
.track-toggle-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.dash-extra-buttons {
    display: none;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 18px;
}
.dash-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.dash-action-btn:hover {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.08);
    color: var(--accent-purple);
}
.dash-action-btn:active {
    transform: scale(0.97);
}
.dash-action-icon {
    display: flex;
    align-items: center;
    color: var(--accent-purple);
}

.reps-progress-wrap {
    margin-top: 20px;
    padding: 0 16px;
}
.reps-progress-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 18px 20px;
}
.reps-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.reps-progress-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}
.reps-progress-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-purple);
}
.reps-progress-bar-bg {
    width: 100%;
    height: 10px;
    background: var(--border-light);
    border-radius: 10px;
    overflow: hidden;
}
.reps-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-purple));
    border-radius: 10px;
    transition: width 0.6s ease;
    min-width: 0;
}
.reps-progress-status {
    margin: 8px 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}
.reps-progress-status.qualified {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== LANDING PAGE LIGHT MODE — FULL OVERRIDE ===== */
/* ===== APP COMPONENT LIGHT MODE ===== */

.who-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.who-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.2s, border-color 0.2s;
}
.who-card:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.3);
}
.who-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.who-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
@media (max-width: 768px) {
    .who-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .who-grid {
        grid-template-columns: 1fr;
    }
}
.settings-plan-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}
.settings-plan-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.settings-plan-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-purple);
}
.settings-plan-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.settings-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.settings-toggle-item:last-child {
    border-bottom: none;
}
.settings-toggle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.settings-toggle-label {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}
.settings-toggle-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.optional-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.auth-form .form-row {
    display: flex;
    gap: 12px;
}
.auth-form .form-row .input-group.half {
    flex: 1;
}

.admin-promo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.admin-promo-item:last-child {
    border-bottom: none;
}
.admin-promo-code {
    font-weight: 700;
    font-size: 14px;
    color: var(--accent-purple);
    font-family: monospace;
    letter-spacing: 1px;
}
.admin-promo-detail {
    font-size: 12px;
    color: var(--text-secondary);
}
.pricing-promo-section {
    text-align: center;
    margin-top: 24px;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.expense-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    animation: fadeIn 0.2s ease;
}
.expense-modal.hidden { display: none; }
#voice-note-modal { z-index: 5000; }
.expense-modal-overlay {
    display: none;
}
.expense-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100vh;
    overflow-y: auto;
    background: var(--bg-primary);
    border-radius: 0;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.expense-modal-content::-webkit-scrollbar { width: 4px; }
.expense-modal-content::-webkit-scrollbar-thumb { background: var(--accent-purple); border-radius: 4px; }
.expense-modal-close {
    position: fixed;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
.expense-modal-close:hover { background: rgba(255,255,255,0.15); }
.expense-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 24px 0;
}
.expense-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.expense-step {
    animation: fadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 24px 24px;
}
#expense-step-choose {
    justify-content: center;
    align-items: center;
}
.expense-step.hidden { display: none; }

/* Choose step */
.expense-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 24px 0;
}
.entry-options-title {
    color: #FFFFFF;
    font-size: 22px;
    text-align: center;
    padding: 20px 0;
}

.entry-options-list {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    gap: 12px;
}

.entry-option-card {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px;
    margin-bottom: 12px;
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
}

.entry-option-icon {
    width: 40px;
    height: 40px;
    margin-right: 16px;
    flex-shrink: 0;
}

.entry-option-icon svg {
    width: 40px;
    height: 40px;
    color: var(--text-primary);
}

.entry-option-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.entry-option-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-left: 12px;
}

.entry-option-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
}

.entry-option-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.entry-manual-link {
    text-align: center;
    margin-top: 16px;
    padding-bottom: 8px;
}

.entry-manual-link a {
    color: #A78BFA;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}
.entry-manual-link a:hover {
    color: var(--accent-purple);
}

.expense-back-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.expense-back-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

.expense-cards-3 {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.expense-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px;
    border-radius: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.expense-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
}
.expense-card:active { transform: scale(0.97); }
.expense-card-voice {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-hover));
}
.expense-card-receipt {
    background: var(--bg-card);
    border-color: var(--accent-purple);
}
.expense-card-manual {
    background: var(--bg-card);
    border-color: rgba(148, 163, 184, 0.3);
}
.expense-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
}
.expense-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.expense-card-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.4;
}
.expense-card-example {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    line-height: 1.4;
    font-style: italic;
    margin-top: 4px;
}
.expense-manual-link {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    padding: 8px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.expense-manual-link:hover { color: var(--accent-purple-light); }

/* Listen step - full screen centered */
.expense-listen-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex: 1;
    padding: 40px 0;
    min-height: 50vh;
}
.expense-mic-btn {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-hover));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.3), 0 0 80px rgba(124, 58, 237, 0.15);
}
.expense-mic-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.4), 0 0 100px rgba(124, 58, 237, 0.2);
}
.expense-mic-btn:active { transform: scale(0.95); }
.expense-mic-btn.listening {
    background: linear-gradient(135deg, var(--accent-purple-light), var(--accent-purple));
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.5), 0 0 100px rgba(139, 92, 246, 0.25);
}
.expense-mic-pulse {
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.4);
    opacity: 0;
    pointer-events: none;
}
.expense-mic-btn.listening .expense-mic-pulse {
    animation: micPulseRing 1.5s ease-out infinite;
    border-color: rgba(139, 92, 246, 0.6);
}
.expense-mic-wave-1,
.expense-mic-wave-2,
.expense-mic-wave-3 {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(139, 92, 246, 0.3);
    opacity: 0;
    pointer-events: none;
}
.expense-mic-wave-1 { top: -20px; left: -20px; right: -20px; bottom: -20px; }
.expense-mic-wave-2 { top: -35px; left: -35px; right: -35px; bottom: -35px; }
.expense-mic-wave-3 { top: -50px; left: -50px; right: -50px; bottom: -50px; }
.expense-mic-btn.listening .expense-mic-wave-1 {
    animation: micWaveExpand 2s ease-out infinite;
}
.expense-mic-btn.listening .expense-mic-wave-2 {
    animation: micWaveExpand 2s ease-out 0.4s infinite;
}
.expense-mic-btn.listening .expense-mic-wave-3 {
    animation: micWaveExpand 2s ease-out 0.8s infinite;
}
@keyframes micPulseRing {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}
@keyframes micWaveExpand {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.4); opacity: 0; }
}
.expense-listen-status {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
.expense-live-transcript {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 16px 20px;
    width: 100%;
    max-width: 400px;
    min-height: 60px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    border: 1px solid rgba(139, 92, 246, 0.2);
    text-align: center;
}
.expense-live-transcript .final-text { color: var(--text-primary); }
.expense-live-transcript .interim-text { color: var(--text-secondary); font-style: italic; }
.expense-live-transcript.hidden { display: none; }
.expense-listen-hints {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
}
.expense-hint {
    font-size: 12px;
    color: rgba(148, 163, 184, 0.6);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.expense-hint::before {
    content: "\1F4A1";
    font-size: 11px;
}
.expense-listen-actions {
    display: flex;
    justify-content: center;
    padding-top: 16px;
}
.expense-done-btn {
    min-width: 180px;
    padding: 14px 28px;
    font-size: 15px;
    border-radius: 14px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: white;
}
.expense-done-btn:hover {
    background: rgba(139, 92, 246, 0.3);
}

/* Edit transcript step */
.expense-edit-area {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 16px;
}
.expense-edit-area textarea {
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
    padding: 16px;
    color: var(--text-primary);
    font-size: 15px;
    resize: none;
}
.expense-edit-area textarea:focus {
    border-color: var(--accent-purple);
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Processing step */
.expense-processing-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex: 1;
    min-height: 50vh;
}
.expense-processing-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
.expense-processing-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Split actions */
.expense-split-actions {
    display: flex;
    gap: 10px;
    margin: 16px 0;
}
.expense-split-actions .btn-primary,
.expense-split-actions .btn-outline {
    flex: 1;
}
.expense-split-container {
    max-height: 50vh;
    overflow-y: auto;
}

/* Preview/Review fields - redesigned */
.expense-preview-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 16px 0;
}
.expense-amount-display {
    text-align: center;
    padding: 20px 0 8px;
}
.expense-amount-display .amount-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent-purple-light);
    letter-spacing: -1px;
}
.expense-amount-display .amount-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}
.expense-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.expense-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.expense-field input,
.expense-field select,
.expense-field textarea {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.expense-field input:focus,
.expense-field select:focus,
.expense-field textarea:focus {
    border-color: var(--accent-purple);
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.voice-editable-field {
    border: 1px dashed rgba(124, 58, 237, 0.4) !important;
    background: rgba(124, 58, 237, 0.05) !important;
}
.voice-editable-field:focus {
    border-style: solid !important;
    border-color: var(--accent-purple) !important;
    background: var(--bg-card) !important;
}
.voice-edit-hint {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
    padding-left: 2px;
}
.expense-input-lg {
    font-size: 20px !important;
    font-weight: 700;
    padding: 14px 16px !important;
}
.expense-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Receipt attach area */
.expense-receipt-attach {
    margin: 12px 0;
}
.expense-receipt-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px;
    border: 2px dashed rgba(139, 92, 246, 0.4);
    border-radius: 16px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    transition: background 0.2s, border-color 0.2s;
    background: rgba(139, 92, 246, 0.05);
}
.expense-receipt-box:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-purple-light);
}

.receipt-attach-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 24px;
    margin: 16px 0;
    border: 2px dashed var(--border-light);
    border-radius: 12px;
    background: var(--bg-card);
    cursor: pointer;
    text-align: center;
}

.receipt-attach-title {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: bold;
    margin-top: 8px;
}

.receipt-attach-desc {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 4px;
}

.receipt-attach-area.has-receipt {
    border-color: var(--accent-green);
    background: rgba(34, 197, 94, 0.08);
}

.hours-type-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
}
.hours-type-header {
    display: flex;
    align-items: center;
    gap: 14px;
}
.hours-type-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hours-type-icon-reps {
    background: rgba(124, 58, 237, 0.2);
}
.hours-type-icon-str {
    background: rgba(59, 130, 246, 0.2);
}
.hours-type-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}
.hours-type-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}
.hours-type-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.hours-type-progress {
    margin-top: 14px;
}
.hours-type-progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.hours-type-progress-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
.hours-type-progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}
.hours-type-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}
.hours-type-fill-reps {
    background: var(--accent-purple);
}
.hours-type-fill-str {
    background: var(--accent-blue);
}
#hours-step-choose {
    justify-content: center;
    align-items: center;
}

/* Preview actions - save button */
.expense-preview-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    padding-bottom: 20px;
}
.expense-save-btn {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 14px;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-hover));
    border: none;
    color: white;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}
.expense-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(124, 58, 237, 0.4);
}
.expense-save-btn:active { transform: scale(0.98); }

/* Success step - animated checkmark */
.expense-success-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex: 1;
    min-height: 60vh;
    text-align: center;
}
.expense-success-check {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes scaleIn {
    0% { transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.expense-success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.expense-success-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.admin-stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.admin-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-purple);
    line-height: 1;
}
.admin-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.admin-user-count {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}
.admin-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.admin-user-row:last-child { border-bottom: none; }
.admin-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-purple-light);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}
.admin-user-info {
    flex: 1;
    min-width: 0;
}
.admin-user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-user-email {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-user-meta {
    text-align: right;
    flex-shrink: 0;
}
.admin-user-plan {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 2px;
}
.admin-user-plan.free { background: var(--bg-tertiary); color: var(--text-secondary); }
.admin-user-plan.pro { background: rgba(139,92,246,0.15); color: var(--accent-purple); }
.admin-user-plan.business { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.admin-user-date {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    display: block;
}
.admin-user-entries {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    display: block;
}
.admin-promo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.admin-promo-row:last-child { border-bottom: none; }
.admin-promo-code-badge {
    font-family: monospace;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-purple);
    background: rgba(139,92,246,0.1);
    padding: 2px 8px;
    border-radius: 6px;
}
.admin-promo-detail-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
@media (max-width: 600px) {
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .expense-cards { gap: 8px; }
    .expense-cards-3 { grid-template-columns: 1fr 1fr 1fr; }
    .expense-cards-3 .expense-card { padding: 14px 8px; }
    .expense-cards-3 .expense-card-icon { width: 48px; height: 48px; }
    .expense-cards-3 .expense-card-title { font-size: 13px; }
    .expense-cards-3 .expense-card-desc { font-size: 11px; }
    .expense-card { padding: 20px 12px; }
    .expense-field-row { grid-template-columns: 1fr; }
    .expense-step { padding: 0 16px 16px; }
    .expense-modal-header { padding: 20px 16px 0; }
}

/* --- Expense Summary Cards & Category Breakdown --- */
.exp-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
    row-gap: 16px;
    padding: 0 4px 20px;
}

.exp-summary-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 28px 20px;
    text-align: center;
}

.exp-summary-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.exp-val-green { color: #10B981; }
.exp-val-purple { color: #A78BFA; }
.exp-val-default { color: #FFFFFF; }

.exp-summary-label {
    font-size: 15px;
    color: #9CA3AF;
    margin-top: 8px;
    font-weight: 500;
}

.exp-summary-sub {
    font-size: 11px;
    color: #9CA3AF;
    margin-bottom: 2px;
}

.exp-cat-breakdown-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    padding: 18px 22px 14px;
}

.exp-cat-breakdown-list {
    padding: 0 22px;
}

.exp-cat-row {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.exp-cat-row:last-child {
    border-bottom: none;
}

.exp-cat-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.exp-cat-row-name {
    font-size: 14px;
    font-weight: 600;
    color: #E0E0E0;
}

.exp-cat-row-amount {
    font-size: 14px;
    font-weight: 700;
}

.exp-cat-row-pct {
    font-size: 12px;
    color: #555;
    font-weight: 400;
}

.exp-cat-bar-bg {
    height: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.exp-cat-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.4s ease;
    min-width: 2px;
}

/* --- Transaction Toggle & Collapsible List --- */
.tx-toggle-btn {
    margin: 20px 22px 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.tx-toggle-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tx-toggle-icon {
    width: 40px;
    height: 40px;
    background: rgba(124, 58, 237, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tx-toggle-title {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
}

.tx-toggle-sub {
    font-size: 12px;
    color: #555;
    margin-top: 2px;
}

.tx-toggle-arrow {
    font-size: 18px;
    color: #555;
    transition: transform 0.3s ease;
    display: inline-block;
}

.tx-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 22px;
}

.tx-collapsible.open {
    max-height: 5000px;
}

.tx-date-header {
    font-size: 12px;
    font-weight: 600;
    color: #3A3A4A;
    padding: 18px 0 8px;
}

.tx-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.tx-card-bar {
    width: 4px;
    height: 38px;
    border-radius: 4px;
    flex-shrink: 0;
}

.tx-card-info {
    flex: 1;
    min-width: 0;
}

.tx-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #E0E0E0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-card-cat {
    font-size: 11px;
    color: #4A4A5A;
    margin-top: 3px;
}

.tx-card-amount {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    flex-shrink: 0;
}

/* ============================================
   LIGHT MODE OVERRIDES - DO NOT EDIT ABOVE
   ============================================ */

/* --- Page & App Backgrounds --- */
[data-theme="light"] body,
[data-theme="light"] .screen,
[data-theme="light"] #app-shell {
    background-color: #FFFFFF !important;
    color: #1F2937 !important;
}

/* --- Navigation --- */
[data-theme="light"] .bottom-nav {
    background-color: #FFFFFF !important;
    border-top-color: #E5E7EB !important;
}
[data-theme="light"] .nav-tab {
    color: #6B7280 !important;
}
[data-theme="light"] .nav-tab.active {
    color: #7C3AED !important;
}
[data-theme="light"] .nav-tab.active .nav-label {
    color: #7C3AED !important;
}

/* --- Landing Page --- */
[data-theme="light"] .landing-page {
    background-color: #FFFFFF !important;
}
[data-theme="light"] .landing-nav {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom-color: #E5E7EB !important;
}
[data-theme="light"] .landing-nav-title {
    color: #1F2937 !important;
}
[data-theme="light"] .landing-nav-link {
    color: #4B5563 !important;
}
[data-theme="light"] .landing-nav-link:hover {
    color: #7C3AED !important;
}
[data-theme="light"] .code-logo-text {
    color: #5B21B6 !important;
}
[data-theme="light"] .code-logo-tagline {
    color: #6B7280 !important;
}
[data-theme="light"] .landing-hero-title {
    color: #1F2937 !important;
}
[data-theme="light"] .landing-hero-sub {
    color: #374151 !important;
}
[data-theme="light"] .landing-hero-note {
    color: #6B7280 !important;
}
[data-theme="light"] .landing-hero-badge {
    background: rgba(124, 58, 237, 0.08) !important;
    color: #6B7280 !important;
    border: 1px solid #D1D5DB !important;
}
[data-theme="light"] .landing-section-alt {
    background-color: #F9FAFB !important;
}
[data-theme="light"] .landing-section-title {
    color: #1F2937 !important;
}
[data-theme="light"] .landing-section-sub {
    color: #6B7280 !important;
}
[data-theme="light"] .section-badge {
    background: rgba(124, 58, 237, 0.08) !important;
}
[data-theme="light"] .feature-card {
    background-color: #FFFFFF !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .feature-title {
    color: #1F2937 !important;
}
[data-theme="light"] .feature-desc {
    color: #6B7280 !important;
}
[data-theme="light"] .step-card {
    background-color: #FFFFFF !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .step-title {
    color: #1F2937 !important;
}
[data-theme="light"] .step-desc {
    color: #6B7280 !important;
}
[data-theme="light"] .proof-headline {
    color: #1F2937 !important;
}
[data-theme="light"] .proof-sub {
    color: #6B7280 !important;
}
[data-theme="light"] .proof-stat-num {
    color: #7C3AED !important;
}
[data-theme="light"] .proof-stat-label {
    color: #6B7280 !important;
}
[data-theme="light"] .testimonial-card {
    background-color: #FFFFFF !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .testimonial-text {
    color: #374151 !important;
}
[data-theme="light"] .testimonial-name {
    color: #1F2937 !important;
}
[data-theme="light"] .testimonial-role {
    color: #6B7280 !important;
}
[data-theme="light"] .cta-title {
    color: #1F2937 !important;
}
[data-theme="light"] .cta-sub {
    color: #6B7280 !important;
}
[data-theme="light"] .landing-footer {
    background-color: #F9FAFB !important;
    border-top-color: #E5E7EB !important;
}
[data-theme="light"] .footer-logo-text {
    color: #1F2937 !important;
}
[data-theme="light"] .footer-tagline {
    color: #6B7280 !important;
}
[data-theme="light"] .footer-heading {
    color: #1F2937 !important;
}
[data-theme="light"] .footer-link {
    color: #6B7280 !important;
}
[data-theme="light"] .footer-link:hover {
    color: #7C3AED !important;
}
[data-theme="light"] .footer-bottom {
    border-top-color: #E5E7EB !important;
    color: #9CA3AF !important;
}
[data-theme="light"] .btn-outline {
    border-color: #D1D5DB !important;
    color: #4B5563 !important;
}
[data-theme="light"] .btn-outline:hover {
    border-color: #7C3AED !important;
    color: #7C3AED !important;
}
[data-theme="light"] .mockup-img {
    box-shadow: 0 24px 80px rgba(124, 58, 237, 0.15), 0 8px 32px rgba(0,0,0,0.08) !important;
}

/* --- Prelogin Nav (login/signup screens) --- */
[data-theme="light"] .prelogin-nav {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom-color: #E5E7EB !important;
}
[data-theme="light"] .prelogin-nav-title {
    color: #1F2937 !important;
}
[data-theme="light"] .prelogin-nav-links .landing-nav-link {
    color: #4B5563 !important;
}

/* --- Auth Pages (Login/Signup) --- */
[data-theme="light"] .card {
    background-color: #FFFFFF !important;
    border-color: #E5E7EB !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .card h2 {
    color: #1F2937 !important;
}
[data-theme="light"] .card label {
    color: #374151 !important;
}
[data-theme="light"] .card .input {
    background-color: #F9FAFB !important;
    border-color: #D1D5DB !important;
    color: #1F2937 !important;
}
[data-theme="light"] .card .input::placeholder {
    color: #9CA3AF !important;
}
[data-theme="light"] .card p {
    color: #6B7280 !important;
}
[data-theme="light"] .card a {
    color: #7C3AED !important;
}

/* --- Dashboard / Home Page --- */
[data-theme="light"] .dash-header {
    background-color: #FFFFFF !important;
}
[data-theme="light"] .greeting-text {
    color: #1F2937 !important;
}
[data-theme="light"] .greeting-date {
    color: #6B7280 !important;
}
[data-theme="light"] .entity-select-label {
    color: #6B7280 !important;
}
[data-theme="light"] .entity-select-dropdown {
    background-color: #FFFFFF !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .entity-select-name {
    color: #1F2937 !important;
}
[data-theme="light"] .entity-select-chevron {
    color: #6B7280 !important;
}
[data-theme="light"] .voice-examples-box {
    background: #FFFFFF !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .voice-examples-instruction {
    color: #6B7280 !important;
}
[data-theme="light"] .voice-examples-single {
    color: #9CA3AF !important;
}
[data-theme="light"] .voice-examples-tip {
    color: #9CA3AF !important;
}
[data-theme="light"] .entity-select-list {
    background-color: #FFFFFF !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .entity-select-option {
    color: #4B5563 !important;
}
[data-theme="light"] .entity-select-option:hover {
    color: #1F2937 !important;
    background: rgba(124, 58, 237, 0.06) !important;
}
[data-theme="light"] .dash-entity-single {
    background-color: #FFFFFF !important;
    border-color: #E5E7EB !important;
    color: #6B7280 !important;
}
[data-theme="light"] .dash-entity-btn {
    background-color: #FFFFFF !important;
    border-color: #E5E7EB !important;
    color: #6B7280 !important;
}
[data-theme="light"] .dash-hero-text {
    color: #1F2937 !important;
}
[data-theme="light"] .dash-cat-card {
    background: rgba(0,0,0,0.02) !important;
    border-color: rgba(0,0,0,0.1) !important;
}
[data-theme="light"] .dash-cat-card.selected {
    border-color: #9333EA !important;
    background: rgba(147,51,234,0.06) !important;
}
[data-theme="light"] .dash-cat-label {
    color: #6B7280 !important;
}
[data-theme="light"] .dash-cat-card.selected .dash-cat-label {
    color: #7C3AED !important;
}
[data-theme="light"] .dash-cat-hint {
    color: #9CA3AF !important;
}
[data-theme="light"] .mic-hint {
    color: #6B7280 !important;
}
[data-theme="light"] .dash-action-link {
    color: #6B7280 !important;
}
[data-theme="light"] .dash-action-link:hover {
    color: #7C3AED !important;
}
[data-theme="light"] .section-header h3,
[data-theme="light"] .section-title {
    color: #1F2937 !important;
}

/* --- Stat Cards (Dashboard) --- */
[data-theme="light"] .stat-card {
    background-color: #FFFFFF !important;
    border-color: #E5E7EB !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .stat-value {
    color: #1F2937 !important;
}
[data-theme="light"] .stat-label {
    color: #6B7280 !important;
}

/* --- Entries Page --- */
[data-theme="light"] .entries-entity-pills .entity-pill,
[data-theme="light"] .entity-pill {
    background-color: #F3F4F6 !important;
    color: #4B5563 !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .entity-pill.active {
    background-color: #7C3AED !important;
    color: #FFFFFF !important;
    border-color: #7C3AED !important;
}
[data-theme="light"] .entries-type-tabs .entries-tab-btn {
    color: #6B7280 !important;
}
[data-theme="light"] .entries-tab-btn.active {
    color: #7C3AED !important;
    border-bottom-color: #7C3AED !important;
}
[data-theme="light"] .time-filter-btn {
    background-color: #F3F4F6 !important;
    color: #4B5563 !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .time-filter-btn.active {
    background-color: #7C3AED !important;
    color: #FFFFFF !important;
    border-color: #7C3AED !important;
}
[data-theme="light"] .exp-summary-card {
    background: #FFFFFF !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .exp-val-default {
    color: #1F2937 !important;
}
[data-theme="light"] .exp-summary-label,
[data-theme="light"] .exp-summary-sub {
    color: #6B7280 !important;
}
[data-theme="light"] .exp-cat-breakdown-title {
    color: #1F2937 !important;
}
[data-theme="light"] .exp-cat-row-name {
    color: #374151 !important;
}
[data-theme="light"] .exp-cat-row-pct {
    color: #9CA3AF !important;
}
[data-theme="light"] .exp-cat-bar-bg {
    background: #F3F4F6 !important;
}
[data-theme="light"] .exp-cat-row {
    border-bottom-color: #F3F4F6 !important;
}
[data-theme="light"] .tx-toggle-btn {
    background: #FFFFFF !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .tx-toggle-icon {
    background: rgba(124, 58, 237, 0.08) !important;
}
[data-theme="light"] .tx-toggle-title {
    color: #1F2937 !important;
}
[data-theme="light"] .tx-toggle-sub {
    color: #6B7280 !important;
}
[data-theme="light"] .tx-toggle-arrow {
    color: #9CA3AF !important;
}
[data-theme="light"] .tx-date-header {
    color: #6B7280 !important;
}
[data-theme="light"] .tx-card {
    background: #FFFFFF !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .tx-card-name {
    color: #1F2937 !important;
}
[data-theme="light"] .tx-card-cat {
    color: #6B7280 !important;
}
[data-theme="light"] .tx-card-amount {
    color: #1F2937 !important;
}
[data-theme="light"] .entries-search-mini {
    background-color: #F9FAFB !important;
    border-color: #D1D5DB !important;
    color: #1F2937 !important;
}
[data-theme="light"] .entries-search-mini::placeholder {
    color: #9CA3AF !important;
}
[data-theme="light"] .category-folder-card {
    background-color: #FFFFFF !important;
    border-color: #E5E7EB !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .category-folder-name {
    color: #1F2937 !important;
}
[data-theme="light"] .category-folder-count {
    color: #6B7280 !important;
}
[data-theme="light"] .rdi-card {
    background-color: #FFFFFF !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .rdi-desc {
    color: #1F2937 !important;
}
[data-theme="light"] .rdi-date {
    color: #6B7280 !important;
}
[data-theme="light"] .rdi-meta {
    color: #6B7280 !important;
}
[data-theme="light"] .entry-desc {
    color: #1F2937 !important;
}
[data-theme="light"] .entry-date {
    color: #6B7280 !important;
}
[data-theme="light"] .mileage-summary-bar {
    background-color: #FFFFFF !important;
    border-color: #E5E7EB !important;
}

/* --- Reports Page --- */
[data-theme="light"] .report-entity-select-wrap {
    background-color: #FFFFFF !important;
}
[data-theme="light"] .report-entity-label {
    color: #6B7280 !important;
}
[data-theme="light"] .report-entity-select-box {
    background-color: #F9FAFB !important;
    border-color: #D1D5DB !important;
    color: #1F2937 !important;
}
[data-theme="light"] .report-time-filters .time-filter-btn {
    background-color: #F3F4F6 !important;
    color: #4B5563 !important;
}
[data-theme="light"] .report-time-filters .time-filter-btn.active {
    background-color: #7C3AED !important;
    color: #FFFFFF !important;
}
[data-theme="light"] .report-summary-card {
    background-color: #FFFFFF !important;
    border-color: #E5E7EB !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .summary-card-label {
    color: #6B7280 !important;
}
[data-theme="light"] .summary-card-value {
    color: #1F2937 !important;
}
[data-theme="light"] .summary-card-sub {
    color: #6B7280 !important;
}
[data-theme="light"] .report-section-title {
    color: #1F2937 !important;
}
[data-theme="light"] .report-section {
    background-color: #FFFFFF !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .report-dl-card {
    background: #FFFFFF !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .report-dl-card:hover {
    border-color: #9333EA !important;
    background: #F9FAFB !important;
}
[data-theme="light"] .report-dl-label { color: #1F2937 !important; }
[data-theme="light"] .report-dl-sub { color: #6B7280 !important; }
[data-theme="light"] .rr-pill {
    background: rgba(0,0,0,0.03) !important;
    border-color: #E5E7EB !important;
    color: #6B7280 !important;
}
[data-theme="light"] .rr-pill-active {
    background: rgba(147,51,234,0.08) !important;
    border-color: #9333EA !important;
    color: #7C3AED !important;
}
[data-theme="light"] .rr-chip {
    background: rgba(0,0,0,0.02) !important;
    border-color: #E5E7EB !important;
    color: #6B7280 !important;
}
[data-theme="light"] .rr-chip-active {
    background: rgba(147,51,234,0.06) !important;
    border-color: rgba(147,51,234,0.3) !important;
    color: #7C3AED !important;
}
[data-theme="light"] .rr-chip-check {
    border-color: #D1D5DB !important;
}
[data-theme="light"] .rr-entity-select {
    background: #FFFFFF !important;
    border-color: #E5E7EB !important;
    color: #1F2937 !important;
}
[data-theme="light"] .rr-preview-box {
    background: rgba(52,211,153,0.06) !important;
    border-color: rgba(52,211,153,0.15) !important;
}
[data-theme="light"] .category-bar-name {
    color: #1F2937 !important;
}
[data-theme="light"] .category-bar-amount {
    color: #1F2937 !important;
}
[data-theme="light"] .report-drilldown {
    background-color: #F9FAFB !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .report-drilldown-title {
    color: #1F2937 !important;
}
[data-theme="light"] .drilldown-item {
    border-bottom-color: #F3F4F6 !important;
}
[data-theme="light"] .drilldown-desc {
    color: #374151 !important;
}
[data-theme="light"] .drilldown-date {
    color: #9CA3AF !important;
}
[data-theme="light"] .btn-download-report {
    background: linear-gradient(135deg, #7C3AED, #6D28D9) !important;
    color: #FFFFFF !important;
}

/* --- Settings Page --- */
[data-theme="light"] .page-header {
    color: #1F2937 !important;
}
[data-theme="light"] .settings-field {
    border-bottom-color: #F3F4F6 !important;
}
[data-theme="light"] .settings-field-label {
    color: #6B7280 !important;
}
[data-theme="light"] .settings-field-value {
    color: #1F2937 !important;
}
[data-theme="light"] .settings-field-text {
    color: #1F2937 !important;
}
[data-theme="light"] .settings-toggle-label {
    color: #1F2937 !important;
}
[data-theme="light"] .settings-toggle-hint {
    color: #6B7280 !important;
}
[data-theme="light"] .settings-plan-card {
    background-color: #FFFFFF !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .settings-plan-name {
    color: #1F2937 !important;
}
[data-theme="light"] .settings-plan-desc {
    color: #6B7280 !important;
}

/* --- Profile Dropdown --- */
[data-theme="light"] .profile-dropdown {
    background-color: #FFFFFF !important;
    border-color: #E5E7EB !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
}
[data-theme="light"] .profile-dropdown button {
    color: #374151 !important;
}
[data-theme="light"] .profile-dropdown button:hover {
    background-color: #F3F4F6 !important;
}

/* --- Modals --- */
[data-theme="light"] .modal-content {
    background-color: #FFFFFF !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .modal-header {
    color: #1F2937 !important;
}
[data-theme="light"] .modal-content label {
    color: #374151 !important;
}
[data-theme="light"] .modal-content input,
[data-theme="light"] .modal-content select,
[data-theme="light"] .modal-content textarea {
    background-color: #F9FAFB !important;
    border-color: #D1D5DB !important;
    color: #1F2937 !important;
}

/* --- Expense Modal --- */
[data-theme="light"] .expense-modal {
    background-color: #FFFFFF !important;
}
[data-theme="light"] .expense-modal-title {
    color: #1F2937 !important;
}
[data-theme="light"] .entry-options-title {
    color: #1F2937 !important;
}
[data-theme="light"] .entry-option-card {
    background-color: #FFFFFF !important;
    border-color: rgba(124, 58, 237, 0.2) !important;
}
[data-theme="light"] .entry-option-card:hover {
    border-color: #7C3AED !important;
}
[data-theme="light"] .entry-option-title {
    color: #1F2937 !important;
}
[data-theme="light"] .entry-option-desc {
    color: #6B7280 !important;
}
[data-theme="light"] .expense-card-title {
    color: #1F2937 !important;
}
[data-theme="light"] .expense-card-desc {
    color: #6B7280 !important;
}
[data-theme="light"] .expense-listen-status {
    color: #1F2937 !important;
}
[data-theme="light"] .expense-live-transcript {
    color: #374151 !important;
}
[data-theme="light"] .expense-live-transcript .final-text {
    color: #1F2937 !important;
}
[data-theme="light"] .expense-live-transcript .interim-text {
    color: #9CA3AF !important;
}
[data-theme="light"] .expense-edit-area textarea {
    background-color: #F9FAFB !important;
    border-color: #D1D5DB !important;
    color: #1F2937 !important;
}
[data-theme="light"] .expense-processing-text {
    color: #1F2937 !important;
}
[data-theme="light"] .expense-field label {
    color: #374151 !important;
}
[data-theme="light"] .expense-field input,
[data-theme="light"] .expense-field select,
[data-theme="light"] .expense-field textarea {
    background-color: #F9FAFB !important;
    border-color: #D1D5DB !important;
    color: #1F2937 !important;
}
[data-theme="light"] .expense-success-title {
    color: #1F2937 !important;
}
[data-theme="light"] .receipt-attach-title {
    color: #1F2937 !important;
}
[data-theme="light"] .hours-type-title {
    color: #1F2937 !important;
}
[data-theme="light"] .expense-manual-link {
    color: #6B7280 !important;
}
[data-theme="light"] .expense-manual-link:hover {
    color: #7C3AED !important;
}

/* --- PDF Confirm Modal --- */
[data-theme="light"] .pdf-confirm-entity {
    color: #1F2937 !important;
}
[data-theme="light"] .pdf-confirm-period {
    color: #6B7280 !important;
}
[data-theme="light"] .pdf-period-btn {
    background-color: #F3F4F6 !important;
    color: #4B5563 !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .pdf-period-btn.active {
    background-color: #7C3AED !important;
    color: #FFFFFF !important;
}

/* --- Pricing Page --- */
[data-theme="light"] .pricing-card {
    background-color: #FFFFFF !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .pricing-card-header h3 {
    color: #1F2937 !important;
}
[data-theme="light"] .pricing-card li {
    color: #4B5563 !important;
}
[data-theme="light"] .price-period {
    color: #6B7280 !important;
}
[data-theme="light"] .comparison-table {
    background-color: #FFFFFF !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .comparison-table th {
    background-color: #F9FAFB !important;
    color: #1F2937 !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .comparison-table td {
    color: #374151 !important;
    border-color: #E5E7EB !important;
}

/* --- Hours Type Cards --- */
[data-theme="light"] .hours-type-card {
    background-color: #FFFFFF !important;
    border-color: #E5E7EB !important;
}
[data-theme="light"] .hours-type-header h4 {
    color: #1F2937 !important;
}
[data-theme="light"] .hours-type-progress-count {
    color: #1F2937 !important;
}
[data-theme="light"] .hours-type-progress-bar {
    background-color: #E5E7EB !important;
}

/* --- Onboarding --- */
[data-theme="light"] .onboarding-header h2 {
    color: #1F2937 !important;
}
[data-theme="light"] .onboarding-header p {
    color: #6B7280 !important;
}

/* --- Progress Bar BG --- */
[data-theme="light"] .reps-progress-bar {
    background-color: #E5E7EB !important;
}

/* --- General Inputs & Selects --- */
[data-theme="light"] .input {
    background-color: #F9FAFB !important;
    border-color: #D1D5DB !important;
    color: #1F2937 !important;
}
[data-theme="light"] .input::placeholder {
    color: #9CA3AF !important;
}
[data-theme="light"] select.input {
    background-color: #F9FAFB !important;
    color: #1F2937 !important;
}

/* --- Category Tag --- */
[data-theme="light"] .category-tag {
    background: rgba(124, 58, 237, 0.08) !important;
}

/* --- Mic Pulse & Success Animations --- */
.mic-recording {
    animation: pulse-ring 1.5s infinite;
    background-color: #7C3AED !important;
}
.mic-button.mic-recording {
    animation: pulse-ring-strong 1.2s ease-out infinite !important;
    box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.85) !important;
}
.mic-transcribing {
    opacity: 0.6;
    position: relative;
}
.mic-button.mic-transcribing {
    animation: none !important;
    opacity: 0.75 !important;
    position: relative;
}
.mic-transcribing::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #A78BFA;
    animation: micSpinner 0.8s linear infinite;
}
.mic-button.mic-transcribing::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #A78BFA;
    border-right-color: rgba(167,139,250,0.4);
    animation: micSpinner 0.7s linear infinite;
}
@keyframes micSpinner {
    to { transform: rotate(360deg); }
}
.transcribe-status-error {
    color: #EF4444 !important;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(124, 58, 237, 0); }
    100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}
@keyframes pulse-ring-strong {
    0%   { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.85); transform: scale(1); }
    55%  { box-shadow: 0 0 0 24px rgba(167, 139, 250, 0); transform: scale(1.06); }
    100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); transform: scale(1); }
}

/* ================================================================
   VOICE NOTE MODAL — PREMIUM REDESIGN v2
   ================================================================ */
.vn-modal-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background: linear-gradient(160deg, #0D0D1A 0%, #0A0A14 100%);
}
.vn-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.5);
    z-index: 10;
    transition: background 0.2s;
}
.vn-close-btn:active { background: rgba(255,255,255,0.12); }
.vn-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* --- STATE 1: RECORD SCREEN --- */
.vn-step-record-layout {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 32px 60px;
    gap: 0;
}
.vn-screen-title {
    color: rgba(255,255,255,0.35);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 44px;
}

/* Mic wrapper + pulse rings */
.vn-mic-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin-bottom: 28px;
}
.vn-pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(124,58,237,0);
    animation: none;
    pointer-events: none;
}
.vn-pulse-ring-1 { width: 120px; height: 120px; }
.vn-pulse-ring-2 { width: 148px; height: 148px; }
.vn-pulse-ring-3 { width: 178px; height: 178px; }
.vn-mic-wrapper:has(.mic-recording) .vn-pulse-ring-1 { animation: vnRing 1.6s ease-out infinite; }
.vn-mic-wrapper:has(.mic-recording) .vn-pulse-ring-2 { animation: vnRing 1.6s ease-out 0.3s infinite; }
.vn-mic-wrapper:has(.mic-recording) .vn-pulse-ring-3 { animation: vnRing 1.6s ease-out 0.6s infinite; }
@keyframes vnRing {
    0%   { border-color: rgba(124,58,237,0.7); transform: scale(0.85); }
    70%  { border-color: rgba(124,58,237,0); transform: scale(1); }
    100% { border-color: rgba(124,58,237,0); transform: scale(1); }
}

/* Mic button */
.vn-mic-btn {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #7C3AED, #9333EA);
    box-shadow: 0 8px 32px rgba(124,58,237,0.5), 0 0 0 0 rgba(167,139,250,0);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, box-shadow 0.15s;
    animation: vnMicGlow 3s ease-in-out infinite;
    z-index: 1;
}
.vn-mic-btn:active { transform: scale(0.94); }
@keyframes vnMicGlow {
    0%,100% { box-shadow: 0 8px 32px rgba(124,58,237,0.5), 0 0 0 0 rgba(167,139,250,0); }
    50%      { box-shadow: 0 8px 48px rgba(124,58,237,0.65), 0 0 40px rgba(147,51,234,0.2); }
}
.vn-mic-btn.mic-recording {
    animation: vnMicPulse 1.2s ease-out infinite !important;
    background: linear-gradient(135deg, #9333EA, #7C3AED) !important;
}
@keyframes vnMicPulse {
    0%   { box-shadow: 0 0 0 0 rgba(167,139,250,0.8); transform: scale(1); }
    55%  { box-shadow: 0 0 0 18px rgba(167,139,250,0); transform: scale(1.04); }
    100% { box-shadow: 0 0 0 0 rgba(167,139,250,0); transform: scale(1); }
}
.vn-mic-btn.mic-transcribing {
    animation: none !important;
    opacity: 0.7 !important;
}
.vn-mic-btn.mic-transcribing::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #A78BFA;
    border-right-color: rgba(167,139,250,0.35);
    animation: micSpinner 0.7s linear infinite;
}
#vn-mic-btn {
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Mic hint */
.vn-mic-hint {
    color: rgba(255,255,255,0.8);
    font-size: 17px;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-top: 0;
    min-height: 26px;
    transition: color 0.2s;
}
.vn-mic-wrapper:has(.mic-recording) ~ .vn-mic-hint {
    color: #A78BFA;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 13px;
}

/* STATE 2: Waveform bars (replaces old vn-listen-dots) */
.vn-waveform {
    display: flex;
    gap: 3px;
    align-items: center;
    justify-content: center;
    height: 40px;
    margin-top: 20px;
}
.vn-waveform span {
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #9333EA, #A78BFA);
    animation: vnBar 0.7s ease-in-out infinite alternate;
}
.vn-waveform span:nth-child(1)  { height: 8px;  animation-delay: 0s;    animation-duration: 0.55s; }
.vn-waveform span:nth-child(2)  { height: 20px; animation-delay: 0.05s; animation-duration: 0.7s; }
.vn-waveform span:nth-child(3)  { height: 32px; animation-delay: 0.1s;  animation-duration: 0.5s; }
.vn-waveform span:nth-child(4)  { height: 14px; animation-delay: 0.15s; animation-duration: 0.65s; }
.vn-waveform span:nth-child(5)  { height: 28px; animation-delay: 0.2s;  animation-duration: 0.45s; }
.vn-waveform span:nth-child(6)  { height: 36px; animation-delay: 0.25s; animation-duration: 0.75s; }
.vn-waveform span:nth-child(7)  { height: 18px; animation-delay: 0.1s;  animation-duration: 0.6s; }
.vn-waveform span:nth-child(8)  { height: 38px; animation-delay: 0.3s;  animation-duration: 0.5s; }
.vn-waveform span:nth-child(9)  { height: 22px; animation-delay: 0.05s; animation-duration: 0.8s; }
.vn-waveform span:nth-child(10) { height: 30px; animation-delay: 0.2s;  animation-duration: 0.55s; }
.vn-waveform span:nth-child(11) { height: 12px; animation-delay: 0.35s; animation-duration: 0.7s; }
.vn-waveform span:nth-child(12) { height: 34px; animation-delay: 0.15s; animation-duration: 0.45s; }
.vn-waveform span:nth-child(13) { height: 24px; animation-delay: 0.4s;  animation-duration: 0.6s; }
.vn-waveform span:nth-child(14) { height: 16px; animation-delay: 0.25s; animation-duration: 0.75s; }
.vn-waveform span:nth-child(15) { height: 36px; animation-delay: 0.1s;  animation-duration: 0.5s; }
.vn-waveform span:nth-child(16) { height: 10px; animation-delay: 0.3s;  animation-duration: 0.65s; }
.vn-waveform span:nth-child(17) { height: 28px; animation-delay: 0.2s;  animation-duration: 0.45s; }
.vn-waveform span:nth-child(18) { height: 20px; animation-delay: 0.05s; animation-duration: 0.7s; }
.vn-waveform span:nth-child(19) { height: 14px; animation-delay: 0.35s; animation-duration: 0.55s; }
.vn-waveform span:nth-child(20) { height: 8px;  animation-delay: 0.15s; animation-duration: 0.8s; }
@keyframes vnBar {
    from { transform: scaleY(0.3); opacity: 0.5; }
    to   { transform: scaleY(1);   opacity: 1; }
}

/* STATE 3: Transcribing shimmer */
.vn-transcribing-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 260px;
    margin-top: 24px;
    align-items: flex-start;
}
.vn-shimmer-line {
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(90deg,
        rgba(167,139,250,0.08) 25%,
        rgba(167,139,250,0.2) 50%,
        rgba(167,139,250,0.08) 75%);
    background-size: 200% 100%;
    animation: vnShimmer 1.4s linear infinite;
}
@keyframes vnShimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* Suggestion rows (idle state) */
.vn-suggestions {
    width: 100%;
    max-width: 300px;
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: opacity 0.25s;
}
.vn-mic-wrapper:has(.mic-recording) ~ * .vn-suggestions,
.vn-mic-wrapper:has(.mic-transcribing) ~ * .vn-suggestions { opacity: 0; pointer-events: none; }
.vn-step-record-layout:has(.mic-recording) .vn-suggestions,
.vn-step-record-layout:has(.mic-transcribing) .vn-suggestions { opacity: 0; pointer-events: none; }
.vn-suggestion-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}
.vn-suggestion-row:active { background: rgba(167,139,250,0.08); }
.vn-suggestion-row span {
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    font-weight: 400;
}

/* --- STATE 4: PREVIEW SCREEN --- */
.vn-preview-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 60px 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}
.vn-card-label {
    color: rgba(255,255,255,0.28);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.vn-note-textarea {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    outline: none;
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.5;
    resize: none;
    font-family: inherit;
    min-height: 44px;
    caret-color: #A78BFA;
    padding: 0 0 10px;
    transition: border-color 0.2s;
    overflow: hidden;
    margin-bottom: 28px;
}
.vn-note-textarea:focus { border-bottom-color: rgba(167,139,250,0.35); }
.vn-note-textarea::placeholder { color: rgba(255,255,255,0.15); }

/* Reminder strip */
.vn-reminder-strip {
    border-radius: 12px;
    padding: 12px 16px;
    transition: background 0.2s, border-color 0.2s;
    margin-bottom: 10px;
}
.vn-reminder-strip--empty {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
}
.vn-reminder-strip--set {
    background: rgba(124,58,237,0.08);
    border: 1px solid rgba(124,58,237,0.18);
}
.vn-reminder-strip-row {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}
.vn-reminder-clock-icon { flex-shrink: 0; display: flex; align-items: center; }
.vn-reminder-display-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.28);
}
.vn-reminder-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 13px;
    color: #A78BFA;
    padding: 0;
    font-family: inherit;
    white-space: nowrap;
}
.vn-dt-picker {
    margin-top: 12px;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
}
.vn-helper-text {
    color: rgba(255,255,255,0.22);
    font-size: 12px;
    margin-bottom: 28px;
    padding-left: 2px;
}

/* Buttons */
.vn-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.vn-save-btn {
    width: 100%;
    padding: 17px;
    background: linear-gradient(135deg, #7C3AED, #9333EA);
    border: none;
    border-radius: 18px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(124,58,237,0.4);
    font-family: inherit;
    transition: opacity 0.15s, transform 0.15s;
}
.vn-save-btn:active { transform: scale(0.98); opacity: 0.9; }
.vn-save-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.vn-text-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    font-size: 14px;
    cursor: pointer;
    padding: 16px 0 6px;
    text-align: center;
    width: 100%;
    font-family: inherit;
}
.vn-cancel-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.2);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 0 0;
    text-align: center;
    width: 100%;
    font-family: inherit;
}

/* --- STATE 5: SUCCESS SCREEN --- */
.vn-step-saved-layout {
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    padding: 40px 32px 60px;
}
.vn-check-anim {
    animation: vnCheckPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes vnCheckPop {
    0%   { transform: scale(0.3); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}
.vn-check-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #9333EA);
    box-shadow: 0 8px 40px rgba(124,58,237,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}
.vn-saved-msg {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    margin: 0;
}
.vn-view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 280px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #7C3AED, #9333EA);
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(124,58,237,0.4);
    font-family: inherit;
}
.vn-view-all-btn:active { transform: scale(0.98); }
.vn-done-link {
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
}

/* Legacy compat — vn-processing-hint is now a block, not a p tag */
.vn-processing-hint { margin-top: 0; }

/* ================================================================
   NOTIFICATION PRE-PROMPT OVERLAY
   ================================================================ */
.notif-prompt-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(0,0,0,0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.2s ease;
}
.notif-prompt-overlay.hidden {
    display: none;
}
.notif-prompt-card {
    background: var(--bg-secondary, #1a1a2e);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 40px 28px 32px;
    max-width: 340px;
    width: 100%;
    text-align: center;
}
.notif-prompt-icon {
    margin-bottom: 20px;
}
.notif-prompt-title {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}
.notif-prompt-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 28px;
}
.notif-prompt-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #9333EA, #7C3AED);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(147,51,234,0.3);
}
.notif-prompt-btn:active {
    transform: scale(0.98);
}
.notif-prompt-skip {
    background: none;
    border: none;
    color: rgba(255,255,255,0.38);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
}

.mic-success {
    position: relative;
}

.mic-success::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 24px;
    color: white;
    background: #10B981;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: success-pop 1.2s ease forwards;
    pointer-events: none;
}

@keyframes success-pop {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
}

.hero-demo-btn {
    background: rgba(147,51,234,0.15) !important;
    border: 2px solid #A78BFA !important;
    color: #FFFFFF !important;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 0 15px rgba(147,51,234,0.5), 0 0 30px rgba(147,51,234,0.3), 0 0 60px rgba(147,51,234,0.15);
    animation: glowPulse 2s ease-in-out infinite;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(147,51,234,0.5), 0 0 30px rgba(147,51,234,0.3), 0 0 60px rgba(147,51,234,0.15); }
    50% { box-shadow: 0 0 20px rgba(147,51,234,0.7), 0 0 40px rgba(147,51,234,0.4), 0 0 80px rgba(147,51,234,0.2); }
}
.hero-demo-btn:hover {
    background: rgba(147,51,234,0.25) !important;
    border-color: #c4b5fd !important;
}
.demo-btn-outline {
    background: transparent !important;
    border: 2px solid #A78BFA !important;
    color: #FFFFFF !important;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.3);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.demo-btn-outline:hover {
    background: rgba(124, 58, 237, 0.1) !important;
    color: #9333ea !important;
    border-color: #9333ea !important;
}

.demo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 99999;
    overflow: hidden;
    transition: opacity 0.4s ease;
}
.demo-overlay.hidden {
    display: none;
}
.demo-close-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    transition: background 0.2s;
}
.demo-close-btn:hover {
    background: rgba(255,255,255,0.2);
}
.demo-skip-btn {
    position: fixed;
    top: 64px;
    right: 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.35);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100001;
    padding: 8px 16px;
    transition: color 0.2s;
}
.demo-skip-btn:hover {
    color: rgba(255,255,255,0.7);
}
.demo-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}
.demo-screens-wrapper {
    display: flex;
    width: 500%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.demo-screen {
    width: calc(100% / 5);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    position: relative;
    background: #000000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.demo-screen::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at 50% 30%, rgba(124,58,237,0.12) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}
.demo-screen > * {
    position: relative;
    z-index: 1;
}
.demo-s1-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
    box-shadow: 0 0 40px rgba(147,51,234,0.5), 0 0 80px rgba(124,58,237,0.2);
    opacity: 0;
    animation: demoLogoReveal 1s 0.3s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes demoLogoReveal {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
.demo-s1-logo span {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
}
.demo-s1-brand {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #c4b5fd;
    margin-bottom: 40px;
    opacity: 0;
    animation: demoFadeUp 0.8s 0.6s ease forwards;
}
@keyframes demoFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.demo-s1-headline {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    color: #ffffff;
    max-width: 320px;
    margin-bottom: 20px;
    opacity: 0;
    animation: demoFadeUp 0.8s 0.9s ease forwards;
}
.demo-s1-headline em {
    font-style: italic;
    color: #c4b5fd;
}
.demo-s1-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    text-align: center;
    line-height: 1.6;
    max-width: 280px;
    opacity: 0;
    animation: demoFadeUp 0.8s 1.2s ease forwards;
}
.demo-cta-btn {
    width: 100%;
    max-width: 320px;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.3s;
    box-shadow: 0 4px 24px rgba(147,51,234,0.4);
    opacity: 0;
    animation: demoFadeUp 0.8s 1.5s ease forwards;
}
.demo-cta-btn:hover {
    transform: scale(1.02);
}
.demo-cta-btn:active {
    transform: scale(0.98);
}
.demo-s2-headline {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    margin-bottom: 6px;
    opacity: 0;
}
.demo-s2-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin-bottom: 28px;
    opacity: 0;
}
.demo-phone-frame {
    width: 100%;
    max-width: 320px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(147,51,234,0.25);
    border-radius: 24px;
    padding: 28px 24px;
    margin-bottom: 28px;
    opacity: 0;
}
.demo-voice-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 40px;
    margin-bottom: 24px;
}
.demo-wave-bar {
    width: 3px;
    border-radius: 3px;
    background: #9333ea;
    animation: demoWave 1.2s ease-in-out infinite;
}
.demo-wave-bar:nth-child(1) { height: 12px; animation-delay: 0s; }
.demo-wave-bar:nth-child(2) { height: 20px; animation-delay: 0.1s; }
.demo-wave-bar:nth-child(3) { height: 28px; animation-delay: 0.2s; }
.demo-wave-bar:nth-child(4) { height: 36px; animation-delay: 0.3s; }
.demo-wave-bar:nth-child(5) { height: 28px; animation-delay: 0.4s; }
.demo-wave-bar:nth-child(6) { height: 20px; animation-delay: 0.5s; }
.demo-wave-bar:nth-child(7) { height: 12px; animation-delay: 0.6s; }
.demo-wave-bar:nth-child(8) { height: 24px; animation-delay: 0.7s; }
.demo-wave-bar:nth-child(9) { height: 16px; animation-delay: 0.8s; }
.demo-wave-bar:nth-child(10) { height: 32px; animation-delay: 0.9s; }
.demo-wave-bar:nth-child(11) { height: 20px; animation-delay: 1s; }
.demo-wave-bar:nth-child(12) { height: 14px; animation-delay: 1.1s; }
@keyframes demoWave {
    0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
}
.demo-transcript {
    font-size: 17px;
    color: #ffffff;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 24px;
    min-height: 52px;
}
.demo-cursor {
    display: inline-block;
    width: 2px;
    height: 18px;
    background: #c4b5fd;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: demoBlink 0.8s infinite;
}
@keyframes demoBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
.demo-auto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    min-height: 34px;
}
.demo-auto-tags .demo-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    opacity: 0;
    transform: scale(0.8);
}
.demo-tag.category { background: rgba(196,181,253,0.15); color: #c4b5fd; border: 1px solid rgba(196,181,253,0.4); }
.demo-tag.amount { background: rgba(52,211,153,0.15); color: #34d399; border: 1px solid rgba(52,211,153,0.4); }
.demo-tag.entity { background: rgba(147,197,253,0.15); color: #93c5fd; border: 1px solid rgba(147,197,253,0.4); }
.demo-tag.saved { background: rgba(52,211,153,0.2); color: #34d399; border: 1px solid rgba(52,211,153,0.5); }
.demo-tag-pop {
    animation: demoTagPop 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes demoTagPop {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
.demo-s2-caption {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    text-align: center;
    line-height: 1.5;
    opacity: 0;
}
.demo-s2-next-btn { opacity: 0 !important; animation: none !important; }
.demo-s3-next-btn { opacity: 0 !important; animation: none !important; }
.demo-s4-next-btn { opacity: 0 !important; animation: none !important; }
.demo-badge {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c4b5fd;
    margin-bottom: 12px;
    opacity: 0;
}
.demo-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #fff;
    margin-bottom: 6px;
    opacity: 0;
}
.demo-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin-bottom: 24px;
    opacity: 0;
}
.demo-preview-card {
    width: 100%;
    max-width: 320px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(147,51,234,0.2);
    border-radius: 20px;
    padding: 24px 20px;
    margin-bottom: 16px;
    opacity: 0;
}
.demo-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.demo-summary-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
}
.demo-sv {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
}
.demo-sv.green { color: #34d399; }
.demo-sv.white { color: #fff; }
.demo-sl {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
}
.demo-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.demo-cat-name {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}
.demo-cat-amount {
    font-size: 13px;
    font-weight: 600;
}
.demo-cat-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    margin-bottom: 14px;
    overflow: hidden;
}
.demo-cat-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1s ease;
    width: 0;
}
.demo-report-card {
    width: 100%;
    max-width: 320px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(147,51,234,0.2);
    border-radius: 20px;
    padding: 24px 20px;
    margin-bottom: 16px;
    opacity: 0;
}
.demo-report-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.demo-report-item:last-child { border-bottom: none; }
.demo-report-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.demo-report-text {}
.demo-rt-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}
.demo-rt-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}
.demo-features-row {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    opacity: 0;
}
.demo-feature-pill {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(147,51,234,0.2);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #c4b5fd;
    line-height: 1.3;
}
.demo-fp-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 6px;
}
.demo-pdf-window {
    width: 100%;
    max-width: 300px;
    height: 420px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(147,51,234,0.25);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    margin-bottom: 24px;
    opacity: 0;
}
.demo-pdf-topbar {
    height: 36px;
    background: rgba(147,51,234,0.1);
    border-bottom: 1px solid rgba(147,51,234,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
}
.demo-pdf-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.demo-pdf-label {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-left: 8px;
    font-weight: 500;
}
.demo-pdf-scroll-area {
    height: calc(100% - 36px);
    overflow: hidden;
    position: relative;
}
.demo-pdf-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
}
.demo-pdf-content.scrolling {
    animation: demoPdfScroll 8s 1.5s ease-in-out forwards;
}
@keyframes demoPdfScroll {
    0% { transform: translateY(0); }
    25% { transform: translateY(-180px); }
    50% { transform: translateY(-380px); }
    75% { transform: translateY(-600px); }
    100% { transform: translateY(-780px); }
}
.demo-pdf-page {
    background: #ffffff;
    margin: 10px 14px;
    border-radius: 4px;
    padding: 20px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    font-family: 'DM Sans', sans-serif;
}
.demo-dots {
    position: fixed;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100001;
}
.demo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.4s ease;
    cursor: pointer;
}
.demo-dot.active {
    background: #9333ea;
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(147,51,234,0.5);
}
.ds2-enter .demo-s2-headline { animation: demoFadeUp 0.6s 0.2s ease forwards; }
.ds2-enter .demo-s2-sub { animation: demoFadeUp 0.6s 0.35s ease forwards; }
.ds2-enter .demo-phone-frame { animation: demoFadeUp 0.8s 0.5s ease forwards; }
.ds2-enter .demo-s2-caption { animation: demoFadeUp 0.6s 2.8s ease forwards; }
.ds3-enter .demo-badge { animation: demoFadeUp 0.5s 0.1s ease forwards; }
.ds3-enter .demo-title { animation: demoFadeUp 0.5s 0.25s ease forwards; }
.ds3-enter .demo-sub { animation: demoFadeUp 0.5s 0.4s ease forwards; }
.ds3-enter .demo-preview-card { animation: demoFadeUp 0.6s 0.55s ease forwards; }
.ds4-enter .demo-badge { animation: demoFadeUp 0.5s 0.1s ease forwards; }
.ds4-enter .demo-title { animation: demoFadeUp 0.5s 0.25s ease forwards; }
.ds4-enter .demo-sub { animation: demoFadeUp 0.5s 0.4s ease forwards; }
.ds4-enter .demo-report-card { animation: demoFadeUp 0.6s 0.55s ease forwards; }
.ds4-enter .demo-features-row { animation: demoFadeUp 0.6s 0.75s ease forwards; }
.ds5-enter .demo-badge { animation: demoFadeUp 0.5s 0.1s ease forwards; }
.ds5-enter .demo-title { animation: demoFadeUp 0.5s 0.25s ease forwards; }
.ds5-enter .demo-sub { animation: demoFadeUp 0.5s 0.4s ease forwards; }
.ds5-enter .demo-pdf-window { animation: demoFadeUp 0.6s 0.6s ease forwards; }

@media (max-height: 700px) {
    .demo-screen { padding: 24px 24px; }
    .demo-s1-logo { width: 56px; height: 56px; margin-bottom: 28px; }
    .demo-s1-logo span { font-size: 28px; }
    .demo-s1-headline { font-size: 26px; }
    .demo-phone-frame { padding: 18px 16px; }
    .demo-sv { font-size: 17px; }
    .demo-pdf-window { height: 360px; }
}

@media (max-width: 768px) {
    .demo-close-btn { top: 12px; right: 12px; width: 36px; height: 36px; }
    .demo-skip-btn { top: 54px; right: 8px; font-size: 13px; }
}

.onb-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 100000;
    overflow: hidden;
}
.onb-overlay.hidden { display: none; }
.onb-close-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100002;
    transition: background 0.2s;
}
.onb-close-btn:hover { background: rgba(255,255,255,0.2); }
.onb-skip-btn {
    position: fixed;
    top: 64px;
    right: 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.35);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100002;
    padding: 8px 16px;
    transition: color 0.2s;
}
.onb-skip-btn:hover { color: rgba(255,255,255,0.7); }
.onb-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}
.onb-screens-wrapper {
    display: flex;
    width: 600%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.onb-screen {
    width: calc(100% / 6);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    position: relative;
    background: #000000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.onb-screen::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at 50% 30%, rgba(124,58,237,0.12) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}
.onb-screen > * { position: relative; z-index: 1; }
.onb-s1-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
    box-shadow: 0 0 40px rgba(147,51,234,0.5), 0 0 80px rgba(124,58,237,0.2);
    opacity: 0;
    animation: onbLogoReveal 1s 0.3s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes onbLogoReveal {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
.onb-s1-logo span {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
}
.onb-s1-brand {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #c4b5fd;
    margin-bottom: 40px;
    opacity: 0;
    animation: onbFadeUp 0.8s 0.6s ease forwards;
}
@keyframes onbFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.onb-s1-headline {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    color: #ffffff;
    max-width: 320px;
    margin-bottom: 20px;
    opacity: 0;
    animation: onbFadeUp 0.8s 0.9s ease forwards;
}
.onb-s1-headline em { font-style: italic; color: #c4b5fd; }
.onb-s1-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    text-align: center;
    line-height: 1.6;
    max-width: 280px;
    opacity: 0;
    animation: onbFadeUp 0.8s 1.2s ease forwards;
}
.onb-cta-btn {
    width: 100%;
    max-width: 320px;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.3s;
    box-shadow: 0 4px 24px rgba(147,51,234,0.4);
    opacity: 0;
    animation: onbFadeUp 0.8s 1.5s ease forwards;
}
.onb-cta-btn:hover { transform: scale(1.02); }
.onb-cta-btn:active { transform: scale(0.98); }
.onb-s2-headline {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    margin-bottom: 6px;
    opacity: 0;
}
.onb-s2-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin-bottom: 28px;
    opacity: 0;
}
.onb-phone-frame {
    width: 100%;
    max-width: 320px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(147,51,234,0.25);
    border-radius: 24px;
    padding: 28px 24px;
    margin-bottom: 28px;
    opacity: 0;
}
.onb-voice-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 40px;
    margin-bottom: 24px;
}
.onb-wave-bar {
    width: 3px;
    border-radius: 3px;
    background: #9333ea;
    animation: onbWave 1.2s ease-in-out infinite;
}
.onb-wave-bar:nth-child(1) { height: 12px; animation-delay: 0s; }
.onb-wave-bar:nth-child(2) { height: 20px; animation-delay: 0.1s; }
.onb-wave-bar:nth-child(3) { height: 28px; animation-delay: 0.2s; }
.onb-wave-bar:nth-child(4) { height: 36px; animation-delay: 0.3s; }
.onb-wave-bar:nth-child(5) { height: 28px; animation-delay: 0.4s; }
.onb-wave-bar:nth-child(6) { height: 20px; animation-delay: 0.5s; }
.onb-wave-bar:nth-child(7) { height: 12px; animation-delay: 0.6s; }
.onb-wave-bar:nth-child(8) { height: 24px; animation-delay: 0.7s; }
.onb-wave-bar:nth-child(9) { height: 16px; animation-delay: 0.8s; }
.onb-wave-bar:nth-child(10) { height: 32px; animation-delay: 0.9s; }
.onb-wave-bar:nth-child(11) { height: 20px; animation-delay: 1s; }
.onb-wave-bar:nth-child(12) { height: 14px; animation-delay: 1.1s; }
@keyframes onbWave {
    0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
}
.onb-transcript {
    font-size: 17px;
    color: #ffffff;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 24px;
    min-height: 52px;
}
.onb-cursor {
    display: inline-block;
    width: 2px;
    height: 18px;
    background: #c4b5fd;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: onbBlink 0.8s infinite;
}
@keyframes onbBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
.onb-auto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    min-height: 34px;
}
.onb-auto-tags .onb-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    opacity: 0;
    transform: scale(0.8);
}
.onb-tag.category { background: rgba(196,181,253,0.15); color: #c4b5fd; border: 1px solid rgba(196,181,253,0.4); }
.onb-tag.amount { background: rgba(52,211,153,0.15); color: #34d399; border: 1px solid rgba(52,211,153,0.4); }
.onb-tag.entity { background: rgba(147,197,253,0.15); color: #93c5fd; border: 1px solid rgba(147,197,253,0.4); }
.onb-tag.saved { background: rgba(52,211,153,0.2); color: #34d399; border: 1px solid rgba(52,211,153,0.5); }
.onb-tag-pop { animation: onbTagPop 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards; }
@keyframes onbTagPop {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
.onb-s2-caption {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    text-align: center;
    line-height: 1.5;
    opacity: 0;
}
.onb-s2-next-btn, .onb-s3-next-btn, .onb-s4-next-btn, .onb-s5-next-btn { opacity: 0 !important; animation: none !important; }
.onb-badge {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c4b5fd;
    margin-bottom: 12px;
    opacity: 0;
}
.onb-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #fff;
    margin-bottom: 6px;
    opacity: 0;
}
.onb-sub-text {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin-bottom: 24px;
    opacity: 0;
}
.onb-preview-card {
    width: 100%;
    max-width: 320px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(147,51,234,0.2);
    border-radius: 20px;
    padding: 24px 20px;
    margin-bottom: 16px;
    opacity: 0;
}
.onb-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.onb-summary-item { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 14px 12px; text-align: center; }
.onb-sv { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.onb-sv.green { color: #34d399; }
.onb-sv.white { color: #fff; }
.onb-sl { font-size: 11px; color: rgba(255,255,255,0.45); font-weight: 500; }
.onb-cat-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.onb-cat-name { font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 500; }
.onb-cat-amount { font-size: 13px; font-weight: 600; }
.onb-cat-bar { width: 100%; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; margin-bottom: 14px; overflow: hidden; }
.onb-cat-fill { height: 100%; border-radius: 2px; transition: width 1s ease; width: 0; }
.onb-report-card {
    width: 100%;
    max-width: 320px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(147,51,234,0.2);
    border-radius: 20px;
    padding: 24px 20px;
    margin-bottom: 16px;
    opacity: 0;
}
.onb-report-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.onb-report-item:last-child { border-bottom: none; }
.onb-report-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.onb-rt-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.onb-rt-desc { font-size: 12px; color: rgba(255,255,255,0.4); }
.onb-features-row { display: flex; gap: 10px; width: 100%; max-width: 320px; opacity: 0; }
.onb-feature-pill { flex: 1; text-align: center; padding: 12px 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(147,51,234,0.2); border-radius: 12px; font-size: 11px; font-weight: 600; color: #c4b5fd; line-height: 1.3; }
.onb-fp-icon { font-size: 20px; display: block; margin-bottom: 6px; }
.onb-pdf-window {
    width: 100%;
    max-width: 300px;
    height: 420px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(147,51,234,0.25);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    margin-bottom: 24px;
    opacity: 0;
}
.onb-pdf-topbar { height: 36px; background: rgba(147,51,234,0.1); border-bottom: 1px solid rgba(147,51,234,0.2); display: flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; }
.onb-pdf-dot { width: 6px; height: 6px; border-radius: 50%; }
.onb-pdf-label { font-size: 11px; color: rgba(255,255,255,0.4); margin-left: 8px; font-weight: 500; }
.onb-pdf-scroll-area { height: calc(100% - 36px); overflow: hidden; position: relative; }
.onb-pdf-content { position: absolute; top: 0; left: 0; width: 100%; padding: 0; }
.onb-pdf-content.scrolling { animation: onbPdfScroll 8s 1.5s ease-in-out forwards; }
@keyframes onbPdfScroll {
    0% { transform: translateY(0); }
    25% { transform: translateY(-180px); }
    50% { transform: translateY(-380px); }
    75% { transform: translateY(-600px); }
    100% { transform: translateY(-780px); }
}
.onb-pdf-page { background: #ffffff; margin: 10px 14px; border-radius: 4px; padding: 20px 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.3); font-family: 'DM Sans', sans-serif; }
.onb-setup-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(147,51,234,0.15);
    border: 1px solid rgba(147,51,234,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    opacity: 0;
}
.onb-setup-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    color: #fff;
    opacity: 0;
}
.onb-setup-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    text-align: center;
    line-height: 1.6;
    max-width: 300px;
    margin-bottom: 28px;
    opacity: 0;
}
.onb-entity-group {
    width: 100%;
    max-width: 320px;
    margin-bottom: 12px;
    opacity: 0;
}
.onb-entity-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
}
.onb-entity-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(147,51,234,0.3);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
.onb-entity-input:focus { border-color: #9333ea; }
.onb-entity-input::placeholder { color: rgba(255,255,255,0.25); }
.onb-add-more-btn {
    width: 100%;
    max-width: 320px;
    padding: 12px;
    border-radius: 12px;
    border: 1px dashed rgba(147,51,234,0.35);
    background: transparent;
    color: #c4b5fd;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
    transition: border-color 0.2s, color 0.2s;
    opacity: 0;
}
.onb-add-more-btn:hover { border-color: #9333ea; color: #fff; }
.onb-settings-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    text-align: center;
    margin-bottom: 24px;
    opacity: 0;
}
.onb-dots {
    position: fixed;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100002;
}
.onb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.4s ease;
    cursor: pointer;
}
.onb-dot.active {
    background: #9333ea;
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(147,51,234,0.5);
}
.onb-s2-enter .onb-s2-headline { animation: onbFadeUp 0.6s 0.2s ease forwards; }
.onb-s2-enter .onb-s2-sub { animation: onbFadeUp 0.6s 0.35s ease forwards; }
.onb-s2-enter .onb-phone-frame { animation: onbFadeUp 0.8s 0.5s ease forwards; }
.onb-s2-enter .onb-s2-caption { animation: onbFadeUp 0.6s 2.8s ease forwards; }
.onb-s3-enter .onb-badge { animation: onbFadeUp 0.5s 0.1s ease forwards; }
.onb-s3-enter .onb-title { animation: onbFadeUp 0.5s 0.25s ease forwards; }
.onb-s3-enter .onb-sub-text { animation: onbFadeUp 0.5s 0.4s ease forwards; }
.onb-s3-enter .onb-preview-card { animation: onbFadeUp 0.6s 0.55s ease forwards; }
.onb-s4-enter .onb-badge { animation: onbFadeUp 0.5s 0.1s ease forwards; }
.onb-s4-enter .onb-title { animation: onbFadeUp 0.5s 0.25s ease forwards; }
.onb-s4-enter .onb-sub-text { animation: onbFadeUp 0.5s 0.4s ease forwards; }
.onb-s4-enter .onb-report-card { animation: onbFadeUp 0.6s 0.55s ease forwards; }
.onb-s4-enter .onb-features-row { animation: onbFadeUp 0.6s 0.75s ease forwards; }
.onb-s5-enter .onb-badge { animation: onbFadeUp 0.5s 0.1s ease forwards; }
.onb-s5-enter .onb-title { animation: onbFadeUp 0.5s 0.25s ease forwards; }
.onb-s5-enter .onb-sub-text { animation: onbFadeUp 0.5s 0.4s ease forwards; }
.onb-s5-enter .onb-pdf-window { animation: onbFadeUp 0.6s 0.6s ease forwards; }
.onb-s6-enter .onb-setup-icon { animation: onbFadeUp 0.6s 0.2s ease forwards; }
.onb-s6-enter .onb-setup-title { animation: onbFadeUp 0.6s 0.35s ease forwards; }
.onb-s6-enter .onb-setup-sub { animation: onbFadeUp 0.6s 0.5s ease forwards; }
.onb-s6-enter .onb-entity-group { animation: onbFadeUp 0.6s 0.65s ease forwards; }
.onb-s6-enter .onb-add-more-btn { animation: onbFadeUp 0.6s 0.8s ease forwards; }
.onb-s6-enter .onb-settings-hint { animation: onbFadeUp 0.6s 0.9s ease forwards; }
.onb-s6-enter .onb-cta-btn { animation: onbFadeUp 0.6s 1s ease forwards; }

@media (max-height: 700px) {
    .onb-screen { padding: 24px 24px; }
    .onb-s1-logo { width: 56px; height: 56px; margin-bottom: 28px; }
    .onb-s1-logo span { font-size: 28px; }
    .onb-s1-headline { font-size: 26px; }
    .onb-phone-frame { padding: 18px 16px; }
    .onb-sv { font-size: 17px; }
    .onb-pdf-window { height: 360px; }
}
@media (max-width: 768px) {
    .onb-close-btn { top: 12px; right: 12px; width: 36px; height: 36px; }
    .onb-skip-btn { top: 54px; right: 8px; font-size: 13px; }
}

.cancel-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.cancel-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
}
.cancel-screen.hidden { display: none; }
.cancel-header {
    padding: 20px 0 8px;
}
.cancel-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #A78BFA;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}
.cancel-body {
    flex: 1;
    padding: 8px 0 40px;
}
.cancel-heading {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}
.cancel-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    margin-bottom: 24px;
}
.cancel-reasons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}
.cancel-reason-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: #FFFFFF;
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.cancel-reason-card.selected {
    border-color: #7C3AED;
    background: rgba(124,58,237,0.08);
}
.cancel-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s;
}
.cancel-reason-card.selected .cancel-radio {
    border-color: #7C3AED;
}
.cancel-reason-card.selected .cancel-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #7C3AED;
}
.cancel-continue-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.cancel-continue-btn:disabled {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.3);
    cursor: not-allowed;
}
.cancel-continue-btn:not(:disabled) {
    background: linear-gradient(135deg, #7C3AED, #9333EA);
    color: #FFFFFF;
}
.cancel-progress-box {
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}
.cancel-progress-title {
    font-size: 11px;
    font-weight: 700;
    color: #10B981;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.cancel-progress-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.cancel-progress-item {
    display: flex;
    flex-direction: column;
}
.cancel-progress-val {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
}
.cancel-progress-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}
.cancel-offer-box {
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: 16px;
    padding: 24px 20px;
    margin-bottom: 20px;
    text-align: center;
}
.cancel-offer-title {
    font-size: 11px;
    font-weight: 700;
    color: #A78BFA;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.cancel-offer-headline {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}
.cancel-offer-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}
.cancel-price-old {
    font-size: 18px;
    color: rgba(255,255,255,0.4);
    text-decoration: line-through;
}
.cancel-price-new {
    font-size: 24px;
    font-weight: 700;
    color: #10B981;
}
.cancel-offer-fine {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}
.cancel-skip-link {
    display: block;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    margin-top: 16px;
    text-decoration: none;
    cursor: pointer;
}
.cancel-skip-link:hover {
    color: rgba(255,255,255,0.6);
}
.cancel-loss-list {
    margin-bottom: 24px;
}
.cancel-loss-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cancel-x {
    color: #EF4444;
    font-size: 14px;
    font-weight: 700;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.cancel-warning-box {
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 12px;
    padding: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
    text-align: center;
}
.cancel-red-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(239,68,68,0.3);
    background: rgba(239,68,68,0.08);
    color: #EF4444;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.cancel-red-btn:hover {
    background: rgba(239,68,68,0.15);
}
.report-lang-picker {
    margin-top: 16px;
    text-align: center;
}
.report-lang-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.report-lang-options {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.report-lang-btn {
    flex: 1;
    max-width: 140px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.report-lang-btn:hover {
    border-color: var(--purple-400);
}
.report-lang-btn.report-lang-active {
    border-color: var(--purple-500);
    background: rgba(147,51,234,0.1);
    color: var(--purple-400);
}

/* REPS Progress Card */
.reps-progress-card {
    margin: 16px 0 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px 20px 16px;
}
.reps-progress-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #A78BFA;
    margin-bottom: 10px;
}
.reps-progress-top {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 2px;
}
.reps-hours-val {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.reps-hours-unit {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
}
.reps-hours-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.38);
    margin-bottom: 14px;
}
.reps-bar-track {
    background: rgba(255,255,255,0.07);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}
.reps-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: #7C3AED;
    width: 0%;
    transition: width 0.7s ease, background 0.4s ease;
}
.reps-remaining-text {
    font-size: 12px;
    color: rgba(255,255,255,0.32);
    margin-top: 8px;
}

/* ===== USER TYPE ONBOARDING ===== */
.user-type-onboarding {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0D0D1A;
    z-index: 10000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.ut-step {
    min-height: 100vh;
    padding: 48px 20px 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 480px;
    margin: 0 auto;
}
.ut-logo-area {
    margin-bottom: 24px;
}
.ut-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 10px;
    letter-spacing: -0.3px;
}
.ut-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin: 0 0 32px;
}
.ut-cards-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ut-card {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    text-align: left;
}
.ut-card:hover {
    border-color: rgba(124,58,237,0.4);
    background: rgba(124,58,237,0.06);
}
.ut-card.selected {
    border-color: #7C3AED;
    background: rgba(124,58,237,0.1);
    box-shadow: 0 0 0 1px rgba(124,58,237,0.3), 0 4px 24px rgba(124,58,237,0.2);
}
.ut-card-icon {
    width: 44px;
    height: 44px;
    background: rgba(124,58,237,0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #A78BFA;
}
.ut-card-text {
    flex: 1;
    min-width: 0;
}
.ut-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}
.ut-card-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    line-height: 1.4;
}
.ut-card-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.28);
    line-height: 1.4;
    margin-top: 3px;
}
body.light-mode .ut-card-sub { color: rgba(0,0,0,0.35); }
.ut-card-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: transparent;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.ut-card.selected .ut-card-check {
    background: #7C3AED;
    border-color: #7C3AED;
    color: #fff;
}
.ut-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, #0D0D1A 60%, transparent);
}
.ut-continue-btn {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: block;
    padding: 16px;
    background: linear-gradient(135deg, #7C3AED, #9333EA);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.ut-continue-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}
.ut-continue-btn.ut-prop-inactive {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}
.ut-continue-btn:not(:disabled):active,
.ut-continue-btn:not(.ut-prop-inactive):active {
    transform: scale(0.98);
}
.ut-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 28px;
    align-self: flex-start;
    background: none;
    border: none;
    padding: 0;
}
.ut-back-btn:hover {
    color: rgba(255,255,255,0.8);
}
.ut-toggle-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ut-toggle-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 16px 18px;
}
.ut-toggle-icon {
    width: 44px;
    height: 44px;
    background: rgba(124,58,237,0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ut-toggle-text {
    flex: 1;
    min-width: 0;
}
.ut-toggle-label {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}
.ut-toggle-hint {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
}

/* Light mode overrides for user type onboarding */
body.light-mode .user-type-onboarding {
    background: #F5F5F7;
}
body.light-mode .ut-title {
    color: #1A1A2E;
}
body.light-mode .ut-subtitle {
    color: rgba(0,0,0,0.5);
}
body.light-mode .ut-card {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
}
body.light-mode .ut-card:hover {
    border-color: rgba(124,58,237,0.4);
    background: rgba(124,58,237,0.04);
}
body.light-mode .ut-card.selected {
    background: rgba(124,58,237,0.06);
}
body.light-mode .ut-card-title {
    color: #1A1A2E;
}
body.light-mode .ut-card-desc {
    color: rgba(0,0,0,0.45);
}
body.light-mode .ut-card-check {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.15);
}
body.light-mode .ut-footer {
    background: linear-gradient(to top, #F5F5F7 60%, transparent);
}
body.light-mode .ut-toggle-row {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
}
body.light-mode .ut-toggle-label {
    color: #1A1A2E;
}
body.light-mode .ut-toggle-hint {
    color: rgba(0,0,0,0.45);
}
body.light-mode .ut-back-btn {
    color: rgba(0,0,0,0.45);
}
body.light-mode .ut-back-btn:hover {
    color: rgba(0,0,0,0.75);
}

/* ===== INVOICES FEATURE ===== */
.invoices-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0D0D1A;
    z-index: 4000;
    overflow: hidden;
}
.inv-fullscreen {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.inv-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 52px 16px 16px;
    flex-shrink: 0;
}
.inv-icon-btn {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    flex-shrink: 0;
}
.inv-top-title {
    font-size: 17px; font-weight: 600; color: #fff;
    margin: 0; text-align: center; flex: 1;
}
.inv-count-badge {
    min-width: 28px; height: 26px;
    background: rgba(124,58,237,0.2);
    color: #A78BFA;
    border-radius: 13px;
    font-size: 13px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    padding: 0 8px;
    flex-shrink: 0;
}
.inv-filter-row {
    display: flex;
    gap: 8px;
    padding: 0 16px 14px;
    flex-shrink: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.inv-filter-row::-webkit-scrollbar { display: none; }
.inv-pill {
    padding: 7px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 13px; font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.inv-pill.active {
    background: rgba(124,58,237,0.2);
    border-color: rgba(124,58,237,0.4);
    color: #A78BFA;
}
.inv-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 110px;
}
.inv-list::-webkit-scrollbar { display: none; }
.inv-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: rgba(255,255,255,0.3);
    gap: 10px;
}
.inv-empty p { margin: 0; font-size: 15px; }
.inv-empty-sub { font-size: 13px !important; color: rgba(255,255,255,0.2) !important; }
.inv-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.inv-card-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}
.inv-card-vendor {
    font-size: 15px; font-weight: 600;
    color: #fff;
    flex: 1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-right: 12px;
}
.inv-card-amount {
    font-size: 17px; font-weight: 700;
    color: #A78BFA;
    flex-shrink: 0;
}
.inv-card-row2 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.inv-card-cat { font-size: 12px; color: rgba(255,255,255,0.45); }
.inv-card-date { font-size: 12px; color: rgba(255,255,255,0.3); }
.inv-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px; font-weight: 600;
}
.inv-badge-email { background: rgba(59,130,246,0.15); color: #60A5FA; }
.inv-badge-photo { background: rgba(52,211,153,0.15); color: #34D399; }
.inv-badge-property { background: rgba(52,211,153,0.12); color: #34D399; }
.inv-badge-review { background: rgba(245,158,11,0.15); color: #FBBF24; }
.inv-add-wrap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, #0D0D1A 60%, transparent);
}
.inv-add-btn {
    width: 100%; padding: 16px;
    background: linear-gradient(135deg, #7C3AED, #9333EA);
    color: #fff; font-size: 16px; font-weight: 600;
    border: none; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.inv-sheet-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.inv-sheet-inner {
    background: #1A1F2E;
    border-radius: 22px 22px 0 0;
    padding: 12px 20px calc(32px + env(safe-area-inset-bottom));
}
.inv-sheet-handle {
    width: 36px; height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    margin: 0 auto 20px;
}
.inv-sheet-title {
    font-size: 17px; font-weight: 600; color: #fff;
    margin: 0 0 18px; text-align: center;
}
.inv-option-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.inv-option-row {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; padding: 14px 16px;
    cursor: pointer; text-align: left; width: 100%;
}
.inv-option-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.inv-option-text { flex: 1; }
.inv-option-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.inv-option-desc { font-size: 13px; color: rgba(255,255,255,0.4); }
.inv-sheet-cancel {
    width: 100%; padding: 14px;
    background: rgba(255,255,255,0.06);
    border: none; border-radius: 12px;
    color: rgba(255,255,255,0.55);
    font-size: 15px; cursor: pointer;
}
.inv-email-desc {
    font-size: 14px; color: rgba(255,255,255,0.6);
    margin: 0 0 16px; line-height: 1.55;
}
.inv-email-addr-row {
    display: flex; align-items: center; gap: 10px;
    background: rgba(124,58,237,0.08);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: 12px; padding: 14px 16px;
    margin-bottom: 12px;
}
.inv-email-addr {
    flex: 1; font-size: 14px; font-weight: 600;
    color: #A78BFA; word-break: break-all;
}
.inv-copy-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: rgba(124,58,237,0.2);
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: 8px; color: #A78BFA;
    font-size: 13px; font-weight: 600;
    cursor: pointer; flex-shrink: 0;
}
.inv-email-note {
    font-size: 12px; color: rgba(255,255,255,0.3);
    margin: 0 0 20px; line-height: 1.5;
}
.inv-sheet-done {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #7C3AED, #9333EA);
    border: none; border-radius: 12px;
    color: #fff; font-size: 15px; font-weight: 600;
    cursor: pointer;
}
.inv-processing-wrap {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 40px; gap: 28px;
}
.inv-spinner-ring {
    width: 52px; height: 52px;
    border: 3px solid rgba(124,58,237,0.2);
    border-top-color: #7C3AED;
    border-radius: 50%;
    animation: invSpin 0.9s linear infinite;
}
@keyframes invSpin { to { transform: rotate(360deg); } }
.inv-processing-title {
    font-size: 22px; font-weight: 700; color: #fff;
    margin: 0; text-align: center;
}
.inv-steps-list { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 260px; }
.inv-step-item { display: flex; align-items: center; gap: 12px; }
.inv-step-dot {
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.12);
    flex-shrink: 0;
    transition: background 0.3s, border-color 0.3s;
}
.inv-step-item span { font-size: 14px; color: rgba(255,255,255,0.45); transition: color 0.3s; }
.inv-step-item.active .inv-step-dot { border-color: #7C3AED; background: rgba(124,58,237,0.15); }
.inv-step-item.active span { color: rgba(255,255,255,0.85); }
.inv-step-item.done .inv-step-dot { background: #7C3AED; border-color: #7C3AED; }
.inv-step-item.done span { color: #fff; }
.inv-confirm-body { flex: 1; overflow-y: auto; padding: 0 16px 16px; -webkit-overflow-scrolling: touch; }
.inv-confirm-hint { font-size: 14px; color: rgba(255,255,255,0.45); margin: 0 0 20px; }
.inv-fields { display: flex; flex-direction: column; gap: 14px; }
.inv-field-label {
    display: block; font-size: 11px; font-weight: 700;
    color: rgba(255,255,255,0.45); text-transform: uppercase;
    letter-spacing: 0.07em; margin-bottom: 6px;
}
.inv-field-input {
    width: 100%; box-sizing: border-box;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 13px 14px;
    color: #fff; font-size: 15px; outline: none;
}
.inv-field-input:focus { border-color: rgba(124,58,237,0.5); }
.inv-amount-row {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; overflow: hidden;
}
.inv-amount-row:focus-within { border-color: rgba(124,58,237,0.5); }
.inv-dollar { padding: 13px 2px 13px 14px; color: rgba(255,255,255,0.45); font-size: 15px; flex-shrink: 0; }
.inv-amount-input { background: transparent !important; border: none !important; border-radius: 0 !important; flex: 1; padding-left: 4px !important; }
.inv-confirm-footer { padding: 16px; flex-shrink: 0; }
.inv-save-btn {
    width: 100%; padding: 16px;
    background: linear-gradient(135deg, #7C3AED, #9333EA);
    color: #fff; font-size: 16px; font-weight: 600;
    border: none; border-radius: 14px; cursor: pointer;
    box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.inv-success-wrap {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 40px 24px; gap: 22px;
}
.inv-success-check {
    width: 80px; height: 80px;
    background: rgba(16,185,129,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.inv-success-title { font-size: 26px; font-weight: 700; color: #fff; margin: 0; }
.inv-success-details {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; padding: 16px 20px;
    width: 100%; box-sizing: border-box;
}
.inv-success-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 0;
}
.inv-success-label { font-size: 13px; color: rgba(255,255,255,0.45); }
.inv-success-val { font-size: 14px; font-weight: 600; color: #fff; }
.inv-view-all-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 16px;
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: 14px;
    color: #A78BFA; font-size: 15px; font-weight: 600;
    cursor: pointer;
}
.inv-dash-btn {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.65);
}
body.light-mode .invoices-overlay { background: #F4F4F8; }
body.light-mode .inv-top-title { color: #111; }
body.light-mode .inv-icon-btn { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.1); color: rgba(0,0,0,0.6); }
body.light-mode .inv-pill { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.1); color: rgba(0,0,0,0.5); }
body.light-mode .inv-pill.active { background: rgba(124,58,237,0.12); border-color: rgba(124,58,237,0.3); color: #7C3AED; }
body.light-mode .inv-card { background: #fff; border-color: rgba(0,0,0,0.08); }
body.light-mode .inv-card-vendor { color: #111; }
body.light-mode .inv-card-cat { color: rgba(0,0,0,0.45); }
body.light-mode .inv-card-date { color: rgba(0,0,0,0.3); }
body.light-mode .inv-add-wrap { background: linear-gradient(to top, #F4F4F8 60%, transparent); }
body.light-mode .inv-sheet-inner { background: #fff; }
body.light-mode .inv-sheet-title { color: #111; }
body.light-mode .inv-option-row { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
body.light-mode .inv-option-title { color: #111; }
body.light-mode .inv-option-desc { color: rgba(0,0,0,0.4); }
body.light-mode .inv-sheet-cancel { background: rgba(0,0,0,0.05); color: rgba(0,0,0,0.5); }
body.light-mode .inv-field-input { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: #111; }
body.light-mode .inv-amount-row { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }
body.light-mode .inv-confirm-hint { color: rgba(0,0,0,0.4); }
body.light-mode .inv-field-label { color: rgba(0,0,0,0.4); }
body.light-mode .inv-success-details { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
body.light-mode .inv-success-label { color: rgba(0,0,0,0.45); }
body.light-mode .inv-success-title { color: #111; }
body.light-mode .inv-processing-title { color: #111; }
body.light-mode .inv-step-item span { color: rgba(0,0,0,0.4); }
body.light-mode .inv-step-item.done span { color: #111; }
body.light-mode .inv-step-dot { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.12); }
body.light-mode .inv-dash-btn { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.1); }

@keyframes nudgeSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
