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

:root {
    --primary: #673de6;
    --primary-dark: #5025d1;
    --secondary: #2f1c6a;
    --accent: #fc5185;
    --gradient: linear-gradient(135deg, #673de6 0%, #5025d1 50%, #fc5185 100%);
    --gradient-soft: linear-gradient(135deg, #673de6 0%, #fc5185 100%);
    --text-dark: #0d0e21;
    --text-gray: #595968;
    --text-light: #8080a0;
    --bg-light: #f7f7fb;
    --bg-white: #ffffff;
    --border: #e6e6f0;
    --success: #22c55e;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 2px 8px rgba(15, 18, 61, 0.06);
    --shadow-md: 0 10px 30px rgba(15, 18, 61, 0.08);
    --shadow-lg: 0 20px 60px rgba(15, 18, 61, 0.12);
    --shadow-glow: 0 20px 80px rgba(103, 61, 230, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
    overflow-x: hidden;
}

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

.gradient-text {
    background: var(--gradient-soft);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
    margin: 0;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px;
    transition: color 0.2s ease;
}

.btn-login:hover {
    color: var(--primary);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-gradient:hover {
    background: var(--gradient);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: var(--border);
    transform: translateY(-1px);
}

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

.hero {
    position: relative;
    padding: 80px 24px 100px;
    overflow: hidden;
}

.hero-container {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(252, 81, 133, 0.1) 0%, rgba(103, 61, 230, 0.1) 100%);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 28px;
    border: 1px solid rgba(103, 61, 230, 0.15);
}

.badge-icon {
    font-size: 16px;
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-gray);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.stat {
    text-align: center;
    padding: 20px 12px;
}

.stat-number {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--gradient-soft);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.stat-label {
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
}

.hero-bg-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(103, 61, 230, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-gray);
    line-height: 1.7;
}

.features {
    padding: 100px 24px;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-white);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon.blue {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.feature-icon.green {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.feature-icon.purple {
    background: rgba(103, 61, 230, 0.12);
    color: #673de6;
}

.feature-icon.orange {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
}

.feature-icon.pink {
    background: rgba(252, 81, 133, 0.12);
    color: #fc5185;
}

.feature-icon.teal {
    background: rgba(20, 184, 166, 0.12);
    color: #14b8a6;
}

.feature-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-desc {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
}

.pricing {
    padding: 100px 24px;
}

.billing-toggle {
    display: inline-flex;
    background: var(--bg-light);
    padding: 6px;
    border-radius: var(--radius-lg);
    margin: 0 auto 48px;
    gap: 4px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid var(--border);
}

.billing-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.billing-option:hover {
    color: var(--text-dark);
}

.billing-option.active {
    background: var(--bg-white);
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.save-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
}

.save-badge.best {
    background: linear-gradient(135deg, #fc5185 0%, #673de6 100%);
    color: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

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

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.pricing-card.popular:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 80px rgba(103, 61, 230, 0.25);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 7px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.plan-header {
    margin-bottom: 24px;
}

.plan-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.plan-desc {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 8px;
}

.price-currency {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    align-self: flex-start;
    margin-top: 10px;
}

.price-amount {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--text-dark);
    line-height: 1;
}

.price-period {
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 500;
    margin-left: 4px;
}

.price-note {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 28px;
    min-height: 18px;
}

.pricing-card > .btn-primary {
    margin-bottom: 28px;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

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

.plan-features li.muted {
    color: var(--text-light);
}

.plan-features li.muted svg {
    color: var(--text-light);
}

.faq {
    padding: 100px 24px;
    background: var(--bg-light);
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-item.active {
    box-shadow: var(--shadow-sm);
    border-color: transparent;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 28px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 28px 24px;
}

.faq-answer p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
}

.faq-answer strong {
    color: var(--text-dark);
    font-weight: 600;
}

.cta {
    padding: 80px 24px;
}

.cta-box {
    background: var(--gradient);
    border-radius: var(--radius-xl);
    padding: 60px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    flex: 1;
    min-width: 280px;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.cta-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.cta-actions {
    position: relative;
    z-index: 1;
}

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

.cta .btn-primary:hover {
    background: #f5f3ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.footer {
    background: #0d0e21;
    color: white;
    padding: 72px 24px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-logo .logo-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
}

.footer-logo .logo-text {
    color: white;
}

.footer-about {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.7;
    margin: 20px 0 24px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.25s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.footer-legal-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

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

/* ========== ACCOUNT MENU ========== */
.account-menu {
    position: relative;
}

.account-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 10px 6px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.account-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.1);
}

.account-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.3px;
}

.account-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 290px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 50px rgba(15, 18, 61, 0.15);
    border: 1px solid var(--border);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 200;
}

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

.account-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    margin-bottom: 8px;
}

.account-avatar-lg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-meta {
    min-width: 0;
    flex: 1;
}

.account-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-email {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.dropdown-link:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.dropdown-link.danger {
    color: #dc2626;
}

.dropdown-link.danger:hover {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
}

/* ========== MODALS ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 18, 61, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
}

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

.modal {
    background: white;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 460px;
    box-shadow: 0 30px 80px rgba(15, 18, 61, 0.35);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.25s ease;
    position: relative;
    max-height: 92vh;
    overflow-y: auto;
}

.modal-wide {
    max-width: 920px;
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--text-gray);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.modal-close:hover {
    background: var(--border);
    color: var(--text-dark);
    transform: rotate(90deg);
}

.modal-header {
    padding: 28px 32px 0;
}

.modal-tabs {
    display: inline-flex;
    background: var(--bg-light);
    border-radius: 100px;
    padding: 5px;
    gap: 4px;
    margin-bottom: 6px;
}

.modal-tab {
    padding: 10px 22px;
    border-radius: 100px;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-gray);
    transition: all 0.2s ease;
    font-family: inherit;
}

.modal-tab.active {
    background: white;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(15, 18, 61, 0.08);
}

.modal-body {
    padding: 22px 32px 32px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    background: white;
    transition: all 0.2s ease;
    outline: none;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.12);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-row.two-col {
    gap: 12px;
}

.form-row.two-col .form-group {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-gray);
    user-select: none;
}

.checkbox input {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
    cursor: pointer;
    margin: 0;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--text-light);
    font-size: 12px;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.btn-social {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px;
    border: 1.5px solid var(--border);
    background: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-social:hover {
    background: var(--bg-light);
    border-color: #d1d5db;
}

.form-footer {
    margin-top: 22px;
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-success {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== CHECKOUT ========== */
.checkout-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 14px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 32px;
}

.order-summary {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.summary-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 18px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.summary-plan {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.summary-plan-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: var(--gradient);
    color: white;
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-plan-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
}

.summary-plan-cycle {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 2px;
}

.summary-price {
    font-weight: 800;
    font-size: 20px;
    color: var(--text-dark);
    white-space: nowrap;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-gray);
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.summary-line:last-of-type {
    border-bottom: none;
}

.summary-line.discount {
    color: #15803d;
    font-weight: 500;
}

.summary-line.total {
    margin-top: 10px;
    padding-top: 16px;
    border-top: 2px solid var(--border);
    border-bottom: none;
    font-weight: 800;
    color: var(--text-dark);
    font-size: 17px;
}

.summary-guarantee {
    margin-top: 22px;
    padding: 14px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #15803d;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.payment-method {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.payment-method:hover {
    border-color: #c4b5fd;
    color: var(--text-dark);
}

.payment-method.active {
    border-color: var(--primary);
    background: rgba(103, 61, 230, 0.05);
    color: var(--primary);
    box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.1);
}

.secure-note {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 500;
}

/* ========== DASHBOARD ========== */
.dashboard-section {
    padding: 0 24px 80px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 24px;
}

.dash-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.dash-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dash-card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.2s ease;
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.dash-profile-body {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.dash-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    font-weight: 800;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(103, 61, 230, 0.2);
}

.dash-profile-info {
    min-width: 0;
    flex: 1;
}

.dash-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
}

.dash-email {
    color: var(--text-gray);
    font-size: 14px;
    margin-top: 4px;
}

.dash-joined {
    color: var(--text-light);
    font-size: 12px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

.dash-plan-body {
    padding: 24px;
}

.dash-plan-empty {
    text-align: center;
    padding: 20px 10px;
}

.dash-plan-empty h4 {
    color: var(--text-dark);
    font-size: 16px;
    margin: 18px 0 6px;
    font-weight: 700;
}

.dash-plan-empty p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 20px;
}

.dash-plan-active {
    background: linear-gradient(135deg, rgba(103, 61, 230, 0.08) 0%, rgba(252, 81, 133, 0.08) 100%);
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid rgba(103, 61, 230, 0.2);
}

.dash-plan-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.dash-plan-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 6px;
}

.dash-plan-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
}

