/* VueloBot - Styles */

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
}

/* Autocomplete Styles */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

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

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s;
}

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

.autocomplete-item:hover,
.autocomplete-item.active {
    background: var(--gray-50);
}

.autocomplete-item .airport-code {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    background: var(--gray-100);
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 48px;
    text-align: center;
}

.autocomplete-item .airport-name {
    color: var(--gray-700);
    font-size: 0.95rem;
}

.autocomplete-item .airport-icon {
    color: var(--gray-400);
}

/* Search Results Badge */
.search-sources-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-100);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 8px;
}

.search-sources-badge .sources-count {
    font-weight: 600;
    color: var(--primary);
}

.price-comparison {
    margin-top: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.price-comparison-title {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.price-source {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.9rem;
}

.price-source.best {
    color: var(--success);
    font-weight: 600;
}

.price-source .source-name {
    color: var(--gray-600);
}

.price-source .source-price {
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

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

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    background: var(--gray-100);
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

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

/* Navbar */
.navbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
}

.nav-links a:hover {
    color: var(--gray-900);
}

.admin-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s;
}

.admin-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white !important;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-user span {
    color: var(--gray-600);
    font-size: 14px;
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-cta {
    margin-bottom: 50px;
}

.hero-note {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 15px;
}

.hero-demo {
    max-width: 400px;
    margin: 0 auto;
}

.demo-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    color: var(--gray-800);
    box-shadow: var(--shadow-lg);
}

.demo-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.demo-route {
    font-weight: 600;
    font-size: 18px;
}

.demo-dates {
    color: var(--gray-500);
    font-size: 14px;
}

.demo-price {
    margin-bottom: 10px;
}

.demo-old-price {
    color: var(--gray-400);
    text-decoration: line-through;
    margin-right: 10px;
}

.demo-new-price {
    color: var(--success);
    font-size: 32px;
    font-weight: 700;
}

.demo-savings {
    background: #dcfce7;
    color: #16a34a;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--gray-100);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--gray-900);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
}

.step-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.step p {
    color: var(--gray-600);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 15px;
    display: block;
}

.feature h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature p {
    color: var(--gray-600);
    font-size: 14px;
}

/* Pricing */
.pricing {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 320px;
    box-shadow: var(--shadow);
    position: relative;
}

.pricing-card-featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.pricing-card .price {
    font-size: 48px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.pricing-card .price span {
    font-size: 16px;
    color: var(--gray-500);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--gray-600);
}

/* CTA Section */
.section-cta {
    background: var(--gradient);
    color: white;
    text-align: center;
}

.section-cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 14px;
    margin-top: 10px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
}

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

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

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

/* Auth Screen */
.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
}

.auth-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

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

.auth-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--gray-600);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.auth-tab:hover {
    color: var(--gray-800);
}

.auth-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow);
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--gray-400);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-200);
}

.auth-divider span {
    padding: 0 16px;
}

