/* ── Card ───────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.card + .card { margin-top: 1.5rem; }
.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Drop Zone ──────────────────────────────────────────── */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}
.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--accent);
    background: rgba(200,169,110,0.05);
}
.drop-zone input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.drop-zone .icon {
    font-size: 3rem; margin-bottom: 0.75rem; display: block; color: var(--accent); opacity: 0.6;
}
.drop-zone .label { font-size: 1rem; color: var(--text); font-weight: 500; }
.drop-zone .hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }
.drop-zone.has-file { border-style: solid; border-color: var(--accent2); background: rgba(126,184,176,0.05); }
.file-name {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    background: var(--surface2);
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--accent2);
    font-weight: 500;
    justify-content: center;
}
.file-name.visible { display: flex; }

/* ── Button ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #a88a50); color: #0d0f14; }
.btn-primary:hover { box-shadow: 0 4px 20px rgba(200,169,110,0.35); }
.btn-dl { background: var(--accent2); color: #0d0f14; }
.btn-dl:hover { box-shadow: 0 4px 20px rgba(126,184,176,0.35); }
.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn-row { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; align-items: center; }

/* ── Progress / Spinner ─────────────────────────────────── */
.progress-wrap {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}
.progress-wrap.visible { display: flex; }
.spinner {
    width: 44px; height: 44px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-text { color: var(--muted); font-size: 0.9rem; }

/* ── Alert ──────────────────────────────────────────────── */
.alert {
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.alert-error {
    background: rgba(224,112,112,0.12);
    border: 1px solid rgba(224,112,112,0.3);
    color: var(--danger);
}
.alert-success {
    background: rgba(126,184,176,0.12);
    border: 1px solid rgba(126,184,176,0.3);
    color: var(--accent2);
}
