/* FreeVPNOffer base styles. Branding (anonymoX colors, fonts, logo) arrives in Stage 5. */
:root {
    --ink: #1d2433;
    --muted: #5b6475;
    --line: #e3e6ec;
    --bg: #f7f8fa;
    --card: #ffffff;
    --accent: #1f6feb;
    --danger: #b42318;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 32px; padding-bottom: 48px; min-height: 70vh; }

.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { text-decoration: none; }
.lang a { color: var(--muted); margin-left: 6px; font-size: .9rem; }
.lang a.active { color: var(--ink); font-weight: 600; }
.inline { display: inline; }
.link-button { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }

.button { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 12px 20px; font-weight: 600; text-decoration: none; cursor: pointer; font-size: 1rem; }
.button.small { padding: 8px 14px; font-size: .9rem; }

.hero { padding: 40px 0 24px; }
.hero h1 { font-size: 2.2rem; margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.steps ol { padding-left: 20px; }
.steps li { margin-bottom: 8px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.card.narrow { max-width: 460px; margin: 40px auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.stats { display: flex; gap: 16px; flex-wrap: wrap; margin: 20px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; min-width: 180px; }
.stat-label { display: block; color: var(--muted); font-size: .875rem; }
.stat-value { display: block; font-size: 1.8rem; font-weight: 700; }

.notice { background: #eef4ff; border: 1px solid #c9dafc; border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; }
.notice.error { background: #fef3f2; border-color: #fecdca; color: var(--danger); }
.field-error { color: var(--danger); margin: 6px 0 0; }

label { display: block; font-weight: 600; margin: 16px 0 6px; }
input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; }
input#code { font-size: 1.1rem; letter-spacing: .2em; }
input.num { max-width: 180px; }
input.check { width: auto; }
input.file { border: 0; padding: 0; }
form .button { margin-top: 16px; }
.qr { display: flex; justify-content: center; margin: 16px 0; }
.secret { word-break: break-all; }

.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }

.site-footer { border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: .875rem; }

.button.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.button[disabled] { background: #c5cad3; cursor: not-allowed; }
.actions { display: flex; gap: 12px; margin-top: 16px; }
.actions form .button { margin-top: 0; }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tier { border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.tier-name { font-weight: 700; font-size: 1.15rem; }
.tier-price { color: var(--muted); margin: 6px 0 12px; }
.tier form .button, .tier .button { margin-top: 0; width: 100%; }

code.key { font-size: 1.05rem; letter-spacing: .08em; user-select: all; }
tr.highlight td { background: #eef8ee; }

.subnav { display: flex; gap: 18px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 20px; }
.subnav a { text-decoration: none; color: var(--muted); }
.subnav a.active { color: var(--ink); font-weight: 600; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.badge.warn { background: #fff4e5; color: #8a4b00; }
.badge.danger { background: #fef3f2; color: var(--danger); }

.search { display: flex; gap: 12px; margin-bottom: 20px; }
.search input { max-width: 360px; }
.search .button { margin-top: 0; }

select { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; background: #fff; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.small-input { padding: 4px 8px; font-size: .85rem; max-width: 160px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.offer { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; }
.offer-image { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; margin-bottom: 8px; }
.offer-title { font-size: 1rem; margin: 0 0 6px; }
.offer-req { color: var(--muted); font-size: .875rem; margin: 0 0 12px; flex: 1; }
.offer-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.offer-points { font-weight: 700; }
.offer-foot .button { margin-top: 0; }
