:root {
--primary-color: #6366f1;
--primary-dark: #4f46e5;
--primary-light: #e0e7ff;
--secondary-color: #64748b;
--success-color: #10b981;
--warning-color: #f59e0b;
--error-color: #ef4444;
--background-color: #f8fafc;
--card-background: #ffffff;
--text-primary: #1e293b;
--text-secondary: #64748b;
--text-muted: #94a3b8;
--border-color: #e2e8f0;
--border-radius: 12px;
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: 1.6;
font-weight: 400;
color: var(--text-primary);
background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
font-weight: 600;
line-height: 1.2;
color: var(--text-primary);
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}

/* Loading Screen */
.loading-screen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--card-background);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 9999;
transition: opacity 0.3s ease;
}

.loading-spinner {
width: 40px;
height: 40px;
border: 4px solid var(--primary-light);
border-top: 4px solid var(--primary-color);
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: 1rem;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

/* Navigation */
.navbar {
background: var(--card-background);
border-bottom: 1px solid var(--border-color);
padding: 1rem 0;
position: sticky;
top: 0;
z-index: 1000;
}

.nav-container {
display: flex;
align-items: center;
justify-content: space-between;
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}

.nav-logo h2 {
color: var(--primary-color);
font-weight: 700;
}

.nav-menu {
display: flex;
gap: 2rem;
}

.nav-link {
text-decoration: none;
color: var(--text-secondary);
font-weight: 500;
transition: color 0.3s ease;
}

.nav-link:hover {
color: var(--primary-color);
}

.nav-auth {
display: flex;
align-items: center;
gap: 1rem;
}

.auth-buttons {
display: flex;
gap: 0.5rem;
}

/* User Menu */
.user-menu {
position: relative;
}

.user-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--primary-color);
color: white;
border: none;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s ease;
}

.user-avatar:hover {
background: var(--primary-dark);
}

.user-dropdown {
position: absolute;
top: 100%;
right: 0;
background: var(--card-background);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
box-shadow: var(--shadow-lg);
min-width: 200px;
z-index: 1000;
margin-top: 0.5rem;
}

.user-info {
padding: 1rem;
text-align: center;
}

.user-info span:first-child {
display: block;
font-weight: 600;
color: var(--text-primary);
}

.user-info span:last-child {
display: block;
font-size: 0.875rem;
color: var(--text-secondary);
}

.dropdown-link {
display: block;
padding: 0.75rem 1rem;
color: var(--text-secondary);
text-decoration: none;
border: none;
background: none;
width: 100%;
text-align: left;
cursor: pointer;
transition: background-color 0.3s ease;
}

.dropdown-link:hover {
background: var(--background-color);
color: var(--text-primary);
}

.dropdown-link.logout {
color: var(--error-color);
}

/* Utility Classes */
.hidden {
display: none !important;
}

.text-center {
text-align: center;
}

.gradient-text {
background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.875rem 1.5rem;
border: 2px solid transparent;
border-radius: var(--border-radius);
font-weight: 500;
text-decoration: none;
cursor: pointer;
transition: all 0.3s ease;
font-size: 0.875rem;
line-height: 1;
position: relative;
overflow: hidden;
}

.btn-primary {
background: var(--primary-color);
color: white;
border-color: var(--primary-color);
}

.btn-primary:hover {
background: var(--primary-dark);
border-color: var(--primary-dark);
transform: translateY(-1px);
box-shadow: var(--shadow-md);
}

.btn-primary:active {
transform: translateY(0);
}

.btn-outline {
background: transparent;
color: var(--primary-color);
border-color: var(--primary-color);
}

.btn-outline:hover {
background: var(--primary-color);
color: white;
}

.btn-small {
padding: 0.5rem 1rem;
font-size: 0.8rem;
}

.btn-large {
padding: 1rem 2rem;
font-size: 1rem;
}

.btn-full {
width: 100%;
}

.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}

.btn-loading .btn-text {
display: none;
}

.btn-loading .btn-loading {
display: flex !important;
}

/* Forms */
.form-group {
margin-bottom: 1.5rem;
}

.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}

.form-label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: var(--text-primary);
font-size: 0.875rem;
}

.form-input,
.form-textarea {
width: 100%;
padding: 0.875rem 1rem;
border: 2px solid var(--border-color);
border-radius: var(--border-radius);
font-size: 0.875rem;
transition: all 0.3s ease;
font-family: inherit;
background: var(--card-background);
}

.form-input:focus,
.form-textarea:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px var(--primary-light);
transform: translateY(-1px);
}

.form-textarea {
resize: vertical;
min-height: 100px;
}

.main-textarea {
min-height: 300px;
}

.char-count {
text-align: right;
font-size: 0.75rem;
color: var(--text-muted);
margin-top: 0.25rem;
}

/* Hero Section */
.hero-title {
font-size: clamp(2.5rem, 5vw, 4rem);
font-weight: 700;
background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.landing-section {
padding: 4rem 0;
background: linear-gradient(135deg, var(--background-color) 0%, #e0e7ff 100%);
}

.hero {
text-align: center;
max-width: 800px;
margin: 0 auto;
}

.hero-subtitle {
font-size: 1.25rem;
color: var(--text-secondary);
margin-bottom: 2.5rem;
line-height: 1.6;
}

.hero-cta {
display: flex;
gap: 1rem;
justify-content: center;
margin-bottom: 3rem;
}

.hero-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
max-width: 600px;
margin: 0 auto;
}

.stat {
text-align: center;
}

.stat-number {
display: block;
font-size: 2rem;
font-weight: 700;
color: var(--primary-color);
}

.stat-label {
display: block;
font-size: 0.875rem;
color: var(--text-secondary);
}

/* Dashboard */
.dashboard-section {
padding: 2rem 0;
}

.dashboard-header {
text-align: center;
margin-bottom: 3rem;
}

.dashboard-title {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 0.5rem;
}

.dashboard-subtitle {
color: var(--text-secondary);
font-size: 1.125rem;
}

/* Stats Grid */
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}

