/* LinkLiberator shared dark theme — used by auth pages and policy pages */

:root {
    --ll-bg:        #0a0b0f;
    --ll-bg-2:      #11131a;
    --ll-panel:     #161924;
    --ll-line:      #232634;
    --ll-text:      #f5f6fa;
    --ll-muted:     #9aa1b2;
    --ll-accent:    #5eead4;
    --ll-accent-rgb: 94,234,212;
    --ll-danger:    #ff5d5d;
    --ll-ok:        #39d98a;
    --ll-radius:    14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.ll {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--ll-bg);
    color: var(--ll-text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
body.ll a { color: var(--ll-accent); text-decoration: none; }
body.ll a:hover { text-decoration: underline; }

.ll-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.ll-container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top nav ---------- */
.ll-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10,11,15,0.85);
    backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid var(--ll-line);
}
.ll-nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px; max-width: 1140px; margin: 0 auto;
}
.ll-brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 800; letter-spacing: -0.02em;
    color: var(--ll-text) !important; font-size: 16px;
}
.ll-brand:hover { text-decoration: none !important; }
.ll-brand .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--ll-accent); box-shadow: 0 0 14px var(--ll-accent); }
.ll-nav-links { display: flex; gap: 22px; align-items: center; }
.ll-nav-links a { color: var(--ll-muted); font-weight: 500; font-size: 14px; }
.ll-nav-links a:hover { color: var(--ll-text); text-decoration: none; }
.ll-nav-links a.ll-cta {
    background: var(--ll-accent); color: #000 !important;
    padding: 9px 16px; border-radius: 10px;
    font-weight: 800; font-size: 14px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.12), 0 6px 18px rgba(94,234,212,0.18);
}
.ll-nav-links a.ll-cta:hover { background: #7cffd9; color: #000 !important; }
@media (max-width: 640px) {
    .ll-nav-links a:not(.ll-cta) { display: none; }
}

/* ---------- Footer ---------- */
.ll-footer {
    background: #07080b; border-top: 1px solid var(--ll-line);
    padding: 50px 0 30px; color: var(--ll-muted); font-size: 14px;
    margin-top: 80px;
}
.ll-footer .foot {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
@media (max-width: 700px) { .ll-footer .foot { grid-template-columns: 1fr; } }
.ll-footer h5 { color: var(--ll-text); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 14px; }
.ll-footer ul { list-style: none; margin: 0; padding: 0; }
.ll-footer ul li { margin-bottom: 8px; }
.ll-footer a { color: var(--ll-muted); }
.ll-footer a:hover { color: var(--ll-text); text-decoration: none; }
.ll-footer .copy { border-top: 1px solid var(--ll-line); margin-top: 36px; padding-top: 20px; text-align: center; font-size: 13px; }
.ll-footer .foot p { margin: 14px 0; }

/* ---------- Auth shell ---------- */
.ll-auth-shell {
    min-height: calc(100vh - 80px);
    display: flex; align-items: center; justify-content: center;
    padding: 60px 20px;
    background:
        radial-gradient(700px 400px at 80% -10%, rgba(94,234,212,0.14), transparent 60%),
        radial-gradient(600px 350px at 0% 20%,  rgba(80,120,255,0.12), transparent 60%),
        var(--ll-bg);
}
.ll-card {
    width: 100%; max-width: 460px;
    background: var(--ll-panel);
    border: 1px solid var(--ll-line);
    border-radius: 18px;
    padding: 36px 32px;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.ll-card.wide { max-width: 560px; }
@media (max-width: 480px) {
    .ll-card { padding: 26px 20px; border-radius: 14px; }
    .ll-card h1 { font-size: 22px; }
}
.ll-card .ll-brand { margin-bottom: 18px; }
.ll-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 6px; }
.ll-card .lead { color: var(--ll-muted); font-size: 15px; margin: 0 0 24px; }

/* Form primitives */
.ll-field { margin-bottom: 16px; }
.ll-field label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--ll-muted); margin-bottom: 6px; letter-spacing: 0.02em;
}
.ll-input {
    width: 100%; display: block;
    background: #0a0b0f;
    border: 1px solid var(--ll-line);
    border-radius: 10px;
    color: var(--ll-text);
    font-size: 15px; padding: 12px 14px;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}
.ll-input::placeholder { color: #555a6b; }
.ll-input:focus { border-color: var(--ll-accent); box-shadow: 0 0 0 4px rgba(94,234,212,0.12); }
.ll-input:invalid:not(:placeholder-shown) { border-color: var(--ll-danger); }
.ll-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .ll-row { grid-template-columns: 1fr; } }

