* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
}

body {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.tool-container {
    max-width: 900px;
    width: 100%;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 40px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8);
    color: #f1f5f9;
}

.tool-header {
    margin-bottom: 2rem;
    text-align: center;
}

.tool-header .back-link {
    display: inline-block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.tool-header .back-link:hover {
    color: #60a5fa;
}

.tool-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-header h1 i {
    margin-right: 0.5rem;
    background: none;
    -webkit-text-fill-color: #fbbf24;
}

.tool-header p {
    color: #cbd5e1;
    font-size: 1.1rem;
}

.tool-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.input-group label {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 1rem;
}

textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1rem;
    color: white;
    font-size: 1rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

textarea:focus {
    border-color: #fbbf24;
}

textarea::placeholder {
    color: #475569;
}

.input-group small {
    color: #94a3b8;
    font-size: 0.85rem;
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #cbd5e1;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #fbbf24;
    cursor: pointer;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-process, .btn-clear {
    flex: 1;
    border: none;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 200px;
}

.btn-process {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.btn-process:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -8px #fbbf24aa;
}

.btn-clear {
    background: #334155;
}

.btn-clear:hover {
    background: #475569;
    transform: translateY(-2px);
}

.result-area {
    background: rgba(0,0,0,0.2);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    animation: fadeIn 0.3s ease;
}

.result-area h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.02);
    padding: 1rem;
    border-radius: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.9rem;
}

.stat-value {
    color: #f1f5f9;
    font-size: 1.3rem;
    font-weight: 700;
}

.reviews-output {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0,0,0,0.3);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.review-item {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #cbd5e1;
    line-height: 1.5;
}

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

.review-item .review-number {
    display: inline-block;
    background: #fbbf24;
    color: #0f172a;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 0.8rem;
    margin-right: 0.8rem;
}

.copy-section {
    display: flex;
    justify-content: center;
}

.btn-copy {
    background: #2563eb;
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-copy:hover {
    background: #3b82f6;
}

.info-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.02);
    border-radius: 24px;
    border-left: 4px solid #fbbf24;
}

.info-box h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.info-box ul {
    padding-left: 1.5rem;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.info-box p {
    color: #94a3b8;
    font-size: 0.9rem;
}

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

@media (max-width: 600px) {
    .tool-container {
        padding: 1.5rem;
    }
    .tool-header h1 {
        font-size: 1.8rem;
    }
    .options {
        flex-direction: column;
        gap: 0.8rem;
    }
    .action-buttons {
        flex-direction: column;
    }
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
}