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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* Top Navigation */
.top-nav {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

.nav-brand i {
    font-size: 1.1rem;
}

.nav-brand img {
    width: 24px;
    height: 24px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #1a1a1a;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1001;
}

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

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

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

.dropdown-item:hover {
    background: #f8f9fa;
    color: #1a1a1a;
}

/* Language selector */
.language-menu {
    min-width: 160px;
}

.language-menu .dropdown-item {
    padding: 8px 12px;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.2s ease;
}

.language-menu .dropdown-item.active {
    background: #667eea;
    color: white;
    font-weight: 600;
}

.language-menu .dropdown-item:hover:not(.active) {
    background: #f0f2ff;
    color: #667eea;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0;
}

.title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.title i {
    margin-right: 12px;
    color: #666;
    font-size: 2rem;
}

.subtitle {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
    max-width: 480px;
    margin: 0 auto;
}

/* Main Content */
.main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
        height: 56px;
    }
    
    .nav-brand {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .dropdown-menu {
        right: 0;
        left: auto;
        min-width: 140px;
    }

    .main {
        gap: 20px;
    }
    
    .container {
        padding: 15px;
    }
    
    .header {
        margin-bottom: 20px;
        padding: 20px 0;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .main {
        gap: 16px;
    }
    
    .email-generator {
        padding: 0;
        max-width: none;
    }
    
    .email-list {
        padding: 20px;
        max-width: none;
    }
    
    .email-address {
        flex-direction: column;
        gap: 10px;
    }
    
    .copy-btn,
    .btn {
        align-self: stretch;
        padding: 12px 16px;
        font-size: 0.9rem;
        min-width: auto;
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
        max-width: none;
    }
    
    .email-content iframe {
        height: 400px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
}

/* Email Generator */
.email-generator {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
}



.email-address {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
}

.email-address input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    color: #333;
}

.email-address input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.1);
}

.copy-btn, .qr-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.9rem;
}

.copy-btn:hover, .qr-btn:hover {
    background: #333;
}



.email-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.85rem;
}

.auto-refresh {
    display: flex;
    align-items: center;
    gap: 4px;
}





.btn {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    background: white;
    color: #333;
    white-space: nowrap;
}

.btn:hover {
    border-color: #1a1a1a;
    background: #f8f9fa;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.btn-primary:hover {
    background: #333;
    border-color: #333;
}

