/* Hungarian Live Agency
   The public hero is the flag itself: three full-bleed bands, one word on each.
   Everything else stays quiet: white, a cool paper tone, ink, and the flag red
   and green used only where they carry meaning (action = red, progress = green). */

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(fonts/bricolage-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(fonts/bricolage-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/instrument-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/instrument-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --red: #CE2939;
  --red-d: #A81F2E;
  --red-t: #FBEDEE;
  --green: #2E6B46;
  --green-d: #133222;
  --green-t: #E6F0E9;
  --white: #FFFFFF;
  --paper: #F3F6F3;
  --ink: #15201A;
  --muted: #56635B;
  --line: #D6DED8;

  --display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --text: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 6px;
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-d); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

/* ---------- brand mark: a tiny flag ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 17px/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.mark { display: inline-flex; flex-direction: column; width: 22px; height: 16px; border-radius: 3px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(21, 32, 26, .14); flex: 0 0 auto; }
.mark i { flex: 1; }
.mark i:nth-child(1) { background: var(--red); }
.mark i:nth-child(2) { background: var(--white); }
.mark i:nth-child(3) { background: var(--green); }
.brand-lg { font-size: 19px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-sm);
  border: 2px solid transparent; cursor: pointer;
  font: 600 16px/1 var(--text); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-d); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-danger { background: transparent; color: var(--red-d); border-color: #E8B4BA; }
.btn-danger:hover { background: var(--red-d); border-color: var(--red-d); color: var(--white); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-wide { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--red-d); }

/* =========================================================
   PUBLIC SITE
   ========================================================= */
.topbar {
  display: flex; align-items: center; gap: 24px;
  max-width: var(--wrap); margin-inline: auto;
  padding: 18px var(--gutter);
}
.topnav { display: flex; gap: 28px; margin-left: auto; }
.topnav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.topnav a:hover { color: var(--red); }
.topbar > .btn { margin-left: 0; }
.topnav + .btn { margin-left: 8px; }
.doc .topbar .btn { margin-left: auto; }

/* --- the flag hero --- */
.hero { padding-bottom: clamp(48px, 8vw, 96px); }
.flag { margin: 0; font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-size: clamp(60px, 14.5vw, 196px); }
.band { display: block; position: relative; overflow: hidden; }
.band::before { content: ''; position: absolute; inset: 0; transform-origin: left center; animation: wipe .8s cubic-bezier(.2, .8, .2, 1) both; }
.band-r::before { background: var(--red); }
.band-w::before { background: var(--white); }
.band-g::before { background: var(--green); }
.band-w::before { animation-delay: .1s; }
.band-g::before { animation-delay: .2s; }
.band-in {
  position: relative; display: flex; align-items: center; gap: .18em;
  max-width: var(--wrap); margin-inline: auto;
  padding: .1em var(--gutter) .14em;
  animation: rise .7s .25s cubic-bezier(.2, .8, .2, 1) both;
}
.band-r .band-in, .band-g .band-in { color: var(--white); }
.band-w .band-in { color: var(--ink); animation-delay: .32s; }
.band-g .band-in { animation-delay: .39s; }
.band-w { box-shadow: inset 0 1px 0 rgba(0, 0, 0, .04), inset 0 -1px 0 rgba(0, 0, 0, .04); }

.onair {
  margin-left: auto; align-self: center;
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--white); color: var(--red);
  font: 700 clamp(14px, 1.6vw, 20px)/1 var(--text); letter-spacing: 0;
  padding: .6em 1em .6em .85em; border-radius: 999px;
}
.dot { position: relative; width: .62em; height: .62em; border-radius: 50%; background: var(--red); }
.dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: pulse 1.6s ease-out infinite; }

@keyframes wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(.18em); } to { opacity: 1; transform: none; } }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(2.6); opacity: 0; } }

