/* ==========================================================
   لاكاسا برجر — صفحة الاستقبال (Landing / Link-in-bio)
   هوية سينمائية داكنة: أسود فحمي + أحمر عميق + نصوص عاجية
   ========================================================== */
:root{
  --bg-deep: #0a0000;
  --bg-mid: #1a0000;
  --bg-warm: #3a0000;
  --red: #ff3333;
  --red-deep: #a30000;
  --red-soft: rgba(255,51,51,0.5);
  --ivory: #f8f1ea;
  --ivory-dim: #d8c9c2;
  --muted: #a98f8a;
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.14);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

*,*::before,*::after{ box-sizing: border-box; margin:0; padding:0; }
html{ width:100%; overflow-x:hidden; }
body{
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
  background: var(--bg-deep);
  color: var(--ivory);
  width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

[hidden]{ display:none !important; }

button, a, input{ touch-action: manipulation; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================
   المشهد العام: خلفية سينمائية + توهج متحرك خفيف + شعار خزنة
   ========================================================== */
.page{
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: calc(28px + var(--safe-top)) 18px calc(28px + var(--safe-bottom));
  background:
    radial-gradient(circle at 50% 0%, var(--bg-warm) 0%, var(--bg-mid) 45%, var(--bg-deep) 100%);
  overflow: hidden;
}

.scene-glow{
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255,51,51,0.14), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(255,51,51,0.11), transparent 46%);
  animation: floatGlow 11s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes floatGlow{
  0%{ transform: translate(0,0) scale(1); }
  100%{ transform: translate(-3%, 3%) scale(1.08); }
}

/* شعار خزنة مجرّد (زخرفة سينمائية عامة — لا علاقة له بأي عمل أو شخصية محمية) */
.vault-emblem{
  position: fixed;
  top: 50%; left: 50%;
  width: min(520px, 130vw);
  height: min(520px, 130vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  background:
    repeating-radial-gradient(circle, transparent 0 18px, rgba(255,51,51,0.35) 18px 19px),
    radial-gradient(circle, rgba(255,51,51,0.25) 0%, transparent 70%);
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.05) inset,
    0 0 60px rgba(255,51,51,0.25);
}
.vault-emblem::before{
  content:"";
  position:absolute; inset: 14%;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.12);
}

/* ==========================================================
   الحاوية الرئيسية
   ========================================================== */
.container{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  text-align: center;
  display:flex;
  flex-direction: column;
  align-items: center;
}

/* ---- ظهور تدريجي قصير عند تحميل الصفحة ---- */
.reveal{ opacity:0; transform: translateY(16px); animation: revealUp .65s cubic-bezier(.22,.75,.2,1) forwards; }
.r1{ animation-delay: .05s; }
.r2{ animation-delay: .12s; }
.r3{ animation-delay: .19s; }
.r4{ animation-delay: .26s; }
.r5{ animation-delay: .33s; }
.r6{ animation-delay: .42s; }
.r7{ animation-delay: .50s; }
@keyframes revealUp{ to{ opacity:1; transform: translateY(0); } }

/* إن تعذّر تشغيل جافاسكربت أو CSS الحركة، يبقى المحتوى ظاهراً بعد وقت قصير كحد أقصى */
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; animation:none; }
}
noscript .reveal{ opacity:1; transform:none; }

/* ==========================================================
   الشعار
   ========================================================== */
.logo-badge{
  width: 108px; height:108px;
  border-radius: 50%;
  background:#fff;
  border: 3px solid var(--red);
  box-shadow: 0 0 30px var(--red-soft), 0 10px 26px rgba(0,0,0,0.5);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  margin-bottom: 14px;
  position: relative;
}
.logo-badge img{ width:100%; height:100%; object-fit:cover; }
.logo-badge::after{
  content:"";
  position:absolute; inset:-8px;
  border-radius:50%;
  border: 1px solid rgba(255,51,51,0.4);
  animation: ringPulse 2.8s ease-out infinite;
}
@keyframes ringPulse{
  0%{ transform: scale(0.92); opacity: 0.8; }
  100%{ transform: scale(1.3); opacity: 0; }
}

.brand-kicker{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--muted);
  margin-bottom: 6px;
}

.brand-title{
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--ivory);
  text-shadow: 0 2px 16px rgba(255,51,51,0.35);
  margin-bottom: 6px;
}
.brand-title span{ color: var(--red); }

.tagline{
  font-size: 14.5px;
  color: var(--ivory-dim);
  margin-bottom: 18px;
}

/* ==========================================================
   المشهد السينمائي (صورة حقيقية + معالجة إضاءة)
   ========================================================== */
.scene-card{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 34vh;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 18px 46px rgba(0,0,0,0.55), 0 0 40px rgba(255,51,51,0.12);
  border: 1px solid rgba(255,255,255,0.08);
  background: #120404;
}
.scene-img{
  width:100%; height:100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(1.05) contrast(1.05) brightness(0.92);
}
.scene-vignette{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(10,0,0,0.15) 0%, rgba(10,0,0,0.55) 100%),
    radial-gradient(circle at 50% 40%, transparent 35%, rgba(10,0,0,0.65) 100%),
    linear-gradient(0deg, rgba(255,51,51,0.18), transparent 55%);
  pointer-events:none;
}
.scene-shine{
  position:absolute; inset:0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.10) 50%, transparent 60%);
  background-size: 250% 250%;
  background-position: 120% 0%;
  animation: sceneShine 7s ease-in-out infinite;
  pointer-events:none;
}
@keyframes sceneShine{
  0%, 60%, 100%{ background-position: 120% 0%; }
  80%{ background-position: -20% 100%; }
}

/* ==========================================================
   زر المنيو — أهم عنصر تفاعلي
   ========================================================== */
