/* =========================================================
   PRINT PANEL — dark / cyan
   RG PROXY panel jaisa feel: dark surface, cyan accent,
   sidebar shell, monospace data.
   ========================================================= */

:root {
  --bg:        #0A0F14;   /* page */
  --bg-2:      #0E151C;   /* sidebar */
  --surface:   #121C25;   /* cards */
  --surface-2: #17232E;   /* raised rows */
  --line:      #1F303D;   /* borders */
  --line-soft: #182631;

  --text:      #E3EDF3;
  --muted:     #7C93A3;
  --dim:       #55697A;

  --cyan:      #22D3EE;
  --cyan-dim:  #0E7C8C;
  --cyan-glow: rgba(34,211,238,.16);

  --lime:      #4ADE80;
  --amber:     #FBBF24;
  --rose:      #FB7185;

  --r:  10px;
  --r-sm: 7px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 12% -8%, rgba(34,211,238,.07), transparent 60%),
    radial-gradient(700px 400px at 95% 0%, rgba(34,211,238,.04), transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.6 ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #67E8F9; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 25px; }
h2 { font-size: 17px; }

.mono, .v, .tbl td, .t-price, .stat .n {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan); font-weight: 700;
}
.hint { color: var(--muted); font-size: 12.5px; font-weight: 400; }

/* =========================================================
   Shell : sidebar + content
   ========================================================= */
.shell { display: flex; min-height: 100vh; }

.side {
  width: 246px; flex: 0 0 246px;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  padding: 18px 14px 30px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}

.logo { display: flex; align-items: center; gap: 10px; padding: 0 6px 16px; }
.logo .dot {
  width: 30px; height: 30px; border-radius: 8px; flex: 0 0 30px;
  background: linear-gradient(140deg, var(--cyan), var(--cyan-dim));
  display: grid; place-items: center;
  color: #04141A; font-weight: 800; font-size: 15px;
}
.logo .name { font-weight: 700; font-size: 16px; letter-spacing: .01em; }
.logo .sub { font-size: 10.5px; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; }

/* wallet card — the thing operators check constantly */
.wallet {
  background: linear-gradient(155deg, rgba(34,211,238,.14), rgba(34,211,238,.03));
  border: 1px solid rgba(34,211,238,.28);
  border-radius: var(--r);
  padding: 13px 14px;
  margin-bottom: 18px;
}
.wallet .lab {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); font-weight: 700; margin-bottom: 3px;
}
.wallet .amt {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 24px; font-weight: 700; color: #fff; line-height: 1.1;
}
.wallet .who { font-size: 12px; color: var(--muted); margin-top: 5px; }

.nav-label {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); padding: 14px 8px 6px; font-weight: 700;
}
.side a.nav {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--r-sm);
  color: var(--muted); font-size: 14.5px; font-weight: 500;
  margin-bottom: 2px;
}
.side a.nav:hover { background: var(--surface); color: var(--text); }
.side a.nav.on {
  background: var(--cyan-glow); color: var(--cyan); font-weight: 600;
  box-shadow: inset 2px 0 0 var(--cyan);
}
.side a.nav .ico { width: 17px; text-align: center; opacity: .85; }

/* content */
.content { flex: 1; min-width: 0; padding: 26px 26px 70px; }
.wrap { max-width: 1120px; }

/* mobile topbar */
.mtop { display: none; }

@media (max-width: 900px) {
  .shell { display: block; }
  .side {
    position: fixed; inset: 0 auto 0 0; z-index: 60;
    transform: translateX(-100%); transition: transform .22s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.6);
  }
  body.nav-open .side { transform: none; }
  body.nav-open::after {
    content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 50;
  }
  .mtop {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 40;
  }
  .mtop .burger {
    background: var(--surface); border: 1px solid var(--line); color: var(--text);
    width: 38px; height: 38px; border-radius: var(--r-sm); font-size: 17px; cursor: pointer;
  }
  .mtop .mbal {
    margin-left: auto; font-family: ui-monospace, Menlo, monospace;
    font-weight: 700; color: var(--cyan);
    background: var(--cyan-glow); border: 1px solid rgba(34,211,238,.25);
    padding: 6px 11px; border-radius: 20px; font-size: 14px;
  }
  .content { padding: 18px 14px 60px; }
}

/* =========================================================
   Page head
   ========================================================= */
.page-head { margin-bottom: 22px; }
.page-head h1 { margin: 5px 0 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; max-width: 60ch; }

/* =========================================================
   Cards
   ========================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.card-body { padding: 18px; }
.card-head {
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; font-size: 14px;
}

.cols { display: grid; grid-template-columns: 370px 1fr; gap: 20px; align-items: start; }
@media (max-width: 980px) { .cols { grid-template-columns: 1fr; } }

/* stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; margin-bottom: 6px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 15px; }
.stat .n { font-size: 22px; font-weight: 700; color: #fff; }
.stat .l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .13em; color: var(--dim); margin-top: 3px; font-weight: 700; }

/* =========================================================
   Service tiles
   ========================================================= */
