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

:root {
    color-scheme: light dark;

    /* Brand Colors */
    --primary: light-dark(#0B7BFF, #0B7BFF);
    --primary-hover: light-dark(#0968E3, #2D8CFF);
    --secondary: light-dark(#7C3AED, #8B5CF6);
    --secondary-hover: light-dark(#6D28D9, #A78BFA);

    /* Background Colors */
    --bg-primary: light-dark(#F5F7FA, #0F0F0F);
    --bg-secondary: light-dark(#FFFFFF, #1A1A1A);
    --bg-tertiary: light-dark(#F9FAFB, #1F1F1F);
    --bg-hover: light-dark(#F3F4F6, #262626);

    /* Text Colors */
    --text-primary: light-dark(#1F2937, #F9FAFB);
    --text-secondary: light-dark(#6B7280, #9CA3AF);
    --text-tertiary: light-dark(#9CA3AF, #6B7280);
    --text-muted: light-dark(#D1D5DB, #4B5563);

    /* Border Colors */
    --border-light: light-dark(#E5E7EB, #2D2D2D);
    --border-medium: light-dark(#D1D5DB, #3D3D3D);

    /* Status Colors */
    --success: light-dark(#10B981, #34D399);
    --warning: light-dark(#F59E0B, #FBBF24);
    --error: light-dark(#EF4444, #F87171);
    --info: light-dark(#3B82F6, #60A5FA);

    /* Shadows */
    --shadow-sm: light-dark(0 1px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.3));
    --shadow: light-dark(0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.4));
    --shadow-lg: light-dark(0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.5));

    /* Border Radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
}

body {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ===== Loading Screen ===== */
.loading-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

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

.spinner {
    animation: spin 1s linear infinite;
    width: 56px;
    height: 56px;
    filter: light-dark(none, brightness(0.9));
}

.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ===== Auth Screen ===== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-primary);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    background: var(--bg-secondary);
    padding: 48px 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
}

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

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ===== App Layout ===== */
.app-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* ===== Sidebar ===== */
.sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 32px;
    padding: 0 8px;
}

/* InvoicerPal App Branding */
.sidebar-app-branding {
    padding: 0 8px 24px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.app-logo {
    height: 32px;
    width: auto;
    max-width: 100%;
}

/* User's Brand Section */
.sidebar-user-brand {
    padding: 0 8px 24px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.user-brand-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.user-brand-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    object-fit: contain;
}

.sidebar-nav {
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    transition: all 0.2s;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: light-dark(rgba(11, 123, 255, 0.1), rgba(11, 123, 255, 0.15));
    color: var(--primary);
}

.sidebar-footer {
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-email {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-logout:hover {
    background: var(--bg-hover);
    color: var(--error);
}

/* ===== Main Content ===== */
.main-content {
    padding: 40px;
    overflow-y: auto;
}

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

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

.content-wrapper {
    max-width: 1400px;
}

/* ===== Buttons ===== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

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

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: light-dark(#DC2626, #EF4444);
    transform: translateY(-1px);
}

.btn-with-spinner {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-text {
    background: transparent;
    color: var(--text-secondary);
    border: none;
}

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

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

/* ===== Form Elements ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px light-dark(rgba(11, 123, 255, 0.1), rgba(11, 123, 255, 0.2));
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* ===== Statistics Overview ===== */
.stats-overview {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .stats-overview {
        grid-template-columns: 1fr;
    }
}

/* ===== Chart Container ===== */
.chart-container {
    background: var(--bg-secondary);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.chart-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.chart-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

#financialChart {
    max-width: 100%;
    max-height: 350px;
}

/* ===== Statistics Cards ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

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

.stat-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.stat-icon-green {
    background: light-dark(rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.15));
    color: var(--success);
}

.stat-icon-blue {
    background: light-dark(rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.15));
    color: var(--info);
}

.stat-icon-orange {
    background: light-dark(rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.15));
    color: var(--warning);
}

.stat-icon-gray {
    background: light-dark(rgba(107, 114, 128, 0.1), rgba(107, 114, 128, 0.15));
    color: var(--text-secondary);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== Recents Section ===== */
.recents-section {
    margin-bottom: 48px;
}

.recent-invoices-section {
    margin-bottom: 48px;
}

.recent-invoices-section .section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.recent-invoices-section .section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.recents-section .section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.recents-section .section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.recents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.recent-client-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.recent-client-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.recent-client-card:hover .client-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

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

.client-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-email {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-meta {
    font-size: 12px;
    color: var(--text-tertiary);
}

.client-arrow {
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.all-invoices-header {
    margin-top: 16px;
    margin-bottom: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.all-invoices-header .section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== Invoice Grid ===== */
.invoice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.invoice-card {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.invoice-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.invoice-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.invoice-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.invoice-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.badge-paid {
    background: light-dark(rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.15));
    color: var(--success);
}

.badge-paid:hover {
    background: light-dark(rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.2));
}

.badge-unpaid {
    background: light-dark(rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.15));
    color: var(--warning);
}

.badge-unpaid:hover {
    background: light-dark(rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.2));
}

.badge-cancelled {
    background: light-dark(rgba(107, 114, 128, 0.1), rgba(107, 114, 128, 0.15));
    color: var(--text-secondary);
}

.badge-cancelled:hover {
    background: light-dark(rgba(107, 114, 128, 0.15), rgba(107, 114, 128, 0.2));
}

.status-dropdown {
    position: relative;
}

.status-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    z-index: 10;
    overflow: hidden;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.status-option:hover {
    background: var(--bg-hover);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

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

.invoice-date {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.invoice-card-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.invoice-total {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== Invoice Filters ===== */
.invoice-filters {
    margin-bottom: 20px;
}

.filters-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select-slim {
    min-width: 180px;
    padding: 8px 12px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.filter-select-slim:hover {
    border-color: var(--border-medium);
}

.filter-select-slim:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px light-dark(rgba(11, 123, 255, 0.1), rgba(11, 123, 255, 0.2));
}

.btn-clear-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-clear-filters:hover {
    background: var(--bg-hover);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

/* Select2 Custom Styling - Dark Mode Compatible */
.select2-container--default .select2-selection--single {
    background-color: var(--bg-secondary) !important;
    border: 1.5px solid var(--border-light) !important;
    border-radius: var(--radius-sm);
    height: 38px;
    display: flex;
    align-items: center;
    transition: border-color 0.2s ease;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary) !important;
    outline: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary) !important;
    line-height: 1;
    padding-left: 12px;
    padding-right: 0;
    font-size: 14px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--text-secondary) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    right: 8px;
    top: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: light-dark(#6B7280, #9CA3AF) transparent transparent transparent !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent light-dark(#6B7280, #9CA3AF) transparent !important;
}

/* Dropdown Menu */
.select2-dropdown {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg) !important;
}

/* Results Container */
.select2-results {
    background-color: var(--bg-secondary) !important;
}

.select2-results__options {
    background-color: var(--bg-secondary) !important;
}

/* Individual Options */
.select2-container--default .select2-results__option {
    padding: 10px 12px;
    color: var(--text-primary) !important;
    background-color: var(--bg-secondary) !important;
    font-size: 14px;
    transition: background-color 0.15s ease;
}

/* Highlighted Option (Hover) */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--bg-hover) !important;
    color: var(--text-primary) !important;
}

/* Selected Option */
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: light-dark(rgba(11, 123, 255, 0.1), rgba(11, 123, 255, 0.15)) !important;
    color: var(--primary) !important;
}

/* Disabled Option */
.select2-container--default .select2-results__option--disabled {
    color: var(--text-muted) !important;
}

/* Search Dropdown */
.select2-search--dropdown {
    background-color: var(--bg-secondary) !important;
    padding: 8px;
}

.select2-search--dropdown .select2-search__field {
    background-color: var(--bg-primary) !important;
    border: 1.5px solid var(--border-light) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 14px;
}

.select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: var(--primary) !important;
}

.select2-search--dropdown .select2-search__field::placeholder {
    color: var(--text-secondary) !important;
}

/* ===== Invoice List (Horizontal Layout) ===== */
.invoice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.invoice-list-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.invoice-list-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.invoice-list-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    padding: 0 24px 0 0;
    gap: 24px;
}

.invoice-list-right {
    display: flex;
    align-items: center;
    gap: 48px;
}

.invoice-list-info {
    min-width: 0;
}

.invoice-list-number {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.invoice-list-customer {
    font-size: 14px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invoice-list-date {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

.invoice-list-status {
    display: flex;
    justify-content: center;
}

.invoice-list-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
}

@media (max-width: 768px) {
    .invoice-list-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .invoice-list-right {
        width: 100%;
        justify-content: space-between;
        gap: 16px;
    }

    .invoice-list-total {
        text-align: left;
    }

    .invoice-list-status {
        justify-content: flex-start;
    }
}

/* ===== Customer Autocomplete ===== */
.customer-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 240px;
    overflow-y: auto;
    z-index: 100;
}

.customer-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-light);
}

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

.customer-suggestion-item:hover {
    background: var(--bg-hover);
}

.suggestion-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.suggestion-email {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== Danger Zone ===== */
.danger-zone {
    padding: 24px;
    background: light-dark(
        rgba(220, 38, 38, 0.05),
        rgba(220, 38, 38, 0.1)
    );
    border: 1.5px solid light-dark(
        rgba(220, 38, 38, 0.2),
        rgba(220, 38, 38, 0.3)
    );
    border-radius: var(--radius-lg);
}

.danger-zone-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.danger-zone-title {
    font-size: 16px;
    font-weight: 700;
    color: light-dark(rgb(185, 28, 28), rgb(252, 165, 165));
    margin-bottom: 6px;
}

.danger-zone-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
}

.btn-danger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: light-dark(rgb(220, 38, 38), rgb(185, 28, 28));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-danger:hover {
    background: light-dark(rgb(185, 28, 28), rgb(153, 27, 27));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
}

/* ===== Form Card ===== */
.form-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.form-card-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-light);
}

.form-card-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.form-section {
    padding: 32px;
    border-bottom: 1px solid var(--border-light);
}

.form-section:last-child {
    border-bottom: none;
}

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

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Template Selector Styles */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 1200px;
}

.template-card {
    position: relative;
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.template-card:hover:not(.disabled) {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.template-card.selected {
    border-color: var(--primary);
    background: light-dark(rgba(11, 123, 255, 0.05), rgba(11, 123, 255, 0.1));
}

.template-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.template-preview {
    background: white;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
    position: relative;
    flex: 1;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.template-preview-content {
    background: white;
    padding: clamp(14px, 2vw, 22px);
    width: 100%;
    height: 100%;
    font-size: clamp(8px, 0.8vw, 10px);
    line-height: 1.5;
}

.template-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.template-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.template-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.template-badge.badge-free {
    background: light-dark(rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.15));
    color: var(--success);
}

.template-badge.badge-pro {
    background: light-dark(rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.15));
    color: light-dark(#7C3AED, #A78BFA);
}

.template-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.template-lock {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--bg-secondary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.template-lock svg {
    color: var(--text-secondary);
}

.template-note {
    display: flex;
    align-items: center;
    padding: 12px;
    background: light-dark(rgba(11, 123, 255, 0.05), rgba(11, 123, 255, 0.1));
    border-radius: var(--radius-sm);
    border: 1px solid light-dark(rgba(11, 123, 255, 0.2), rgba(11, 123, 255, 0.3));
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.template-note-icon {
    display: inline;
    vertical-align: text-bottom;
    margin-right: 4px;
}

.pdf-template-subtitle {
    margin-bottom: 16px;
}

/* Settings section subtitles */
.form-section .section-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Removed media queries - using pure CSS grid with clamp() for responsive sizing */

.items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.item-card {
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.item-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.item-subtotal {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Item card wrapper with external action buttons */
.item-card-wrapper {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.item-card {
    flex: 1;
}

.item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-action:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-add:hover {
    color: var(--success);
    border-color: var(--success);
}

.btn-remove:hover {
    color: var(--danger);
    border-color: var(--danger);
}

.btn-action[x-show="false"] {
    visibility: hidden;
}

/* Mobile responsiveness for item actions */
@media (max-width: 768px) {
    .item-card-wrapper {
        gap: 8px;
    }

    .btn-action {
        width: 28px;
        height: 28px;
    }

    .btn-action svg {
        width: 14px;
        height: 14px;
    }
}

.invoice-total-bar {
    background: var(--bg-tertiary);
    padding: 20px 24px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.total-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.form-actions {
    padding: 24px 32px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--bg-tertiary);
}

/* ===== Invoice Totals Section ===== */
.invoice-totals-section {
    background: var(--bg-tertiary);
    padding: 15px;
    border-radius: var(--radius);
    margin-top: 20px;
}

.invoice-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.invoice-totals-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.invoice-totals-value {
    font-weight: 500;
    color: var(--text-primary);
}

.invoice-totals-divider {
    border-top: 2px solid var(--border-light);
    margin: 10px 0;
}

.invoice-totals-final {
    background: transparent;
    padding: 0;
}

.invoice-totals-final .total-label {
    font-size: 1.2em;
}

/* Tax percentage input specific styles */
.tax-input-group {
    margin-top: 20px;
}

.tax-percentage-input {
    width: 200px;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-secondary);
}

.empty-state svg {
    margin-bottom: 24px;
    color: var(--text-tertiary);
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: light-dark(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

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

.modal-dialog {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

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

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

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

.modal-footer {
    padding: 20px 32px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: var(--bg-tertiary);
}

/* ===== Invoice Preview ===== */
.invoice-preview {
    max-width: 800px;
    margin: 0 auto;
}

.invoice-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding-bottom: 32px;
    border-bottom: 3px solid var(--primary);
    margin-bottom: 32px;
}

.invoice-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.invoice-number-preview {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

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

.date-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.date-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.invoice-customer-info {
    margin-bottom: 32px;
}

.invoice-customer-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.invoice-customer-info .customer-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.invoice-customer-info p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.invoice-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 32px;
}

.invoice-table th {
    background: var(--bg-tertiary);
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-medium);
}

.invoice-table th:first-child {
    border-top-left-radius: var(--radius-sm);
}

.invoice-table th:last-child {
    border-top-right-radius: var(--radius-sm);
}

.invoice-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 15px;
}

.invoice-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.invoice-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 280px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
}

.total-row span:first-child {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

.total-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

/* ===== Alerts ===== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-top: 16px;
}

.alert-error {
    background: light-dark(#FEE2E2, rgba(239, 68, 68, 0.1));
    color: var(--error);
    border: 1px solid var(--error);
}

.alert-success {
    background: light-dark(#D1FAE5, rgba(16, 185, 129, 0.1));
    color: var(--success);
    border: 1px solid var(--success);
}

/* ===== Settings Page ===== */

/* Branding + Settings Cards */
.settings-card,
.form-card {
    box-shadow: var(--shadow);
}

/* Specific settings card styling for "Other Settings" */
.settings-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    padding: 24px 32px 28px;
    margin-top: 24px;
}

.settings-card-header {
    margin-bottom: 12px;
}

.settings-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.settings-card-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Ensure danger zone is visually contained within the card */
.settings-card .danger-zone {
    margin-top: 20px;
}

/* Logo upload + branding */
.logo-upload-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.logo-upload {
    text-align: center;
    padding: 40px;
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius);
    background: var(--bg-tertiary);
    transition: all 0.2s;
}

.logo-upload:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.logo-upload label {
    cursor: pointer;
    margin-bottom: 12px;
}

.upload-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.logo-preview {
    position: relative;
    display: inline-block;
    max-width: 300px;
}

.logo-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

.btn-remove-logo {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--error);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.btn-remove-logo:hover {
    transform: scale(1.1);
    background: light-dark(#DC2626, #EF4444);
}

/* Logo section header with Pro badge */
.logo-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pro-badge {
    background: linear-gradient(135deg, #0B7BFF, #0956B8);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Logo upgrade prompt for free users */
.logo-upgrade-prompt {
    cursor: pointer;
    text-align: center;
    padding: 20px;
}

.logo-upgrade-icon {
    margin: 0 auto 12px;
    opacity: 0.4;
    color: var(--text-secondary);
}

.logo-upgrade-title {
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.logo-upgrade-btn {
    margin-top: 12px;
}

.logo-upgrade-btn svg {
    margin-right: 6px;
}

/* Logo setup screen variations */
.logo-upload-container-compact {
    min-height: 150px;
}

.logo-preview-compact {
    max-width: 200px;
}

.logo-upload-compact {
    padding: 30px;
}

.logo-setup-prompt {
    text-align: center;
    padding: 10px;
}

.logo-setup-icon {
    margin: 0 auto 8px;
    opacity: 0.4;
    color: var(--text-secondary);
}

.logo-setup-message {
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.logo-setup-hint {
    font-size: 11px;
}

/* Auth container for brand setup */
.auth-container-narrow {
    max-width: 500px;
}

/* Button with centered content and gap */
.btn-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Reminder progress navigation */
.reminder-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Subscription banners in sidebar */
.subscription-banner-upgrade {
    background: linear-gradient(135deg, #0B7BFF 0%, #0956B8 100%);
    padding: 12px 16px;
    margin: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(11, 123, 255, 0.2);
}

.subscription-banner-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 123, 255, 0.3);
}

.subscription-banner-pro {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    padding: 12px 16px;
    margin: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.banner-text {
    flex: 1;
}

.banner-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
}

.banner-subtitle {
    font-size: 11px;
    opacity: 0.95;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.checkbox-label:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.checkbox-label:has(input:disabled) {
    cursor: not-allowed;
    opacity: 0.6;
}

.checkbox-label:has(input:disabled):hover {
    border-color: var(--border-light);
    background: var(--bg-tertiary);
}

.branding-preview {
    padding: 32px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--primary);
}

.preview-branding {
    display: flex;
    align-items: center;
    gap: 16px;
}

.preview-logo {
    max-height: 50px;
    max-width: 150px;
    object-fit: contain;
}

.preview-brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.preview-invoice-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    margin: 0;
}

.preview-invoice-number {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-width: 500px;
    pointer-events: auto;
    animation: slideUp 0.3s ease;
}

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

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.toast-success {
    border-color: var(--success);
}

.toast-success .toast-content {
    color: var(--success);
}

.toast-error {
    border-color: var(--error);
}

.toast-error .toast-content {
    color: var(--error);
}

.toast-close {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

@media (max-width: 640px) {
    .toast-container {
        left: 12px;
        right: 12px;
        transform: none;
        width: calc(100% - 24px);
    }

    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* ===== Mobile Menu ===== */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    order: 2;
}

.mobile-menu-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-medium);
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header-left > div {
    order: 1;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        z-index: 1000;
        width: 260px;
        transition: left 0.3s ease;
    }

    .sidebar.mobile-open {
        left: 0;
    }

    .main-content {
        padding: 24px 20px;
    }

    .page-header {
        flex-direction: column;
        gap: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

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

    .form-section {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }
}

/* ===================================
   Landing Page Styles
   =================================== */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Landing Container */
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.landing-navbar {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
    backdrop-filter: blur(10px);
    background: color-mix(in srgb, var(--bg-primary) 95%, transparent);
    padding: 16px 0;
}

.landing-navbar .nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.landing-navbar .nav-logo .logo {
    height: 3rem;
    width: auto;
}

.landing-navbar .nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.landing-navbar .nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.landing-navbar .nav-links a:hover {
    color: var(--text-primary);
}

.landing-navbar .nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Mobile Navigation Actions */
.mobile-nav-actions {
    display: none;
    gap: 12px;
    align-items: center;
}

.btn-mobile-get-started {
    padding: 10px 16px;
    font-size: 14px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    margin: 0;
}

.mobile-menu-btn svg {
    display: block;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
    margin-top: 16px;
}

.mobile-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 0;
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--text-primary);
}

.mobile-menu .mobile-menu-btn-text {
    text-align: left;
    padding: 12px 0;
    font-size: 16px;
}

.btn-text,
.btn-text-large {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-text {
    font-size: 15px;
}

.btn-text:hover,
.btn-text-large:hover {
    color: var(--primary);
}

/* Hero Section */
.landing-hero {
    padding: 100px 0 120px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 600px;
    background: radial-gradient(circle at top center, color-mix(in srgb, var(--primary) 8%, transparent), transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, light-dark(#7C3AED, #8B5CF6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.hero-note {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* Invoice Preview Card - Enhanced */
.invoice-preview-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow:
        0 20px 25px -5px color-mix(in srgb, var(--primary) 10%, transparent),
        0 8px 10px -6px color-mix(in srgb, var(--primary) 10%, transparent);
    position: relative;
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.invoice-preview-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 25px 50px -12px color-mix(in srgb, var(--primary) 15%, transparent);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.preview-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.invoice-preview-card .preview-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
}

.preview-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.preview-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: color-mix(in srgb, var(--success) 15%, transparent);
    color: var(--success);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
}

.preview-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.preview-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
}

.preview-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-label {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.preview-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.preview-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preview-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.preview-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 60px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary), light-dark(#2D8CFF, #8B5CF6));
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.chart-bar:hover {
    opacity: 1;
    transform: scaleY(1.05);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header-left {
    text-align: left;
    margin-bottom: 56px;
}

.section-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    max-width: 100%;
    word-wrap: break-word;
}

.section-header .section-title {
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
}

.section-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.7;
}

.section-header .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.landing-features {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    padding: 40px 32px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px color-mix(in srgb, var(--primary) 8%, transparent),
                0 8px 10px -6px color-mix(in srgb, var(--primary) 8%, transparent);
    border-color: color-mix(in srgb, var(--primary) 30%, transparent);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

.feature-icon.gradient-blue {
    background: linear-gradient(135deg, #0B7BFF 0%, #2D8CFF 100%);
}

.feature-icon.gradient-purple {
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
}

.feature-icon.gradient-green {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
}

.feature-icon.gradient-orange {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
}

.feature-icon.gradient-pink {
    background: linear-gradient(135deg, #EC4899 0%, #F472B6 100%);
}

.feature-icon.gradient-teal {
    background: linear-gradient(135deg, #14B8A6 0%, #2DD4BF 100%);
}

.feature-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Stats Section */
.landing-stats {
    padding: 100px 0;
    background: var(--bg-primary);
}

.landing-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
}

.landing-stats .stat-card {
    text-align: center;
    padding: 0;
    background: transparent;
    border: none;
}

.landing-stats .stat-number {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, light-dark(#7C3AED, #8B5CF6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.landing-stats .stat-label {
    font-size: 17px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Testimonials Section */
.landing-testimonials {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px color-mix(in srgb, var(--primary) 6%, transparent);
    border-color: color-mix(in srgb, var(--primary) 20%, transparent);
}

.testimonial-quote {
    position: relative;
}

.quote-icon {
    color: color-mix(in srgb, var(--primary) 20%, transparent);
    margin-bottom: 20px;
}

.testimonial-quote p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
}

.author-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.author-role {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Pricing Section */
.landing-pricing {
    padding: 120px 0;
    background: var(--bg-primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.pricing-grid-two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: color-mix(in srgb, var(--primary) 40%, transparent);
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px color-mix(in srgb, var(--primary) 10%, transparent);
}

.pricing-card-featured {
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--primary) 8%, transparent);
}

.pricing-card-featured:hover {
    border-color: var(--primary);
    box-shadow: 0 25px 50px -12px color-mix(in srgb, var(--primary) 15%, transparent);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, light-dark(#0968E3, #2D8CFF) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

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

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

.pricing-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.price-currency {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-secondary);
}

.price-amount {
    font-size: 64px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.price-period {
    font-size: 17px;
    color: var(--text-secondary);
}

.btn-block {
    width: 100%;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 28px 0 0 0;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-primary);
}

.pricing-features li span {
    flex: 1;
}

.pricing-features svg {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

/* FAQ Section */
.landing-faq {
    padding: 120px 0;
    background: var(--bg-primary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

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

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    color: var(--text-secondary);
    transition: transform 0.3s ease, color 0.2s;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-answer {
    padding-bottom: 24px;
}

.faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* CTA Section */
.landing-cta {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary) 0%, light-dark(#1d4ed8, #6D28D9) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.landing-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><circle cx="20" cy="20" r="1.5" fill="white" opacity="0.1"/></svg>');
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    line-height: 1.15;
}

.cta-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.landing-cta .btn-primary {
    background: white;
    color: var(--primary);
    font-size: 17px;
    padding: 16px 36px;
}

.landing-cta .btn-primary:hover {
    background: light-dark(#F9FAFB, #E5E7EB);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Footer */
.landing-footer {
    padding: 80px 0 40px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.footer-newsletter h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

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

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent);
}

.newsletter-input::placeholder {
    color: var(--text-tertiary);
}

.newsletter-btn {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.newsletter-btn:hover {
    background: light-dark(#0968E3, #2D8CFF);
    transform: translateY(-1px);
}

.footer-links {
    display: flex;
    justify-content: flex-end;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-link-btn {
    display: block;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.2s;
    cursor: pointer;
    padding: 0;
    text-align: left;
    font-family: inherit;
}

.footer-link-btn:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pricing-grid,
    .pricing-grid-two {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-visual {
        order: -1;
    }

    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 40px;
    }

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

    .landing-stats .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .landing-container {
        padding: 0 20px;
    }

    .nav-links {
        display: none !important;
    }

    .nav-actions {
        display: none !important;
    }

    .mobile-nav-actions {
        display: flex !important;
    }

    .mobile-menu {
        display: flex;
    }

    .landing-navbar {
        padding: 12px 0;
    }

    .landing-hero {
        padding: 80px 0 100px;
    }

    .landing-features,
    .landing-testimonials,
    .landing-pricing,
    .landing-faq {
        padding: 80px 0;
    }

    .landing-cta {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-header,
    .section-header-left {
        margin-bottom: 48px;
    }

    .section-title {
        font-size: 36px;
        white-space: normal;
        word-break: break-word;
        hyphens: auto;
    }

    .section-subtitle {
        font-size: 17px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .landing-stats .stats-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cta-title {
        font-size: 36px;
    }

    .cta-subtitle {
        font-size: 18px;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .landing-cta .btn-primary {
        width: 100%;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .faq-question {
        font-size: 16px;
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .landing-container {
        padding: 0 16px;
    }
}

@media (max-width: 375px) {
    .landing-container {
        padding: 0 12px;
    }

    .section-title {
        font-size: 24px;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
        white-space: normal;
        word-break: break-word;
        hyphens: auto;
    }

    .cta-title {
        font-size: 28px;
    }

    .preview-amount {
        font-size: 36px;
    }

    .price-amount {
        font-size: 48px;
    }

    .landing-stats .stat-number {
        font-size: 40px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 15px;
    }

    .landing-hero {
        padding: 60px 0 80px;
    }

    .landing-features,
    .landing-testimonials,
    .landing-pricing,
    .landing-faq,
    .landing-cta {
        padding: 60px 0;
    }

    .invoice-preview-card {
        padding: 28px 24px;
    }

    .feature-card,
    .testimonial-card {
        padding: 28px 24px;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .faq-question {
        font-size: 15px;
    }

    .faq-answer p {
        font-size: 14px;
    }
}

/* ===================================
   Fullscreen Auth Layout
   =================================== */

.auth-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    background: var(--bg-primary);
    overflow: hidden;
}

.auth-split-container {
    display: grid;
    grid-template-columns: 65% 35%;
    height: 100vh;
}

/* Left Side - Video/Media */
.auth-media-side {
    background: linear-gradient(135deg, var(--primary) 0%, light-dark(#1d4ed8, #1e40af) 100%);
    position: relative;
    overflow: hidden;
}

.auth-back-btn {
    position: absolute;
    top: 32px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
    z-index: 20;
}

.auth-back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.auth-close-btn-mobile {
    display: none;
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.auth-close-btn-mobile:hover {
    background: var(--bg-secondary);
    border-color: var(--border-medium);
}

.auth-media-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.auth-media-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* Image Slideshow */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow-image.active {
    opacity: 1;
}

.slideshow-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slideshow Indicators */
.slideshow-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slideshow-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slideshow-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.slideshow-indicators .indicator.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

/* Right Side - Auth Form */
.auth-form-side {
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}

.auth-form-container {
    width: 100%;
    max-width: 440px;
}

/* Responsive for Auth Fullscreen */
@media (max-width: 1024px) {
    .auth-split-container {
        grid-template-columns: 60% 40%;
    }
}

@media (max-width: 768px) {
    .auth-split-container {
        grid-template-columns: 1fr;
    }

    .auth-media-side {
        display: none;
    }

    .auth-form-side {
        padding: 24px;
        position: relative;
    }

    .auth-close-btn-mobile {
        display: flex;
    }
}

/* ========================================
   Overdue Invoice Reminder Styles
   ======================================== */

/* Overdue Alert Banner */
.overdue-alert {
    background: color-mix(in srgb, var(--warning) 10%, var(--bg-secondary));
    border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: slideDown 0.3s ease-out;
}

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

.overdue-alert-icon {
    flex-shrink: 0;
    color: var(--warning);
    display: flex;
    align-items: center;
    justify-content: center;
}

.overdue-alert-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.overdue-alert-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.overdue-alert-text strong {
    font-weight: 700;
    color: var(--warning);
}

.overdue-alert-btn {
    background: var(--warning);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.overdue-alert-btn:hover {
    background: color-mix(in srgb, var(--warning) 85%, black);
    transform: translateY(-1px);
}

/* Reminder Modal */
.reminder-modal {
    max-width: 600px;
}

.reminder-invoice-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.reminder-progress {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.reminder-invoice-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: var(--radius);
}

.reminder-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.reminder-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.reminder-value {
    color: var(--text-primary);
    font-weight: 600;
}

.reminder-amount {
    font-size: 18px;
    color: var(--primary);
}

.reminder-overdue {
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.reminder-days {
    color: var(--error);
    font-size: 16px;
}

.reminder-question {
    text-align: center;
    padding: 20px;
    background: color-mix(in srgb, var(--primary) 5%, var(--bg-secondary));
    border-radius: var(--radius);
}

.reminder-question p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.reminder-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reminder-actions .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 15px;
}

.btn-success {
    background: var(--success);
    color: white;
    border: 1px solid var(--success);
}

.btn-success:hover {
    background: color-mix(in srgb, var(--success) 85%, black);
    border-color: color-mix(in srgb, var(--success) 85%, black);
}

/* Arrow Navigation Buttons */
.btn-arrow {
    padding: 5px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-arrow:hover:not(:disabled) {
    background: var(--bg-secondary);
    transform: scale(1.05);
}

.btn-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-arrow svg {
    width: 20px;
    height: 20px;
}

/* Settings Toggle Switch */
.settings-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.settings-row-content {
    flex: 1;
}

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

.settings-row-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-hover);
    border: 1px solid var(--border-light);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
    border-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
    background-color: white;
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

/* Responsive for Reminder System */
@media (max-width: 768px) {
    .overdue-alert {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .overdue-alert-content {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .overdue-alert-btn {
        width: 100%;
    }

    .reminder-modal {
        max-width: 95%;
    }

    .reminder-actions .btn {
        font-size: 14px;
        padding: 12px 16px;
    }

    .settings-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Subscription & Billing Styles */
.subscription-status {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.subscription-info {
    flex: 1;
}

.subscription-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.badge-free {
    background: light-dark(#F3F4F6, #262626);
    color: light-dark(#6B7280, #9CA3AF);
}

.badge-pro {
    background: light-dark(#DBEAFE, #1E3A5F);
    color: light-dark(#1E40AF, #93C5FD);
}

.subscription-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.subscription-period {
    font-size: 13px;
    color: var(--text-tertiary);
}

.subscription-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.subscription-actions .btn {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.usage-stats {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.usage-stats-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.usage-stats-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.usage-bar {
    width: 100%;
    height: 8px;
    background: light-dark(#E5E7EB, #2D2D2D);
    border-radius: 4px;
    overflow: hidden;
}

.usage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .subscription-status {
        flex-direction: column;
    }

    .subscription-actions {
        width: 100%;
    }

    .subscription-actions .btn {
        flex: 1;
    }
}

/* ===== Legal Modals (Privacy & Terms) ===== */
.modal-legal {
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-body-scrollable {
    overflow-y: auto;
    max-height: calc(85vh - 140px);
}

.legal-content {
    line-height: 1.6;
    color: var(--text-secondary);
}

.legal-content h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 16px;
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-date {
    color: var(--text-tertiary);
    font-size: 14px;
    font-style: italic;
    margin-bottom: 24px !important;
}

/* Footer Legal Links */
.footer-legal-links {
    margin-left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-separator {
    color: var(--text-tertiary);
    opacity: 0.5;
}

.footer-link-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    transition: color 0.2s;
    font-size: inherit;
    font-family: inherit;
}

.footer-link-btn:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Mobile responsiveness for legal modals */
@media (max-width: 768px) {
    .modal-legal {
        width: 95%;
        max-height: 90vh;
    }

    .modal-body-scrollable {
        max-height: calc(90vh - 120px);
    }

    .legal-content h3 {
        font-size: 16px;
        margin-top: 24px;
    }

    .footer-legal-links {
        display: block;
        margin-left: 0;
        margin-top: 8px;
    }

    .footer-bottom p {
        text-align: center;
    }
}

/* Invoice Selection Styles */
.invoice-select-all {
    padding: 12px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.invoice-select-all input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.invoice-select-all label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.invoice-checkbox {
    padding: 0 16px 0 20px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.invoice-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.invoice-list-item.invoice-selected {
    background: var(--bg-tertiary);
}

.invoice-list-item.invoice-selected:hover {
    background: var(--bg-hover);
}

/* Floating Delete Button */
.floating-delete-button {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.btn-bulk-delete {
    background: #EF4444;
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3),
                0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-bulk-delete:hover {
    background: #DC2626;
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(239, 68, 68, 0.4),
                0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-bulk-delete:active {
    transform: scale(0.98);
}

.btn-bulk-delete svg {
    width: 20px;
    height: 20px;
}

/* ===== FEEDBACK TAB STYLES ===== */

.feedback-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.feedback-search {
    flex: 1;
    min-width: 250px;
    padding: 10px 14px;
    border: 1px solid light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
    border-radius: var(--radius);
    background: light-dark(var(--bg-secondary), var(--bg-secondary-dark));
    color: light-dark(var(--text-primary), var(--text-primary-dark));
    font-family: inherit;
    font-size: 14px;
}

.feedback-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 123, 255, 0.1);
}

.feedback-filter {
    padding: 10px 14px;
    border: 1px solid light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
    border-radius: var(--radius);
    background: light-dark(var(--bg-secondary), var(--bg-secondary-dark));
    color: light-dark(var(--text-primary), var(--text-primary-dark));
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.feedback-filter:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 123, 255, 0.1);
}

.feedback-list {
    display: grid;
    gap: 16px;
}

.feedback-card {
    background: light-dark(var(--bg-secondary), var(--bg-secondary-dark));
    border: 1px solid light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.08));
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.2s;
    position: relative;
}

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

.feedback-card.highlighted {
    animation: highlight-pulse 2s ease-in-out;
}

@keyframes highlight-pulse {
    0%, 100% {
        box-shadow: var(--shadow);
    }
    50% {
        box-shadow: 0 0 20px rgba(11, 123, 255, 0.4);
        border-color: var(--primary);
    }
}

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

.feedback-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-feature_request {
    background: light-dark(rgba(11, 123, 255, 0.1), rgba(11, 123, 255, 0.2));
    color: var(--primary);
}

.badge-bug_report {
    background: light-dark(rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.2));
    color: var(--error);
}

.badge-general {
    background: light-dark(rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.2));
    color: var(--secondary);
}

.feedback-own-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    padding: 6px;
    background: transparent;
    border: 1px solid light-dark(var(--border-light), var(--border-dark));
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    color: light-dark(var(--text-secondary), var(--text-secondary-dark));
}

.btn-icon:hover {
    background: light-dark(var(--bg-hover), var(--bg-hover-dark));
    color: light-dark(var(--text-primary), var(--text-primary-dark));
}

.btn-icon.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
    color: var(--error);
}

.feedback-content {
    margin-bottom: 16px;
}

.feedback-title {
    font-size: 16px;
    font-weight: 600;
    color: light-dark(var(--text-primary), var(--text-primary-dark));
    margin-bottom: 8px;
    line-height: 1.4;
}

.feedback-description {
    font-size: 14px;
    color: light-dark(var(--text-secondary), var(--text-secondary-dark));
    line-height: 1.6;
    white-space: pre-wrap;
}

.feedback-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: light-dark(var(--text-tertiary), #9CA3AF);
    margin-top: 12px;
}

.feedback-author {
    font-weight: 500;
    color: light-dark(var(--text-secondary), var(--text-secondary-dark));
}

.feedback-separator {
    opacity: 0.5;
}

.feedback-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid light-dark(var(--border-light), var(--border-dark));
}

.heart-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: light-dark(var(--bg-hover), var(--bg-hover-dark));
    border: 1px solid light-dark(var(--border-light), var(--border-dark));
    border-radius: var(--radius-sm);
    color: light-dark(var(--text-secondary), var(--text-secondary-dark));
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.heart-button:hover {
    color: #ef4444;
    border-color: #ef4444;
    background: light-dark(rgba(239, 68, 68, 0.05), rgba(239, 68, 68, 0.1));
}

.heart-button.hearted {
    color: #ef4444;
    background: light-dark(rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.15));
    border-color: rgba(239, 68, 68, 0.3);
}

.heart-button.hearted svg {
    fill: #ef4444;
}

.heart-count {
    min-width: 20px;
    text-align: center;
}

/* Feedback Form Styles */
.feedback-form-container {
    background: light-dark(var(--bg-secondary), var(--bg-secondary-dark));
    border: 1px solid light-dark(var(--border-light), var(--border-dark));
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.feedback-form-container .form-section {
    margin-bottom: 0;
}

.feedback-form-container .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Similar Feedback Suggestions */
.similar-feedback-suggestions {
    margin-top: 8px;
    padding: 12px;
    background: light-dark(rgba(11, 123, 255, 0.05), rgba(11, 123, 255, 0.1));
    border: 1px solid light-dark(rgba(11, 123, 255, 0.2), rgba(11, 123, 255, 0.3));
    border-radius: var(--radius-sm);
}

.similar-feedback-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.similar-feedback-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin-bottom: 4px;
    background: light-dark(var(--bg-primary), var(--bg-primary-dark));
    border: 1px solid light-dark(var(--border-light), var(--border-dark));
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.similar-feedback-item:hover {
    background: light-dark(var(--bg-hover), var(--bg-hover-dark));
    transform: translateX(4px);
}

.similar-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

.similar-title {
    flex: 1;
    font-size: 13px;
    color: light-dark(var(--text-primary), var(--text-primary-dark));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.similar-hearts {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #ef4444;
}

.similar-hearts svg {
    fill: #ef4444;
}

.similar-feedback-note {
    font-size: 11px;
    color: light-dark(var(--text-tertiary), #9CA3AF);
    margin-top: 8px;
    font-style: italic;
}

/* Responsive Design for Feedback */
@media (max-width: 640px) {
    .feedback-controls {
        flex-direction: column;
    }

    .feedback-search,
    .feedback-filter {
        width: 100%;
        min-width: 100%;
    }

    .feedback-card {
        padding: 16px;
    }

    .feedback-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .feedback-own-actions {
        margin-top: 8px;
    }

    .feedback-meta {
        flex-wrap: wrap;
    }

    .feedback-form-container {
        padding: 16px;
    }

    .feedback-form-container .form-actions {
        flex-direction: column;
    }

    .feedback-form-container .form-actions button {
        width: 100%;
    }
}