.stat-card {
background: var(--card-background);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
padding: 1.5rem;
display: flex;
align-items: center;
gap: 1rem;
transition: all 0.3s ease;
}

.stat-card:hover {
box-shadow: var(--shadow-md);
}

.stat-icon {
font-size: 2rem;
width: 60px;
height: 60px;
background: var(--primary-light);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}

.stat-content h3 {
font-size: 1.5rem;
font-weight: 700;
color: var(--text-primary);
margin-bottom: 0.25rem;
}

.stat-content p {
color: var(--text-secondary);
font-size: 0.875rem;
}

/* Usage Card */
.usage-card {
background: var(--card-background);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
padding: 1.5rem;
margin-bottom: 2rem;
}

.usage-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}

.usage-header h3 {
font-size: 1.125rem;
font-weight: 600;
}

.usage-text {
font-size: 0.875rem;
color: var(--text-secondary);
}

.progress-bar {
width: 100%;
height: 8px;
background: var(--border-color);
border-radius: 4px;
overflow: hidden;
margin-bottom: 0.5rem;
}

.progress-fill {
height: 100%;
background: var(--primary-color);
transition: width 0.3s ease;
}

.usage-message {
font-size: 0.875rem;
color: var(--text-secondary);
}

/* Humanizer Grid */
.humanizer-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
margin-top: 2rem;
}

.input-section,
.output-section {
background: var(--card-background);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
padding: 2rem;
box-shadow: var(--shadow-sm);
transition: all 0.3s ease;
}

.input-section:hover,
.output-section:hover {
box-shadow: var(--shadow-md);
transform: translateY(-2px);
}

.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
font-size: 1.25rem;
font-weight: 600;
}

/* Mode Selection */
.mode-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 0.75rem;
margin-bottom: 1.5rem;
}

.mode-card {
border: 2px solid var(--border-color);
border-radius: var(--border-radius);
padding: 1.5rem;
cursor: pointer;
transition: all 0.3s ease;
text-align: center;
background: var(--card-background);
}

.mode-card:hover {
border-color: var(--primary-color);
background: var(--primary-light);
transform: translateY(-1px);
box-shadow: var(--shadow-md);
}

.mode-card.active {
border-color: var(--primary-color);
background: var(--primary-light);
box-shadow: var(--shadow-md);
}

.mode-icon {
font-size: 1.5rem;
margin-bottom: 0.5rem;
}

.mode-info h4 {
font-size: 0.875rem;
font-weight: 600;
margin-bottom: 0.25rem;
}

.mode-info p {
font-size: 0.75rem;
color: var(--text-secondary);
line-height: 1.3;
}

/* Output */
.output-content {
min-height: 400px;
}

.output-placeholder {
text-align: center;
padding: 3rem 1rem;
color: var(--text-muted);
}

.placeholder-icon {
font-size: 3rem;
margin-bottom: 1rem;
opacity: 0.3;
}

.output-result {
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
padding: 1.5rem;
background: var(--background-color);
}

.result-text {
white-space: pre-wrap;
line-height: 1.6;
margin-bottom: 1rem;
max-height: 400px;
overflow-y: auto;
}

.result-meta {
display: flex;
gap: 1rem;
font-size: 0.875rem;
color: var(--text-secondary);
padding-top: 1rem;
border-top: 1px solid var(--border-color);
}

.result-meta-item {
padding: 0.25rem 0.5rem;
background: var(--card-background);
border-radius: 4px;
}

.output-actions {
display: flex;
gap: 0.5rem;
margin-top: 1rem;
}

/* Modals */
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 2000;
}

.modal-content {
background: var(--card-background);
border-radius: var(--border-radius);
box-shadow: var(--shadow-lg);
max-width: 500px;
width: 90%;
max-height: 90vh;
overflow-y: auto;
}

.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem;
border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
font-size: 1.5rem;
font-weight: 600;
}

.modal-close {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: var(--text-secondary);
padding: 0.25rem;
}

.modal-close:hover {
color: var(--text-primary);
}

.modal-body {
padding: 1.5rem;
}

.auth-switch {
text-align: center;
margin-top: 1rem;
font-size: 0.875rem;
color: var(--text-secondary);
}

.auth-switch a {
color: var(--primary-color);
text-decoration: none;
}

.auth-switch a:hover {
text-decoration: underline;
}

/* Toast Notifications */
.toast-container {
position: fixed;
top: 1rem;
right: 1rem;
z-index: 3000;
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.toast {
background: var(--card-background);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
padding: 1rem;
box-shadow: var(--shadow-lg);
max-width: 300px;
animation: slideIn 0.3s ease;
}

.toast.success {
border-color: var(--success-color);
background: #f0fdf4;
color: #166534;
}

.toast.error {
border-color: var(--error-color);
background: #fef2f2;
color: #991b1b;
}

.toast.warning {
border-color: var(--warning-color);
background: #fffbeb;
color: #92400e;
}

@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}

/* ===== ULTRA-SPACED PRICING SECTION ===== */
/* Compact Pricing Section - Single Row */
.pricing-section {
    padding: 4rem 0; /* Reduced from 8rem */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem; /* Reduced from 6rem */
    padding: 0 2rem;
}

