/* BookKeep Pro - Professional Bookkeeping System */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #64748b;
    --secondary-hover: #475569;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-alt: #f1f5f9;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

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

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

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

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

.btn-secondary:hover:not(:disabled) {
    background-color: var(--surface-alt);
}

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

.btn-success:hover:not(:disabled) {
    background-color: #059669;
}

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

.btn-danger:hover:not(:disabled) {
    background-color: #dc2626;
}

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

.btn-ghost:hover:not(:disabled) {
    background-color: var(--surface-alt);
    color: var(--text);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-icon {
    padding: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
}

/* Cards */
.card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    background-color: var(--surface-alt);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--surface);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

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

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--surface);
}

th, td {
    padding: 0.875rem 1rem;
    text-align: left;
}

th {
    background-color: var(--surface-alt);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

td {
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: var(--surface-alt);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-draft {
    background-color: var(--surface-alt);
    color: var(--text-secondary);
}

.badge-sent {
    background-color: var(--primary-light);
    color: var(--primary);
}

.badge-paid {
    background-color: var(--success-light);
    color: var(--success);
}

.badge-overdue {
    background-color: var(--danger-light);
    color: var(--danger);
}

.badge-cancelled {
    background-color: var(--surface-alt);
    color: var(--text-muted);
}

/* Navigation */
.navbar {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}

.navbar-brand svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--surface-alt);
    color: var(--text);
}

.nav-link.active {
    color: var(--primary);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Sidebar Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

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

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text);
}

.sidebar-brand svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--primary);
}

.sidebar-toggle {
    display: none;
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius);
    color: var(--text-secondary);
}

.sidebar-toggle:hover {
    background-color: var(--surface-alt);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.sidebar-section-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 1.25rem 0.75rem 0.5rem;
    margin-top: 0.5rem;
}

.sidebar-section-title:first-child {
    margin-top: 0;
    padding-top: 0.5rem;
}

.sidebar-dropdown {
    list-style: none;
}

.sidebar-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all 0.2s;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.sidebar-dropdown-toggle:hover {
    background-color: var(--surface-alt);
    color: var(--text);
}

.sidebar-dropdown.open > .sidebar-dropdown-toggle {
    color: var(--text);
    font-weight: 600;
}

.sidebar-dropdown-toggle svg:first-child {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.sidebar-dropdown-toggle .dropdown-chevron {
    margin-left: auto;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sidebar-dropdown.open > .sidebar-dropdown-toggle .dropdown-chevron {
    transform: rotate(180deg);
}

.sidebar-dropdown-menu {
    list-style: none;
    display: none;
    padding: 0.125rem 0 0.25rem 0;
}

.sidebar-dropdown.open > .sidebar-dropdown-menu {
    display: block;
}

.sidebar-dropdown-menu .sidebar-link {
    padding: 0.5rem 0.75rem 0.5rem 2.75rem;
    font-size: 0.8125rem;
}

.sidebar-footer .sidebar-dropdown {
    width: 100%;
}

.sidebar-footer .sidebar-dropdown-menu .sidebar-link {
    padding-left: 2.75rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.sidebar-link:hover {
    background-color: var(--surface-alt);
    color: var(--text);
}

.sidebar-link.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.sidebar-link svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.sidebar-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.main-wrapper {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-menu-btn {
    display: none;
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius);
    color: var(--text-secondary);
}

.mobile-menu-btn:hover {
    background-color: var(--surface-alt);
}

.header-spacer {
    flex: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Mobile sidebar */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .sidebar-toggle {
        display: flex;
    }
}

/* Sidebar overlay for mobile */
.sidebar.mobile-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 100%;
    overflow-x: hidden;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.stat-card-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.stat-card-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.stat-card-icon.primary {
    background-color: var(--primary-light);
    color: var(--primary);
}

.stat-card-icon.success {
    background-color: var(--success-light);
    color: var(--success);
}

.stat-card-icon.warning {
    background-color: var(--warning-light);
    color: var(--warning);
}

.stat-card-icon.danger {
    background-color: var(--danger-light);
    color: var(--danger);
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    color: var(--text-muted);
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Landing Page */
.landing-hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--surface) 100%);
    padding: 6rem 0;
    text-align: center;
}

.landing-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.landing-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
}

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

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.language-btn:hover {
    background-color: var(--surface-alt);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    z-index: 50;
    display: none;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    display: block;
    width: 100%;
    padding: 0.625rem 1rem;
    text-align: left;
    background: none;
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.language-option:hover {
    background-color: var(--surface-alt);
}

.language-option.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--surface) 100%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

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

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.auth-logo svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--primary);
}