.menu-btn{
  width: 100%;
  display:flex; align-items:center; justify-content:center; gap:12px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color:#fff;
  text-decoration:none;
  font-size: 18.5px;
  font-weight: 800;
  padding: 18px 22px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(255,51,51,0.35), 0 4px 12px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  position: relative;
}
.menu-btn i:first-child{ font-size: 19px; }
.menu-btn-arrow{ font-size: 15px; transition: transform .2s ease; }
.menu-btn:active{ transform: scale(0.97); }

@media (hover:hover){
  .menu-btn:hover{
    filter: brightness(1.08);
    box-shadow: 0 14px 36px rgba(255,51,51,0.45), 0 4px 12px rgba(0,0,0,0.4);
  }
  .menu-btn:hover .menu-btn-arrow{ transform: translateX(-4px); }
}

.menu-caption{
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
  margin-bottom: 22px;
}

.location{
  display:flex; align-items:center; justify-content:center; gap:7px;
  font-size: 13.5px;
  color: var(--ivory-dim);
  margin-bottom: 18px;
}
.location i{ color: var(--red); }

/* ==========================================================
   زر إضافة للشاشة الرئيسية (ثانوي، لا ينافس زر المنيو)
   ========================================================== */
.install-btn{
  display:inline-flex; align-items:center; gap:8px;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--ivory-dim);
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  transition: transform .15s ease, border-color .2s ease, color .2s ease;
}
.install-btn:active{ transform: scale(0.95); }
.install-btn:hover{ border-color: rgba(255,51,51,0.5); color: var(--ivory); }

/* ==========================================================
   التواصل الاجتماعي
   ========================================================== */
.social-title{
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 14px;
}

.social-row{ display:flex; gap:14px; margin-bottom: 30px; }
.social-btn{
  width: 52px; height:52px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color:#fff;
  font-size: 20px;
  text-decoration:none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transition: transform .15s ease, border-color .2s ease;
}
.social-btn:active{ transform: scale(0.92); }
.social-btn.ig:hover, .social-btn.ig:active{ color:#E1306C; border-color: rgba(225,48,108,0.5); }
.social-btn.tt:hover, .social-btn.tt:active{ color:#fff; border-color: rgba(255,255,255,0.4); }
.social-btn.fb:hover, .social-btn.fb:active{ color:#1877F2; border-color: rgba(24,119,242,0.5); }

.footer{
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
}
.footer a{ color: rgba(255,255,255,0.45); text-decoration:none; }
.footer a:hover, .footer a:active{ color: rgba(255,255,255,0.75); }
.footer span{ color: var(--red); font-weight: 800; }

/* ==========================================================
   نافذة إرشاد iOS (Bottom Sheet)
   ========================================================== */
.ios-sheet-overlay{
  position: fixed; inset:0;
  background: rgba(0,0,0,0.6);
  opacity:0; pointer-events:none;
  transition: opacity .25s ease;
  z-index: 90;
}
.ios-sheet-overlay.show{ opacity:1; pointer-events:auto; }

.ios-sheet{
  position: fixed;
  left:0; right:0; bottom:0;
  max-width: 460px;
  margin: 0 auto;
  background: #1c0808;
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  padding: 10px 22px calc(24px + var(--safe-bottom));
  transform: translateY(110%);
  transition: transform .32s cubic-bezier(.32,.72,0,1);
  z-index: 95;
  text-align: right;
}
.ios-sheet.open{ transform: translateY(0); }
.ios-sheet-handle{
  width:42px; height:5px; border-radius:3px;
  background: rgba(255,255,255,0.2);
  margin: 0 auto 16px;
}
.ios-sheet h3{ font-size:17px; font-weight:800; margin-bottom: 14px; color: var(--ivory); }
.ios-sheet ol{ padding-inline-start: 20px; margin-bottom: 18px; }
.ios-sheet li{ font-size: 14px; color: var(--ivory-dim); line-height: 1.9; }
.ios-sheet li strong{ color: var(--ivory); }
.ios-sheet-close{
  width:100%;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color:#fff; font-weight:800; font-size:15px;
  padding: 14px; border-radius: 14px; border:none;
}
.ios-sheet-close:active{ transform: scale(0.97); }

/* ==========================================================
   Toast
   ========================================================== */
.toast{
  position: fixed;
  bottom: calc(24px + var(--safe-bottom));
  left:50%;
  transform: translateX(-50%) translateY(20px);
  background: #1c0808;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--ivory);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight:600;
  opacity:0;
  pointer-events:none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 100;
  max-width: 88vw;
  text-align:center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.toast.show{ opacity:1; transform: translateX(-50%) translateY(0); }

/* ==========================================================
   شاشات قصيرة — تقليص المسافات حتى يظهر زر المنيو مبكراً
   ========================================================== */
@media (max-height: 700px){
  .page{ padding-top: calc(16px + var(--safe-top)); padding-bottom: calc(16px + var(--safe-bottom)); }
  .logo-badge{ width:80px; height:80px; margin-bottom:8px; }
  .brand-title{ font-size:24px; margin-bottom:2px; }
  .tagline{ margin-bottom:10px; font-size:13px; }
  .scene-card{ max-height: 22vh; margin-bottom:12px; }
  .menu-btn{ padding:14px 18px; font-size:16.5px; }
  .menu-caption{ margin-bottom:10px; }
  .location{ margin-bottom:8px; }
  .install-btn{ margin-bottom:10px; }
  .social-row{ margin-bottom:14px; }
}

/* ==========================================================
   الاستجابة على الشاشات الأكبر
   ========================================================== */
@media (min-width: 640px){
  .container{ max-width: 460px; }
  .brand-title{ font-size: 34px; }
  .scene-card{ max-height: 300px; }
  .menu-btn{ font-size: 19px; }
}
