/* ============================================
   Global Styles & CSS Variables
   ============================================ */

:root {
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
    --gradient: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    overflow-x: hidden;
}
/* ============================================
   Dark Mode Overrides
   ============================================ */

body.dark-theme {
    background: #0b1220;
    color: #e2e8f0;
}

body.dark-theme .navbar {
    background: #0f172a;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

body.dark-theme .navbar-logo-light {
    display: none !important;
}

body.dark-theme .navbar-logo-dark {
    display: inline-block !important;
}

body.dark-theme .nav-link {
    color: #cbd5f5 !important;
}

body.dark-theme .nav-link:hover {
    color: #a5b4fc !important;
}

body.dark-theme .navbar-toggler {
    border-color: #334155;
}

body.dark-theme .navbar-toggler-icon {
    filter: invert(1);
}

body.dark-theme .features,
body.dark-theme .pricing,
body.dark-theme .faq,
body.dark-theme .signup-section,
body.dark-theme .login-section,
body.dark-theme .legal-section,
body.dark-theme .contact-section {
    background: #0f172a;
}

body.dark-theme .feature-card,
body.dark-theme .pricing-card,
body.dark-theme .login-card,
body.dark-theme .signup-card,
body.dark-theme .legal-card,
body.dark-theme .contact-card,
body.dark-theme .accordion-item,
body.dark-theme .modal-content,
body.dark-theme .screen-frame {
    background: #111827;
    color: #e2e8f0;
    border-color: #1f2937;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

body.dark-theme .feature-card h3,
body.dark-theme .plan-name,
body.dark-theme .login-header h1,
body.dark-theme .signup-header h1,
body.dark-theme .section-title,
body.dark-theme .legal-card h1,
body.dark-theme .legal-card h2,
body.dark-theme .contact-header h1 {
    color: #e2e8f0;
}

body.dark-theme .feature-card p,
body.dark-theme .plan-description,
body.dark-theme .plan-price-period,
body.dark-theme .login-header p,
body.dark-theme .signup-header p,
body.dark-theme .screen-body,
body.dark-theme .screen-chat,
body.dark-theme .screen-tags span,
body.dark-theme .faq .accordion-body,
body.dark-theme .legal-card p,
body.dark-theme .legal-list li,
body.dark-theme .legal-meta,
body.dark-theme .contact-header p,
body.dark-theme .contact-detail-item span {
    color: #cbd5e1;
}

body.dark-theme .legal-highlight {
    background: #1f2937;
    border-left-color: #6366f1;
    color: #e2e8f0;
}

body.dark-theme .alert {
    background: #0f172a;
    color: #cbd5f5;
    border: 1px solid #1f2937;
}

body.dark-theme .alert-info {
    background: #0f172a;
    border-left: 4px solid #6366f1;
    color: #cbd5f5;
}

body.dark-theme .alert-info .alert-link {
    color: #a5b4fc;
}

body.dark-theme .code-block {
    background: #0f172a;
    border-color: #1f2937;
    color: #e2e8f0;
}

body.dark-theme .contact-detail-item {
    background: #0f172a;
    border-color: #1f2937;
}

body.dark-theme .plan-price {
    -webkit-text-fill-color: initial;
    color: #a5b4fc;
}

body.dark-theme .plan-features li i {
    color: #22c55e;
}

body.dark-theme .plan-features li,
body.dark-theme .plan-features li span,
body.dark-theme .plan-features li strong {
    color: #e2e8f0;
}

body.dark-theme .pricing-card.featured::before {
    color: #e2e8f0;
}

body.dark-theme .btn-primary-hero,
body.dark-theme .btn-secondary-hero,
body.dark-theme .btn-nav-signup,
body.dark-theme .plan-button-primary,
body.dark-theme .plan-button-secondary,
body.dark-theme .btn-login,
body.dark-theme .btn-signup,
body.dark-theme .btn,
body.dark-theme .theme-toggle-btn {
    border-color: #334155;
}

body.dark-theme .btn-secondary-hero,
body.dark-theme .plan-button-secondary {
    color: #e2e8f0;
    border-color: #6366f1;
}

body.dark-theme .plan-button-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
}

body.dark-theme .plan-button-primary,
body.dark-theme .btn-login,
body.dark-theme .btn-signup,
body.dark-theme .btn-nav-signup {
    color: #e2e8f0;
}

body.dark-theme .login-card,
body.dark-theme .signup-card {
    border: 1px solid #1f2937;
}

body.dark-theme .form-control,
body.dark-theme .form-select,
body.dark-theme textarea {
    background: #0b172a;
    color: #e2e8f0;
    border-color: #1f2937;
}

body.dark-theme .form-control::placeholder,
body.dark-theme textarea::placeholder {
    color: #94a3b8;
}

body.dark-theme .form-control:focus,
body.dark-theme .form-select:focus,
body.dark-theme textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.3);
}

