@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg: #0a0b0d;
    --card-bg: rgba(13, 17, 21, 0.74);
    --card-border: rgba(70, 190, 255, 0.22);
    --accent-1: #22c3ff;
    --accent-2: #0d6fc7;
    --text-primary: #eef2f6;
    --text-muted: #97a3ad;
    --input-bg: rgba(255, 255, 255, 0.03);
    --input-border: rgba(255, 255, 255, 0.12);
    --input-border-focus: rgba(34, 195, 255, 0.55);
    --divider: rgba(255, 255, 255, 0.08);
    --radius: 18px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    font-family: 'Inter', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text-primary);
    margin: 0;
    padding: 40px 16px 60px;
    background: #0a0b0d;
    background-image:
        linear-gradient(180deg, rgba(6,7,9,0.62) 0%, rgba(6,7,9,0.88) 60%, rgba(6,7,9,0.96) 100%),
        url('assets/bg-hero.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.wrap { max-width: 620px; margin: 0 auto; }

.brand-head { text-align: center; margin-bottom: 28px; }
.brand-head img {
    width: 64px;
    height: auto;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 18px rgba(34, 195, 255, 0.35));
}
.eyebrow {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-1);
    margin-bottom: 8px;
}
h1 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.25;
    margin: 0 0 8px;
}
.subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 4px; }

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 26px 28px;
    margin-bottom: 22px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.card h2 {
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--divider);
    color: var(--text-primary);
}

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
    margin-top: 16px;
}
label:first-of-type { margin-top: 0; }

input[type=number], input[type=text], input[type=password], select {
    width: 100%;
    padding: 11px 12px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder { color: #5b6570; }
input:focus, select:focus {
    outline: none;
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 3px rgba(34, 195, 255, 0.15);
}

.row { display: flex; gap: 16px; }
.row > div { flex: 1; }
.row > div:not(:last-child) { margin-right: 16px; }
.row { gap: 0; }
@supports (gap: 16px) { .row { gap: 16px; } .row > div:not(:last-child) { margin-right: 0; } }

.toggle {
    display: flex;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 6px;
    background: var(--input-bg);
}
.toggle label {
    flex: 1;
    text-align: center;
    margin: 0;
    padding: 10px 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-muted);
    transition: background 0.15s ease, color 0.15s ease;
}
.toggle input { display: none; }
.toggle input:checked + label {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #06121a;
    font-weight: 600;
}

.checkbox-line { display: flex; align-items: center; gap: 9px; margin-top: 16px; }
.checkbox-line input { width: 17px; height: 17px; accent-color: var(--accent-1); }
.checkbox-line label { margin: 0; font-weight: 500; color: var(--text-primary); font-size: 14px; }

button {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #06121a;
    border: none;
    padding: 13px 20px;
    border-radius: 10px;
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 22px;
    transition: filter 0.15s ease, transform 0.1s ease;
}
button:hover { filter: brightness(1.08); }
button:active { transform: translateY(1px); }

.result-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 1px dashed var(--divider);
}
.result-line span:last-child { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.result-line.total {
    font-family: 'Sora', sans-serif;
    font-size: 19px;
    font-weight: 700;
    border-bottom: none;
    border-top: 1px solid var(--divider);
    margin-top: 10px;
    padding-top: 16px;
    color: var(--text-primary);
}
.result-line.total span:last-child {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.result-line.sub span:first-child { color: var(--text-muted); }

.note { font-size: 12px; color: #6b7580; margin-top: 18px; line-height: 1.6; }
.note a { color: var(--accent-1); }

.admin-link { text-align: center; margin-top: 8px; }
.admin-link a { color: var(--text-muted); font-size: 12px; text-decoration: none; border-bottom: 1px solid transparent; }
.admin-link a:hover { color: var(--accent-1); border-bottom-color: var(--accent-1); }

table.settings { width: 100%; border-collapse: collapse; }
table.settings td { padding: 10px 4px; border-bottom: 1px solid var(--divider); font-size: 13px; vertical-align: middle; color: var(--text-muted); }
table.settings td:first-child { width: 62%; }
table.settings input { width: 130px; }

.msg-ok {
    background: rgba(34, 195, 255, 0.12);
    border: 1px solid rgba(34, 195, 255, 0.3);
    color: #8fe0ff;
    padding: 11px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
}
.msg-err {
    background: rgba(255, 90, 90, 0.1);
    border: 1px solid rgba(255, 90, 90, 0.3);
    color: #ff9c9c;
    padding: 11px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
}
.login-box { max-width: 360px; margin: 90px auto 0; }
.login-box p.note { text-align: center; }

@media (max-width: 480px) {
    .row { flex-direction: column; gap: 0; }
    .card { padding: 22px 18px; }
}