.cat { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; }
.cat::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 15px;
  color: var(--text);
  display: block; position: relative; overflow: hidden;
  transition: border-color .15s, transform .15s, background .15s;
}
.tile::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0; transition: opacity .15s;
}
.tile:hover { border-color: rgba(34,211,238,.45); background: var(--surface-2); transform: translateY(-2px); }
.tile:hover::before { opacity: 1; }
.tile:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.tile .t-name { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.tile .t-price { color: var(--cyan); font-weight: 700; font-size: 16px; }
.tile .t-kind {
  font-size: 10px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--dim); margin-top: 3px; font-weight: 700;
}

/* =========================================================
   Forms
   ========================================================= */
label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--text); }

input[type=text], input[type=password], input[type=number], select {
  width: 100%; padding: 11px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font: 15px/1.4 ui-monospace, Menlo, Consolas, monospace;
}
input::placeholder { color: var(--dim); }
input:focus, select:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}
select { cursor: pointer; }
.field { margin-bottom: 15px; }

.btn {
  display: inline-block; cursor: pointer;
  background: linear-gradient(140deg, var(--cyan), var(--cyan-dim));
  color: #04141A; border: 0; border-radius: var(--r-sm);
  padding: 11px 20px; font-size: 15px; font-weight: 700;
  font-family: inherit;
}
.btn:hover { filter: brightness(1.09); color: #04141A; }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-ghost {
  background: var(--surface-2); color: var(--cyan);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--cyan-dim); color: var(--cyan); }
.btn-sm { padding: 7px 13px; font-size: 13px; }

/* =========================================================
   Alerts
   ========================================================= */
.alert {
  padding: 12px 15px; border-radius: var(--r-sm);
  margin-bottom: 18px; border: 1px solid; font-size: 14px;
}
.alert-err { background: rgba(251,113,133,.09); border-color: rgba(251,113,133,.32); color: #FDA4AF; }
.alert-ok  { background: rgba(74,222,128,.09);  border-color: rgba(74,222,128,.30);  color: #86EFAC; }

/* =========================================================
   Receipt — the signature block
   ========================================================= */
.receipt {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0; overflow: hidden;
  position: relative;
}
.receipt::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(34,211,238,.15), transparent);
}
.receipt-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px dashed var(--line);
  background: var(--surface-2);
}
.receipt-title { font-weight: 700; font-size: 15px; }
.receipt-top .mono { font-size: 12.5px; color: var(--muted); }

.rrow {
  display: flex; gap: 14px; padding: 11px 18px;
  border-bottom: 1px solid var(--line-soft); font-size: 14px;
}
.rrow:last-of-type { border-bottom: 0; }
.rrow .k { flex: 0 0 40%; color: var(--muted); }
.rrow .v { flex: 1; font-weight: 600; color: #fff; word-break: break-word; }
.rrow .v.empty { color: var(--dim); font-weight: 400; }

.receipt-foot {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 12px 18px; border-top: 1px dashed var(--line);
  background: var(--surface-2); font-size: 12px; color: var(--muted);
}
.receipt-foot .mono { color: var(--cyan); }

/* =========================================================
   Tables
   ========================================================= */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  background: var(--surface-2); padding: 10px 12px; text-align: left;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .11em;
  color: var(--dim); font-weight: 700; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--surface-2); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.pill {
  display: inline-block; padding: 3px 9px; border-radius: 20px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.pill-ok   { background: rgba(74,222,128,.14); color: var(--lime);  border: 1px solid rgba(74,222,128,.28); }
.pill-warn { background: rgba(251,191,36,.14); color: var(--amber); border: 1px solid rgba(251,191,36,.28); }
.pill-err  { background: rgba(251,113,133,.14); color: var(--rose); border: 1px solid rgba(251,113,133,.28); }

.amt-debit  { color: var(--rose); font-weight: 700; }
.amt-credit { color: var(--lime); font-weight: 700; }

/* =========================================================
   Login / setup
   ========================================================= */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 390px; }
.login-mark { text-align: center; margin-bottom: 22px; }
.login-mark .m {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 21px; font-weight: 700; letter-spacing: .01em;
}
.login-mark .m .dot {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(140deg, var(--cyan), var(--cyan-dim));
  display: grid; place-items: center; color: #04141A; font-weight: 800; font-size: 17px;
}
.login-mark .tag {
  display: block; margin-top: 8px; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 700;
}

/* login / register card footer — RG PROXY jaisa neeche wala option */
.card-foot {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding: 14px 18px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  border-radius: 0 0 var(--r) var(--r);
}
.card-foot a { font-weight: 600; }
.login-help { text-align: center; color: var(--dim); font-size: 13px; margin: 16px 0 0; }
.login-help .mono { color: var(--muted); }

/* =========================================================
   Misc
   ========================================================= */
.empty-state { text-align: center; padding: 46px 22px; color: var(--muted); }
.empty-state .big { font-size: 30px; opacity: .35; margin-bottom: 10px; }

iframe { border-radius: var(--r); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-dim); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
