@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Outfit:wght@400;500;600;700;800&display=swap");

/* stikia.com — cinematic dark design system, mobile-first, RTL-ready */

:root {
  --bg: #08080c;
  --bg-alt: #0e0e14;
  --bg-elevated: #14141c;
  --surface: #16161f;
  --surface-2: #1c1c27;
  --text: #f4f0e6;
  --text-strong: #fffaf0;
  --muted: #9b9688;
  --border: rgba(244, 240, 230, 0.09);
  --border-strong: rgba(226, 181, 74, 0.28);
  --header: rgba(8, 8, 12, 0.78);
  --header-text: #f4f0e6;
  --gold: #e2b54a;
  --gold-2: #f6e0a0;
  --gold-deep: #b8862e;
  --primary: #e2b54a;
  --primary-hover: #f0cc6e;
  --primary-soft: rgba(226, 181, 74, 0.14);
  --accent: #e2b54a;
  --success: #3ddc97;
  --success-soft: rgba(61, 220, 151, 0.12);
  --danger: #f07167;
  --danger-hover: #ff8a82;
  --focus: #f6e0a0;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 60px;
  --dock-h: 64px;
  --space: 1rem;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: Outfit, system-ui, -apple-system, "Segoe UI", Roboto, "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html[dir="rtl"] {
  --font: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --font-display: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(226, 181, 74, 0.07), transparent 50%),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  letter-spacing: 0.01em;
}

body.has-dock {
  padding-bottom: calc(var(--dock-h) + var(--safe-bottom));
}

body.nav-open,
body.modal-open,
body.more-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-2);
}

a:hover {
  color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--gold);
  color: #1b1408;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Header —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  background: var(--header);
  color: var(--header-text);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--header-text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-inline-end: auto;
  direction: ltr;
  unicode-bidi: isolate;
}

.brand:hover {
  color: var(--text-strong);
}

.brand img,
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: 0 0 auto;
}

.brand-text,
.brand [data-site-name] {
  font-size: 1.05rem;
}

.brand-tld {
  color: var(--muted);
  font-weight: 600;
}

.points-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  background: var(--primary-soft);
  color: var(--gold-2);
  text-decoration: none;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  font-size: 0.8rem;
  font-weight: 700;
  min-height: 34px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.points-chip:hover,
.points-chip:focus-visible {
  color: #1b1408;
  background: var(--gold);
  border-color: var(--gold);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--surface);
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
  position: relative;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.12rem;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  padding: 0.42rem 0.55rem;
  border-radius: 999px;
}

.lang-btn[lang="ar"] {
  font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--text-strong);
}

.lang-btn[aria-pressed="true"] {
  color: #1b1408;
  background: var(--gold);
}

.lang-sep {
  display: none;
}

.lang-switch-lock {
  margin-top: 1.35rem;
  justify-content: center;
}

.lang-switch-lock .lang-btn {
  color: rgba(255, 255, 255, 0.68);
}

.lang-switch-lock .lang-btn[aria-pressed="true"] {
  color: #1b1408;
  background: var(--gold);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--header-text);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a[aria-current="page"] {
  color: var(--gold-2);
}

@media (max-width: 839px) {
  body.has-dock .nav-toggle {
    display: none;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #0c0c12;
    padding: 1rem;
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 0.28s var(--ease), visibility 0.28s var(--ease);
    z-index: 45;
  }

  body.has-dock .site-nav {
    display: none;
  }

  .site-nav.is-open {
    transform: none;
    visibility: visible;
  }

  .site-nav ul {
    display: grid;
    gap: 0.4rem;
  }

  .site-nav a {
    display: block;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
  }
}

@media (min-width: 840px) {
  .nav-toggle,
  .dock-nav,
  .more-sheet {
    display: none !important;
  }

  body.has-dock {
    padding-bottom: 0;
  }

  .site-nav ul {
    display: flex;
    gap: 0.15rem;
  }

  .site-nav a {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
  }

  .site-nav a:hover {
    background: var(--primary-soft);
    color: var(--gold-2);
  }

  .site-nav a[aria-current="page"] {
    background: var(--primary-soft);
  }
}

/* —— Mobile dock —— */

