/* ==========================================================================
   ashish-v130-suite.css — V130 حزمة التحسين الشاملة — عشيش للسفريات والسياحة
   1) شاشة بداية متحركة (شعار + رسالة ترحيب)
   2) تصميم ذهبي فاخر لبوابة الدخول وشاشات الحجز (مطابق لنمط صور التطبيق)
   3) تصغير مقاسات الشاشات والبطاقات (مضغوط ومريح للجوال)
   4) توحيد ألوان لوحة الإدارة + إخفاء أي بطاقات عائمة داخلها
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) شاشة البداية المتحركة (Splash)
   -------------------------------------------------------------------------- */
#v130-splash {
  position: fixed; inset: 0; z-index: 2147483600;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 24px; text-align: center;
  background:
    radial-gradient(circle at 85% 12%, rgba(212,175,55,.28), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(212,175,55,.18), transparent 40%),
    linear-gradient(160deg, #050d24 0%, #0a1a3f 48%, #152548 100%);
  font-family: 'Tajawal','Cairo',sans-serif; direction: rtl;
  opacity: 1; transition: opacity .6s ease, visibility .6s ease;
}
#v130-splash.v130-hide { opacity: 0; visibility: hidden; pointer-events: none; }

#v130-splash .v130-logo-orbit { position: relative; width: 148px; height: 148px; display: grid; place-items: center; }
#v130-splash .v130-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px dashed rgba(212,175,55,.55);
  animation: v130-spin 7s linear infinite;
}
#v130-splash .v130-ring.r2 {
  inset: -14px; border-color: rgba(244,212,122,.30);
  border-style: solid; border-width: 1.5px;
  border-top-color: transparent; border-left-color: transparent;
  animation: v130-spin 4.5s linear infinite reverse;
}
#v130-splash .v130-plane {
  position: absolute; top: -26px; right: -26px; font-size: 26px;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.45));
  animation: v130-fly 5.5s ease-in-out infinite;
  transform-origin: center;
}
#v130-splash .v130-logo {
  width: 116px; height: 116px; border-radius: 32px; object-fit: contain;
  background: #fff; padding: 10px; box-sizing: border-box;
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 5px rgba(212,175,55,.35);
  animation: v130-pop .9s cubic-bezier(.2,1.4,.4,1) both;
}
#v130-splash .v130-brand {
  color: #f4d47a; font-size: 1.35rem; font-weight: 900; margin: 0;
  animation: v130-rise .8s .35s both;
  text-shadow: 0 4px 18px rgba(0,0,0,.4);
}
#v130-splash .v130-welcome {
  color: #fff; font-size: 1rem; font-weight: 700; margin: 0; min-height: 28px;
  animation: v130-rise .8s .55s both;
}
#v130-splash .v130-welcome .v130-typed::after {
  content: '▎'; color: #d4af37; animation: v130-blink 1s steps(1) infinite;
}
#v130-splash .v130-tagline {
  color: rgba(255,255,255,.72); font-size: .82rem; margin: 0;
  animation: v130-rise .8s .75s both;
}
#v130-splash .v130-loader {
  width: 170px; height: 5px; border-radius: 99px; overflow: hidden;
  background: rgba(255,255,255,.14); margin-top: 6px;
  animation: v130-rise .8s .85s both;
}
#v130-splash .v130-loader i {
  display: block; height: 100%; width: 40%; border-radius: 99px;
  background: linear-gradient(90deg, #c9a233, #f4d47a, #c9a233);
  animation: v130-load 1.15s ease-in-out infinite;
}
@keyframes v130-spin { to { transform: rotate(360deg); } }
@keyframes v130-pop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes v130-rise { 0% { transform: translateY(16px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes v130-blink { 50% { opacity: 0; } }
@keyframes v130-load { 0% { transform: translateX(160%); } 100% { transform: translateX(-260%); } }
@keyframes v130-fly {
  0%   { transform: translate(0,0) rotate(-40deg); }
  25%  { transform: translate(-118px,-6px) rotate(-95deg); }
  50%  { transform: translate(-118px,-118px) rotate(-140deg); }
  75%  { transform: translate(-4px,-118px) rotate(-200deg); }
  100% { transform: translate(0,0) rotate(-320deg); }
}
@media (prefers-reduced-motion: reduce) {
  #v130-splash .v130-ring, #v130-splash .v130-ring.r2,
  #v130-splash .v130-plane, #v130-splash .v130-loader i { animation: none !important; }
}

/* --------------------------------------------------------------------------
   2) بوابة الدخول + شاشات الحجز بالهوية الذهبية (نمط تطبيقات النقل)
   -------------------------------------------------------------------------- */
:root {
  --v130-gold: #c9a233;
  --v130-gold-deep: #a88628;
  --v130-gold-light: #f4d47a;
  --v130-gold-soft: #fdf6e3;
  --v130-navy: #0a1a3f;
  --v130-navy-deep: #050d24;
}

/* بوابة تسجيل الدخول — أصغر وأفخم */
#ashish-app-lock {
  background:
    radial-gradient(circle at 80% 0%, rgba(212,175,55,.35), transparent 45%),
    linear-gradient(150deg, #061630 0%, #0b2545 55%, #c99b36 130%) !important;
}
#ashish-app-lock .ash-auth {
  max-width: 400px !important; padding: 20px !important;
  border-radius: 22px !important;
  border-top: 5px solid var(--v130-gold) !important;
  box-shadow: 0 30px 80px rgba(0,0,0,.45) !important;
}
#ashish-app-lock .ash-auth__brand img {
  width: 70px !important; height: 70px !important;
  box-shadow: 0 0 0 4px var(--v130-gold-soft), 0 10px 24px rgba(201,162,51,.35);
}
#ashish-app-lock .ash-auth input { padding: 11px 13px !important; border-radius: 11px !important; }
#ashish-app-lock .ash-primary {
  background: linear-gradient(135deg, var(--v130-gold-deep), var(--v130-gold) 55%, var(--v130-gold-light)) !important;
  color: #1d1602 !important; font-weight: 900 !important;
  box-shadow: 0 10px 24px rgba(201,162,51,.4);
}
#ashish-app-lock .ash-guest { background: #0b2545 !important; color: #f4d47a !important; }