body.dark-theme .footer-bottom {
    border-top-color: #1f2937;
    color: #94a3b8;
}

body.dark-theme footer {
    background: #0b1220;
    color: #cbd5e1;
}

body.dark-theme footer a {
    color: #a5b4fc;
}

body.dark-theme .footer-content {
    color: #cbd5e1;
}

body.dark-theme .accordion-button:not(.collapsed) {
    background: #1f2937;
    color: #e2e8f0;
}

body.dark-theme .accordion-button {
    color: #e2e8f0;
    background: #111827;
}

body.dark-theme .accordion-button::after {
    filter: invert(1);
}

body.dark-theme .accordion-item {
    border-color: #1f2937;
}

body.dark-theme .screen-body {
    color: #cbd5e1;
}

body.dark-theme .screen-header {
    background: #0b172a;
}

body.dark-theme .screen-body .screen-chat p strong {
    color: #e2e8f0;
}

body.dark-theme .theme-toggle-btn {
    color: #e2e8f0;
    border-color: #475569;
    background: #111827;
}

body.dark-theme .theme-toggle-btn:hover {
    background: #1f2937;
}

body.dark-theme .signup-section-title {
    color: #e2e8f0;
}

body.dark-theme .form-label {
    color: #e2e8f0;
}

body.dark-theme .plan-selector {
    background: #1f2937;
    border-color: #374151;
}

body.dark-theme .plan-selector.selected {
    background: #1e3a8a;
    border-color: #6366f1;
}

body.dark-theme .plan-info h3 {
    color: #e2e8f0;
}

body.dark-theme .plan-info p {
    color: #cbd5e1;
}

body.dark-theme [data-tier-container] {
    background: #1f2937 !important;
    border-color: #374151 !important;
}

/* ============================================
   Navigation Bar
   ============================================ */

.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.nav-link {
    color: #666 !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-nav-signup {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-nav-signup:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.theme-toggle-btn {
    border: 1px solid #d1d5db;
    color: #555;
    padding: 0.35rem 0.55rem;
    border-radius: 0.5rem;
    background: #ffffff;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    background: #f3f4f6;
}

/* ============================================
   Hero Section (Index Page)
   ============================================ */

