:root {
  --rx-navy: #0F6B63;
  --rx-navy-dark: #0B524C;
  --rx-navy-deep: #073430;
  --rx-blue: #1AA89A;
  --rx-blue-light: #5EE0D0;
  --rx-gold: #E85D4C;
  --rx-gold-soft: #FDE8E4;
  --rx-gold-deep: #C24738;
  --rx-sky: #E4F4F1;
  --rx-ice: #F0FAF8;
  --rx-mist: #F6F3EE;
  --rx-text: #1C2E2C;
  --rx-muted: #5E7370;
  --rx-line: #D7E5E1;
  --rx-card: #ffffff;
  --rx-bg: #F4F1EC;
  --rx-success: #0F8A6A;
  --rx-warning: #D97706;
  --rx-danger: #DC4C3C;
  --rx-info: #1AA89A;
  --rx-shadow: 0 10px 28px rgba(7, 52, 48, 0.07);
  --rx-shadow-lg: 0 18px 46px rgba(7, 52, 48, 0.12);
  --rx-radius: 16px;
  --rx-radius-sm: 12px;
  --sidebar-w: 268px;
  --topbar-h: 68px;
  --bs-primary: #0F6B63;
  --bs-primary-rgb: 15, 107, 99;
  --bs-body-font-family: "Source Sans 3", "Noto Sans", "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  --rx-text: #E6F4F1;
  --rx-muted: #9BB8B3;
  --rx-line: #1E4742;
  --rx-card: #0E2C29;
  --rx-bg: #061A18;
  --rx-sky: #123834;
  --rx-ice: #0C2623;
  --rx-mist: #0A201E;
  --rx-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--rx-text);
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(26,168,154,.08), transparent 50%),
    var(--rx-bg);
  font-family: "Source Sans 3", "Noto Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rx-blue); text-decoration: none; }
a:hover { color: var(--rx-navy); }

.rx-app { min-height: 100vh; display: flex; }

.rx-sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #052421 0%, #0A3D38 55%, #0F5C55 100%);
  color: #fff;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 32px rgba(5, 36, 33, 0.22);
}
.rx-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.rx-logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #FF8A76, #E85D4C);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 16px rgba(232, 93, 76, .35);
}
.rx-brand h1 { font-size: 17px; margin: 0; letter-spacing: .4px; }
.rx-brand small { display: block; opacity: .72; font-size: 11px; font-weight: 500; }

.rx-nav { padding: 14px 12px; overflow-y: auto; flex: 1; }
.rx-nav-label {
  font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase;
  opacity: .5; padding: 12px 12px 6px; font-weight: 700;
}
.rx-nav a {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.82); padding: 10px 12px;
  border-radius: 12px; margin-bottom: 4px; font-weight: 550; font-size: 14px;
}
.rx-nav a i { width: 20px; text-align: center; font-size: 16px; }
.rx-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.rx-nav a.active {
  background: rgba(255,255,255,.14);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #5EE0D0;
}

