/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Modern Professional Styles with Brand Colors */
/* DESIGN-OPT v1.0: Enhanced CSS variables with spacing, shadows, and transitions */
:root {
    /* Primary Brand Colors */
    --primary-blue: #002649;        /* Deep professional blue */
    --primary-blue-light: #003d6b;  /* Lighter blue for accents */
    --primary-blue-dark: #001a33;   /* Darker blue for contrast */
    
    /* Secondary Colors */
    --secondary-orange: #f59e0b;    /* Warm orange for highlights */
    --secondary-orange-light: #fbbf24; /* Light orange for accents */
    --secondary-orange-dark: #d97706;  /* Dark orange for depth */
    
    /* Neutral Colors */
    --neutral-dark: #1f2937;        /* Dark gray for text */
    --neutral-medium: #6b7280;      /* Medium gray for secondary text */
    --neutral-light: #f9fafb;       /* Light gray for backgrounds */
    --neutral-border: #e5e7eb;      /* Border color */
    --neutral-border-dark: #d1d5db; /* Darker border for subtle contrast */
    
    /* Status Colors */
    --success-green: #10b981;       /* Success/positive actions */
    --warning-yellow: #fbbf24;      /* DESIGN-OPT v1.0: Differentiated from brand orange */
    --error-red: #ef4444;           /* Error states */
    --info-blue: #3b82f6;           /* Information states */
    
    /* Background Colors */
    --bg-primary: #ffffff;          /* Main background */
    --bg-secondary: #f8fafc;        /* Secondary background */
    --bg-accent: #f1f5f9;           /* Accent background */
    
    /* DESIGN-OPT v1.0: Spacing Scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 2.5rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* DESIGN-OPT v1.0: Border Radius Scale */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* DESIGN-OPT v1.0: Shadow Elevation System */
    --shadow-sm: 0 2px 8px rgba(0, 38, 73, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 38, 73, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 38, 73, 0.16);
    --shadow-button: 0 4px 15px rgba(0, 38, 73, 0.2);
    --shadow-button-hover: 0 8px 25px rgba(0, 38, 73, 0.3);
    
    /* DESIGN-OPT v1.0: Transition Timing */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--neutral-dark);
    background: var(--bg-primary);
    min-height: 100vh;
    line-height: 1.65; /* DESIGN-OPT v1.0: Improved readability */
}

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

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem 1.2rem 2rem;
    background: var(--bg-primary);
    border-bottom: 2px solid var(--primary-blue);
    border-radius: 0;
    margin-bottom: var(--spacing-md); /* DESIGN-OPT v1.0: Standardized spacing */
    width: 100%;
    box-shadow: var(--shadow-sm); /* DESIGN-OPT v1.0: Using elevation system */
    flex-wrap: wrap; /* DESIGN-OPT v1.0: Allow wrapping on smaller screens */
    gap: 1rem; /* DESIGN-OPT v1.0: Add gap for wrapped items */
    min-width: 0; /* DESIGN-OPT v1.0: Allow shrinking */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
    flex-shrink: 0; /* DESIGN-OPT v1.0: Prevent logo from shrinking */
    min-width: 0; /* DESIGN-OPT v1.0: Allow text to truncate if needed */
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue);
    transition: color 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap; /* DESIGN-OPT v1.0: Prevent text wrapping */
    overflow: hidden; /* DESIGN-OPT v1.0: Allow text truncation */
    text-overflow: ellipsis; /* DESIGN-OPT v1.0: Add ellipsis if truncated */
}

.logo:hover .logo-text {
    color: var(--primary-blue-dark);
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 8px;
    /* Remove only excess whitespace, preserve full logo */
    padding: 2px;
    background: transparent;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}


.nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap; /* DESIGN-OPT v1.0: Allow nav to wrap */
    min-width: 0; /* DESIGN-OPT v1.0: Allow shrinking */
    flex: 1 1 auto; /* DESIGN-OPT v1.0: Flexible sizing */
    justify-content: center; /* DESIGN-OPT v1.0: Center nav when space is tight */
}

.nav-link {
    text-decoration: none;
    color: var(--neutral-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap; /* DESIGN-OPT v1.0: Prevent text wrapping */
    flex-shrink: 0; /* DESIGN-OPT v1.0: Prevent nav links from shrinking */
}

.nav-link:hover {
    background: var(--primary-blue);
    color: var(--bg-primary);
    transform: translateY(-1px);
}

.nav-link.active {
    background: var(--primary-blue);
    color: var(--bg-primary);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2);
}

