:root {
  --brand: #0097bf;
  --brand-dark: #007b9d;
  --brand-soft: #e6f7fa;
  --ink: #10212b;
  --muted: #607783;
  --line: #d6e4e9;
  --bg: #d8edf2;
  --white: #fff;
  --shadow: 0 14px 38px rgba(22, 74, 88, .11);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 'Inter', 'Heebo', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.app {
  width: 100%; max-width: 500px; min-height: 100dvh; margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 18px max(36px, env(safe-area-inset-bottom));
  background: radial-gradient(100% 46% at 50% 0, #fff 0, rgba(255,255,255,.5) 45%, transparent 100%), var(--bg);
}
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 42px; }
.lang-btn { justify-self: start; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.72); color: var(--ink); border-radius: 999px; padding: 7px 11px; font-weight: 700; font-size: 12px; cursor: pointer; }
.brand { display: inline-flex; align-items: center; gap: 7px; direction: ltr; color: rgb(20, 168, 184); text-decoration: none; }
.brand span { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.brand-logo { width: 25px; height: 25px; object-fit: contain; }
.secure { justify-self: end; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 600; }
.secure svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hero { text-align: center; padding: 28px 10px 23px; }
.hero-icon { width: 70px; height: 70px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 24px; color: var(--brand); background: linear-gradient(145deg, #fff, var(--brand-soft)); box-shadow: 0 10px 25px rgba(0,151,191,.13); transform: rotate(-3deg); }
.hero-icon svg { width: 35px; height: 35px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero h1 { margin: 0; font-size: clamp(25px, 7vw, 31px); line-height: 1.2; letter-spacing: -.03em; }
.hero p { margin: 9px auto 0; max-width: 340px; color: var(--muted); font-size: 14px; }
.search-card { padding: 22px; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.88); border-radius: 24px; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.search-card h2, .results h2 { font-size: 18px; margin: 0 0 14px; }
.field-group { margin-bottom: 18px; }
.or-label { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.search-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; padding: 4px; background: #edf4f6; border-radius: 14px; margin-bottom: 20px; }
.tab { border: 0; background: transparent; color: var(--muted); border-radius: 10px; padding: 9px 4px; font-size: 12px; font-weight: 700; cursor: pointer; }
.tab.is-active { color: var(--brand-dark); background: #fff; box-shadow: 0 2px 8px rgba(27,68,80,.1); }
label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.input-wrap { position: relative; }
.input-wrap svg { position: absolute; inset-inline-start: 14px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
input { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); padding: 12px 43px 12px 14px; outline: 0; direction: ltr; text-align: start; }
[dir=ltr] input { padding: 12px 14px 12px 43px; }
input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,151,191,.13); }
input[aria-invalid=true] { border-color: #dc4141; }
.hint, .error { margin: 6px 2px 0; font-size: 12px; }
.hint { color: var(--muted); }
.error { color: #b42318; font-weight: 600; }
.search-btn { width: 100%; min-height: 51px; margin-top: 18px; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--brand), #08abc8); display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 800; box-shadow: 0 9px 19px rgba(0,151,191,.22); cursor: pointer; }
.search-btn:hover { background: var(--brand-dark); }
.search-btn:disabled { opacity: .65; cursor: wait; box-shadow: none; }
.search-btn svg, .view-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
[dir=rtl] .search-btn svg, [dir=rtl] .view-link svg { transform: scaleX(-1); }
.support-card { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 15px 17px; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.72); border-radius: 17px; }
.support-card img { width: 52px; height: 52px; flex: 0 0 auto; object-fit: contain; border-radius: 10px; background: #fff; }
.support-card strong { display: block; font-size: 13px; }
.support-card p { margin: 2px 0 5px; color: var(--muted); font-size: 11px; }
.support-card a { color: var(--brand-dark); font-weight: 800; font-size: 14px; text-decoration: none; direction: ltr; display: inline-block; }
.results { scroll-margin-top: 12px; }
.results-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin: 25px 2px 12px; }
.results-head h2 { margin-bottom: 2px; }
.results-head p { margin: 0; color: var(--muted); font-size: 12px; }
.text-btn { flex: 0 0 auto; border: 0; background: transparent; color: var(--brand-dark); font-size: 12px; font-weight: 800; cursor: pointer; padding: 5px; }
.session-list { display: grid; gap: 10px; }
.session-card { background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.95); border-radius: 18px; padding: 17px; box-shadow: 0 7px 22px rgba(30,77,90,.07); }
.session-top { display: flex; justify-content: space-between; gap: 12px; }
.session-top div { flex: 1 1 auto; min-width: 0; max-width: calc(100% - 92px); }
.session-top strong { display: block; font-size: 15px; overflow-wrap: anywhere; word-break: break-word; }
.session-top span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; word-break: break-word; }
.session-top b { flex: 0 0 auto; color: var(--ink); font-size: 18px; white-space: nowrap; }
.session-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px; margin: 13px 0; padding: 11px 0; border-block: 1px solid #e8eff1; color: var(--muted); font-size: 11px; }
.session-meta span { display: inline-flex; align-items: center; gap: 4px; }
.session-meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.view-link { display: flex; justify-content: space-between; align-items: center; color: var(--brand-dark); text-decoration: none; font-size: 13px; font-weight: 800; }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 14px; }
.pagination button, .outline-btn { border: 1px solid var(--line); background: rgba(255,255,255,.8); color: var(--ink); border-radius: 11px; padding: 9px 12px; font-weight: 700; font-size: 12px; cursor: pointer; }
.pagination button:last-child { justify-self: end; }
.pagination button:disabled { opacity: .4; cursor: default; }
.pagination span { color: var(--muted); font-size: 11px; }
.empty { margin-top: 26px; padding: 34px 22px; text-align: center; background: rgba(255,255,255,.8); border-radius: 22px; box-shadow: var(--shadow); }
.empty-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 50%; color: var(--brand); background: var(--brand-soft); }
.empty-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.empty h2 { margin: 0 0 6px; font-size: 20px; }
.empty p { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
@media (max-width: 370px) { .app { padding-inline: 12px; } .search-card { padding: 17px; } .tab { font-size: 11px; } }
@media (min-width: 700px) { body { padding-block: 22px; } .app { min-height: calc(100dvh - 44px); border-radius: 28px; box-shadow: 0 20px 60px rgba(22,74,88,.15); } }
