/* ==========================================================================
   JMEPL Affordability Portal — shared styles
   ========================================================================== */

:root {
  --navy: #0d3b7a;
  --navy-dark: #0a2e5f;
  --amber: #f2a900;
  --amber-dark: #d99400;
  --page-bg-1: #fbe9e7;
  --page-bg-2: #e3edfa;
  --text-dark: #222;
  --text-muted: #555;
  --border: #d8dee8;
  --danger: #c0392b;
  --card-bg: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--page-bg-1) 0%, var(--page-bg-2) 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ---- Top notice bar ---- */
.top-notice {
  background: var(--amber);
  color: #402d00;
  font-size: 13px;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.top-notice .notice-text { display: flex; align-items: center; gap: 8px; }
.top-notice .notice-text .icon { font-weight: bold; }
.top-notice .notice-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.top-notice .font-controls button {
  border: none;
  background: transparent;
  color: #402d00;
  font-weight: 700;
  cursor: pointer;
  padding: 0 3px;
}

/* ---- Header / navbar ---- */
.navbar {
  background: linear-gradient(180deg, #1a6fd1 0%, #0f5fbf 100%);
  border-top: 3px solid #f57c00;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "brand nav user";
  align-items: center;
  padding: 10px 24px;
  gap: 16px;
  box-shadow: 0 2px 10px rgba(10, 46, 95, 0.25);
}
.navbar .brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  justify-self: start;
  white-space: nowrap;
}
.navbar .brand .logo-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

/* Centered dark-blue pill holding the tabs */
.nav-pill {
  grid-area: nav;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: rgba(8, 45, 110, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 6px 18px rgba(5, 30, 80, 0.35);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.nav-pill::-webkit-scrollbar { display: none; }
.nav-pill a {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.nav-pill a:hover { background: rgba(255, 255, 255, 0.12); }
.nav-pill a.active { background: rgba(255, 255, 255, 0.20); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25); }
.nav-pill a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

/* White user chip on the right */
.user-chip {
  grid-area: user;
  justify-self: end;
  position: relative;
  background: #fff;
  color: var(--navy-dark);
  border-radius: 999px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.user-chip .user-icon { color: #f57c00; }
.user-chip .check {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.user-chip .user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  padding: 6px;
  min-width: 130px;
  z-index: 20;
}
/* invisible bridge so the menu doesn't close while moving the mouse to it */
.user-chip .user-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.user-chip:hover .user-menu, .user-chip:focus-within .user-menu { display: block; }
.user-chip .logout-link {
  display: block;
  color: var(--danger);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
}
.user-chip .logout-link:hover { background: #fdecea; }

/* Not enough room for everything on one line: tabs move to their own row */
@media (max-width: 1500px) {
  .navbar {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand user" "nav nav";
    row-gap: 10px;
  }
  .nav-pill { justify-self: center; }
}
@media (max-width: 640px) {
  .navbar { padding: 10px 16px; }
  .navbar .brand .brand-name { font-size: 14px; white-space: normal; }
  .nav-pill { justify-self: stretch; }
  .nav-pill a { font-size: 12px; padding: 8px 12px; }
}

/* ---- Page content ---- */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.back-btn {
  display: inline-block;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: #fff;
  border-radius: 20px;
  padding: 6px 22px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
  cursor: pointer;
}

.panel {
  background: rgba(255,255,255,0.55);
  border-radius: 10px;
  padding: 20px 24px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-header h1, .panel-header h2 {
  margin: 0;
  font-size: 22px;
  color: var(--text-dark);
}

/* segmented tabs */
.tabs {
  display: inline-flex;
  background: #eef1f6;
  border-radius: 20px;
  padding: 3px;
}
.tabs button {
  border: none;
  background: transparent;
  padding: 8px 22px;
  border-radius: 18px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}
.tabs button.active {
  background: #fff;
  color: var(--amber-dark);
  border: 1px solid var(--amber);
}

.info-banner {
  background: #fff6da;
  border: 1px solid #ffe6a3;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: #5c4a00;
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
}

.no-record {
  text-align: center;
  font-weight: 700;
  color: var(--danger);
  padding: 18px 0;
}

.section-box {
  background: #eef4fb;
  border-radius: 8px;
  padding: 16px 20px;
  font-weight: 700;
  margin-top: 6px;
}

/* dashboard cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 22px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-top: 4px solid var(--amber);
}
a.card { display: block; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.card h3 { margin: 0 0 8px; font-size: 16px; color: var(--navy-dark); }
.card p { margin: 0; font-size: 13px; color: var(--text-muted); }

/* records table */
.record-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.record-table th, .record-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.record-table th { color: var(--navy-dark); font-weight: 700; }
.status-pill {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.status-upcoming { background: #2e7d32; }
.status-past { background: #757575; }

/* ---- Login page ---- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: #fff;
  width: 380px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 32px 28px;
  border-top: 6px solid var(--amber);
}
.login-card .logo-dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 14px;
  font-size: 18px;
}
.login-card h1 {
  text-align: center;
  font-size: 18px;
  margin: 0 0 4px;
  color: var(--navy-dark);
}
.login-card .sub {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
}
.field input:focus { outline: none; border-color: var(--navy); }

.btn-primary {
  width: 100%;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.btn-primary:hover { background: var(--navy-dark); }

.alert-error {
  background: #fdecea;
  color: var(--danger);
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
}
.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: #cfd8e6;
  font-size: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer a { color: #fff; font-weight: 600; }



/* ---- Finance Code / IMEI / V-Shield validation search ---- */
.vs-section { margin: 4px 0 26px; }
.vs-form { max-width: 820px; margin: 0 auto; text-align: center; }
.vs-radios { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 90px; margin-bottom: 14px; }
.vs-radio { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; color: #4a5560; cursor: pointer; }
.vs-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vs-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid #b9c0c6; background: #fff; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.vs-radio input:checked + .vs-dot { border: 6px solid #2196c4; }
.vs-radio input:focus-visible + .vs-dot { outline: 2px solid #2196c4; outline-offset: 2px; }
.vs-heading { font-size: 18px; font-weight: 700; color: #4a5560; margin: 0 0 16px; }
.vs-row { display: flex; align-items: center; gap: 14px; }
.vs-input {
  flex: 1; min-width: 0; height: 42px; padding: 0 22px;
  border: 1px solid #2196c4; border-radius: 999px; background: #fff;
  font-size: 14px; text-align: center; color: var(--text-dark);
}
.vs-input::placeholder { color: #5f6b73; }
.vs-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(33,150,196,0.18); }
.vs-btn {
  height: 42px; padding: 0 24px; border: none; border-radius: 999px;
  color: #fff; font-weight: 700; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.vs-submit { background: #2196c4; }
.vs-submit:hover { background: #1a7ea6; }
.vs-reset { background: #5f6b73; }
.vs-reset:hover { background: #4b555c; }
.vs-client-error { color: var(--danger); font-size: 13px; font-weight: 600; min-height: 18px; margin-top: 8px; }
.vs-msg { max-width: 820px; margin: 4px auto 0; }

.vs-results { max-width: 820px; margin: 8px auto 0; display: grid; gap: 14px; }
.vs-card { background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); overflow: hidden; }
.vs-card-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 18px; background: #eef6fb; border-bottom: 1px solid #d6e9f3; font-size: 14px; color: var(--navy-dark);
}
.vs-status { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.vs-ok   { background: #e8f5e9; color: #2e7d32; }
.vs-bad  { background: #fdecea; color: var(--danger); }
.vs-wait { background: #fff4d6; color: #8a6200; }
.vs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; margin: 0; padding: 16px 18px; }
.vs-grid dt { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.vs-grid dd { margin: 3px 0 0; font-size: 14px; font-weight: 600; word-break: break-word; }
.vs-grid .vs-wide { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .vs-radios { gap: 10px 22px; }
  .vs-radio { font-size: 15px; }
  .vs-heading { font-size: 16px; }
  .vs-row { flex-wrap: wrap; }
  .vs-input { flex-basis: 100%; }
  .vs-btn { flex: 1; }
  .vs-grid { grid-template-columns: 1fr 1fr; }
}

/* Keep footer at the bottom of the screen on short pages */
body:has(.site-footer) { display: flex; flex-direction: column; }
body:has(.site-footer) .page-wrap { flex: 1 0 auto; width: 100%; }

/* ==========================================================================
   Shared buttons / form bits
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 20px; border: none; border-radius: 999px;
  font-weight: 700; font-size: 13px; cursor: pointer; color: #fff; white-space: nowrap;
}
.btn-blue { background: #2196c4; }
.btn-blue:hover { background: #1a7ea6; }
.btn-grey { background: #5f6b73; }
.btn-grey:hover { background: #4b555c; }
.btn:disabled { opacity: 0.7; cursor: wait; }
.btn-sm {
  display: inline-block; border: 1px solid #2196c4; color: #1a7ea6; background: #fff;
  border-radius: 6px; padding: 3px 10px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.btn-sm:hover { background: #eef6fb; }
.btn-sm-danger { border-color: var(--danger); color: var(--danger); }
.btn-sm-danger:hover { background: #fdecea; }
.inline-form { display: inline; margin: 0; }
.field select, .field textarea, .text-input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; background: #fff; font-family: inherit;
}
.field select:focus, .text-input:focus { outline: none; border-color: var(--navy); }
.field select:disabled { background: #f3f5f8; color: #8a949e; }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.record-table { background: #fff; border-radius: 8px; }
.record-table thead th { background: #eef4fb; white-space: nowrap; }

/* user dropdown: admin link */
.user-chip .admin-link { display: block; color: var(--navy-dark); font-weight: 700; padding: 8px 12px; border-radius: 6px; }
.user-chip .admin-link:hover { background: #eef4fb; }

/* ==========================================================================
   Admin panel
   ========================================================================== */
.admin-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.admin-subnav a {
  padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border);
  font-size: 13px; font-weight: 700; color: var(--navy-dark);
}
.admin-subnav a:hover { border-color: #2196c4; }
.admin-subnav a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.count-badge {
  display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 10px; border-radius: 999px;
  background: #e3edfa; color: var(--navy-dark); font-size: 12px; font-weight: 700;
}
.admin-help { margin: -6px 0 16px; font-size: 13px; color: var(--text-muted); }
.upload-box { background: #fff; border: 1px dashed #9fc6de; border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.upload-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; }
.upload-form .text-input { width: 260px; }
.upload-note { margin-top: 8px; font-size: 12px; color: var(--text-muted); }
.inline-radio { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.small-link { font-size: 13px; color: #1a7ea6; text-decoration: underline; }
.admin-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.admin-search input[type="text"] {
  flex: 1; min-width: 220px; height: 38px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px;
}
.admin-found { font-size: 13px; color: var(--text-muted); }
.admin-table td { vertical-align: top; }
.admin-table .col-actions { white-space: nowrap; text-align: right; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 16px 0 4px; font-size: 13px; }
.pager a { color: #1a7ea6; font-weight: 700; }
.danger-zone { margin-top: 18px; text-align: right; }
.admin-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 20px; }
.admin-actions { display: flex; gap: 10px; margin-top: 6px; }
.card-tab { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: #1a7ea6; margin-bottom: 6px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.photo-card { background: #fff; border-radius: 10px; padding: 10px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.photo-card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.photo-name { font-weight: 700; font-size: 13px; margin-top: 6px; }
.photo-uses { font-size: 11px; color: var(--text-muted); margin: 2px 0 8px; }

/* ==========================================================================
   EMI & Cashback Offers
   ========================================================================== */
.offer-picker { max-width: 560px; margin: 0 auto 22px; text-align: center; }
.offer-picker label { display: block; font-weight: 700; color: #4a5560; margin-bottom: 8px; font-size: 16px; }
.offer-picker select {
  width: 100%; height: 44px; padding: 0 18px; border: 1px solid #2196c4; border-radius: 999px;
  background: #fff; font-size: 15px; color: var(--text-dark); cursor: pointer;
}
.offer-picker select:focus { outline: none; box-shadow: 0 0 0 3px rgba(33,150,196,0.18); }
.offer-hint { text-align: center; font-weight: 400; color: var(--text-muted); }
.offer-layout {
  display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start;
  background: #fff; border-radius: 12px; padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.offer-photo { background: #f5f8fc; border-radius: 10px; padding: 16px; display: flex; align-items: center; justify-content: center; }
.offer-photo img { width: 100%; max-width: 250px; aspect-ratio: 1; object-fit: contain; }
.phone-placeholder { width: 120px; height: 200px; }
.offer-model { margin: 0 0 6px; font-size: 22px; color: var(--navy-dark); }
.offer-mop { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; }
.offer-mop strong { color: var(--text-dark); font-size: 18px; }
.offer-list { border-top: 1px solid var(--border); }
.offer-row { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--border); }
.offer-fin { font-weight: 800; color: var(--navy-dark); padding-top: 4px; }
.offer-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: #eef6fb; color: #145f7f; border: 1px solid #cfe6f2; font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Active List / Process downloads
   ========================================================================== */
.doc-grid { display: grid; gap: 12px; }
.doc-card {
  display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 10px;
  padding: 12px 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.doc-icon {
  width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
}
.doc-pdf { background: #d64541; }
.doc-xls { background: #1e7b45; }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-weight: 700; font-size: 15px; color: var(--navy-dark); word-break: break-word; }
.doc-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.doc-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ==========================================================================
   Finance WOD Status
   ========================================================================== */
.wod-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.wod-filters .field { margin: 0; }
.wod-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 10px; font-size: 15px; }
.wod-path { font-size: 12px; color: var(--text-muted); }
.wod-table td { white-space: nowrap; }
.wod-table td.wod-address { white-space: normal; min-width: 220px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: 10px; padding: 22px 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); max-width: 560px; }
.contact-icon { color: #2196c4; flex-shrink: 0; margin-top: 2px; }
.contact-card address { font-style: normal; line-height: 1.7; font-size: 15px; }
.contact-card strong { color: var(--navy-dark); font-size: 16px; }

@media (max-width: 760px) {
  .offer-layout { grid-template-columns: 1fr; padding: 16px; }
  .offer-photo img { max-width: 200px; }
  .wod-filters { grid-template-columns: 1fr; gap: 12px; }
  .doc-card { flex-wrap: wrap; }
  .doc-actions { width: 100%; }
  .doc-actions .btn { flex: 1; }
  .upload-form .text-input { width: 100%; }
}

.doc-img { background: #7b4fc9; }

/* Admin > Users */
.user-add-form { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 0 14px; align-items: end; }
.user-add-form .user-add-title { grid-column: 1 / -1; margin-bottom: 10px; }
.user-add-form .field { margin-bottom: 0; }
.user-add-form .btn { margin-bottom: 1px; height: 41px; }
.user-edit-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0; }
.user-edit-form .text-input { width: auto; min-width: 180px; padding: 8px 10px; }
.edit-row td { background: #f5f9fd; }
.role-pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.role-admin { background: #fff4d6; color: #8a6200; }
.role-user { background: #e8f5e9; color: #2e7d32; }
.me-tag { font-size: 11px; color: var(--text-muted); font-weight: 400; }
@media (max-width: 900px) {
  .user-add-form { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
}
@media (max-width: 560px) {
  .user-add-form { grid-template-columns: 1fr; }
}

/* Change password */
.pw-panel { max-width: 460px; margin: 0 auto; }
.pw-panel .field input { background: #fff; }
.login-help { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 16px; }
.user-chip .user-menu { min-width: 170px; }

/* ==========================================================================
   Offers: view tabs, cashback cards, bank wise, compare
   ========================================================================== */
.view-tabs { display: inline-flex; background: #eef1f6; border-radius: 999px; padding: 3px; }
.view-tabs a { padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--text-muted); }
.view-tabs a.active { background: #fff; color: #1a7ea6; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.offer-sub { margin: 20px 0 10px; font-size: 15px; color: var(--navy-dark); text-transform: uppercase; letter-spacing: 0.4px; }
.offer-warn { font-size: 13px; color: #8a6200; }
.cb-card { border: 1px solid #d6e9f3; border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.cb-variant { background: #fff4d6; color: #7a5600; font-weight: 700; font-size: 13px; padding: 7px 14px; }
.cb-variant-sm { font-size: 11px; font-weight: 700; color: #8a6200; }
.cb-cols { display: grid; grid-template-columns: 1fr 1fr; }
.cb-col { padding: 12px 14px; }
.cb-col + .cb-col { border-left: 1px solid #e3eef6; }
.cb-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; color: var(--text-muted); margin-bottom: 6px; }
.cb-today { margin-bottom: 6px; }
.cb-today-label { display: inline-block; background: #2e7d32; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.cb-amount { font-size: 22px; font-weight: 800; color: #1e7b45; vertical-align: middle; }
.cb-amount-sm { font-size: 16px; }
.cb-expired { color: var(--danger); font-weight: 700; font-size: 13px; }
.cb-none { color: var(--text-muted); font-size: 13px; }
.cb-lines { list-style: none; margin: 0 0 8px; padding: 0; font-size: 13px; }
.cb-lines li { padding: 2px 0; }
.cb-lines li.is-off { color: #9aa3ab; text-decoration: line-through; }
.cb-lines li.is-active { font-weight: 700; }
.cb-tag { display: inline-block; font-size: 10px; font-weight: 800; background: #e3edfa; color: var(--navy-dark); border-radius: 4px; padding: 1px 5px; margin-right: 4px; }
.cb-date { color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.cb-calc { color: #1e7b45; margin-left: 4px; }
.cb-eff { font-size: 13px; background: #eef6fb; border-radius: 6px; padding: 6px 10px; margin-bottom: 8px; }
.cb-eff strong { font-size: 15px; color: var(--navy-dark); }
.cb-banks { display: flex; flex-wrap: wrap; gap: 4px; }
.bank-chip { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #f1f3f6; color: #3d4852; border: 1px solid #dde2e8; }
.cb-green { color: #1e7b45; font-weight: 700; }

.bank-filter { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 16px; align-items: end; margin-bottom: 18px; }
.bank-filter .field { margin: 0; }
.seg { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.seg label { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; color: var(--text-dark); cursor: pointer; margin: 0; }
.seg label:has(input:checked) { border-color: #2196c4; background: #eef6fb; color: #145f7f; }
.bank-table .num { text-align: right; white-space: nowrap; }

.compare-form { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 14px; align-items: end; margin-bottom: 18px; }
.compare-form .field { margin: 0; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 10px; overflow: hidden; }
.compare-table th, .compare-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; font-size: 13px; }
.compare-table tbody th { width: 170px; background: #f5f8fc; color: var(--navy-dark); }
.compare-table tbody th small { font-weight: 400; color: var(--text-muted); }
.compare-table thead th { text-align: center; background: #fff; }
.cmp-photo img, .cmp-photo .phone-placeholder { width: 120px; height: 120px; object-fit: contain; }
.cmp-name { display: block; font-weight: 800; color: var(--navy-dark); font-size: 14px; margin-top: 6px; }
.cmp-big { font-size: 16px; font-weight: 800; }
.cmp-eff td, .cmp-eff th { background: #eef6fb; }
.cmp-eff strong { font-size: 17px; color: var(--navy-dark); }
.lowest-tag { background: #2e7d32; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; vertical-align: middle; }
.cmp-note { margin-top: 10px; }

@media (max-width: 760px) {
  .cb-cols { grid-template-columns: 1fr; }
  .cb-col + .cb-col { border-left: none; border-top: 1px solid #e3eef6; }
  .bank-filter, .compare-form { grid-template-columns: 1fr; }
  .view-tabs a { padding: 7px 12px; }
  .compare-table tbody th { width: 110px; }
}
.seg input { width: auto; margin: 0; }
.seg label { white-space: nowrap; }

/* Admin bulk delete */
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.bulk-bar form { margin: 0; }
.bulk-bar .bulk-right { margin-left: auto; }
.btn-red { background: var(--danger); }
.btn-red:hover { background: #a93226; }
.btn-red-outline { background: #fff; color: var(--danger); border: 1px solid var(--danger); }
.btn-red-outline:hover:not(:disabled) { background: #fdecea; }
.btn-red-outline:disabled { opacity: 0.45; cursor: not-allowed; }
.col-check { width: 34px; text-align: center; }
.col-check input { width: 16px; height: 16px; cursor: pointer; }
.admin-table tr.row-selected td { background: #fff4f2; }
@media (max-width: 560px) { .bulk-bar .bulk-right { margin-left: 0; } }

/* ==========================================================================
   Competitor: compare with vivo, brand summary
   ========================================================================== */
.compare-form-2 { grid-template-columns: 1fr 1fr auto; }
.vs-compare th.side-comp, .vs-compare th.side-vivo { width: 40%; vertical-align: bottom; }
.vs-compare th.side-vivo { background: #f1f8f3; }
.side-brand { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #1a7ea6; }
.side-vivo .side-brand { color: #1e7b45; }
.vs-compare td small { color: var(--text-muted); font-size: 12px; }
.better-tag { display: inline-block; background: #2e7d32; color: #fff; font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 999px; vertical-align: middle; margin-left: 4px; }
.chip.chip-zero { background: #e8f5e9; color: #1e6b31; border-color: #bfe3c6; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.brand-card { display: block; background: #fff; border-radius: 10px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); border: 2px solid transparent; }
.brand-card:hover { border-color: #cfe6f2; }
.brand-card.is-active { border-color: #2196c4; }
.brand-card.brand-vivo { background: #f1f8f3; }
.brand-title { font-size: 18px; font-weight: 800; color: var(--navy-dark); }
.brand-vivo .brand-title { color: #1e7b45; }
.brand-stat { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.brand-stat span { font-size: 16px; font-weight: 800; color: var(--text-dark); }
.brand-card dl { margin: 0; display: grid; gap: 6px; }
.brand-card dt { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.2px; }
.brand-card dd { margin: 0; font-size: 14px; font-weight: 700; }
.brand-card dd a { color: #1a7ea6; }
.brand-filter { width: auto !important; min-width: 150px; height: 38px; padding: 0 12px !important; border-radius: 999px !important; }
@media (max-width: 760px) { .compare-form-2 { grid-template-columns: 1fr; } }
.pw-pending { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #fff4d6; color: #8a6200; }
