/* === CSS VARIABLES === */
:root {
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-500: #3b82f6;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;
    --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;
    --white: #ffffff;
    --green-500: #22c55e;
    --green-100: #dcfce7;
    --red-500: #ef4444;
    --red-100: #fee2e2;
    --yellow-500: #eab308;
    --yellow-100: #fef9c3;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-family); background: var(--gray-50); color: var(--gray-800); line-height: 1.5; min-height: 100vh; overflow-x: hidden; }
body.menu-open { overflow: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; width: 100%; }

.header { position: fixed; top: 0; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 16px 0; z-index: 1000; height: 72px; }
.header-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 16px; height: 100%; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gray-900); }
.logo-img { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; }
.logo-text { font-weight: 700; font-size: 1.6rem; color: var(--gray-900); }

.burger-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 40px; height: 40px; background: var(--gray-100); border: none; border-radius: var(--radius-sm); cursor: pointer; gap: 5px; padding: 10px; transition: background 0.2s; }
.burger-menu:hover { background: var(--gray-200); }
.burger-menu span { display: block; width: 20px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: all 0.3s; }

.menu-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1001; opacity: 0; visibility: hidden; transition: all 0.3s; }
.menu-overlay.show { opacity: 1; visibility: visible; }

.slide-menu { position: fixed; top: 0; right: -300px; width: 300px; height: 100vh; background: var(--white); z-index: 1002; transition: right 0.3s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-xl); }
.slide-menu.open { right: 0; }
.menu-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--gray-200); font-weight: 600; font-size: 1.1rem; }
.close-menu { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--gray-100); border: none; border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--gray-600); }
.menu-content { flex: 1; padding: 12px 0; overflow-y: auto; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 20px; color: var(--gray-700); text-decoration: none; font-size: 1rem; cursor: pointer; transition: background 0.2s; border: none; background: none; width: 100%; text-align: left; }
.menu-item:hover { background: var(--gray-50); }
.menu-icon { font-size: 1.25rem; }
.menu-lang-badge { margin-left: auto; background: var(--blue-100); color: var(--blue-600); padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.menu-divider { height: 1px; background: var(--gray-200); margin: 8px 20px; }
.menu-user { background: var(--gray-50); }
.menu-user-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.menu-user-details { display: flex; flex-direction: column; }
.menu-user-name { font-weight: 600; color: var(--gray-900); }
.menu-user-email { font-size: 0.85rem; color: var(--gray-500); }
.menu-logout { color: var(--red-500); }

.hero { padding: 100px 0 32px; background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%); min-height: auto; display: flex; align-items: flex-start; }
.hero-content { text-align: center; max-width: 500px; margin: 0 auto; width: 100%; }
.hero-title { font-size: 1.6rem; font-weight: 800; color: var(--gray-900); margin-bottom: 10px; line-height: 1.2; }
.hero-description { font-size: 0.95rem; color: var(--gray-600); margin-bottom: 24px; }

.search-container { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-lg); width: 100%; }
.search-type-tabs { display: flex; background: var(--gray-100); border-radius: var(--radius-sm); padding: 3px; margin-bottom: 20px; }
.search-type-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 12px; border: none; background: transparent; cursor: pointer; font-size: 0.9rem; font-weight: 500; color: var(--gray-600); border-radius: calc(var(--radius-sm) - 2px); transition: all 0.2s; text-decoration: none; }
.search-type-tab:hover { color: var(--gray-900); }
.search-type-tab.active { background: var(--white); color: var(--blue-600); box-shadow: var(--shadow); }
.tab-icon { font-size: 1rem; }

.search-form-panel { display: none; }
.search-form-panel.active { display: block; }

.phone-input-row { display: flex; gap: 8px; margin-bottom: 12px; }
.country-select-wrapper { position: relative; flex-shrink: 0; }
.country-select { display: flex; align-items: center; gap: 6px; padding: 12px 10px; background: var(--gray-50); border: 2px solid var(--gray-200); border-radius: var(--radius-sm); cursor: pointer; font-size: 0.95rem; min-width: 110px; transition: border-color 0.2s; height: 48px; }
.country-select:hover { border-color: var(--gray-300); }
.country-flag { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.country-code { font-weight: 600; color: var(--gray-700); white-space: nowrap; }
.dropdown-arrow { font-size: 0.6rem; color: var(--gray-400); margin-left: auto; }
.country-dropdown { position: absolute; top: 100%; left: 0; width: 280px; max-height: 300px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); z-index: 100; display: none; overflow: hidden; }
.country-dropdown.open { display: block; }
.country-search { padding: 8px; border-bottom: 1px solid var(--gray-200); }
.country-search input { width: 100%; padding: 8px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 0.9rem; }
.country-search input:focus { outline: none; border-color: var(--blue-500); }
.country-list { max-height: 240px; overflow-y: auto; }
.country-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; transition: background 0.2s; }
.country-option:hover { background: var(--gray-50); }
.country-option.selected { background: var(--blue-50); }
.country-option-flag { font-size: 1.25rem; }
.country-option-name { flex: 1; font-size: 0.9rem; color: var(--gray-700); }
.country-option-code { font-size: 0.9rem; color: var(--gray-500); font-weight: 500; }

.phone-input { flex: 1; padding: 12px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 1.1rem; font-weight: 500; letter-spacing: 0.5px; transition: border-color 0.2s; height: 48px; min-width: 0; }
.phone-input:focus { outline: none; border-color: var(--blue-500); }

/* Mobile adjustments for country select */
@media (max-width: 400px) {
    .country-select { min-width: 95px; padding: 12px 8px; gap: 4px; }
    .country-code { font-size: 0.9rem; }
    .dropdown-arrow { display: none; }
    .country-dropdown { width: 260px; left: 0; right: auto; }
}

