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

/* Colors — change these to restyle the whole site */
:root {
  --purple: #4a1f5c;
  --purple-dark: #2e1239;
  --accent: #7a3a94;
  --text: #222;
  --muted: #666;
  --bg: #fff;
  --soft: #f6f1f8;
  --line: #e6dcea;
  --radius: 10px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --header-h: 60px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 18px; font-variant-numeric: lining-nums;
  color: var(--text); background: var(--bg); line-height: 1.6; }
h1, h2, h3, nav, .btn, .home-btn strong, .logo span, .rate .amount, .kicker { font-family: var(--font); }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

/* ---------- Top bar + menu (desktop) ---------- */
#site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  background: var(--purple); color: #fff; padding: 0 20px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; margin-right: auto; white-space: nowrap; }
.logo img { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; }
.logo span { font-weight: 700; font-size: 18px; letter-spacing: .3px; }
#site-header nav ul { list-style: none; margin: 0; padding: 0; }
#site-header nav > ul { display: flex; align-items: center; gap: 2px; }
#site-header nav a { display: block; color: #fff; text-decoration: none; padding: 8px 12px; font-size: 15px; font-weight: 600; border-radius: 6px; white-space: nowrap; }
#site-header nav a:hover, #site-header nav a.active { background: rgba(255,255,255,.15); }
#site-header .has-sub { position: relative; display: flex; align-items: center; }
#site-header .has-sub > a { padding-right: 4px; }
.sub-toggle { background: none; border: 0; color: #fff; font-size: 13px; padding: 8px 8px 8px 2px; cursor: pointer; }
#site-header .has-sub > ul { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; padding: 8px;
  background: #fff; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
#site-header .has-sub > ul a { color: var(--text); font-weight: 400; padding: 8px 12px; }
#site-header .has-sub > ul a:hover, #site-header .has-sub > ul a.active { background: var(--soft); color: var(--purple); }
#site-header .has-sub:hover > ul, #site-header .has-sub:focus-within > ul { display: block; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; width: 44px; height: 44px; cursor: pointer; }

/* ---------- Page header (title band) ---------- */
.hero { text-align: center; padding: 48px 20px 42px; color: #fff;
  background: linear-gradient(135deg, #5b2a70 0%, #7a3a94 55%, #9b59b6 100%); }
.hero h1 { margin: 0; color: #fff; font-size: clamp(28px, 5vw, 44px); line-height: 1.2; }
.hero h1::after { content: ""; display: block; width: 56px; height: 4px; margin: 16px auto 0; border-radius: 2px; background: #ffc439; }
.hero p { margin: 12px auto 0; max-width: 680px; color: rgba(255,255,255,.9); font-size: 19px; }
.kicker { display: inline-block; margin-bottom: 10px; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.18); text-decoration: none; }
.kicker:hover { background: rgba(255,255,255,.3); }
.hero-home { padding: 64px 20px 56px; }
.hero-home h1 { font-size: clamp(34px, 6vw, 56px); }
.hero-home p { font-size: 21px; }

/* ---------- Page content: bigger, centered ---------- */
main { max-width: 980px; margin: 0 auto; padding: 36px 20px 64px; text-align: center; }
main h2 { color: var(--purple); font-size: 32px; margin: 1.4em 0 .4em; }
main p, main ul { max-width: 780px; margin-left: auto; margin-right: auto; }
main ul { list-style-position: inside; padding: 0; }
main li { margin: 4px 0; }

/* Big buttons (Home and Russian pages) */
.home-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.home-btn { width: 300px; min-height: 140px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 24px 20px;
  text-align: center; text-decoration: none; color: #fff; background: var(--purple); border-radius: var(--radius);
  transition: transform .15s, box-shadow .15s, background .15s; }
.home-btn strong { font-size: 24px; }
.home-btn span { font-size: 15px; opacity: .85; }
.home-btn:hover { background: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.2); }

/* Image tiles, payment logos, crypto cards — every row centered */
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 24px 0; }
.grid > * { width: 220px; }
.grid > img { border-radius: var(--radius); }
.card { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; text-decoration: none; color: inherit; }
.card img { width: 100%; border-radius: var(--radius); }
.tile img { aspect-ratio: 1; object-fit: cover; transition: transform .15s, box-shadow .15s; }
.tile:hover img { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.caption, .price { margin: 0; font-size: 17px; }
figure { margin: 24px 0; text-align: center; }
figure img { max-width: 520px; width: 100%; border-radius: var(--radius); }

/* Payment buttons: PayPal (brand gold) and cards/wallets (white), each with package + price */
.paybuttons { display: grid; grid-template-columns: repeat(2, 290px); justify-content: center; gap: 14px; margin: 24px auto; }
.paybuttons:has(> :only-child) { grid-template-columns: 290px; }
.pay-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px;
  padding: 14px 16px; border-radius: 12px; text-decoration: none; font-family: var(--font);
  font-size: 17px; font-weight: 700; transition: transform .12s, box-shadow .12s, filter .12s; }
.pay-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.pay-paypal { background: #ffc439; color: #003087; }
.pay-paypal:hover { filter: brightness(.96); }
.pay-paypal img { height: 26px; width: auto; }
.pay-cards { background: #fff; color: #111; border: 2px solid #111; }
.pay-cards .marks { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pay-cards .marks img { height: 30px; width: auto; }
.pay-cards .marks em { font-style: normal; font-size: 13px; font-weight: 600; color: #444; }

.pay-btn .item { font-size: 17px; font-weight: 700; line-height: 1.25; }
.pay-btn .price-line { font-size: 15px; font-weight: 600; opacity: .85; }

/* Article questions as pills */
.pills { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 12px 0; }
.pill { display: inline-block; max-width: 100%; padding: 14px 26px; border-radius: 999px; background: var(--soft);
  border: 2px solid var(--accent); color: var(--purple); text-decoration: none; font-family: var(--font);
  font-weight: 600; font-size: 18px; transition: background .15s, color .15s, transform .15s; }
.pill:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* Buttons */
.btn { display: inline-block; background: var(--purple); color: #fff; text-decoration: none; padding: 10px 16px;
  border-radius: 8px; font-weight: 600; font-size: 17px; border: 0; cursor: pointer; }
.btn:hover { background: var(--accent); }

/* Product blocks (flashcards etc.) */
.product { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 24px;
  margin: 40px 0; padding: 36px 24px; background: var(--soft); border: 1px solid var(--line);
  border-top: 6px solid var(--accent); border-radius: 16px; box-shadow: 0 6px 20px rgba(74,31,92,.08); scroll-margin-top: 80px; }
.product + .product { margin-top: 56px; }
.product > img { max-width: 380px; width: 100%; border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.product h2 { margin-top: 0; }

.crypto { background: var(--soft); border-radius: var(--radius); padding: 14px; }
.crypto code { word-break: break-all; font-size: 14px; }

.video { position: relative; aspect-ratio: 16/9; margin: 24px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

.portrait { display: block; width: 280px; margin: 0 auto 24px; border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0,0,0,.15); }

/* Ad rates page */
.rates { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 28px 0; }
.rate { width: 260px; padding: 20px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(0,0,0,.06); display: flex; flex-direction: column; align-items: center; }
.rate .hl { padding: 2px 10px; border-radius: 4px; font-weight: 700; font-size: 20px; }
.rate .handle { margin: 10px 0 6px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.rate .amount { margin: 0; font-size: 26px; font-weight: 700; color: var(--purple); }
.rate.bundle { border: 2px solid var(--purple); }
.info { margin-top: 12px; }
.info p { margin: 0 auto 16px; }

/* Footer */
#site-footer { background: var(--purple-dark); color: #ddd; text-align: center; padding: 28px 20px; font-size: 15px; }
#site-footer p { margin: 6px 0; }
#site-footer .small { font-size: 13px; opacity: .7; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  /* menu becomes a panel under the top bar; only the panel scrolls */
  #site-header nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--purple); overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px 32px; }
  .menu-open #site-header nav { display: block; }
  .menu-open { overflow: hidden; }
  #site-header nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  #site-header nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.12); }
  #site-header nav a { font-size: 18px; padding: 14px 8px; }
  #site-header .has-sub { flex-wrap: wrap; }
  #site-header .has-sub > a { flex: 1; }
  .sub-toggle { font-size: 18px; width: 48px; height: 48px; padding: 0; transition: transform .2s; }
  #site-header .has-sub.open > .sub-toggle { transform: rotate(180deg); }
  #site-header .has-sub:hover > ul, #site-header .has-sub:focus-within > ul { display: none; }
  #site-header .has-sub > ul, #site-header .has-sub.open > ul { position: static; width: 100%; box-shadow: none; background: rgba(0,0,0,.18); border-radius: 8px; padding: 4px; margin-bottom: 10px; }
  #site-header .has-sub.open > ul { display: block; }
  #site-header .has-sub > ul a { color: #fff; font-size: 17px; padding: 10px 14px; }
  #site-header .has-sub > ul a:hover, #site-header .has-sub > ul a.active { background: rgba(255,255,255,.15); color: #fff; }
}
@media (max-width: 600px) {
  .paybuttons, .paybuttons:has(> :only-child) { grid-template-columns: minmax(0, 340px); }
  .grid { gap: 12px; }
  .grid > * { width: calc(50% - 6px); }
  .home-btn { width: 100%; }
  .rate { width: 100%; max-width: 320px; }
  .hero { padding: 36px 16px 30px; }
  .product { padding: 28px 14px; }
  .pill { border-radius: 18px; }
  .hero-home { padding: 48px 16px 40px; }
}

/* ---------- One clean text style ---------- */
body { line-height: 1.65; color: #2b2b2b; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }
main h2 { font-size: 28px; margin: 1.2em 0 .5em; }
main p { color: #3a3a3a; }
/* Lists: left-aligned text in a centered column, with small purple dots */
main ul { list-style: none; max-width: 640px; padding: 0; margin: 0 auto 8px; text-align: left; }
main li { position: relative; padding-left: 22px; margin: 8px 0; }
main li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
/* Short highlighted notes (e.g. top of Flashcards page) */
.note { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--soft); color: var(--purple) !important;
  font-weight: 600; font-size: 16px; }
p.note { display: table; }
.product { text-align: center; }
.home-btn span, .pay-btn .price-line { font-weight: 500; }

/* ---------- Neutral logo ---------- */
.logo-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  background: #ffc439; color: var(--purple); font-weight: 800; font-size: 22px; line-height: 1; }

/* ---------- Apps section ---------- */
.app-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin: 12px 0; }
.app-card { width: 220px; padding: 20px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.05); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.app-link { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.app-link img, .app-link .app-icon-placeholder { width: 120px; height: 120px; border-radius: 26px; object-fit: cover; box-shadow: 0 6px 16px rgba(0,0,0,.15); transition: transform .15s; }
.app-link:hover img, .app-link:hover .app-icon-placeholder { transform: translateY(-3px); }
.app-link strong { font-size: 18px; }
.app-icon-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, #222 0%, #4a4a4a 100%);
  color: #ffc439; font-weight: 800; font-size: 34px; letter-spacing: -1px; }
.app-hero-icon { display: block; width: 140px; height: 140px; margin: 0 auto 24px; border-radius: 30px; object-fit: cover; box-shadow: 0 8px 22px rgba(0,0,0,.18); }

/* Pills in a row (Privacy Policy / Support) */
.pills-row { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0; }
.pill-sm { padding: 7px 16px; font-size: 14px; border-width: 1.5px; }
.app-icon-placeholder.app-hero-icon { display: grid; font-size: 40px; }
.hero-home + main .home-buttons { max-width: 660px; margin: 0 auto; }
.app-cards { gap: 18px; }
.app-card { width: 210px; padding: 20px 10px; }
.pill-sm { padding: 6px 12px; font-size: 13px; }
.app-card .pills-row { gap: 8px; }
@media (max-width: 600px) { .app-card { width: calc(50% - 9px); } .app-link img, .app-link .app-icon-placeholder { width: 96px; height: 96px; border-radius: 22px; } }

/* ===================== Clean content building blocks ===================== */
/* Never scroll sideways on phones: long words/links wrap, nothing wider than the screen */
html, body { overflow-x: clip; }
main { overflow-wrap: break-word; }
main a { overflow-wrap: anywhere; }
main img, main iframe { max-width: 100%; }

.lead { font-size: 21px; font-weight: 500; color: var(--text) !important; max-width: 640px; margin: 0 auto 24px; }
.small-print { font-size: 15px; color: var(--muted) !important; }
.byline { font-size: 14px; color: var(--muted) !important; margin-top: 24px; }
.signoff { margin-top: 32px; font-style: italic; }

/* Key facts in a row */
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 8px auto 28px; max-width: 860px; }
.facts > div { flex: 1 1 200px; max-width: 260px; padding: 16px; background: var(--soft); border-radius: 14px; display: flex; flex-direction: column; gap: 4px; }
.facts strong { font-size: 18px; color: var(--purple); }
.facts span { font-size: 15px; color: var(--muted); line-height: 1.4; }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; max-width: 640px; margin: 0 auto 8px; padding: 0; text-align: left; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 4px 48px; margin: 14px 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; display: grid; place-items: center; }

/* Online-class packages: one card each */
.packages { display: grid; gap: 22px; max-width: 680px; margin: 0 auto 24px; }
.package { padding: 22px 18px 6px; border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: 16px;
  background: #fff; box-shadow: 0 6px 18px rgba(74,31,92,.07); }
.package-head h3 { margin: 0; font-size: 24px; color: var(--purple); }
.package-price { margin: 4px 0 0; font-size: 30px; font-weight: 800; color: var(--text); }
.package-price span { font-size: 16px; font-weight: 600; color: var(--muted); }
.package-each { margin: 0; font-size: 15px; color: var(--muted) !important; }
.price-box { max-width: 520px; margin: 0 auto 8px; padding: 22px; border-radius: 16px; background: var(--soft); }
.price-box p:last-child { margin-bottom: 0; }

/* Link cards (YouTube etc.) — no long raw web addresses */
.link-list { display: grid; gap: 12px; max-width: 640px; margin: 0 auto 8px; }
.link-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: border-color .15s, transform .15s; }
.link-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.lc-text { display: flex; flex-direction: column; min-width: 0; }
.lc-text strong { font-size: 18px; }
.lc-text span { font-size: 15px; color: var(--muted); }
.lc-go { flex-shrink: 0; padding: 7px 14px; border-radius: 999px; background: #ff0033; color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }

/* Tags (names, handles) */
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px auto 16px; max-width: 680px; }
.tags span { padding: 6px 14px; border-radius: 999px; background: var(--soft); color: var(--purple); font-weight: 500; font-size: 16px; }

/* Tip and call-to-action boxes */
.tip { max-width: 640px; margin: 28px auto; padding: 16px 20px; border-left: 5px solid #ffc439; background: #fff8e1; border-radius: 10px; text-align: left; }
.tip p { margin: 4px 0 0; }
.cta { max-width: 640px; margin: 32px auto 0; padding: 22px; border-radius: 16px; background: var(--soft); }
.cta p { margin-top: 0; font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0; }
.btn-outline { background: #fff; color: var(--purple); border: 2px solid var(--purple); }
.btn-outline:hover { background: var(--purple); color: #fff; }

/* Q&A cards (articles, app support/privacy) */
.qa-list, .doc { max-width: 720px; margin: 0 auto; }
.qa { margin: 14px 0; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-align: left; }
.qa h3 { margin: 0 0 6px; font-size: 18px; color: var(--purple); letter-spacing: -0.01em; }
.qa p { margin: 0; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc > p, .doc > ul { text-align: left; }

/* About: timeline */
.timeline { list-style: none; max-width: 600px; margin: 0 auto; padding: 0; text-align: left; border-left: 3px solid var(--line); }
.timeline li { padding: 0 0 18px 22px; margin: 0; position: relative; display: flex; flex-direction: column; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; }
.timeline strong { color: var(--purple); }

/* Apps list: whole card is one link */
a.app-card { color: var(--text); text-decoration: none; gap: 10px; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.app-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 24px rgba(74,31,92,.12); }
a.app-card img, a.app-card .app-icon-placeholder { width: 110px; height: 110px; border-radius: 24px; object-fit: cover; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
a.app-card strong { font-size: 18px; }
.app-desc { font-size: 15px; line-height: 1.4; color: var(--muted); }
.app-desc-lead { margin-top: -8px; }

@media (max-width: 600px) {
  .lead { font-size: 19px; }
  .link-card { flex-direction: column; align-items: flex-start; }
  .facts > div { max-width: none; }
  a.app-card { width: calc(50% - 9px); }
  a.app-card img, a.app-card .app-icon-placeholder { width: 84px; height: 84px; border-radius: 20px; }
}

/* "Explore more" buttons at the bottom of Russian pages */
.more-pages { margin: 48px auto 0; padding-top: 28px; border-top: 1px solid var(--line); max-width: 760px; }
.more-pages h2 { font-size: 22px; margin: 0 0 6px; }
.more-pages .btn { border-radius: 999px; padding: 10px 18px; font-size: 16px; }

/* Logo: split "abc | 123" badge + "all" */
.logo { gap: 7px; }
.logo-pill { display: inline-flex; border-radius: 9px; overflow: hidden; font-weight: 800; font-size: 18px; letter-spacing: .3px; line-height: 1; }
.logo-pill b { padding: 6px 8px; background: #fff; color: var(--purple); font-weight: 800; }
.logo-pill i { padding: 6px 8px; background: #ffc439; color: var(--purple); font-style: normal; }
.logo-all { font-weight: 700; font-size: 19px; color: #fff; }
.logo:hover .logo-pill { box-shadow: 0 0 0 2px rgba(255,255,255,.35); }

/* Even header height on all inner pages (home stays a little taller) */
.hero:not(.hero-home) { min-height: 204px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 32px; padding-bottom: 32px; }
.hero:not(.hero-home) .kicker { align-self: center; }
@media (max-width: 600px) { .hero:not(.hero-home) { min-height: 160px; padding-top: 24px; padding-bottom: 24px; } }

/* Free-times calendar (Online classes) */
.availability { max-width: 760px; margin: 16px auto 18px; padding: 20px; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 6px 18px rgba(74,31,92,.07); text-align: center; }
.avail-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; margin-bottom: 14px; background: var(--soft); border-radius: 12px; font-size: 15px; text-align: left; }
.tz-line strong { color: var(--purple); }
.tz-off { color: var(--muted); font-size: 14px; margin-left: 2px; }
.link-btn { background: none; border: 0; padding: 0 0 0 8px; color: var(--accent); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.fmt-switch { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.fmt-switch button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.fmt-switch button.on { background: var(--accent); color: #fff; }
.tz-picker { margin: -4px 0 14px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.tz-picker select { width: 100%; max-width: 420px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: #fff; }
.cal-head { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 10px; font-size: 19px; color: var(--purple); }
.avail-nav { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--soft); color: var(--purple); font-size: 22px; cursor: pointer; }
.avail-nav:hover:not(:disabled) { background: var(--accent); color: #fff; }
.avail-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-wd { font-size: 13px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-cell { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border-radius: 12px; border: 0; font: inherit; font-size: 16px; padding: 0; }
.cal-cell.blank { visibility: hidden; }
.cal-cell.none { color: #b9b0bf; }
.cal-cell.has { background: var(--soft); color: var(--purple); font-weight: 700; cursor: pointer; transition: background .12s, transform .12s; }
.cal-cell.has small { font-size: 11px; font-weight: 600; color: var(--accent); }
.cal-cell.has:hover { background: #ece0f2; transform: translateY(-1px); }
.cal-cell.today { box-shadow: inset 0 0 0 2px #ffc439; }
.cal-cell.selected { background: var(--accent) !important; color: #fff; }
.cal-cell.selected small { color: #fff; }
.cal-legend { margin: 10px 0 0; font-size: 13px; color: var(--muted) !important; }
.cal-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--soft); border: 1px solid #d9c8e3; vertical-align: -1px; }
.avail-dayview { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.day-title { margin: 0 0 12px; font-size: 20px; color: var(--purple); }
.time-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin: 10px 0; text-align: left; }
.time-group-name { width: 92px; flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.time-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.slot { display: inline-block; padding: 7px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; }
.avail-note { margin: 10px auto 0; color: var(--muted) !important; font-size: 15px; }
.avail-tz { margin: 14px 0 0; font-size: 13px; color: var(--muted) !important; }
@media (max-width: 600px) {
  .availability { padding: 14px; }
  .avail-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .fmt-switch { align-self: center; }
  .cal-grid { gap: 4px; }
  .cal-cell { border-radius: 10px; font-size: 15px; }
  .time-group { flex-direction: column; align-items: stretch; }
  .time-group-name { width: auto; }
}
.tz-picker[hidden] { display: none; }
.avail-cal { max-width: 440px; margin: 0 auto; }
.cal-cell { font-size: 15px; }

/* Calendar: "Change" pill and time zone search */
.pill-btn { margin-left: 8px; padding: 4px 12px; border-radius: 999px; border: 1.5px solid var(--accent); background: #fff;
  color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; vertical-align: 1px; }
.pill-btn:hover { background: var(--accent); color: #fff; }
.tz-picker { align-items: stretch; max-width: 460px; margin: -4px auto 16px; }
.tz-search { width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; }
.tz-search:focus { outline: none; border-color: var(--accent); }
.tz-results { display: flex; flex-direction: column; gap: 6px; }
.tz-result { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "city off" "info off"; gap: 0 10px; align-items: center;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.tz-result:hover, .tz-result:focus { border-color: var(--accent); background: var(--soft); outline: none; }
.tz-result strong { grid-area: city; color: var(--purple); font-size: 16px; }
.tz-result span { grid-area: info; color: var(--muted); font-size: 13px; }
.tz-result em { grid-area: off; font-style: normal; font-size: 13px; font-weight: 600; color: var(--accent); }
.tz-none { margin: 4px 0; font-size: 14px; color: var(--muted) !important; }
.tz-picker .link-btn { align-self: center; padding: 0; font-size: 14px; }

/* Keep the calendar's space while it loads, so the page doesn't jump */
.availability.loading { min-height: 860px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 600px) { .availability.loading { min-height: 1000px; } }
