/* LikeDiamond — design tokens taken from the mascot's diagonal gradient */
:root {
  --purple: #7c3aed;
  --pink: #ee1268;
  --orange: #ff7a30;
  --yellow: #ffc93d;
  --gradient: linear-gradient(120deg, var(--purple) 0%, var(--pink) 38%, var(--orange) 70%, var(--yellow) 100%);
  --ink: #1c1330;
  --ink-soft: #5c5270;
  --paper: #ffffff;
  --paper-2: #faf6ff;
  --line: #ece4fb;
  --radius: 18px;
  --shadow: 0 20px 45px -20px rgba(124, 58, 237, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Tajawal", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
}

.brand img { width: 40px; height: 40px; object-fit: contain; }

.brand .brand-like { color: var(--ink); }
.brand .brand-diamond {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav-links a:hover { color: var(--pink); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { box-shadow: 0 24px 50px -18px rgba(238, 18, 104, 0.55); }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--pink); color: var(--pink); }

.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

.lang-btn { padding: 10px 16px; font-size: 0.85rem; min-width: 44px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 40px;
  background: radial-gradient(120% 120% at 100% 0%, #fdf1ff 0%, #fff 55%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--purple);
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gradient);
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.25;
  margin: 0 0 18px;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 0 0 28px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.hero-chips { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero-chip .ic { width: 18px; height: 18px; color: var(--pink); }
.hero-chip svg { width: 100%; height: 100%; }

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art .glow {
  position: absolute;
  inset: -10%;
  background: var(--gradient);
  filter: blur(70px);
  opacity: 0.35;
  border-radius: 50%;
  z-index: 0;
}
.hero-art img {
  position: relative;
  z-index: 1;
  width: min(380px, 80%);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ---------- Sections ---------- */
.pad { padding: 72px 0; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}
.eyebrow-alt {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--orange);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
  font-weight: 800;
}
.section-head p { color: var(--ink-soft); margin: 0; }

/* ---------- Packages ---------- */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}

.pkg-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pkg-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.pkg-card.popular { border-color: var(--pink); }
.pkg-card .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.pkg-card .amount {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 10px 0 4px;
}
.pkg-card .amount span { font-size: 1rem; color: var(--ink-soft); font-weight: 600; }
.pkg-card .price {
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 16px;
}
.pkg-card .diamond-ic { font-size: 1.6rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.step .n {
  width: 44px; height: 44px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
}
.step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--paper-2);
}
.feature .ic {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 1rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient);
  border-radius: 28px;
  padding: 52px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { margin: 0 0 26px; opacity: 0.92; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--pink);
  box-shadow: none;
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: #cfc7e0;
  padding: 56px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { color: #a89bc4; max-width: 32ch; font-size: 0.92rem; }
footer h4 { color: #fff; font-size: 0.95rem; margin: 0 0 14px; }
footer ul li { margin-bottom: 10px; font-size: 0.9rem; }
footer ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: #877b9e;
}

/* ---------- Page hero (checkout / inner pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, #2a1454 0%, #5b1f7a 45%, #8a2a6e 100%);
  color: #fff;
  padding: 40px 0 46px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span.current { color: #fff; font-weight: 600; }
.page-hero h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }

/* ---------- Checkout layout ---------- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.field { margin-bottom: 18px; }
.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  font-size: 1rem;
  font-family: inherit;
}
.form-input:focus { outline: none; border-color: var(--pink); }
.help-text { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }

.summary-card { position: sticky; top: 90px; }
.summary-card h3 { margin: 0 0 16px; font-size: 1.05rem; }
.summary-pkg {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.summary-pkg .diamond-ic { font-size: 2rem; }
.summary-pkg-amount { font-weight: 800; font-size: 1.15rem; }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row.total { font-weight: 800; font-size: 1.1rem; color: var(--purple); border-bottom: none; padding-top: 16px; }

.id-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px dashed var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
  min-height: 24px;
}
.id-preview.found {
  border-style: solid;
  border-color: var(--purple);
  background: var(--paper-2);
  color: var(--ink);
}
.id-preview.error {
  border-style: solid;
  border-color: #e33d6a;
  background: #fff2f5;
  color: #c22456;
}
.id-preview .id-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--line);
}
.id-preview .id-info { min-width: 0; }
.id-preview .id-name { font-weight: 700; color: var(--ink); }
.id-preview .id-meta { font-size: 0.78rem; color: var(--ink-soft); direction: ltr; text-align: right; }

.btn-block { width: 100%; }
.btn-block:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Hero load-in animation ---------- */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroArtIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
.hero-copy > * { animation: heroUp 0.7s ease both; }
.hero-copy .eyebrow { animation-delay: 0.05s; }
.hero-copy h1 { animation-delay: 0.15s; }
.hero-copy .lead { animation-delay: 0.25s; }
.hero-copy .hero-cta { animation-delay: 0.35s; }
.hero-copy .hero-chips { animation-delay: 0.45s; }
.hero-art img { animation: heroArtIn 0.8s ease both, float 5s ease-in-out 0.8s infinite; }

/* ---------- Sidebar (mobile nav) ---------- */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 36, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 110;
}
.sidebar-overlay.open { opacity: 1; pointer-events: auto; }

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(300px, 82vw);
  background: var(--paper);
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -12px 0 40px rgba(20, 12, 36, 0.18);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
html[dir="rtl"] .sidebar { right: auto; left: 0; transform: translateX(-100%); }
.sidebar.open,
html[dir="rtl"] .sidebar.open { transform: translateX(0); }

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.sidebar-head .brand { font-size: 1.05rem; gap: 8px; }
.sidebar-head .brand img { width: 32px; height: 32px; }
.sidebar-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.9rem;
}
.sidebar-close:hover { color: var(--pink); border-color: var(--pink); }