.btn-secondary {
    background: white;
    color: #666;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

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

/* Email List */
.email-list {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 20px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.list-header h2 {
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.inbox-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.email-count {
    color: #666;
    font-size: 0.85rem;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.countdown {
    color: #28a745;
    font-size: 0.85rem;
    font-weight: 500;
    background: #f8fff9;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #d4edda;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    display: flex;
    align-items: center;
    gap: 6px;
}

.countdown i {
    font-size: 0.8rem;
}

.countdown.warning {
    color: #dc3545;
    background: #fff5f5;
    border-color: #f5c6cb;
}

.countdown.expired {
    color: #6c757d;
    background: #f8f9fa;
    border-color: #dee2e6;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.empty-state p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #666;
    font-weight: 500;
}

.inbox-refresh {
    display: flex;
    justify-content: center;
    padding: 12px 0 0 0;
}

.refresh-btn {
    margin: 0;
}

.emails {
    max-height: 580px;
    overflow-y: auto;
}

.email-item {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.email-item:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.email-item.unread {
    background: #f8f9ff;
    border-color: #e6f3ff;
    position: relative;
}

.email-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #1a1a1a;
    border-radius: 2px 0 0 2px;
}

.email-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.email-from {
    font-weight: 500;
    color: #333;
    flex: 1;
    margin-right: 12px;
    font-size: 0.9rem;
}

.email-time {
    color: #999;
    font-size: 0.8rem;
    white-space: nowrap;
}

.email-subject {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.4;
}

.email-preview {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    overflow: hidden;
    animation: modalSlideIn 0.2s ease-out;
    border: 1px solid #e5e5e5;
}

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

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

.modal-header h3 {
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    margin-right: 16px;
}

.close-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    color: #666;
    font-size: 1.1rem;
    transition: all 0.2s;
}

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

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

.email-meta {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.email-meta p {
    margin-bottom: 6px;
    color: #333;
    font-size: 0.9rem;
}

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

.email-content {
    line-height: 1.6;
    color: #333;
    white-space: normal;
    word-wrap: break-word;
    font-size: 0.95rem;
}

.email-content iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
}


.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
}

/* QR Code Modal */
.qr-modal-content {
    max-width: 400px;
    text-align: center;
}

.qr-modal-body {
    padding: 30px 20px;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.qr-container img {
    width: 200px;
    height: 200px;
    border: 8px solid #e5e5e5;
    border-radius: 0;
    background: white;
}

.qr-email-text {
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: #333;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    word-break: break-all;
    margin: 0;
}

.qr-instruction {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    transform: translateX(400px);
    transition: transform 0.3s ease-out;
    z-index: 1001;
    max-width: 320px;
    font-size: 0.9rem;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.notification.info {
    background: #1a1a1a;
}

/* Footer */
.footer {
    text-align: center;
    color: #999;
    padding: 20px 20px;
    font-size: 0.85rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 10px;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

.footer-links span {
    color: #ccc;
}

.footer-copyright {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.footer-copyright p {
    color: #999;
    font-size: 0.75rem;
    margin: 0;
}

/* Legal Pages Styles */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.7;
}

.legal-content h1 {
    color: #1a1a1a;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 40px;
    font-style: italic;
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section h2 {
    color: #1a1a1a;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.legal-section h3 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 20px;
}

.legal-section p {
    color: #444;
    margin-bottom: 15px;
    text-align: justify;
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-section li {
    color: #444;
    margin-bottom: 8px;
}

.legal-section a {
    color: #1a1a1a;
    text-decoration: underline;
}

.legal-section a:hover {
    color: #333;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 30px 15px;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.2rem;
    }
    
    .legal-section p {
        text-align: left;
    }
}

/* Scrollbar */
.emails::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.emails::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.emails::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.emails::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    /* 垂直位置已调整好 */
    top: 9px;
    /* 水平向左4px */
    left: calc(50% - 4px);
    transform: translate(-50%, 0);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(26, 26, 26, 0.2);
    border-top: 2px solid #1a1a1a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

/* 主要按钮（深色背景）的loading样式 */
.btn-primary.loading::after {
    top: 11px;  /* 再向下移动1px */
    left: calc(50% - 9px);  /* 向左移动1px */
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
}

/* 次要按钮（浅色背景）的loading样式 */
.btn-secondary.loading::after {
    content: '';
    position: absolute;
    top: 9px;
    left: calc(50% - 6px);  /* 向左移动2px */
    transform: translate(-50%, 0);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(102, 102, 102, 0.2);
    border-top: 2px solid #666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

/* 输入框占位符样式 */
.email-address input::placeholder {
    color: #aaa;
    font-style: normal;
}

/* 选中状态优化 */
.email-address input:focus,
.btn:focus {
    outline: none;
}

.btn:focus {
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.2);
}

/* 邮件项悬停优化 */
.email-item:active {
    transform: translateY(1px);
}

/* 通知动画优化 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.show {
    animation: slideInRight 0.3s ease-out;
}

/* Features Section */
.features-section {
    margin: 60px auto 0;
    max-width: 1200px;
    padding: 0 20px;
}

.features-header {
    text-align: center;
    margin-bottom: 50px;
}

.features-header h2 {
    color: #1a1a1a;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.features-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.feature-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

.feature-card.coming-soon {
    opacity: 0.85;
}

.coming-soon-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: #000000;
    color: white;
    padding: 6px 12px;
    border-radius: 0 8px 0 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 0 16px 0;
    border: none;
}

.feature-icon i {
    font-size: 2rem;
    color: #1a1a1a;
}

.feature-card h3 {
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.feature-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Blog Preview Section */
.blog-preview-section {
    margin: 80px auto 0;
    max-width: 1200px;
    padding: 0 20px;
}

.blog-preview-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-preview-header h2 {
    color: #1a1a1a;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.blog-preview-header p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.blog-preview-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.blog-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.blog-preview-icon {
    width: 60px;
    height: 60px;
    background: #f8f9ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid #e6f3ff;
}

.blog-preview-icon i {
    font-size: 1.8rem;
    color: #667eea;
}

.blog-preview-card h3 {
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-preview-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.blog-preview-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.blog-preview-link:hover {
    color: #5a6fd8;
}

.blog-preview-cta {
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .blog-preview-section {
        margin: 60px auto 0;
        padding: 0 15px;
    }
    
    .blog-preview-header h2 {
        font-size: 1.8rem;
    }
    
    .blog-preview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-preview-card {
        padding: 24px 20px;
    }
}

/* FAQ Section */
.faq-section {
    margin: 80px auto 0;
    max-width: 800px;
    padding: 0 20px;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-header h2 {
    color: #1a1a1a;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.faq-header p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.faq-list {
    space-y: 20px;
}

.faq-item {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    background: white;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    margin-right: 16px;
}

.faq-question i {
    color: #666;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fafafa;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 20px 24px;
}

.faq-answer p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

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

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

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 0;
}

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

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

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

[dir="rtl"] .modal-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .modal-header h3 {
    margin-right: 0;
    margin-left: 16px;
}

[dir="rtl"] .inbox-status {
    flex-direction: row-reverse;
}

[dir="rtl"] .features-grid {
    direction: rtl;
}

[dir="rtl"] .feature-card {
    text-align: right;
}

[dir="rtl"] .faq-question {
    flex-direction: row-reverse;
}

[dir="rtl"] .faq-question h3 {
    margin-right: 0;
    margin-left: 16px;
}

[dir="rtl"] .footer-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .email-meta p {
    text-align: right;
}

[dir="rtl"] .legal-content {
    text-align: right;
}

[dir="rtl"] .legal-content h1,
[dir="rtl"] .legal-content h2,
[dir="rtl"] .legal-content h3 {
    text-align: right;
}

[dir="rtl"] .legal-content ul {
    padding-right: 25px;
    padding-left: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .features-section {
        margin: 40px auto 0;
        padding: 0 15px;
    }
    
    .features-header h2 {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .feature-card {
        padding: 24px 20px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .faq-section {
        margin: 60px auto 0;
        padding: 0 15px;
    }
    
    .faq-header h2 {
        font-size: 1.8rem;
    }
    
    .faq-question {
        padding: 16px 20px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 16px 20px;
    }
} 