:root {
    --bg: #030712;
    --panel: #0a0f1c;
    --panel-dark: #060915;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #e8eef7;
    --text-muted: #8b93a3;
    --accent: #58a6ff;
    --accent2: #3b82f6;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
body {
    margin: 0;
    background: radial-gradient(circle at 20% -10%, #0f172a 0%, #030712 40%, #000 100%);
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
}
a { color: var(--accent); text-decoration: none; }
.app-bar {
    width: 100%;
    padding: 0.85rem 1.3rem;
    background: rgba(10,15,28,0.75);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}
.container {
    max-width: 1120px;
    margin: auto;
    padding: 2rem 1.25rem;
}
.card {
    background: var(--panel-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.8rem;
    overflow: hidden;
}
.card header {
    background: var(--panel);
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border);
}
.subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0 1.2rem 1rem;
}
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2.4rem 1rem;
    text-align: center;
    cursor: pointer;
    margin: 1rem;
    transition: 0.2s ease;
}
.drop-zone:hover {
    border-color: var(--accent);
    background: rgba(255,255,255,0.03);
}
.drop-zone p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.drop-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #000;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin: 1rem;
    display: block;
    width: calc(100% - 2rem);
    text-align: center;
    box-shadow: 0 6px 16px rgba(59, 130, 246,0.25);
    font-size: 1rem;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-primary:hover:not(.disabled) {
    transform: translateY(-2px);
}
.btn-primary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.hidden { display: none; }
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.grid {
    display: grid;
    gap: 1rem;
}
@media (min-width: 800px) {
    .grid { grid-template-columns: 1fr 1fr; }
}
.result-card {
    background: var(--panel-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.captcha-box {
    margin: 1rem;
    padding: 1rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.captcha-input {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.6rem;
    background: var(--panel-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: "Space Grotesk";
}

.btn-secondary {
    margin-top: 0.8rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 0.65rem 1.2rem;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: 0.18s;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.captcha-status {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
