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

:root {
    /* Zyrova Brand Colors */
    --primary-color: #FF5722;
    --primary-dark: #E64A19;
    --primary-light: #FF8A65;
    --secondary-color: #2C2C2C;
    --accent-color: #FFF3E0;
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-light: #FFFFFF;
    --background-light: #FAFAFA;
    --background-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 32px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: var(--background-white);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FF4500, #FF6B00, #FF8C00);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
    transition: all 0.3s ease;
}

.logo-icon i {
    font-size: 20px;
    color: white;
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 69, 0, 0.5);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #FF4500, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Translator Section */
.translator-section {
    padding: 80px 0;
    background: var(--background-light);
}

.translator-card {
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    transform: translateY(-40px);
}

/* Language Selector */
.language-selector {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: end;
}

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

.lang-select-group label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--background-white);
    color: var(--text-primary);
    transition: var(--transition);
    cursor: pointer;
}

.lang-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.swap-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.swap-btn:hover {
    background: var(--primary-dark);
    transform: rotate(180deg);
}

/* Translation Area */
.translation-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.textarea-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

.detected-lang,
.translation-status {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 1rem;
}

.control-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

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

#source-text,
#target-text {
    min-height: 200px;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: var(--transition);
    background: var(--background-white);
}

#source-text:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

#target-text {
    background: var(--background-light);
    cursor: default;
}

.textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

.char-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

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

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

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: var(--background-light);
    transition: var(--transition);
}

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

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

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

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

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

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