.dock-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: calc(var(--dock-h) + var(--safe-bottom));
  padding: 0.35rem 0.4rem calc(0.4rem + var(--safe-bottom));
  background: rgba(10, 10, 14, 0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.dock-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  min-height: 48px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  border-radius: 12px;
  padding: 0.2rem;
  -webkit-tap-highlight-color: transparent;
}

.dock-link svg {
  width: 22px;
  height: 22px;
}

.dock-link.is-active,
.dock-link[aria-current="page"] {
  color: var(--gold-2);
}

.dock-link:hover,
.dock-link:focus-visible {
  color: var(--text-strong);
}

.more-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
}

.more-sheet.is-open {
  display: block;
}

.more-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.more-sheet-panel {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  background: var(--surface);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  padding: 0.75rem 1.1rem calc(1.2rem + var(--safe-bottom));
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.more-sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0.2rem auto 1rem;
}

.more-sheet-panel a,
.more-sheet-panel button.more-sheet-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.2rem;
  color: var(--text);
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  text-align: start;
  cursor: pointer;
}

.more-sheet-panel a:last-child,
.more-sheet-panel button.more-sheet-link:last-child {
  border-bottom: 0;
}

/* —— Buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), filter 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary,
.btn-cinema {
  background: linear-gradient(180deg, #f0d48a, var(--gold));
  color: #1b1408;
  border-color: #ead7a4;
}

.btn-primary:hover,
.btn-cinema:hover {
  filter: brightness(1.06);
  color: #1b1408;
}

.btn-secondary,
.btn-cinema-ghost,
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover,
.btn-cinema-ghost:hover,
.btn-ghost:hover {
  color: var(--gold-2);
  border-color: var(--gold);
  background: var(--primary-soft);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: var(--danger-hover);
  color: #fff;
}

.btn-watch {
  width: 100%;
  background: linear-gradient(180deg, #f0d48a, var(--gold));
  color: #1b1408;
  margin-top: 0.5rem;
}

.btn-watch:hover:not(:disabled) {
  filter: brightness(1.06);
  color: #1b1408;
}

.btn-watch:disabled {
  background: var(--success);
  color: #042f2e;
  cursor: default;
  filter: none;
}

.btn-watch.is-waiting:disabled {
  background: #3a3a48;
  color: #cfc6b3;
  cursor: not-allowed;
}

/* —— Page frames —— */

.hero,
.section,
.page-hero {
  padding-block: 1.75rem;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 42rem;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.page-home .hero,
.page-home .section,
.page-home .page-hero {
  padding-block: 0;
}

/* —— Progress —— */

.progress-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.15rem 1.15rem 1.25rem;
  margin-block: 0 1.25rem;
}

.progress-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

html[dir="rtl"] .progress-panel h2,
html[dir="rtl"] .home-kicker,
html[dir="rtl"] .ad-label,
html[dir="rtl"] .withdraw-kicker,
html[dir="rtl"] .watch-nav-kicker,
html[dir="rtl"] .featured-label,
html[dir="rtl"] .videos-kicker {
  letter-spacing: 0.03em;
  text-transform: none;
}

.points-total {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.85rem 0 0.45rem;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
  border-radius: inherit;
  transition: width 0.4s var(--ease);
}

[dir="rtl"] .progress-bar {
  background: linear-gradient(-90deg, var(--gold-deep), var(--gold-2));
}

