/* Members' area (elitliveagency.hu/tag/ and the login page): the public site's TikTok-style dark look, phone first. */

@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 {
  --bg: #000;
  --surface: #161823;
  --surface-2: #1F2130;
  --line: rgba(255, 255, 255, .12);
  --text: #fff;
  --muted: #A6A7AB;
  --cyan: #25F4EE;
  --red: #FE2C55;
  --red-d: #E2163F;
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 760px;
  --gutter: 16px;
  --r: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(26px, 6vw, 34px); font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
h2 small { font: 500 13px var(--body); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
a { color: var(--cyan); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 17px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 420px) { .tg-top .logo-name { display: none; } }
.logo-mark {
  display: inline-grid; place-items: center; height: 30px; padding: 0 9px; border-radius: 8px;
  background: var(--text); color: var(--bg); font: 800 14px/1 var(--display); letter-spacing: .02em;
  box-shadow: -2px -2px 0 var(--cyan), 2px 2px 0 var(--red);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 10px;
  background: var(--red); color: #fff; font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s;
}
.btn:hover { background: var(--red-d); }
.btn-wide { width: 100%; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-tt { min-height: 54px; font-size: 17px; }

.flash { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: rgba(37, 244, 238, .1); border: 1px solid rgba(37, 244, 238, .35); color: var(--text); font-size: 15px; }
.flash-err { background: rgba(254, 44, 85, .12); border-color: rgba(254, 44, 85, .5); }

/* ---------- login card, preview picker ---------- */
.tg-auth { justify-content: center; align-items: center; padding: 24px var(--gutter); }
.tg-card { width: 100%; max-width: 420px; display: grid; gap: 16px; padding: 28px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.tg-card-wide { max-width: 560px; }
.tg-card h1 { margin-top: 6px; }
.tg-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.tg-points li { padding-left: 24px; position: relative; }
.tg-points li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }
.tg-form { display: grid; gap: 14px; }
.tg-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.tg-form input { min-height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 400 16px var(--body); }
.tg-pick { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tg-pick a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); color: var(--text); text-decoration: none; }
.tg-pick a:hover { outline: 1px solid var(--cyan); }
.tg-pick span, .tg-pick small { color: var(--muted); font-size: 13px; }

/* ---------- shell ---------- */
.tg-top { position: sticky; top: 0; z-index: 20; background: rgba(0, 0, 0, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.tg-top-in { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tg-me { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; min-width: 0; }
.tg-me > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 38vw; }
.tg-preview { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; margin: 0; padding: 8px var(--gutter); background: var(--cyan); color: #000; font-size: 14px; text-align: center; }
.tg-preview p { margin: 0; }
.tg-preview a { color: #000; font-weight: 700; }
.tg-preview .tg-preview-back { padding: 6px 14px; border-radius: 999px; background: #000; color: #fff; text-decoration: none; white-space: nowrap; }
.tg-top.tg-top-static { position: static; }
.tg-main { flex: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 20px var(--gutter) 28px; display: grid; gap: 16px; align-content: start; }

.ava { position: relative; flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--surface-2); }
.ava::before { content: attr(data-initials); font: 700 12px var(--body); color: var(--muted); }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; color: transparent; }
.ava-lg { width: 72px; height: 72px; }
.ava-lg::before { font-size: 22px; }

/* Tab bar: sticky at the bottom AFTER </main> (position: fixed floats mid-screen in iPhone Safari). */
.tg-tabs {
  position: sticky; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(0, 0, 0, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tg-tabs a { display: grid; justify-items: center; gap: 3px; padding: 9px 4px 8px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; }
.tg-tabs a[aria-current] { color: var(--text); }
.tg-tabs a[aria-current] svg { color: var(--cyan); filter: drop-shadow(1.5px 1.5px 0 var(--red)); }

/* ---------- content ---------- */
.tg-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.tg-head p { margin-top: 6px; }
.tg-months { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tg-months a { padding: 7px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.tg-months a[aria-current] { background: var(--text); color: var(--bg); }

.tg-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tg-kpis > div { padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; }
.tg-kpis strong { font: 800 30px/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tg-kpis span { color: var(--muted); font-size: 14px; }
.tg-kpis-3 { grid-template-columns: repeat(3, 1fr); margin: 12px 0; }
.tg-kpis-3 > div { background: var(--surface-2); border: 0; padding: 12px; }
.tg-kpis-3 strong { font-size: 22px; }
.tg-kpis-3 span { font-size: 13px; }

.tg-panel { padding: 18px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; }
.tg-text { line-height: 1.6; }
.tg-text ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.tg-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--cyan); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tg-chip { padding: 2px 8px; border-radius: 999px; background: rgba(37, 244, 238, .14); color: var(--cyan); letter-spacing: 0; text-transform: none; }
.tg-chip-red { background: rgba(254, 44, 85, .16); color: #FF7A93; }
.tg-news time { color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 500; }
.tg-news.is-pinned { border-color: rgba(254, 44, 85, .5); }

.tg-bonus { padding: 20px 16px; border-radius: var(--r); display: grid; gap: 10px; background: linear-gradient(135deg, rgba(37, 244, 238, .14), rgba(254, 44, 85, .16)), var(--surface); border: 1px solid var(--line); }
.tg-bonus h2 { font-size: 24px; font-weight: 800; }
.tg-pct { color: var(--cyan); }
.tg-gift strong { font-size: 18px; }
.tg-next { display: grid; gap: 10px; margin-top: 4px; }
.tg-free { margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.prog { display: grid; gap: 5px; }
.prog-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.prog-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.prog-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--cyan); transition: width .5s ease; }
.prog-done .prog-bar i { background: #3DDC84; }

.tg-days { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tg-days li { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
.tg-day { color: var(--muted); }
.tg-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.tg-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--red)); transition: width .5s ease; }
.tg-days .is-short { opacity: .5; }
.tg-num { white-space: nowrap; }

.tg-newslink { display: grid; gap: 6px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.tg-newslink:hover { border-color: var(--cyan); }

.tg-profile { grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
.tg-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.tg-dl dt { color: var(--muted); }
.tg-dl dd { margin: 0; text-align: right; overflow-wrap: anywhere; }

.tg-tablewrap { overflow-x: auto; margin: 0 -4px; }
.tg-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tg-table th, .tg-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tg-table thead th { color: var(--muted); font-weight: 600; font-size: 13px; }
.tg-table .is-mine { background: rgba(37, 244, 238, .08); }
.tg-tagme { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--cyan); color: #000; font-size: 12px; font-weight: 700; }

@media (min-width: 760px) {
  :root { --gutter: 24px; }
  .tg-kpis { grid-template-columns: repeat(4, 1fr); }
  .tg-kpis-3 { grid-template-columns: repeat(3, 1fr); }
  .tg-panel, .tg-bonus { padding: 24px; }
  .tg-main { padding-top: 32px; gap: 20px; }
  .tg-tabs { position: static; order: -1; grid-template-columns: repeat(5, auto); justify-content: center; gap: 4px; border-top: 0; border-bottom: 1px solid var(--line); padding: 6px var(--gutter); }
  .tg-tabs a { grid-auto-flow: column; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 15px; }
  .tg-tabs a[aria-current] { background: var(--surface); }
  .tg-top { position: static; order: -2; }
  .tg-preview { order: -3; }
}

@media (prefers-reduced-motion: reduce) {
  .prog-bar i, .tg-bar i, .btn { transition: none; }
}

/* owner preview note on the bonus page while the bonus is switched off */
.tg-peek { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; border: 1px dashed rgba(255, 196, 0, .6); background: rgba(255, 196, 0, .08); color: #FFE08A; font-size: 14px; line-height: 1.45; }
.tg-peek strong { color: #fff; }

/* sign-in: "or" between the password form and the TikTok button; consent line of the invite form */
.tg-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.tg-or::before, .tg-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tg-form .tg-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.tg-form .tg-check input { min-height: 0; width: 20px; height: 20px; margin-top: 2px; flex: none; }

/* the page does not rubber-band while pulling down to refresh (app.js) */
html { overscroll-behavior-y: contain; }
