/* Extracted from mellon_FULL_DEMO.html - do not edit; overrides live in nexi.css */

/* ═══════════════════════════════════════════════
   GLOBAL RESET & VARIABLES
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
:root {
  --blue:#2B6CB8; --blue-dark:#1a4a8a; --blue-light:#e8f1fb;
  --navy:#0f1f3d; --accent:#1DBFAC; --accent-bg:#e6f9f7;
  --border:#e2e8f4; --text:#0f1f3d; --muted:#6b7a99; --faint:#9aaac4;
  --bg:#f4f6fb; --surface:#ffffff;
  --danger:#e53e3e; --danger-bg:#fff5f5;
  --warn:#f59e0b; --warn-bg:#fef3c7;
  --purple:#7c3aed; --purple-bg:#f3f0ff;
  --success:#1DBFAC; --success-bg:#e6f9f7;
  --sw:240px; --th:64px;
}
html, body { height:100%; font-family:'DM Sans',sans-serif; background:var(--bg); color:var(--text); overflow:hidden; }

/* ═══════════════════════════════════════════════
   SCREEN SYSTEM — one page at a time
═══════════════════════════════════════════════ */
.screen { display:none; width:100%; height:100vh; }
.screen.active { display:flex; }

/* ═══════════════════════════════════════════════
   PRESENTATION BAR
═══════════════════════════════════════════════ */
#pres-bar {
  position:fixed; bottom:0; left:0; right:0; height:32px;
  background:rgba(15,31,61,.92); backdrop-filter:blur(8px);
  display:flex; align-items:center; justify-content:center;
  gap:6px; z-index:9999; padding:0 16px;
}
.pb-dot {
  width:7px; height:7px; border-radius:50%;
  background:rgba(255,255,255,.25); cursor:pointer;
  transition:all .2s; flex-shrink:0;
}
.pb-dot.active { background:#fff; transform:scale(1.3); }
.pb-dot:hover  { background:rgba(255,255,255,.6); }
.pb-label { font-size:10px; color:rgba(255,255,255,.5); margin:0 8px; white-space:nowrap; }
.pb-nav { font-size:10px; font-weight:500; color:rgba(255,255,255,.6); cursor:pointer; padding:3px 8px; border-radius:4px; user-select:none; }
.pb-nav:hover { background:rgba(255,255,255,.1); color:#fff; }

/* ═══════════════════════════════════════════════
   SHARED SIDEBAR
═══════════════════════════════════════════════ */
.sidebar {
  width:var(--sw); background:var(--navy);
  display:flex; flex-direction:column;
  height:100vh; flex-shrink:0; overflow:hidden;
}
.sb-logo { padding:18px 20px; border-bottom:1px solid rgba(255,255,255,.07); display:flex; align-items:center; gap:10px; height:var(--th); }
.sb-logo-text span:first-child { font-size:15px; font-weight:600; color:#fff; letter-spacing:.04em; display:block; }
.sb-logo-text span:last-child  { font-size:9px; color:rgba(255,255,255,.4); letter-spacing:.12em; text-transform:uppercase; display:block; margin-top:2px; }
.sb-tenant { margin:12px 12px 6px; background:rgba(43,108,184,.18); border:1px solid rgba(43,108,184,.3); border-radius:8px; padding:9px 12px; display:flex; align-items:center; gap:8px; }
.sb-tenant-logo { width:26px; height:26px; border-radius:6px; background:#003087; display:flex; align-items:center; justify-content:center; font-size:9px; font-weight:700; color:#fff; flex-shrink:0; }
.sb-tenant-name { font-size:12px; font-weight:500; color:#fff; }
.sb-tenant-sub  { font-size:10px; color:rgba(141,164,200,.7); }
.sb-switch { font-size:10px; color:#4a84cc; margin-left:auto; cursor:pointer; }
.sb-nav { flex:1; padding:6px 0; overflow-y:auto; overflow-x:hidden; }
.sb-sec { font-size:9px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:rgba(141,164,200,.45); padding:12px 18px 4px; }
.sb-item { display:flex; align-items:center; gap:10px; padding:9px 16px; margin:1px 10px; border-radius:8px; cursor:pointer; color:rgba(141,164,200,.8); font-size:13px; transition:all .15s; position:relative; }
.sb-item:hover { background:rgba(255,255,255,.07); color:#fff; }
.sb-item.active { background:rgba(43,108,184,.35); color:#fff; font-weight:500; }
.sb-item.active::before { content:''; position:absolute; left:0; top:50%; transform:translateY(-50%); width:3px; height:20px; background:#4a84cc; border-radius:0 2px 2px 0; }
.sb-item svg { width:17px; height:17px; flex-shrink:0; opacity:.75; }
.sb-item.active svg, .sb-item:hover svg { opacity:1; }
.sb-badge { margin-left:auto; font-size:10px; font-weight:600; background:var(--blue); color:#fff; padding:1px 6px; border-radius:10px; min-width:18px; text-align:center; }
.sb-badge.w { background:var(--warn); }
.sb-foot { padding:12px; border-top:1px solid rgba(255,255,255,.07); }
.sb-user { display:flex; align-items:center; gap:9px; padding:8px 10px; border-radius:8px; cursor:pointer; }
.sb-user:hover { background:rgba(255,255,255,.07); }
.sb-avatar { width:30px; height:30px; border-radius:50%; background:var(--blue); display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:600; color:#fff; flex-shrink:0; }
.sb-uname { font-size:12px; font-weight:500; color:#fff; }
.sb-urole { font-size:10px; color:rgba(141,164,200,.7); }

/* ═══════════════════════════════════════════════
   SHARED MAIN AREA
═══════════════════════════════════════════════ */
.main { flex:1; display:flex; flex-direction:column; height:100vh; overflow:hidden; min-width:0; }
.topbar { height:var(--th); background:var(--surface); border-bottom:1px solid var(--border); display:flex; align-items:center; padding:0 28px; gap:14px; flex-shrink:0; }
.tb-title { font-size:16px; font-weight:600; color:var(--text); flex:1; }
.tb-search { display:flex; align-items:center; gap:8px; background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:7px 12px; width:220px; }
.tb-search input { border:none; background:none; outline:none; font-size:13px; color:var(--text); font-family:'DM Sans',sans-serif; width:100%; }
.tb-search input::placeholder { color:var(--faint); }
.tb-btn { width:36px; height:36px; border-radius:8px; border:1px solid var(--border); background:var(--surface); display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--muted); position:relative; }
.tb-btn:hover { background:var(--bg); }
.notif-dot { position:absolute; top:7px; right:7px; width:7px; height:7px; background:var(--danger); border-radius:50%; border:1.5px solid #fff; }
.lang-btn { display:flex; align-items:center; gap:5px; padding:0 10px; height:36px; border:1px solid var(--border); border-radius:8px; background:var(--surface); cursor:pointer; font-size:12px; font-weight:500; color:var(--muted); font-family:'DM Sans',sans-serif; }
.content { flex:1; overflow-y:auto; padding:24px 28px 56px; }

/* ═══════════════════════════════════════════════
   SHARED COMPONENTS
═══════════════════════════════════════════════ */
.pill { display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:500; padding:3px 9px; border-radius:20px; white-space:nowrap; }
.pill::before { content:''; width:5px; height:5px; border-radius:50%; flex-shrink:0; }
.pill.active   { background:var(--accent-bg); color:#0d9488; } .pill.active::before   { background:var(--accent); }
.pill.in_lab   { background:var(--warn-bg);   color:#92400e; } .pill.in_lab::before   { background:var(--warn); }
.pill.fault    { background:var(--danger-bg); color:var(--danger); } .pill.fault::before { background:var(--danger); }
.pill.pending  { background:var(--blue-light); color:var(--blue); } .pill.pending::before { background:var(--blue); }
.pill.open     { background:var(--blue-light); color:var(--blue); } .pill.open::before   { background:var(--blue); }
.pill.scheduled { background:var(--purple-bg); color:var(--purple); } .pill.scheduled::before { background:var(--purple); }
.pill.resolved { background:var(--accent-bg); color:#0d9488; } .pill.resolved::before { background:var(--accent); }
.pill.closed   { background:var(--bg); color:var(--faint); } .pill.closed::before   { background:var(--faint); }
.pill.paid     { background:var(--accent-bg); color:#0d9488; } .pill.paid::before     { background:var(--accent); }
.pill.overdue  { background:var(--danger-bg); color:var(--danger); } .pill.overdue::before { background:var(--danger); }
.pill.confirmed { background:var(--accent-bg); color:#0d9488; } .pill.confirmed::before { background:var(--accent); }
.pill.requested { background:var(--warn-bg); color:#92400e; } .pill.requested::before { background:var(--warn); }
.panel { background:var(--surface); border:1px solid var(--border); border-radius:14px; overflow:hidden; }
.panel-hdr { padding:14px 18px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:8px; }
.panel-title { font-size:14px; font-weight:600; color:var(--text); flex:1; }
.panel-action { font-size:12px; color:var(--blue); cursor:pointer; font-weight:500; }
.sec-hdr { font-size:11px; font-weight:700; color:var(--text); margin-bottom:14px; display:flex; align-items:center; gap:10px; text-transform:uppercase; letter-spacing:.08em; }
.sec-hdr::after { content:''; flex:1; height:1px; background:var(--border); }
.btn-primary { display:flex; align-items:center; gap:6px; font-size:12px; font-weight:600; padding:8px 16px; border-radius:8px; background:var(--blue); color:#fff; border:none; cursor:pointer; font-family:'DM Sans',sans-serif; white-space:nowrap; transition:background .15s; }
.btn-primary:hover { background:var(--blue-dark); }

/* ═══════════════════════════════════════════════
   SCREEN 1 — LOGIN
═══════════════════════════════════════════════ */
#s-login { flex-direction:row; }
.login-left {
  width:440px; flex-shrink:0; background:var(--navy);
  display:flex; flex-direction:column; justify-content:space-between;
  padding:48px; position:relative; overflow:hidden;
}
.login-left::before { content:''; position:absolute; bottom:-120px; right:-120px; width:420px; height:420px; border-radius:50%; background:rgba(43,108,184,.18); }
.login-left::after  { content:''; position:absolute; top:-80px; left:-80px; width:280px; height:280px; border-radius:50%; background:rgba(29,191,172,.08); }
.ll-logo { display:flex; align-items:center; gap:12px; position:relative; z-index:1; }
.ll-logo-text span:first-child { font-size:20px; font-weight:600; color:#fff; letter-spacing:.06em; display:block; }
.ll-logo-text span:last-child  { font-size:10px; color:rgba(255,255,255,.45); letter-spacing:.14em; text-transform:uppercase; display:block; margin-top:2px; }
.ll-body { position:relative; z-index:1; }
.ll-tag { display:inline-block; font-size:11px; font-weight:500; color:var(--accent); background:rgba(29,191,172,.12); border:1px solid rgba(29,191,172,.25); border-radius:20px; padding:4px 12px; margin-bottom:20px; }
.ll-headline { font-size:34px; font-weight:600; color:#fff; line-height:1.2; margin-bottom:14px; }
.ll-headline em { color:var(--accent); font-style:normal; }
.ll-sub { font-size:14px; color:rgba(255,255,255,.5); line-height:1.7; max-width:340px; }
.ll-feats { margin-top:32px; display:flex; flex-direction:column; gap:11px; }
.ll-feat { display:flex; align-items:center; gap:11px; }
.ll-feat-icon { width:32px; height:32px; border-radius:8px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; }
.ll-feat-label { font-size:12px; color:rgba(255,255,255,.65); }
.ll-footer { position:relative; z-index:1; font-size:11px; color:rgba(255,255,255,.22); }
.login-right { flex:1; display:flex; align-items:center; justify-content:center; padding:48px 40px; background:var(--surface); }
.form-wrap { width:100%; max-width:400px; }
.login-sub-screen { display:none; }
.login-sub-screen.active { display:block; }
.form-title { font-size:24px; font-weight:600; color:var(--text); margin-bottom:6px; }
.form-sub   { font-size:14px; color:var(--muted); margin-bottom:30px; line-height:1.6; }
.field { margin-bottom:16px; }
.field label { display:block; font-size:12px; font-weight:500; color:var(--text); margin-bottom:6px; }
.field input { width:100%; height:44px; border:1.5px solid var(--border); border-radius:10px; padding:0 14px; font-size:14px; font-family:'DM Sans',sans-serif; color:var(--text); background:var(--surface); outline:none; transition:border-color .15s, box-shadow .15s; }
.field input:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(43,108,184,.1); }
.field input::placeholder { color:#b0bbd4; }
.field-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.field-row label { margin-bottom:0; }
.forgot-link { font-size:12px; color:var(--blue); cursor:pointer; font-weight:500; }
.pw-wrap { position:relative; }
.pw-wrap input { padding-right:44px; }
.pw-eye { position:absolute; right:14px; top:50%; transform:translateY(-50%); cursor:pointer; color:var(--muted); }
.big-btn { width:100%; height:46px; background:var(--blue); color:#fff; border:none; border-radius:10px; font-size:14px; font-weight:600; font-family:'DM Sans',sans-serif; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; transition:background .15s; margin-top:8px; }
.big-btn:hover { background:var(--blue-dark); }
.divider { display:flex; align-items:center; gap:12px; margin:20px 0; font-size:12px; color:var(--muted); }
.divider::before, .divider::after { content:''; flex:1; height:1px; background:var(--border); }
.azure-note { display:flex; align-items:center; justify-content:center; gap:6px; font-size:12px; color:var(--muted); }
.back-link { display:flex; align-items:center; gap:6px; font-size:13px; color:var(--muted); cursor:pointer; margin-bottom:24px; }
.back-link:hover { color:var(--blue); }
.otp-row { display:flex; gap:10px; justify-content:center; margin:22px 0; }
.otp-box { width:48px; height:56px; border:1.5px solid var(--border); border-radius:10px; font-size:22px; font-weight:600; font-family:'DM Mono',monospace; text-align:center; color:var(--text); outline:none; }
.otp-box:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(43,108,184,.1); }
.twofa-note { background:var(--blue-light); border:1px solid rgba(43,108,184,.2); border-radius:8px; padding:10px 14px; font-size:12px; color:var(--blue-dark); margin-bottom:18px; }
.resend-row { text-align:center; font-size:12px; color:var(--muted); margin-top:12px; }
.resend-link { color:var(--blue); cursor:pointer; font-weight:500; }
.portal-cards { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:22px; }
.portal-card { border:1.5px solid var(--border); border-radius:14px; padding:20px 16px; cursor:pointer; transition:all .15s; display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; }
.portal-card:hover { border-color:var(--blue); box-shadow:0 4px 16px rgba(43,108,184,.12); transform:translateY(-2px); }
.portal-logo { width:52px; height:52px; border-radius:13px; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:#fff; }
.portal-name  { font-size:14px; font-weight:600; color:var(--text); }
.portal-count { font-size:11px; color:var(--muted); }
.portal-tier  { font-size:10px; font-weight:600; padding:2px 8px; border-radius:10px; }
.tier-premium { background:#fef3c7; color:#92400e; }
.tier-basic   { background:var(--bg); color:var(--muted); }
.portal-note  { font-size:12px; color:var(--muted); text-align:center; line-height:1.6; padding-top:14px; border-top:1px solid var(--border); }
.merchant-tag { display:inline-flex; align-items:center; gap:6px; background:var(--bg); border:1px solid var(--border); border-radius:20px; padding:4px 12px 4px 8px; margin-bottom:22px; }
.merchant-av { width:22px; height:22px; border-radius:50%; background:var(--blue); color:#fff; font-size:9px; font-weight:600; display:flex; align-items:center; justify-content:center; }

/* ═══════════════════════════════════════════════
   SCREEN 2 — DASHBOARD
═══════════════════════════════════════════════ */
.alert-banner { background:linear-gradient(135deg,#fff8e6,#fef3c7); border:1px solid var(--warn); border-left:4px solid var(--warn); border-radius:10px; padding:12px 16px; display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.ab-text { flex:1; font-size:13px; color:#92400e; }
.ab-action { font-size:12px; font-weight:600; color:#92400e; border:1px solid var(--warn); border-radius:6px; padding:5px 12px; cursor:pointer; background:rgba(245,158,11,.1); white-space:nowrap; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:20px; }
.stat-card { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:16px 18px; position:relative; overflow:hidden; cursor:pointer; transition:border-color .15s; }
.stat-card:hover { border-color:var(--blue); }
.stat-label { font-size:11px; font-weight:500; color:var(--faint); text-transform:uppercase; letter-spacing:.07em; margin-bottom:7px; }
.stat-value { font-size:28px; font-weight:700; font-family:'DM Mono',monospace; color:var(--text); line-height:1; margin-bottom:5px; }
.stat-sub { font-size:11px; color:var(--muted); }
.stat-ico { position:absolute; top:16px; right:16px; width:34px; height:34px; border-radius:9px; display:flex; align-items:center; justify-content:center; }
.ico-blue { background:var(--blue-light); color:var(--blue); }
.ico-teal { background:var(--accent-bg); color:var(--accent); }
.ico-warn { background:var(--warn-bg); color:var(--warn); }
.ico-red  { background:var(--danger-bg); color:var(--danger); }
.dash-grid { display:grid; grid-template-columns:1fr 340px; gap:16px; margin-bottom:16px; }
.device-table { width:100%; border-collapse:collapse; }
.device-table th { text-align:left; font-size:11px; font-weight:500; color:var(--faint); text-transform:uppercase; letter-spacing:.06em; padding:10px 18px; background:#fafbfd; border-bottom:1px solid var(--border); }
.device-table td { padding:11px 18px; font-size:13px; border-bottom:1px solid var(--border); vertical-align:middle; }
.device-table tr:last-child td { border-bottom:none; }
.device-table tr:hover td { background:#fafbfd; cursor:pointer; }
.dev-model { font-weight:500; color:var(--text); }
.dev-tid   { font-size:11px; color:var(--faint); font-family:'DM Mono',monospace; margin-top:2px; }
.tbl-action { font-size:11px; color:var(--blue); cursor:pointer; font-weight:500; }
.dash-right { display:flex; flex-direction:column; gap:14px; }
.ticket-item { padding:12px 16px; border-bottom:1px solid var(--border); display:flex; gap:10px; align-items:flex-start; cursor:pointer; }
.ticket-item:last-child { border-bottom:none; }
.ticket-item:hover { background:#fafbfd; }
.t-dot { width:8px; height:8px; border-radius:50%; margin-top:4px; flex-shrink:0; }
.t-body { flex:1; min-width:0; }
.t-title { font-size:13px; font-weight:500; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.t-meta  { font-size:11px; color:var(--faint); margin-top:2px; display:flex; gap:6px; }
.t-badge { font-size:10px; font-weight:600; padding:2px 7px; border-radius:4px; white-space:nowrap; }
.billing-row { padding:12px 16px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:11px; cursor:pointer; }
.billing-row:last-child { border-bottom:none; }
.billing-row:hover { background:#fafbfd; }
.br-icon { width:30px; height:30px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:13px; flex-shrink:0; }
.br-label { font-size:13px; font-weight:500; color:var(--text); flex:1; }
.br-date  { font-size:11px; color:var(--faint); }
.br-amount { font-size:13px; font-weight:600; font-family:'DM Mono',monospace; }
.br-amount.paid { color:var(--success); }
.br-amount.due  { color:var(--danger); }
.bottom-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; }
.qa-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:14px; }
.qa-btn { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; padding:14px 10px; border-radius:9px; border:1px solid var(--border); cursor:pointer; transition:all .15s; text-align:center; background:var(--bg); }
.qa-btn:hover { border-color:var(--blue); background:var(--blue-light); }
.qa-icon { width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:14px; }
.qa-label { font-size:11px; font-weight:500; color:var(--muted); }
.notif-item { padding:11px 16px; border-bottom:1px solid var(--border); display:flex; gap:10px; }
.notif-item:last-child { border-bottom:none; }
.notif-item.unread { background:#fafcff; }
.ni-icon { width:28px; height:28px; border-radius:7px; display:flex; align-items:center; justify-content:center; font-size:12px; flex-shrink:0; }
.ni-text { font-size:12px; color:var(--text); line-height:1.5; }
.ni-time { font-size:10px; color:var(--faint); margin-top:3px; }
.ni-dot  { width:6px; height:6px; border-radius:50%; background:var(--blue); margin-top:6px; flex-shrink:0; }
.doc-row { padding:12px 16px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:10px; cursor:pointer; }
.doc-row:hover { background:#fafbfd; }
.doc-row:last-child { border-bottom:none; }
.doc-icon { width:30px; height:30px; border-radius:8px; background:var(--blue-light); display:flex; align-items:center; justify-content:center; font-size:13px; flex-shrink:0; }
.doc-label { font-size:13px; font-weight:500; color:var(--text); flex:1; }
.doc-date  { font-size:11px; color:var(--faint); }
.doc-dl    { font-size:11px; color:var(--blue); font-weight:500; }

/* ═══════════════════════════════════════════════
   SCREEN 3 — TERMINALS
═══════════════════════════════════════════════ */
.term-list-layout { display:flex; gap:20px; }
.term-cards-col { flex:1; min-width:0; }
.list-hdr { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.list-title { font-size:18px; font-weight:600; color:var(--text); flex:1; }
.filter-row { display:flex; gap:6px; }
.fb { font-size:11px; font-weight:500; padding:5px 12px; border-radius:20px; border:1px solid var(--border); background:var(--surface); color:var(--muted); cursor:pointer; transition:all .15s; }
.fb.active { background:var(--blue); color:#fff; border-color:var(--blue); }
.device-card { background:var(--surface); border:1.5px solid var(--border); border-radius:14px; padding:15px 17px; margin-bottom:10px; cursor:pointer; transition:border-color .15s, box-shadow .15s; display:grid; grid-template-columns:40px 1fr auto; gap:13px; align-items:center; }
.device-card:hover { border-color:var(--blue); box-shadow:0 2px 12px rgba(43,108,184,.1); }
.device-card.selected { border-color:var(--blue); background:#fafcff; box-shadow:0 2px 16px rgba(43,108,184,.15); }
.dc-icon { width:40px; height:40px; border-radius:10px; background:var(--blue-light); display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--blue); }
.dc-model { font-size:14px; font-weight:600; color:var(--text); }
.dc-meta  { display:flex; align-items:center; gap:8px; margin-top:3px; }
.dc-tid   { font-size:11px; font-family:'DM Mono',monospace; color:var(--faint); }
.dc-loc   { font-size:11px; color:var(--muted); }
.dc-right { display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.dc-contract { font-size:11px; color:var(--faint); }
.detail-panel { width:340px; flex-shrink:0; background:var(--surface); border:1px solid var(--border); border-radius:16px; overflow:hidden; height:fit-content; max-height:calc(100vh - 120px); overflow-y:auto; }
.dp-head { padding:17px 20px; border-bottom:1px solid var(--border); }
.dp-model { font-size:16px; font-weight:600; color:var(--text); margin-bottom:4px; }
.dp-tid   { font-size:12px; font-family:'DM Mono',monospace; color:var(--faint); }
.dp-status-row { display:flex; align-items:center; gap:8px; margin-top:10px; }
.dp-sec { padding:14px 20px; border-bottom:1px solid var(--border); }
.dp-sec:last-child { border-bottom:none; }
.dp-sec-title { font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; color:var(--faint); margin-bottom:10px; }
.dp-row { display:flex; justify-content:space-between; padding:4px 0; font-size:13px; }
.dp-lbl { color:var(--muted); }
.dp-val { font-weight:500; color:var(--text); text-align:right; max-width:55%; }
.dp-val.ok   { color:var(--accent); }
.dp-val.warn { color:var(--warn); }
.dp-val.bad  { color:var(--danger); }
.dp-val.mono { font-family:'DM Mono',monospace; font-size:12px; }
.tl { display:flex; flex-direction:column; }
.tl-item { display:flex; gap:12px; }
.tl-left { display:flex; flex-direction:column; align-items:center; width:18px; flex-shrink:0; }
.tl-dot { width:10px; height:10px; border-radius:50%; margin-top:3px; flex-shrink:0; }
.tl-dot.done    { background:var(--accent); }
.tl-dot.current { background:var(--warn); box-shadow:0 0 0 3px rgba(245,158,11,.2); }
.tl-dot.todo    { background:var(--border); }
.tl-line { flex:1; width:1.5px; background:var(--border); margin:3px 0; min-height:16px; }
.tl-body { padding-bottom:13px; }
.tl-label { font-size:12px; font-weight:500; color:var(--text); }
.tl-note  { font-size:11px; color:var(--muted); margin-top:2px; line-height:1.5; }
.tl-date  { font-size:11px; color:var(--faint); margin-top:2px; }
.dp-actions { padding:13px 15px; display:flex; flex-direction:column; gap:7px; }
.dp-btn { display:flex; align-items:center; gap:7px; padding:9px 13px; border-radius:9px; font-size:13px; font-weight:500; cursor:pointer; font-family:'DM Sans',sans-serif; border:none; transition:all .15s; }
.dp-btn.primary   { background:var(--blue); color:#fff; }
.dp-btn.primary:hover { background:var(--blue-dark); }
.dp-btn.secondary { background:var(--bg); color:var(--text); border:1px solid var(--border); }
.dp-btn.secondary:hover { background:#edf0f7; }
.dp-btn svg { width:14px; height:14px; flex-shrink:0; }
.dp-content { display:none; }
.dp-content.active { display:block; }

/* ═══════════════════════════════════════════════
   SCREEN 4 — SERVICE REQUESTS
═══════════════════════════════════════════════ */
.sr-layout { display:flex; gap:20px; }
.t-cards-col { flex:1; min-width:0; }
.t-card { background:var(--surface); border:1.5px solid var(--border); border-radius:14px; padding:15px 17px; margin-bottom:10px; cursor:pointer; transition:border-color .15s, box-shadow .15s; }
.t-card:hover { border-color:var(--blue); box-shadow:0 2px 12px rgba(43,108,184,.1); }
.t-card.selected { border-color:var(--blue); background:#fafcff; }
.t-card-top { display:flex; gap:12px; align-items:flex-start; }
.t-icon { width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:16px; }
.t-main { flex:1; min-width:0; }
.t-subject { font-size:14px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.t-meta { display:flex; align-items:center; gap:8px; margin-top:4px; flex-wrap:wrap; }
.t-ref  { font-size:11px; font-family:'DM Mono',monospace; color:var(--faint); }
.t-right { display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.prio { font-size:10px; font-weight:600; padding:2px 7px; border-radius:4px; }
.prio.high { background:var(--danger-bg); color:var(--danger); }
.prio.normal { background:var(--bg); color:var(--muted); }
.t-prog { margin-top:12px; }
.t-prog-label { display:flex; justify-content:space-between; font-size:11px; color:var(--muted); margin-bottom:5px; }
.t-prog-bar { height:4px; background:var(--border); border-radius:4px; overflow:hidden; }
.t-prog-fill { height:100%; border-radius:4px; }
.sr-detail { width:360px; flex-shrink:0; background:var(--surface); border:1px solid var(--border); border-radius:16px; overflow:hidden; height:fit-content; max-height:calc(100vh - 120px); overflow-y:auto; }
.srd-head { padding:17px 20px; border-bottom:1px solid var(--border); }
.srd-ref  { font-size:11px; font-family:'DM Mono',monospace; color:var(--faint); margin-bottom:4px; }
.srd-subject { font-size:15px; font-weight:600; color:var(--text); margin-bottom:8px; line-height:1.3; }
.srd-content { display:none; }
.srd-content.active { display:block; }
/* new ticket form */
.form-panel { max-width:660px; }
.form-card { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:22px; margin-bottom:14px; }
.fc-title { font-size:13px; font-weight:600; color:var(--text); margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.fc-num { width:22px; height:22px; border-radius:50%; background:var(--blue); color:#fff; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.field textarea, .field select { width:100%; border:1.5px solid var(--border); border-radius:10px; padding:10px 14px; font-size:14px; font-family:'DM Sans',sans-serif; color:var(--text); background:var(--surface); outline:none; }
.field textarea { resize:vertical; min-height:90px; line-height:1.6; }
.field-row2 { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.type-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.type-opt { border:1.5px solid var(--border); border-radius:10px; padding:12px 13px; cursor:pointer; transition:all .15s; display:flex; align-items:center; gap:10px; }
.type-opt:hover, .type-opt.selected { border-color:var(--blue); background:var(--blue-light); }
.to-icon { width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; }
.to-name { font-size:13px; font-weight:500; color:var(--text); }
.to-sub  { font-size:11px; color:var(--muted); margin-top:1px; }
.upload-area { border:1.5px dashed var(--border); border-radius:10px; padding:20px; text-align:center; cursor:pointer; }
.upload-area:hover { border-color:var(--blue); background:var(--blue-light); }
.submit-row { display:flex; align-items:center; justify-content:space-between; margin-top:8px; }
.cancel-link { font-size:13px; color:var(--muted); cursor:pointer; }
.cancel-link:hover { color:var(--text); }
/* success */
.success-wrap { display:flex; align-items:center; justify-content:center; min-height:50vh; }
.success-card { background:var(--surface); border:1px solid var(--border); border-radius:20px; padding:44px 38px; text-align:center; max-width:420px; }
.sc-icon { width:62px; height:62px; border-radius:50%; background:var(--accent-bg); display:flex; align-items:center; justify-content:center; margin:0 auto 18px; font-size:26px; }
.sc-title { font-size:21px; font-weight:600; margin-bottom:8px; }
.sc-sub   { font-size:13px; color:var(--muted); line-height:1.7; margin-bottom:18px; }
.sc-ref   { font-size:12px; font-family:'DM Mono',monospace; background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:8px 16px; display:inline-block; margin-bottom:22px; color:var(--blue); font-weight:500; }
.sc-btns  { display:flex; gap:10px; justify-content:center; }
.sc-btn-out { padding:10px 18px; border-radius:8px; font-size:13px; font-weight:500; cursor:pointer; font-family:'DM Sans',sans-serif; border:1px solid var(--border); background:var(--bg); color:var(--text); }
.sc-btn-pri { padding:10px 18px; border-radius:8px; font-size:13px; font-weight:500; cursor:pointer; font-family:'DM Sans',sans-serif; border:none; background:var(--blue); color:#fff; }

/* ═══════════════════════════════════════════════
   SCREEN 5 — ESHOP
═══════════════════════════════════════════════ */
.shop-layout { display:flex; gap:22px; align-items:flex-start; }
.shop-main { flex:1; min-width:0; }
.shop-right { width:282px; flex-shrink:0; position:sticky; top:0; }
.cat-tabs { display:flex; gap:6px; margin-bottom:20px; }
.cat-tab { font-size:12px; font-weight:500; padding:7px 16px; border-radius:20px; border:1px solid var(--border); background:var(--surface); color:var(--muted); cursor:pointer; transition:all .15s; }
.cat-tab:hover { border-color:var(--blue); }
.cat-tab.active { background:var(--blue); color:#fff; border-color:var(--blue); }
.term-list-shop { display:flex; flex-direction:column; gap:13px; margin-bottom:26px; }
.term-card-shop { background:var(--surface); border:1.5px solid var(--border); border-radius:16px; overflow:hidden; display:grid; grid-template-columns:160px 1fr; transition:border-color .15s; }
.term-card-shop:hover { border-color:var(--blue); }
.term-card-shop.featured { border-color:var(--blue); }
.tc-img { background:linear-gradient(145deg,#e8f1fb,#d4e3f5); display:flex; align-items:center; justify-content:center; padding:18px 14px; position:relative; min-height:170px; }
.tc-img img { max-width:100%; max-height:145px; object-fit:contain; filter:drop-shadow(0 4px 10px rgba(0,0,0,.12)); }
.tc-badge { position:absolute; top:9px; left:9px; font-size:9px; font-weight:700; padding:2px 7px; border-radius:4px; text-transform:uppercase; letter-spacing:.04em; }
.tcb-hero { background:#003087; color:#fff; }
.tcb-new  { background:#166534; color:#fff; }
.tcb-eco  { background:var(--accent); color:#fff; }
.tc-body { padding:16px 18px; display:flex; flex-direction:column; }
.tc-brand { font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:.1em; color:var(--faint); margin-bottom:2px; }
.tc-name  { font-size:17px; font-weight:700; color:var(--text); margin-bottom:7px; line-height:1.2; }
.tc-desc  { font-size:12px; color:var(--muted); line-height:1.7; margin-bottom:11px; }
.spec-pills { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:13px; }
.sp { font-size:10px; font-weight:500; padding:3px 7px; border-radius:5px; background:var(--bg); border:1px solid var(--border); color:var(--muted); }
.sp.hi { background:var(--blue-light); border-color:rgba(43,108,184,.2); color:var(--blue-dark); }
.pricing-opts-shop { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.po { border:1.5px solid var(--border); border-radius:10px; padding:9px 10px; cursor:pointer; transition:all .15s; text-align:center; }
.po:hover, .po.selected { border-color:var(--blue); background:var(--blue-light); }
.po.disabled { opacity:.38; cursor:default; }
.po.disabled:hover { border-color:var(--border); background:none; }
.po-lbl   { font-size:9px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; margin-bottom:4px; }
.po-price { font-size:15px; font-weight:700; color:var(--text); font-family:'DM Mono',monospace; line-height:1; }
.po-sub   { font-size:9px; color:var(--muted); margin-top:3px; line-height:1.5; }
.po-sub b { color:var(--blue-dark); font-weight:600; }
.tc-add { display:flex; align-items:center; justify-content:center; gap:7px; margin-top:11px; padding:9px; border-radius:9px; background:var(--blue); color:#fff; border:none; font-size:13px; font-weight:600; cursor:pointer; font-family:'DM Sans',sans-serif; transition:background .15s; }
.tc-add:hover { background:var(--blue-dark); }
.tc-add.added { background:var(--accent); pointer-events:none; }
.tc-note { font-size:9px; color:var(--faint); margin-top:6px; }
.tbc { display:inline-block; font-size:8px; font-weight:700; background:var(--warn-bg); color:#92400e; border:1px solid rgba(245,158,11,.3); border-radius:3px; padding:1px 5px; vertical-align:middle; margin-left:3px; }
.acc-grid-shop { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-bottom:24px; }
.acc-card-shop { background:var(--surface); border:1.5px solid var(--border); border-radius:11px; padding:12px; display:flex; gap:10px; align-items:center; }
.acc-card-shop:hover:not(.out) { border-color:var(--blue); }
.acc-card-shop.out { opacity:.55; }
.acc-thumb-shop { width:44px; height:44px; border-radius:9px; overflow:hidden; background:var(--bg); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.acc-thumb-shop img { width:40px; height:40px; object-fit:contain; }
.acc-thumb-shop.icon { font-size:20px; }
.acc-inf  { flex:1; min-width:0; }
.acc-nm   { font-size:12px; font-weight:600; color:var(--text); line-height:1.3; }
.acc-cm   { font-size:10px; color:var(--faint); margin-top:1px; }
.acc-rt   { display:flex; flex-direction:column; align-items:flex-end; gap:5px; flex-shrink:0; }
.acc-pr   { font-size:13px; font-weight:700; font-family:'DM Mono',monospace; white-space:nowrap; }
.acc-vt   { font-size:9px; color:var(--faint); margin-top:-2px; }
.acc-out  { font-size:9px; font-weight:700; color:var(--danger); background:var(--danger-bg); padding:2px 6px; border-radius:4px; }
.sm-add { width:25px; height:25px; border-radius:6px; background:var(--blue); color:#fff; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .15s; }
.sm-add:hover { background:var(--blue-dark); }
.sm-add.added { background:var(--accent); }
.cons-grid-shop { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-bottom:20px; }
.cons-card-shop { background:var(--surface); border:1.5px solid var(--border); border-radius:11px; padding:14px; cursor:pointer; }
.cons-card-shop:hover { border-color:var(--blue); }
.cons-top-shop { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.cons-desc-shop { font-size:11px; color:var(--muted); line-height:1.6; margin-bottom:10px; }
.cons-foot-shop { display:flex; align-items:center; justify-content:space-between; }
.cons-price-shop { font-size:14px; font-weight:700; font-family:'DM Mono',monospace; }
.free-tag { font-size:10px; font-weight:700; background:var(--accent-bg); color:#0d9488; padding:3px 8px; border-radius:4px; }
.cons-add-shop { width:28px; height:28px; border-radius:7px; background:var(--blue); color:#fff; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .15s; }
.cons-add-shop.free-btn { background:var(--accent); }
/* cart panel */
.cart-panel { background:var(--surface); border:1px solid var(--border); border-radius:16px; overflow:hidden; }
.cart-hdr { padding:13px 15px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:8px; }
.cart-ttl { font-size:14px; font-weight:600; color:var(--text); flex:1; }
.cart-bdg { font-size:11px; font-weight:600; background:var(--blue); color:#fff; padding:1px 7px; border-radius:10px; }
.cart-item { padding:10px 13px; border-bottom:1px solid var(--border); display:flex; gap:9px; }
.ci-ic { width:30px; height:30px; border-radius:7px; background:var(--blue-light); display:flex; align-items:center; justify-content:center; font-size:13px; flex-shrink:0; }
.ci-body { flex:1; min-width:0; }
.ci-name { font-size:12px; font-weight:500; color:var(--text); line-height:1.3; }
.ci-opt  { font-size:10px; color:var(--faint); margin-top:2px; }
.ci-rt { display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.ci-price { font-size:12px; font-weight:700; font-family:'DM Mono',monospace; }
.ci-rm { font-size:13px; color:var(--faint); cursor:pointer; line-height:1; }
.ci-rm:hover { color:var(--danger); }
.cart-sum { padding:13px 15px; }
.coupon-row { display:flex; gap:6px; margin-bottom:11px; }
.coupon-inp { flex:1; border:1px solid var(--border); border-radius:7px; padding:7px 9px; font-size:12px; font-family:'DM Sans',sans-serif; outline:none; }
.coupon-inp:focus { border-color:var(--blue); }
.coupon-btn { font-size:11px; font-weight:500; padding:7px 11px; border-radius:7px; border:1px solid var(--border); background:var(--bg); cursor:pointer; font-family:'DM Sans',sans-serif; }
.sum-row { display:flex; justify-content:space-between; font-size:12px; padding:3px 0; color:var(--muted); }
.sum-total { font-weight:600; font-size:14px; color:var(--text); border-top:1px solid var(--border); margin-top:6px; padding-top:9px; display:flex; justify-content:space-between; }
.co-btn-shop { width:100%; padding:11px; border-radius:9px; background:var(--blue); color:#fff; font-size:13px; font-weight:600; border:none; cursor:pointer; font-family:'DM Sans',sans-serif; margin-top:9px; display:flex; align-items:center; justify-content:center; gap:6px; }
.co-btn-shop:hover { background:var(--blue-dark); }
/* checkout */
.co-wrap { max-width:640px; }
.co-card { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:20px; margin-bottom:14px; }
.co-card-title { font-size:13px; font-weight:600; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.co-num { width:22px; height:22px; border-radius:50%; background:var(--blue); color:#fff; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.field-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.pay-opts { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px; }
.pay-opt { border:1.5px solid var(--border); border-radius:10px; padding:11px 14px; cursor:pointer; display:flex; align-items:center; gap:10px; transition:all .15s; }
.pay-opt:hover, .pay-opt.selected { border-color:var(--blue); background:var(--blue-light); }
.co-item { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); font-size:13px; }
.co-item:last-child { border-bottom:none; }
.co-item-icon { width:30px; height:30px; border-radius:7px; background:var(--blue-light); display:flex; align-items:center; justify-content:center; font-size:13px; flex-shrink:0; }
.co-item-name { flex:1; font-weight:500; }
.co-item-sub  { font-size:11px; color:var(--faint); }
.co-item-price { font-family:'DM Mono',monospace; font-weight:700; }
.co-sum { display:flex; justify-content:space-between; padding:5px 0; font-size:13px; color:var(--muted); }
.co-sum.grand { font-weight:600; font-size:15px; color:var(--text); border-top:1px solid var(--border); margin-top:6px; padding-top:10px; }
.place-btn { width:100%; padding:12px; border-radius:10px; background:var(--blue); color:#fff; font-size:14px; font-weight:600; border:none; cursor:pointer; font-family:'DM Sans',sans-serif; margin-top:8px; display:flex; align-items:center; justify-content:center; gap:8px; }
.place-btn:hover { background:var(--blue-dark); }
/* eshop sub-views */
.eshop-subview { display:none; }
.eshop-subview.active { display:block; }

/* ═══════════════════════════════════════════════
   SCREEN 6 — BILLING
═══════════════════════════════════════════════ */
.billing-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:13px; margin-bottom:20px; }
.bk-card { background:var(--surface); border:1px solid var(--border); border-radius:13px; padding:15px 17px; position:relative; overflow:hidden; }
.bk-card.danger { border-color:rgba(229,62,62,.35); background:linear-gradient(135deg,#fff 70%,#fff5f5 100%); }
.bk-label { font-size:11px; font-weight:500; color:var(--faint); text-transform:uppercase; letter-spacing:.07em; margin-bottom:7px; }
.bk-value { font-size:25px; font-weight:700; font-family:'DM Mono',monospace; color:var(--text); line-height:1; margin-bottom:4px; }
.bk-value.red   { color:var(--danger); }
.bk-value.green { color:var(--success); }
.bk-sub { font-size:11px; color:var(--muted); }
.bk-ico { position:absolute; top:15px; right:15px; width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; }
.overdue-banner { background:linear-gradient(135deg,#fff5f5,#fde8e8); border:1.5px solid rgba(229,62,62,.4); border-left:4px solid var(--danger); border-radius:12px; padding:15px 18px; display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.ob-body { flex:1; }
.ob-title { font-size:14px; font-weight:600; color:var(--danger); margin-bottom:3px; }
.ob-sub   { font-size:12px; color:#9b2c2c; line-height:1.6; }
.ob-days  { font-size:12px; font-weight:600; background:var(--danger); color:#fff; padding:3px 10px; border-radius:6px; white-space:nowrap; flex-shrink:0; }
.pay-now-btn { display:flex; align-items:center; gap:6px; padding:9px 18px; border-radius:9px; background:var(--danger); color:#fff; border:none; font-size:13px; font-weight:600; cursor:pointer; font-family:'DM Sans',sans-serif; white-space:nowrap; flex-shrink:0; }
.pay-now-btn:hover { background:#c53030; }
.billing-layout { display:flex; gap:20px; align-items:flex-start; }
.billing-main { flex:1; min-width:0; }
.billing-sidebar { width:292px; flex-shrink:0; }
.tab-row { display:flex; gap:2px; background:var(--bg); border-radius:10px; padding:3px; margin-bottom:16px; width:fit-content; }
.tab-btn { font-size:12px; font-weight:500; padding:7px 14px; border-radius:8px; border:none; background:none; color:var(--muted); cursor:pointer; font-family:'DM Sans',sans-serif; }
.tab-btn.active { background:var(--surface); color:var(--text); box-shadow:0 1px 4px rgba(0,0,0,.08); }
.inv-table-wrap { background:var(--surface); border:1px solid var(--border); border-radius:14px; overflow:hidden; }
.inv-table-hdr { padding:13px 17px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:10px; }
.inv-table-title { font-size:14px; font-weight:600; color:var(--text); flex:1; }
.export-btn { font-size:12px; font-weight:500; padding:5px 11px; border-radius:7px; border:1px solid var(--border); background:var(--bg); cursor:pointer; font-family:'DM Sans',sans-serif; color:var(--muted); display:flex; align-items:center; gap:5px; }
table.inv-t { width:100%; border-collapse:collapse; }
table.inv-t th { text-align:left; font-size:11px; font-weight:500; color:var(--faint); text-transform:uppercase; letter-spacing:.06em; padding:9px 16px; background:#fafbfd; border-bottom:1px solid var(--border); }
table.inv-t td { padding:12px 16px; font-size:13px; border-bottom:1px solid var(--border); vertical-align:middle; }
table.inv-t tr:last-child td { border-bottom:none; }
table.inv-t tr:hover td { background:#fafbfd; }
.inv-ref { font-family:'DM Mono',monospace; font-size:12px; color:var(--blue); font-weight:500; }
.inv-desc { font-weight:500; color:var(--text); }
.inv-period { font-size:11px; color:var(--faint); margin-top:1px; }
.amt { font-family:'DM Mono',monospace; font-weight:600; font-size:13px; }
.amt.red { color:var(--danger); }
.amt.green { color:var(--success); }
.amt.muted { color:var(--muted); }
.dl-btn { display:flex; align-items:center; gap:4px; font-size:11px; font-weight:500; color:var(--blue); cursor:pointer; padding:4px 8px; border-radius:6px; border:1px solid var(--border); background:var(--bg); white-space:nowrap; }
.dl-btn:hover { background:var(--blue-light); }
.pay-btn-sm { font-size:11px; font-weight:600; color:#fff; background:var(--danger); border:none; padding:4px 10px; border-radius:6px; cursor:pointer; font-family:'DM Sans',sans-serif; white-space:nowrap; }
.billing-panel { background:var(--surface); border:1px solid var(--border); border-radius:14px; overflow:hidden; margin-bottom:13px; }
.bp-hdr { padding:13px 15px; border-bottom:1px solid var(--border); }
.bp-title { font-size:13px; font-weight:600; color:var(--text); }
.bp-sub   { font-size:11px; color:var(--muted); margin-top:1px; }
.saved-card-row { padding:13px 15px; display:flex; align-items:center; gap:11px; }
.card-chip { width:38px; height:26px; border-radius:5px; background:linear-gradient(135deg,#e0c97a,#c9aa58); border:1px solid rgba(0,0,0,.1); flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.card-chip-inner { width:22px; height:16px; border-radius:3px; background:rgba(0,0,0,.12); }
.card-num { font-size:13px; font-weight:500; font-family:'DM Mono',monospace; color:var(--text); }
.card-exp { font-size:11px; color:var(--faint); margin-top:1px; }
.card-badge-tag { font-size:10px; font-weight:600; background:var(--blue-light); color:var(--blue); padding:2px 7px; border-radius:4px; }
.autopay-row { padding:11px 15px; border-top:1px solid var(--border); display:flex; align-items:center; gap:10px; }
.ap-label { flex:1; }
.ap-title { font-size:12px; font-weight:500; color:var(--text); }
.ap-sub   { font-size:10px; color:var(--muted); margin-top:1px; }
.toggle { position:relative; width:36px; height:20px; flex-shrink:0; }
.toggle input { opacity:0; width:0; height:0; }
.toggle-track { position:absolute; inset:0; background:var(--border); border-radius:10px; cursor:pointer; transition:background .2s; }
.toggle input:checked + .toggle-track { background:var(--blue); }
.toggle-thumb { position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:#fff; transition:transform .2s; pointer-events:none; }
.toggle input:checked ~ .toggle-thumb { transform:translateX(16px); }
.period-row { padding:10px 15px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; font-size:13px; }
.period-row:last-child { border-bottom:none; }
.pr-lbl { color:var(--muted); }
.pr-val { font-weight:500; color:var(--text); font-family:'DM Mono',monospace; font-size:12px; }
.next-inv { padding:14px 15px; }
.ni-lbl  { font-size:11px; font-weight:500; text-transform:uppercase; letter-spacing:.07em; color:var(--faint); margin-bottom:7px; }
.ni-date { font-size:20px; font-weight:700; color:var(--text); margin-bottom:3px; }
.ni-sub  { font-size:11px; color:var(--muted); }
.days-bar  { height:5px; background:var(--border); border-radius:4px; margin-top:9px; overflow:hidden; }
.days-fill { height:100%; border-radius:4px; background:var(--blue); }
/* modal */
.modal-overlay { display:none; position:fixed; inset:0; background:rgba(15,31,61,.45); z-index:1000; align-items:center; justify-content:center; }
.modal-overlay.open { display:flex; }
.modal { background:var(--surface); border-radius:18px; padding:28px; width:420px; box-shadow:0 20px 60px rgba(0,0,0,.2); }
.modal-title { font-size:18px; font-weight:600; margin-bottom:4px; }
.modal-sub   { font-size:13px; color:var(--muted); margin-bottom:18px; line-height:1.6; }
.modal-amount { background:var(--danger-bg); border:1px solid rgba(229,62,62,.25); border-radius:10px; padding:13px 15px; margin-bottom:18px; display:flex; align-items:center; justify-content:space-between; }
.ma-label { font-size:12px; color:var(--danger); font-weight:500; }
.ma-val   { font-size:22px; font-weight:700; font-family:'DM Mono',monospace; color:var(--danger); }
.modal-field { margin-bottom:13px; }
.modal-field label { display:block; font-size:11px; font-weight:500; color:var(--muted); margin-bottom:5px; }
.modal-field input { width:100%; border:1.5px solid var(--border); border-radius:9px; padding:10px 12px; font-size:14px; font-family:'DM Sans',sans-serif; color:var(--text); outline:none; }
.modal-field input:focus { border-color:var(--blue); }
.mf-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.save-card-chk { display:flex; align-items:center; gap:8px; margin-bottom:16px; font-size:12px; color:var(--muted); cursor:pointer; }
.save-card-chk input { accent-color:var(--blue); cursor:pointer; }
.modal-btns { display:flex; gap:10px; }
.modal-cancel { flex:1; padding:10px; border-radius:9px; border:1px solid var(--border); background:var(--bg); font-size:13px; font-weight:500; cursor:pointer; font-family:'DM Sans',sans-serif; color:var(--text); }
.modal-pay { flex:2; padding:10px; border-radius:9px; border:none; background:var(--danger); color:#fff; font-size:13px; font-weight:600; cursor:pointer; font-family:'DM Sans',sans-serif; display:flex; align-items:center; justify-content:center; gap:7px; }
.modal-pay:hover { background:#c53030; }
.pay-success-modal { background:var(--surface); border-radius:18px; padding:38px 30px; width:380px; text-align:center; box-shadow:0 20px 60px rgba(0,0,0,.2); }
.psm-icon  { width:58px; height:58px; border-radius:50%; background:var(--accent-bg); display:flex; align-items:center; justify-content:center; margin:0 auto 15px; font-size:24px; }
.psm-title { font-size:20px; font-weight:600; margin-bottom:7px; }
.psm-sub   { font-size:13px; color:var(--muted); line-height:1.7; margin-bottom:18px; }
.psm-alert { background:var(--accent-bg); border:1px solid rgba(29,191,172,.25); border-radius:9px; padding:11px 13px; font-size:12px; color:#0d9488; margin-bottom:18px; line-height:1.6; font-weight:500; }
.psm-close { width:100%; padding:11px; border-radius:9px; border:none; background:var(--blue); color:#fff; font-size:13px; font-weight:600; cursor:pointer; font-family:'DM Sans',sans-serif; }

/* ═══════════════════════════════════════════════
   SCREEN 7 — APPOINTMENTS
═══════════════════════════════════════════════ */
.appt-layout { display:flex; gap:20px; align-items:flex-start; }
.appt-main   { flex:1; min-width:0; }
.appt-side   { width:310px; flex-shrink:0; }
/* appt card */
.appt-card { background:var(--surface); border:1.5px solid var(--border); border-radius:14px; padding:16px 18px; margin-bottom:10px; cursor:pointer; transition:border-color .15s; display:flex; gap:14px; align-items:flex-start; }
.appt-card:hover { border-color:var(--blue); }
.appt-card.selected { border-color:var(--blue); background:#fafcff; }
.appt-date-col { display:flex; flex-direction:column; align-items:center; justify-content:center; width:54px; height:54px; border-radius:12px; flex-shrink:0; }
.appt-date-col.upcoming { background:var(--blue-light); }
.appt-date-col.past     { background:var(--bg); }
.adc-day  { font-size:20px; font-weight:700; font-family:'DM Mono',monospace; line-height:1; }
.adc-mon  { font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; margin-top:2px; }
.appt-date-col.upcoming .adc-day { color:var(--blue); }
.appt-date-col.upcoming .adc-mon { color:var(--blue); }
.appt-date-col.past .adc-day { color:var(--faint); }
.appt-date-col.past .adc-mon { color:var(--faint); }
.appt-body { flex:1; min-width:0; }
.appt-title  { font-size:14px; font-weight:600; color:var(--text); margin-bottom:3px; }
.appt-meta   { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:4px; }
.appt-m-item { font-size:12px; color:var(--muted); display:flex; align-items:center; gap:4px; }
.appt-right  { display:flex; flex-direction:column; align-items:flex-end; gap:6px; flex-shrink:0; }
/* appt detail panel */
.appt-dp { background:var(--surface); border:1px solid var(--border); border-radius:16px; overflow:hidden; }
.adp-head { padding:16px 18px; border-bottom:1px solid var(--border); }
.adp-type { font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; color:var(--faint); margin-bottom:4px; }
.adp-title { font-size:16px; font-weight:600; color:var(--text); margin-bottom:8px; }
.adp-sec { padding:14px 18px; border-bottom:1px solid var(--border); }
.adp-sec:last-child { border-bottom:none; }
.adp-sec-title { font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; color:var(--faint); margin-bottom:10px; }
.adp-row { display:flex; justify-content:space-between; align-items:flex-start; padding:4px 0; font-size:13px; }
.adp-lbl { color:var(--muted); }
.adp-val { font-weight:500; color:var(--text); text-align:right; }
.adp-val.blue { color:var(--blue); }
.adp-content { display:none; }
.adp-content.active { display:block; }
.adp-actions { padding:13px 15px; display:flex; flex-direction:column; gap:7px; }
/* booking form */
.booking-form { max-width:660px; }
.bf-card { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:20px; margin-bottom:14px; }
.bf-title { font-size:13px; font-weight:600; color:var(--text); margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.bf-num { width:22px; height:22px; border-radius:50%; background:var(--blue); color:#fff; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
/* calendar */
.cal-wrap { border:1px solid var(--border); border-radius:10px; overflow:hidden; }
.cal-nav { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; background:var(--bg); border-bottom:1px solid var(--border); }
.cal-nav-btn { width:28px; height:28px; border:1px solid var(--border); border-radius:7px; background:var(--surface); cursor:pointer; display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:14px; font-family:'DM Sans',sans-serif; }
.cal-nav-btn:hover { border-color:var(--blue); color:var(--blue); }
.cal-month { font-size:14px; font-weight:600; color:var(--text); }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); }
.cal-day-name { text-align:center; font-size:11px; font-weight:500; color:var(--faint); padding:8px 4px; background:var(--bg); border-bottom:1px solid var(--border); }
.cal-day { text-align:center; padding:8px 4px; font-size:13px; color:var(--muted); cursor:pointer; border:1px solid transparent; margin:1px; border-radius:6px; transition:all .15s; }
.cal-day:hover:not(.empty):not(.disabled) { background:var(--blue-light); color:var(--blue); border-color:rgba(43,108,184,.2); }
.cal-day.avail { background:rgba(29,191,172,.12); color:#0d9488; font-weight:600; border:1px solid rgba(29,191,172,.3); }
.cal-day.avail:hover { background:rgba(29,191,172,.25); border-color:var(--accent); }
.cal-day.booked { background:rgba(229,62,62,.08); color:var(--danger); cursor:default; }
.cal-day.booked::after { content:'•'; display:block; font-size:8px; line-height:1; margin-top:1px; color:var(--danger); }
.cal-day.today    { font-weight:600; color:var(--blue); }
.cal-day.disabled { color:var(--border); cursor:default; }
.cal-day.selected { background:var(--blue) !important; color:#fff !important; border-color:var(--blue) !important; font-weight:600; }
.cal-day.empty    { cursor:default; }
/* time slots */
.slot-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.slot { padding:9px; border:1.5px solid var(--border); border-radius:8px; text-align:center; font-size:12px; font-weight:500; cursor:pointer; transition:all .15s; color:var(--muted); }
.slot:hover:not(.taken) { border-color:var(--blue); color:var(--blue); background:var(--blue-light); }
.slot.selected { border-color:var(--blue); background:var(--blue); color:#fff; }
.slot.taken { background:var(--bg); color:var(--border); cursor:default; text-decoration:line-through; }
/* appt sub-views */
.appt-subview { display:none; }
.appt-subview.active { display:block; }

/* shared scrollbar */
::-webkit-scrollbar { width:4px; }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:4px; }