.progress-percent {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.progress-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.complete-banner {
  background: var(--success-soft);
  border: 1px solid rgba(61, 220, 151, 0.35);
  color: #b8f7d8;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-block: 0 1rem;
}

/* —— Videos toolbar —— */

.videos-head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.videos-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.videos-head h1 {
  margin: 0;
}

.library-toolbar {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.search-field {
  position: relative;
}

.search-field svg {
  position: absolute;
  inset-inline-start: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  padding-block: 0.7rem;
  padding-inline: 2.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.search-field input::placeholder {
  color: var(--muted);
}

.search-field input:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(226, 181, 74, 0.18);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
}

.filters button,
.sort-field select {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.filters button.is-active,
.filters button[aria-pressed="true"] {
  background: var(--gold);
  color: #1b1408;
  border-color: var(--gold);
}

.sort-field select {
  padding-inline-end: 1.8rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23E2B54A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

[dir="rtl"] .sort-field select {
  background-position: left 0.75rem center;
}

@media (max-width: 639px) {
  .library-toolbar .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-field,
  .sort-field select {
    width: 100%;
  }
}

.list-meta {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

/* —— Video cards —— */

.video-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.video-card.is-watched .video-thumb::after {
  content: "✓";
  position: absolute;
  top: 0.55rem;
  inset-inline-end: 0.55rem;
  z-index: 2;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--success);
  color: #042f2e;
}

.video-card.is-focus {
  box-shadow: 0 0 0 2px var(--gold);
}

.card-media {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #0b0b10;
  overflow: hidden;
  order: -1;
}

.video-thumb {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  position: relative;
  background: #0b0b10;
  display: block;
  color: inherit;
  text-decoration: none;
}

.video-thumb img,
.featured-card img,
.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.video-card:hover .video-thumb img,
.featured-card:hover img,
.featured-card:focus-visible img {
  transform: scale(1.05);
}

.play-badge,
.featured-play {
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  background: rgba(8, 8, 12, 0.62);
  border: 1px solid rgba(246, 224, 160, 0.7);
  color: var(--gold-2);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

[dir="rtl"] .play-badge,
[dir="rtl"] .featured-play {
  transform: translate(50%, -50%);
}

.video-card:hover .play-badge,
.video-thumb:hover .play-badge,
.featured-card:hover .featured-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(226, 181, 74, 0.92);
  color: #1b1408;
}

[dir="rtl"] .video-card:hover .play-badge,
[dir="rtl"] .featured-card:hover .featured-play {
  transform: translate(50%, -50%) scale(1.08);
}

.play-badge svg,
.featured-play svg {
  width: 18px;
  height: 18px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.45rem;
  align-items: flex-start;
  padding: 0.7rem 0.75rem 0.8rem;
}

.card-head h2,
.watch-card .card-head h1,
.watch-meta h1 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.card-title-link {
  color: inherit;
  text-decoration: none;
}

.card-title-link:hover {
  color: var(--gold-2);
}

.card-status {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-align: end;
  flex-shrink: 0;
}

.video-card.is-watched .card-status,
.watch-card.is-watched .card-status {
  color: var(--success);
}

.status-icon {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--success);
  color: #042f2e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex: 0 0 auto;
}

.card-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-unavailable {
  height: 100%;
  display: grid;
  place-items: center;
  color: #cbd5e1;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
}

.skeleton-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.skeleton-thumb,
.skeleton-line {
  background: linear-gradient(90deg, #1a1a24 25%, #242432 37%, #1a1a24 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.skeleton-thumb {
  aspect-ratio: 9 / 16;
}

.skeleton-line {
  height: 10px;
  margin: 0.7rem 0.75rem;
  border-radius: 999px;
  width: 70%;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

[dir="rtl"] .skeleton-thumb,
[dir="rtl"] .skeleton-line {
  animation-direction: reverse;
}

.video-grid.is-skeleton[hidden],
#video-skeleton[hidden] {
  display: none;
}

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0 2rem;
}

.page-btn {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.page-btn.is-current {
  background: var(--gold);
  color: #1b1408;
  border-color: var(--gold);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.page-status {
  margin: 0;
  font-weight: 700;
}

@media (min-width: 640px) {
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
  }

  .library-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 1280px) {
  .video-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* —— Watch page —— */

.page-watch {
  background: #050508;
  overflow-x: clip;
}

.page-watch .site-footer {
  display: none;
}

.watch-section {
  padding-top: 0.85rem;
  padding-bottom: 1.5rem;
}

.watch-back {
  margin: 0 0 0.85rem;
}

.watch-back a {
  font-weight: 700;
  text-decoration: none;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.watch-back a:hover {
  color: var(--gold-2);
}

.watch-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
  min-width: 0;
}

.watch-main {
  min-width: 0;
}

.watch-card {
  background: transparent;
  border: 0;
  padding: 0;
}

.watch-media {
  max-height: none;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  box-shadow: var(--shadow);
  order: 0;
}

.page-watch .watch-section .container {
  width: min(100%, var(--max));
  padding-inline: 0;
}

.page-watch .watch-back,
.page-watch .watch-meta,
.page-watch .btn-watch,
.page-watch .watch-gate-hint,
.page-watch .ad-slot,
.page-watch .watch-gate,
.page-watch .watch-pager,
.page-watch [data-watch-missing] {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.page-watch .watch-media {
  width: 100%;
  border-radius: 0;
  max-height: min(72dvh, 820px);
}

.watch-meta,
.watch-card .card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.95rem 0 0.15rem;
}

.watch-card .card-head h1,
.watch-meta h1 {
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-family: var(--font);
}

.watch-gate {
  margin: 0.85rem auto 0.35rem;
  padding: 0.9rem 1rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.watch-gate-status {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--gold-2);
}

.watch-gate.is-unlocked {
  border-color: rgba(61, 220, 151, 0.35);
  background: var(--success-soft);
}

.watch-gate.is-unlocked .watch-gate-status {
  color: var(--success);
}

.watch-gate-meter {
  height: 6px;
  margin-top: 0.75rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.watch-gate.is-unlocked .watch-gate-meter {
  display: none;
}

.watch-gate-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
  transition: width 0.2s linear;
}

.watch-gate-hint {
  margin: 0.55rem auto 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.watch-pager {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.watch-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 84px;
  padding: 0.55rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.watch-nav:hover,
.watch-nav:focus-visible {
  color: inherit;
  border-color: var(--gold);
  background: var(--surface-2);
}

.watch-nav:hover {
  transform: translateY(-2px);
}

.watch-nav-prev .watch-nav-icon { grid-column: 1; grid-row: 1; }
.watch-nav-prev .watch-nav-copy { grid-column: 2; grid-row: 1; }
.watch-nav-prev .watch-nav-thumb { grid-column: 3; grid-row: 1; }
.watch-nav-next .watch-nav-thumb { grid-column: 1; grid-row: 1; }
.watch-nav-next .watch-nav-copy { grid-column: 2; grid-row: 1; text-align: end; }
.watch-nav-next .watch-nav-icon { grid-column: 3; grid-row: 1; }

.watch-nav-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--gold);
}

.watch-nav:hover .watch-nav-icon,
.watch-nav:focus-visible .watch-nav-icon {
  background: var(--gold);
  color: #1b1408;
}

.watch-nav-next .watch-nav-icon svg,
[dir="rtl"] .watch-nav-prev .watch-nav-icon svg {
  transform: scaleX(-1);
}

[dir="rtl"] .watch-nav-next .watch-nav-icon svg {
  transform: none;
}

.watch-nav-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.watch-nav:hover .watch-nav-kicker,
.watch-nav:focus-visible .watch-nav-kicker {
  color: var(--gold);
}

.watch-nav-name {
  display: block;
  margin-top: 0.15rem;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-nav-thumb {
  width: 48px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #0b0b10;
}

.watch-nav-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watch-nav.is-locked,
.watch-nav.is-locked:hover,
.watch-nav.is-locked:focus-visible {
  opacity: 0.5;
  filter: grayscale(0.35);
  transform: none;
  cursor: not-allowed;
  pointer-events: none;
}

[dir="rtl"] .watch-nav-prev .watch-nav-icon { grid-column: 3; }
[dir="rtl"] .watch-nav-prev .watch-nav-copy { grid-column: 2; text-align: end; }
[dir="rtl"] .watch-nav-prev .watch-nav-thumb { grid-column: 1; }
[dir="rtl"] .watch-nav-next .watch-nav-thumb { grid-column: 3; }
[dir="rtl"] .watch-nav-next .watch-nav-copy { grid-column: 2; text-align: start; }
[dir="rtl"] .watch-nav-next .watch-nav-icon { grid-column: 1; }

@media (min-width: 560px) {
  .watch-pager {
    grid-template-columns: 1fr 1fr;
  }

  .page-watch .watch-section .container {
    width: min(100% - 2rem, var(--max));
  }

  .page-watch .watch-media {
    border-radius: 18px;
    max-height: min(78dvh, 860px);
  }

  .page-watch .watch-back,
  .page-watch .watch-meta,
  .page-watch .btn-watch,
  .page-watch .watch-gate-hint,
  .page-watch .ad-slot,
  .page-watch .watch-gate,
  .page-watch .watch-pager,
  .page-watch [data-watch-missing] {
    width: 100%;
  }
}

@media (min-width: 960px) {
  .watch-layout {
    grid-template-columns: minmax(0, 1fr) 336px;
    gap: 1.25rem 1.75rem;
    align-items: start;
  }

  .card-media.watch-media {
    max-height: 820px;
    margin-inline: auto;
    width: min(100%, 460px);
  }

  .ad-slot-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

.ad-slot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 0.75rem 1.05rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  isolation: isolate;
  box-sizing: border-box;
}

.ad-label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.ad-slot-inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

.ad-slot-inner:empty::after {
  content: none;
}

.ad-frame-host {
  width: 300px;
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
  line-height: 0;
  background: transparent;
}

.ad-frame {
  width: 300px;
  height: 250px;
  border: 0;
  display: block;
  background: transparent;
  max-width: none;
}

.ad-slot-top {
  margin-bottom: 0.15rem;
}

.ad-slot-bottom {
  margin-top: 0.15rem;
}

.watch-sidebar {
  min-width: 0;
  max-width: 100%;
}

.ad-slot-sidebar {
  min-height: 0;
}

.card-points {
  margin: 0.8rem 0 0;
  font-weight: 800;
  color: var(--gold);
}

/* —— Footer —— */

.site-footer {
  background: #050508;
  color: #b9ae97;
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.site-footer a {
  color: #e8e0d0;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-2);
}

.site-footer ul {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.35rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.copyright {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-size: 0.92rem;
}

/* —— Content pages —— */

.prose,
.contact-box,
.step-card,
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.4rem;
}

.prose h2,
.content-card h2,
.step-card h2,
.contact-box h2 {
  margin-top: 1.6rem;
  color: var(--text-strong);
}

.prose h2:first-child,
.content-card h2:first-child,
.contact-box h2:first-of-type {
  margin-top: 0;
}

.steps,
.cards,
.legal-list {
  display: grid;
  gap: 1rem;
}

.note {
  background: rgba(226, 181, 74, 0.1);
  border: 1px solid var(--border-strong);
  color: var(--gold-2);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.placeholder {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 0.15rem 0.35rem;
  font-family: ui-monospace, Consolas, monospace;
}

.form-placeholder {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border);
}

.form-placeholder label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.form-placeholder input,
.form-placeholder textarea {
  width: 100%;
  margin-bottom: 0.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: var(--bg-alt);
  color: var(--text);
}

/* —— Modals —— */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 32rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1.1rem;
}

.completion-panel {
  text-align: center;
}

.completion-panel h2 {
  margin-top: 0;
}

/* —— Home —— */

.page-home {
  background: #08080c;
  color: #efe8d8;
}

.home-kicker {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: min(92dvh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 5rem 0 3.2rem;
}

.home-hero-collage,
.home-hero-stage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  padding: 4.5rem 0.8rem 8rem;
  opacity: 0.38;
  transform: scale(1.04);
  filter: saturate(0.9) contrast(1.08);
}

.home-hero-collage img,
.hero-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.hero-poster {
  overflow: hidden;
  background: #111118;
  animation: posterFloat 8s ease-in-out infinite;
}

.hero-poster:nth-child(2) { animation-delay: -1.4s; }
.hero-poster:nth-child(3) { animation-delay: -2.8s; }
.hero-poster:nth-child(4) { animation-delay: -0.8s; }
.hero-poster:nth-child(5) { animation-delay: -3.4s; }
.hero-poster:nth-child(6) { animation-delay: -2.1s; }

@keyframes posterFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.home-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 12, 0.28) 0%, rgba(8, 8, 12, 0.55) 42%, rgba(8, 8, 12, 0.97) 100%),
    radial-gradient(circle at 18% 18%, rgba(226, 181, 74, 0.16), transparent 42%);
}

.home-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.home-hero h1,
.home-section-head h2,
.home-finale h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #f7f1e4;
}

html[dir="rtl"] .home-hero h1,
html[dir="rtl"] .home-section-head h2,
html[dir="rtl"] .home-finale h2,
html[dir="rtl"] .page-hero h1 {
  letter-spacing: 0;
}

.home-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.35rem, 7vw, 4.7rem);
}

