  /* ===== Splash Screen ===== */
  #splashScreen{
    position:fixed; inset:0; z-index:9999;
    background:
      radial-gradient(60% 40% at 50% 0%, rgba(139,0,0,.25), transparent 60%),
      var(--bg);
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:22px;
    transition:opacity .35s ease, visibility .35s ease;
  }
  #splashScreen.hide{ opacity:0; visibility:hidden; pointer-events:none; }
  /* لما الموقع يشتغل كتطبيق مثبت على الموبايل (PWA)، السبلاش ميظهرش خالص ويفضل مقتصر على الويب بس */
  @media all and (display-mode: standalone), all and (display-mode: fullscreen), all and (display-mode: minimal-ui){
    #splashScreen{ display:none !important; }
  }
  .splash-logo-wrap{
    width:120px; height:120px;
    display:flex; align-items:center; justify-content:center;
    filter:drop-shadow(0 0 22px rgba(139,0,0,.55)) drop-shadow(0 10px 20px rgba(0,0,0,.4));
    animation:splashPop .6s cubic-bezier(.2,.8,.2,1);
  }
  .splash-logo-wrap img{ width:100%; height:100%; object-fit:contain; }
  @keyframes splashPop{
    0%{ transform:scale(.7); opacity:0; }
    60%{ transform:scale(1.06); opacity:1; }
    100%{ transform:scale(1); opacity:1; }
  }
  .splash-name{
    color:var(--gold); font-weight:900; font-size:19px; letter-spacing:.5px;
    animation:fadeSlide .5s ease .15s both;
  }
  .splash-bar-track{
    width:150px; height:5px; border-radius:6px; overflow:hidden;
    background:rgba(255,255,255,.08);
  }
  .splash-bar-fill{
    height:100%; width:0%; border-radius:6px;
    background:linear-gradient(to left, var(--gold), var(--red));
    animation:splashLoad .65s ease forwards;
  }
  @keyframes splashLoad{
    0%{ width:0%; }
    70%{ width:85%; }
    100%{ width:100%; }
  }

  /* ===== Exit / Goodbye Screen ===== */
  #exitGoodbyeScreen{
    position:fixed; inset:0; z-index:10001;
    background:
      radial-gradient(60% 40% at 50% 0%, rgba(139,0,0,.25), transparent 60%),
      var(--bg);
    display:none; flex-direction:column; align-items:center; justify-content:center;
    gap:18px;
  }
  #exitGoodbyeScreen.show{ display:flex; }
  #exitGoodbyeScreen .splash-logo-wrap{ animation:splashPop .5s cubic-bezier(.2,.8,.2,1); }
  #exitGoodbyeScreen .goodbye-text{
    color:var(--gold); font-weight:900; font-size:18px; letter-spacing:.3px; text-align:center;
    animation:fadeSlide .5s ease .1s both;
  }

  footer{ position:relative; overflow:hidden; text-align:center; color:#555; font-size:10.5px; padding:34px 10px 34px; z-index:1; }
  footer::before{
    content:"";
    position:absolute;
    left:50%; top:50%;
    transform:translate(-50%,-50%);
    width:min(90%, 420px);
    height:100%;
    background:radial-gradient(60% 70% at 50% 50%, rgba(139,0,0,.28), transparent 72%);
    z-index:-1;
    pointer-events:none;
  }
  footer .credit{ display:block; margin-top:6px; color:var(--gold); font-weight:800; font-size:9.5px; letter-spacing:1.5px; opacity:.85; text-decoration:none; }

  /* تحديث شكل حقول الكتابة (الملاحظات، الشكاوى، التقييم) */
textarea.note-input, .sheet .plain-input {
  background: var(--card2) !important; 
  border: 1.5px solid rgba(201, 162, 75, 0.4) !important;
  border-radius: 12px !important;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* التأثير لما العميل يدوس جوا الحقل (Focus) */
textarea.note-input:focus, .sheet .plain-input:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 12px rgba(201, 162, 75, 0.35);
  outline: none;
  background: var(--card) !important;
}

#customerMsgSheet {
  top: 50% !important;
  bottom: auto !important;
  right: 50% !important;
  transform: translate(50%, -50%) scale(0.8) !important;
  border-radius: 20px !important;
  width: min(90%, 360px) !important;
  opacity: 0;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s, visibility .25s !important;
}
#customerMsgSheet.show {
  transform: translate(50%, -50%) scale(1) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}