/* Google Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-google:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

/* Password Requirements */
.password-requirements {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Success Message */
.success-message {
    color: var(--success);
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
    background: rgba(34, 197, 94, 0.1);
    padding: 12px;
    border-radius: var(--radius);
}

/* 2FA Setup Modal */
.twofa-setup-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.twofa-setup-modal.active {
    opacity: 1;
    visibility: visible;
}

.twofa-setup-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.twofa-qr {
    margin: 24px 0;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.twofa-qr img {
    max-width: 200px;
}

.twofa-secret {
    font-family: monospace;
    font-size: 0.9rem;
    background: var(--gray-100);
    padding: 8px 16px;
    border-radius: var(--radius);
    margin: 16px 0;
    word-break: break-all;
}

/* Session Timeout Warning */
.session-timeout-warning {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--warning);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: none;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.session-timeout-warning.active {
    display: flex;
    align-items: center;
    gap: 16px;
}

.session-timeout-warning .timeout-text {
    flex: 1;
}

.session-timeout-warning .timeout-btn {
    background: white;
    color: var(--warning);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
}

/* Account Locked */
.account-locked-message {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    text-align: center;
}

.auth-form h2 {
    margin-bottom: 25px;
    text-align: center;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--gray-700);
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray-600);
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.error-message {
    color: var(--danger);
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

/* Dashboard */
.dashboard-main {
    padding: 40px 0;
}

.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.new-alert-card h2 {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Alerts */
.alerts-section {
    margin-top: 40px;
}

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

.alerts-count {
    background: var(--gray-200);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--gray-600);
}

.alerts-list {
    display: grid;
    gap: 20px;
}

.alert-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
}

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

.alert-route {
    font-size: 20px;
    font-weight: 600;
}

.alert-route .arrow {
    color: var(--gray-400);
    margin: 0 8px;
}

.btn-delete {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
}

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

.alert-dates {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 20px;
}

.alert-prices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.price-item {
    text-align: center;
}

.price-label {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 5px;
}

.initial-price {
    font-size: 18px;
    color: var(--gray-600);
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
}

.lowest-price {
    font-size: 18px;
    color: var(--success);
    font-weight: 600;
}

.alert-change {
    text-align: center;
    padding: 8px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
}

.alert-change.down {
    background: #dcfce7;
    color: #16a34a;
}

.alert-change.up {
    background: #fef2f2;
    color: #dc2626;
}

.alert-change.same {
    background: var(--gray-100);
    color: var(--gray-600);
}

.no-alerts {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.no-alerts p:first-child {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tab {
    padding: 12px 24px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.tab:hover {
    background: var(--gray-50);
}

.tab.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Surprise Trip */
.surprise-card {
    text-align: center;
}

.surprise-header {
    margin-bottom: 30px;
}

.surprise-header h2 {
    margin-bottom: 10px;
}

.surprise-header p {
    color: var(--gray-500);
}

.btn-surprise {
    padding: 16px 40px;
    font-size: 18px;
}

.surprise-results {
    margin-top: 40px;
}

.surprise-results h3 {
    margin-bottom: 20px;
    color: var(--gray-800);
}

.surprise-list {
    display: grid;
    gap: 15px;
}

.surprise-card-result {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.surprise-destination {
    min-width: 150px;
}

.destination-city {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
}

.destination-country {
    font-size: 14px;
    color: var(--gray-500);
}

.surprise-details {
    flex: 1;
}

.surprise-dates {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 5px;
}

.nights-badge {
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 10px;
}

.surprise-info {
    font-size: 13px;
    color: var(--gray-500);
}

.surprise-info span {
    margin-right: 15px;
}

.surprise-action {
    display: flex;
    align-items: center;
    gap: 15px;
}

.surprise-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--success);
}

.book-btn {
    white-space: nowrap;
}

/* Quiz Styles */
.quiz-section {
    margin: 25px 0;
    text-align: left;
}

.quiz-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.quiz-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.quiz-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
    min-width: 90px;
}

.quiz-option:hover {
    border-color: var(--primary);
    background: white;
}

.quiz-option.selected {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.quiz-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.quiz-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
}

.quiz-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.quiz-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.quiz-checkbox:hover {
    background: white;
    border-color: var(--gray-300);
}

.quiz-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.quiz-checkbox input:checked + span {
    color: var(--primary);
    font-weight: 500;
}

/* Match badge for results */
.match-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--gradient);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
}

.destination-tags {
    display: flex;
    gap: 6px;
    margin-top: 5px;
}

.destination-tag {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--gray-100);
    border-radius: 10px;
    color: var(--gray-600);
}

/* Admin Setup Banner */
.admin-setup-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 15px 25px;
    margin-bottom: 15px;
}

.admin-setup-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-setup-content strong {
    color: white;
    font-size: 16px;
}

.admin-setup-content span {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}

.btn-admin-setup {
    background: white;
    color: #667eea;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-admin-setup:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

/* Premium Banner & Badge */
.premium-banner {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: var(--radius-lg);
    padding: 15px 25px;
    margin-bottom: 25px;
}

.premium-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.premium-banner-content strong {
    display: block;
    color: #78350f;
    font-size: 16px;
}

.premium-banner-content span {
    color: #92400e;
    font-size: 14px;
}

.btn-premium {
    background: #78350f;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-premium:hover {
    background: #451a03;
    transform: translateY(-1px);
}

.premium-badge-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    margin-bottom: 25px;
}