.home-hero-lead {
  margin: 0;
  max-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #cfc6b3;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.btn-cinema,
.btn-cinema-ghost {
  min-height: 52px;
  padding: 0.8rem 1.4rem;
  letter-spacing: 0.04em;
}

.home-section {
  padding: 3.4rem 0;
}

.home-section-alt {
  background: linear-gradient(180deg, #0c0c12, #101018);
  border-block: 1px solid rgba(232, 213, 163, 0.1);
}

.home-section-head {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.home-section-head h2,
.home-finale h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.home-section-head p,
.home-finale p {
  margin: 0;
  color: #c4bba8;
}

.home-continue {
  margin-bottom: 1.5rem;
}

.continue-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
}

.continue-card img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
}

.continue-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.continue-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.featured-grid {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-inline: -1rem;
  padding: 0.15rem 1rem 0.6rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.featured-grid::-webkit-scrollbar {
  display: none;
}

.featured-card {
  position: relative;
  flex: 0 0 44%;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #111118;
  aspect-ratio: 2 / 3;
  color: #fff;
  text-decoration: none;
  scroll-snap-align: start;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.84));
}

.featured-label {
  position: absolute;
  z-index: 1;
  inset-inline: 0.85rem;
  bottom: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.featured-empty {
  color: #c4bba8;
}

.home-section-cta {
  margin-top: 1.5rem;
}

.home-feature-grid {
  display: grid;
  gap: 1rem;
}

.home-feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(232, 213, 163, 0.14);
  border-radius: 18px;
  padding: 1.4rem 1.3rem 1.5rem;
}