/* نمط البطاقات الذهبية العام (يُطبَّق على واجهة العميل فقط) */
body.client-experience-active .card,
body.client-experience-active .service-card,
body.client-experience-active .offer-card,
body.client-experience-active .ash-sheet,
body:not(.v130-admin) .payment-card {
  border-radius: 18px !important;
}

/* --------------------------------------------------------------------------
   3) شاشات الحجز V130 — بطاقات مكدسة (stacked) ذهبية مثل نمط الصور
   -------------------------------------------------------------------------- */
.v130-stage {
  position: fixed; inset: 0; z-index: 2147483000;
  background: rgba(5,13,36,.62); backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
  font-family: 'Tajawal','Cairo',sans-serif; direction: rtl;
  opacity: 0; transition: opacity .3s ease;
}
.v130-stage.open { opacity: 1; }
.v130-stack { position: relative; width: min(100%, 460px); }
.v130-ghost {
  position: absolute; inset-inline: 14px; bottom: calc(100% - 26px);
  height: 90px; border-radius: 20px 20px 0 0;
  background: linear-gradient(135deg, #f4d47a, #c9a233);
  opacity: .35; transform: scale(.94);
}
.v130-ghost.g2 { inset-inline: 26px; bottom: calc(100% - 13px); opacity: .2; transform: scale(.88); }

.v130-sheet {
  position: relative; width: min(100%, 460px);
  max-height: 88vh; overflow-y: auto; overflow-x: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fdf9ee 100%);
  border-radius: 24px 24px 0 0;
  border-top: 5px solid var(--v130-gold);
  box-shadow: 0 -18px 60px rgba(0,0,0,.4);
  padding: 0 0 calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateY(104%);
  transition: transform .38s cubic-bezier(.2,.9,.3,1);
  -webkit-overflow-scrolling: touch;
}
.v130-stage.open .v130-sheet { transform: translateY(0); }

