/* B.A.T. Cloud — gemeinsames Stylesheet */
:root {
    --bg: #0a0a0a;
    --bg-elev: #111111;
    --bg-card: #161616;
    --bg-hover: #1c1c1c;
    --ink: #f5f5f3;
    --ink-2: #a8a8a3;
    --ink-3: #6b6b66;
    --line: #1f1f1f;
    --line-strong: #2a2a2a;
    --lime: #c5ff3d;
    --lime-soft: rgba(197, 255, 61, 0.08);
    --warn: #ff9d3d;
    --danger: #ff5b5b;
    --info: #5bb8ff;
    --radius: 14px;
    --radius-lg: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    background: var(--bg); color: var(--ink);
    font-family: 'Geist', system-ui, -apple-system, sans-serif;
    font-size: 14px; line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--lime); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea {
    font-family: inherit; font-size: inherit; color: inherit;
    background: var(--bg-card); border: 1px solid var(--line-strong);
    border-radius: 10px; padding: 10px 12px;
    width: 100%;
    transition: border-color .15s, background .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--lime);
    background: var(--bg-elev);
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 16px; border-radius: 10px;
    font-size: 14px; font-weight: 500;
    border: 1px solid transparent;
    transition: all .15s ease;
}
.btn-primary { background: var(--lime); color: var(--bg); }
.btn-primary:hover { background: #d4ff5a; }
.btn-primary:disabled { background: var(--line-strong); color: var(--ink-3); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-card); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #ff7575; }
.btn svg { width: 14px; height: 14px; }

/* ─── Forms ─── */
.field { margin-bottom: 18px; }
.field label {
    display: block; margin-bottom: 6px;
    font-family: 'Geist Mono', monospace; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--ink-3);
}
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.field .error { font-size: 12.5px; color: var(--danger); margin-top: 6px; }

/* ─── Modal ─── */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px); z-index: 100;
    display: none; align-items: flex-start; justify-content: center;
    padding: 80px 20px 20px;
    overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
    background: var(--bg-card); border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg); padding: 28px;
    width: 100%; max-width: 480px;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 22px;
}
.modal-title {
    font-family: 'Instrument Serif', serif;
    font-size: 24px; font-weight: 400; letter-spacing: -0.015em;
}
.modal-close {
    background: transparent; border: none; color: var(--ink-3);
    width: 32px; height: 32px; border-radius: 8px;
    display: grid; place-items: center;
}
.modal-close:hover { background: var(--bg-hover); color: var(--ink); }
.modal-actions {
    display: flex; gap: 10px; justify-content: flex-end;
    margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
}

/* ─── Toast ─── */
.toasts {
    position: fixed; top: 20px; right: 20px; z-index: 200;
    display: flex; flex-direction: column; gap: 10px;
}
.toast {
    background: var(--bg-card); border: 1px solid var(--line-strong);
    border-left: 3px solid var(--lime);
    padding: 12px 16px; border-radius: 10px;
    min-width: 280px; max-width: 400px;
    font-size: 13.5px;
    animation: slideIn .25s ease;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
}
.toast.error { border-left-color: var(--danger); }
.toast.warn  { border-left-color: var(--warn); }
@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Loading spinner */
.spinner {
    display: inline-block; width: 14px; height: 14px;
    border: 2px solid var(--line-strong); border-top-color: var(--lime);
    border-radius: 50%; animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty / error states */
.empty {
    padding: 50px 20px; text-align: center; color: var(--ink-3);
    border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.empty .icon { font-size: 32px; margin-bottom: 12px; opacity: .6; }