.home-feature-index {
  margin: 0 0 0.7rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.home-feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.home-feature-card p {
  margin: 0;
  color: #c4bba8;
}

.home-finale {
  padding: 4.2rem 0 5rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(226, 181, 74, 0.16), transparent 52%),
    #08080c;
}

.home-finale-inner {
  max-width: 40rem;
}

.home-finale p {
  margin-bottom: 1.5rem;
}

@media (max-width: 559px) {
  .continue-card .btn {
    display: none;
  }

  .continue-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

@media (min-width: 760px) {
  .featured-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    margin-inline: 0;
    padding: 0;
  }

  .featured-card {
    flex: none;
    width: auto;
  }

  .home-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-hero-collage,
  .home-hero-stage {
    grid-template-columns: repeat(6, 1fr);
    padding-inline: 1.5rem;
  }

  .continue-card {
    grid-template-columns: 84px minmax(0, 1fr) auto;
  }
}

/* —— Withdraw —— */

.withdraw-section {
  padding-top: 1.4rem;
}

.page-withdraw.withdraw-locked {
  overflow: hidden;
}

.page-withdraw.withdraw-locked .skip-link {
  display: none;
}

.page-withdraw.withdraw-locked .site-header,
.page-withdraw.withdraw-locked .withdraw-section,
.page-withdraw.withdraw-locked .site-footer {
  filter: blur(9px);
  pointer-events: none;
  user-select: none;
}