.main {
    margin-bottom: 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 1.5rem 0;
    width: 100%;
}

.hero-content {
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    letter-spacing: -0.02em; /* DESIGN-OPT v1.0: Tighter, modern look */
    color: var(--neutral-dark);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--neutral-medium);
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-links {
    font-size: 1rem;
    margin-bottom: 2.2rem;
    color: var(--neutral-medium);
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.email-checker {
    background: var(--bg-primary);
    border-radius: var(--radius-lg); /* DESIGN-OPT v1.0: Standardized radius */
    padding: var(--spacing-lg); /* DESIGN-OPT v1.0: Standardized spacing */
    border: 2px solid var(--neutral-border);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-md); /* DESIGN-OPT v1.0: Using elevation system */
    transition: var(--transition-base); /* DESIGN-OPT v1.0: Standardized transition */
}

.email-checker:hover {
    box-shadow: var(--shadow-lg); /* DESIGN-OPT v1.0: Using elevation system */
    border-color: var(--primary-blue-light);
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 2px solid var(--neutral-border);
    width: 100%;
    min-width: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 52px;
    touch-action: manipulation;
}

.input-wrapper:focus-within {
    border-color: var(--primary-blue);
    /* DESIGN-OPT v1.0: Enhanced focus glow with brand color */
    box-shadow: 0 0 0 4px rgba(0, 38, 73, 0.1);
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--neutral-medium);
    font-size: 1.1rem;
    z-index: 2;
    transition: var(--transition-base); /* DESIGN-OPT v1.0: Standardized transition */
}

.input-wrapper:focus-within .input-icon {
    color: var(--primary-blue);
}

.email-input {
    flex: 1 1 0%;
    min-width: 0;
    padding: 1rem 1rem 1rem 2.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: var(--neutral-dark);
    font-weight: 500;
}

.email-input::placeholder {
    color: var(--neutral-medium);
    font-weight: 400;
    opacity: 0.7; /* DESIGN-OPT v1.0: Subtle opacity for better hierarchy */
}

.check-button {
    white-space: nowrap;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: var(--bg-primary);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
    transition: var(--transition-base); /* DESIGN-OPT v1.0: Standardized transition */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-button:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-button-hover); /* DESIGN-OPT v1.0: Using elevation system */
}

.check-button:active {
    transform: translateY(0) scale(0.98); /* DESIGN-OPT v1.0: Enhanced active state */
    box-shadow: var(--shadow-sm); /* DESIGN-OPT v1.0: Using elevation system */
}

.results {
    background: var(--bg-primary);
    border-radius: var(--radius-lg); /* DESIGN-OPT v1.0: Standardized radius */
    padding: var(--spacing-lg); /* DESIGN-OPT v1.0: Standardized spacing */
    margin-top: var(--spacing-md); /* DESIGN-OPT v1.0: Standardized spacing */
    border: 2px solid var(--neutral-border);
    transition: var(--transition-base); /* DESIGN-OPT v1.0: Standardized transition */
    box-shadow: var(--shadow-md); /* DESIGN-OPT v1.0: Using elevation system */
    /* DESIGN-OPT v1.0: Fade-in animation when results appear */
    animation: fadeInUp 0.3s ease-out;
}

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

.results.hidden {
    display: none;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #eee;
}

.result-header h3 {
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
}

.result-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.result-score span {
    display: block;
    font-size: 0.9rem;
    color: #222;
    margin-bottom: 0.3rem;
}

/* Removed circle component styles - no longer needed */

/* Dynamic score colors for both circle and number */
.score-very-low {
    border-color: var(--success-green) !important;
    color: var(--success-green) !important;
}
.score-low {
    border-color: var(--success-green) !important;
    color: var(--success-green) !important;
}
.score-moderate {
    border-color: var(--warning-yellow) !important;
    color: var(--warning-yellow) !important;
}
.score-high {
    border-color: var(--error-red) !important;
    color: var(--error-red) !important;
}

/* Legacy classes for backward compatibility */
.score-excellent {
    border-color: #1a7f37 !important;
    color: #1a7f37 !important;
}
.score-good {
    border-color: #2d7ff9 !important;
    color: #2d7ff9 !important;
}
.score-fair {
    border-color: #e6b800 !important;
    color: #e6b800 !important;
}
.score-poor {
    border-color: #e67e22 !important;
    color: #e67e22 !important;
}
.score-very-poor {
    border-color: #a33 !important;
    color: #a33 !important;
}