.sidebar-links {
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  gap: 4px;
}
.sidebar-links a {
  padding: 12px 4px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.sidebar-divider { height: 1px; background: var(--line); margin: 8px 0; }

.sidebar-foot {
  margin-top: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.sidebar-foot .btn { width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; position: relative; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta, .hero-chips { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; order: -1; }
}

@media (max-width: 760px) {
  .hero { padding: 32px 0 26px; }
  .hero .wrap { gap: 0; }
  .hero-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.16;
    pointer-events: none;
  }
  .hero-art .glow { opacity: 0.6; }
  .hero-art img { width: 200px; }
  .hero-copy { position: relative; z-index: 1; }
  .eyebrow { font-size: 0.76rem; padding: 6px 12px; margin-bottom: 14px; }
  .hero h1 { font-size: 1.55rem; margin-bottom: 12px; }
  .hero p.lead { font-size: 0.92rem; margin-bottom: 20px; }
  .hero-cta { flex-direction: column; gap: 10px; margin-bottom: 22px; }
  .hero-cta .btn { width: 100%; }
  .hero-chips { gap: 8px; }
  .hero-chip { font-size: 0.75rem; padding: 7px 10px; }

  .nav-links, .nav-actions { display: none; }
  .brand { font-size: 1.05rem; gap: 6px; }
  .brand img { width: 32px; height: 32px; }
  .nav-toggle { display: block; }

  .pkg-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pkg-card { padding: 18px 10px; }
  .pkg-card .diamond-ic { font-size: 1.3rem; }
  .pkg-card .amount { font-size: 1.3rem; margin: 8px 0 2px; }
  .pkg-card .amount span { font-size: 0.76rem; }
  .pkg-card .price { font-size: 0.85rem; margin-bottom: 12px; }
  .pkg-card .badge { font-size: 0.6rem; padding: 4px 10px; top: -10px; }
  .pkg-card .btn { width: 100%; padding: 10px 8px; font-size: 0.8rem; }
}