.hero {
    background: var(--gradient);
    color: white;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-hero {
    background: white;
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary-hero:hover {
    background: #f8f9ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-secondary-hero {
    background: transparent;
    color: white;
    padding: 0.75rem 2rem;
    border: 2px solid white;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary-hero:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ============================================
   Features Section
   ============================================ */

.features {
    padding: 6rem 0;
    background: #f8f9ff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    color: #1a1a2e;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   Pricing Section
   ============================================ */

.pricing {
    padding: 6rem 0;
    background: white;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.pricing-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.pricing-card.featured::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.plan-price-period {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.plan-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.75rem 0;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.plan-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.plan-button-primary {
    background: var(--gradient);
    color: white;
}

.plan-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

.plan-button-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.plan-button-secondary:hover {
    background: #f8f9ff;
    transform: translateY(-2px);
    color: var(--primary-color);
}

/* ============================================
   CTA Section
   ============================================ */

.cta {
    background: var(--gradient);
    color: white;
    padding: 4rem 2rem;
    border-radius: 1rem;
    text-align: center;
    margin: 4rem 0;
}

.cta h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ============================================
   FAQ Section
   ============================================ */

.faq {
    padding: 6rem 0;
    background: #f8f9ff;
}

.accordion-button:not(.collapsed) {
    background: #f0f4ff;
    color: var(--primary-color);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23667eea'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 1rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: #999;
}

/* ============================================
   Login Page Styles
   ============================================ */

.login-section {
    background: #f8f9ff;
    padding: 4rem 0;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
}

.login-container {
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

.login-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

/* ============================================
   Contact Page Styles
   ============================================ */

.contact-section {
    background: #f8f9ff;
    padding: 4rem 0;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

.contact-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 3rem;
}

.contact-header {
    margin-bottom: 1.5rem;
}

.contact-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.contact-header p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-detail-item {
    background: #f1f5ff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.contact-detail-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-detail-item span {
    color: #444;
}

/* ============================================
   Signup Page Styles
   ============================================ */

.signup-section {
    background: #f8f9ff;
    padding: 4rem 0;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
}

.signup-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.signup-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
}

.signup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.signup-logo {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.signup-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.signup-header p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

.signup-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.signup-section-block {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.signup-section-title {
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.signup-screen-preview {
    background: #eef1ff;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(102, 126, 234, 0.2);
}

.screen-frame {
    background: #0f172a;
    border-radius: 0.75rem;
    padding: 1rem;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.screen-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.screen-dot {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.screen-dot-red { background: #f87171; }
.screen-dot-yellow { background: #facc15; }
.screen-dot-green { background: #34d399; }
.screen-dot-blue { background: #60a5fa; }

.screen-body {
    font-size: 0.95rem;
    line-height: 1.5;
}

.screen-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.75rem 0;
}

.screen-tags span {
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.screen-chat {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.6rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.screen-chat p {
    margin: 0;
    font-size: 0.85rem;
}

/* Desktop form grid for signup */
@media (min-width: 992px) {
    .form-row-desktop {
        display: flex;
        gap: 1.25rem;
    }

    .form-row-desktop .form-col-6 {
        flex: 0 0 50%;
    }
}

@media (min-width: 992px) {
    .signup-card {
        padding: 3rem;
    }

    .signup-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 2.5rem;
    }

    .signup-screen-preview {
        flex: 0 0 40%;
        margin-bottom: 0;
    }

    .signup-form {
        flex: 1;
    }
}

/* ============================================
   Form Elements
   ============================================ */

.form-label {
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.1);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.1);
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-check {
    padding-left: 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.125em;
    border: 2px solid #ccc;
    border-radius: 0.25rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.1);
}

.form-check-label {
    color: #666;
    margin-left: 0.5rem;
    font-size: 0.95rem;
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Center the Cloudflare Turnstile widget */
.cf-turnstile {
    display: flex;
    justify-content: center;
    width: 100%;
}

.cf-turnstile iframe {
    margin: 0 auto;
}

/* ============================================
   Plan Selector
   ============================================ */

.plan-selector {
    background: #f8f9ff;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.plan-selector.selected {
    background: #f0f4ff;
    border-color: var(--primary-color);
}

.plan-selector input[type="radio"] {
    display: none;
}

.plan-selector-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.plan-info h3 {
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.plan-info p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.plan-price {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.25rem;
}

/* ============================================
   Buttons
   ============================================ */

.btn-login,
.btn-signup {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-login:hover,
.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-login:disabled,
.btn-signup:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   Password Strength
   ============================================ */

.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
    background-color: #dc3545;
}

.password-strength-bar.weak {
    width: 33%;
    background-color: #ffc107;
}

.password-strength-bar.fair {
    width: 66%;
    background-color: #ffc107;
}

.password-strength-bar.good {
    width: 100%;
    background-color: #28a745;
}

.strength-text {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    color: #666;
}

/* ============================================
   Footer Links
   ============================================ */

.login-footer,
.signup-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    color: #666;
}

.login-footer a,
.signup-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover,
.signup-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   Scroll to Top Button
   ============================================ */

.scroll-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    z-index: 999;
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.scroll-to-top-btn:active {
    transform: translateY(-1px);
}

body.dark-theme .scroll-to-top-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

body.dark-theme .scroll-to-top-btn:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.7);
}

/* ============================================
   Alerts
   ============================================ */

.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: #fee;
    color: #c33;
}

.alert-info {
    background: #e7f3ff;
    color: #0066cc;
    border-left: 4px solid #0066cc;
}

.default-credentials {
    background: #e7f3ff;
    border-left: 4px solid #0066cc;
    color: #0066cc;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.default-credentials code {
    background: white;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    color: #333;
}

/* ============================================
   Legal Pages
   ============================================ */

.legal-section {
    background: #f8f9ff;
    padding: 4rem 0;
}

.legal-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.legal-card h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.legal-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-meta {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.legal-card p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-list {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.legal-list li {
    margin-bottom: 0.5rem;
    color: #444;
}

.legal-highlight {
    background: #f1f5ff;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 0.75rem;
    color: #1a1a2e;
}

.code-block {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.95rem;
    white-space: pre-wrap;
    color: #0f172a;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .plan-price {
        font-size: 2rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .features,
    .pricing,
    .faq {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .login-card,
    .signup-card {
        padding: 2rem 1.5rem;
    }

    .login-header h1,
    .signup-header h1 {
        font-size: 1.5rem;
    }

    .login-logo,
    .signup-logo {
        font-size: 2rem;
    }

    .login-section,
    .signup-section {
        padding: 2rem 0;
    }
}