/* Risk Level Dynamic Colors */
.risk-level-dynamic {
    font-weight: 700;
    transition: color 0.3s;
}

.risk-level-dynamic.very-low {
    color: var(--success-green);
}

.risk-level-dynamic.low {
    color: var(--success-green);
}

.risk-level-dynamic.moderate {
    color: var(--warning-yellow);
}

.risk-level-dynamic.high {
    color: var(--error-red);
}

/* Risk Summary Section */
.risk-summary-section {
    margin-bottom: 2rem;
}

.risk-percentage-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary); /* DESIGN-OPT v1.0: Using CSS variable */
    border-radius: var(--radius-md); /* DESIGN-OPT v1.0: Standardized radius */
    border: 1px solid var(--neutral-border); /* DESIGN-OPT v1.0: Standardized border */
}

.risk-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* DESIGN-OPT v1.0: Brand-aware gradient using brand colors */
    background: conic-gradient(from 0deg, var(--error-red) 0deg, var(--warning-yellow) 120deg, var(--success-green) 240deg, var(--neutral-border) 360deg);
}

.risk-circle::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
}

.risk-percentage {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    z-index: 1;
}

.risk-info {
    flex: 1;
}

.risk-level {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #333;
    /* DESIGN-OPT v1.0: Gradient text matching hero title style for consistency */
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.risk-description {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* Patterns Section */
.patterns-section {
    margin-bottom: 1rem;
}

.patterns-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.patterns-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    align-items: flex-start;
}

.pattern-tag {
    background: linear-gradient(135deg, var(--error-red) 0%, #dc2626 100%);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
}

.pattern-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
}

.disposable-tag {
    background: linear-gradient(135deg, var(--secondary-orange-light) 0%, var(--secondary-orange) 100%);
    color: var(--neutral-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid var(--secondary-orange-dark);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
}

.disposable-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, var(--secondary-orange) 0%, var(--secondary-orange-dark) 100%);
    color: var(--bg-primary);
}

.no-patterns {
    color: var(--success-green);
    font-style: italic;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

/* Detailed Analysis Section */
.detailed-analysis-section {
    margin-top: 2rem;
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

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

.analysis-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.pro-badge {
    background: linear-gradient(135deg, var(--secondary-orange) 0%, var(--secondary-orange-light) 100%);
    color: var(--neutral-dark);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.detailed-analysis-content {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
}

.detailed-analysis-content.free-view {
    background: #f8f9fa;
    opacity: 0.7;
    position: relative;
}

.detailed-analysis-content.pro-view {
    background: white;
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.analysis-category h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.analysis-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

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

.analysis-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.analysis-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    font-family: 'Courier New', monospace;
}

/* Pro CTA */
.pro-cta {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border-radius: 16px;
    text-align: center;
    color: var(--bg-primary);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.2);
}

.cta-content {
    max-width: 400px;
    margin: 0 auto;
}

.cta-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-orange-light);
}

.cta-content h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cta-content p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.cta-button {
    background: var(--bg-primary);
    color: var(--primary-blue);
    border: 2px solid var(--bg-primary);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background: var(--secondary-orange);
    color: var(--bg-primary);
    border-color: var(--secondary-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.cta-button i {
    margin-right: 0.5rem;
}

/* Risk Sentence Styling (Legacy) */
.risk-sentence {
    text-align: center;
    font-size: 1.2rem;
    color: #333;
    margin: 1rem 0;
    line-height: 1.5;
    font-weight: 400;
}

/* Risk Scores Section */
.risk-scores-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.risk-scores-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.risk-scores-header:hover {
    background-color: #e9ecef;
    color: #212529;
}

.risk-scores-header i {
    color: #6c757d;
    font-size: 0.9rem;
}

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

.risk-score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.risk-theme {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.risk-score-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
    font-family: 'Courier New', monospace;
}

/* Tooltip Modal Styles */
.tooltip-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.tooltip-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: tooltipFadeIn 0.3s ease-out;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.tooltip-header h4 {
    margin: 0;
    color: #212529;
    font-size: 1.2rem;
    font-weight: 600;
}

.tooltip-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.tooltip-close:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.tooltip-body {
    padding: 1.5rem;
}

.tooltip-examples h5 {
    margin: 0 0 0.75rem 0;
    color: #212529;
    font-size: 1rem;
    font-weight: 600;
}

.tooltip-examples ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #495057;
}

.tooltip-examples li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.tooltip-examples strong {
    color: #212529;
}

/* Legacy classes for backward compatibility */
.success {
    border-color: #22c55e;
    color: #22c55e;
    background: #f0fdf4;
}

.error {
    border-color: #dc2626;
    color: #dc2626;
    background: #fef2f2;
}

.warning {
    border-color: #ca8a04;
    color: #ca8a04;
    background: #fefce8;
}

.result-details {
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #111;
    font-size: 0.98rem;
}

.detail-item i {
    color: #000;
    font-size: 1rem;
}

.valid-icon {
    color: #000;
}



/* Features Section */
.features {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    border: 2px solid var(--neutral-border);
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.08);
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--neutral-dark);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em; /* DESIGN-OPT v1.0: Consistent with hero title */
}

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

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: var(--bg-primary);
    border: 2px solid var(--neutral-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--secondary-orange) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-blue-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.3);
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--bg-primary);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--neutral-dark);
}

