/* Modern SaaS Template Styles */
:root {
    /* Colors */
    --primary-blue: #0023F5;
    --primary-blue-dark: #0322D8;
    --primary-blue-light: #0023F5;
    --secondary-green: #4FCD1A;
    --secondary-green-dark: #4FCD1A;
    
    /* Grays */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0023F5 0%, #0322D8 100%);
    --gradient-blue: linear-gradient(135deg, #0023F5 0%, #0322D8 100%);
    --gradient-text: linear-gradient(135deg, #0023F5 0%, #0322D8 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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);
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Utility Classes */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Page Management */
.page {
    min-height: 100vh;
}

.page.hidden {
    display: none;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-blue);
    color: white;
    box-shadow: var(--shadow-sm);
}

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

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

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    padding: 0.5rem 1rem;
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* Navigation */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 2.5rem;
    width: auto;
}

.nav-logo {
    height: 1.5rem;
    margin-right: 0.75rem;
}

.auth-logo {
    height: 4rem;
    margin-bottom: 1.5rem;
}

.subscription-logo {
    height: 4rem;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 2.5rem;
    margin-bottom: 1rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-600);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 6rem;
    background: #f8fafc;
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.hero-highlight {
    color: var(--primary-blue);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--secondary-green);
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-features {
    margin-bottom: 2rem;
}

.hero-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.hero-feature i {
    color: var(--secondary-green);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-success {
    background: var(--secondary-green);
    color: white;
    border: none;
}

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

.trust-indicators {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.trust-item i {
    color: var(--secondary-green);
    font-size: 1rem;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
}

.card-header {
    background: var(--gray-50);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.card-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #4FCD1A; }

.card-title {
    font-weight: 600;
    color: var(--gray-700);
}

.card-content {
    padding: 1.5rem;
}

.input-demo, .output-demo {
    margin-bottom: 1.5rem;
}

.input-demo label, .output-demo label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.demo-text {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 0.5rem;
    font-style: italic;
    color: var(--gray-600);
    border-left: 3px solid var(--primary-blue);
}

.demo-response {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gray-700);
}

.demo-response p {
    margin-bottom: 0.5rem;
}

.demo-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    text-align: center;
    font-style: italic;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

/* Features Section - Updated to match supports section */
.features-section {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.supports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.support-card {
    background: white;
    border: 2px solid var(--secondary-green);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.support-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
    line-height: 1.3;
}

/* How It Works Section */
.how-it-works-section {
    padding: var(--section-padding);
    background: white;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    background: white;
}

.step-number {
    width: 4rem;
    height: 4rem;
    background: var(--secondary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Supports Section */
.supports-section {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.supports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.support-card {
    background: white;
    border: 2px solid var(--secondary-green);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.support-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
    line-height: 1.3;
}

/* About Section */
.about-section {
    padding: var(--section-padding);
    background: white;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.about-main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.about-image {
    display: flex;
    justify-content: center;
}

.headshot {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
}

.about-text {
    text-align: left;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Responsive About Section */
@media (max-width: 768px) {
    .about-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-image {
        order: -1;
    }
    
    .headshot {
        width: 200px;
        height: 200px;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-header h2 {
        font-size: 2rem;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .footer-bottom-content {
        justify-content: center;
        text-align: center;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .supports-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 1200px) and (min-width: 1025px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
}
    
    .pricing-card {
        padding: 1.5rem;
    }
}

/* Pricing Section */
.pricing-section {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 2px solid var(--gray-200);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card.featured {
    border-color: var(--primary-blue);
}

.pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-badge-small {
    background: var(--secondary-green);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.pricing-description {
    margin-bottom: 1.5rem;
}

.pricing-description p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.5;
}

.pricing-features {
    flex: 1;
    margin-bottom: 1.5rem;
}

.pricing-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pricing-features li {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-size: 0.9rem;
    line-height: 1.4;
}

.pricing-best-for {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.4;
}

.pricing-best-for strong {
    color: var(--gray-900);
}

.pricing-action {
    margin-top: auto;
    padding-top: 1rem;
}

.pricing-action .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    padding: var(--section-padding);
    background: var(--gradient-blue);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.cta-content .btn-primary:hover {
    background: var(--gray-100);
}

/* Footer */
.landing-footer {
    background: var(--gray-900);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 2rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--gray-400);
    line-height: 1.6;
}

.footer-disclaimer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-700);
}

.footer-disclaimer p {
    font-size: 0.875rem;
    color: var(--gray-300);
    line-height: 1.5;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-column a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bottom-content p {
    color: var(--gray-400);
    margin: 0;
    text-align: center;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    padding: 2rem 1rem;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--gray-200);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    height: 3rem;
    margin-bottom: 1.5rem;
}

.auth-header h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--gray-600);
}

.auth-form {
    margin-bottom: 2rem;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

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

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-check input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 0.125rem;
}

.form-check label {
    margin: 0;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.4;
}

.form-check a {
    color: var(--primary-blue);
    text-decoration: none;
}

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

.security-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.security-notice p {
    margin: 0;
    font-size: 0.875rem;
    color: #92400e;
    line-height: 1.4;
}

.annual-option {
    font-size: 0.875rem;
    color: var(--secondary-green);
    font-weight: 600;
    margin-top: 0.5rem;
    text-align: center;
}

.auth-footer {
    text-align: center;
    color: var(--gray-600);
}

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

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

/* Verification Page */
.verification-icon {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.verification-link-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 0.5rem;
}

.alert {
    text-align: left;
}

.alert h4 {
    color: #92400e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verification-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.verification-link-copy {
    display: flex;
    gap: 0.5rem;
}

.verification-link-copy input {
    flex: 1;
    font-family: monospace;
    font-size: 0.875rem;
}

/* App Navigation */
.app-nav {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-nav .nav-container {
    height: 4rem;
}

.nav-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

.trial-badge {
    background: #f59e0b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Dashboard */
.dashboard-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.tool-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.tool-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.tool-icon.federal {
    background: var(--gradient-blue);
}

.tool-icon.california {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

.tool-content {
    flex: 1;
}

.tool-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.tool-content p {
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.tool-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.tool-action {
    color: var(--gray-400);
    font-size: 1.25rem;
}

/* Tool Pages */
.tool-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.tool-header p {
    color: var(--gray-600);
}

.tool-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #92400e;
}

.tool-warning i {
    color: #f59e0b;
}

.mode-selector {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 2rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-btn.active {
    background: var(--gradient-blue);
    color: white;
    border-color: var(--primary-blue);
}

.tool-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    flex: 1;
    min-height: 0;
}

.input-panel,
.output-panel {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    background: var(--gray-50);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.output-actions {
    display: flex;
    gap: 0.5rem;
}

.followup-actions {
    padding: 1rem 1.5rem 0;
    display: flex;
    justify-content: flex-end;
}

/* Initially hide regenerate buttons and follow-up sections */
#federalRegenerate,
#californiaRegenerate {
    display: none;
}

#federalFollowupSection,
#californiaFollowupSection {
    display: none;
}

/* User info styling in admin table */
.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    font-weight: 600;
    color: #1f2937;
}

.user-email {
    color: #6b7280;
    font-size: 0.875rem;
}

.user-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.user-meta span {
    white-space: nowrap;
}

/* Access Code Generator Styles */
.access-code-generator {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.access-code-generator h4 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.access-codes-list {
    margin-top: 2rem;
}

.access-codes-list h4 {
    color: #1f2937;
    margin-bottom: 1rem;
}

/* API Settings Styles */
.api-status {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator i {
    font-size: 0.75rem;
}

.status-indicator i.text-success {
    color: #4FCD1A;
}

.status-indicator i.text-danger {
    color: #ef4444;
}

.status-indicator i.text-warning {
    color: #f59e0b;
}

.api-usage-stats {
    margin-top: 2rem;
}

.api-usage-stats h4 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Deployment tab styling */
.deployment-info {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}

.info-card h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.webhook-url {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.webhook-url code {
    background: #e5e7eb;
    padding: 0.5rem;
    border-radius: 4px;
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.deployment-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.deployment-logs {
    background: #1f2937;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.deployment-logs h4 {
    color: #f9fafb;
    margin-bottom: 0.5rem;
}

.deployment-logs pre {
    color: #d1d5db;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    white-space: pre-wrap;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.info-card ol {
    margin-left: 1rem;
    color: #4b5563;
}

.info-card ol li {
    margin-bottom: 0.25rem;
}

/* Ensure regenerate buttons are properly styled when shown */
#federalRegenerate.show,
#californiaRegenerate.show {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Follow-up section styling */
.followup-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.followup-header {
    margin-bottom: 0.5rem;
}

.followup-header label {
    font-weight: 500;
    color: #374151;
}

.panel-header label {
    font-weight: 600;
    color: var(--gray-700);
}

.input-panel textarea {
    flex: 1;
    border: none;
    padding: 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    outline: none;
    min-height: 120px;
}

/* Follow-up Section Styles */
.followup-section {
    border-top: 1px solid var(--gray-200);
    margin-top: 1rem;
    padding-top: 1rem;
}

.followup-header {
    padding: 0 1.5rem 0.5rem;
}

.followup-header label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.followup-section textarea {
    border: none;
    padding: 1rem 1.5rem;
    font-family: inherit;
    font-size: 0.875rem;
    resize: none;
    outline: none;
    min-height: 80px;
    background: var(--gray-50);
    border-radius: 0.5rem;
    margin: 0 1.5rem;
    width: calc(100% - 3rem);
}

.followup-section textarea:focus {
    background: white;
    box-shadow: 0 0 0 2px var(--primary-blue-light);
}

.panel-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.response-output {
    flex: 1;
    padding: 1.5rem;
    background: var(--gray-50);
    white-space: pre-wrap;
    font-family: inherit;
    line-height: 1.6;
    overflow-y: auto;
}

/* Subscription Page */
.subscription-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    padding: 2rem 1rem;
}

.subscription-card {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.subscription-header {
    margin-bottom: 2rem;
}

.subscription-logo {
    height: 3rem;
    margin-bottom: 1rem;
}

.subscription-icon {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.subscription-header h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.subscription-pricing {
    margin-bottom: 2rem;
}

.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.price-display .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-600);
}

.price-display .amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
}

.price-display .period {
    font-size: 1rem;
    color: var(--gray-600);
}

.price-description {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.subscription-features {
    margin-bottom: 2rem;
    text-align: left;
}

.subscription-features h3 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    text-align: center;
}

.subscription-features ul {
    list-style: none;
}

.subscription-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
}

.subscription-features i {
    color: var(--secondary-green);
}

.subscription-actions {
    margin-bottom: 2rem;
}

.subscription-actions .btn {
    margin-bottom: 1rem;
}

.subscription-footer {
    border-top: 1px solid var(--gray-200);
    padding-top: 2rem;
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.subscription-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Success/Error Icons */
.success-icon,
.error-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.success-icon {
    background: #d1fae5;
    color: #065f46;
}

.error-icon {
    background: #fee2e2;
    color: #991b1b;
}

.cancel-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-weight: 700;
    color: var(--gray-900);
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-close:hover {
    color: var(--gray-600);
}

.modal-body {
    padding: 1.5rem;
}

/* Payment Modal Styles */
.payment-plan-summary {
    background: var(--gray-50);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.payment-plan-summary h4 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.plan-price .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.plan-price .period {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 500;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-method-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.payment-method-btn:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.payment-method-icon {
    font-size: 2rem;
    color: var(--primary-blue);
    width: 3rem;
    text-align: center;
}

.payment-method-info {
    flex: 1;
}

.payment-method-info h4 {
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.payment-method-info p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.875rem;
}

.payment-method-arrow {
    color: var(--gray-400);
    font-size: 1.25rem;
}

.api-key-section {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .tool-workspace {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 4rem;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--gray-200);
        padding: 1rem 1.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-section {
        padding: 6rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .tool-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .tool-container {
        padding: 1rem;
    }
    
    .dashboard-container {
        padding: 2rem 1rem;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .subscription-card {
        padding: 2rem;
    }
    
    .price-display .amount {
        font-size: 2.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

/* Admin Dashboard Styles */
.admin-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.admin-header {
    text-align: center;
    margin-bottom: 3rem;
}

.admin-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.admin-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stat-card:hover,
.stat-card.clickable-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-blue);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
}

.admin-tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--gray-600);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--primary-blue);
    background: var(--gray-50);
}

.tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.tab-content {
    display: none;
}

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

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-controls {
    display: flex;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
    min-width: 150px;
}

.tab-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.users-table-container {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-container {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.admin-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
}

.admin-table tbody tr:hover {
    background: var(--gray-50);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: 1px solid #ef4444;
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.text-success {
    color: #4FCD1A !important;
}

.text-danger {
    color: #ef4444 !important;
}

.text-warning {
    color: #f59e0b !important;
}

.text-center {
    text-align: center;
}

.users-table th,
.users-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.users-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.users-table tbody tr:hover {
    background: var(--gray-50);
}

.users-table tbody tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-verified {
    background: #d1fae5;
    color: #065f46;
}

.status-unverified {
    background: #fef3c7;
    color: #92400e;
}

.status-subscribed {
    background: #dbeafe;
    color: #1e40af;
}

.status-trial {
    background: #e0e7ff;
    color: #3730a3;
}

.status-expired {
    background: #fee2e2;
    color: #991b1b;
}

.settings-section {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.settings-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Modal Enhancements */
.large-modal .modal-content {
    max-width: 800px;
    width: 95%;
}

.modal-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.user-actions-section {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.filtered-users-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
}

.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    transition: background 0.2s ease;
}

.user-item:hover {
    background: var(--gray-50);
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.user-info input[type="checkbox"] {
    margin: 0;
}

.user-details h4 {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.user-details p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

/* User Detail Modal Styles */
.user-detail-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.user-detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.user-detail-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.detail-row span {
    color: var(--gray-900);
    font-size: 0.875rem;
}

/* Profile Page Styles */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 3rem;
}

.profile-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.profile-header p {
    color: var(--gray-600);
}

.profile-content {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--secondary-green);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
}

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

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

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

.toast-error {
    border-left-color: #ef4444;
}

.toast-error i {
    color: #ef4444;
}

.toast span {
    color: var(--gray-800);
    font-weight: 500;
    line-height: 1.4;
}

/* Legal Modal Styles */
.legal-modal .modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
}

.legal-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 2rem;
}

.legal-modal h4 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-modal h4:first-child {
    margin-top: 0;
}

.legal-modal h5 {
    color: var(--gray-800);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-modal h6 {
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.legal-modal ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-modal li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.comparison-table {
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 1.5rem 0;
}

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

.table-row.header {
    background: var(--gray-100);
    font-weight: 700;
}

.table-cell {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
}

.table-cell:last-child {
    border-right: none;
}

.table-row:last-child .table-cell {
    border-bottom: none;
}

.summary-section {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.step-guide {
    margin: 1.5rem 0;
}

.guide-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.step-number {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.best-practice {
    background: var(--primary-blue);
    color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.best-practice blockquote {
    margin: 0;
    font-style: italic;
    font-size: 1.125rem;
}

/* Responsive Legal Modals */
@media (max-width: 768px) {
    .legal-modal .modal-content {
        width: 98%;
        margin: 1rem;
    }
    
    .legal-modal .modal-body {
        padding: 1rem;
    }
    
    .table-row {
        grid-template-columns: 1fr;
    }
    
    .table-cell {
        border-right: none;
    }
    
    .guide-step {
        flex-direction: column;
        gap: 0.5rem;
    }
}
@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
    }
    
    .admin-header h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-controls {
        min-width: auto;
    }
    
    .tab-actions {
        justify-content: center;
    }
    
    .users-table-container {
        overflow-x: auto;
    }
    
    .users-table {
        min-width: 600px;
    }
    
    .modal-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .profile-container {
        padding: 1rem;
    }
    
    .profile-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .modal-actions {
        justify-content: center;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --gray-100: #f0f0f0;
        --gray-200: #e0e0e0;
        --gray-300: #c0c0c0;
        --gray-400: #a0a0a0;
        --gray-500: #808080;
        --gray-600: #606060;
        --gray-700: #404040;
        --gray-800: #202020;
        --gray-900: #000000;
    }
}