/* AI Text Cleaner - Styles */

:root {
    --primary-color: #667eea;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-color: #f093fb;
    --accent-color: #4facfe;
    --success-color: #4CAF50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --border-color: #e1e8ed;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Parallax Background */
.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    opacity: 0.3;
}

.parallax-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-shape {
    position: absolute;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.floating-shape:nth-child(1) { width: 80px; height: 80px; }
.floating-shape:nth-child(2) { width: 60px; height: 60px; border-radius: 20%; }
.floating-shape:nth-child(3) { width: 100px; height: 100px; }
.floating-shape:nth-child(4) { width: 40px; height: 40px; border-radius: 10px; }
.floating-shape:nth-child(5) { width: 120px; height: 120px; }
.floating-shape:nth-child(6) { width: 50px; height: 50px; border-radius: 30%; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.5; }
    25% { transform: translateY(-20px) rotate(90deg); opacity: 0.8; }
    50% { transform: translateY(0px) rotate(180deg); opacity: 0.3; }
    75% { transform: translateY(-10px) rotate(270deg); opacity: 0.6; }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.nav-logo i {
    font-size: 1.5rem;
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

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

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

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

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

.upgrade-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Tool Container */
.tool-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Hero Tool Interface */
.hero-tool {
    /* Styling moved to container */
}

.hero-text-container {
    margin-top: 1.5rem;
}

.hero-text-container textarea {
    width: 100%;
    min-height: 200px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #333 !important;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.hero-text-container textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
    color: #333 !important;
}

.hero-text-container textarea::placeholder {
    color: #999 !important;
    opacity: 1;
}

.hero-input-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.usage-info-box {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.usage-info {
    display: flex;
    gap: 1rem;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
}

.detection-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* AI Detection Progress Bar */
.ai-detection-container {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 0.75rem;
    position: relative;
}

.ai-detection-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detection-label-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
}

.detection-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
}

.info-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 0;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.info-btn:hover {
    opacity: 1;
    color: #5a6fd8;
}

.ai-progress-bar {
    flex: 1;
    height: 20px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80 0%, #fbbf24 50%, #ef4444 100%);
    border-radius: 8px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-fill.loading {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #667eea 100%) !important;
    background-size: 200% 200% !important;
    animation: loadingWave 0.6s ease-in-out infinite !important;
    width: 100% !important; /* Full width during loading */
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Ensure normal state overrides loading state */
.progress-fill:not(.loading) {
    animation: none !important;
    background-size: auto !important;
}

/* Higher specificity for color override */
.ai-progress-bar .progress-fill:not(.loading) {
    background-image: none !important;
}

/* Even higher specificity for JavaScript-set colors */
.ai-detection-container .ai-progress-bar .progress-fill {
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

@keyframes loadingWave {
    0% { 
        background-position: 0% 50%;
        transform: scaleX(0.3);
        opacity: 0.8;
    }
    25% {
        background-position: 25% 50%;
        transform: scaleX(0.7);
        opacity: 0.9;
    }
    50% { 
        background-position: 100% 50%;
        transform: scaleX(1);
        opacity: 1;
    }
    75% {
        background-position: 75% 50%;
        transform: scaleX(0.7);
        opacity: 0.9;
    }
    100% {
        background-position: 0% 50%;
        transform: scaleX(0.3);
        opacity: 0.8;
    }
}

.detection-result {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: flex-end;
}

.detection-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #667eea;
}

.detection-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.detection-status.human-like {
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
}

.detection-status.likely-ai {
    color: #d97706;
    background: rgba(217, 119, 6, 0.1);
}

.detection-status.ai-generated {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

/* Tooltip */
.detection-tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    font-size: 0.85rem;
    line-height: 1.4;
}

.detection-tooltip p {
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.detection-tooltip ul {
    margin: 0;
    padding-left: 1rem;
}

.detection-tooltip li {
    margin-bottom: 0.25rem;
}

.status-human { color: #059669; font-weight: 600; }
.status-likely { color: #d97706; font-weight: 600; }
.status-ai { color: #dc2626; font-weight: 600; }

.ai-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.score-circle-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: conic-gradient(from 0deg, #e0e0e0 0deg, #e0e0e0 360deg);
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 50%;
    z-index: 1;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.score-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-color);
}

.score-inner span:first-child {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    color: #333 !important;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    opacity: 0.8;
    margin-top: 3px;
    color: #555 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.issues-found {
    color: var(--text-dark);
    font-size: 0.85rem;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.issues-found i {
    color: #ff9800;
    margin-right: 0.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.pro-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 0.5rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(240, 147, 251, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes loading-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spin {
    animation: loading-spin 1s linear infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes ai-glow {
    0% { 
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        transform: translateY(0);
    }
    50% { 
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6), 0 0 20px rgba(147, 51, 234, 0.4);
        transform: translateY(-2px);
    }
    100% { 
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        transform: translateY(0);
    }
}

.btn-ai-undetectable {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 50%, #6366f1 100%);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    animation: ai-glow 2s ease-in-out infinite;
}

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

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

.btn-ai-undetectable:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.8), 0 0 25px rgba(147, 51, 234, 0.6);
}

.free-unlimited {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
}

.tool-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #9ca3af;
    color: #2c3e50 !important;
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
    color: #2c3e50 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.tab-btn.active {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    color: #2c3e50 !important;
    box-shadow: 0 0 0 2px #667eea;
    backdrop-filter: blur(10px);
}

.tab-btn i {
    font-size: 1rem;
}

/* Humanizer Section Styles */
.hero-humanizer {
    /* Styling now handled by tool-container */
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.humanizer-header h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.humanizer-header p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.usage-counter {
    background: rgba(102, 126, 234, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    color: #2c3e50;
    font-size: 0.9rem;
    display: inline-block;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.usage-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-top: 0.5rem;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #ff9800 70%, #f44336 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.humanizer-text-area {
    margin-bottom: 2rem;
}

.humanizer-text-area textarea {
    width: 100%;
    min-height: 150px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #333 !important;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.humanizer-text-area textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.humanizer-text-area textarea::placeholder {
    color: #999 !important;
    opacity: 1;
}

.humanizer-input-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.humanizer-input-stats .usage-info {
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
}

.humanizer-detection-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.humanizer-char-count {
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 500;
}

.humanizer-options {
    margin-bottom: 2rem;
}

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

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-group label {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
}

.option-group select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 0.8rem;
    color: #333;
    font-size: 0.9rem;
}

.humanizer-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.daily-usage-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #2c3e50;
    font-size: 0.9rem;
}

.daily-usage-info span {
    font-weight: 600;
    color: #667eea;
}

.daily-usage-info small {
    color: #7f8c8d;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.humanizer-actions .btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
}

.humanizer-actions .btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.humanizer-actions .btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.humanizer-actions .btn-gradient:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.premium-action {
    position: relative;
    overflow: hidden;
}

.premium-action::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;
}

.premium-action:hover::before {
    left: 100%;
}

/* Limit Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.limit-modal {
    background: white;
    border-radius: 20px;
    max-width: 550px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease forwards;
    margin: 20px;
}

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

.modal-header h3 {
    margin: 0;
    color: #f44336;
    font-size: 1.2rem;
}

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

.close-modal:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.one-time-offer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1rem 0;
    text-align: center;
}

.offer-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.offer-details {
    margin: 1rem 0;
}

.original-price {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 1rem;
}

.offer-price {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.savings {
    font-size: 0.9rem;
    opacity: 0.9;
}

.annual-offer {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: center;
}

.annual-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.annual-price .was {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #999;
    margin-left: 0.5rem;
}

.annual-savings {
    color: var(--success-color);
    font-weight: 500;
    margin-top: 0.5rem;
}

.modal-actions {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.btn-offer-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

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

.btn-offer-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-offer-annual {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.btn-offer-annual:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.5);
}

.btn-wait {
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: #666;
    cursor: pointer;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-wait:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    color: #333;
}

.offer-features {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
}

.offer-features p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
}

/* Additional Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 100px 0 40px; /* Increased top padding to push title down from navbar */
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem; /* Reduced bottom margin */
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .tool-container {
        padding: 1rem; /* Reduced padding for better mobile fit */
        margin: 1.5rem 0; /* Reduced margin */
    }
    
    .hero-text-container {
        margin-top: 1rem; /* Reduced margin */
    }
    
    .hero-text-container textarea {
        min-height: 120px; /* Reduced height for mobile */
        padding: 0.8rem; /* Reduced padding */
        font-size: 0.9rem; /* Smaller font size */
    }
    
    .hero-input-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem; /* Increased gap for better spacing */
    }
    
    .usage-info-box,
    .detection-info {
        width: 100%; /* Full width on mobile */
    }
    
    .ai-detection-inline {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .ai-progress-bar {
        height: 16px; /* Slightly smaller on mobile */
        margin: 0.5rem 0; /* Add some margin for spacing */
    }
    
    .detection-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .ai-detection-inline {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .detection-label-group {
        min-width: auto;
        justify-content: center;
    }
    
    .detection-result {
        min-width: auto;
        justify-content: center;
    }
    
    .hero-actions {
        margin-top: 1rem; /* Reduced margin */
        justify-content: center;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn {
        width: 100%; /* Full width buttons on mobile */
        padding: 0.8rem 1rem; /* Better padding */
        font-size: 0.9rem; /* Smaller font size */
    }
    
    /* Mobile navigation improvements */
    .navbar {
        padding: 0.8rem 0; /* Reduced padding */
    }
    
    .nav-logo span {
        font-size: 1.3rem; /* Smaller logo text */
    }
    
    .nav-links {
        gap: 0.5rem; /* Reduced gap */
    }
    
    .signin-btn {
        padding: 0.4rem 0.8rem; /* Smaller button */
        font-size: 0.85rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .tool-tabs {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .tab-btn {
        justify-content: center;
        padding: 1rem;
    }
    
    .option-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .humanizer-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .daily-usage-info {
        align-items: center;
        text-align: center;
    }
    
    .limit-modal {
        margin: 10px;
        max-width: none;
    }
}

/* Savings badge for pricing */
.savings {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(15deg);
}

.best-value {
    position: relative;
}

.best-value .popular-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.annual-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
}

.annual-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(240, 147, 251, 0.3);
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    display: block;
}

/* Tool Section */
.tool-section {
    padding: 60px 0;
    background: white;
    margin-top: -40px;
    border-radius: 40px 40px 0 0;
    position: relative;
    z-index: 10;
}

.tool-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.tab-nav {
    display: flex;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.05);
    color: var(--primary-color);
}

/* Duplicate .tab-btn.active rule removed - defined earlier in file */

.premium-badge {
    background: var(--primary-gradient);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.5rem;
}

.tab-content {
    display: none;
    padding: 2rem;
}

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

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

.tool-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.tool-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.usage-counter {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--text-light);
}

.usage-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: var(--accent-color);
    transition: all 0.3s ease;
    width: 0%;
}

/* Rewriter Options */
.rewriter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.option-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.option-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.slider-container {
    position: relative;
}

.slider-container input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Text Areas */
.text-area-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-section, .output-section {
    display: flex;
    flex-direction: column;
}

.input-section label, .output-section label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea[readonly] {
    background: var(--bg-light);
    cursor: default;
}

.input-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.unicode-count {
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: var(--warning-color);
    font-weight: 600;
}

.unicode-count.warning {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Controls */
.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

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

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

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

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

.btn-copy, .btn-download {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--accent-color);
    background: white;
    color: var(--accent-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-copy:hover, .btn-download:hover {
    background: var(--accent-color);
    color: white;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.pricing-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.popular-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transform: rotate(45deg);
    font-size: 0.8rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

/* Launch pricing styles */
.plan-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.original-price {
    font-size: 1.3rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.launch-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
}

.pricing-plan.featured .launch-price {
    color: white;
}

.launch-offer {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.price span {
    font-size: 1rem;
    color: var(--text-light);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-features .fa-check {
    color: var(--success-color);
}

.plan-features .fa-times {
    color: var(--text-light);
}

.plan-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius);
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

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

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-brand p {
    margin-top: 1rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

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

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

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

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

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    max-width: 400px;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    background: white;
    border-left: 4px solid var(--primary-color);
}

.notification-info .notification-content { border-left-color: var(--accent-color); }
.notification-success .notification-content { border-left-color: var(--success-color); }
.notification-warning .notification-content { border-left-color: var(--warning-color); }
.notification-error .notification-content { border-left-color: var(--error-color); }

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    margin-left: auto;
    padding: 0;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stats .stat {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-number, .stat-label {
        display: inline;
    }
    
    .nav-links {
        gap: 0.5rem; /* Reduced gap for mobile */
    }
    
    /* Hide specific nav links on mobile but keep auth container visible */
    .nav-links .nav-link {
        display: none;
    }
    
    /* Ensure auth containers can be visible on mobile (but respect JS state changes) */
    .nav-links .auth-container {
        display: flex;
    }
    
    .nav-links .user-menu {
        display: none; /* Default to hidden, JS will show when logged in */
    }
    
    /* When user is logged in, these will be overridden by JavaScript */
    
    .controls {
        flex-direction: column;
    }
    
    .output-actions {
        flex-direction: column;
    }
    
    .rewriter-options {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    /* Reorder pricing plans on mobile - show basic plan last */
    .pricing-plans {
        display: flex;
        flex-direction: column;
    }
    
    .pricing-plans .pricing-plan:first-child {
        order: 3; /* Free plan goes last on mobile */
    }
    
    .pricing-plans .pricing-plan:nth-child(2) {
        order: 1; /* Pro weekly first */
    }
    
    .pricing-plans .pricing-plan:nth-child(3) {
        order: 2; /* Pro annual second */
    }
    
    .footer {
        padding: 2rem 0 1rem; /* Reduced padding from 3rem to 2rem */
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem; /* Reduced gap */
        margin-bottom: 1rem; /* Reduced bottom margin */
    }
    
    .footer-links {
        justify-content: center;
        gap: 2rem; /* Reduced gap between columns */
    }
    
    .footer-column h4 {
        margin-bottom: 0.5rem; /* Reduced margin */
        font-size: 0.9rem; /* Smaller font size */
    }
    
    .footer-column a {
        margin-bottom: 0.3rem; /* Reduced spacing between links */
        font-size: 0.85rem; /* Smaller font size */
    }
    
    .footer-bottom {
        padding-top: 1rem; /* Reduced padding */
        font-size: 0.8rem; /* Smaller copyright text */
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .tool-container {
        margin: 0 -10px; /* Less negative margin for better mobile fit */
        border-radius: 12px; /* Keep some border radius */
        padding: 1rem; /* Consistent padding */
    }
    
    /* Container improvements */
    .container {
        padding: 0 1rem; /* Consistent container padding on mobile */
    }
    
    .tab-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .tool-header h2 {
        font-size: 1.5rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .premium-badge {
        display: none; /* Hide on very small screens */
    }
}

/* Authentication Styles */
.auth-container {
    display: flex;
    gap: 0.5rem;
}

.signin-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.signin-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.user-menu {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    background: rgba(102, 126, 234, 0.1);
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    min-width: 200px;
    z-index: 1001;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.subscription-status {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-weight: 600;
    border-radius: 8px;
    margin: 0 0.5rem;
}

/* Auth Modal Styles */
.auth-modal-overlay {
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

/* Force Google One Tap to appear above everything */
[data-iframe="GSI_iframe_selector"] {
    z-index: 2147483647 !important;
}

/* Google One Tap iframe container */
iframe[src*="accounts.google.com"] {
    z-index: 2147483647 !important;
}

/* Google One Tap popup container */
div[aria-hidden="false"][role="presentation"] {
    z-index: 2147483647 !important;
}

/* Ensure Google One Tap UI elements have maximum z-index */
[id*="credential_picker"] {
    z-index: 2147483647 !important;
}

.auth-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.auth-modal-content {
    position: relative;
    max-width: 440px;
    width: 95%;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.auth-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.auth-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    color: white;
}

.auth-logo .logo-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: sparkle 2s ease-in-out infinite;
}

.auth-logo-img {
    width: 64px;
    height: 64px;
    /* Remove filter to show the colorful gradient logo */
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.auth-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-header p {
    opacity: 0.9;
    font-size: 1rem;
    font-weight: 400;
}

.auth-modal-body {
    padding: 2rem;
}

.google-auth-section {
    margin-bottom: 1.5rem;
}

.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e8ed;
    background: white;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #333;
}

.google-signin-btn:hover {
    border-color: #4285F4;
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.2);
    transform: translateY(-1px);
}



.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e1e8ed 50%, transparent);
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e1e8ed;
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: var(--font-family);
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: #999;
    font-weight: 400;
}

.auth-submit-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.auth-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(225, 232, 237, 0.6);
}

.auth-footer p {
    color: #666;
    font-size: 0.95rem;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* Account Modal Styles */
.account-modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.account-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.account-section:last-child {
    border-bottom: none;
}

.account-section h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.profile-info {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.profile-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-details p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.subscription-plan {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1rem;
}

.subscription-details p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.subscription-actions {
    margin-top: 1rem;
}

.btn-danger {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #d32f2f;
    transform: translateY(-1px);
}

/* Responsive adjustments for auth */
@media (max-width: 768px) {
    .auth-container {
        gap: 0.5rem;
    }
    
    .signin-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .user-dropdown {
        right: -1rem;
        left: -1rem;
    }
    
    .auth-modal-content {
        max-width: 95%;
        margin: 1rem;
    }
    
    .auth-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .auth-header h2 {
        font-size: 1.6rem;
    }
    
    .auth-modal-body {
        padding: 1.5rem;
    }
    
    .auth-close-btn {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
    }
}

/* Pricing Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.pricing-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

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

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.8rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.pricing-plan {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pricing-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pricing-plan.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: scale(1.05);
}

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

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-badge.best-value {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.pricing-plan h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.5rem;
    color: #333;
}

.pricing-plan.featured h3 {
    color: white;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin: 1rem 0;
}

.pricing-plan.featured .plan-price {
    color: white;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.7;
}

.plan-savings {
    background: rgba(255, 255, 255, 0.2);
    color: #333;
    padding: 0.5rem;
    border-radius: 8px;
    font-weight: 600;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.plan-features {
    text-align: left;
    margin: 2rem 0;
}

.feature {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #555;
}

.pricing-plan.featured .feature {
    color: rgba(255, 255, 255, 0.9);
}

.plan-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.free-button {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.pro-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pro-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.annual-button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.annual-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.4);
}

/* Processing Modal Styles */
.processing-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.processing-content {
    background: white;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.processing-header {
    margin-bottom: 2.5rem;
}

.processing-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
    animation: sparkle 2s ease-in-out infinite;
}

.processing-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.processing-header p {
    color: #7f8c8d;
    font-size: 1rem;
}

.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill-animated {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill-animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

#progress-percentage {
    font-weight: 700;
    color: #667eea;
}

#progress-step {
    color: #7f8c8d;
    font-style: italic;
}

.processing-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #2c3e50;
}

.feature-item i {
    color: #4ade80;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .processing-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .processing-header h3 {
        font-size: 1.5rem;
    }
    
    .processing-header i {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .pricing-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .pricing-plans {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .pricing-plan.featured {
        transform: none;
    }
    
    .pricing-plan.featured:hover {
        transform: translateY(-5px);
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.98);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem;
    z-index: 10001;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease-out;
}

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

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
    min-width: 300px;
}

.cookie-text i {
    font-size: 1.2rem;
    color: #f39c12;
    flex-shrink: 0;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.cookie-actions .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cookie-actions .btn-primary {
    background: #667eea;
    color: white;
    border: 1px solid #5a6fd8;
}

.cookie-actions .btn-primary:hover {
    background: #5a6fd8;
    border-color: #4f63d2;
    transform: translateY(-1px);
}

.cookie-actions .btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-actions .btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Cookie Banner Mobile Styles */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 0.75rem 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-text {
        min-width: auto;
        justify-content: center;
        font-size: 0.9rem;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-actions .btn {
        flex: 1;
        max-width: 120px;
    }
}

/* Cookie Banner Animations */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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