.rx-main {
  margin-left: var(--sidebar-w);
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  min-height: 100vh;
}
.rx-topbar {
  height: var(--topbar-h);
  background: color-mix(in srgb, var(--rx-card) 86%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rx-line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; position: sticky; top: 0; z-index: 30;
  gap: 12px;
}
.rx-page { padding: 22px; flex: 1; }
.rx-title { font-weight: 800; color: var(--rx-navy); letter-spacing: -.3px; margin: 0; }
[data-theme="dark"] .rx-title { color: #fff; }
.rx-sub { color: var(--rx-muted); font-size: 13px; margin: 2px 0 0; }

.rx-card {
  background: var(--rx-card);
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-radius);
  box-shadow: var(--rx-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.rx-kpi {
  background: var(--rx-card);
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-radius);
  padding: 18px;
  box-shadow: var(--rx-shadow);
  position: relative; overflow: hidden;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}
.rx-kpi:hover {
  transform: translateY(-2px);
  box-shadow: var(--rx-shadow-lg);
}
.rx-card-h {
  padding: 16px 18px;
  border-bottom: 1px solid var(--rx-line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.rx-card-b { padding: 18px; }

.rx-kpi::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #0F6B63, #1AA89A, #E85D4C);
}
.rx-kpi .label { color: var(--rx-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.rx-kpi .value { font-size: 26px; font-weight: 800; color: var(--rx-navy); line-height: 1.15; margin: 6px 0; }
[data-theme="dark"] .rx-kpi .value { color: #fff; }
.rx-kpi .hint { font-size: 12px; color: var(--rx-muted); }
.rx-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 18px;
  background: var(--rx-ice); color: var(--rx-navy);
}
.rx-ico.gold { background: var(--rx-gold-soft); color: var(--rx-gold-deep); }
.rx-ico.blue { background: #D5F3EE; color: #0F6B63; }
.rx-ico.green { background: #D8F3EA; color: var(--rx-success); }
.rx-ico.red { background: #F8D7D5; color: var(--rx-danger); }
.rx-ico.orange { background: #FCE9CC; color: var(--rx-warning); }

.btn-rx {
  background: linear-gradient(180deg, #17857B, #0F6B63);
  color: #fff; border: 0; border-radius: 12px;
  padding: 10px 16px; font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 18px rgba(15, 107, 99, .22);
}
.btn-rx, .btn-gold, .btn-ghost {
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn-rx:hover, .btn-gold:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(180deg, #F07A6A, #E85D4C);
  color: #fff; border: 0; border-radius: 12px;
  padding: 10px 16px; font-weight: 800;
}
.btn-gold:hover { color: #fff; }
.btn-ghost {
  background: var(--rx-ice); color: var(--rx-navy); border: 1px solid var(--rx-line);
  border-radius: 12px; padding: 10px 14px; font-weight: 700;
}
.btn-ghost:hover { background: var(--rx-sky); color: var(--rx-navy); }

.form-control, .form-select {
  border-radius: 12px; border-color: var(--rx-line); min-height: 44px;
  background: var(--rx-card); color: var(--rx-text);
}
.form-control:focus, .form-select:focus {
  border-color: var(--rx-blue);
  box-shadow: 0 0 0 .25rem rgba(26, 168, 154, .18);
}
.form-label { font-weight: 700; font-size: 13px; color: var(--rx-navy); }
[data-theme="dark"] .form-label { color: #d4f0ec; }

.rx-badge {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 800;
  letter-spacing: .3px; text-transform: uppercase;
}
.rx-badge-success { background: #D8F3EA; color: #146C54; }
.rx-badge-warning { background: #FCE9CC; color: #8A5A08; }
.rx-badge-danger { background: #F8D7D5; color: #8E2F28; }
.rx-badge-info { background: #D5F3EE; color: #0B524C; }
.rx-badge-secondary { background: #E8EEEC; color: #4A6562; }
.rx-badge-gold { background: var(--rx-gold-soft); color: #A33A2E; }

.table { --bs-table-bg: transparent; color: var(--rx-text); }
.table thead th {
  font-size: 11px; letter-spacing: .7px; text-transform: uppercase;
  color: var(--rx-muted); font-weight: 800; border-bottom-color: var(--rx-line);
  white-space: nowrap;
}
.table td { vertical-align: middle; border-color: var(--rx-line); }
.table-hover tbody tr:hover { background: var(--rx-mist); }

.rx-user {
  display: flex; align-items: center; gap: 10px;
}
.rx-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rx-navy), var(--rx-blue));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--rx-line);
  background: var(--rx-card); color: var(--rx-navy); display: grid; place-items: center;
}
.icon-btn:hover { background: var(--rx-ice); color: var(--rx-navy); }
.notif-dot {
  position: absolute; top: 8px; right: 8px; width: 8px; height: 8px;
  background: var(--rx-gold); border-radius: 50%;
}

.alert { border: 0; border-radius: 14px; }
.search-wrap { position: relative; min-width: min(420px, 100%); }
.search-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--rx-muted); }
.search-wrap input { padding-left: 40px; background: var(--rx-mist); }

.hero-auth {
  min-height: 100vh; display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
}
.hero-panel {
  background:
    radial-gradient(800px 400px at 18% 18%, rgba(26,168,154,.38), transparent 52%),
    linear-gradient(160deg, #052421, #0A3D38 48%, #12756C);
  color: #fff; padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.gold-line { height: 3px; width: 120px; background: var(--rx-gold); border-radius: 4px; margin: 18px 0; }
.stat-box {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 16px; backdrop-filter: blur(8px);
}
.stat-box .n { font-size: 28px; font-weight: 800; color: var(--rx-gold); }
.auth-side {
  display: grid; place-items: center; padding: 32px 20px;
  background:
    radial-gradient(600px 280px at 80% 0%, rgba(232,93,76,.12), transparent 55%),
    var(--rx-mist);
}
.auth-card {
  width: min(460px, 100%); background: var(--rx-card);
  border-radius: 24px; padding: 32px; box-shadow: var(--rx-shadow-lg);
  border: 1px solid var(--rx-line);
  position: relative; overflow: hidden;
}
.auth-card-glow {
  position: absolute; top: -80px; right: -60px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(26,168,154,.22), transparent 70%);
  pointer-events: none;
}

.pos-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 16px;
  min-height: calc(100vh - var(--topbar-h) - 48px);
}
.pos-search-item {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 12px; cursor: pointer; border: 1px solid transparent;
}
.pos-search-item:hover, .pos-search-item:focus { background: var(--rx-ice); border-color: var(--rx-line); }
.qty-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--rx-line);
  background: var(--rx-ice); font-weight: 800; color: var(--rx-navy);
}
.pay-btn {
  min-height: 52px; border-radius: 14px; font-weight: 800; border: 1px solid var(--rx-line);
  background: var(--rx-card); color: var(--rx-navy);
}
.pay-btn.active { border-color: var(--rx-gold); background: var(--rx-gold-soft); }

.empty {
  text-align: center; padding: 36px 16px; color: var(--rx-muted);
}
.empty i { font-size: 36px; color: var(--rx-blue); opacity: .7; }

.rx-bottom {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  background: var(--rx-card); border-top: 1px solid var(--rx-line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.rx-bottom a {
  flex: 1; text-align: center; color: var(--rx-muted); font-size: 11px; font-weight: 700;
  display: flex; flex-direction: column; gap: 2px; padding: 6px 2px; border-radius: 10px;
}
.rx-bottom a i { font-size: 18px; }
.rx-bottom a.active { color: var(--rx-navy); background: var(--rx-ice); }

.menu-toggle { display: none; }

.sidebar-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(5,36,33,.48); z-index: 1035;
}

@media (max-width: 1199.98px) {
  .pos-grid { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
  .rx-sidebar {
    transform: translateX(-105%);
    transition: transform .25s ease;
    width: min(86vw, 300px);
  }
  .rx-sidebar.open { transform: translateX(0); }
  .rx-main { margin-left: 0; }
  .menu-toggle { display: grid; }
  .hero-auth { grid-template-columns: 1fr; }
  .hero-panel { min-height: auto; padding: 28px 22px; }
  .rx-bottom { display: flex; }
  .rx-page { padding: 16px 14px 92px; }
  .search-wrap { min-width: 0; width: 100%; }
  .rx-topbar { height: auto; min-height: var(--topbar-h); flex-wrap: wrap; padding: 10px 12px; }
}

@media (max-width: 767.98px) {
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr {
    background: var(--rx-card);
    border: 1px solid var(--rx-line);
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 8px 4px;
    box-shadow: var(--rx-shadow);
  }
  .table-stack td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    border: 0; padding: 8px 12px;
  }
  .table-stack td::before {
    content: attr(data-label);
    font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
    color: var(--rx-muted); flex: 0 0 42%;
  }
  .kpi-row > [class*="col-"] { margin-bottom: 12px; }
  .auth-card { padding: 22px 18px; }
  .rx-kpi .value { font-size: 22px; }
}

@media print {
  .rx-sidebar, .rx-topbar, .rx-bottom, .no-print { display: none !important; }
  .rx-main { margin: 0; }
  .rx-page { padding: 0; }
  body { background: #fff; }
}

.progress { height: 8px; border-radius: 99px; background: var(--rx-sky); }
.progress-bar { background: linear-gradient(90deg, #0F6B63, #E85D4C); }

.demo-chip {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  background: var(--rx-ice); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
  cursor: pointer; border: 1px solid transparent;
}
.demo-chip:hover { border-color: var(--rx-blue); }
.toast-rx {
  position: fixed; right: 16px; bottom: 20px; z-index: 2000;
  background: var(--rx-navy); color: #fff; padding: 12px 16px; border-radius: 12px;
  box-shadow: var(--rx-shadow-lg);
}

.modal-content { border: 0; border-radius: 18px; }
.modal-header, .modal-footer { border-color: var(--rx-line); }
.offcanvas { --bs-offcanvas-width: min(100vw, 420px); }

.chart-box { height: 280px; }
.letterhead { border-bottom: 3px solid var(--rx-gold); padding-bottom: 10px; margin-bottom: 16px; }

.readonly-banner {
  background: #FCE9CC; color: #8A5A08; padding: 10px 16px; font-weight: 700; text-align: center;
}

.lp { background: #F6F3EE; color: var(--rx-text); }
.lp-wrap { padding-left: 20px; padding-right: 20px; }
.lp-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 22px;
  background: rgba(246,243,238,.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--rx-line);
}
.lp-brand { display: flex; align-items: center; gap: 10px; color: var(--rx-navy); font-weight: 800; }
.lp-brand em { font-style: normal; color: var(--rx-gold); }
.lp-nav-links { gap: 22px; }
.lp-nav-links a { color: var(--rx-muted); font-weight: 700; font-size: 14px; }
.lp-nav-links a:hover { color: var(--rx-navy); }

.lp-hero {
  position: relative; overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(900px 420px at 10% -20%, rgba(26,168,154,.22), transparent 50%),
    radial-gradient(700px 380px at 100% 10%, rgba(232,93,76,.14), transparent 46%),
    linear-gradient(180deg, #FBF8F3 0%, #F6F3EE 100%);
}
.lp-orb {
  position: absolute; border-radius: 50%; filter: blur(40px); pointer-events: none;
}
.lp-orb-a { width: 280px; height: 280px; background: rgba(26,168,154,.35); top: -80px; right: 8%; }
.lp-orb-b { width: 220px; height: 220px; background: rgba(232,93,76,.28); bottom: 10%; left: -40px; }
.hero-panel .lp-orb { z-index: 0; }
.hero-panel > *:not(.lp-orb) { position: relative; z-index: 1; }
.lp-pill {
  display: inline-flex; align-items: center;
  background: #fff; border: 1px solid var(--rx-line);
  color: var(--rx-navy); font-weight: 700; font-size: 12px;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
  box-shadow: var(--rx-shadow);
}
.lp-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800; letter-spacing: -1px; line-height: 1.12;
  color: #0B3D38; margin-bottom: 16px;
}
.lp-lead { font-size: 1.12rem; color: var(--rx-muted); max-width: 540px; margin-bottom: 22px; }
.lp-stat {
  background: #fff; border: 1px solid var(--rx-line); border-radius: 16px;
  padding: 14px 12px; box-shadow: var(--rx-shadow);
}
.lp-stat b { display: block; font-size: 22px; color: var(--rx-navy); }
.lp-stat span { font-size: 12px; color: var(--rx-muted); font-weight: 700; }

.lp-device {
  background: #0B3D38; border-radius: 24px; padding: 12px;
  box-shadow: 0 30px 70px rgba(11,61,56,.28);
  transform: rotate(1.2deg);
}
.lp-device-bar {
  display: flex; align-items: center; gap: 6px;
  color: #fff; padding: 8px 12px 14px; font-size: 13px;
}
.lp-device-bar span {
  width: 8px; height: 8px; border-radius: 50%; background: #5EE0D0;
}
.lp-device-bar span:nth-child(2) { background: #E85D4C; }
.lp-device-bar span:nth-child(3) { background: #F6C177; }
.lp-device-bar strong { margin-left: 8px; }
.lp-device-bar em { margin-left: auto; font-style: normal; opacity: .65; font-size: 12px; }
.lp-device-body {
  background: #fff; border-radius: 18px; padding: 16px; color: var(--rx-text);
}
.lp-pos-search {
  background: var(--rx-mist); border-radius: 12px; padding: 12px 14px;
  color: var(--rx-muted); font-weight: 600; margin-bottom: 12px;
}
.lp-pos-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 4px; border-bottom: 1px solid var(--rx-line);
}
.lp-pos-row small { display: block; color: var(--rx-muted); font-size: 12px; }
.lp-pay {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 14px; flex-wrap: wrap;
}
.lp-total { font-size: 28px; font-weight: 800; color: var(--rx-navy); line-height: 1; }

.lp-section { padding: 72px 0; }
.lp-alt { background: #fff; }
.lp-kicker {
  font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--rx-gold); margin-bottom: 8px;
}
.lp-h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800;
  letter-spacing: -.5px; color: #0B3D38; max-width: 640px;
}
.lp-sub { color: var(--rx-muted); max-width: 560px; margin-bottom: 28px; }
.lp-card {
  background: #fff; border: 1px solid var(--rx-line); border-radius: 20px;
  padding: 24px; height: 100%; box-shadow: var(--rx-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.lp-card:hover { transform: translateY(-4px); box-shadow: var(--rx-shadow-lg); }
.lp-ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #0F6B63, #1AA89A); color: #fff; font-size: 22px; margin-bottom: 14px;
}
.lp-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.lp-card p { color: var(--rx-muted); margin: 0; }

.lp-role {
  background: var(--rx-mist); border: 1px solid var(--rx-line);
  border-radius: 22px; padding: 26px; height: 100%;
}
.lp-role.featured {
  background: linear-gradient(180deg, #0B3D38, #12756C); color: #fff;
  border: 0; box-shadow: 0 20px 40px rgba(11,61,56,.22);
}
.lp-role.featured p, .lp-role.featured li { color: rgba(255,255,255,.82); }
.lp-role h3 { font-weight: 800; margin: 10px 0 8px; }
.lp-role ul { padding-left: 18px; margin: 0; }
.lp-role li { margin-bottom: 6px; }

.lp-price {
  background: #fff; border: 1px solid var(--rx-line); border-radius: 22px;
  padding: 28px 24px; height: 100%; position: relative;
  box-shadow: var(--rx-shadow);
}
.lp-price.hot {
  border-color: transparent;
  background: linear-gradient(#fff,#fff) padding-box,
              linear-gradient(135deg,#0F6B63,#E85D4C) border-box;
  border: 2px solid transparent;
  transform: translateY(-6px);
}
.lp-hot {
  position: absolute; top: -12px; right: 18px;
  background: var(--rx-gold); color: #fff; font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 999px;
}
.lp-amt { font-size: 34px; font-weight: 800; color: var(--rx-navy); }
.lp-amt small { font-size: 14px; color: var(--rx-muted); font-weight: 700; }

.lp-cta {
  margin: 0 16px 16px; border-radius: 28px;
  padding: 56px 20px;
  background:
    radial-gradient(600px 200px at 20% 0%, rgba(94,224,208,.25), transparent 50%),
    linear-gradient(135deg, #052421, #0F6B63 55%, #E85D4C);
  color: #fff;
}
.lp-cta h2 { font-weight: 800; letter-spacing: -.4px; }
.lp-cta p { opacity: .85; max-width: 520px; margin: 10px auto 22px; }
.lp-foot { padding: 22px 0 32px; color: var(--rx-muted); font-size: 13px; }

@media (max-width: 991.98px) {
  .lp-hero { padding: 28px 0 40px; }
  .lp-device { transform: none; }
  .lp-section { padding: 48px 0; }
  .lp-price.hot { transform: none; }
  .lp-cta { margin: 0 12px 12px; padding: 40px 16px; }
}
@media (max-width: 767.98px) {
  .lp-nav { padding: 10px 12px; }
  .lp-pos-row { flex-direction: column; }
}

.med-card {
  background: var(--rx-card); border: 1px solid var(--rx-line); border-radius: 18px;
  overflow: hidden; height: 100%; box-shadow: var(--rx-shadow);
}
.med-photo { position: relative; height: 160px; background: #E8F3F0; }
.med-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.med-photo .rx-badge { position: absolute; top: 10px; left: 10px; }
.med-body { padding: 14px 16px 16px; }
.med-body h3 { font-size: 1.02rem; font-weight: 800; margin: 0 0 4px; }
.med-body p { color: var(--rx-muted); font-size: 13px; margin: 0 0 10px; }
.med-mini { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: #E8F3F0; }
.med-drop {
  display: grid; gap: 10px; align-items: center;
  background: var(--rx-ice); border: 1px dashed var(--rx-line); border-radius: 16px; padding: 14px;
  cursor: pointer;
}
.med-drop img { width: 88px; height: 88px; object-fit: cover; border-radius: 14px; }
.corp-section { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--rx-line); }
.corp-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.corp-label {
  font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--rx-muted); margin-bottom: 10px;
}

.text-navy { color: var(--rx-navy); }
.bg-soft { background: var(--rx-ice); }
.cart-card {
  border: 1px solid var(--rx-line); border-radius: 14px; padding: 10px 12px;
  margin-bottom: 8px; background: var(--rx-card);
}
.pay-due-box {
  background: linear-gradient(135deg, #0F6B63, #1AA89A); color: #fff;
  border-radius: 16px; padding: 16px 18px;
}
.pay-due-box .small { opacity: .85; color: #fff; }
.pos-pay-card { position: sticky; top: 76px; }
.rx-toast-host {
  position: fixed; right: 16px; bottom: 88px; z-index: 4000;
  display: grid; gap: 8px; max-width: min(360px, calc(100vw - 24px));
}
.rx-toast {
  background: var(--rx-navy); color: #fff; padding: 12px 14px; border-radius: 12px;
  box-shadow: var(--rx-shadow-lg); font-weight: 700; font-size: 14px;
}
.pos-search-item, .cart-card, .pay-btn, .qty-btn { touch-action: manipulation; }
@media (max-width: 991.98px) {
  .pos-pay-card {
    position: sticky; bottom: 72px; top: auto; z-index: 20;
    box-shadow: 0 -8px 24px rgba(7, 52, 48, .12);
  }
  .pos-page .rx-page { padding-bottom: 8px; }
  .form-control, .form-select, .btn, .pay-btn { min-height: 44px; }
  .icon-btn, .qty-btn { min-width: 44px; min-height: 44px; }
}
@media (max-width: 575.98px) {
  .rx-title { font-size: 1.05rem; }
  .modal-footer { flex-direction: column; }
  .modal-footer .btn { width: 100%; }
}

.pos-search-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; }
.pos-search-item:hover, .pos-search-item:focus { background: var(--rx-ice); border-color: var(--rx-line); }
.cash-chip { min-height: 40px; }
.notif-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: var(--rx-gold); border-radius: 50%; }
.readonly-banner { background: #FCE9CC; color: #8A5A08; padding: 10px 16px; font-weight: 700; text-align: center; }
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(5,36,33,.48); z-index: 1035; }
.pos-page .pos-pay-card { position: sticky; top: 76px; }

.live-pay {
  border: 1px solid var(--rx-line);
  border-radius: 16px;
  padding: 14px;
  background: var(--rx-ice);
}
.live-pay-head { font-weight: 700; margin-bottom: 12px; color: var(--rx-navy); }
.upi-qr {
  width: 160px; height: 160px; background: #fff;
  border-radius: 12px; border: 1px solid var(--rx-line); object-fit: contain;
}
.btn-pay-gpay, .btn-pay-phonepe, .btn-pay-paytm {
  font-weight: 700; border: 0; color: #fff; padding: 10px 14px;
  border-radius: 10px; text-align: center;
}
.btn-pay-gpay { background: #1A73E8; }
.btn-pay-phonepe { background: #5F259F; }
.btn-pay-paytm { background: #00BAF2; color: #012A4A; }
@media (max-width: 991.98px) {
  .pos-page .pos-pay-card { position: sticky; bottom: 72px; top: auto; z-index: 20; box-shadow: 0 -8px 24px rgba(7,52,48,.12); }
  .sidebar-backdrop.d-block { display: block; }
}

