/* =====================================================================
   ghost_theme.css — ARK E-SEVAI "Phoenix Fire" theme (UI only)
   (file name kept so every page keeps loading it — colours now follow the ARK logo)
   ---------------------------------------------------------------------
   Linked LAST in <head> of every page, so it only adds / overrides
   look & feel. No logic, no markup behaviour is changed by this file.
   Palette:  void #140e0b · night #221712 · slate #32221b · line #473229
             mist #d0beae · ghost #fbf8f5 · flame (ember orange) #e77e26 / gold glow #f9bd7d
   ===================================================================== */

::selection{ background:rgba(249,189,125,.35); color:#220e04; }
html{ scrollbar-color:#634639 #140e0b; }

/* ---------- soft ghostly motion for any logo / mascot ---------- */
@keyframes ghostFloat{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-7px); } }
.hero-logo, .logo-card img, .mascot img, .logo-top{
  mix-blend-mode:normal !important;
  border-radius:20px;
  filter:drop-shadow(0 10px 26px rgba(249,189,125,.28));
}
.hero-logo, .mascot img{ animation:ghostFloat 4.6s ease-in-out infinite; }
.brand-mark{ background:transparent !important; border-radius:10px; }
.brand-mark img{ mix-blend-mode:normal !important; filter:drop-shadow(0 0 8px rgba(249,189,125,.55)); }
.site-logo-img{ background:#221712 !important; }

/* =====================================================================
   PAY-MODE CHOOSER  (Pay Online / Pay from Wallet) — every service page
   ===================================================================== */
.pay-mode{ width:100%; padding:0 8px; margin-bottom:16px; flex:1 1 100%; }
.pay-mode-title{ font-weight:700; font-size:15px; margin-bottom:10px; color:inherit; }
.pay-mode-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.pay-mode-grid:has(.pay-opt:only-child){ grid-template-columns:1fr; }
.pay-opt{ position:relative; display:block; cursor:pointer; margin:0; }
.pay-opt input{ position:absolute; opacity:0; pointer-events:none; }
.pay-card{
  display:flex; align-items:center; gap:12px; padding:13px 14px; border-radius:14px;
  background:#f9f5f2; border:2px solid #e3d7cc; color:#261b17; transition:border-color .2s, box-shadow .2s, background .2s, transform .15s;
}
.pay-ic{ font-size:26px; line-height:1; flex-shrink:0; }
.pay-tx{ display:flex; flex-direction:column; line-height:1.25; min-width:0; }
.pay-tx b{ font-size:15px; font-weight:700; }
.pay-tx small{ font-size:12px; color:#a96744; font-weight:500; }
.pay-opt:hover .pay-card{ transform:translateY(-2px); border-color:#e77c22; }
.pay-opt input:checked + .pay-card{
  background:linear-gradient(135deg,#1c120e,#31211a); border-color:#f9bd7d; color:#fbf8f5;
  box-shadow:0 0 0 4px rgba(249,189,125,.22), 0 10px 22px -10px rgba(231,124,34,.6);
}
.pay-opt input:checked + .pay-card small{ color:#d0beae; }
.pay-opt input:focus-visible + .pay-card{ outline:3px solid #f9bd7d; outline-offset:2px; }
.pay-low .pay-bal{ color:#c0392b !important; font-weight:700; }
.pay-opt input:checked + .pay-card .pay-bal{ color:#f9bd7d; }
.pay-low input:checked + .pay-card .pay-bal{ color:#ff8c8c !important; }
.pay-note{ margin-top:10px; padding:10px 14px; border-radius:12px; background:#fff0ee; border:1px solid #f5aaa3; color:#a1180d; font-size:13px; font-weight:600; }
.pay-note a{ color:#6f310c; text-decoration:underline; }
@media (max-width:520px){ .pay-mode-grid{ grid-template-columns:1fr; } }

/* wallet chip in the home top bar */
.account-corner a.wallet-link{ border-color:#e77c22; font-weight:800; }

/* =====================================================================
   DARK GHOST SKIN — front pages (home / index / login / create account)
   Enabled by <body class="ghost-dark">. Cards that carry forms stay
   dark-glass; everything keeps its layout.
   ===================================================================== */
body.ghost-dark{
  --card:#271a14; --line:#473229; --text:#f7f2ed; --muted:#d0beae; --sky:#32221b;
  --blue-soft:#2d1e17; --blue-line:#473229;
  color:#f7f2ed;
  background:
    radial-gradient(900px 480px at 90% -8%, rgba(249,189,125,.16), transparent 60%),
    radial-gradient(1000px 600px at -5% 18%, rgba(250,198,139,.13), transparent 60%),
    linear-gradient(180deg,#140e0b,#221712 60%,#140e0b) !important;
  background-attachment:fixed !important;
}
/* faint drifting mist */
body.ghost-dark::before{
  content:""; position:fixed; inset:-20% -10% auto -10%; height:70vh; z-index:0; pointer-events:none;
  background:radial-gradient(60% 50% at 30% 40%, rgba(249,189,125,.07), transparent 70%),
             radial-gradient(50% 45% at 75% 55%, rgba(250,198,139,.07), transparent 70%);
  animation:mist 18s ease-in-out infinite alternate;
}
@keyframes mist{ from{ transform:translateX(-3%); } to{ transform:translateX(3%); } }

.ghost-dark .nav{ background:rgba(20,14,11,.88) !important; border-bottom-color:#e77c22 !important; box-shadow:0 8px 26px -14px rgba(0,0,0,.8) !important; }
.ghost-dark .brand, .ghost-dark .brand .bn{ color:#fbf8f5 !important; }
.ghost-dark .brand .bn b{ color:#f9bd7d !important; }
.ghost-dark .account-corner .who{ background:#2d1e17 !important; color:#fbf8f5 !important; border-color:#e77c22 !important; }
.ghost-dark .account-corner a{ background:#2d1e17 !important; color:#ede0d5 !important; border-color:#473229 !important; }
.ghost-dark .account-corner a:hover{ background:#f9bd7d !important; color:#220e04 !important; border-color:#f9bd7d !important; }
.ghost-dark .account-corner a.logout{ color:#ff9b93 !important; background:#2a1519 !important; border-color:#5a2a30 !important; }
.ghost-dark .account-corner a.logout:hover{ background:#d92d20 !important; color:#fff !important; }
.ghost-dark .nav-link{ background:#2d1e17 !important; color:#f9bd7d !important; border-color:#e77c22 !important; }
.ghost-dark .nav-link:hover{ background:#f9bd7d !important; color:#220e04 !important; }

/* hero + cards */
.ghost-dark .hero, .ghost-dark .logo-card, .ghost-dark .box, .ghost-dark .panel{
  background:linear-gradient(160deg,#2a1d17,#1b1310) !important; border-color:#473229 !important;
  box-shadow:0 26px 54px -28px rgba(0,0,0,.85), 0 0 0 1px rgba(249,189,125,.05) inset !important;
}
.ghost-dark .box:hover{ box-shadow:0 24px 44px -18px var(--accent, #e77c22) !important; }
.ghost-dark .welcome h2, .ghost-dark .box h1, .ghost-dark h1, .ghost-dark h2, .ghost-dark h3{ color:#fbf8f5 !important; }
.ghost-dark .welcome h2 .spook{ color:#f9bd7d !important; background:linear-gradient(transparent 66%, rgba(249,189,125,.22) 66%) !important; }
.ghost-dark h1 .spook{ background:linear-gradient(100deg,#f9bd7d,#fac68b) !important; -webkit-background-clip:text !important; background-clip:text !important; }
.ghost-dark .welcome p, .ghost-dark .box p, .ghost-dark .sub, .ghost-dark .muted{ color:#d0beae !important; }
.ghost-dark .icon-badge{ background:#32221b !important; box-shadow:0 8px 18px -8px var(--accent, #e77c22), inset 0 0 0 3px #1c120e !important; }
.ghost-dark a.btn.btn-order{ background:linear-gradient(135deg,#55372a,#32221b) !important; color:#fbf8f5 !important; border:1px solid #634639; box-shadow:0 10px 20px -12px #000 !important; }
.ghost-dark a.btn.btn-order:hover{ background:linear-gradient(135deg,#ffd19b,#e77c22) !important; color:#220e04 !important; box-shadow:0 14px 26px -8px rgba(231,124,34,.7) !important; }

/* footer + contact */
.ghost-dark footer{ color:#d0beae !important; }
.ghost-dark .contact-row{ background:#271a14 !important; border-color:#473229 !important; }
.ghost-dark .contact-row a.call{ color:#f9bd7d !important; }
.ghost-dark .tagline{ color:#ede0d5 !important; }
.ghost-dark .tagline i{ color:#f9bd7d !important; }

/* notification popup */
.ghost-dark .nm-card{ background:#271a14 !important; color:#f7f2ed !important; border-color:#473229 !important; border-top-color:#f9bd7d !important; }
.ghost-dark .nm-title{ color:#f9bd7d !important; }
.ghost-dark .nm-close{ background:#32221b !important; color:#f9bd7d !important; }
.ghost-dark .nm-contact{ background:#32221b !important; border-color:#473229 !important; }
.ghost-dark .nm-contact-label{ color:#d0beae !important; }
.ghost-dark .nm-call{ color:#f9bd7d !important; }

/* forms (login / create account) */
.ghost-dark label, .ghost-dark label.fl{ color:#f9bd7d !important; }
.ghost-dark .in, .ghost-dark input[type=text], .ghost-dark input[type=password], .ghost-dark input[type=tel],
.ghost-dark input[type=email], .ghost-dark input[type=number], .ghost-dark select, .ghost-dark textarea{
  background:#140e0b !important; color:#fbf8f5 !important; border-color:#573b2f !important;
}
.ghost-dark .in:focus, .ghost-dark input:focus, .ghost-dark select:focus{
  background:#140e0b !important; border-color:#f9bd7d !important; box-shadow:0 0 0 4px rgba(249,189,125,.18) !important;
}
.ghost-dark .in::placeholder, .ghost-dark input::placeholder{ color:#b97652 !important; }
.ghost-dark .links{ background:#2d1e17 !important; border-color:#573b2f !important; color:#d0beae !important; }
.ghost-dark .links a, .ghost-dark .back:hover{ color:#f9bd7d !important; }
.ghost-dark .back, .ghost-dark .or-divider{ color:#d0beae !important; }
.ghost-dark .or-divider::before, .ghost-dark .or-divider::after{ background:#473229 !important; }
.ghost-dark .ok, .ghost-dark .warn{ color:#f7f2ed !important; }
.ghost-dark .err{ background:#2a1519 !important; color:#ff9b93 !important; border-color:#5a2a30 !important; }
.ghost-dark .site-logo-img{ background:#140e0b !important; }
.ghost-dark .px.b{ background:#f9bd7d !important; } .ghost-dark .px.y{ background:#fac68b !important; }
.ghost-dark main, .ghost-dark footer, .ghost-dark .stage{ position:relative; z-index:1; }

/* =====================================================================
   Service / order pages — a little ghost glow on the existing design
   ===================================================================== */
.rc-card{ box-shadow:0 0 0 12px rgba(249,189,125,.06), 0 30px 70px rgba(0,0,0,.6) !important; }
.btn-submit-jungle, .btn-jungle, button.go{ background-image:linear-gradient(135deg,#ffd19b,#e77c22) !important; color:#220e04 !important; }
.fee-badge{ box-shadow:0 0 14px -4px rgba(249,189,125,.55); }
.jungle-input:focus, .jungle-select:focus, .jungle-textarea:focus{ border-color:#e77c22 !important; box-shadow:0 0 0 4px rgba(231,124,34,.2) !important; }

@media (prefers-reduced-motion:reduce){
  .hero-logo, .mascot img, body.ghost-dark::before{ animation:none !important; }
}

/* brand mark (square ghost icon) — keep it fully visible in every top bar */
.brand-mark{ height:auto !important; }
.brand-mark img{ width:42px !important; height:42px !important; max-width:none !important; object-fit:contain !important; }
@media (max-width:640px){ .brand-mark img{ width:36px !important; height:36px !important; } }

/* create-account: role switch + gradient heading on dark skin */
.ghost-dark .role-opt label{ background:#2d1e17 !important; color:#d0beae !important; border-color:#573b2f !important; }
.ghost-dark .role-opt label:hover{ border-color:#f9bd7d !important; color:#f9bd7d !important; }
.ghost-dark .role-opt input:checked + label{ background:linear-gradient(135deg,#ffd19b,#e77c22) !important; color:#220e04 !important; border-color:transparent !important; box-shadow:0 10px 20px -8px rgba(231,124,34,.7) !important; }
.ghost-dark h1 .spook{ color:transparent !important; -webkit-text-fill-color:transparent !important; }

/* =====================================================================
   ARK E-SEVAI — phoenix ember glow (UI only, pure CSS)
   ===================================================================== */
@keyframes emberPulse{
  0%,100%{ filter:drop-shadow(0 10px 26px rgba(231,126,38,.34)); }
  50%    { filter:drop-shadow(0 12px 36px rgba(255,170,60,.55)); }
}
.hero-logo, .logo-card img, .mascot img, .logo-top{ animation:ghostFloat 4.6s ease-in-out infinite, emberPulse 3.2s ease-in-out infinite; border-radius:24px; }
.brand-mark img{ border-radius:50%; }
.ghost-dark .nav{ box-shadow:0 8px 26px -14px rgba(0,0,0,.8), 0 2px 0 0 rgba(231,126,38,.35) !important; }
@media (prefers-reduced-motion:reduce){ .hero-logo, .logo-card img, .mascot img, .logo-top{ animation:none !important; } }