.section-header h2 {
    font-size: 2.5rem; /* Reduced from 3.5rem */
    font-weight: 800;
    margin-bottom: 1rem; /* Reduced from 2rem */
    color: var(--text-primary);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem; /* Reduced from 1.5rem */
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Compact Horizontal Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 equal columns */
    gap: 2rem; /* Much smaller gap */
    max-width: 1200px; /* Smaller container */
    margin: 0 auto;
    padding: 0 2rem;
}

/* Smaller, Compact Cards */
.pricing-card {
    border: 2px solid var(--border-color);
    border-radius: 16px; /* Smaller radius */
    padding: 2rem 1.5rem; /* Much smaller padding */
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    background: var(--card-background);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 480px; /* Fixed smaller height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02); /* Smaller scale */
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

/* Compact Card Content */
.pricing-header {
    margin-bottom: 1.5rem; /* Reduced spacing */
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 1.5rem; /* Smaller title */
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.pricing-price {
    font-size: 2.5rem; /* Much smaller price */
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.pricing-period {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Compact Features List */
.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
    flex-grow: 1;
    padding: 0;
}

.pricing-features li {
    padding: 0.5rem 0; /* Much smaller padding */
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    line-height: 1.4;
    font-size: 0.875rem; /* Smaller text */
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li:before {
    content: "✓ ";
    color: var(--success-color);
    font-weight: bold;
    margin-right: 0.5rem;
}



.pricing-features li:hover {
padding-left: 2rem;
color: var(--text-primary);
}

.pricing-features li:last-child {
border-bottom: none;
}

.pricing-features li:before {
content: "✓ ";
color: var(--success-color);
font-weight: bold;
margin-right: 1rem;
font-size: 1.2rem;
}

.paypal-button-wrapper {
margin-top: 3rem;
padding-top: 3rem;
border-top: 2px solid var(--border-color);
}

/* Free Plan - Emerald Theme */
.pricing-card:nth-child(1) {
background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
border: 3px solid #10b981;
position: relative;
}

.pricing-card:nth-child(1)::before {
content: '';
position: absolute;
top: -3px;
left: -3px;
right: -3px;
bottom: -3px;
background: linear-gradient(45deg, #10b981, #059669);
border-radius: 35px;
z-index: -1;
opacity: 0;
transition: opacity 0.3s ease;
}

.pricing-card:nth-child(1):hover::before {
opacity: 1;
}

.pricing-card:nth-child(1) .pricing-price {
background: linear-gradient(45deg, #059669, #047857);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

/* Pro Plan - Gold Theme */
.pricing-card:nth-child(2) {
background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
border: 3px solid #f59e0b;
transform: scale(1.08);
z-index: 10;
}

.pricing-card:nth-child(2)::before {
content: '';
position: absolute;
top: -3px;
left: -3px;
right: -3px;
bottom: -3px;
background: linear-gradient(45deg, #f59e0b, #d97706);
border-radius: 35px;
z-index: -1;
opacity: 0;
transition: opacity 0.3s ease;
}

.pricing-card:nth-child(2):hover::before {
opacity: 1;
}

.pricing-card:nth-child(2) .pricing-price {
background: linear-gradient(45deg, #d97706, #b45309);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

/* Super Pro Plan - Purple Theme */
.pricing-card:nth-child(3) {
background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
border: 3px solid #8b5cf6;
}

.pricing-card:nth-child(3)::before {
content: '';
position: absolute;
top: -3px;
left: -3px;
right: -3px;
bottom: -3px;
background: linear-gradient(45deg, #8b5cf6, #7c3aed);
border-radius: 35px;
z-index: -1;
opacity: 0;
transition: opacity 0.3s ease;
}

.pricing-card:nth-child(3):hover::before {
opacity: 1;
}

.pricing-card:nth-child(3) .pricing-price {
background: linear-gradient(45deg, #7c3aed, #6d28d9);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
    padding: 0.5rem 1rem; /* Smaller padding */
    border-radius: 20px;
    font-size: 0.75rem; /* Smaller text */
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Floating Animation for Cards */
@keyframes cardFloat {
0%, 100% { 
transform: translateY(0) scale(1); 
}
50% { 
transform: translateY(-10px) scale(1.01); 
}
}

.pricing-card {
animation: cardFloat 6s ease-in-out infinite;
}

.pricing-card:nth-child(1) { animation-delay: 0s; }
.pricing-card:nth-child(2) { animation-delay: 2s; }
.pricing-card:nth-child(3) { animation-delay: 4s; }

.pricing-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
                  radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
pointer-events: none;
z-index: -1;
}

.pricing-card:hover .pricing-features li {
color: var(--text-primary);
transform: translateX(5px);
}

.pricing-card:hover .pricing-badge {
transform: translateX(-50%) scale(1.1);
box-shadow: 0 12px 32px rgba(239, 68, 68, 0.6);
}

/* Student Badge */
.student-badge {
background: var(--success-color);
color: white;
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 600;
margin-left: 0.5rem;
}

/* Payment Modal */
.payment-modal .modal-content {
max-width: 600px;
}

.payment-plan-summary {
background: var(--background-color);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
padding: 1.5rem;
margin-bottom: 2rem;
}

.payment-plan-name {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 0.5rem;
}

.payment-plan-price {
font-size: 2rem;
font-weight: 700;
color: var(--primary-color);
margin-bottom: 1rem;
}

.payment-plan-features {
list-style: none;
}

.payment-plan-features li {
padding: 0.25rem 0;
color: var(--text-secondary);
}

.payment-plan-features li:before {
content: "✓ ";
color: var(--success-color);
font-weight: bold;
margin-right: 0.5rem;
}

.payment-form {
margin-bottom: 2rem;
}

.payment-form h3 {
margin-bottom: 1rem;
font-size: 1.125rem;
font-weight: 600;
}

#card-container {
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
padding: 1rem;
background: var(--card-background);
}

.payment-actions {
display: flex;
gap: 1rem;
justify-content: flex-end;
}

/* Contact Section Styles */
.contact-section {
padding: 4rem 0;
background: var(--background-color);
}

.contact-content {
max-width: 1200px;
margin: 0 auto;
}

.contact-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-bottom: 4rem;
}

.contact-info-card {
background: var(--card-background);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
padding: 2rem;
text-align: center;
transition: all 0.3s ease;
}

.contact-info-card:hover {
box-shadow: var(--shadow-lg);
transform: translateY(-2px);
}

.contact-icon {
font-size: 3rem;
margin-bottom: 1.5rem;
display: block;
}

.contact-info-card h3 {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 1rem;
color: var(--text-primary);
}

.contact-info-card p {
color: var(--text-secondary);
margin-bottom: 1.5rem;
line-height: 1.6;
}

.contact-email {
display: block;
margin-top: 1rem;
font-size: 0.875rem;
color: var(--text-muted);
font-family: monospace;
}

.contact-form-section {
margin-bottom: 4rem;
}

.contact-form-card {
background: var(--card-background);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
padding: 3rem;
max-width: 800px;
margin: 0 auto;
box-shadow: var(--shadow-sm);
}

.contact-form-card h3 {
text-align: center;
font-size: 2rem;
font-weight: 600;
margin-bottom: 2rem;
color: var(--text-primary);
}

.contact-form {
display: flex;
flex-direction: column;
gap: 1.5rem;
}

.contact-textarea {
min-height: 120px;
resize: vertical;
}

.contact-help {
background: var(--card-background);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
padding: 2rem;
text-align: center;
}

.contact-help h3 {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 2rem;
color: var(--text-primary);
}

.help-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2rem;
}

.help-item {
text-align: center;
}

.help-item strong {
display: block;
font-size: 1.125rem;
margin-bottom: 0.5rem;
color: var(--text-primary);
}

.help-item p {
color: var(--text-secondary);
font-size: 0.875rem;
line-height: 1.5;
}

.form-input,
.form-textarea,
select.form-input {
width: 100%;
padding: 0.875rem 1rem;
border: 2px solid var(--border-color);
border-radius: var(--border-radius);
font-size: 0.875rem;
transition: all 0.3s ease;
font-family: inherit;
background: var(--card-background);
}

select.form-input {
cursor: pointer;
}

.form-input:focus,
.form-textarea:focus,
select.form-input:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px var(--primary-light);
transform: translateY(-1px);
}

/* PayPal Button Containers */
#paypal-button-container-P-41C50533XG506830FNBWBWKA,
#paypal-button-container-P-81F1708825696922TNBWBYGI,
#paypal-button-container-P-4TD44726NE752504SNBWBY4Y {
width: 100%;
max-width: 300px;
min-height: 50px;
}

.paypal-button-wrapper {
margin-top: 2rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 70px;
}

.pricing-card.popular {
border-color: #fbbf24;
transform: scale(1.05);
box-shadow: 0 8px 25px rgba(251, 191, 36, 0.2);
position: relative;
}

.pricing-card.popular::before {
content: '';
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
background: linear-gradient(45deg, #fbbf24, #f59e0b);
border-radius: 14px;
z-index: -1;
}

.pricing-card.premium {
border-color: #1f2937;
background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
position: relative;
}

.pricing-card.premium::before {
content: '';
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
background: linear-gradient(45deg, #1f2937, #374151);
border-radius: 14px;
z-index: -1;
}

.pricing-card.premium:hover {
border-color: #000;
box-shadow: 0 8px 25px rgba(31, 41, 55, 0.3);
transform: translateY(-4px);
}

#card-container,
.square-input,
.square-button {
display: none !important;
}

.pricing-card {
display: flex;
flex-direction: column;
height: 100%;
transition: all 0.3s ease;
}

.pricing-card:hover {
transform: translateY(-4px);
}

.pricing-card.popular:hover {
transform: scale(1.05) translateY(-4px);
}

.pricing-features {
flex-grow: 1;
margin-bottom: 1rem;
}

.paypal-button-wrapper {
margin-top: auto;
}

/* Grammar Results Styling */
.grammar-result,
.enhance-result,
.proofread-result {
padding: 1.5rem;
background: var(--background-color);
border-radius: var(--border-radius);
border: 1px solid var(--border-color);
}

.grammar-result h4,
.enhance-result h4,
.proofread-result h4 {
margin-bottom: 1.5rem;
color: var(--primary-color);
border-bottom: 2px solid var(--primary-color);
padding-bottom: 0.5rem;
font-size: 1.25rem;
}

.stats-summary {
display: flex;
justify-content: space-around;
margin: 1.5rem 0;
padding: 1rem;
background: var(--card-background);
border-radius: var(--border-radius);
border: 1px solid var(--border-color);
}

.stat-item {
text-align: center;
flex: 1;
}

.stat-number {
display: block;
font-size: 1.5rem;
font-weight: 700;
color: var(--primary-color);
margin-bottom: 0.25rem;
}

.stat-label {
display: block;
font-size: 0.8rem;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}

.comprehensive-stats .stat-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 1rem;
margin: 1.5rem 0;
}

.text-display {
background: var(--card-background);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
padding: 1.5rem;
line-height: 1.6;
font-family: 'Georgia', serif;
margin: 1rem 0;
max-height: 300px;
overflow-y: auto;
}

.corrected-text h5,
.enhanced-text h5,
.proofread-text h5 {
margin-bottom: 1rem;
color: var(--text-primary);
font-size: 1rem;
font-weight: 600;
}

.corrections-list {
margin-top: 2rem;
}

.corrections-list h5 {
margin-bottom: 1rem;
color: var(--text-primary);
font-weight: 600;
}

.corrections-list ul {
list-style: none;
padding: 0;
}

.correction-item {
padding: 1rem;
margin-bottom: 0.75rem;
background: var(--card-background);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
border-left: 4px solid var(--warning-color);
}

.correction-item .error {
color: var(--error-color);
background: #fef2f2;
padding: 0.2rem 0.4rem;
border-radius: 4px;
}

.correction-item .correction {
color: var(--success-color);
background: #f0fdf4;
padding: 0.2rem 0.4rem;
border-radius: 4px;
}

.correction-item .arrow {
margin: 0 0.5rem;
color: var(--text-muted);
font-weight: bold;
}

.error-type {
font-size: 0.8rem;
color: var(--text-secondary);
margin-top: 0.5rem;
font-style: italic;
}

.no-issues {
text-align: center;
padding: 2rem;
color: var(--success-color);
font-weight: 500;
background: #f0fdf4;
border-radius: var(--border-radius);
border: 1px solid #bbf7d0;
}

.improvement-breakdown {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
margin-top: 2rem;
}

.improvement-section {
background: var(--card-background);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
padding: 1rem;
}

.improvement-section h6 {
margin-bottom: 0.75rem;
color: var(--text-primary);
font-weight: 600;
font-size: 0.9rem;
border-bottom: 1px solid var(--border-color);
padding-bottom: 0.5rem;
}

.improvement-item {
padding: 0.5rem 0;
font-size: 0.85rem;
color: var(--text-secondary);
border-bottom: 1px solid #f1f5f9;
}

.improvement-item:last-child {
border-bottom: none;
}

.issue-categories {
margin-top: 2rem;
}

.category-section {
margin-bottom: 1.5rem;
background: var(--card-background);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
padding: 1rem;
}

.category-section h6 {
margin-bottom: 0.75rem;
color: var(--primary-color);
font-weight: 600;
border-bottom: 1px solid var(--border-color);
padding-bottom: 0.5rem;
}

.category-issues {
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.issue-item {
padding: 0.5rem;
background: #f8fafc;
border-radius: 4px;
font-size: 0.85rem;
color: var(--text-secondary);
}

.issue-text {
font-style: italic;
}

.more-issues {
padding: 0.5rem;
text-align: center;
color: var(--text-muted);
font-size: 0.8rem;
font-style: italic;
}

.grammar-settings {
background: var(--card-background);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
padding: 1rem;
margin-bottom: 1rem;
}

.grammar-settings .form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}

.mode-category h4 {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 1rem;
color: var(--text-primary);
font-size: 1rem;
border-bottom: 1px solid var(--border-color);
padding-bottom: 0.5rem;
}

.mode-card.premium-feature {
border-color: #f59e0b;
background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
position: relative;
}

.mode-card.premium-feature:hover {
border-color: #d97706;
background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.plan-badge {
position: absolute;
top: -6px;
right: -6px;
background: #f59e0b;
color: white;
font-size: 0.6rem;
padding: 0.15rem 0.3rem;
border-radius: 3px;
font-weight: 600;
line-height: 1;
}

.container-wide {
max-width: 1600px;
margin: 0 auto;
padding: 0 2rem;
}

.ai-animated-header {
text-align: center;
margin-bottom: 4rem;
position: relative;
overflow: hidden;
}

.animated-title {
font-size: clamp(2rem, 4vw, 3.5rem);
background: linear-gradient(45deg, #6366f1, #8b5cf6, #ec4899, #6366f1);
background-size: 300% 300%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
animation: gradientShift 3s ease-in-out infinite;
}

.user-name-glow {
color: #6366f1;
text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
animation: nameGlow 2s ease-in-out infinite alternate;
}

.floating-subtitle {
animation: floatUp 3s ease-in-out infinite;
color: var(--text-secondary);
margin-top: 1rem;
}

.ai-brain-container {
position: absolute;
top: -50px;
right: 20px;
opacity: 0.1;
}

.ai-brain {
width: 100px;
height: 100px;
position: relative;
animation: brainPulse 4s ease-in-out infinite;
}

.brain-node {
width: 8px;
height: 8px;
background: #6366f1;
border-radius: 50%;
position: absolute;
animation: nodeFlicker 2s ease-in-out infinite;
}

.brain-node:nth-child(1) { top: 20px; left: 30px; animation-delay: 0s; }
.brain-node:nth-child(2) { top: 50px; left: 60px; animation-delay: 0.5s; }
.brain-node:nth-child(3) { top: 70px; left: 20px; animation-delay: 1s; }

.brain-connection {
width: 2px;
height: 30px;
background: linear-gradient(45deg, #6366f1, transparent);
position: absolute;
animation: connectionFlow 3s linear infinite;
}

.stats-grid-wide {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 3rem;
margin-bottom: 4rem;
max-width: 1400px;
margin-left: auto;
margin-right: auto;
}

.floating-card {
animation: cardFloat 6s ease-in-out infinite;
position: relative;
overflow: hidden;
}

.floating-card:nth-child(1) { animation-delay: 0s; }
.floating-card:nth-child(2) { animation-delay: 1s; }
.floating-card:nth-child(3) { animation-delay: 2s; }

.stat-card {
background: var(--card-background);
border: 1px solid var(--border-color);
border-radius: 20px;
padding: 2.5rem;
text-align: center;
position: relative;
backdrop-filter: blur(10px);
transition: all 0.3s ease;
}

.stat-card:hover {
transform: translateY(-10px) scale(1.02);
box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.card-glow {
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
background: linear-gradient(45deg, #6366f1, #8b5cf6, #ec4899, #6366f1);
border-radius: 22px;
z-index: -1;
opacity: 0;
transition: opacity 0.3s ease;
animation: borderGlow 3s linear infinite;
}

.stat-card:hover .card-glow {
opacity: 1;
}

.ai-pulse {
animation: aiPulse 2s ease-in-out infinite;
font-size: 3rem;
margin-bottom: 1rem;
}

.counter-animation {
font-size: 2.5rem;
font-weight: 700;
color: var(--primary-color);
text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.humanizer-grid-wide {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem;
margin-top: 3rem;
}

.input-section-wide,
.output-section-wide {
background: var(--card-background);
border: 1px solid var(--border-color);
border-radius: 20px;
padding: 3rem;
position: relative;
backdrop-filter: blur(10px);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ai-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
border-radius: 20px;
z-index: -1;
}

.mode-grid-super-wide {
display: flex;
flex-direction: column;
gap: 3rem;
margin: 2rem 0;
}

.mode-category-wide {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 20px;
padding: 2.5rem;
backdrop-filter: blur(10px);
}

.category-title {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 2rem;
text-align: center;
background: linear-gradient(45deg, #6366f1, #8b5cf6);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.mode-cards-horizontal {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
}

.mode-card-large {
border: 2px solid var(--border-color);
border-radius: 20px;
padding: 2.5rem;
cursor: pointer;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
text-align: center;
background: var(--card-background);
position: relative;
overflow: hidden;
min-height: 200px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.mode-card-large:hover {
transform: translateY(-15px) scale(1.05);
border-color: var(--primary-color);
box-shadow: 0 25px 50px rgba(99, 102, 241, 0.3);
}

.mode-card-large.active {
border-color: var(--primary-color);
background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
box-shadow: 0 15px 30px rgba(99, 102, 241, 0.2);
}

.mode-icon-large {
font-size: 4rem;
margin-bottom: 1.5rem;
animation: iconBounce 3s ease-in-out infinite;
}

.mode-info-large h4 {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 1rem;
color: var(--text-primary);
}

.mode-info-large p {
font-size: 1.1rem;
color: var(--text-secondary);
line-height: 1.5;
}

.plan-badge-large {
position: absolute;
top: 15px;
right: 15px;
background: linear-gradient(45deg, #f59e0b, #d97706);
color: white;
font-size: 0.8rem;
padding: 0.5rem 1rem;
border-radius: 15px;
font-weight: 700;
box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.ai-particles {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
opacity: 0;
transition: opacity 0.3s ease;
}

.mode-card-large:hover .ai-particles {
opacity: 1;
}

.ai-particles::before,
.ai-particles::after {
content: '';
position: absolute;
width: 4px;
height: 4px;
background: var(--primary-color);
border-radius: 50%;
animation: particleFloat 4s linear infinite;
}

.ai-particles::before {
top: 20%;
left: 20%;
animation-delay: 0s;
}

.ai-particles::after {
top: 60%;
right: 20%;
animation-delay: 2s;
}

.mode-card-large.premium-feature {
border-color: #f59e0b;
background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
}

.mode-card-large.premium-feature:hover {
border-color: #d97706;
box-shadow: 0 25px 50px rgba(245, 158, 11, 0.3);
}

.ai-particles.premium::before,
.ai-particles.premium::after {
background: #f59e0b;
}

.form-textarea-wide {
width: 100%;
min-height: 250px;
padding: 1.5rem;
border: 2px solid var(--border-color);
border-radius: 15px;
font-size: 1rem;
font-family: inherit;
background: var(--card-background);
transition: all 0.3s ease;
resize: vertical;
}

.form-textarea-wide:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.glow-label {
font-weight: 600;
color: var(--text-primary);
margin-bottom: 1rem;
font-size: 1.1rem;
text-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.btn-primary-wide {
width: 100%;
padding: 1.5rem 2rem;
border: none;
border-radius: 15px;
background: linear-gradient(45deg, #6366f1, #8b5cf6);
color: white;
font-size: 1.2rem;
font-weight: 700;
cursor: pointer;
position: relative;
overflow: hidden;
transition: all 0.3s ease;
margin-top: 2rem;
}

.btn-primary-wide:hover {
transform: translateY(-3px);
box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.button-particles {
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 ease;
}

.btn-primary-wide:hover .button-particles {
left: 100%;
}

.ai-spinner {
width: 30px;
height: 30px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-top: 3px solid white;
border-radius: 50%;
animation: aiSpin 1s linear infinite;
}

.output-content-wide {
min-height: 400px;
position: relative;
}

.output-placeholder-large {
text-align: center;
padding: 4rem 2rem;
position: relative;
}

.ai-hologram {
position: relative;
display: inline-block;
margin-bottom: 2rem;
}

.hologram-ring {
position: absolute;
border: 2px solid var(--primary-color);
border-radius: 50%;
opacity: 0.6;
animation: hologramExpand 3s ease-in-out infinite;
}

.hologram-ring:nth-child(1) {
width: 60px;
height: 60px;
top: -30px;
left: -30px;
animation-delay: 0s;
}

.hologram-ring:nth-child(2) {
width: 80px;
height: 80px;
top: -40px;
left: -40px;
animation-delay: 1s;
}

.hologram-ring:nth-child(3) {
width: 100px;
height: 100px;
top: -50px;
left: -50px;
animation-delay: 2s;
}

.placeholder-icon-large {
font-size: 4rem;
position: relative;
z-index: 10;
animation: iconGlow 2s ease-in-out infinite alternate;
}

.placeholder-text-glow {
font-size: 1.2rem;
color: var(--text-secondary);
text-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

/* ANIMATIONS */
@keyframes gradientShift {
0%, 100% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
}

@keyframes nameGlow {
0% { text-shadow: 0 0 20px rgba(99, 102, 241, 0.5); }
100% { text-shadow: 0 0 30px rgba(99, 102, 241, 0.8), 0 0 40px rgba(99, 102, 241, 0.6); }
}

@keyframes floatUp {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}

@keyframes brainPulse {
0%, 100% { transform: scale(1); opacity: 0.1; }
50% { transform: scale(1.1); opacity: 0.2; }
}

@keyframes nodeFlicker {
0%, 100% { opacity: 0.6; }
50% { opacity: 1; }
}

@keyframes connectionFlow {
0% { transform: translateY(-100%); opacity: 0; }
50% { opacity: 1; }
100% { transform: translateY(100%); opacity: 0; }
}

@keyframes borderGlow {
0%, 100% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
}

@keyframes aiPulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}

@keyframes iconBounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}

@keyframes particleFloat {
0% { transform: translateY(100px); opacity: 0; }
50% { opacity: 1; }
100% { transform: translateY(-100px); opacity: 0; }
}

@keyframes aiSpin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

@keyframes hologramExpand {
0% { transform: scale(0.8); opacity: 0.8; }
50% { transform: scale(1.2); opacity: 0.4; }
100% { transform: scale(1.5); opacity: 0; }
}

@keyframes iconGlow {
0% { text-shadow: 0 0 20px rgba(99, 102, 241, 0.5); }
100% { text-shadow: 0 0 30px rgba(99, 102, 241, 0.8), 0 0 40px rgba(139, 92, 246, 0.6); }
}

.btn.auth-required {
background: linear-gradient(45deg, #6366f1, #8b5cf6);
position: relative;
overflow: hidden;
}

.btn.auth-required::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
animation: shimmer 2s infinite;
}

@keyframes shimmer {
0% { left: -100%; }
100% { left: 100%; }
}

.btn:disabled {
pointer-events: none;
opacity: 0.7;
}

.btn-loading {
display: none;
}

.btn-loading.hidden {
display: none !important;
}

.warning-message {
background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
border: 2px solid #f59e0b;
color: #92400e;
padding: 1.5rem 2rem;
border-radius: 15px;
margin-top: 1.5rem;
display: flex;
align-items: center;
gap: 1rem;
font-size: 1.1rem;
font-weight: 600;
box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
animation: warningPulse 2s ease-in-out infinite;
}

.warning-message::before {
content: "⚠️";
font-size: 2rem;
animation: warningShake 1s ease-in-out infinite;
}

@keyframes warningPulse {
0%, 100% {
transform: scale(1);
box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}
50% {
transform: scale(1.02);
box-shadow: 0 12px 35px rgba(245, 158, 11, 0.5);
}
}

@keyframes warningShake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-3px); }
75% { transform: translateX(3px); }
}

.error-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
backdrop-filter: blur(5px);
}

.error-modal {
background: white;
border-radius: 20px;
padding: 3rem;
max-width: 500px;
text-align: center;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
animation: errorModalSlide 0.3s ease-out;
}

.error-modal h3 {
color: #dc2626;
font-size: 1.8rem;
margin-bottom: 1rem;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}

.error-modal p {
font-size: 1.2rem;
color: #374151;
margin-bottom: 2rem;
line-height: 1.6;
}

.error-modal .btn {
font-size: 1.1rem;
padding: 1rem 2rem;
}

@keyframes errorModalSlide {
from {
opacity: 0;
transform: translateY(-50px) scale(0.9);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}

.warning-message,
.error-notification,
.toast.error {
padding: 2rem 2.5rem;
font-size: 1.2rem;
line-height: 1.6;
background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
border: 3px solid #ef4444;
border-left: 8px solid #dc2626;
margin: 2rem 0;
border-radius: 15px;
box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
animation: errorPulse 2s ease-in-out infinite;
font-weight: 600;
color: #991b1b;
}

.warning-message::before {
content: "⚠️ ";
font-size: 1.5rem;
margin-right: 0.5rem;
animation: iconShake 1s ease-in-out infinite;
}

@keyframes errorPulse {
0%, 100% {
transform: scale(1);
box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2);
}
50% {
transform: scale(1.02);
box-shadow: 0 12px 35px rgba(239, 68, 68, 0.3);
}
}

@keyframes iconShake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-2px); }
75% { transform: translateX(2px); }
}

.toast {
min-width: 400px;
padding: 1.5rem 2rem;
font-size: 1.1rem;
border-radius: 12px;
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
backdrop-filter: blur(10px);
}

.toast.success {
border-color: var(--success-color);
background: #f0fdf4;
color: #166534;
}

.toast.error {
background: linear-gradient(135deg, #fee2e2, #fecaca);
border: 2px solid #f87171;
color: #991b1b;
font-weight: 600;
}

.toast.warning {
background: linear-gradient(135deg, #fef3c7, #fed7aa);
border: 2px solid #f59e0b;
color: #92400e;
font-weight: 600;
}

#limit-warning {
padding: 2.5rem 3rem;
font-size: 1.3rem;
background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 50%, #fecaca 100%);
border: 4px solid #ef4444;
border-radius: 20px;
box-shadow:
0 10px 30px rgba(239, 68, 68, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.5);
margin: 2.5rem 0;
text-align: center;
animation: urgentPulse 1.5s ease-in-out infinite;
}

@keyframes urgentPulse {
0%, 100% {
transform: scale(1);
border-color: #ef4444;
}
50% {
transform: scale(1.03);
border-color: #dc2626;
box-shadow: 0 15px 40px rgba(239, 68, 68, 0.4);
}
}

.form-input.error,
.form-textarea.error {
border: 3px solid #ef4444;
background: linear-gradient(135deg, #fef2f2, #fee2e2);
box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
animation: inputShake 0.5s ease-in-out;
}

@keyframes inputShake {
0%, 100% { transform: translateX(0); }
20% { transform: translateX(-5px); }
40% { transform: translateX(5px); }
60% { transform: translateX(-3px); }
80% { transform: translateX(3px); }
}

.error-text {
color: #dc2626;
font-size: 1rem;
font-weight: 600;
margin-top: 0.75rem;
padding: 0.5rem;
background: rgba(239, 68, 68, 0.1);
border-radius: 8px;
border-left: 4px solid #ef4444;
}

.modal .error-message {
padding: 1.5rem 2rem;
margin: 1rem 0;
font-size: 1.1rem;
background: linear-gradient(135deg, #fef2f2, #fee2e2);
border: 2px solid #f87171;
border-radius: 12px;
color: #991b1b;
font-weight: 600;
text-align: center;
}

.error-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
}

.error-overlay .error-content {
background: white;
padding: 3rem;
border-radius: 20px;
max-width: 500px;
text-align: center;
border: 4px solid #ef4444;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.error-overlay .error-title {
font-size: 2rem;
color: #dc2626;
margin-bottom: 1rem;
font-weight: 700;
}

.error-overlay .error-message {
font-size: 1.2rem;
color: #991b1b;
margin-bottom: 2rem;
line-height: 1.6;
}

.btn-loading {
display: none;
align-items: center;
gap: 0.5rem;
}

.btn-loading.hidden {
display: none !important;
}

.btn-loading:not(.hidden) {
display: flex !important;
}

.spinner {
width: 16px;
height: 16px;
border: 2px solid transparent;
border-top: 2px solid currentColor;
border-radius: 50%;
animation: spin 1s linear infinite;
}

.btn:disabled {
opacity: 0.6;
cursor: not-allowed;
pointer-events: none;
}

/* Responsive Design for Ultra-Spaced Layout */
@media (max-width: 1400px) {
.pricing-grid {
gap: 4rem;
flex-direction: column;
align-items: center;
}

.pricing-card:nth-child(2) {
transform: none;
order: -1;
}

.container-wide {
max-width: 1200px;
}

.mode-cards-horizontal {
grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 1024px) {
.humanizer-grid-wide {
grid-template-columns: 1fr;
gap: 2rem;
}

.stats-grid-wide {
grid-template-columns: 1fr;
max-width: 600px;
}

.mode-cards-horizontal {
grid-template-columns: 1fr;
}
}

@media (max-width: 768px) {
.pricing-section {
padding: 6rem 0;
}

.section-header {
margin-bottom: 4rem;
}

.section-header h2 {
font-size: 2.5rem;
}

.pricing-grid {
gap: 3rem;
padding: 0 1rem;
}

.pricing-card {
width: 100%;
max-width: 380px;
padding: 3rem 2rem;
min-height: 600px;
}

.pricing-card:hover {
transform: translateY(-10px) scale(1.02);
}

.hero-title {
font-size: 2.5rem;
}

.hero-cta {
flex-direction: column;
align-items: center;
}

.hero-stats {
grid-template-columns: 1fr;
gap: 1rem;
}

.humanizer-grid {
grid-template-columns: 1fr;
}

.mode-grid {
grid-template-columns: repeat(2, 1fr);
}

.stats-grid {
grid-template-columns: 1fr;
}

.form-row {
grid-template-columns: 1fr;
}

.nav-menu {
display: none;
}

.pricing-card.popular {
transform: none;
}

.payment-actions {
flex-direction: column;
}

.contact-grid {
grid-template-columns: 1fr;
}

.contact-form-card {
padding: 2rem;
}

.help-grid {
grid-template-columns: 1fr;
}

.contact-info-card {
padding: 1.5rem;
}

.stats-summary {
flex-direction: column;
gap: 1rem;
}

.improvement-breakdown {
grid-template-columns: 1fr;
}

.comprehensive-stats .stat-grid {
grid-template-columns: repeat(2, 1fr);
}

.grammar-settings .form-row {
grid-template-columns: 1fr;
}

.container-wide {
padding: 0 1rem;
}

.mode-card-large {
min-height: 150px;
padding: 2rem;
}

.mode-icon-large {
font-size: 3rem;
}

.warning-message,
#limit-warning {
padding: 1.5rem 2rem;
font-size: 1.1rem;
margin: 1.5rem 0;
}

.toast {
min-width: 320px;
padding: 1.2rem 1.5rem;
font-size: 1rem;
}

.error-overlay .error-content {
padding: 2rem;
margin: 1rem;
}
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 1.5rem 1rem;
        min-height: 350px;
    }
    
    .pricing-price {
        font-size: 1.8rem;
    }
    
    .pricing-features li {
        font-size: 0.8rem;
        padding: 0.4rem 0;
    }
}



.pricing-features li {
padding: 1rem 0;
font-size: 1rem;
}

.container {
padding: 0 0.5rem;
}

.mode-grid {
grid-template-columns: 1fr;
}

.contact-form-card {
padding: 1.5rem;
}

.contact-help {
padding: 1.5rem;
}

.comprehensive-stats .stat-grid {
grid-template-columns: 1fr;
}

.warning-message,
#limit-warning {
padding: 1.2rem 1.5rem;
font-size: 1rem;
}

.toast {
min-width: 280px;
padding: 1rem 1.2rem;
font-size: 0.95rem;
}


@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}

.fade-in {
animation: fadeIn 0.6s ease-out;
}

.slide-in {
animation: slideIn 0.4s ease-out;
}
