:root {
    /* === PRIMARY — Mid Blue from the logo === */
    --primary: #2D7FD3;
    /* main brand blue */
    --primary-dark: #1C5FA7;
    /* deep blue */
    --primary-light: #A9D4F8;
    /* soft washed blue */

    /* === SECONDARY — Purple tail of the logo === */
    --secondary: #9F3EE8;
    --secondary-dark: #7322B2;
    --secondary-light: #E5C8FF;

    /* === ACCENT — Green/teal transition in the logo === */
    --accent: #21B5C4;
    --accent-dark: #0E7DA1;
    --accent-light: #9AE3EC;

    /* === RAPID (kept the same unless you want to recolor it) === */
    --rapid: #22C55E;
    --rapid-dark: #16A34A;
    --rapid-light: #DCFCE7;

    /* === STATUS COLORS === */
    --danger: #EF4444;
    --danger-dark: #DC2626;
    --danger-light: #FEF2F2;

    --warning: #F59E0B;
    --warning-light: #FFFBEB;

    /* === BASE COLORS === */
    --light: #F8FAFC;
    --dark: #1E293B;
    --gray: #64748B;
    --gray-light: #F1F5F9;

    /* === UI STRUCTURE === */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --transition: all 0.3s ease;
}

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

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

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

/* Header & Navigation */
header {
    background: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10001;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 24px;
    color: var(--dark);
    text-decoration: none;
}

.logo-icon {
    color: var(--primary);
    font-size: 28px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

.btn {
    padding: 12px 24px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-chrome {
    background: white;
    color: var(--dark);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow);
}

.btn-chrome:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-accent:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

/* User Dropdown Styles */
#userMenu {
    position: relative;
    display: inline-block;
}

#userDropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

#userDropdown:hover {
    border-color: var(--primary);
    background: #f8fafc;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    z-index: 10002;
    margin-top: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: #f8fafc;
    color: #6366f1;
}

.dropdown-content a i {
    width: 16px;
    text-align: center;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-text p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    top: 30%;
    right: -20%;
    animation-delay: 1s;
}

.floating-card:nth-child(3) {
    bottom: 20%;
    left: -10%;
    animation-delay: 2s;
}

.floating-card i {
    font-size: 24px;
    color: var(--primary);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Features Section */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-title p {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

.feature-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.feature-badge.basic {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.feature-badge.pro {
    background: var(--secondary-light);
    color: var(--secondary-dark);
}

.feature-badge.enterprise {
    background: var(--accent-light);
    color: var(--accent);
}

/* Pricing Section */
.pricing {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4ff 100%);
}



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

.pricing-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.pricing-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary);
    color: white;
    padding: 5px 30px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
}

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

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

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

.pricing-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.pricing-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.pricing-period {
    color: var(--gray);
    font-size: 14px;
}

.pricing-features {
    margin-bottom: 30px;
    text-align: left;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.pricing-feature i {
    color: var(--secondary);
}

.pricing-feature i.fa-times {
    color: var(--gray);
    opacity: 0.5;
}

/* How It Works */
.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gray-light);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.step p {
    color: var(--gray);
    max-width: 250px;
    margin: 0 auto;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4ff 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.testimonial-content {
    margin-bottom: 20px;
    position: relative;
    flex-grow: 1;
}

.testimonial-content p {
    font-style: italic;
    color: var(--dark);
    line-height: 1.6;
}

.testimonial-content::before {
    display: none;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
}

.author-info h4 {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark);
}

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

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

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

.faq-answer {
    margin-top: 16px;
    color: var(--gray);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
    border-radius: var(--border-radius-lg);
    margin: 0 20px;
}

.cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #94a3b8;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Paywall Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: var(--transition);
    text-align: center;
    position: relative;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--secondary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-icon i {
    font-size: 32px;
    color: var(--secondary);
}

.modal h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.modal p {
    color: var(--gray);
    margin-bottom: 30px;
}

.modal-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

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

/* Payment Page Styles */
.payment-container {
    max-width: 800px;
    margin: 120px auto 60px;
    padding: 0 20px;
}

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

.payment-header {
    text-align: center;
    margin-bottom: 40px;
}

.payment-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.payment-header p {
    color: var(--gray);
    font-size: 18px;
}

.payment-plan {
    background: var(--primary-light);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark);
}

.plan-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.payment-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

/* Success Page */
.success-container {
    max-width: 600px;
    margin: 120px auto 60px;
    padding: 0 20px;
    text-align: center;
}

.success-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 60px 40px;
    box-shadow: var(--shadow-lg);
}

.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--secondary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.success-icon i {
    font-size: 48px;
    color: var(--secondary);
}

.success-card h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.success-card p {
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 30px;
}

/* Download Page */
.download-container {
    max-width: 800px;
    margin: 120px auto 60px;
    padding: 0 20px;
}

.download-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 60px 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.download-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.download-icon i {
    font-size: 48px;
    color: var(--primary);
}

.download-card h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.download-card p {
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 40px;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.download-option {
    background: var(--gray-light);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    transition: var(--transition);
    cursor: pointer;
}

.download-option:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
}

.download-option i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 16px;
}