/* Profile-name input with @ prefix */
.ll-prefix-group { display: flex; align-items: stretch; border: 1px solid var(--ll-line); border-radius: 10px; background: #0a0b0f; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.ll-prefix-group:focus-within { border-color: var(--ll-accent); box-shadow: 0 0 0 4px rgba(94,234,212,0.12); }
.ll-prefix-group .ll-prefix {
    padding: 12px 4px 12px 14px;
    color: var(--ll-muted); font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 14px; white-space: nowrap;
}
.ll-prefix-group .ll-input { border: none; box-shadow: none !important; background: transparent; padding-left: 4px; font-family: 'JetBrains Mono', ui-monospace, monospace; }

.ll-help { color: var(--ll-muted); font-size: 12px; margin-top: 6px; }
.ll-help.error { color: var(--ll-danger); }

.ll-btn,
body.ll a.ll-btn {
    display: inline-block;
    width: 100%;
    background: var(--ll-accent);
    color: #000 !important;   /* beats body.ll a (specificity 0,1,1) */
    border: none; border-radius: 10px;
    padding: 14px 20px; font-weight: 800; font-size: 15px;
    text-align: center; text-decoration: none;
    cursor: pointer; transition: background .15s, transform .08s;
}
.ll-btn:hover:not(:disabled),
body.ll a.ll-btn:hover { background: #7cffd9; color: #000 !important; transform: translateY(-1px); text-decoration: none; }
.ll-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ll-btn-ghost,
body.ll a.ll-btn-ghost {
    width: auto; background: transparent;
    color: var(--ll-text) !important;
    border: 1px solid var(--ll-line);
    padding: 10px 16px; font-weight: 600;
    text-decoration: none;
}
.ll-btn-ghost:hover:not(:disabled),
body.ll a.ll-btn-ghost:hover { background: var(--ll-panel); border-color: var(--ll-muted); color: var(--ll-text) !important; text-decoration: none; }

.ll-divider {
    margin: 22px 0; border-top: 1px solid var(--ll-line);
}
.ll-meta-row {
    text-align: center; margin-top: 18px; font-size: 14px; color: var(--ll-muted);
}
.ll-meta-row a { color: var(--ll-accent); font-weight: 600; }

.ll-fine {
    font-size: 12px; color: var(--ll-muted); margin-top: 16px; line-height: 1.6; text-align: center;
}

/* Custom alert placeholder (used by ll.js showAlert) */
#alertPlaceholder {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    z-index: 9999; width: auto; max-width: calc(100% - 32px);
}
#alertPlaceholder .alert {
    background: var(--ll-panel); border: 1px solid var(--ll-line); color: var(--ll-text);
    border-radius: 10px; padding: 12px 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    font-size: 14px;
}
#alertPlaceholder .alert-danger,
#alertPlaceholder .alert-error  { border-color: rgba(255,93,93,0.45); }
#alertPlaceholder .alert-success { border-color: rgba(57,217,138,0.45); }

/* Old loading overlay carry-over */
.loading { background: rgba(10,11,15,0.85) url(../../images/preloader.gif) center no-repeat !important; }

/* ---------- Page title (for policy pages) ---------- */
.ll-page-title {
    padding: 90px 0 40px;
    background:
        radial-gradient(700px 380px at 70% -10%, rgba(94,234,212,0.16), transparent 60%),
        var(--ll-bg);
    border-bottom: 1px solid var(--ll-line);
}
.ll-page-title h1 {
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 900; letter-spacing: -0.03em; margin: 0 0 10px;
}
.ll-page-title .kicker {
    color: var(--ll-accent); font-size: 13px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px; display: inline-block;
}
.ll-page-title p.lead { color: var(--ll-muted); font-size: 18px; max-width: 680px; }
.ll-breadcrumb { color: var(--ll-muted); font-size: 13px; margin-top: 18px; }
.ll-breadcrumb a { color: var(--ll-muted); }

/* ---------- Long-form prose ---------- */
.ll-prose { padding: 60px 0 30px; font-size: 16px; color: #d8dbe5; }
.ll-prose h2 {
    font-size: 24px; font-weight: 800; letter-spacing: -0.02em;
    margin: 44px 0 12px; color: var(--ll-text);
    padding-top: 8px; border-top: 1px solid var(--ll-line);
}
.ll-prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.ll-prose h3 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; color: var(--ll-text); }
.ll-prose p { margin: 0 0 14px; }
.ll-prose ul, .ll-prose ol { padding-left: 22px; margin: 0 0 16px; }
.ll-prose li { margin-bottom: 8px; }
.ll-prose a { color: var(--ll-accent); }
.ll-prose strong { color: var(--ll-text); }
.ll-prose .updated {
    display: inline-block; padding: 6px 12px; border-radius: 999px;
    background: var(--ll-panel); border: 1px solid var(--ll-line);
    font-size: 13px; color: var(--ll-muted); margin-bottom: 24px;
}
.ll-prose .callout {
    background: linear-gradient(160deg, rgba(94,234,212,0.06), rgba(94,234,212,0));
    border: 1px solid rgba(94,234,212,0.25);
    border-radius: 14px; padding: 22px 24px; margin: 24px 0;
}
.ll-prose .callout strong { color: var(--ll-accent); }
.ll-prose .toc {
    background: var(--ll-panel); border: 1px solid var(--ll-line);
    border-radius: 14px; padding: 20px 24px; margin-bottom: 36px;
}
.ll-prose .toc h4 {
    margin: 0 0 10px; font-size: 12px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--ll-muted); font-weight: 700;
}
.ll-prose .toc ol { columns: 2; margin: 0; padding-left: 18px; }
.ll-prose .toc li { margin-bottom: 4px; font-size: 14px; }
@media (max-width: 640px) { .ll-prose .toc ol { columns: 1; } }