.v130-sheet__hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(244,212,122,.5), transparent 40%),
    linear-gradient(135deg, var(--v130-gold-deep) 0%, var(--v130-gold) 55%, #dcb84e 100%);
  padding: 14px 18px 16px; color: #241b02;
  border-radius: 20px 20px 0 0;
  display: flex; align-items: center; gap: 12px;
}
.v130-sheet__hero .v130-bus {
  width: 52px; height: 52px; border-radius: 14px; flex: 0 0 auto;
  background: rgba(255,255,255,.92); display: grid; place-items: center;
  font-size: 26px; box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.v130-sheet__hero h3 { margin: 0; font-size: 1.02rem; font-weight: 900; }
.v130-sheet__hero p { margin: 2px 0 0; font-size: .72rem; font-weight: 700; opacity: .8; }
.v130-sheet__hero .v130-close {
  margin-inline-start: auto; border: 0; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: #7a611b;
  font-size: 15px; font-weight: 900;
}
.v130-steps {
  display: flex; gap: 4px; padding: 12px 16px 4px; direction: rtl;
}
.v130-steps span {
  flex: 1; text-align: center; font-size: .62rem; font-weight: 800;
  color: #b08c22; padding: 5px 2px; border-radius: 8px;
  background: var(--v130-gold-soft); border: 1px solid #efe2b8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v130-steps span.on {
  background: linear-gradient(135deg, var(--v130-gold), #dcb84e);
  color: #241b02; border-color: transparent;
  box-shadow: 0 4px 12px rgba(201,162,51,.35);
}
.v130-body { padding: 12px 16px 0; }
.v130-field { margin-bottom: 12px; position: relative; }
.v130-field > label {
  position: absolute; top: -8px; inset-inline-start: 14px; z-index: 2;
  background: linear-gradient(90deg, var(--v130-gold), #dcb84e);
  color: #241b02; font-size: .66rem; font-weight: 900;
  padding: 2px 10px; border-radius: 99px;
  box-shadow: 0 3px 8px rgba(201,162,51,.3);
}
.v130-field .v130-control {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1.6px solid #eadfbe; border-radius: 14px;
  padding: 15px 14px 11px; min-height: 54px;
  transition: border-color .2s, box-shadow .2s;
}
.v130-field .v130-control:focus-within {
  border-color: var(--v130-gold);
  box-shadow: 0 0 0 4px rgba(201,162,51,.14);
}
.v130-field .v130-control .ic { font-size: 19px; color: var(--v130-gold-deep); flex: 0 0 auto; }
.v130-field input, .v130-field select, .v130-field textarea {
  border: 0; outline: 0; background: transparent; width: 100%;
  font: inherit; font-weight: 700; color: var(--v130-navy); font-size: .92rem;
}
.v130-field textarea { min-height: 64px; resize: vertical; }
.v130-cta {
  display: block; width: calc(100% - 32px); margin: 16px 16px 0;
  border: 0; cursor: pointer; border-radius: 14px; padding: 14px;
  background: linear-gradient(135deg, var(--v130-gold-deep), var(--v130-gold) 55%, #dcb84e);
  color: #241b02; font: inherit; font-weight: 900; font-size: 1rem;
  box-shadow: 0 12px 26px rgba(201,162,51,.45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.v130-cta:active { transform: scale(.97); box-shadow: 0 6px 14px rgba(201,162,51,.35); }
.v130-cta[disabled] { opacity: .6; pointer-events: none; }
.v130-note {
  margin: 12px 16px 0; padding: 10px 12px; border-radius: 12px;
  background: var(--v130-gold-soft); border: 1px dashed #d9c37a;
  color: #7a611b; font-size: .72rem; font-weight: 700; line-height: 1.7;
}

/* نتائج الحجز — بطاقات رحلات ذهبية (نمط صورة نتائج البحث) */
.v130-trip-card {
  background: #fff; border: 1.6px solid #efe2b8; border-radius: 18px;
  margin: 0 16px 12px; padding: 12px; position: relative; overflow: hidden;
}
.v130-trip-card::before {
  content: ''; position: absolute; top: 0; inset-inline-start: 0; bottom: 0;
  width: 5px; background: linear-gradient(180deg, var(--v130-gold), var(--v130-gold-deep));
}
.v130-trip-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.v130-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, var(--v130-gold), #dcb84e);
  color: #241b02; font-size: .68rem; font-weight: 900;
  padding: 4px 12px; border-radius: 99px;
}
.v130-chip.outline {
  background: #fff; color: var(--v130-gold-deep);
  border: 1.5px solid var(--v130-gold);
}
.v130-route {
  display: flex; align-items: center; gap: 10px; margin: 12px 0 6px;
}
.v130-route .city { flex: 0 0 auto; text-align: center; min-width: 74px; }
.v130-route .city b { display: block; font-size: .92rem; color: var(--v130-navy); }
.v130-route .city small { color: #8a7a45; font-weight: 700; font-size: .68rem; }
.v130-route .line {
  flex: 1; height: 3px; border-radius: 99px; position: relative;
  background: linear-gradient(90deg, var(--v130-gold), #e6d194);
}
.v130-route .line::before, .v130-route .line::after {
  content: ''; position: absolute; top: 50%; width: 10px; height: 10px;
  border-radius: 50%; transform: translateY(-50%);
  background: var(--v130-gold-deep); box-shadow: 0 0 0 3px #fdf6e3;
}
.v130-route .line::before { inset-inline-start: -2px; }
.v130-route .line::after { inset-inline-end: -2px; background: var(--v130-navy); }
.v130-price-row { display: flex; gap: 8px; margin-top: 8px; }
.v130-price {
  flex: 1; text-align: center; border-radius: 12px; padding: 8px 6px;
  background: var(--v130-gold-soft); border: 1px solid #efe2b8;
}
.v130-price small { display: block; color: #8a7a45; font-size: .64rem; font-weight: 800; }
.v130-price b { color: var(--v130-gold-deep); font-size: .95rem; }
.v130-actions { display: flex; gap: 8px; margin-top: 10px; }
.v130-actions .v130-cta { width: auto; flex: 1; margin: 0; padding: 11px; font-size: .88rem; }
.v130-actions .v130-ghostbtn {
  flex: 1; border: 1.6px solid var(--v130-gold); border-radius: 14px;
  background: #fff; color: var(--v130-gold-deep); font: inherit;
  font-weight: 900; font-size: .88rem; padding: 11px; cursor: pointer;
}

/* --------------------------------------------------------------------------
   4) تصغير مقاسات الشاشات (العميل) — مضغوط دون كسر التصميم
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body:not(.v130-admin) { font-size: 14px; }
  body:not(.v130-admin) h1 { font-size: 1.35rem !important; }
  body:not(.v130-admin) h2 { font-size: 1.15rem !important; }
  body:not(.v130-admin) h3 { font-size: 1rem !important; }
  body:not(.v130-admin) .card,
  body:not(.v130-admin) .service-card,
  body:not(.v130-admin) .offer-card { padding: 14px !important; }
  body:not(.v130-admin) section { padding-top: 26px !important; padding-bottom: 26px !important; }
}

/* --------------------------------------------------------------------------
   5) لوحة الإدارة — توحيد الألوان + تصغير + حجب البطاقات العائمة
   -------------------------------------------------------------------------- */
body.v130-admin {
  --primary: #0a1a3f !important;
  --primary-light: #1e3a70 !important;
  --primary-dark: #050d24 !important;
  --gold: #c9a233 !important;
  --gold-light: #f4d47a !important;
  --bg: #f4f1e8 !important;
  --surface: #ffffff !important;
  --text: #1a1a2e !important;
  --text-muted: #5c6480 !important;
  font-size: 13.5px;
}
body.v130-admin .card,
body.v130-admin .stat-card,
body.v130-admin .settings-section {
  border-radius: 16px !important;
  border: 1px solid rgba(201,162,51,.22) !important;
  box-shadow: 0 4px 16px rgba(10,26,63,.07) !important;
}
body.v130-admin .btn-primary,
body.v130-admin .btn-auth {
  background: linear-gradient(135deg, #a88628, #c9a233 60%, #dcb84e) !important;
  color: #241b02 !important; font-weight: 900 !important;
}
body.v130-admin input, body.v130-admin select, body.v130-admin textarea {
  border-radius: 10px !important;
  border: 1.5px solid #d9d3c0 !important;
}
body.v130-admin input:focus, body.v130-admin select:focus, body.v130-admin textarea:focus {
  border-color: #c9a233 !important;
  box-shadow: 0 0 0 3px rgba(201,162,51,.16) !important;
}

/* أي بطاقة/شريط عائم داخل الأدمن لا ينتمي للأدمن يُخفى (حقن داخل الموقع) */
body.v130-admin .v46-float,
body.v130-admin .client-float,
body.v130-admin [data-v126-hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   6) ربط الواتساب الديناميكي (بطاقة الإعدادات)
   -------------------------------------------------------------------------- */
.v130-wa-card {
  background: linear-gradient(150deg, #0f5132 0%, #128c4b 100%);
  border-radius: 18px; padding: 18px; color: #fff; margin-top: 14px;
  box-shadow: 0 14px 34px rgba(18,140,75,.3);
}
.v130-wa-card h4 { margin: 0 0 4px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.v130-wa-card p { margin: 0 0 12px; font-size: .78rem; opacity: .88; line-height: 1.8; }
.v130-wa-status {
  display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; font-weight: 800;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  border-radius: 99px; padding: 6px 14px; margin-bottom: 12px;
}
.v130-wa-status.on { background: rgba(46,204,113,.22); border-color: rgba(46,204,113,.6); }
.v130-wa-status.off { background: rgba(255,82,82,.18); border-color: rgba(255,82,82,.5); }
.v130-wa-qrbox {
  background: #fff; border-radius: 14px; padding: 12px;
  display: none; text-align: center; margin-bottom: 12px;
}
.v130-wa-qrbox.show { display: block; }
.v130-wa-qrbox canvas, .v130-wa-qrbox img { margin: 0 auto; display: block; }
.v130-wa-qrbox small { display: block; color: #555; margin-top: 8px; font-size: .7rem; line-height: 1.7; }
.v130-wa-row { display: flex; gap: 8px; flex-wrap: wrap; }
.v130-wa-row input {
  flex: 1; min-width: 160px; border: 0; border-radius: 10px; padding: 10px 12px;
  font: inherit; font-weight: 700; color: #123;
}
.v130-wa-row button {
  border: 0; border-radius: 10px; padding: 10px 16px; cursor: pointer;
  font: inherit; font-weight: 900;
}
.v130-wa-row .v130-wa-save { background: #f4d47a; color: #241b02; }
.v130-wa-row .v130-wa-link { background: #25d366; color: #fff; }
.v130-wa-row .v130-wa-unlink { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.35) !important; }

/* --------------------------------------------------------------------------
   7) نافذة عرض الطلب + المرفقات (لا تعليق)
   -------------------------------------------------------------------------- */
.v130-modal {
  position: fixed; inset: 0; z-index: 2147483200;
  background: rgba(5,13,36,.66); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; padding: 14px;
}
.v130-modal__box {
  width: min(100%, 720px); max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 20px; border-top: 5px solid var(--v130-gold);
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  font-family: 'Tajawal','Cairo',sans-serif; direction: rtl;
}
.v130-modal__head {
  position: sticky; top: 0; z-index: 5;
  background: linear-gradient(135deg, var(--v130-navy-deep), var(--v130-navy));
  color: #fff; padding: 14px 18px; display: flex; align-items: center; gap: 10px;
}
.v130-modal__head h3 { margin: 0; font-size: 1rem; color: var(--v130-gold-light); }
.v130-modal__head .v130-close {
  margin-inline-start: auto; border: 0; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-weight: 900;
}
.v130-modal__body { padding: 16px 18px 20px; }
.v130-att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.v130-att {
  border: 1.5px solid #eadfbe; border-radius: 12px; overflow: hidden;
  background: var(--v130-gold-soft); text-decoration: none; color: var(--v130-navy);
  display: flex; flex-direction: column; min-height: 96px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.v130-att:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,162,51,.25); }
.v130-att img { width: 100%; height: 76px; object-fit: cover; background: #eee; }
.v130-att .v130-att-name {
  padding: 7px 9px; font-size: .68rem; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v130-skeleton {
  border-radius: 12px; min-height: 90px;
  background: linear-gradient(90deg, #f0ead6 25%, #faf5e4 50%, #f0ead6 75%);
  background-size: 200% 100%; animation: v130-shimmer 1.2s linear infinite;
}
@keyframes v130-shimmer { to { background-position: -200% 0; } }
.v130-error-box {
  background: #fff3f1; border: 1.5px solid #f3c1b8; color: #9a3412;
  border-radius: 12px; padding: 12px 14px; font-size: .8rem; font-weight: 700;
}

/* --------------------------------------------------------------------------
   8) ورقة الطباعة الموحدة + QR
   -------------------------------------------------------------------------- */
@media print {
  body > *:not(#v130-print-root) { display: none !important; }
  #v130-print-root { display: block !important; }
}
#v130-print-root { display: none; direction: rtl; font-family: 'Tajawal','Cairo',sans-serif; color: #111; }
#v130-print-root .p-head { display: flex; align-items: center; gap: 12px; border-bottom: 3px double #c9a233; padding-bottom: 10px; margin-bottom: 12px; }
#v130-print-root .p-head img { width: 64px; height: 64px; object-fit: contain; }
#v130-print-root .p-head h1 { font-size: 1.15rem; margin: 0; color: #0a1a3f; }
#v130-print-root .p-head p { margin: 2px 0 0; font-size: .72rem; color: #555; }
#v130-print-root table { width: 100%; border-collapse: collapse; font-size: .8rem; }
#v130-print-root td, #v130-print-root th { border: 1px solid #d9cf9f; padding: 6px 8px; text-align: right; }
#v130-print-root th { background: #fdf6e3; color: #7a611b; width: 32%; }
#v130-print-root .p-qr { text-align: center; margin-top: 14px; }
#v130-print-root .p-qr img, #v130-print-root .p-qr canvas { width: 120px !important; height: 120px !important; }
#v130-print-root .p-foot { margin-top: 12px; font-size: .68rem; color: #666; text-align: center; border-top: 1px dashed #c9a233; padding-top: 8px; }
