:root {
    --bg: #0f1115;
    --card: #161a22;
    --text: #eaeaf0;
    --muted: #9aa0aa;
    --accent: #6366f1;
    --border: #2a2f3a;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, sans-serif;
}

.hidden {
    display: none !important
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
}

.header img {
    width: 96px;
    margin-bottom: 2rem;
}

.card {
    width: 100%;
    max-width: 760px;
    background: var(--card);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    text-align: center;
}

p {
    color: var(--muted)
}

.ini-description {
    max-width: 640px;
    margin: 0 auto 1.2rem;
}

.center-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.primary, .secondary {
    border-radius: 999px;
    padding: .8rem 1.8rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.primary {
    background: var(--accent);
    color: #fff
}

.primary.blocked {
    background: #7f1d1d; /* dark red */
    color: #fecaca;
    cursor: not-allowed;
}

.secondary {
    background: none;
    color: var(--accent)
}

.seg-toggle {
    display: flex;
    background: #0b0d12;
    border-radius: 999px;
    padding: 4px;
}

.seg-toggle.center {
    margin: 1.5rem auto
}

.seg {
    border: none;
    background: none;
    color: var(--muted);
    padding: .4rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
}

.seg.active {
    background: var(--accent);
    color: #fff
}

.site {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: .6rem;
}

.site-info small {
    color: var(--muted);
    display: block
}

.site-controls {
    display: flex;
    align-items: center;
    gap: .6rem
}

.chip.warning {
    background: #3a1f1f;
    color: #fca5a5;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
}

.ini-row {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.ini-row input {
    flex: 1;
    background: #0b0d12;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .7rem;
}

.copy-btn {
    background: #0b0d12;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .7rem 1.2rem;
    color: var(--accent);
    font-weight: 700;
    min-width: 96px;
}

.summary-list {
    list-style: none;
    padding: 0;
}

.summary-list li {
    display: flex;
    gap: .8rem;
    align-items: center;
    margin-bottom: .6rem;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal:not(.hidden) {
    display: flex
}

.modal-card {
    background: var(--card);
    border-radius: 20px;
    padding: 2rem;
    max-width: 420px;
    width: 100%;
}

.modal-link a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

/* Hostname card alignment */
.site {
    align-items: flex-start;
}

.site-info {
    text-align: left;
}

/* Distance above Continue button */
#step-2 .center-row {
    margin-top: 2rem;
}

/* ---------------- Disclaimer Modal ---------------- */

.disclaimer-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.disclaimer-modal.hidden {
    display: none;
}

.disclaimer-card {
    background: #1c1a10;
    border: 1px solid #facc15;
    border-radius: 20px;
    padding: 2rem;
    max-width: 520px;
    width: 90%;
    text-align: center;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
}

.disclaimer-card h3 {
    color: #fde047;
    margin-bottom: 1rem;
}

.disclaimer-card p {
    color: #fef3c7;
    line-height: 1.5;
    margin-bottom: 1.8rem;
}

.disclaimer-accept {
    background: #facc15;
    color: #1a1a1a;
    border: none;
    border-radius: 999px;
    padding: 0.8rem 2rem;
    font-weight: 800;
    cursor: pointer;
}

.cf-turnstile {
    margin-bottom: 1.5rem;
}

/* Auto-include toggle row */
.auto-include-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.auto-include-info {
    text-align: left;
}

.auto-include-info small {
    color: var(--muted);
    display: block;
}
