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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #1e3a20;
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 25%, #b8e6b8 50%, #87ceeb 75%, #b0e0e6 100%);
    background-size: 300% 300%;
    animation: gradientShift 20s ease infinite;
    min-height: 100vh;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    letter-spacing: -0.01em;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(168, 230, 207, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(184, 230, 184, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(135, 206, 235, 0.4) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Import Inter font for better typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');



/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .email-address-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .custom-email-form {
    flex-direction: row-reverse;
}

[dir="rtl"] .modal-close {
    left: 20px;
    right: auto;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    padding: 12px 0;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand i {
    font-size: 1.5rem;
    color: #4a8c47;
    filter: drop-shadow(0 0 8px rgba(74, 140, 71, 0.3));
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.navbar-brand:hover i {
    filter: drop-shadow(0 0 12px rgba(74, 140, 71, 0.5));
    transform: scale(1.1);
}

.navbar-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
}

.stat-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-item i {
    font-size: 1.1rem;
    color: #4a8c47;
    filter: drop-shadow(0 0 4px rgba(74, 140, 71, 0.3));
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d5a27;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 1rem;
    font-weight: 800;
    color: #1e4a1b;
    background: linear-gradient(135deg, #a8e6cf 0%, #88d8a3 100%);
    padding: 4px 8px;
    border-radius: 8px;
    min-width: 24px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #2d5a27;
    padding: 10px 16px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dropdown-toggle i:first-child {
    color: #4a8c47;
    filter: drop-shadow(0 0 4px rgba(74, 140, 71, 0.3));
}

.dropdown-toggle i:last-child {
    color: #2d5a27;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-toggle.active i:last-child {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.4); /* Increased from 0.2 to 0.4 for darker background */
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #2d5a27;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dropdown-item:first-child {
    border-radius: 16px 16px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 16px 16px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.5); /* Increased from 0.3 to 0.5 for better contrast */
    color: #1e4a1b;
}

.dropdown-item .flag-emoji {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.dropdown-item.active {
    background: rgba(74, 140, 71, 0.3); /* Increased from 0.2 to 0.3 for better visibility */
    color: #2d5a27;
    font-weight: 700;
    position: relative;
}

.dropdown-item.active::after {
    content: '✓';
    position: absolute;
    right: 12px;
    color: #4a8c47;
    font-weight: bold;
}

/* Language transition animations */
[data-translate] {
    transition: opacity 0.2s ease-in-out;
}

.language-switching [data-translate] {
    opacity: 0.7;
}

/* Flag emoji styling */
.flag-emoji {
    display: inline-block;
    transition: transform 0.2s ease;
}

.dropdown-item:hover .flag-emoji {
    transform: scale(1.1);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    padding-top: 100px;
}

@media (min-width: 768px) {
    .container {
        padding: 24px;
        padding-top: 120px;
    }
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 40px 0 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

/* Header hide/show transitions */
.header[style*="none"] {
    opacity: 0;
    transform: translateY(-20px);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.logo-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a8c47 0%, #5da55a 100%);
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(74, 140, 71, 0.3), 0 10px 10px -5px rgba(74, 140, 71, 0.1);
}

.logo-icon i:first-child {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    transform: translate(-8px, -8px);
}

.logo-icon i:last-child {
    font-size: 2.2rem;
    color: white;
    transform: translate(4px, 4px);
}

.header h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.accent-letter {
    color: #4a8c47;
    font-weight: 900;
}



.subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2d4a2f;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.trust-item:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #1e3a20;
}

.trust-item i {
    color: #4a8c47;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 4px rgba(74, 140, 71, 0.3));
}

/* Email Generator */
.email-generator {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    border-radius: 32px;
    padding: 48px;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.15),
        0 16px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    margin-bottom: 16px; /* Reduced from 40px to 16px */
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.email-generator:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.15);
}

.email-generator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 32px 32px 0 0;
}

.generator-content h2 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 36px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tab System */
.option-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 36px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 16px 32px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    flex: 1;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-weight: 700;
    transform: scale(1.02);
}

.tab-btn:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.01);
}

.tab-btn::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;
}

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

.tab-content {
    display: none;
    text-align: center;
}

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

/* Custom Email Form */
.custom-email-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: visible;
    position: relative;
}

