/* ========== الأساسيات ========== */
:root {
  --bg: #0b0b0e;
  --bg-soft: #121218;
  --text: #f6f7fb;
  --muted: #b9bed1;
  --primary: #4f8cff;         /* أزرق أنيق */
  --accent: #f8bd04;          /* ذهبي دافئ */
  --outline: #2a2f3a;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Cairo", "Tajawal", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 50% -10%, #151521, var(--bg));
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.view {
  display: none;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
}
.view.active { display: flex; }

.container {
  width: min(720px, 100%);
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 28px 20px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.brand-logo {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.45));
  margin: 8px auto 10px;
}
.brand-logo.small { width: 110px; }

.brand-name {
  margin: 4px 0 8px;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: clamp(26px, 5.3vw, 38px);
  background: linear-gradient(90deg, #fff, #d7dbff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 500;
}

.lead {
  font-size: 1.05rem;
  color: #e8e9f3;
  margin: 6px 0 12px;
}

.note {
  color: var(--muted);
  margin: 4px 0 18px;
}

.buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
  cursor: pointer;
  background: #1a1f2b;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.28);
}

.btn:active { transform: translateY(0); }

.btn-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

.btn-primary {
  background: linear-gradient(180deg, #5b97ff, #3c6fe2);
  border-color: #567be6;
}

.btn-accent {
  background: linear-gradient(180deg, #f8bd04, #d6a403);
  color: #17212f;
  border-color: #efb304;
}

.btn-outline {
  background: transparent;
  border-color: #2a3242;
}

.wa-icon { display: inline-flex; }

.footer {
  margin-top: 22px;
  color: var(--muted);
}

.linklike {
  background: transparent;
  border: none;
  color: #9fb7ff;
  font-weight: 700;
  cursor: pointer;
  margin: 6px 10px;
  padding: 8px 12px;
  border-radius: 10px;
}
.linklike:hover {
  background: rgba(159, 183, 255, 0.08);
}

.countdown {
  font-size: 1.05rem;
  margin: 10px 0 8px;
  color: #e0e5ff;
}

/* الشبكة في صفحة الروابط */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* Responsiveness */
@media (min-width: 560px) {
  .buttons { grid-template-columns: 1fr 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
}

/* تحديث مظهر الأزرار الكبيرة */
.btn-large {
  font-size: 1.1rem;
  min-height: 60px;
  padding: 14px 22px;
}

.btn-icon.large {
  width: 34px;
  height: 34px;
}

.wa-icon.large svg {
  width: 34px;
  height: 34px;
}

/* تحسين بسيط للمسافات في الصفحة الوسيطة */
#bridge .buttons { margin-top: 14px; }
\n
/* === Requested overrides === */
.applepay { color: #ff3b30; font-weight: 800; }

/* Stack all buttons under each other everywhere */
.buttons { grid-template-columns: 1fr !important; }
.grid { grid-template-columns: 1fr !important; }
\n\n
/* Attention style for Apple Pay sentence */
.note-attention {
  color: #ff3b30 !important;
  font-weight: 800;
  font-size: 1.08rem;
  background: rgba(255, 59, 48, 0.08);
  padding: 10px 14px;
  border: 1px solid rgba(255, 59, 48, 0.35);
  border-radius: 12px;
}

/* Alternative font for the word "المتجر" */
.alt-font {
  font-family: 'Changa', 'Cairo', 'Tajawal', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: 0.2px;
}

/* WhatsApp green button */
.btn-whatsapp {
  background: linear-gradient(180deg, #29a71a, #1f8b13);
  border-color: #1c7d11 !important;
  color: #ffffff !important;
}
.btn-whatsapp:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
\n
/* Apple Pay full attention style */
.note-attention {
  background: #ff3b30;
  color: #fff !important;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 12px 16px;
  border-radius: 10px;
  margin: 14px 0;
  text-align: center;
}

/* Store logo inside buttons */
.store-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  margin-left: 6px;
}

/* Enlarge Maroof logo */
.maroof-logo {
  width: 50px !important;
  height: auto !important;
}

/* Store button color to match other pages */
.btn-store {
  background: linear-gradient(180deg, #f68b1e, #e56f00);
  border-color: #e56f00;
  color: #fff !important;
}
.btn-store:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