.withdraw-lock {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  padding-bottom: calc(1.25rem + var(--dock-h));
  background: rgba(6, 6, 10, 0.72);
}

.withdraw-lock[hidden] {
  display: none !important;
}

.withdraw-lock-card {
  width: min(100%, 26.5rem);
  text-align: center;
  color: #f8fafc;
  background: rgba(18, 18, 26, 0.92);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2.35rem 1.45rem 1.75rem;
  backdrop-filter: blur(16px);
}

.withdraw-lock-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.35rem;
}

.withdraw-lock-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-2);
  background: radial-gradient(circle at 50% 32%, rgba(246, 224, 160, 0.2), rgba(226, 181, 74, 0.06) 68%, transparent 70%);
  box-shadow: 0 0 28px rgba(226, 181, 74, 0.12);
}

.withdraw-lock-card h1 {
  margin: 0;
  border: 0;
  outline: none;
  box-shadow: none;
  font-size: clamp(1.55rem, 4.6vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-strong);
}

.withdraw-lock-card h1:focus,
.withdraw-lock-card h1:focus-visible {
  outline: none;
  box-shadow: none;
}

.withdraw-lock-brand::after {
  content: "";
  width: 1.75rem;
  height: 1px;
  margin-top: 0.35rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.65;
}

.withdraw-lock-lead {
  margin: 0 auto 1.7rem;
  max-width: 22rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #c9d3de;
}

.withdraw-lock-cta {
  width: 100%;
  min-height: 52px;
}