#customEmailInput {
    flex: 1;
    min-width: 220px;
    padding: 18px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    font-weight: 600;
    color: #4a8c47;
    text-shadow: none;
}

#customEmailInput:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}

#customEmailInput::placeholder {
    color: rgba(74, 140, 71, 0.6);
    font-weight: 500;
}

.domain {
    font-size: 16px;
    font-weight: 700;
    color: #4a8c47;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.2);
    padding: 18px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    text-shadow: none;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.domain:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.domain::after {
    content: '▼';
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Domain Selector */
.domain-selector {
    position: relative;
    display: inline-block;
}

.domain-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    min-height: 120px;
    overflow: visible;
}

.domain-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.domain-option {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #4a8c47;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 4px;
    display: block;
    white-space: nowrap;
}

.domain-option:hover {
    background: rgba(72, 187, 120, 0.1);
    transform: translateX(4px);
}

.domain-option:first-child {
    margin-top: 4px;
}

.domain-option:last-child {
    margin-bottom: 4px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 44px; /* Ensure minimum touch target size */
}

.btn-compact {
    padding: 12px 20px;
    font-size: 14px;
    gap: 8px;
    border-radius: 16px;
    min-height: 40px;
    font-weight: 600;
}

.btn-large {
    padding: 24px 48px;
    font-size: 18px;
    border-radius: 24px;
    min-height: 56px;
}



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

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

.btn-primary {
    background: linear-gradient(135deg, #4a8c47 0%, #5da55a 50%, #88d8a3 100%);
    color: white;
    box-shadow: 
        0 8px 32px rgba(74, 140, 71, 0.4),
        0 4px 16px rgba(93, 165, 90, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background-size: 200% 200%;
    animation: gradientShiftButton 3s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 16px 48px rgba(74, 140, 71, 0.5),
        0 8px 32px rgba(93, 165, 90, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation-duration: 1.5s;
}

@keyframes gradientShiftButton {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-secondary {
    background: #718096;
    color: white;
    box-shadow: 0 4px 14px 0 rgba(113, 128, 150, 0.2);
}

.btn-secondary:hover {
    background: #4a5568;
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(229, 62, 62, 0.3);
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.4);
}

.btn-extend {
    background: linear-gradient(135deg, #4a8c47 0%, #5da55a 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(74, 140, 71, 0.3);
}

.btn-extend.btn-compact {
    padding: 8px 16px;
    font-size: 13px;
    gap: 6px;
    border-radius: 12px;
    min-height: 36px;
    font-weight: 600;
}

.btn-extend:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(74, 140, 71, 0.4);
}

.btn-refresh {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(49, 130, 206, 0.3);
}

.btn-refresh:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.4);
}

.btn-refresh.auto-refreshing {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    box-shadow: 0 4px 14px 0 rgba(56, 161, 105, 0.3);
}

.btn-refresh.auto-refreshing:hover {
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.4);
}

.btn-refresh .fa-spin {
    animation: spin 2s linear infinite;
}

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

/* Email Display */
.email-display {
    margin-top: 20px; /* Reduced from 36px */
    padding: 24px; /* Reduced from 36px */
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}



/* Email Creation Section */
.email-creation-section {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

/* Hide/Show transitions */
.email-display[style*="none"] {
    opacity: 0;
    transform: translateY(-10px);
}

.email-creation-section[style*="none"] {
    opacity: 0;
    transform: translateY(-10px);
}

.email-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 161, 105, 0.3), transparent);
}

.email-info {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px; /* Reduced from 30px */
    align-items: center;
    margin-bottom: 16px; /* Reduced from 25px */
}

