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

:root {
  --accent: #5cc91e;
  --accent-hover: #4ba616;
  --accent-muted: rgba(92, 201, 30, 0.25);
  --gold: #e9b949;
  --bg: #060606;
  --panel-bg: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.1);
  --ink: #ffffff;
  --ink-muted: rgba(255, 255, 255, 0.78);
  --ink-dim: rgba(255, 255, 255, 0.6);
  --input-bg: rgba(255, 255, 255, 0.06);
  --input-border: rgba(255, 255, 255, 0.18);
  --danger-bg: rgba(220, 53, 69, 0.18);
  --danger-border: rgba(220, 53, 69, 0.5);
  --danger-text: #ff6b6b;
  --font-display: Orbitron, sans-serif;
  --font-ar: "Cairo", sans-serif;
  --radius-card: 16px;
  --radius-pill: 100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  min-height: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
}

.hidden {
  display: none !important;
}

.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;
}

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

.d-block {
  display: block;
}

.fw-bold {
  font-weight: 700;
}

.w-100 {
  width: 100%;
}

.mt-3 {
  margin-top: 1rem;
}
.mt-4 {
  margin-top: 1.5rem;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.my-3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.me-2 {
  margin-inline-end: 0.5rem;
}

/* ---------- Page shell ---------- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
}

/* ---------- Hero banner ---------- */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #000;
  background-image: url("./background.png");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  padding: 18px 16px 64px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.45) 60%, rgba(6, 6, 6, 0.95) 92%, var(--bg) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin-inline: auto;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.brand-mark {
  height: 26px;
  width: auto;
  max-width: min(140px, 42vw);
  object-fit: contain;
  display: block;
  flex-shrink: 1;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

.wc-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wc-trophy {
  height: 34px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(233, 185, 73, 0.45));
}

.wc-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #fff;
  padding-inline-start: 10px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.lang select {
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
}

.lang select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 0.15rem var(--accent-muted);
}

/* Hero body */
.hero-body {
  text-align: center;
  margin-top: 26px;
}

.hero-title-logo {
  width: min(62%, 300px);
  height: auto;
  display: block;
  margin-inline: auto;
}
.world-link {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}
.world-link-logo{
  width: 150px;
  height: 150px;
  display: block;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  margin: 16px 0 12px;
  line-height: 1.12;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 7vw, 2.6rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-headline .line {
  display: block;
}

.hero-headline .accent {
  color: var(--accent);
}

html[dir="ar"] .hero-headline {
  text-transform: none;
}

/* ---------- Arabic typography (Cairo) ---------- */
html[lang="ar"] body {
  font-family: var(--font-ar);
}

html[lang="ar"] .hero-headline,
html[lang="ar"] .free-days-title,
html[lang="ar"] .card h1,
html[lang="ar"] .card h3,
html[lang="ar"] .wc-text,
html[lang="ar"] .submit-btn,
html[lang="ar"] .btn-success {
  font-family: var(--font-ar);
}

html[lang="ar"] .hero-headline {
  font-weight: 900;
}

.hero-sub {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.hero-sub .line {
  display: block;
}

.hero-sub .accent {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Content area ---------- */
.content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 8px 16px 48px;
}

.card {
  width: 100%;
  max-width: 460px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-card);
  padding: 26px 22px;
  margin-top: -42px;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.card.terms-page,
.card.success-page {
  max-width: 640px;
}

.m-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Typography in cards ---------- */
.card h1,
.card h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}

.card h1 {
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
}

.card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.card label {
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.card p {
  color: var(--ink-muted);
}

.card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.card a:hover {
  text-decoration: underline;
}

.free-days-title {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-align: center;
}

/* ---------- Forms ---------- */
.signup-form {
  width: 100%;
}

.signup-form input,
.form-control {
  width: 100%;
  font-size: 14px;
  padding: 13px 14px;
  color: #fff;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
}

.signup-form input:focus,
.form-control:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem var(--accent-muted);
  outline: none;
}

.signup-form ::placeholder,
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.verify-form input {
  letter-spacing: 8px;
  font-size: 1.25rem;
  text-align: center;
}

.signup-form input[type="password"] {
  letter-spacing: normal;
  font-size: 14px;
}

/* ---------- Buttons ---------- */
.submit-btn,
.btn-success {
  background-color: var(--accent) !important;
  color: #07210a !important;
  text-align: center;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  padding: 13px 20px;
  border: none;
  border-radius: var(--radius-pill);
  margin-block: 10px;
  transition: all 0.25s ease;
  cursor: pointer;
  width: 100%;
}

.submit-btn:hover:not(:disabled),
.btn-success:hover:not(:disabled) {
  background-color: var(--accent-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(92, 201, 30, 0.35);
}

.submit-btn:disabled,
.btn-success:disabled {
  background-color: #4a4a4a !important;
  color: rgba(255, 255, 255, 0.6) !important;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Terms / alerts ---------- */
.terms-block p,
.terms-desc {
  color: var(--ink-muted) !important;
  text-align: center;
  font-weight: 500;
  font-size: 0.88rem;
  line-height: 1.6;
}

.terms-links {
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-dim);
}

.terms-links a {
  margin-inline-start: 0.25rem;
}

.alert-danger {
  background-color: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
  padding: 12px 14px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.terms-page {
  line-height: 1.7;
}

.terms-page h1 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.terms-page p {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Success ---------- */
.success-page {
  text-align: center;
}

.success-page h1 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.success-page .success-login-btn {
  display: inline-block;
  text-decoration: none;
  color: #07210a !important;
  max-width: 280px;
}

.success-page .success-login-btn:hover {
  text-decoration: none;
}

.subscribe-success {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
  padding: 14px 18px;
  background-color: rgba(92, 201, 30, 0.95);
  border-bottom: 1px solid var(--accent);
  color: #07210a;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ---------- Spinner ---------- */
.spinner-border-sm {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  vertical-align: -0.125em;
}

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

body.page-loading {
  cursor: wait;
}

.snackbar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.snackbar-error {
  background: #c62828;
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .topbar {
    gap: 6px;
  }

  .brand-mark {
    height: 22px;
    max-width: min(120px, 38vw);
  }

  .topbar-right {
    gap: 8px;
  }

  .wc-badge {
    gap: 6px;
  }

  .wc-trophy {
    height: 28px;
  }

  .wc-text {
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    padding-inline-start: 6px;
  }

  .lang select {
    padding: 4px 6px;
    font-size: 0.75rem;
  }
}

@media (max-width: 380px) {
  .wc-text {
    display: none;
  }

  .brand-mark {
    max-width: min(100px, 36vw);
  }

  .topbar-right {
    gap: 6px;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 24px 24px 90px;
    background-position: center 25%;
  }

  .brand-mark {
    height: 30px;
  }

  .wc-trophy {
    height: 40px;
  }

  .wc-text {
    font-size: 0.8rem;
  }

  .hero-body {
    margin-top: 34px;
  }

  .hero-title-logo {
    width: min(40%, 340px);
  }
  
}
