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

.textarea-wrapper {
    position: relative;
    margin-bottom: 8px;
}

.correction-textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 16px;
    font-size: 16px;
    line-height: 1.6;
    background: var(--surface);
    color: var(--text-primary);
    resize: vertical;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.correction-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 89, 152, 0.1);
}

.correction-textarea::placeholder {
    color: var(--text-secondary);
}

.correction-textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--background);
}

.character-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.character-counter {
    font-size: 13px;
    color: var(--text-secondary);
}

.requests-info {
    font-size: 12px;
    color: var(--warning);
    display: none;
}

.correct-btn {
    width: 100%;
    padding: 18px;
    font-size: 17px;
}

.result-section {
    margin-top: 24px;
    display: none;
}

.result-section.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.result-card {
    background: var(--surface);
    border: 2px solid var(--success);
    border-radius: 16px;
    padding: 20px;
    position: relative;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.result-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
}

.copy-btn {
    background: var(--surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.copy-btn.copied {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.demo-banner {
    background: linear-gradient(135deg, rgba(59, 89, 152, 0.08) 0%, rgba(74, 108, 168, 0.12) 100%);
    border: 1px solid rgba(59, 89, 152, 0.2);
    color: var(--text-primary);
    padding: 20px 24px;
    border-radius: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

body.dark .demo-banner {
    background: linear-gradient(135deg, rgba(59, 89, 152, 0.15) 0%, rgba(74, 108, 168, 0.2) 100%);
    border-color: rgba(59, 89, 152, 0.3);
}

.demo-banner-content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.demo-banner-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(59, 89, 152, 0.2);
}

.demo-banner-text h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: var(--text-primary);
}

.demo-banner-text p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.demo-banner .btn {
    background: var(--gradient);
    color: white;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 25px;
    box-shadow: 0 3px 10px rgba(59, 89, 152, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    margin-left: 16px;
}

.demo-banner .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 89, 152, 0.35);
}

@media (max-width: 520px) {
    .demo-banner {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }

    .demo-banner-content {
        flex-direction: column;
    }

    .demo-banner .btn {
        width: 100%;
        margin-top: 12px;
        margin-left: 0;
    }
}

.demo-limit-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--surface-elevated);
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.demo-limit-info strong {
    color: var(--primary-color);
}

.lyra-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 24px 0;
}

.lyra-speech {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 20px;
    margin-bottom: 12px;
    max-width: 280px;
    text-align: center;
    font-size: 14px;
    color: var(--text-primary);
    position: relative;
    box-shadow: 0 4px 12px var(--shadow);
}

.lyra-speech::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--surface);
}

.lyra-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

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

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

.correction-history {
    margin-top: 32px;
}

.history-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.history-item-original {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-bottom: 4px;
}

.history-item-corrected {
    font-size: 14px;
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .correction-container {
        padding: 16px;
    }

    .correction-textarea {
        min-height: 150px;
        font-size: 15px;
    }

    .result-card {
        padding: 16px;
    }

    .demo-banner {
        padding: 16px;
    }

    .lyra-speech {
        max-width: 240px;
    }
}

/* Apps Promo Card */
.apps-promo-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border: 1px solid rgba(59, 89, 152, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin-top: 24px;
    margin-bottom: 16px;
}

body.dark .apps-promo-card {
    background: linear-gradient(135deg, #1e2a3a 0%, #253545 100%);
    border-color: rgba(59, 89, 152, 0.3);
}

.apps-promo-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.apps-promo-content {
    flex: 1;
}

.apps-promo-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.apps-promo-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.apps-promo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.apps-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.apps-promo-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 89, 152, 0.25);
}

.apps-promo-link svg {
    flex-shrink: 0;
}

/* Android Countdown Timer Styles */
.apps-promo-link.android-countdown {
    pointer-events: none;
    opacity: 0.85;
    background: linear-gradient(135deg, rgba(61, 220, 132, 0.15) 0%, rgba(0, 208, 132, 0.1) 100%);
    border: 1px solid rgba(61, 220, 132, 0.4);
    color: #3DDC84;
}

.apps-promo-link.android-countdown:hover {
    transform: none;
    box-shadow: none;
    background: linear-gradient(135deg, rgba(61, 220, 132, 0.15) 0%, rgba(0, 208, 132, 0.1) 100%);
    color: #3DDC84;
    border-color: rgba(61, 220, 132, 0.4);
}

#correct-android-text {
    font-family: inherit;
}

.apps-promo-link.android-countdown #correct-android-text {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-weight: 600;
    font-size: 13px;
}

/* Android Beta Signup Form Compact */
.android-beta-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.beta-form-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.beta-label-compact {
    font-size: 12px;
    color: #3DDC84;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(61, 220, 132, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(61, 220, 132, 0.3);
}

.beta-input-compact {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    width: 140px;
    transition: all 0.2s ease;
}

.beta-input-compact:focus {
    outline: none;
    border-color: #3DDC84;
    box-shadow: 0 0 0 2px rgba(61, 220, 132, 0.2);
}

.beta-input-compact::placeholder {
    color: var(--text-secondary);
}

.beta-input-compact:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.beta-btn-compact {
    padding: 8px 14px;
    background: #3DDC84;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
}

.beta-btn-compact:hover:not(:disabled) {
    background: #4AE78F;
}

.beta-btn-compact:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 520px) {
    .apps-promo-card {
        flex-direction: column;
        text-align: center;
    }

    .apps-promo-links {
        justify-content: center;
    }
}