@media (max-width: 768px) {
    .email-info {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.email-address-container {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 18px; /* Reduced from 24px */
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.email-address-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4a8c47, #5da55a);
}

.email-address {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    word-break: break-all;
    flex: 1;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: #f7fafc;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.copy-btn {
    background: linear-gradient(135deg, #4a8c47 0%, #5da55a 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 52px;
    box-shadow: 0 4px 14px 0 rgba(56, 161, 105, 0.3);
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.4);
}

/* Timer */
.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Reduced from 15px */
}

.timer-circle {
    position: relative;
    width: 100px; /* Reduced from 120px */
    height: 100px; /* Reduced from 120px */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: #e1e5e9;
    stroke-width: 8;
}

.timer-progress {
    fill: none;
    stroke: #4a8c47;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s ease;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.timer-minutes,
.timer-seconds {
    font-size: 1.4rem; /* Reduced from 1.8rem */
    font-weight: 700;
    color: #1a202c;
    min-width: 2ch;
    text-align: center;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.timer-separator {
    font-size: 1.4rem; /* Reduced from 1.8rem */
    font-weight: 700;
    color: #1a202c;
    margin: 0 2px;
    animation: blink 1s infinite;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.timer-label {
    font-size: 0.8rem;
    color: #2d3748;
    font-weight: 600;
    margin-top: 4px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Email Actions */
.email-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px; /* Reduced from 15px to 12px */
    justify-content: center;
    margin-top: 16px; /* Reduced from 24px */
}

/* Inline Email Actions */
.email-actions-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 12px;
}

.email-address-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
}

/* Inbox Section */
.inbox-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    border-radius: 32px;
    padding: 48px;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.15),
        0 16px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 48px;
    min-height: 400px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Visual connector between email generator and inbox */
.inbox-section::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 2px;
}

.inbox-section:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.15);
}

.inbox-content {
    min-height: 200px;
    position: relative;
}

.inbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.inbox-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #4a8c47, #5da55a);
    border-radius: 1px;
}

