/* LunoVPN WireGuard — payment project palette */
:root {
    --cream: #fff8e7;
    --cream-deep: #fff3d4;
    --orange-light: #ffe4cc;
    --orange-mid: #ffd4a8;
    --orange-deep: #a84a18;
    --text: #3d2914;
    --accent: #c45c26;
    --border-orange: #c45c26;
    --font-body: "Ubuntu", sans-serif;
    --text-size: 1rem;
    --text-line: 1.55;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font-body);
    font-size: var(--text-size);
    line-height: var(--text-line);
    font-weight: 400;
    color: var(--text);
    background: linear-gradient(160deg, var(--cream) 0%, var(--orange-light) 45%, var(--cream-deep) 100%);
}

.shell {
    max-width: 560px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3rem;
}

.header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.logo {
    max-width: 200px;
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(196, 92, 38, 0.15));
}

.card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 180, 120, 0.35);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 12px 40px rgba(180, 100, 40, 0.12);
    backdrop-filter: blur(8px);
}

.card h1 {
    margin: 0 0 0.75rem;
    font-weight: 700;
    color: var(--accent);
}

.card p { margin: 0.65rem 0; }
.card strong { font-weight: 700; }
.card-lead { margin-top: 0; }

label, .field-label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

input[type="text"], select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 2px solid var(--border-orange);
    background: #fffef9;
    font-family: var(--font-body);
    font-size: var(--text-size);
    line-height: var(--text-line);
    color: var(--text);
}

input:focus, select:focus {
    outline: 2px solid var(--orange-mid);
    border-color: var(--accent);
}

.field { margin-bottom: 1.15rem; }
.hint { margin-top: 0.25rem; color: var(--text); }

.error-banner {
    background: #fff0e8;
    border: 1px solid #f0b090;
    color: #8b3a1a;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.btn {
    font-family: var(--font-body);
    font-size: var(--text-size);
    font-weight: 700;
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #e8894a 0%, var(--accent) 100%);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(196, 92, 38, 0.35);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(196, 92, 38, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.85);
    color: var(--accent);
    border: 2px solid var(--border-orange) !important;
    box-shadow: none;
}

.btn-inline,
.account-code-copy {
    width: auto;
    min-width: 4.25rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(196, 92, 38, 0.28);
}

.box-panel {
    border: 2px solid var(--border-orange);
    border-radius: 12px;
    background: rgba(255, 254, 249, 0.85);
    padding: 1.1rem 1.05rem;
    margin-bottom: 1rem;
}

.box-panel-title {
    margin: 0 0 0.65rem;
    font-weight: 700;
}

.section-divider {
    display: block;
    width: 100%;
    height: 2px;
    margin: 1.15rem 0;
    border: none;
    background-image: repeating-linear-gradient(
        90deg,
        var(--border-orange) 0,
        var(--border-orange) 10px,
        transparent 10px,
        transparent 18px
    );
}

.account-summary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid var(--border-orange);
    border-radius: 8px;
    overflow: hidden;
    background: #fffef9;
}

.account-summary-table th,
.account-summary-table td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(196, 92, 38, 0.25);
    font-size: var(--text-size);
}

.account-summary-table tr:last-child th,
.account-summary-table tr:last-child td {
    border-bottom: none;
}

.account-summary-table th {
    width: 42%;
    font-weight: 700;
    background: rgba(255, 232, 210, 0.35);
}

.status-pill {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-pill.is-ok {
    background: rgba(159, 212, 159, 0.35);
    color: #2d5a2d;
}

.status-pill.is-bad {
    background: rgba(240, 176, 144, 0.35);
    color: #8b3a1a;
}

.config-output-wrap {
    border: 2px solid var(--border-orange);
    border-radius: 8px;
    background: #fffef9;
    overflow: hidden;
}

.config-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(196, 92, 38, 0.25);
    background: rgba(255, 232, 210, 0.35);
}

.config-output-header strong {
    font-weight: 700;
    color: var(--accent);
}

.config-pre {
    margin: 0;
    padding: 0.85rem 0.75rem;
    max-height: 320px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text);
    background: #fffef9;
}

.logout-row {
    margin-top: 0.75rem;
    text-align: right;
}

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

.logout-link:hover {
    text-decoration: underline;
}

.config-update-warning {
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(196, 92, 38, 0.45);
    background: #fff4e8;
    color: #6b3f1f;
    font-size: 0.95rem;
    line-height: 1.5;
}

.option-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-choice {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 2px solid var(--border-orange);
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.option-choice input {
    margin: 0;
}

.option-note {
    margin: 0.5rem 0 0;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(196, 92, 38, 0.25);
    background: rgba(255, 232, 210, 0.35);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
}

.option-note.is-warning {
    background: #fff9f0;
    border-color: rgba(196, 92, 38, 0.4);
    color: #6b3f1f;
}

footer.note {
    margin-top: 1.25rem;
    color: #8a7868;
    text-align: center;
}