@media (min-width: 720px) {
  .withdraw-lock-card {
    padding: 2.7rem 2rem 2rem;
  }

  .withdraw-lock-brand {
    gap: 0.65rem;
    margin-bottom: 1.5rem;
  }

  .withdraw-lock-icon {
    width: 3.75rem;
    height: 3.75rem;
  }

  .withdraw-lock-lead {
    margin-bottom: 1.85rem;
  }
}

html[dir="rtl"] .withdraw-lock-card,
html[dir="rtl"] .page-home main {
  font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", sans-serif;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[name="wallet_address"],
html[dir="rtl"] input[name="swift_bic"],
html[dir="rtl"] input[name="winner_reference"],
html[dir="rtl"] textarea[name="account_details"] {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

.withdraw-kicker {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.prize-stats {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}

.prize-stat,
.rule-card,
.withdraw-form-shell,
.trust-banner,
.success-panel,
.confirm-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.2rem;
}

.prize-stat-value {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gold-2);
}

.prize-stat-label {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.trust-banner {
  background: var(--success-soft);
  border-color: rgba(61, 220, 151, 0.28);
  margin-bottom: 1.5rem;
}

.trust-banner p {
  margin: 0;
}

.rules-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.rule-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

.rule-card p {
  margin: 0;
  color: var(--muted);
}

.withdraw-form-shell {
  border-radius: calc(var(--radius) + 4px);
  padding: 1.2rem 1.1rem 1.4rem;
  margin-bottom: 2rem;
}

.form-shell-head h2 {
  margin: 0 0 0.4rem;
}

.form-shell-head p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.method-fieldset,
.withdraw-form-shell fieldset {
  border: 0;
  margin: 0 0 1.2rem;
  padding: 0;
}

.withdraw-form-shell legend {
  font-weight: 800;
  margin-bottom: 0.75rem;
  padding: 0;
}

.payout-methods {
  display: grid;
  gap: 0.75rem;
}

.payout-card {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-alt);
  cursor: pointer;
}

.payout-card input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--gold);
}

.payout-card.is-selected {
  border-color: var(--gold);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(226, 181, 74, 0.12);
}

.payout-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #1b1408;
  color: var(--gold);
}

.payout-title {
  display: block;
  font-weight: 800;
}

.payout-note {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.method-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-field {
  margin: 0;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.optional {
  font-weight: 600;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: var(--bg-alt);
  color: var(--text);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--gold);
}

.field-hint {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 700;
}

.field-error[hidden],
.form-error-summary[hidden],
.success-panel[hidden],
.method-empty[hidden],
[data-withdraw-fields][hidden],
[data-method-panel][hidden],
[data-form-wrap][hidden] {
  display: none !important;
}

.form-error-summary {
  background: rgba(240, 113, 103, 0.12);
  border: 1px solid rgba(240, 113, 103, 0.4);
  color: var(--danger);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.crypto-warning {
  background: rgba(226, 181, 74, 0.1);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.9rem;
}

.crypto-warning p {
  margin: 0;
}

.confirm-box h3 {
  margin: 0 0 0.4rem;
}

.confirm-box > p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0.65rem 0 0.15rem;
  cursor: pointer;
}

.check-row input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--gold);
}

.form-actions {
  margin: 1.2rem 0 0.6rem;
}

.btn-withdraw-submit {
  min-width: min(100%, 16rem);
}

.form-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.success-panel {
  background: var(--success-soft);
  border-color: rgba(61, 220, 151, 0.35);
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.6rem 1.2rem 1.5rem;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  background: var(--success);
  color: #042f2e;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.success-panel h2 {
  margin: 0 0 0.6rem;
}

.success-next {
  text-align: start;
  max-width: 36rem;
  margin: 1rem auto 1.3rem;
  color: var(--muted);
}

.success-panel .btn {
  margin: 0.25rem;
}

@media (min-width: 700px) {
  .prize-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payout-methods {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-field-wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 840px) {
  .hero,
  .page-hero,
  .section {
    padding-block: 3rem;
  }

  .page-home .section,
  .page-home .page-hero {
    padding-block: 0;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .home-hero {
    padding: 6.5rem 0 5rem;
  }

  .home-section {
    padding: 5rem 0;
  }

  .card-media {
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