.feature-card p {
    color: var(--neutral-medium);
    line-height: 1.6;
    font-size: 1rem;
}

.footer {
    background: linear-gradient(135deg, var(--neutral-dark) 0%, var(--primary-blue-dark) 100%);
    color: var(--bg-primary);
    border-radius: 0;
    overflow: hidden;
    width: 100%;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bg-primary);
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.footer-section a:hover {
    color: var(--bg-primary);
    transform: translateX(5px);
}

.footer-section .logo {
    color: var(--bg-primary);
    margin-bottom: 1rem;
}

.footer-section .logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    /* Remove only excess whitespace, preserve full logo */
    padding: 1px;
    background: transparent;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0; /* DESIGN-OPT v1.0: Prevent actions from shrinking */
    min-width: 0; /* DESIGN-OPT v1.0: Allow buttons to shrink if needed */
    flex-wrap: wrap; /* DESIGN-OPT v1.0: Allow buttons to wrap */
}

/* DESIGN-OPT v1.0: Button text responsive visibility */
.btn-text-short {
    display: none; /* DESIGN-OPT v1.0: Hide short text by default */
}

.btn-text-full {
    display: inline; /* DESIGN-OPT v1.0: Show full text by default */
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
    white-space: nowrap; /* DESIGN-OPT v1.0: Prevent button text wrapping */
    flex-shrink: 1; /* DESIGN-OPT v1.0: Allow buttons to shrink if needed */
    min-width: 0; /* DESIGN-OPT v1.0: Allow text truncation */
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: var(--bg-primary);
    border: 2px solid transparent;
    /* DESIGN-OPT v1.0: Using elevation system with inner shadow for depth */
    box-shadow: var(--shadow-button), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-button-hover); /* DESIGN-OPT v1.0: Using elevation system */
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
}

/* DESIGN-OPT v1.0: Active/pressed state for tactile feedback */
.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 38, 73, 0.1);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 38, 73, 0.1), transparent);
    transition: left 0.5s;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button-hover); /* DESIGN-OPT v1.0: Using elevation system */
    border-color: var(--primary-blue);
}

/* DESIGN-OPT v1.0: Active/pressed state for tactile feedback */
.btn-secondary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
}

/* Admin Login Button - Blue Brand Color */
#loginBtn {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

#loginBtn:hover {
    background: var(--primary-blue);
    color: var(--bg-primary);
    border-color: var(--primary-blue);
    box-shadow: 0 6px 20px rgba(0, 38, 73, 0.3);
}

#loginBtn i {
    margin-right: 0.5rem;
}

/* Upgrade to Pro Button - Orange Brand Color */
#upgradeBtn {
    background: linear-gradient(135deg, var(--warning-yellow) 0%, #f59e0b 100%);
    color: var(--bg-primary);
    border: 2px solid var(--warning-yellow);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

#upgradeBtn:hover {
    background: linear-gradient(135deg, #f59e0b 0%, var(--warning-yellow) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* Button Display Transitions */
#loginBtn, #upgradeBtn {
    transition: all 0.3s ease, display 0s linear 0.3s;
}

#upgradeBtn[style*="display: none"] {
    display: none !important;
}

#upgradeBtn[style*="display: inline-flex"] {
    display: inline-flex !important;
}

/* Premium Features */
.premium-feature {
    position: relative;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border: 2px solid #e0e6ff;
}

.premium-icon {
    color: #ffd700;
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

.premium-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
}

.premium-lock-text {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
}

.premium-upgrade-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.premium-upgrade-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.premium-text {
    color: #667eea;
    font-weight: 600;
}

