/* ============================================
   CSS VARIABLES - Modern Color Scheme
   ============================================ */
:root {
    /* Primary Brand Colors - Modern Blue/Teal Gradient */
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #06b6d4;
    --secondary-hover: #0891b2;
    --accent-color: #8b5cf6;
    
    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #8b5cf6 100%);
    --gradient-hero: linear-gradient(135deg, #1e40af 0%, #3b82f6 25%, #06b6d4 75%, #0891b2 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);
    
    /* Status Colors */
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #3b82f6;
    
    /* Background Colors */
    --bg-color: #f8fafc;
    --bg-secondary: #f1f5f9;
    --card-bg: #FFFFFF;
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* Border & Divider */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Sidebar */
    --sidebar-bg: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    --sidebar-text: #cbd5e1;
    --sidebar-active: #3b82f6;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px rgba(59, 130, 246, 0.1);
    --shadow-lg: 0 10px 30px rgba(59, 130, 246, 0.15);
    --shadow-xl: 0 20px 50px rgba(15, 23, 42, 0.15);
    
    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #f8f9fd 0%, #f1f3f9 100%);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

h1:focus {
    outline: none;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn, .btn-link {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background-color: #6B7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4B5563;
}

.btn-success {
    background-color: var(--secondary-color);
    color: white;
}

.btn-link {
    background: none;
    color: var(--primary-color);
    padding: 8px 16px;
}

.btn-link:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-outline-danger {
    background-color: white;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.btn-outline-danger:hover {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #DC2626;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background-color: #D97706;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background-color: white;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea {
    resize: vertical;
    min-height: 200px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
}

.valid.modified:not([type=checkbox]) {
    border-color: var(--secondary-color);
}

.invalid {
    border-color: var(--danger-color);
}

.validation-message {
    color: var(--danger-color);
    font-size: 13px;
    margin-top: 4px;
}

/* ============================================
   LAYOUT
   ============================================ */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

main {
    flex: 1;
    padding: 0;
    background-color: var(--bg-color);
    overflow: hidden;
}

main > div {
    max-width: 100%;
}

.content {
    padding-top: 0;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    background-image: var(--sidebar-bg);
    padding: 24px 0;
}

.sidebar .top-row {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0 24px 20px;
}

.sidebar .top-row h1 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sidebar .nav {
    margin-top: 20px;
}

.sidebar .nav-item {
    margin: 4px 0;
}

.sidebar .nav-item .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--sidebar-text);
    transition: all 0.2s;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.sidebar .nav-item .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar .nav-item .nav-link.active {
    background-color: rgba(59, 130, 246, 0.15);
    border-left-color: var(--sidebar-active);
    color: white;
}

.sidebar .nav-item .nav-link .oi {
    margin-right: 12px;
}

/* ============================================
   TOP ROW
   ============================================ */
.top-row {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.top-row ::deep a, .top-row .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.card-header {
    background-color: var(--bg-color);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    margin: -28px -28px 20px -28px;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.card-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
}

.card-body {
    padding: 24px;
}

/* ============================================
   STATS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transition: all 0.5s ease;
    opacity: 0;
}

.stat-card:hover::before {
    opacity: 1;
    transform: translate(-25%, -25%);
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25);
}

.stat-card h3 {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 36px;
    font-weight: 700;
}

.stat-box {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   TABLES
   ============================================ */
.table-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    margin-bottom: 20px;
}

.table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: var(--bg-color);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.table td {
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
}

.table tr:hover td {
    background-color: var(--bg-color);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-draft {
    background-color: #E5E7EB;
    color: #374151;
}

.badge-scheduled {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.badge-sending {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-completed {
    background-color: #D1FAE5;
    color: #065F46;
}

.bg-success {
    background-color: #10B981 !important;
    color: white !important;
}

.bg-danger {
    background-color: #EF4444 !important;
    color: white !important;
}

.bg-warning {
    background-color: #F59E0B !important;
    color: white !important;
}

.bg-secondary {
    background-color: #6B7280 !important;
    color: white !important;
}

.bg-dark {
    background-color: #374151 !important;
    color: white !important;
}

/* ============================================
   HELPERS
   ============================================ */
.text-muted {
    color: var(--text-secondary);
    font-size: 14px;
}

.text-decoration-none {
    text-decoration: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

.mb-2 {
    margin-bottom: 12px;
}

.mt-3 {
    margin-top: 20px;
}

.mb-3 {
    margin-bottom: 20px;
}

.mb-4 {
    margin-bottom: 28px;
}

.table-responsive {
    overflow-x: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-3,
.col-md-4,
.col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-danger {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-info {
    background-color: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--gradient-primary);
}

.login-card {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
}

.login-card h1 {
    margin-bottom: 10px;
    font-size: 28px;
}

.login-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.btn-google {
    background-color: white;
    color: #333;
    border: 2px solid var(--border-color);
    width: 100%;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    border-radius: 8px;
}

.btn-google:hover {
    background-color: var(--bg-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    z-index: 1050;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    max-width: 500px;
    width: 100%;
    margin: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    opacity: 0.5;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
}

.btn-close:before {
    content: "×";
}

.btn-close:hover {
    opacity: 1;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.modal-backdrop.show {
    opacity: 1;
}

/* ============================================
   GMASS-STYLE HEADER TABS
   ============================================ */
.gmass-header-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
    background: white;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.tab-link {
    background: none;
    border: none;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 400;
    color: #757575;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    position: relative;
    top: 1px;
}

.tab-link:hover {
    color: #424242;
}

.tab-link.active {
    color: #1976d2;
    border-bottom-color: #1976d2;
    font-weight: 500;
}

/* ============================================
   GMASS-STYLE TOOLBAR
   ============================================ */
.gmass-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 12px;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    color: #424242;
    cursor: pointer;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background: #f5f5f5;
    border-color: #b0b0b0;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-with-filter-wrapper {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 300px;
    padding: 8px 70px 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #1976d2;
}

.search-input-wrapper .search-icon {
    position: absolute;
    right: 42px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    pointer-events: none;
}

.filter-toggle-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 28px;
    padding: 0;
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.filter-toggle-btn:hover {
    background: #f5f5f5;
    border-color: #1976d2;
    color: #1976d2;
}

/* ============================================
   GMASS TABLE
   ============================================ */
.gmass-table-container {
    background: white;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

@media (max-width: 1400px) {
    .gmass-table th,
    .gmass-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 13px;
    }
    
    .action-buttons {
        gap: 3px;
    }
}

.gmass-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    font-size: 13px;
}

.gmass-table thead {
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
}

.gmass-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #424242;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
}

.gmass-table th[style*="cursor: pointer"]:hover {
    background: #eeeeee;
    color: #1976d2;
}

.gmass-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.gmass-table tbody tr:hover {
    background: #f9f9f9;
}

.gmass-table td {
    padding: 12px 8px;
    color: #424242;
    vertical-align: middle;
}

.gmass-table .text-center {
    text-align: center;
}

.campaign-id {
    color: #1976d2;
    font-family: monospace;
    font-size: 11px;
}

.campaign-name a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
}

.campaign-name a:hover {
    text-decoration: underline;
}

.percentage {
    color: #757575;
    font-size: 11px;
}

.expand-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    color: #757575;
    font-size: 12px;
}

.expand-btn:hover {
    color: #424242;
}

.expanded-row {
    background: #f9f9f9 !important;
}

.expanded-content {
    padding: 12px;
    font-size: 13px;
    color: #616161;
}

.action-buttons {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.action-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1976d2;
    color: white;
    flex-shrink: 0;
}

.action-btn:hover {
    background: #1565c0;
    transform: scale(1.05);
}

.action-btn-primary {
    background: var(--primary-color);
}

.action-btn-success {
    background: var(--success-color);
}

.action-btn-warning {
    background: #ff9800;
}

.action-btn-info {
    background: #1976d2;
}

.action-btn-secondary {
    background: var(--secondary-color);
}

.gmass-pagination {
    padding: 16px 24px;
    background: white;
    border-top: 1px solid #e0e0e0;
    color: #757575;
    font-size: 13px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    color: #757575;
}

.empty-state p {
    font-size: 15px;
    margin-bottom: 12px;
    color: #616161;
}

.empty-state a {
    color: #1976d2;
    text-decoration: underline;
}

/* ============================================
   BADGE STYLES (GMASS)
   ============================================ */
.badge-draft {
    background-color: #E5E7EB;
    color: #374151;
}

.badge-scheduled {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.badge-sending {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-completed {
    background-color: #D1FAE5;
    color: #065F46;
}

.badge-failed {
    background-color: #FEE2E2;
    color: #991B1B;
}

/* ============================================
   BLAZOR ERROR UI
   ============================================ */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzggNTMuNjI5NCAyNTkuOTc1IDUyLjc5ODUgMjYwLjQyMSA1Mi4yNjU4QzI2MS4yMTQgNTEuNDgzNyAyNjIuMzEgNTEgMjYzLjUwNiA1MVoiIGZpbGw9IiNGMjVFM0UiLz48L2c+PC9zdmc+) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* ============================================
   LANDING PAGE
   ============================================ */
.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--gradient-hero);
    position: relative;
    overflow-x: hidden;
}

/* Navigation Bar */
.landing-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.nav-logo-text {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-tabs {
    display: flex;
    gap: 4px;
    align-items: center;
    flex: 1;
    justify-content: center;
    max-width: 800px;
}

.nav-tab {
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-tab:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.nav-tab.active {
    background: var(--gradient-primary);
    color: white;
}

.nav-signin-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    white-space: nowrap;
}

.nav-signin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #0891b2 50%, #7c3aed 100%);
}

.landing-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.landing-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    padding: 0;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease-out;
}

.badge-text {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.logo-text {
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    line-height: 1.2;
    letter-spacing: -1.5px;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-top: 8px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 48px;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    flex-wrap: wrap;
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: white;
    color: var(--text-primary);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.4);
    background: var(--gradient-primary);
    color: white;
}

.btn-primary-large svg {
    width: 20px;
    height: 20px;
}

.btn-secondary-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary-large:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features-showcase {
    background: white;
    padding: 100px 20px;
    margin-top: 80px;
    position: relative;
    z-index: 2;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading {
    font-size: 42px;
    font-weight: 800;
    color: #1a202c;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-description {
    font-size: 18px;
    color: #718096;
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.feature-card-modern {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 32px;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card-modern:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
}

.feature-card-modern:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    margin-bottom: 24px;
}

.feature-icon-bg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-radius: 16px;
    font-size: 32px;
    transition: all 0.3s ease;
}

.feature-card-modern:hover .feature-icon-bg {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    transform: scale(1.1);
}

.feature-card-modern h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.feature-card-modern p {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .features-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
    
    .nav-tabs {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 60px 20px 60px;
    }
    
    .hero-title {
        font-size: 36px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .features-showcase {
        padding: 60px 20px;
        margin-top: 40px;
    }
    
    .section-heading {
        font-size: 32px;
    }
    
    .features-grid-modern {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .nav-container {
        padding: 0 16px;
        height: 70px;
    }
    
    .nav-logo-text {
        font-size: 20px;
    }
    
    .nav-signin-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

.btn-signin {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 48px;
    background: white;
    color: #333;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn-signin:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    background: #f8f9fa;
}

.btn-signin:active {
    transform: translateY(-1px);
}

.btn-signin svg {
    width: 24px;
    height: 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.feature-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 32px 24px;
    border-radius: 16px;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.landing-footer {
    padding: 30px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-footer p {
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Landing Section (for non-hero tabs) */
.landing-section {
    flex: 1;
    padding: 60px 20px 40px;
    background: white;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 70px - 81px); /* minus nav and footer */
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #1a202c;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: #718096;
    margin-bottom: 50px;
}

/* Feature List (detailed features) */
.feature-list {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 24px;
    padding: 30px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.feature-item-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.feature-item-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a202c;
}

.feature-item-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
    margin: 0;
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.use-case-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s;
}

.use-case-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.use-case-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a202c;
}

.use-case-card p {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 16px;
}

.use-case-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.use-case-card ul li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: #2d3748;
    font-size: 15px;
}

.use-case-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Video Container */
.video-container {
    max-width: 900px;
    margin: 40px auto;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

.video-icon {
    font-size: 72px;
    margin-bottom: 16px;
}

.video-placeholder p {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.video-placeholder small {
    font-size: 16px;
    opacity: 0.9;
}

/* Tour Steps */
.tour-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tour-step {
    text-align: center;
    padding: 30px 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.tour-step h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a202c;
}

.tour-step p {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2);
    transform: translateY(-5px);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    border-width: 3px;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a202c;
}

.plan-price {
    margin-bottom: 30px;
}

.plan-price .price {
    font-size: 48px;
    font-weight: 800;
    color: #1a202c;
}

.plan-price .period {
    font-size: 18px;
    color: #718096;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
    font-size: 15px;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-button {
    width: 100%;
    padding: 14px 24px;
    background: white;
    border: 2px solid #667eea;
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.plan-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.plan-button.primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.plan-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.blog-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.blog-image {
    height: 180px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.blog-content {
    padding: 24px;
}

.blog-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a202c;
}

.blog-content p {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}

.blog-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* FAQ Container */
.faq-container {
    max-width: 900px;
    margin: 40px auto 0;
}

.faq-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.1);
}

.faq-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a202c;
}

.faq-item p {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
    }
    
    .nav-tabs {
        order: 3;
        width: 100%;
        margin-top: 10px;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .nav-tab {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .logo-text {
        font-size: 42px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        padding: 0 10px;
    }
    
    .btn-signin {
        padding: 16px 36px;
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .tour-steps {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640.98px) {
    .top-row:not(.auth) {
        display: none;
    }

    .top-row.auth {
        justify-content: space-between;
    }

    .top-row a, .top-row .btn-link {
        margin-left: 0;
    }
    
    main {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
        height: 100vh;
        overflow: hidden;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: fixed;
        left: 0;
        top: 0;
        background: var(--sidebar-bg);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
        transition: width 0.3s var(--transition-smooth);
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
    }

    main {
        flex: 1;
        margin-left: 250px;
        height: 100vh;
        display: flex;
        flex-direction: column;
        transition: margin-left 0.3s var(--transition-smooth);
        overflow: hidden;
    }

    .page.sidebar-collapsed .sidebar {
        width: 70px;
    }

    .page.sidebar-collapsed main {
        margin-left: 70px;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 999;
        backdrop-filter: blur(12px);
        flex-shrink: 0;
        width: 100%;
    }

    main > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .content {
        padding: 32px !important;
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        height: calc(100vh - 80px);
    }

    article.content {
        max-width: 100%;
    }
}

/* ============================================
   FILTER DROPDOWN PANEL
   ============================================ */
.filter-dropdown-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 460px;
    max-height: 480px;
    overflow-y: auto;
    animation: filterDropdownOpen 0.2s ease-out;
}

.filter-dropdown-panel::-webkit-scrollbar {
    width: 8px;
}

.filter-dropdown-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.filter-dropdown-panel::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.filter-dropdown-panel::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@keyframes filterDropdownOpen {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-dropdown-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.filter-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 16px;
}

.filter-label {
    font-weight: 400;
    color: #202124;
    font-size: 14px;
    text-align: left;
}

.filter-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.filter-select {
    padding: 7px 8px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    width: 130px;
    flex-shrink: 0;
    color: #202124;
}

.filter-select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 1px #1a73e8;
}

.filter-input {
    width: 150px;
    padding: 7px 8px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 13px;
    flex-shrink: 0;
    color: #202124;
}

.filter-input-small {
    width: 70px;
    flex-shrink: 0;
}

.filter-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 1px #1a73e8;
}

.filter-date {
    padding: 7px 8px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 13px;
    width: 130px;
    flex-shrink: 0;
    color: #202124;
}

.filter-date:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 1px #1a73e8;
}

.filter-separator {
    color: #5f6368;
    font-size: 13px;
    padding: 0 6px;
}

.filter-percent {
    color: #5f6368;
    font-size: 13px;
    font-weight: 400;
    padding: 0 4px;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #202124;
    cursor: pointer;
    user-select: none;
}

.filter-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 16px;
    margin-top: 12px;
    border-top: 1px solid #e8eaed;
}

.btn-search {
    padding: 8px 24px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-search:hover {
    background: #1765cc;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.btn-clear {
    padding: 8px 24px;
    background: white;
    color: #5f6368;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

@media (max-width: 768px) {
    .filter-dropdown-panel {
        min-width: 320px;
        max-width: calc(100vw - 24px);
        right: 0;
        left: auto;
    }

    .filter-dropdown-content {
        padding: 14px;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .filter-label {
        min-width: auto;
    }

    .filter-inputs {
        width: 100%;
    }

    .filter-select,
    .filter-input,
    .filter-date {
        flex: 1;
        min-width: 0;
        width: auto;
    }

    .filter-actions {
        width: 100%;
    }

    .btn-search,
    .btn-clear {
        flex: 1;
    }

    .search-input {
        width: 250px;
    }
}