.search-input-wrapper { margin-bottom: 12px; }
.search-input { width: 100%; padding: 14px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 1rem; transition: border-color 0.2s; }
.search-input:focus { outline: none; border-color: var(--blue-500); }
.search-hint { font-size: 0.85rem; color: var(--gray-500); text-align: center; margin-top: 8px; }

.btn-primary { width: 100%; padding: 14px 24px; background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%); color: var(--white); border: none; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.btn-secondary { padding: 12px 20px; background: var(--white); color: var(--gray-700); border: 2px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn-secondary:hover { border-color: var(--gray-300); background: var(--gray-50); }

.social-proof { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; padding: 12px; background: var(--gray-100); border-radius: var(--radius); flex-wrap: wrap; }
.social-proof-text { font-size: 0.85rem; color: var(--gray-600); }
.social-proof-text strong { color: var(--gray-900); font-weight: 700; }
.social-proof-avatars { display: flex; align-items: center; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 100%); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 600; margin-left: -8px; border: 2px solid var(--white); }
.avatar:first-child { margin-left: 0; }
.avatar-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; margin-left: -8px; border: 2px solid var(--white); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.avatar-img:first-child { margin-left: 0; }
.avatar-more { width: auto; padding: 0 10px; height: 32px; border-radius: 16px; background: var(--gray-200); color: var(--gray-600); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; margin-left: -8px; border: 2px solid var(--white); }

.section { padding: 32px 0; }
.section-title { font-size: 1.35rem; font-weight: 700; text-align: center; margin-bottom: 20px; color: var(--gray-900); }

.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.features-grid.compact .feature-card { padding: 14px; }
.feature-card { background: var(--white); padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.feature-icon { font-size: 1.75rem; margin-bottom: 6px; }
.feature-card h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 3px; color: var(--gray-900); }
.feature-card p { font-size: 0.75rem; color: var(--gray-500); line-height: 1.3; }

.benefits-section { background: var(--gray-100); }
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.benefits-grid.compact .benefit-card { padding: 14px; }
.benefit-card { background: var(--white); padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.benefit-number { font-size: 1.25rem; font-weight: 800; color: var(--blue-600); margin-bottom: 6px; }
.benefit-card h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 3px; color: var(--gray-900); }
.benefit-card p { font-size: 0.75rem; color: var(--gray-500); line-height: 1.3; }

.pricing-section { background: var(--white); }
.pricing-grid { display: flex; flex-direction: column; gap: 10px; }
.pricing-card { background: var(--gray-50); border: 2px solid var(--gray-200); border-radius: var(--radius); padding: 16px; position: relative; }
.pricing-card.featured { border-color: var(--blue-500); background: var(--blue-50); }
.pricing-badge { position: absolute; top: -10px; left: 16px; background: var(--blue-600); color: var(--white); padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }
.pricing-badge.best { background: var(--green-500); }
.pricing-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; margin-top: 6px; color: var(--gray-900); }
.pricing-desc { font-size: 0.8rem; color: var(--gray-600); margin-bottom: 10px; line-height: 1.3; }
.pricing-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-old { font-size: 0.85rem; color: var(--gray-400); text-decoration: line-through; }
.price-current { font-size: 1.35rem; font-weight: 800; color: var(--gray-900); }
.price-usd { font-size: 0.85rem; color: var(--gray-500); }
.pricing-note { text-align: center; font-size: 0.75rem; color: var(--gray-500); margin-top: 16px; }

.auth-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.auth-overlay.show { display: flex; }
.auth-modal { background: var(--white); border-radius: var(--radius); padding: 32px 24px; max-width: 400px; width: 100%; text-align: center; position: relative; box-shadow: var(--shadow-xl); max-height: 90vh; overflow-y: auto; }
.auth-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--gray-100); border: none; border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--gray-500); }
.auth-icon { font-size: 3rem; margin-bottom: 16px; }
.auth-modal h2 { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.auth-modal > p { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 24px; }
.auth-methods { display: flex; flex-direction: column; gap: 12px; }
.btn-auth { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 20px; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 500; cursor: pointer; transition: all 0.2s; text-decoration: none; border: 2px solid var(--gray-200); background: var(--white); color: var(--gray-700); }
.btn-auth:hover { border-color: var(--gray-300); background: var(--gray-50); }
.btn-google:hover { border-color: #4285f4; }
.btn-email { background: var(--blue-600); color: var(--white); border-color: var(--blue-600); }
.btn-email:hover { background: var(--blue-700); border-color: var(--blue-700); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--gray-400); font-size: 0.85rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.auth-input { width: 100%; padding: 14px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 1rem; margin-bottom: 12px; }
.auth-input:focus { outline: none; border-color: var(--blue-500); }
.auth-note { font-size: 0.8rem; color: var(--gray-500); margin-top: 20px; }

.code-inputs { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
.code-input { width: 45px; height: 55px; text-align: center; font-size: 1.5rem; font-weight: 700; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); }
.code-input:focus { outline: none; border-color: var(--blue-500); }
.resend-code { font-size: 0.85rem; color: var(--gray-500); margin-top: 16px; }
.link-btn { background: none; border: none; color: var(--blue-600); cursor: pointer; font-size: inherit; text-decoration: underline; }

.footer { padding: 16px 0; text-align: center; background: var(--gray-100); border-top: 1px solid var(--gray-200); }
.footer p { font-size: 0.8rem; color: var(--gray-500); }

@media (min-width: 768px) {
    .hero { padding: 120px 0 48px; }
    .hero-title { font-size: 2.25rem; }
    .section { padding: 48px 0; }
    .features-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .benefits-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .pricing-grid { flex-direction: row; gap: 16px; }
    .pricing-card { flex: 1; }
}