/* FAQ Section */
.faq {
    padding: 4rem 2rem;
    background: var(--bg-primary);
    border-top: 2px solid var(--neutral-border);
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--neutral-dark);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.faq-item {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid var(--neutral-border);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 38, 73, 0.15);
    border-color: var(--primary-blue-light);
}

.faq-item h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.faq-item p {
    color: var(--neutral-medium);
    line-height: 1.6;
    font-size: 1rem;
}

/* Quick Links Section */
.quick-links {
    padding: 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--neutral-border);
    border-bottom: 1px solid var(--neutral-border);
}

.quick-links-text {
    text-align: center;
    font-size: 1.1rem;
    color: var(--neutral-medium);
    margin: 0;
}

.quick-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Pricing Section */
.pricing {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-accent) 100%);
}

.pricing h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--neutral-dark);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border-color: var(--primary-blue);
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(30, 64, 175, 0.2);
}

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

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: var(--bg-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

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

.pricing-header h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price span {
    font-size: 1rem;
    color: #718096;
    font-weight: 400;
}

.price-prefix {
    font-size: 1rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-right: 0.5rem;
}

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

.pricing-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4a5568;
}

.pricing-features i.fa-check {
    color: #48bb78;
}

.pricing-features i.fa-times {
    color: #e53e3e;
}

.pricing-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    background: #e2e8f0;
    color: #4a5568;
}

.pricing-btn.featured {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: var(--bg-primary);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.pricing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #718096;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f7fafc;
    color: #2d3748;
}

.modal-body {
    padding: 2rem;
}

.premium-benefits h4 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.premium-benefits ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.premium-benefits li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4a5568;
}

.premium-benefits i {
    color: #667eea;
    width: 20px;
}

.premium-pricing {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-accent) 100%);
    border-radius: 12px;
    border: 2px solid var(--neutral-border);
}

.price-display {
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 1rem;
    color: #718096;
}

