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

:root {
    --primary: #6E56CF;
    --primary-dark: #5B45B0;
    --accent: #F4A261;
    --bg-light: #F8F9FA;
    --text-dark: #1A1A1A;
    --text-dim: #666;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --radius: 16px;
    --success: #22C55E;
    --error: #EF4444;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

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

/* === Header === */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 999;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.header-content {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0;
}
.logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; font-size: 28px; font-weight: 800;
    color: var(--primary); transition: transform 0.3s;
}
.logo:hover { transform: scale(1.05); }
.logo img { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; }
.nav { display: flex; gap: 32px; }
.nav a {
    text-decoration: none; color: var(--text-dark); font-weight: 500;
    font-size: 16px; transition: color 0.3s; position: relative;
}
.nav a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s;
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }
.nav a.active { color: var(--primary); }
.nav a.active::after { width: 100%; }

.mobile-menu-btn {
    display: none; background: none; border: none; font-size: 24px;
    color: var(--primary); cursor: pointer; padding: 8px;
}

/* === Hero === */
.premium-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #9B8AFB 50%, var(--accent) 100%);
    padding: 80px 0 60px; color: white; text-align: center;
    position: relative; overflow: hidden;
}
.premium-hero::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}
.premium-hero .container { position: relative; z-index: 1; }
.premium-hero h1 {
    font-family: 'Montserrat', sans-serif; font-size: 48px;
    font-weight: 800; margin-bottom: 16px;
}
.premium-hero p { font-size: 20px; opacity: 0.9; max-width: 600px; margin: 0 auto; }
.crown-icon { font-size: 64px; margin-bottom: 20px; display: block; }

/* === Search Section === */
.search-section {
    padding: 60px 0 40px; text-align: center;
}
.search-section h2 {
    font-family: 'Montserrat', sans-serif; font-size: 28px;
    font-weight: 700; margin-bottom: 8px;
}
.search-section p { color: var(--text-dim); margin-bottom: 32px; font-size: 16px; }