.inbox-header h2 {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.auto-refresh-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 161, 105, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(56, 161, 105, 0.3);
    backdrop-filter: blur(20px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.auto-refresh-status i {
    color: #68d391;
    font-size: 0.9rem;
}

.inbox-header i {
    color: #ffffff;
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.email-count {
    background: linear-gradient(135deg, #4a8c47 0%, #5da55a 50%, #88d8a3 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 800;
    min-width: 50px;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(74, 140, 71, 0.5),
        0 4px 16px rgba(93, 165, 90, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    background-size: 200% 200%;
    animation: gradientShiftButton 3s ease infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.email-count:hover {
    transform: scale(1.1);
    animation-duration: 1.5s;
}

/* No Emails State */
.no-emails {
    text-align: center;
    padding: 80px 40px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px 0;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.no-emails i {
    font-size: 4rem;
    margin-bottom: 24px;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.7);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.no-emails p {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Email List */
.email-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 0;
}

.email-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
    animation: fadeInUp 0.3s ease-out;
}

.email-item:hover {
    border-color: #4a8c47;
    box-shadow: 0 10px 25px -5px rgba(74, 140, 71, 0.15), 0 0 0 1px rgba(74, 140, 71, 0.1);
    transform: translateY(-2px);
}

.email-item.unread {
    border-left: 4px solid #4a8c47;
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
    box-shadow: 0 4px 6px -1px rgba(74, 140, 71, 0.1), 0 2px 4px -1px rgba(74, 140, 71, 0.06);
}

.email-item.unread::before {
    content: '';
    position: absolute;
    top: 0;
    left: 4px;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 161, 105, 0.3), transparent);
}

.email-item.read {
    background: #ffffff;
    border-left: 4px solid #e2e8f0;
}

.email-header {
    padding: 24px 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    min-height: 120px;
}

.email-info-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.email-from {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    text-transform: capitalize;
}

.email-subject {
    font-size: 1.125rem;
    color: #1a202c;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em;
}

.email-preview {
    color: #4a5568;
    font-size: 0.875rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
}

.email-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 140px;
    flex-shrink: 0;
}

[dir="rtl"] .email-meta {
    align-items: flex-start;
}

.email-time {
    font-size: 0.8rem;
    color: #718096;
    white-space: nowrap;
    font-weight: 500;
    text-align: right;
}

[dir="rtl"] .email-time {
    text-align: left;
}

.email-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.status-unread {
    background: linear-gradient(135deg, #4a8c47 0%, #5da55a 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(74, 140, 71, 0.3);
}

.status-read {
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 55, 72, 0.8);
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: modalFadeIn 0.2s ease-out;
}

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

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-content.small {
    max-width: 500px;
}

.modal-header {
    padding: 28px 32px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.modal-header h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.025em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #4a5568;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close:hover {
    background: #e2e8f0;
    color: #2d3748;
    transform: scale(1.05);
}

.modal-body {
    padding: 32px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body .email-meta {
    margin-bottom: 28px;
    padding: 24px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.meta-item {
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-item strong {
    min-width: 70px;
    color: #2d3748;
    font-weight: 600;
    font-size: 0.9rem;
}

.meta-item span {
    color: #2d3748;
    font-weight: 500;
    word-break: break-all;
}

.email-content {
    background: white;
    padding: 0; /* Remove padding for iframe display */
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 1rem;
    color: #2d3748;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden; /* Ensure iframe doesn't break container */
    position: relative;
}

/* Iframe styling for email content */
.email-content iframe {
    border-radius: 16px;
    width: 100%;
    min-height: 400px;
    background: white;
}

/* Style for text-only emails that don't use iframe */
.email-content .formatted-text-content {
    padding: 28px; /* Restore padding for text content */
}

/* Enhanced email content formatting */
.formatted-text-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.formatted-text-content .email-link {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(37, 99, 235, 0.1);
}

.formatted-text-content .email-link:hover {
    color: #1d4ed8;
    border-bottom-color: #2563eb;
    background: rgba(37, 99, 235, 0.15);
}

.formatted-text-content .email-link:visited {
    color: #7c3aed;
}

.formatted-text-content p {
    margin-bottom: 1em;
}

.formatted-text-content h1,
.formatted-text-content h2,
.formatted-text-content h3,
.formatted-text-content h4,
.formatted-text-content h5,
.formatted-text-content h6 {
    margin: 1.5em 0 0.5em 0;
    color: #1a202c;
    font-weight: 600;
}

.formatted-text-content ul,
.formatted-text-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.formatted-text-content li {
    margin-bottom: 0.5em;
}

.formatted-text-content blockquote {
    border-left: 4px solid #e2e8f0;
    padding-left: 1em;
    margin: 1em 0;
    color: #4a5568;
    font-style: italic;
}

.formatted-text-content code {
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #e53e3e;
}

.formatted-text-content pre {
    background: #f7fafc;
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
    border: 1px solid #e2e8f0;
}

.formatted-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

.formatted-text-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

.formatted-text-content th,
.formatted-text-content td {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    text-align: left;
}

.formatted-text-content th {
    background: #f7fafc;
    font-weight: 600;
}

.no-content {
    color: #718096;
    font-style: italic;
    text-align: center;
    padding: 2em;
}

/* Special styling for verification codes and important elements */
.formatted-text-content strong {
    color: #1a202c;
    font-weight: 600;
}

.formatted-text-content [bgcolor="#f6f6f6"] {
    background: #f7fafc !important;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 2px;
    color: #2d3748;
    display: inline-block;
    padding: 12px 24px;
    margin: 1em 0;
}

/* Better table styling for email layouts */
.formatted-text-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    max-width: 100%;
}

.formatted-text-content table table {
    margin: 0; /* Nested tables shouldn't have margin */
}

.formatted-text-content td {
    padding: 8px;
    vertical-align: top;
}

.formatted-text-content th {
    background: #f7fafc;
    font-weight: 600;
    padding: 12px 8px;
}

/* Clean up email-specific styling */
.formatted-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0.5em 0;
}

.formatted-text-content hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1.5em 0;
}

/* Better spacing for email content */
.formatted-text-content > div {
    margin-bottom: 1em;
}

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

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

[dir="rtl"] .modal-actions {
    justify-content: flex-start;
}

/* Message Display */
.message-display {
    margin-top: 24px;
    position: relative;
    z-index: 10;
}

.message {
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 12px;
    animation: slideIn 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-left: 4px solid;
}

.message.success {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    color: #22543d;
    border-left-color: #4a8c47;
}

.message.error {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #742a2a;
    border-left-color: #e53e3e;
}

.message.info {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    color: #2a4365;
    border-left-color: #3182ce;
}

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

/* Loading Animation */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    color: #4a5568;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin: 20px 0;
}

.loading i {
    animation: spin 1s linear infinite;
    margin-right: 12px;
    font-size: 1.25rem;
    color: #4a8c47;
}

[dir="rtl"] .loading i {
    margin-right: 0;
    margin-left: 12px;
}

.loading span {
    font-weight: 500;
    color: #2d3748;
}

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

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

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Selection styles */
::selection {
    background: rgba(102, 126, 234, 0.2);
    color: #2d3748;
}

/* Improved animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.email-generator,
.inbox-section,
.features-section,
.faq-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger animations */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }

/* Pulse animation for new emails */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

/* Improved hover effects */
.feature-card,
.email-item {
    will-change: transform;
}

/* Better scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Features Section */
.features-section {
    margin: 80px 0;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 36px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 24px 60px rgba(0, 0, 0, 0.15),
        0 12px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #4a8c47 0%, #5da55a 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(74, 140, 71, 0.3);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

/* FAQ Section */
.faq-section {
    margin: 80px 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    border-radius: 32px;
    padding: 48px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.15),
        0 16px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 32px 32px 0 0;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 48px;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.faq-grid {
    display: grid;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.faq-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

/* Footer */
.footer {
    margin-top: 80px;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

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

.footer-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    letter-spacing: -0.025em;
}

.footer-section p {
    color: #cbd5e0;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    color: #cbd5e0;
    margin-bottom: 8px;
    font-size: 0.95rem;
    position: relative;
    padding-left: 16px;
}

.footer-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

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

.footer-bottom p {
    color: #cbd5e0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-content {
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
    }
    
    .navbar-stats {
        gap: 16px;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 8px 12px;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .stat-number {
        font-size: 0.9rem;
        padding: 3px 6px;
    }
    
    .container {
        padding: 16px;
        padding-top: 140px;
    }
    
    .header {
        padding: 30px 0 20px;
    }
    
    .header h1 {
        font-size: 2.8rem;
        letter-spacing: -0.02em;
    }
    
    .subtitle {
        font-size: 1.2rem;
        padding: 0 20px;
    }
    
    .trust-indicators {
        gap: 16px;
        flex-direction: column;
        align-items: center;
    }
    
    .trust-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .email-generator,
    .inbox-section,
    .faq-section {
        padding: 32px 24px;
    }
    
    .generator-content h2 {
        font-size: 1.6rem;
    }
    
    .option-tabs {
        flex-direction: column;
        max-width: none;
    }
    
    .custom-email-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .domain {
        text-align: center;
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .domain-dropdown {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-10px);
        min-width: 200px;
    }
    
    .domain-dropdown.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .email-actions {
        flex-direction: column;
    }
    
    .email-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
        min-height: auto;
    }
    
    .email-meta {
        align-items: flex-start !important;
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
        width: 100%;
    }
    
    .email-time {
        text-align: left;
    }
    
    .inbox-section {
        padding: 32px 20px;
    }
    
    .no-emails {
        padding: 60px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .feature-card {
        padding: 28px 24px;
    }
    
    .faq-section h2 {
        font-size: 1.875rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 24px;
    }
    
    .footer-bottom {
        padding: 20px 24px;
    }
    
    .modal-content {
        margin: 10px;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .timer-circle {
        width: 100px;
        height: 100px;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .timer-minutes,
    .timer-seconds {
        font-size: 1.1rem; /* Reduced to be smaller */
    }
    
    .timer-separator {
        font-size: 1.1rem; /* Reduced to be smaller */
    }
    
    .email-address {
        font-size: 1rem;
    }
}

/* Mobile-First Responsive Design Enhancements */

/* Mobile Navigation Optimizations */
@media (max-width: 768px) {
    .navbar {
        padding: 8px 0;
    }
    
    .navbar-content {
        padding: 0 16px;
        gap: 16px;
        flex-wrap: wrap;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
        gap: 8px;
    }
    
    .navbar-brand i {
        font-size: 1.3rem;
    }
    
    .navbar-stats {
        gap: 16px;
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .stat-number {
        font-size: 0.9rem;
        padding: 3px 6px;
    }
    
    .language-dropdown {
        order: 2;
    }
    
    .dropdown-toggle {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 44px;
    }
    
    .dropdown-menu {
        right: 0;
        left: auto;
        min-width: 140px;
    }
}

/* Mobile Container and Layout */
@media (max-width: 768px) {
    .container {
        padding: 12px;
        padding-top: 140px; /* Account for wrapped navbar */
    }
    
    /* Header Mobile Optimizations */
    .header {
        margin-bottom: 20px;
        padding: 20px 0 10px;
    }
    
    .logo {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }
    
    .logo-icon i:first-child {
        font-size: 1.5rem;
    }
    
    .logo-icon i:last-child {
        font-size: 1.7rem;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
    
    .trust-indicators {
        gap: 16px;
        flex-direction: column;
        align-items: center;
    }
    
    .trust-item {
        padding: 10px 16px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Mobile Email Generator */
@media (max-width: 768px) {
    .email-generator {
        padding: 24px 16px;
        margin-bottom: 24px;
        border-radius: 20px;
    }
    
    .generator-content h2 {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
    
    .option-tabs {
        max-width: 100%;
        margin-bottom: 24px;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .custom-email-form {
        flex-direction: column;
        gap: 12px;
        padding: 8px;
    }
    
    #customEmailInput {
        min-width: auto;
        width: 100%;
        padding: 16px 20px;
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 44px;
    }
    
    .domain {
        padding: 16px 20px;
        font-size: 16px;
        width: 100%;
        text-align: center;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }
    
    .btn-large {
        min-height: 56px;
        padding: 18px 32px;
        font-size: 18px;
    }
    

}

/* Mobile Email Display */
@media (max-width: 768px) {
    .email-display {
        padding: 16px; /* Reduced from 20px 16px */
        margin-top: 16px; /* Reduced from 24px */
        border-radius: 16px;
    }
    

    
    .email-info {
        grid-template-columns: 1fr;
        gap: 16px; /* Reduced from 20px */
        text-align: center;
    }
    
    .email-address-container {
        flex-direction: column;
        gap: 12px;
        padding: 14px; /* Reduced from 16px */
        text-align: center;
    }
    
    .email-actions-inline {
        justify-content: center;
        margin-left: 0;
        margin-top: 8px;
    }
    
    .email-actions-inline .btn-compact {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .email-address {
        font-size: 1rem;
        padding: 12px 16px;
        word-break: break-all;
        text-align: center;
    }
    
    .copy-btn {
        min-height: 48px;
        min-width: 48px;
        padding: 12px;
        align-self: center;
    }
    
    .timer-container {
        gap: 8px; /* Reduced from 12px */
    }
    
    .timer-circle {
        width: 80px; /* Reduced from 100px */
        height: 80px; /* Reduced from 100px */
    }
    
    .timer-minutes,
    .timer-seconds {
        font-size: 1.2rem; /* Reduced from 1.5rem to be proportional */
    }
    
    .timer-separator {
        font-size: 1.2rem; /* Reduced from 1.5rem to be proportional */
    }
    
    .email-actions {
        flex-direction: column;
        gap: 10px; /* Reduced from 12px */
        margin-top: 16px; /* Reduced from 20px */
    }
    
    .email-actions .btn {
        width: 100%;
        min-height: 48px;
    }
}

/* Mobile Inbox */
@media (max-width: 768px) {
    .inbox-section {
        padding: 24px 16px;
        margin-bottom: 24px;
        border-radius: 20px;
        min-height: 300px;
    }
    
    .inbox-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }
    
    .inbox-header h2 {
        font-size: 1.5rem;
        width: 100%;
        justify-content: space-between;
    }
    
    .auto-refresh-status {
        padding: 6px 12px;
        font-size: 0.8rem;
        align-self: flex-start;
    }
    
    .email-count {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 40px;
    }
    
    .no-emails {
        padding: 40px 20px;
    }
    
    .no-emails i {
        font-size: 3rem;
        margin-bottom: 16px;
    }
    
    .no-emails p {
        font-size: 1rem;
    }
    
    .email-item {
        border-radius: 12px;
    }
    
    .email-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        min-height: auto;
        align-items: stretch;
    }
    
    .email-info-item {
        order: 1;
    }
    
    .email-meta {
        order: 2;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-width: auto;
    }
    
    .email-from {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .email-subject {
        font-size: 1rem;
        margin-bottom: 6px;
        -webkit-line-clamp: 1;
        max-height: 1.4em;
    }
    
    .email-preview {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        max-height: 2.4em;
    }
    
    .email-time {
        font-size: 0.75rem;
    }
    
    .email-status {
        padding: 4px 10px;
        font-size: 0.65rem;
    }
}

/* Mobile Modal */
@media (max-width: 768px) {
    .modal {
        padding: 16px;
    }
    
    .modal-content {
        border-radius: 16px;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 20px 24px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
        line-height: 1.3;
        word-break: break-word;
    }
    
    .modal-close {
        min-height: 44px;
        min-width: 44px;
        padding: 10px;
    }
    
    .modal-body {
        padding: 20px 24px;
        max-height: calc(85vh - 140px);
        overflow-y: auto;
    }
    
    .email-meta {
        gap: 8px;
    }
    
    .meta-item {
        font-size: 0.9rem;
        word-break: break-word;
    }
    
    .email-content {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-top: 16px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }
    
    .modal-actions .btn {
        width: 100%;
        min-height: 48px;
    }
}

/* Mobile Features Section */
@media (max-width: 768px) {
    .features-section {
        margin-bottom: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 24px 20px;
        text-align: center;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 16px;
    }
    
    .feature-card h3 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .feature-card p {
        font-size: 0.95rem;
    }
}

/* Mobile FAQ Section */
@media (max-width: 768px) {
    .faq-section {
        margin-bottom: 32px;
    }
    
    .faq-section h2 {
        font-size: 1.75rem;
        margin-bottom: 24px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .faq-item {
        padding: 20px;
    }
    
    .faq-item h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .faq-item p {
        font-size: 0.95rem;
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer {
        margin-top: 32px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .footer-section p,
    .footer-section li {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding-top: 20px;
        margin-top: 24px;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}

/* Touch Target Enhancements */
@media (max-width: 768px) {
    /* Ensure all interactive elements meet 44px minimum */
    button,
    .btn,
    input,
    select,
    textarea,
    a[role="button"],
    .tab-btn,
    .copy-btn,
    .modal-close,
    .dropdown-toggle,
    .dropdown-item {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Special handling for small buttons */
    .copy-btn,
    .modal-close {
        min-height: 48px;
        min-width: 48px;
        padding: 12px;
    }
    
    /* Email items should be easy to tap */
    .email-item {
        min-height: 80px;
        padding: 4px 0;
    }
    
    /* Dropdown items */
    .dropdown-item {
        padding: 12px 16px;
        min-height: 48px;
    }
}

/* Landscape Mobile Optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .container {
        padding-top: 80px;
    }
    
    .header {
        padding: 10px 0 5px;
        margin-bottom: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .trust-indicators {
        flex-direction: row;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .trust-item {
        width: auto;
        max-width: none;
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .email-generator,
    .inbox-section {
        padding: 20px 16px;
    }
    
    .email-info {
        grid-template-columns: 1fr auto;
        gap: 16px;
        text-align: left;
    }
    
    .timer-circle {
        width: 80px;
        height: 80px;
    }
    
    .timer-minutes,
    .timer-seconds,
    .timer-separator {
        font-size: 1.2rem;
    }
}

/* Very Small Screens (< 375px) */
@media (max-width: 374px) {
    .container {
        padding: 8px;
        padding-top: 160px; /* More space for wrapped navbar */
    }
    
    .navbar-content {
        padding: 0 12px;
    }
    
    .navbar-stats {
        gap: 8px;
    }
    
    .stat-item {
        min-width: 80px;
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .email-generator,
    .inbox-section {
        padding: 16px 12px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .btn-large {
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .email-address {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .modal {
        padding: 12px;
    }
    
    .modal-header,
    .modal-body {
        padding: 16px 20px;
    }
}

/* Accessibility Enhancements for Mobile */
@media (max-width: 768px) {
    /* Increase focus indicators on mobile */
    button:focus,
    input:focus,
    select:focus,
    textarea:focus,
    .btn:focus,
    .tab-btn:focus {
        outline: 3px solid rgba(74, 140, 71, 0.5);
        outline-offset: 2px;
    }
    
    /* Better contrast for mobile screens */
    .email-preview {
        color: #2d3748;
    }
    
    .email-time {
        color: #4a5568;
    }
    
    /* Ensure text is readable on mobile */
    .trust-item,
    .feature-card p,
    .faq-item p {
        line-height: 1.6;
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    * {
        max-width: 100%;
        word-wrap: break-word;
    }
    
    .email-address,
    .modal-header h3 {
        word-break: break-all;
        overflow-wrap: break-word;
    }
}