.premium-badge-label {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.premium-badge-container .btn-outline {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.premium-badge-container .btn-outline:hover {
    background: rgba(255,255,255,0.3);
}

/* Pricing in alerts header */
.alerts-upgrade-hint {
    font-size: 13px;
    color: var(--gray-500);
}

.alerts-upgrade-hint a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.alerts-upgrade-hint a:hover {
    text-decoration: underline;
}

/* Loading */
.loading-screen {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .pricing-card-featured {
        transform: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .alert-prices {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .price-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .nav-links {
        display: none;
    }
}

/* ==================== Advanced Filters ==================== */

.filters-toggle {
    text-align: center;
    padding: 12px;
    margin: 16px 0;
    cursor: pointer;
    color: var(--primary);
    font-weight: 500;
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.filters-toggle:hover {
    background: var(--gray-50);
    border-color: var(--primary);
}

.advanced-filters {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
}

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

.filter-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-section h4 {
    color: var(--gray-700);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    padding-top: 28px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.help-text {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 4px;
}

/* Airline codes list */
.airline-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.airline-tag {
    background: var(--gray-100);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* Filter badges on alerts */
.alert-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.filter-badge {
    background: var(--gray-100);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--gray-600);
}

.filter-badge.direct {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.filter-badge.luggage {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
}

/* Source badge on alerts */
.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--gray-100);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 8px;
}

.source-badge .source-name {
    font-weight: 500;
    color: var(--primary);
}

/* Last checked info */
.last-checked {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 8px;
}

/* ==================== User Menu Dropdown ==================== */
.user-menu-container {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-menu-btn:hover {
    background: var(--gray-200);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-700);
    text-decoration: none;
    transition: background 0.2s;
}

.user-menu-dropdown a:hover {
    background: var(--gray-100);
}

.user-menu-dropdown a.text-danger {
    color: var(--danger);
}

.user-menu-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 8px 0;
}

/* ==================== Account Modal ==================== */
.account-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.account-modal-header h2 {
    font-size: 1.25rem;
    margin: 0;
}

.account-modal-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.account-sidebar {
    width: 220px;
    background: var(--gray-50);
    border-right: 1px solid var(--gray-200);
    padding: 20px 0;
    flex-shrink: 0;
}

.account-user-card {
    padding: 0 20px 20px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 16px;
}

.account-avatar-large {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 24px;
    margin: 0 auto 12px;
}

.account-tabs {
    display: flex;
    flex-direction: column;
}

.account-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    color: var(--gray-600);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.account-tab:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.account-tab.active {
    background: white;
    color: var(--primary);
    font-weight: 500;
    border-right: 3px solid var(--primary);
}

.account-tab.text-danger {
    color: var(--danger);
}

.account-main {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.account-tab-content {
    display: none;
}

.account-tab-content.active {
    display: block;
}

.account-tab-content h3 {
    margin: 0 0 20px;
    font-size: 1.1rem;
    color: var(--gray-900);
}

/* Security Sections */
.security-section {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.security-section h4 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.twofa-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}

/* Subscription Cards */
.subscription-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
}

.subscription-card.premium {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.subscription-card.free {
    border-color: var(--gray-300);
}

.sub-icon {
    font-size: 2rem;
}

.sub-info {
    flex: 1;
}

.sub-info h4 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.sub-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.sub-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Features Table */
.features-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.features-table th,
.features-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.features-table th {
    background: var(--gray-50);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--gray-500);
}

.features-table td:nth-child(2),
.features-table td:nth-child(3) {
    text-align: center;
}

/* Sessions List */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.session-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 12px;
}

.session-item.current {
    border: 2px solid var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.session-icon {
    font-size: 1.5rem;
}

.session-info {
    flex: 1;
}

.session-device {
    font-weight: 500;
    margin-bottom: 4px;
}

.session-meta {
    font-size: 0.8rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Danger Zone */
.danger-zone {
    border: 2px solid var(--danger);
    border-radius: 12px;
    overflow: hidden;
}

.danger-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.danger-item h4 {
    margin: 0 0 4px;
    color: var(--danger);
}

.danger-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* 2FA Setup */
.twofa-qr-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 12px;
    margin: 16px 0;
}

.twofa-qr-container img {
    max-width: 200px;
}

.twofa-secret-code {
    font-family: monospace;
    font-size: 1rem;
    background: var(--gray-100);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    letter-spacing: 2px;
    word-break: break-all;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #059669;
}

.badge-gray {
    background: var(--gray-200);
    color: var(--gray-600);
}

.badge-warning {
    background: #fef3c7;
    color: #d97706;
}

/* Utility */
.text-muted {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.text-danger {
    color: var(--danger) !important;
}

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

.btn-block {
    width: 100%;
}

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

.btn-danger:hover {
    background: #dc2626;
}

/* Modal close button */
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--gray-900);
}

/* Responsive Account Modal */
@media (max-width: 768px) {
    .account-modal-content {
        flex-direction: column;
    }
    
    .account-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
        padding: 16px;
    }
    
    .account-user-card {
        display: none;
    }
    
    .account-tabs {
        flex-direction: row;
        overflow-x: auto;
        gap: 4px;
    }
    
    .account-tab {
        padding: 10px 16px;
        white-space: nowrap;
        border-right: none !important;
        border-radius: 8px;
    }
    
    .account-tab.active {
        background: var(--primary);
        color: white;
    }
    
    .account-main {
        padding: 16px;
    }
    
    .danger-item {
        flex-direction: column;
        text-align: center;
    }
}