.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; padding-top: clamp(32px, 5vw, 56px); }
.lead { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.5; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- sections --- */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec-tint { background: var(--paper); }
.sec-head { max-width: 40em; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(36px, 5.2vw, 64px); letter-spacing: -0.035em; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 88px); }
.services li { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.services h3 { font-size: clamp(22px, 2.3vw, 27px); margin-bottom: 8px; }
.services p { color: var(--muted); max-width: 32em; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.steps li { position: relative; padding-top: 22px; border-top: 4px solid var(--green); }
.steps li:first-child { border-top-color: var(--red); }
.step-n { display: block; font: 800 clamp(48px, 5vw, 64px)/1 var(--display); color: var(--green); letter-spacing: -0.04em; margin-bottom: 14px; }
.steps li:first-child .step-n { color: var(--red); }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { color: var(--muted); }

.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 0;
  font: 700 clamp(19px, 2vw, 22px)/1.3 var(--display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 40em; }

/* --- application form --- */
.apply { background: var(--green-d); color: var(--white); padding-block: clamp(64px, 9vw, 120px); }
.apply-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.apply h2 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.04em; }
.apply-intro p { margin-top: 16px; color: #C9D8CE; font-size: 18px; max-width: 26em; }
.apply-done { background: var(--white); color: var(--ink); border-radius: var(--r); padding: 32px; border-top: 6px solid var(--red); }
.apply-done h3 { font-size: 26px; margin-bottom: 8px; }
.form-dark .fld, .form-dark .chk { color: var(--white); }
.form-dark .fld small { color: #A9BFB0; }
.form-dark .chk a { color: var(--white); }
.form-dark .ferr { color: #FFB3BB; }
.form-dark .ferr-box { background: rgba(206, 41, 57, .18); color: var(--white); }
.form-dark input[type="text"], .form-dark input[type="email"], .form-dark input[type="tel"], .form-dark textarea { border-color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.foot { border-top: 1px solid var(--line); padding-block: 36px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav a { color: var(--ink); font-size: 15px; }
.foot .copy { width: 100%; color: var(--muted); font-size: 14px; }

.prose { max-width: 760px; padding-block: 40px 96px; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.035em; margin-bottom: 8px; }
.prose h2 { font-size: 24px; margin: 36px 0 10px; }
.prose p + p { margin-top: 12px; }
.prose > p:last-child { margin-top: 40px; }

/* =========================================================
   FORMS (shared)
   ========================================================= */
.form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fld { display: block; font-weight: 600; font-size: 15px; }
.fld > input, .fld > textarea, .fld > select, .fld > .at { display: block; margin-top: 7px; }
.fld > .ferr { margin-top: 6px; }
.fld small { font-weight: 400; color: var(--muted); }
.fld input, .fld textarea, .fld select, .edit-table input {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: 400 16px/1.4 var(--text); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-sm);
}
.fld textarea { resize: vertical; min-height: 110px; }
.fld input:focus, .fld textarea:focus, .fld select:focus, .edit-table input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46, 107, 70, .25); }
.fld input[aria-invalid="true"], .fld textarea[aria-invalid="true"] { border-color: var(--red); }
.at { position: relative; display: block; }
.at::before { content: '@'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 500; pointer-events: none; }
.at input { padding-left: 32px; }
.chk { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; cursor: pointer; }
.chk input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); flex: 0 0 auto; }
.chk-inline { font-size: 14px; align-items: center; }
.ferr { color: var(--red-d); font-size: 14px; font-weight: 500; }
.chk + .ferr { margin-top: -8px; }
.ferr-box { margin: 0; padding: 12px 14px; background: var(--red-t); border-radius: var(--r-sm); }
.formrow { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* =========================================================
   LOGIN
   ========================================================= */
.auth { background: var(--paper); min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px var(--gutter); }
.authbox { width: 100%; max-width: 420px; background: var(--white); border-radius: var(--r); padding: clamp(28px, 5vw, 40px); border-top: 6px solid var(--red); box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(19, 50, 34, .35); }
.authbox h1 { font-size: 32px; margin: 28px 0 6px; letter-spacing: -0.03em; }
.authbox > .muted { margin-bottom: 22px; font-size: 15px; }
.authbox .form { margin-bottom: 20px; }
.authbox .small + .small { margin-top: 10px; }

/* =========================================================
   MEMBER + ADMIN AREA
   ========================================================= */
.app { background: var(--paper); min-height: 100vh; }
.appbar { background: var(--white); position: sticky; top: 0; z-index: 5; }
.appbar-in { max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; min-height: 64px; }
.tricolor { display: flex; height: 4px; }
.tricolor i { flex: 1; }
.tricolor i:nth-child(1) { background: var(--red); }
.tricolor i:nth-child(2) { background: var(--white); box-shadow: inset 0 -1px 0 var(--line); }
.tricolor i:nth-child(3) { background: var(--green); }
.appnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.appnav a { white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: var(--r-sm); }
.appnav a:hover { background: var(--paper); }
.appnav a[aria-current="page"] { background: var(--green-t); color: var(--green-d); font-weight: 600; }
.appnav .switch { color: var(--red-d); font-weight: 600; }
.appnav-sep { width: 1px; height: 24px; background: var(--line); margin: 0 8px; }
.logout { margin: 0; }
.logout button { background: none; border: 0; font: 500 15px var(--text); color: var(--muted); padding: 8px 12px; cursor: pointer; border-radius: var(--r-sm); }
.logout button:hover { color: var(--ink); background: var(--paper); }
.navtoggle { display: none; }

.appmain { max-width: var(--wrap); margin-inline: auto; padding: clamp(28px, 4vw, 48px) var(--gutter) 96px; }
.pagehead { margin-bottom: 28px; }
.pagehead h1 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.035em; }
.pagehead p { margin-top: 6px; }
.pagehead-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

.flash { background: var(--green-t); color: var(--green-d); border-left: 4px solid var(--green); padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 20px; font-weight: 500; }
.flash-err { background: var(--red-t); color: var(--red-d); border-left-color: var(--red); }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 28px); margin-bottom: 20px; }
.panel h2 { font-size: 22px; margin-bottom: 14px; }
.panel-key { border: 2px solid var(--red); }
.creds { background: var(--paper); border-radius: var(--r-sm); padding: 14px 16px; font: 500 15px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-all; margin: 12px 0; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.cols > .panel { margin-bottom: 0; }
.empty { background: var(--white); border: 1.5px dashed var(--line); border-radius: var(--r); padding: 40px 24px; text-align: center; color: var(--muted); }

.tag { display: inline-block; font: 600 12px/1 var(--text); padding: 5px 8px; border-radius: 4px; background: var(--paper); color: var(--muted); }
.tag-red { background: var(--red-t); color: var(--red-d); }
.tag-green { background: var(--green-t); color: var(--green-d); }

/* news */
.newslist { display: grid; gap: 16px; max-width: 820px; }
.news { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); }
.news-pin { border-left: 5px solid var(--red); }
.news-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.news h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 12px; }
.news-body p + p { margin-top: 12px; }
.news-body a { word-break: break-word; }

