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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0E0E0E;
    color: #FFFFFF;
    line-height: 1.5;
    font-size: 14px;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: #1A1A1A;
    border-bottom: 1px solid #2A2A2A;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo img {
    filter: brightness(0) invert(1);
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: #8A8A8A;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #FFFFFF;
}

.nav-link:first-child {
    color: #FFFFFF;
}

.nav-link:first-child::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    right: 0;
    height: 2px;
    background: #FFFFFF;
}

.main-content {
    flex: 1;
    background: #0E0E0E;
    padding: 40px 24px;
    display: flex;
    justify-content: center;
}

.recovery-container {
    width: 100%;
    max-width: 480px;
    background: #1A1A1A;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2A2A2A;
}

.recovery-header {
    text-align: center;
    margin-bottom: 32px;
}

.recovery-icon {
    margin: 0 auto 24px;
    width: 48px;
    height: 48px;
}

.recovery-title {
    font-size: 24px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.recovery-subtitle {
    color: #8A8A8A;
    font-size: 16px;
    line-height: 1.5;
}

.recovery-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 500;
    color: #FFFFFF;
    font-size: 14px;
}

.textarea-container {
    position: relative;
}

.recovery-textarea,
.recovery-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #2A2A2A;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #0E0E0E;
    color: #FFFFFF;
    transition: all 0.2s ease;
    resize: vertical;
}

.recovery-textarea {
    min-height: 120px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    line-height: 1.6;
}

.recovery-textarea:focus,
.recovery-input:focus {
    outline: none;
    border-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.recovery-textarea::placeholder,
.recovery-input::placeholder {
    color: #5A5A5A;
}

.form-help {
    color: #8A8A8A;
    font-size: 12px;
    line-height: 1.4;
}

.restore-button {
    width: 100%;
    background: #FFFFFF;
    color: #0E0E0E;
    border: none;
    border-radius: 8px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.restore-button:hover {
    background: #E5E5E5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.restore-button:active {
    transform: translateY(0);
}

.restore-button:disabled {
    background: #2A2A2A;
    color: #5A5A5A;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(14, 14, 14, 0.3);
    border-top: 2px solid #0E0E0E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.error-message {
    background: #2A1A1A;
    color: #FF6B6B;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #3A2A2A;
    font-size: 14px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .header {
        padding: 0 16px;
    }
    
    .nav {
        display: none;
    }
    
    .main-content {
        padding: 24px 16px;
    }
    
    .recovery-container {
        padding: 24px;
    }
    
    .recovery-title {
        font-size: 20px;
    }
    
    .recovery-subtitle {
        font-size: 14px;
    }
}

.thank-you-container {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    background: #1A1A1A;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2A2A2A;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: #0E0E0E;
    font-weight: bold;
}

.thank-you-title {
    font-size: 24px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.thank-you-message {
    font-size: 16px;
    color: #8A8A8A;
    line-height: 1.6;
    margin-bottom: 32px;
}

.next-steps {
    background: #0E0E0E;
    border-radius: 8px;
    padding: 24px;
    text-align: left;
    margin-bottom: 24px;
    border: 1px solid #2A2A2A;
}

.next-steps h3 {
    color: #FFFFFF;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.next-steps p {
    color: #8A8A8A;
    line-height: 1.6;
    font-size: 14px;
}

.return-button {
    background: #FFFFFF;
    color: #0E0E0E;
    border: 1px solid #FFFFFF;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.return-button:hover {
    background: #E5E5E5;
}