.price-description {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

.premium-actions {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.upgrade-now-btn {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive Design - Enhanced for all screen sizes */

/* Large tablets and small desktops (1024px and down) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .header {
        padding: 1rem 1.5rem; /* DESIGN-OPT v1.0: Reduced padding for smaller screens */
    }
    
    .nav {
        gap: 1rem; /* DESIGN-OPT v1.0: Reduced gap for tighter spacing */
    }
    
    .header-actions {
        gap: 0.75rem; /* DESIGN-OPT v1.0: Reduced gap between buttons */
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.65rem 1.25rem; /* DESIGN-OPT v1.0: Slightly smaller padding */
        font-size: 0.9rem; /* DESIGN-OPT v1.0: Slightly smaller font */
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* DESIGN-OPT v1.0: Medium screens - responsive header improvements (975px and down) */
@media (max-width: 975px) {
    .header {
        padding: 1rem 1.25rem;
    }
    
    .logo-text {
        font-size: 1.2rem; /* DESIGN-OPT v1.0: Smaller logo text */
    }
    
    .logo-img {
        width: 45px; /* DESIGN-OPT v1.0: Slightly smaller logo */
        height: 45px;
    }
    
    .nav {
        gap: 0.75rem;
    }
    
    .nav-link {
        padding: 0.45rem 0.85rem; /* DESIGN-OPT v1.0: Tighter nav link padding */
        font-size: 0.9rem;
    }
    
    .header-actions {
        gap: 0.5rem; /* DESIGN-OPT v1.0: Tighter gap between buttons */
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.6rem 1rem; /* DESIGN-OPT v1.0: Reduced horizontal padding */
        font-size: 0.85rem;
    }
    
    /* DESIGN-OPT v1.0: Show short text, hide full text on medium screens */
    .btn-text-full {
        display: none;
    }
    
    .btn-text-short {
        display: inline;
    }
}

/* Tablets (768px and down) */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
        text-align: center;
    }
    
    .nav {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .header-actions {
        display: flex;
        gap: 0.75rem;
        justify-content: center;
        margin-top: 0.5rem;
        flex-wrap: wrap; /* DESIGN-OPT v1.0: Allow buttons to wrap */
        width: 100%; /* DESIGN-OPT v1.0: Full width for better centering */
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* DESIGN-OPT v1.0: Show full text again when header stacks (more room) */
    .btn-text-full {
        display: inline;
    }
    
    .btn-text-short {
        display: none;
    }
    
    .hero-section {
        min-height: 50vh;
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }
    
    .email-checker {
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .input-wrapper {
        flex-direction: row;
        width: 100%;
        min-height: 50px;
    }
    
    .email-input {
        font-size: 0.95rem;
        padding: 0.75rem 0.75rem 0.75rem 2.5rem;
        min-width: 0;
    }
    
    .check-button {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
        white-space: nowrap;
    }
    
    .features {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .features h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .feature-card {
        padding: 1.5rem 1.25rem;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
    }
    
    .feature-icon i {
        font-size: 1.3rem;
    }
    
    .pricing {
        padding: 3rem 1rem;
    }
    
    .pricing h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card.featured {
        transform: none;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }
    
    .footer-section {
        margin-bottom: 1rem;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: 480px;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .premium-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .upgrade-now-btn {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    /* Results responsive improvements */
    .results {
        padding: 1.5rem;
        margin-top: 1.25rem;
    }
    
    .risk-percentage-display {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .risk-circle {
        width: 70px;
        height: 70px;
    }
    
    .risk-circle::before {
        width: 50px;
        height: 50px;
    }
    
    .risk-percentage {
        font-size: 1.1rem;
    }
    
    .risk-level {
        font-size: 1.3rem;
        margin-bottom: 0.4rem;
    }
    
    .risk-description {
        font-size: 0.95rem;
    }
    
    .patterns-section h4 {
        font-size: 1.05rem;
        margin-bottom: 0.8rem;
    }
    
    .pattern-tag, .disposable-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pro-cta {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .cta-content h5 {
        font-size: 1.2rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.75rem;
        font-size: 0.95rem;
    }
}

/* Mobile devices (480px and down) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .header {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .nav {
        gap: 0.4rem;
        margin: 0.5rem 0;
    }
    
    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .header-actions {
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .hero-section {
        min-height: 45vh;
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 1.4rem;
        line-height: 1.25;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }
    
    .email-checker {
        padding: 1rem;
        border-radius: 12px;
        margin: 0;
    }
    
    .input-wrapper {
        min-height: 48px;
        border-radius: 10px;
    }
    
    .input-icon {
        left: 0.75rem;
        font-size: 1rem;
    }
    
    .email-input {
        font-size: 0.9rem;
        padding: 0.65rem 0.65rem 0.65rem 2.2rem;
    }
    
    .check-button {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
        border-radius: 0 10px 10px 0;
    }
    
    .check-button i {
        font-size: 0.8rem;
    }
    
    /* Mobile results optimization */
    .results {
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 12px;
    }
    
    .risk-summary-section {
        margin-bottom: 1.25rem;
    }
    
    .risk-percentage-display {
        padding: 1rem;
        gap: 0.75rem;
        border-radius: 8px;
    }
    
    .risk-circle {
        width: 60px;
        height: 60px;
    }
    
    .risk-circle::before {
        width: 42px;
        height: 42px;
    }
    
    .risk-percentage {
        font-size: 1rem;
    }
    
    .risk-level {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .risk-description {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .patterns-section {
        margin-bottom: 0.75rem;
    }
    
    .patterns-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }
    
    .patterns-list {
        gap: 0.4rem;
    }
    
    .pattern-tag, .disposable-tag {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
        border-radius: 15px;
    }
    
    .detailed-analysis-section {
        margin-top: 1.25rem;
        padding-top: 0.75rem;
    }
    
    .analysis-header h4 {
        font-size: 1rem;
    }
    
    .pro-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .detailed-analysis-content {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .analysis-category h5 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .analysis-item {
        padding: 0.4rem 0;
    }
    
    .analysis-label {
        font-size: 0.8rem;
    }
    
    .analysis-value {
        font-size: 0.8rem;
    }
    
    .pro-cta {
        padding: 1.25rem;
        margin-top: 1.25rem;
        border-radius: 12px;
    }
    
    .cta-content h5 {
        font-size: 1.1rem;
    }
    
    .cta-content p {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }
    
    .cta-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 20px;
    }
    
    /* FAQ mobile optimization */
    .faq {
        padding: 2rem 0.75rem;
    }
    
    .faq h2 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .faq-item {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .faq-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .faq-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Features mobile optimization */
    .features {
        padding: 1.5rem 0.75rem;
        margin-bottom: 1.5rem;
        border-radius: 16px;
    }
    
    .features h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-card {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }
    
    .feature-icon i {
        font-size: 1.2rem;
    }
    
    .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Pricing mobile optimization */
    .pricing {
        padding: 2rem 0.75rem;
    }
    
    .pricing h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .pricing-header h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .price {
        font-size: 2.2rem;
    }
    
    .pricing-features li {
        padding: 0.6rem 0;
        font-size: 0.9rem;
    }
    
    .pricing-btn {
        padding: 0.875rem;
        font-size: 0.9rem;
        margin-top: 1.5rem;
    }
    
    /* About page content styles */
.about-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.7;
}

.about-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--neutral-dark);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem 0;
    color: var(--primary-blue);
}

.about-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--neutral-dark);
}

.about-section ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.about-section li {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    color: var(--neutral-dark);
}

.about-section strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Footer mobile optimization */
.footer-content {
    padding: 1.5rem 0.75rem;
    gap: 1.25rem;
}
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section a {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .footer-bottom {
        padding: 0.75rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Modal mobile optimization */
    .modal-content {
        margin: 2% auto;
        width: 98%;
        max-width: 400px;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 1.25rem 1.25rem 0.75rem;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
    
    .premium-benefits h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .premium-benefits li {
        padding: 0.6rem 0;
        font-size: 0.9rem;
    }
    
    .premium-pricing {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .price-period {
        font-size: 0.9rem;
    }
    
    .price-description {
        font-size: 0.8rem;
    }
    
    .upgrade-now-btn {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    /* Notification mobile optimization */
    .notification {
        min-width: 280px;
        padding: 0.875rem;
        border-radius: 8px;
        top: 15px;
        right: 15px;
        left: 15px;
        margin: 0 auto;
    }
    
    .notification-content {
        font-size: 0.9rem;
    }
    
    .notification-content i {
        font-size: 1.1rem;
    }
}

/* Small mobile devices (600px and down) */
@media (max-width: 600px) {
    .input-wrapper {
        flex-direction: row;
        width: 100%;
        min-height: 46px;
    }
    
    .email-input {
        font-size: 0.9rem;
        padding: 0.7rem 0.7rem 0.7rem 2.5rem;
    }
    
    .check-button {
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
    }
    
    .patterns-list {
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .pattern-tag, .disposable-tag {
        display: inline-block;
        max-width: 100%;
        word-wrap: break-word;
        hyphens: auto;
        line-height: 1.2;
    }
}

/* Extra small devices (360px and down) */
@media (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .header {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    .nav {
        gap: 0.3rem;
    }
    
    .nav-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 1.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .email-checker {
        padding: 0.75rem;
    }
    
    .input-wrapper {
        min-height: 44px;
    }
    
    .email-input {
        font-size: 0.85rem;
        padding: 0.6rem 0.6rem 0.6rem 2rem;
    }
    
    .check-button {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .check-button i {
        display: none; /* Hide icon on very small screens */
    }
    
    .risk-circle {
        width: 50px;
        height: 50px;
    }
    
    .risk-circle::before {
        width: 35px;
        height: 35px;
    }
    
    .risk-percentage {
        font-size: 0.9rem;
    }
    
    .risk-level {
        font-size: 1rem;
    }
    
    .risk-description {
        font-size: 0.8rem;
    }
    
    .pattern-tag, .disposable-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        border-radius: 12px;
    }
    
    .features {
        padding: 1rem 0.5rem;
    }
    
    .features h2 {
        font-size: 1.2rem;
    }
    
    .feature-card {
        padding: 1rem 0.75rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.75rem;
    }
    
    .feature-icon i {
        font-size: 1rem;
    }
    
    .feature-card h3 {
        font-size: 0.9rem;
    }
    
    .feature-card p {
        font-size: 0.8rem;
    }
    
    .pricing {
        padding: 1.5rem 0.5rem;
    }
    
    .pricing h2 {
        font-size: 1.4rem;
    }
    
    .pricing-card {
        padding: 1.25rem 0.75rem;
    }
    
    .price {
        font-size: 1.8rem;
    }
    
    .modal-content {
        margin: 1% auto;
        width: 96%;
        max-width: 350px;
    }
    
    .modal-header {
        padding: 1rem 1rem 0.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .notification {
        min-width: 260px;
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .email-checker {
        max-width: 700px;
        padding: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Landscape mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .email-checker {
        padding: 1rem;
    }
    
    .results {
        padding: 0.75rem;
    }
    
    .risk-percentage-display {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .features {
        padding: 1rem;
    }
    
    .pricing {
        padding: 1.5rem 1rem;
    }
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--neutral-border);
    border-radius: 50%;
    border-top-color: var(--primary-blue);
    animation: spin 1s ease-in-out infinite;
}

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

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    animation: notificationSlideIn 0.3s ease-out;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-success {
    border-left: 4px solid var(--success-green);
}

.notification-info {
    border-left: 4px solid var(--info-blue);
}

.notification-warning {
    border-left: 4px solid var(--warning-yellow);
}

.notification-error {
    border-left: 4px solid var(--error-red);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-success .notification-content i {
    color: var(--success-green);
}

.notification-info .notification-content i {
    color: var(--info-blue);
}

.notification-warning .notification-content i {
    color: var(--warning-yellow);
}

.notification-error .notification-content i {
    color: var(--error-red);
}

.notification-close {
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: #f7fafc;
    color: #2d3748;
}

/* Pro Active Button */
.btn-primary.pro-active {
    background: linear-gradient(135deg, var(--success-green) 0%, #059669 100%);
    position: relative;
}

.btn-primary.pro-active::before {
    content: '✓';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}

.btn-primary.pro-active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Detailed Metrics Styles */
.detailed-metrics {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.detailed-metrics h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

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

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.metric-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.metric-value {
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.risk-summary {
    text-align: center;
    margin-bottom: 1rem;
}

.risk-summary strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.risk-details {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.risk-score {
    font-weight: 600;
    color: #dc3545;
}

.processing-time {
    color: #6c757d;
}

.detected-patterns {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    font-size: 0.9rem;
}

.detected-patterns strong {
    color: #856404;
}

/* Email Validation Styles */
.validation-message {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

.validation-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.validation-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.validation-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-yellow);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced input validation states */
.email-input-container input:invalid {
    border-color: var(--error-red) !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25) !important;
}

.email-input-container input:valid {
    border-color: var(--success-green) !important;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25) !important;
}

/* Input focus states */
.email-input-container input:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25) !important;
}

/* Enhanced Touch and Mobile Interactions */
@media (hover: none) and (pointer: coarse) {
    /* Touch device optimizations */
    .btn-primary, .btn-secondary, .check-button {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .pattern-tag, .disposable-tag {
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-close, .tooltip-close {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Reduce hover effects on touch devices */
    .feature-card:hover {
        transform: none;
    }
    
    .pricing-card:hover {
        transform: none;
    }
    
    .pattern-tag:hover, .disposable-tag:hover {
        transform: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support (system preference) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2a2a2a;
        --bg-accent: #3a3a3a;
        --neutral-dark: #ffffff;
        --neutral-medium: #cccccc;
        --neutral-light: #2a2a2a;
        --neutral-border: #444444;
    }
    
    .email-checker {
        background: var(--bg-secondary);
        border-color: var(--neutral-border);
    }
    
    .results {
        background: var(--bg-secondary);
        border-color: var(--neutral-border);
    }
    
    .feature-card {
        background: var(--bg-secondary);
        border-color: var(--neutral-border);
    }
    
    .pricing-card {
        background: var(--bg-secondary);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loading {
        animation: none;
        border: 2px solid var(--primary-blue);
    }
}

/* Touch device specific styles */
.touch-device {
    /* Improve touch targets */
    --touch-target-size: 44px;
}

.touch-device .btn-primary,
.touch-device .btn-secondary,
.touch-device .check-button,
.touch-device .nav-link {
    min-height: var(--touch-target-size);
    min-width: var(--touch-target-size);
}

.touch-device .pattern-tag,
.touch-device .disposable-tag {
    min-height: 32px;
    padding: 0.6rem 1rem;
}

/* Keyboard open state for mobile */
.keyboard-open {
    /* Adjust layout when virtual keyboard is open */
    --vh: 1vh;
}

.keyboard-open .hero-section {
    min-height: auto;
    padding: 0.5rem 0;
}

.keyboard-open .hero-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.keyboard-open .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* High DPI device styles */
.high-dpi .logo-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Viewport height fallback for mobile browsers */
:root {
    --vh: 1vh;
}

.hero-section {
    min-height: calc(var(--vh, 1vh) * 60);
}

/* Responsive Design for Metrics */
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .risk-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .validation-message {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* Mobile responsive for new results component */
    .risk-percentage-display {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .risk-circle {
        width: 60px;
        height: 60px;
    }
    
    .risk-circle::before {
        width: 45px;
        height: 45px;
    }
    
    .risk-percentage {
        font-size: 1rem;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pro-cta {
        padding: 1.5rem;
    }
    
    .cta-content h5 {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
} 