:root {
  --bg: #2b2b2b;
  --panel: #ececec;
  --card: #fff;
  --ink: #222;
  --muted: #666;
  --orange: #f25c05;
  --orange-2: #ff7a1a;
  --max: 500px;
  --header: #1f1f1f;
}

html,
body {
  margin: 0;
  background: #1a1a1a;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow-x: hidden;
}

.shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.03) 0 28px, transparent 29px),
    radial-gradient(circle at 72% 38%, rgba(255, 255, 255, 0.03) 0 22px, transparent 23px),
    var(--bg);
  background-size: 140px 140px, 180px 180px, auto;
  position: relative;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.shell.rtl .site-row {
  flex-direction: row-reverse;
}

/* ---------- splash (age gate + 5s) ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: #111;
  overflow: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.splash-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.splash-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(242, 92, 5, 0.22), transparent 52%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.55) 0%, rgba(17, 17, 17, 0.88) 100%);
  pointer-events: none;
}

.splash.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  position: relative;
  z-index: 1;
  width: min(86vw, 360px);
  text-align: center;
  color: #fff;
}

.splash-logo-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.1rem;
}

.splash-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--orange);
  border-right-color: var(--orange-2);
  animation: spin 1s linear infinite;
  box-shadow: 0 0 32px rgba(242, 92, 5, 0.35);
}

.splash-logo {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  object-fit: contain;
  z-index: 1;
  animation: none;
}

.splash-count {
  font-variant-numeric: tabular-nums;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}

.splash-bar {
  height: 3px;
  margin-top: 1.25rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.splash-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange), #fff);
}

.splash-bar > i.is-running {
  animation: splash-fill 5s linear forwards;
}

@keyframes splash-fill {
  to {
    width: 100%;
  }
}

.is-hidden {
  display: none !important;
}

/* ---------- age gate ---------- */
.age-gate {
  margin-top: 1.75rem;
}

.age-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.age-desc {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.age-slider {
  position: relative;
  height: 48px;
  margin-top: 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.age-slider.is-done {
  border-color: rgba(242, 92, 5, 0.45);
}

.age-slider-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-left: 52px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.age-slider.is-dragging .age-slider-hint,
.age-slider.is-done .age-slider-hint {
  opacity: 0;
}

.age-slider-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(242, 92, 5, 0.4), rgba(242, 92, 5, 0.12));
  pointer-events: none;
}

.age-slider-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #fff;
  box-shadow: 0 4px 16px rgba(242, 92, 5, 0.45);
  cursor: grab;
  touch-action: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.age-slider-thumb:active,
.age-slider.is-dragging .age-slider-thumb {
  cursor: grabbing;
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(242, 92, 5, 0.55);
}

.age-slider.is-done .age-slider-thumb {
  cursor: default;
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.age-exit {
  margin-top: 0.85rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.age-exit:hover {
  color: rgba(255, 255, 255, 0.62);
}

.age-blocked {
  margin-top: 1.75rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.splash-countdown {
  margin-top: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- header / drawer ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header);
  color: #fff;
}

.drawer {
  position: fixed;
  inset: 0 auto 0 50%;
  transform: translateX(-50%);
  width: min(100%, var(--max));
  z-index: 55;
  pointer-events: none;
}

.drawer.is-open {
  pointer-events: auto;
}

.drawer-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.drawer.is-open .drawer-mask {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: min(82%, 300px);
  background: #fff;
  color: var(--ink);
  transform: translateX(-105%);
  transition: transform 0.22s ease;
  overflow-y: auto;
  padding: 16px 14px 32px;
}

html[dir="rtl"] .drawer-panel {
  transform: translateX(105%);
}

.drawer.is-open .drawer-panel {
  transform: translateX(0);
}

.search-drop {
  display: none;
  padding: 10px 12px 12px;
  background: #161616;
}

.search-drop.is-open {
  display: block;
}

.search-box {
  display: flex;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 10px 14px;
  font-size: 13px;
  color: #222;
}

.search-box button {
  width: 44px;
  background: var(--orange);
  color: #fff;
}

.cat-card {
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.cat-card .accent {
  height: 5px;
}

.site-row {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
}

.site-ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f4f4f4;
  object-fit: contain;
  flex: 0 0 auto;
}

.see-all {
  display: block;
  text-align: center;
  padding: 11px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--orange);
  border-top: 1px solid #f0f0f0;
}

/* ---------- auth modal ---------- */
.auth-card {
  width: min(calc(100% - 40px), 380px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 12px;
  background: #f4f4f5;
}

.auth-tab {
  flex: 1;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: #71717a;
  background: transparent;
  transition: background 0.15s, color 0.15s;
}

.auth-tab.is-active {
  color: #18181b;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: #18181b;
}

.auth-sub {
  margin: 0 0 16px;
  font-size: 12px;
  color: #71717a;
  line-height: 1.45;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-field span {
  font-size: 12px;
  font-weight: 600;
  color: #3f3f46;
}

.auth-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  font-size: 14px;
  color: #18181b;
  background: #fafafa;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-field input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.15);
  background: #fff;
}

.phone-row {
  display: flex;
  gap: 8px;
}

.phone-country {
  flex: 0 0 108px;
  padding: 10px 8px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #18181b;
  background: #fafafa;
  outline: none;
}

.phone-country:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.15);
  background: #fff;
}

.phone-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  font-size: 14px;
  color: #18181b;
  background: #fafafa;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.phone-row input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.15);
  background: #fff;
}

.success-card {
  text-align: center;
}

.success-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.success-card .auth-sub {
  margin-bottom: 18px;
}

.auth-error {
  margin: 0;
  font-size: 12px;
  color: #dc2626;
  text-align: center;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  transition: opacity 0.15s;
}

.auth-submit:disabled {
  opacity: 0.65;
}

.auth-close {
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #52525b;
  background: #f4f4f5;
}

/* ---------- modal ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}

.modal-mask.is-open {
  display: flex;
}

#success-modal {
  z-index: 80;
}

.modal-card {
  width: min(calc(100% - 40px), 360px);
  margin: auto;
  background: #fff;
  color: #222;
  border-radius: 16px;
  padding: 1.25rem 1.15rem 1.35rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.progress-track {
  height: 8px;
  border-radius: 99px;
  background: #eee;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #c2410c, var(--orange), #ffd0b0);
}

.no-scroll {
  overflow: hidden;
}

.lang-switch {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #eee;
  background: rgba(255, 255, 255, 0.06);
}

.lang-flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  z-index: 60;
  width: 210px;
  max-height: min(62vh, 420px);
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  color: #222;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  text-align: start;
  font-size: 12px;
}

.lang-item:hover,
.lang-item.is-on {
  background: #fff3ea;
}

.lang-item .lang-name {
  flex: 1;
}

.lang-item .lang-short {
  font-size: 10px;
  color: #888;
}

.hidden {
  display: none !important;
}