.search-box {
    display: flex; gap: 12px; max-width: 480px; margin: 0 auto;
    flex-wrap: wrap; justify-content: center;
}
.search-input {
    flex: 1; min-width: 200px; padding: 16px 20px; border: 2px solid #E5E7EB;
    border-radius: 14px; font-size: 17px; font-family: 'Inter', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s; outline: none;
    background: white;
}
.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(110, 86, 207, 0.15);
}
.search-input::placeholder { color: #aaa; }

.btn-primary {
    padding: 16px 32px; background: var(--primary); color: white; border: none;
    border-radius: 14px; font-size: 17px; font-weight: 600; cursor: pointer;
    transition: all 0.3s; font-family: 'Inter', sans-serif;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* === User Card === */
.user-card {
    max-width: 520px; margin: 0 auto 40px; background: white;
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    padding: 28px; display: none; animation: fadeUp 0.4s ease;
}
.user-card.visible { display: block; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-info { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.user-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #9B8AFB);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 22px; font-weight: 700; flex-shrink: 0;
    overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-details h3 { font-size: 18px; font-weight: 600; }
.user-details p { font-size: 14px; color: var(--text-dim); }

.premium-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 12px; font-size: 14px;
    font-weight: 600; width: 100%;
}
.premium-badge.active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    color: #16A34A; border: 1px solid rgba(34, 197, 94, 0.2);
}
.premium-badge.inactive {
    background: rgba(239, 68, 68, 0.06);
    color: #DC2626; border: 1px solid rgba(239, 68, 68, 0.15);
}
.premium-badge i { font-size: 18px; }

.error-msg {
    max-width: 480px; margin: 16px auto 0; padding: 14px 20px;
    background: rgba(239, 68, 68, 0.08); color: var(--error);
    border-radius: 12px; font-size: 14px; font-weight: 500;
    display: none; animation: fadeUp 0.3s ease;
}
.error-msg.visible { display: block; }

/* === Plans Section === */
.plans-section {
    padding: 20px 0 80px; display: none;
}
.plans-section.visible { display: block; }
.plans-section h2 {
    font-family: 'Montserrat', sans-serif; font-size: 28px;
    font-weight: 700; text-align: center; margin-bottom: 12px;
}
.plans-subtitle {
    text-align: center; color: var(--text-dim); margin-bottom: 40px; font-size: 16px;
}

.plans-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px; margin-bottom: 40px;
}

.plan-card {
    background: white; border-radius: var(--radius); padding: 28px 20px;
    box-shadow: var(--shadow-sm); border: 2px solid transparent;
    cursor: pointer; transition: all 0.3s; text-align: center;
    position: relative;
}
.plan-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-md);
}
.plan-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(110, 86, 207, 0.15), var(--shadow-md);
}
.plan-card.popular {
    border-color: var(--accent);
}
.plan-card.popular.selected {
    border-color: var(--primary);
}
.popular-tag {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: white; padding: 4px 16px;
    border-radius: 20px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.plan-duration {
    font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 12px;
}
.plan-price {
    font-family: 'Montserrat', sans-serif; font-size: 36px;
    font-weight: 800; color: var(--primary); margin-bottom: 4px;
}
.plan-price span { font-size: 18px; font-weight: 600; }
.plan-per-month { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; }
.plan-savings {
    display: inline-block; background: rgba(34, 197, 94, 0.1);
    color: #16A34A; padding: 4px 12px; border-radius: 20px;
    font-size: 13px; font-weight: 600;
}

/* === Checkout === */
.checkout {
    max-width: 520px; margin: 0 auto; background: white;
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    padding: 28px; text-align: center; display: none;
}
.checkout.visible { display: block; animation: fadeUp 0.4s ease; }

.checkout-summary {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 0; border-bottom: 1px solid #F0F0F0; margin-bottom: 20px;
}
.checkout-summary .label { font-size: 16px; color: var(--text-dim); }
.checkout-summary .value {
    font-size: 22px; font-weight: 700; color: var(--primary);
    font-family: 'Montserrat', sans-serif;
}

.btn-pay {
    width: 100%; padding: 18px; background: linear-gradient(135deg, var(--primary), #9B8AFB);
    color: white; border: none; border-radius: 14px; font-size: 18px;
    font-weight: 700; cursor: pointer; transition: all 0.3s;
    font-family: 'Inter', sans-serif; display: flex;
    align-items: center; justify-content: center; gap: 10px;
}
.btn-pay:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-pay:active { transform: translateY(0); }
.btn-pay:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-pay .spinner {
    width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white; border-radius: 50%;
    animation: spin 0.8s linear infinite; display: none;
}
.btn-pay.loading .spinner { display: block; }
.btn-pay.loading .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.checkout-note {
    margin-top: 16px; font-size: 13px; color: var(--text-dim); line-height: 1.5;
}
.checkout-note i { margin-right: 4px; }

/* === Features === */
.features-section { padding: 60px 0; }
.features-section h2 {
    font-family: 'Montserrat', sans-serif; font-size: 28px;
    font-weight: 700; text-align: center; margin-bottom: 40px;
}
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
    background: white; border-radius: var(--radius); padding: 28px;
    box-shadow: var(--shadow-sm); text-align: center; transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(110,86,207,0.1), rgba(155,138,251,0.1));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 24px; color: var(--primary);
}
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-dim); line-height: 1.5; }

/* === Footer === */
.footer {
    background: var(--text-dark); color: white; padding: 40px 0 20px;
}
.footer-content {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px; margin-bottom: 30px;
}
.footer-section h4 { font-size: 16px; margin-bottom: 12px; }
.footer-section p, .footer-section a {
    font-size: 14px; color: #aaa; text-decoration: none; display: block;
    margin-bottom: 6px; transition: color 0.3s;
}
.footer-section a:hover { color: white; }
.footer-contact i { margin-right: 8px; }
.footer-bottom {
    text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px; color: #888;
}

/* === Responsive === */
@media (max-width: 900px) {
    .plans-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-btn { display: block; }
    .premium-hero h1 { font-size: 32px; }
    .premium-hero p { font-size: 16px; }
    .crown-icon { font-size: 48px; }
}
@media (max-width: 560px) {
    .plans-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .plan-card { padding: 20px 14px; }
    .plan-price { font-size: 28px; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .search-box { flex-direction: column; }
    .search-input { min-width: unset; }
}

/* Mobile menu */
.mobile-menu {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: white; box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    z-index: 1000; transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
    padding: 24px;
}
.mobile-menu.active { right: 0; }
.mobile-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 32px; padding-bottom: 20px; border-bottom: 2px solid #F0F0F0;
}
.mobile-menu-header .logo-text { font-size: 24px; font-weight: 800; color: var(--primary); }
.mobile-menu-close {
    background: none; border: none; font-size: 24px; color: var(--text-dim);
    cursor: pointer; padding: 8px;
}
.mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a {
    display: block; padding: 14px 16px; text-decoration: none; color: var(--text-dark);
    font-weight: 500; font-size: 16px; border-radius: 12px; transition: background 0.3s;
}
.mobile-nav a:hover { background: var(--bg-light); color: var(--primary); }
.overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 999;
}
.overlay.active { display: block; }