.auth-logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

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

/* Invoice Preview */
.invoice-preview {
    background-color: white;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.invoice-brand h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.invoice-number-box {
    text-align: right;
}

.invoice-number-box h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.invoice-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.invoice-addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.address-block h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.invoice-items-table {
    margin-bottom: 2rem;
}

.invoice-items-table th {
    background-color: var(--surface-alt);
}

.invoice-totals {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.totals-table {
    width: 300px;
}

.totals-table td {
    padding: 0.5rem 0;
    border: none;
}

.totals-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.totals-table tr.total-row td {
    font-size: 1.25rem;
    font-weight: 700;
    padding-top: 1rem;
    border-top: 2px solid var(--border);
}

.invoice-notes {
    background-color: var(--surface-alt);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.invoice-notes h4 {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.invoice-notes p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-success {
    background-color: var(--success-light);
    color: #065f46;
}

.alert-danger {
    background-color: var(--danger-light);
    color: #991b1b;
}

.alert-warning {
    background-color: var(--warning-light);
    color: #92400e;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1000;
}

.modal .modal-content {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.show .modal {
    transform: scale(1);
}

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

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .landing-hero h1 {
        font-size: 2rem;
    }
    
    .landing-hero p {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .invoice-header,
    .invoice-addresses,
    .invoice-meta {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
    
    .navbar-nav {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

/* Modern Landing Page Styles */
.landing-page {
    background: var(--background);
}

.landing-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
}

.landing-navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.landing-nav-links {
    display: flex;
    gap: 0.5rem;
}

.landing-nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.landing-nav-link:hover {
    color: var(--text);
    background: var(--surface-alt);
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--background) 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-xl {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.hero-stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-dashboard-preview {
    background: var(--surface);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid var(--border);
}

.preview-header {
    padding: 0.75rem 1rem;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
}

.preview-dots {
    display: flex;
    gap: 0.5rem;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.preview-dots span:first-child { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #f59e0b; }
.preview-dots span:last-child { background: #10b981; }

.preview-content {
    display: flex;
    min-height: 300px;
}

.preview-sidebar {
    width: 60px;
    background: var(--surface-alt);
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-menu-item {
    height: 32px;
    background: var(--border);
    border-radius: var(--radius);
}

.preview-menu-item.active {
    background: var(--primary);
}

.preview-main {
    flex: 1;
    padding: 1.5rem;
}

.preview-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.preview-card {
    height: 60px;
    background: var(--surface-alt);
    border-radius: var(--radius);
}

.preview-table {
    height: 120px;
    background: var(--surface-alt);
    border-radius: var(--radius);
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--surface);
}

.features-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card-modern {
    padding: 2rem;
    background: var(--background);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-modern {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon-modern svg {
    width: 1.5rem;
    height: 1.5rem;
}

.feature-icon-modern.primary { background: var(--primary-light); color: var(--primary); }
.feature-icon-modern.success { background: var(--success-light); color: var(--success); }
.feature-icon-modern.warning { background: var(--warning-light); color: var(--warning); }
.feature-icon-modern.danger { background: var(--danger-light); color: var(--danger); }
.feature-icon-modern.info { background: #dbeafe; color: #3b82f6; }
.feature-icon-modern.purple { background: #ede9fe; color: #7c3aed; }

.feature-card-modern h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card-modern p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.feature-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: var(--background);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 2rem;
}

.pricing-price .currency {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-price .amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.pricing-price .period {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features > li > svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--success);
    flex-shrink: 0;
}

.feature-info-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-left: 0.25rem;
    flex-shrink: 0;
}

.feature-info-icon svg {
    width: 14px !important;
    height: 14px !important;
    color: var(--text-muted, #9ca3af) !important;
    transition: color 0.2s ease;
}

.feature-info-icon:hover svg {
    color: var(--primary) !important;
}

.feature-info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.4;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    width: 220px;
    text-align: left;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.feature-info-icon::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1e293b;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.feature-info-icon:hover::after,
.feature-info-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

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

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-hover);
}

/* Landing Footer */
.landing-footer {
    background: var(--text);
    padding: 4rem 0 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-logo svg {
    width: 2rem;
    height: 2rem;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-links-section h4 {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.footer-links-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-section li {
    margin-bottom: 0.75rem;
}

.footer-links-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links-section a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: #2ecc71;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.footer-social a:hover {
    color: white;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .features-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .landing-nav-links {
        display: none;
    }
    
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Workflow Section (billit.se style) */
.workflow-section {
    padding: 5rem 0;
    background: var(--surface);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.workflow-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--background);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.workflow-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.workflow-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--surface));
    border-radius: 50%;
}

.workflow-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary);
}

.workflow-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.workflow-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Billit-style Features Grid */
.features-grid-billit {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card-billit {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card-billit:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-billit {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}

.feature-icon-billit svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

.feature-card-billit h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.feature-card-billit p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* More Features Links */
.more-features {
    margin-top: 3rem;
    text-align: center;
}

.more-features h4 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.features-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.feature-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9999px;
    color: var(--text);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.feature-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: var(--surface);
}

.faq-accordion {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    background: var(--background);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    transition: background 0.2s;
}

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

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s;
    stroke: var(--text-secondary);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Responsive adjustments for new sections */
@media (max-width: 1024px) {
    .features-grid-billit {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .workflow-card {
        padding: 1.5rem;
    }
    
    .workflow-icon {
        width: 64px;
        height: 64px;
    }
    
    .workflow-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .features-grid-billit {
        grid-template-columns: 1fr;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .faq-answer p {
        padding: 0 1.25rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Blog Page Styles */
.blog-page {
    padding-top: 80px;
}

.blog-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.blog-header p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.featured-post {
    padding: 2rem 0 0;
}

.featured-post-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    transition: transform 0.2s;
}

.featured-post-card:hover {
    transform: translateY(-4px);
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

.featured-post-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post-content h2 {
    font-size: 1.75rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.featured-post-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.blog-content {
    padding: 3rem 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.blog-search {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.blog-search input {
    flex: 1;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.blog-search button {
    background: transparent;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.blog-categories h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.blog-categories ul {
    list-style: none;
}

.blog-categories li {
    margin-bottom: 0.5rem;
}

.blog-categories a {
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.2s;
}

.blog-categories a:hover,
.blog-categories a.active {
    color: var(--primary);
}

.blog-filter-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-alt);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.blog-filter-info a {
    margin-left: auto;
    font-size: 0.875rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card a {
    text-decoration: none;
    display: block;
}

.blog-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.25rem;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.blog-card-meta .post-date {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.blog-card h3 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.no-posts {
    text-align: center;
    padding: 3rem;
}

.no-posts h3 {
    margin-bottom: 0.5rem;
}

.no-posts p {
    color: var(--text-secondary);
}

/* Blog Post Page */
.blog-post-page {
    padding-top: 80px;
}

.post-header {
    padding: 3rem 0 2rem;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.back-link:hover {
    color: var(--primary);
}

.post-meta-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.post-header h1 {
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.3;
}

.post-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.author-name {
    font-weight: 500;
    color: var(--text);
}

.read-time {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.post-featured-image {
    margin-bottom: 2rem;
}

.post-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.post-content {
    padding-bottom: 3rem;
}

.post-body {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text);
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body h2, .post-body h3 {
    margin: 2rem 0 1rem;
}

.post-tags {
    max-width: 700px;
    margin: 2rem auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tags .tag {
    background: var(--surface-alt);
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
}

.related-posts {
    background: var(--background);
    padding: 3rem 0;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-post-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s;
}

.related-post-card:hover {
    transform: translateY(-4px);
}

.related-post-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.related-post-content {
    padding: 1rem;
}

.related-post-content h3 {
    font-size: 1rem;
    color: var(--text);
    margin: 0.5rem 0;
}

.related-post-content .post-date {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.post-cta {
    padding: 3rem 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    text-align: center;
    padding: 3rem;
    border-radius: var(--radius-lg);
}

.cta-box h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.cta-box p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* Responsive Blog */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-post-card {
        grid-template-columns: 1fr;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .post-header h1 {
        font-size: 1.75rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Settings Tabs */
.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    background: var(--surface);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.settings-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s;
}

.settings-tab:hover {
    background: var(--surface-alt);
    color: var(--text);
}

.settings-tab.active {
    background: var(--primary);
    color: white;
}

.settings-tab svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .settings-tabs {
        flex-direction: column;
    }
    
    .settings-tab {
        justify-content: center;
    }
}

/* Subscription Info Styles */
.subscription-info {
    padding: 0.5rem 0;
}

.subscription-plan {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badge.free {
    background: var(--surface-alt);
    color: var(--text-secondary);
}

.plan-badge.starter {
    background: #dbeafe;
    color: #1d4ed8;
}

.plan-badge.pro {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
}

.plan-badge.enterprise {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    color: white;
}

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

.subscription-price .price-amount.free {
    color: var(--success);
}

.subscription-price .price-period {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.status-active {
    background: var(--success-light);
    color: #059669;
}

.status-badge.status-warning {
    background: var(--warning-light);
    color: #d97706;
}

.status-badge.status-expired {
    background: var(--danger-light);
    color: var(--danger);
}

.features-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

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

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
    color: var(--text);
}

.features-list li svg {
    color: var(--success);
    flex-shrink: 0;
}

.subscription-actions {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.subscription-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Pricing Page Styles */
.pricing-header {
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

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

.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.billing-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.billing-label.active {
    color: var(--text);
    font-weight: 600;
}

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

.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(--border);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

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

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

.save-badge {
    background: var(--success-light);
    color: #059669;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-grid.compact {
    max-width: none;
}

.pricing-grid.compact .pricing-card {
    padding: 1.5rem;
}

.pricing-grid.compact .plan-name {
    font-size: 1.25rem;
}

.pricing-grid.compact .plan-price .amount {
    font-size: 2rem;
}

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

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.pricing-card.current {
    background: var(--primary-light);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.current-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.plan-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.plan-price {
    text-align: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.plan-price .currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
    vertical-align: top;
}

.plan-price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.plan-price .amount.free {
    color: var(--success);
}

.plan-price .period {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.billed-yearly {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text);
}

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

.plan-limits {
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.plan-extras {
    padding-top: 1rem;
}

.plan-action {
    margin-top: 1.5rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Pricing FAQ */
.pricing-faq {
    max-width: 900px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.faq-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Company Switcher */
.company-switcher {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.company-switcher-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.625rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.company-switcher-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.company-switcher-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.company-switcher-info svg {
    color: var(--primary);
}

.company-switcher-info .company-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.dropdown-arrow {
    color: var(--text-muted);
    transition: transform 0.2s;
}

.company-switcher.open .dropdown-arrow {
    transform: rotate(180deg);
}

.company-dropdown {
    position: absolute;
    top: calc(100% - 0.5rem);
    left: 0.75rem;
    right: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.company-switcher.open .company-dropdown {
    display: block;
}

.company-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: background 0.15s;
}

.company-dropdown-item:hover {
    background: var(--surface-alt);
}

.company-dropdown-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.company-dropdown-item.active svg {
    color: var(--primary);
}

.company-dropdown-item.manage-link {
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    gap: 0.5rem;
    justify-content: flex-start;
}

.company-dropdown-item.manage-link:hover {
    color: var(--primary);
}

/* Company Lookup Status */
.lookup-status {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lookup-status-info {
    background-color: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.lookup-status-success {
    background-color: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success);
}

.lookup-status-warning {
    background-color: var(--warning-light);
    color: #92400e;
    border: 1px solid var(--warning);
}

.lookup-status-error {
    background-color: var(--danger-light);
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* Field highlight animation */
.field-highlighted {
    animation: fieldHighlight 2s ease-out;
}

@keyframes fieldHighlight {
    0% {
        background-color: var(--success-light);
        border-color: var(--success);
    }
    100% {
        background-color: var(--surface);
        border-color: var(--border);
    }
}

/* ========================================
   COMPREHENSIVE RESPONSIVE DESIGN
   ======================================== */

/* Large Tablets and Small Desktops (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row > * {
        width: 100% !important;
    }
    
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-row {
        flex-wrap: wrap;
    }
    
    .filters-row > * {
        flex: 1 1 200px;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    
    .main-content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-header,
    .card-footer {
        padding: 1rem;
    }
    
    /* Table responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    /* Hide less important columns on mobile */
    .data-table .hide-mobile {
        display: none;
    }
    
    /* Button groups */
    .btn-group {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    /* Form adjustments */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    /* Modal adjustments */
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Top header adjustments */
    .top-header {
        padding: 0.75rem 1rem;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .user-info .user-name {
        display: none;
    }
    
    /* Data grid */
    .data-grid {
        grid-template-columns: 1fr;
    }
    
    /* Invoice form */
    .line-item-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .line-item-row > * {
        width: 100% !important;
    }
    
    /* Navbar adjustments */
    .navbar-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .navbar-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* Dropdown menus */
    .dropdown-menu {
        min-width: 200px;
    }
    
    /* Alert/notification boxes */
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Tab navigation */
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-list {
        min-width: max-content;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
        white-space: nowrap;
    }
}

/* Mobile Phones (640px and below) */
@media (max-width: 640px) {
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.375rem; }
    h2 { font-size: 1.125rem; }
    
    .main-content {
        padding: 0.75rem;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    /* Stack all form elements */
    .form-row,
    .form-grid {
        display: block;
    }
    
    .form-row > *,
    .form-grid > * {
        margin-bottom: 1rem;
    }
    
    /* Compact cards */
    .stat-card {
        padding: 0.875rem;
    }
    
    .stat-card-value {
        font-size: 1.5rem;
    }
    
    /* Full width buttons */
    .page-header .btn,
    .card-header .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Compact table cells */
    .data-table th,
    .data-table td {
        padding: 0.5rem 0.375rem;
        font-size: 0.75rem;
    }
    
    /* Badge sizing */
    .badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
    }
    
    /* Company switcher */
    .company-switcher-btn {
        padding: 0.5rem 0.75rem;
    }
    
    .company-name {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Sidebar adjustments for mobile */
    .sidebar {
        width: 280px;
    }
    
    .sidebar-link span {
        font-size: 0.875rem;
    }
    
    /* Invoice view */
    .invoice-header {
        flex-direction: column;
        text-align: center;
    }
    
    .invoice-parties {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Search inputs */
    .search-box {
        width: 100%;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .pagination .btn {
        padding: 0.375rem 0.5rem;
    }
    
    /* Login/Register forms */
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        margin: 0;
        padding: 1.5rem;
    }
    
    .auth-card .card-body {
        padding: 1.25rem;
    }
    
    .auth-header h2 {
        font-size: 1.25rem;
        word-break: break-word;
        hyphens: auto;
    }
    
    .auth-title {
        font-size: 1.25rem;
    }
    
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}

/* Small Mobile Phones (480px and below) */
@media (max-width: 480px) {
    .main-content {
        padding: 0.5rem;
    }
    
    .card {
        border-radius: var(--radius);
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .auth-container {
        padding: 0.75rem;
    }
    
    .auth-card .card-body {
        padding: 1rem;
    }
    
    .auth-header h2 {
        font-size: 1.125rem;
    }
    
    .g-recaptcha {
        transform: scale(0.77);
        transform-origin: 0 0;
    }
    
    /* Stack action buttons vertically */
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    /* Reduce table font even more */
    .data-table th,
    .data-table td {
        font-size: 0.6875rem;
        padding: 0.375rem 0.25rem;
    }
    
    /* Hide more columns */
    .data-table .hide-xs {
        display: none;
    }
    
    /* Compact page header */
    .page-header {
        margin-bottom: 1rem;
    }
    
    /* Language selector */
    .language-btn {
        padding: 0.5rem;
    }
    
    .language-btn span:not(:first-child) {
        display: none;
    }
}

/* Touch-friendly adjustments */
@media (pointer: coarse) {
    .btn {
        min-height: 44px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .sidebar-link {
        padding: 0.875rem 1rem;
    }
    
    .data-table td .btn-icon {
        min-width: 40px;
        min-height: 40px;
    }
    
    .checkbox-label,
    .radio-label {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Landscape phone orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .sidebar {
        overflow-y: auto;
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .auth-card {
        margin: 0.5rem auto;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .avatar img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .navbar, .sidebar, .btn, .no-print, .landing-navbar, .cta, .landing-footer, .company-switcher {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
    
    .invoice-preview {
        box-shadow: none;
        padding: 0;
    }
}