.dash-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
}

.dash-status::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

.dash-plan-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 18px;
    border-top: 1px dashed rgba(103, 61, 230, 0.2);
}

.dash-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-meta-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-meta-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.dash-empty-state {
    padding: 36px 24px;
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
}

.dash-empty-state p {
    margin-top: 12px;
}

.order-item {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 18px;
    align-items: center;
    transition: background 0.2s ease;
}

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

.order-item:hover {
    background: var(--bg-light);
}

.order-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--gradient);
    color: white;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.order-info h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.order-info p {
    font-size: 12px;
    color: var(--text-gray);
}

.order-amount {
    font-weight: 800;
    color: var(--text-dark);
    font-size: 15px;
}

.order-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .order-summary {
        position: static;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .modal-header,
    .modal-body {
        padding-left: 22px;
        padding-right: 22px;
    }
    .modal-header {
        padding-top: 22px;
    }
    .payment-methods {
        grid-template-columns: 1fr;
    }
    .payment-method {
        justify-content: flex-start;
        padding: 12px 14px;
    }
    .form-row.two-col {
        flex-direction: column;
        gap: 16px;
    }
    .dash-profile-body {
        flex-direction: column;
        text-align: center;
    }
    .dash-plan-meta {
        grid-template-columns: 1fr;
    }
    .order-item {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }
    .order-amount,
    .order-badge {
        grid-column: 2;
    }
}

@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 14px 20px;
    }

    .nav-actions .btn-login {
        padding: 8px 12px;
        font-size: 13px;
    }


    .hero {
        padding: 56px 20px 72px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat {
        padding: 12px 8px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .features {
        padding: 64px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing {
        padding: 64px 20px;
    }

    .billing-toggle {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }

    .billing-option {
        padding: 10px 18px;
        font-size: 13px;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .price-amount {
        font-size: 48px;
    }

    .faq {
        padding: 64px 20px;
    }

    .faq-question {
        padding: 18px 22px;
        font-size: 15px;
    }

    .faq-item.active .faq-answer {
        padding: 0 22px 22px;
    }

    .cta {
        padding: 56px 20px;
    }

    .cta-box {
        padding: 40px 28px;
        text-align: center;
    }

    .cta-actions {
        width: 100%;
    }

    .cta-actions .btn-primary {
        width: 100%;
    }

    .footer {
        padding: 56px 20px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-bottom: 40px;
    }

    .footer-legal {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }
}


/* FORCE MODAL VISIBILITY FALLBACK */
.modal-overlay.open { display: flex !important; opacity: 1 !important; visibility: visible !important; }
.modal-overlay.open .modal { opacity: 1 !important; transform: translateY(0) scale(1) !important; }