.download-option h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.download-option p {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

/* Account Page Styles */
.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.loading-state i {
    font-size: 48px;
    margin-bottom: 16px;
}

.account-details {
    text-align: left;
    margin-bottom: 30px;
}

.detail-card {
    background: var(--secondary-light);
    padding: 24px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary);
    margin-bottom: 20px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

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

.detail-label {
    font-weight: 600;
    color: var(--gray);
    font-size: 14px;
}

.detail-value {
    font-weight: 500;
    color: var(--dark);
    font-size: 16px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: var(--secondary-light);
    color: var(--secondary-dark);
}

.status-trialing {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.status-canceled {
    background: var(--danger-light);
    color: var(--danger);
}

.no-subscription {
    text-align: center;
    padding: 40px 20px;
}

.no-subscription i {
    font-size: 64px;
    color: var(--warning);
    margin-bottom: 16px;
    opacity: 0.7;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    min-width: 300px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    border-left: 4px solid var(--primary);
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left-color: var(--secondary);
}

.toast-error {
    border-left-color: var(--danger);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-content i {
    font-size: 20px;
}

.toast-success .toast-content i {
    color: var(--secondary);
}

.toast-error .toast-content i {
    color: var(--danger);
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 32px;
    }

    .steps {
        flex-direction: column;
        gap: 40px;
    }

    .steps::before {
        display: none;
    }

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

@media (max-width: 768px) {
    .navbar {
        padding: 16px 0;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 24px;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-light);
        width: 100%;
    }

    .nav-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-top: 12px;
    }

    .nav-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Overlay when menu is open */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .section-title h2 {
        font-size: 30px;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }

    .cta-buttons,
    .modal-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .download-options {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .section {
        padding: 60px 0;
    }

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

    .floating-card {
        display: none;
    }

    .payment-card,
    .success-card,
    .download-card {
        padding: 30px 20px;
    }

    .download-container,
    .success-container {
        margin: 100px auto 40px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .modal {
        padding: 30px 20px;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .toast {
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

/* Free testing option animation */
.free-testing-option {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Payment message styles */
#payment-message {
    color: #dc2626;
    font-size: 16px;
    line-height: 20px;
    padding-top: 12px;
    text-align: center;
    background: #fef2f2;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

#payment-message.success {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

/* --- App Interface Styles --- */

/* Sidebar Layout */
.sidebar-page {
    display: flex;
    background-color: #f8fafc;
    height: 100vh;
    overflow: hidden;
}

.sidebar-page .container {
    max-width: 100%;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* App Header */
.sidebar-page header {
    position: static;
    box-shadow: none;
    background: transparent;
    margin-bottom: 20px;
    padding: 0;
    text-align: center;
}

.sidebar-page .logo {
    justify-content: center;
    margin-bottom: 8px;
}

.sidebar-page .subtitle {
    color: var(--gray);
    font-size: 14px;
}

/* User Info Bar */
.user-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 10px 16px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.user-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--dark);
}

.user-icon {
    color: var(--primary);
    font-size: 20px;
}

.subscription-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    text-transform: uppercase;
}

.logout-btn {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

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

/* Tabs */
.tabs {
    display: flex;
    background: white;
    padding: 4px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
}

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

/* Sub-tabs */
.sub-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.sub-tab-btn {
    padding: 6px 16px;
    border: 1px solid var(--gray-light);
    background: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.sub-tab-btn.active {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-light);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    color: var(--primary);
}

/* Source Buttons */
.audio-source-buttons {
    margin-bottom: 20px;
}

.source-buttons-container {
    display: flex;
    gap: 10px;
    background: var(--gray-light);
    padding: 4px;
    border-radius: 8px;
}

.source-btn {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

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

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.action-buttons .btn {
    flex: 1;
    justify-content: center;
}

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

.btn-rapid:hover {
    background: var(--rapid-dark);
}

/* Status */
.status-container {
    margin-bottom: 20px;
}

.status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
}

.status.idle {
    background: var(--gray-light);
    color: var(--dark);
}

.status.recording {
    background: var(--danger-light);
    color: var(--danger-dark);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

/* Output Area */
.output-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    overflow: hidden;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--gray-light);
    border-bottom: 1px solid #e2e8f0;
}

.output-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.output-actions {
    display: flex;
    gap: 8px;
}

.output-actions .btn {
    padding: 4px 8px;
    font-size: 11px;
    height: auto;
}

.output {
    flex: 1;
    padding: 16px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-y: auto;
    background: white;
    color: var(--dark);
}

/* Feature Sections */
.feature-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.feature-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-section h4 i {
    color: var(--secondary);
}

.feature-placeholder {
    background: var(--gray-light);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: var(--gray);
    font-size: 13px;
}

/* Toggle Switch */
.mute-toggle {
    margin-bottom: 16px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--dark);
    cursor: pointer;
}

.toggle-slider {
    position: relative;
    width: 36px;
    height: 20px;
    background-color: var(--gray);
    border-radius: 20px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: var(--transition);
}

input:checked+.toggle-slider {
    background-color: var(--primary);
}

input:checked+.toggle-slider::before {
    transform: translateX(16px);
}

input[type="checkbox"] {
    display: none;
}