.notification.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.notification.error {
    background: linear-gradient(135deg, #f44336, #da190b);
}

.notification.info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

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

.modal-content {
    background-color: #fff;
    margin: 0 auto;
    border-radius: 16px;
    width: 95%;
    max-width: 650px;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.modal-header h2 i {
    margin-right: 10px;
    color: #ffd700;
}

.close-modal {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 4px;
}

.close-modal:hover {
    opacity: 1;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.payment-info {
    text-align: center;
    margin-bottom: 24px;
}

.payment-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.payment-icon i {
    font-size: 1.8rem;
    color: white;
}

.payment-info h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
    color: #333;
}

.payment-info p {
    margin: 6px 0;
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

.pricing-card {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.price-header {
    text-align: center;
    margin-bottom: 16px;
}

.price-header h4 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: #333;
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price span {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

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

.features li {
    padding: 6px 0;
    color: #333;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.features li i {
    color: #4CAF50;
    margin-right: 12px;
    font-size: 0.9rem;
}


.stripe-payment {
    border-top: 1px solid #e0e0e0;
    padding-top: 24px;
}

.stripe-payment h4 {
    margin: 0 0 12px;
    color: #333;
    font-size: 1.2rem;
}

.payment-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.stripe-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.security-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
    font-size: 0.9rem;
    font-weight: 500;
}

.security-badges i {
    font-size: 1.1rem;
}

.accepted-cards {
    display: flex;
    gap: 8px;
}

.accepted-cards i {
    font-size: 1.5rem;
    color: #6c757d;
    transition: color 0.2s;
}

.accepted-cards i:hover {
    color: #495057;
}

/* Modern Payment Button Styles */
.payment-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #FF5722 0%, #FF7043 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
    text-transform: none;
    letter-spacing: 0.5px;
}

.payment-btn:hover {
    background: linear-gradient(135deg, #E64A19 0%, #FF5722 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.4);
}

.payment-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.payment-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.6s;
}

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

.payment-btn i {
    font-size: 1.2rem;
    opacity: 0.9;
}

.stripe-payment-btn {
    background: linear-gradient(135deg, #FF5722 0%, #FF7043 100%);
    position: relative;
    overflow: hidden;
}

.stripe-payment-btn:hover {
    background: linear-gradient(135deg, #E64A19 0%, #FF5722 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.4);
}

.stripe-payment-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.6s;
}

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

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding: 24px 32px;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    border-radius: 0 0 16px 16px;
}

.btn-secondary {
    padding: 12px 24px;
    border: 2px solid #ddd;
    background: white;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: #bbb;
    color: #333;
}

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

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

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

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

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

.link-group h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.link-group a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.link-group a:hover {
    color: var(--primary-light);
}

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

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
    gap: 1rem;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 87, 34, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-overlay p {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

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

/* Document Upload Styles */
.document-upload {
    margin-bottom: 1rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background-light);
    transition: var(--transition);
}

.document-upload.drag-over {
    border-color: var(--primary-color);
    background: var(--accent-color);
}

.upload-zone {
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-zone:hover {
    background: var(--accent-color);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-text h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.upload-text p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.upload-link {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
}

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

.upload-text small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.file-info {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--background-white);
}

.file-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.file-details i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.file-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.file-name {
    font-weight: 600;
    color: var(--text-primary);
}

.file-size {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.remove-file {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.remove-file:hover {
    background: #ffebee;
    color: #d32f2f;
}

.extraction-progress {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.input-mode-toggle {
    display: flex;
    gap: 0.5rem;
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.mode-btn:hover {
    background: var(--accent-color);
    border-color: var(--primary-light);
}

.mode-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.mode-btn i {
    font-size: 0.875rem;
}

/* Payment Modal Styles */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10002;
    backdrop-filter: blur(5px);
}

.payment-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

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

.payment-header {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-payment-modal {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-payment-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.payment-body {
    padding: 30px;
}

.payment-info {
    margin-bottom: 30px;
}

.payment-info p {
    margin: 10px 0;
    font-size: 1.1rem;
    color: #333;
}

.payment-info p strong {
    color: #ff6b35;
}

.payment-tiers {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tier {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.tier.active {
    border-color: #ff6b35;
    background: linear-gradient(135deg, #fff5f2, #ffe8e0);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.tier i {
    font-size: 1.2rem;
    color: #ff6b35;
}

.tier.active i {
    color: #ff6b35;
    animation: pulse 1.5s infinite;
}

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

.tier span {
    font-weight: 500;
    color: #333;
}

.tier.paid {
    border-color: #28a745;
    background: linear-gradient(135deg, #f0fff4, #e6ffed);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.tier.paid i {
    color: #28a745;
}

.paid-badge {
    margin-left: auto;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.payment-note {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
    font-size: 0.95rem;
    color: #1976d2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-note i {
    color: #2196f3;
}

.payment-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-cancel, .btn-pay {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #ddd;
}

.btn-cancel:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

.btn-pay {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

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

/* Responsive design for payment modal */
@media (max-width: 768px) {
    .payment-modal {
        width: 95%;
        margin: 20px;
    }
    
    .payment-body {
        padding: 20px;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .btn-cancel, .btn-pay {
        width: 100%;
    }
    
    .payment-tiers {
        gap: 8px;
    }
    
    .tier {
        padding: 10px 12px;
    }
}

/* Responsive design for main layout */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header .container {
        padding: 1rem 16px;
    }
    
    .nav-menu {
        display: flex;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .translator-card {
        padding: 1.5rem;
        margin: 0 16px;
        transform: translateY(-20px);
    }
    
    .language-selector {
        grid-template-columns: 1fr auto 1fr;
        gap: 0.5rem;
    }
    
    .swap-btn {
        justify-self: center;
    }
    
    .translation-area {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .translator-section {
        padding: 60px 0;
    }
    
    .translator-card {
        padding: 1rem;
        margin: 0 8px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .language-selector {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .swap-btn {
        justify-self: center;
        order: 3;
    }
    
    .lang-select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .translation-area {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #source-text,
    #target-text {
        min-height: 150px;
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .features-section {
        padding: 60px 0;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Language Confirmation Modal Styles */
.confirmation-info {
    text-align: center;
    padding: 1rem 0;
}

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

.confirmation-info h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.language-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.language-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.language-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.language-value {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-width: 120px;
    text-align: center;
}

.language-arrow {
    color: var(--primary-color);
    font-size: 1.25rem;
    padding: 0.5rem;
    background: white;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-warning {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.confirmation-warning i {
    color: #f39c12;
    font-size: 1.1rem;
}

/* Responsive adjustments for language confirmation modal */
@media (max-width: 768px) {
    .language-display {
        flex-direction: column;
        gap: 1rem;
    }
    
    .language-arrow {
        transform: rotate(90deg);
    }
    
    .language-value {
        min-width: 100px;
    }
}

/* Stripe Elements Styling */
.stripe-card-element {
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    margin: 1rem 0;
    transition: border-color 0.3s ease;
}

.stripe-card-element:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.stripe-error {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stripe-error:before {
    content: "⚠";
    font-weight: bold;
}

.stripe-error:empty:before {
    content: "";
}

/* Payment button loading state */
.payment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.payment-btn .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

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

/* Responsive adjustments for Stripe elements */
@media (max-width: 768px) {
    .stripe-card-element {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
    }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .loading-overlay {
        display: none;
    }
    
    .translator-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}