/* bonus table */
.bonus { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.bonus-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bonus-table th, .bonus-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.bonus-table thead th { background: var(--ink); color: var(--white); font: 600 14px/1.2 var(--text); }
.bonus-table thead th.col-top { background: var(--red); }
.bonus-table tbody tr:last-child > * { border-bottom: 0; }
.bonus-table td { font-size: 17px; }
.bonus-table .num { font: 800 24px/1 var(--display); letter-spacing: -0.02em; }
.bonus-table td.col-top { background: var(--red-t); color: var(--red-d); }
.lvl { display: inline-block; font: 700 16px/1 var(--display); padding: 9px 12px; border-radius: var(--r-sm); white-space: nowrap; }
.lvl-1 { background: var(--green-t); color: var(--green-d); }
.lvl-2 { background: #CFE2D6; color: var(--green-d); }
.lvl-3 { background: var(--green); color: var(--white); }
.lvl-4 { background: var(--green-d); color: var(--white); }
.lvl-5 { background: var(--red); color: var(--white); }
.note { margin-top: 20px; max-width: 820px; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: var(--r); padding: clamp(20px, 3vw, 28px); }
.note h2 { font-size: 20px; margin-bottom: 10px; }
.note p + p { margin-top: 10px; }

/* account */
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0 0 14px; }
.dl dt { color: var(--muted); font-size: 15px; }
.dl dd { margin: 0; font-weight: 500; word-break: break-word; }

/* admin */
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.quick-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; text-decoration: none; color: var(--ink); display: flex; align-items: baseline; gap: 10px; }
.quick-item:hover { border-color: var(--green); color: var(--ink); }
.quick-item strong { font: 800 40px/1 var(--display); letter-spacing: -0.03em; }
.quick-item:first-child strong { color: var(--red); }
.links { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.mini { list-style: none; margin: 0; padding: 0; }
.mini li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.mini li:first-child { border-top: 0; padding-top: 0; }
.mini .st { margin-left: auto; }

.rows { list-style: none; margin: 0 0 20px; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.rowitem { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 20px; border-top: 1px solid var(--line); }
.rowitem:first-child { border-top: 0; }
.rowitem.is-off { background: #FAFAFA; }
.rowitem.is-off strong { color: var(--muted); }
.rowmain { display: grid; gap: 2px; min-width: 0; }
.rowmain .news-meta { margin-bottom: 4px; }
.rowmain .muted { font-size: 14px; word-break: break-word; }
.rowact { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.rowact form { margin: 0; }

.st { display: inline-block; font: 600 13px/1 var(--text); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.st-uj { background: var(--red); color: var(--white); }
.st-kapcsolatban { background: #FFF1CC; color: #6B4E00; }
.st-elfogadva { background: var(--green-t); color: var(--green-d); }
.st-elutasitva { background: var(--paper); color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters a { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.filters a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.app-card { margin: 0; }
.app-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.app-head h2 { margin: 0 0 2px; }
.quote { background: var(--paper); border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 16px; font-size: 15px; }
.quote p + p { margin-top: 8px; }
.app-form { padding-top: 16px; border-top: 1px solid var(--line); }
.app-del { margin-top: 14px; }

.edit-table-wrap { overflow-x: auto; }
.edit-table { width: 100%; border-collapse: collapse; }
.edit-table th { text-align: left; font: 600 13px/1.3 var(--text); color: var(--muted); padding: 0 8px 10px; }
.edit-table td { padding: 6px 8px; vertical-align: middle; }
.edit-table td:first-child { min-width: 160px; }
.edit-table input { min-height: 44px; }
.edit-table .newrow input { background: var(--paper); border-style: dashed; }

/* member status card (bonus page) */
.status { background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--green); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); margin-bottom: 20px; }
.status-empty { border-top-color: var(--line); }
.status-empty h2 { font-size: 22px; margin-bottom: 8px; }
.status-head h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.03em; margin: 4px 0 6px; }
.status-pct { color: var(--red); }
.status-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.status-nums div { background: var(--paper); border-radius: var(--r-sm); padding: 12px 14px; }
.status-nums span { display: block; font-size: 13px; color: var(--muted); }
.status-nums strong { font: 800 28px/1.15 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.status-next h3 { font-size: 18px; margin-bottom: 12px; }
.status-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.prog { margin-bottom: 12px; }
.prog-top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 6px; }
.prog-bar { height: 10px; background: var(--paper); border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.prog-bar i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.prog-done .prog-bar i { background: var(--green-d); }
.bonus-table tr.is-mine > * { background: var(--green-t); }
.bonus-table tr.is-mine td.col-top { background: #F3DADD; }
.bonus-table td.is-applied { box-shadow: inset 0 0 0 3px var(--green); }
.bonus-table td.col-top.is-applied { box-shadow: inset 0 0 0 3px var(--red); }
.mine-tag { display: inline-block; margin-left: 8px; font: 600 12px/1 var(--text); background: var(--green-d); color: var(--white); padding: 5px 8px; border-radius: 4px; vertical-align: middle; }
.quick-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quick div.quick-item:first-child strong { color: var(--ink); }
.statfoot { margin-top: 14px; max-width: 760px; }
.pagehead-row .filters { margin-bottom: 0; }
.day-table td, .rank-table td { font-size: 16px; }
.rank-table .lvl { font-size: 14px; padding: 7px 10px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .topnav { display: none; }
  .topbar > .btn { margin-left: auto; }
  .hero-foot { grid-template-columns: 1fr; align-items: start; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apply-grid { grid-template-columns: 1fr; }
  .apps { grid-template-columns: 1fr; }

}

@media (max-width: 1100px) {
  .navtoggle {
    display: inline-flex; margin-left: auto; align-items: center; min-height: 40px; padding: 0 14px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
    font: 600 15px var(--text); color: var(--ink); cursor: pointer;
  }
  .appnav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px var(--gutter) 16px;
    box-shadow: 0 16px 24px -16px rgba(19, 50, 34, .3);
  }
  .appnav.is-open { display: flex; }
  .appnav a, .logout button { padding: 12px; font-size: 16px; width: 100%; text-align: left; }
  .appnav-sep { width: auto; height: 1px; margin: 6px 0; }
  .appbar { position: sticky; }
  .appbar-in { position: relative; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand span { font-size: 15px; }
  .topbar { gap: 12px; padding-block: 14px; }
  .onair { font-size: 12px; }
  .cta .btn { flex: 1 1 auto; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .row2, .cols, .quick { grid-template-columns: 1fr; }
  .quick { gap: 10px; }
  .quick-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-4 .quick-item { flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
  .quick-4 .quick-item strong { font-size: 26px; }
  .status-nums { grid-template-columns: 1fr 1fr; }
  .status-nums strong { font-size: 24px; }
  .mine-tag { margin-left: 4px; }
  .day-table tr, .rank-table tr { grid-template-columns: 1fr 1fr; }
  .rank-table tbody th { order: -1; }
  .quick-item { padding: 14px 18px; }
  .quick-item strong { font-size: 32px; }

  .rowitem { flex-direction: column; align-items: stretch; }
  .rowact { justify-content: flex-start; }

  /* bonus table becomes one card per level */
  .bonus { background: transparent; border: 0; overflow: visible; }
  .bonus-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bonus-table, .bonus-table tbody, .bonus-table tr, .bonus-table th, .bonus-table td { display: block; }
  .bonus-table tr { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
  .bonus-table tbody th { grid-column: 1 / -1; border-bottom: 1px solid var(--line) !important; padding: 14px 16px; }
  .bonus-table td { padding: 12px 16px; border-bottom: 0; }
  .bonus-table td::before { content: attr(data-label); display: block; font: 500 13px/1.3 var(--text); color: var(--muted); margin-bottom: 4px; letter-spacing: 0; }
  .bonus-table td.col-top::before { color: var(--red-d); }
  .bonus-table td:nth-of-type(1), .bonus-table td:nth-of-type(2) { border-bottom: 1px solid var(--line); }

  .edit-table thead { display: none; }
  .edit-table, .edit-table tbody, .edit-table tr, .edit-table td { display: block; }
  .edit-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
  .edit-table td { padding: 0; }
  .edit-table td:first-child { grid-column: 1 / -1; min-width: 0; }
  .edit-table td::before { content: attr(data-label); display: block; font: 500 13px/1.3 var(--text); color: var(--muted); margin-bottom: 4px; }
  .edit-table td:last-child { grid-column: 1 / -1; }
  .edit-table td:last-child:empty { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band::before, .band-in { animation: none; }
  .dot::after { animation: none; display: none; }
}
