@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root {
  --navy: #212121;
  --navy-mid: #1a3a6b;
  --navy-light: #2a4f8a;
  --gold: #FFCC00;
  --gold-light: #FFCC00;
  --gold-pale: #fdf3d7;
  --gold-pale2: #fef8e8;
  --cream: #faf7f2;
  --ink: #1a1a2e;
  --ink2: #3a3a4a;
  --muted: #7a7a8e;
  --muted2: #ababba;
  --border: #e4e2dc;
  --border2: #d0cdc5;
  --surface: #ffffff;
  --surface2: #f5f3ef;
  --green: #1a8c5a;
  --green-bg: #e6f6ee;
  --orange: #d4620a;
  --orange-bg: #fdf0e6;
  --red: #c0392b;
  --red-bg: #fce9e7;
  --blue: #1a5fa8;
  --blue-bg: #e6f0fa;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow: 0 2px 12px rgba(15,34,70,0.08);
  --shadow-lg: 0 8px 32px rgba(15,34,70,0.12);
}

* { font-family: "Poppins", sans-serif; box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Poppins", sans-serif !important; background: var(--cream); color: var(--ink); min-height: 100vh; font-size: 14px; }
body.in-internal { overflow: hidden; height: 100vh; }
.customer-shell { display: flex; min-height: 100vh; }
body.in-internal .customer-shell { display: none; }
body:not(.in-internal) #internal-portal { display: none !important; }

/* SIDEBAR */
.sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  z-index: 100;
}
.sidebar-logo {
  padding: 22px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.logo-mark { display: flex; align-items: center; gap: 9px; }
.logo-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', serif; font-size: 16px; font-weight: 600; color: var(--navy);
}
.logo-text { font-family: 'Poppins', serif; font-size: 16px; color: #fff; font-weight: 400; }
.logo-sub { font-size: 9px; color: rgba(255,255,255,0.35); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 8px; padding: 0 2px; }

.sidebar-user {
  margin: 14px 14px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r);
  padding: 12px;
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', serif; font-size: 14px; font-weight: 600; color: var(--navy);
  flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 500; color: #fff; }
.user-tier {
  font-size: 10px; color: var(--gold-light);
  display: flex; align-items: center; gap: 3px; margin-top: 2px;
}

.nav-section { padding: 8px 14px 4px; font-size: 9px; color: rgba(255,255,255,0.3); letter-spacing: 1.2px; text-transform: uppercase; margin-top: 6px; }
.nav-item {
  margin: 1px 10px;
  display: flex; align-items: center; gap: 5px;
  padding: 9px 12px; border-radius: var(--r);
  cursor: pointer; color: rgba(255,255,255,0.55);
  font-size: 13px; font-weight: 400;
  transition: all 0.18s;
  position: relative;
  border: none; background: none; width: calc(100% - 20px); text-align: left; font-family: 'DM Sans', sans-serif;
  text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.85); text-decoration: none; }
.nav-item.active { background: rgba(232,168,32,0.15); color: var(--gold-light); }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 60%; width: 3px; background: var(--gold); border-radius: 0 3px 3px 0;
}
.nav-icon { font-size: 16px; min-width: 18px; }
.nav-badge {
  margin-left: auto; background: var(--gold); color: var(--navy);
  font-size: 10px; font-weight: 500; padding: 1px 6px; border-radius: 20px;
}
.nav-badge.blue { background: var(--blue); color: #fff; }
.sidebar-bottom {
  margin-top: auto; padding: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.coin-mini {
  background: rgba(232,168,32,0.12);
  border: 1px solid rgba(232,168,32,0.25);
  border-radius: var(--r); padding: 10px 12px;
  display: flex; align-items: center; gap: 8px;
}
.coin-mini-val { font-size: 16px; font-weight: 500; color: var(--gold-light); }
.coin-mini-label { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 1px; }

/* MAIN */
.main { flex: 1; overflow-y: auto; }
.page { display: none; }
.page.active { display: block; }

/* TOP BAR */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 58px;
  display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-family: 'Poppins', serif; font-size: 18px; color: var(--navy); font-weight: 400; }
.topbar-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topbar-notif {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; color: var(--muted);
}
.notif-dot {
  position: absolute; top: 7px; right: 7px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); border: 2px solid white;
}
.topbar-coin-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--gold-pale); border: 1px solid rgba(232,168,32,0.35);
  border-radius: 20px; padding: 6px 12px;
  font-size: 13px; font-weight: 500; color: var(--orange); cursor: pointer;
}
.topbar-book-btn {
  background: var(--navy); color: white;
  border: none; border-radius: var(--r); padding: 9px 16px;
  font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: background 0.18s;
}
.topbar-book-btn:hover { background: var(--navy-mid); }

/* CONTENT */
.content { padding: 24px 28px; }

/* ── HOME PAGE ── */
.welcome-banner {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 22px;
  position: relative; overflow: hidden;
}
.wb-bg {
  position: absolute; right: -30px; top: -30px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(232,168,32,0.08);
}
.wb-bg2 {
  position: absolute; right: 60px; bottom: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(232,168,32,0.05);
}
.wb-text { flex: 1; position: relative; }
.wb-greeting { font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.wb-name { font-family: 'Poppins', serif; font-size: 26px; color: white; font-weight: 400; margin-bottom: 6px; }
.wb-sub { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.5; }
.wb-reward-box {
  background: rgba(232,168,32,0.15);
  border: 1px solid rgba(232,168,32,0.3);
  border-radius: var(--r-lg); padding: 18px 22px;
  text-align: center; flex-shrink: 0; position: relative;
  min-width: 160px;
}
.wb-coin-val { font-size: 32px; font-weight: 500; color: var(--gold-light); font-family: 'Poppins', serif; line-height: 1; }
.wb-coin-lbl { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.wb-coin-worth { font-size: 13px; color: var(--gold-light); margin-top: 6px; font-weight: 500; }
.wb-bonus-tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); font-size: 10px; font-weight: 500;
  padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat-card {
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: 16px 18px;
}
.stat-icon { font-size: 20px; margin-bottom: 10px; }
.stat-val { font-size: 22px; font-weight: 500; color: var(--ink); font-family: 'Poppins', serif; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 3px; }
.stat-delta { font-size: 11px; margin-top: 6px; display: flex; align-items: center; gap: 3px; }
.delta-up { color: var(--green); }
.delta-warn { color: var(--orange); }

.section-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.card {
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--border); overflow: hidden;
}
.card-head {
  padding: 16px 18px 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: 13px; font-weight: 500; color: var(--ink); }
.card-action { font-size: 12px; color: var(--blue); cursor: pointer; background: none; border: none; font-family: 'DM Sans', sans-serif; }
.card-body { padding: 14px 18px; }

.order-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.order-item:last-child { border-bottom: none; padding-bottom: 0; }
.order-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.order-details { flex: 1; min-width: 0; }
.order-name { font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.status-pill {
  font-size: 10px; font-weight: 500; padding: 3px 9px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0;
}
.s-progress { background: var(--blue-bg); color: var(--blue); }
.s-complete { background: var(--green-bg); color: var(--green); }
.s-pending { background: var(--orange-bg); color: var(--orange); }
.s-draft { background: var(--surface2); color: var(--muted); }

.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.notif-item:last-child { border-bottom: none; padding-bottom: 0; }
.notif-dot-sm { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.nd-red { background: var(--red); }
.nd-gold { background: var(--gold); }
.nd-green { background: var(--green); }
.nd-blue { background: var(--blue); }
.notif-text-sm { font-size: 12px; color: var(--ink2); line-height: 1.5; flex: 1; }
.notif-time { font-size: 11px; color: var(--muted2); margin-top: 2px; }
.notif-cta-sm { font-size: 11px; color: var(--blue); cursor: pointer; background: none; border: none; font-family: 'DM Sans', sans-serif; white-space: nowrap; align-self: center; }

/* WELCOME REWARDS SECTION */
.welcome-rewards-hero {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: 30px; margin-bottom: 20px;
  display: flex; gap: 24px; align-items: stretch;
}
.wr-left { flex: 1; }
.wr-heading { font-family: 'Poppins', serif; font-size: 22px; color: white; font-weight: 400; margin-bottom: 8px; }
.wr-sub { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 16px; }
.wr-steps { display: flex; flex-direction: column; gap: 10px; }
.wr-step { display: flex; align-items: center; gap: 12px; }
.wr-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(232,168,32,0.2); border: 1px solid rgba(232,168,32,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; color: var(--gold-light); flex-shrink: 0;
}
.wr-step-text { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.4; }
.wr-right { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.reward-card-sm {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.reward-card-sm.gold-border { border-color: rgba(232,168,32,0.35); background: rgba(232,168,32,0.08); }
.rcs-icon { font-size: 20px; }
.rcs-val { font-size: 18px; font-weight: 500; color: var(--gold-light); font-family: 'Poppins', serif; }
.rcs-label { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 2px; }

/* BOOKING SECTION */
.service-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px; cursor: pointer;
  transition: all 0.18s; text-align: center;
}
.cat-card:hover { border-color: var(--navy-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-card.active-cat { border-color: var(--gold); background: var(--gold-pale2); }
.cat-icon { font-size: 26px; margin-bottom: 8px; }
.cat-name { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 3px; }
.cat-count { font-size: 11px; color: var(--muted); }

.service-list { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; }
.svc-list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.svc-list-item:last-child { border-bottom: none; }
.svc-list-item:hover { background: var(--surface2); }
.svc-badge { font-size: 10px; padding: 2px 8px; border-radius: 20px; }
.svc-price-tag { font-size: 13px; font-weight: 500; color: var(--navy); margin-left: auto; }
.svc-coin-earn { font-size: 11px; color: var(--orange); margin-top: 1px; text-align: right; }
.book-now-btn {
  background: var(--navy); color: white; border: none;
  border-radius: 8px; padding: 7px 14px; font-size: 12px;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: background 0.15s; flex-shrink: 0;
}
.book-now-btn:hover { background: var(--navy-mid); }

/* ORDERS & STATUS */
.orders-toolbar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.filter-btn {
  padding: 7px 14px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--surface); font-size: 12px; color: var(--muted);
  cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.15s;
}
.filter-btn.on { background: var(--navy); color: white; border-color: var(--navy); }
.search-box {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 12px; background: var(--surface);
}
.search-box input {
  border: none; outline: none; font-size: 12px; color: var(--ink);
  background: transparent; font-family: 'DM Sans', sans-serif; width: 160px;
}

.order-table-wrap { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; }
.order-table { width: 100%; border-collapse: collapse; }
.order-table th {
  padding: 11px 16px; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.7px; color: var(--muted); font-weight: 500;
  background: var(--surface2); text-align: left; border-bottom: 1px solid var(--border);
}
.order-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--ink2); vertical-align: middle; }
.order-table tr:last-child td { border-bottom: none; }
.order-table tbody tr:hover td { background: var(--surface2); }
.order-id { font-size: 11px; color: var(--muted); font-weight: 400; }
.track-btn {
  font-size: 11px; color: var(--blue); background: var(--blue-bg);
  border: none; border-radius: 6px; padding: 5px 10px; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.rebook-btn {
  font-size: 11px; color: var(--navy); background: var(--surface2);
  border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px;
  cursor: pointer; font-family: 'DM Sans', sans-serif; margin-left: 4px;
}
.no-results-row td { text-align: center; color: var(--muted); padding: 30px 16px !important; }

/* ORDER DETAIL TRACKER */
.tracker-card { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--border); padding: 22px; margin-bottom: 16px; }
.track-steps { display: flex; flex-direction: column; gap: 0; }
.track-step { display: flex; gap: 16px; position: relative; }
.track-step-left { display: flex; flex-direction: column; align-items: center; }
.track-dot {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  border: 2px solid var(--border);
}
.td-done { background: var(--green); border-color: var(--green); color: white; }
.td-active { background: var(--navy); border-color: var(--navy); color: white; }
.td-pending { background: var(--surface2); border-color: var(--border2); color: var(--muted); }
.track-line { width: 2px; flex: 1; min-height: 28px; background: var(--border); margin: 3px 0; }
.track-line.done { background: var(--green); }
.track-step-right { flex: 1; padding: 0 0 22px 0; }
.track-step-name { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 3px; }
.track-step-sub { font-size: 12px; color: var(--muted); line-height: 1.5; }
.track-step-date { font-size: 11px; color: var(--muted2); margin-top: 4px; }

/* REWARDS WALLET */
.wallet-hero {
  background: var(--navy); border-radius: var(--r-xl);
  padding: 24px 28px; display: flex; align-items: center; gap: 28px; margin-bottom: 20px;
}
.wallet-coin-big { font-family: 'Poppins', serif; font-size: 48px; color: var(--gold-light); font-weight: 400; line-height: 1; }
.wallet-coin-label { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.wallet-worth { font-size: 16px; color: var(--gold-light); font-weight: 500; margin-top: 8px; }
.wallet-divider { width: 1px; height: 80px; background: rgba(255,255,255,0.12); }
.wallet-tier-info { flex: 1; }
.wallet-tier-name { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.tier-pill { background: rgba(232,168,32,0.2); color: var(--gold-light); font-size: 11px; padding: 2px 8px; border-radius: 20px; border: 1px solid rgba(232,168,32,0.3); }
.wallet-progress-bar { height: 7px; background: rgba(255,255,255,0.12); border-radius: 20px; margin: 8px 0; }
.wbp-fill { height: 100%; background: var(--gold); border-radius: 20px; transition: width 0.4s; }
.wallet-prog-labels { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.4); }
.wallet-redeem-btn {
  background: var(--gold); color: var(--navy); border: none;
  border-radius: var(--r); padding: 11px 22px; font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif; flex-shrink: 0;
}

.wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.wallet-mini-card { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--border); padding: 16px 18px; }
.wmcard-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }
.wmcard-val { font-size: 20px; font-weight: 500; color: var(--ink); font-family: 'Poppins', serif; }
.wmcard-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }

.txn-list { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; }
.txn-head { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--ink); }
.txn-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.txn-item:last-child { border-bottom: none; }
.txn-icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.txn-desc { flex: 1; }
.txn-name { font-size: 13px; color: var(--ink); }
.txn-date { font-size: 11px; color: var(--muted); margin-top: 2px; }
.txn-coins { font-size: 14px; font-weight: 500; }
.txn-earn { color: var(--green); }
.txn-use { color: var(--red); }

/* PROFILE */
.profile-grid { display: grid; grid-template-columns: 260px 1fr; gap: 18px; }
.profile-left { display: flex; flex-direction: column; gap: 14px; }
.profile-card-main {
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: 24px; text-align: center;
}
.profile-avatar-lg {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', serif; font-size: 28px; color: var(--gold);
  margin: 0 auto 12px; position: relative;
}
.avatar-edit {
  position: absolute; bottom: 0; right: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy-mid); border: 2px solid white;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: white; cursor: pointer;
}
.profile-name { font-family: 'Poppins', serif; font-size: 18px; color: var(--ink); margin-bottom: 3px; }
.profile-email { font-size: 12px; color: var(--muted); }
.profile-tier-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gold-pale); border: 1px solid rgba(232,168,32,0.4);
  border-radius: 20px; padding: 4px 12px;
  font-size: 12px; font-weight: 500; color: var(--orange); margin: 10px auto 0;
}
.profile-stats-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.psm-item { text-align: center; }
.psm-val { font-size: 18px; font-weight: 500; font-family: 'Poppins', serif; color: var(--ink); }
.psm-label { font-size: 11px; color: var(--muted); margin-top: 2px; }

.profile-shortcuts { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; }
.ps-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.15s;
  font-size: 13px; color: var(--ink2);
}
.ps-item:last-child { border-bottom: none; }
.ps-item:hover { background: var(--surface2); }
.ps-item-icon { font-size: 15px; color: var(--muted); }
.ps-item-arrow { margin-left: auto; font-size: 13px; color: var(--muted2); }

.profile-right { display: flex; flex-direction: column; gap: 14px; }
.profile-form-card { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; }
.form-section-title { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--ink); display: flex; align-items: center; justify-content: space-between; }
.edit-btn {
  font-size: 12px; color: var(--blue); background: none; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.form-grid { padding: 16px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; display: block; margin-bottom: 5px; }
.form-field input, .form-field select {
  width: 100%; padding: 9px 12px; border-radius: 8px;
  border: 1px solid var(--border); font-size: 13px; color: var(--ink);
  font-family: 'DM Sans', sans-serif; background: var(--surface2);
  outline: none; transition: border-color 0.15s;
}
.form-field input:focus, .form-field select:focus { border-color: var(--navy); background: white; }
.form-field input:disabled, .form-field select:disabled { color: var(--ink2); cursor: not-allowed; opacity: 0.85; }
.form-field.full { grid-column: span 2; }
.save-btn {
  background: var(--navy); color: white; border: none; border-radius: 8px;
  padding: 10px 22px; font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: 'DM Sans', sans-serif; margin: 4px 18px 16px;
}

/* REBOOKING */
.rebook-card {
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: 16px 18px;
  display: flex; align-items: center; gap: 16px; margin-bottom: 10px;
  transition: all 0.18s;
}
.rebook-card:hover { box-shadow: var(--shadow); border-color: var(--navy-light); }
.rbc-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.rbc-details { flex: 1; }
.rbc-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.rbc-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rbc-badges { display: flex; gap: 6px; margin-top: 6px; }
.rbc-price { font-size: 14px; font-weight: 500; color: var(--navy); margin-left: auto; text-align: right; flex-shrink: 0; }
.rbc-coin { font-size: 11px; color: var(--orange); margin-top: 3px; }
.rbc-btn {
  background: var(--navy); color: white; border: none; border-radius: 8px;
  padding: 9px 16px; font-size: 12px; font-weight: 500; cursor: pointer;
  font-family: 'DM Sans', sans-serif; flex-shrink: 0; margin-left: 10px;
}

/* SUPPORT */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.support-card {
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--border); padding: 20px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; cursor: pointer;
  transition: all 0.18s;
}
.support-card:hover { box-shadow: var(--shadow); border-color: var(--navy); }
.support-icon { font-size: 24px; }
.support-title { font-size: 14px; font-weight: 500; color: var(--ink); }
.support-sub { font-size: 12px; color: var(--muted); line-height: 1.5; }
.support-cta { font-size: 12px; color: var(--blue); font-weight: 500; }

/* FAQ ACCORDION */
.faq-q { padding: 14px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.faq-q:last-child { border-bottom: none; }
.faq-q-head { font-size: 13px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-toggle { color: var(--muted); font-size: 16px; transition: transform 0.2s; flex-shrink: 0; }
.faq-q.open .faq-toggle { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease, padding 0.25s ease; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.faq-q.open .faq-a { max-height: 200px; padding-top: 10px; }

/* ── NEW: COMPLIANCE CALENDAR ── */
.cal-layout { display: grid; grid-template-columns: 1fr 300px; gap: 18px; }
.cal-card { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--border); padding: 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-month { font-family: 'Poppins', serif; font-size: 17px; color: var(--navy); }
.cal-nav-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface2); cursor: pointer; color: var(--ink2); font-size: 14px; }
.cal-nav-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); font-weight: 500; padding: 4px 0; }
.cal-cell {
  aspect-ratio: 1; border-radius: 8px; border: 1px solid transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 7px; font-size: 12px; color: var(--ink2); position: relative; cursor: default;
}
.cal-cell.has-day:hover { background: var(--surface2); }
.cal-cell.today { background: var(--navy); color: #fff; font-weight: 500; }
.cal-cell.has-event { cursor: pointer; border-color: var(--border); }
.cal-cell.has-event:hover { border-color: var(--gold); background: var(--gold-pale2); }
.cal-event-dots { display: flex; gap: 2px; margin-top: 3px; position: absolute; bottom: 6px; }
.ce-dot { width: 5px; height: 5px; border-radius: 50%; }
.ced-red { background: var(--red); } .ced-orange { background: var(--orange); } .ced-blue { background: var(--blue); } .ced-green { background: var(--green); }
.deadline-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.deadline-item:last-child { border-bottom: none; }
.dl-date { text-align: center; flex-shrink: 0; width: 40px; }
.dl-day { font-family: 'Poppins', serif; font-size: 18px; color: var(--navy); line-height: 1; }
.dl-mon { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.dl-body { flex: 1; }
.dl-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.dl-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── NEW: CONSULTATIONS ── */
.expert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.expert-card { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--border); padding: 18px; text-align: center; transition: all 0.18s; }
.expert-card:hover { box-shadow: var(--shadow); border-color: var(--navy-light); }
.expert-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: 'Poppins', serif; font-size: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.expert-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.expert-role { font-size: 11px; color: var(--muted); margin-top: 2px; }
.expert-rating { font-size: 11px; color: var(--orange); margin-top: 6px; }
.slot-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 12px 0; }
.slot-chip { font-size: 11px; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface2); cursor: pointer; color: var(--ink2); transition: all 0.15s; }
.slot-chip:hover { border-color: var(--navy); }
.slot-chip.sel { background: var(--navy); color: #fff; border-color: var(--navy); }
.consult-book-btn { width: 100%; background: var(--navy); color: #fff; border: none; border-radius: 8px; padding: 9px; font-size: 12px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.consult-book-btn:disabled { background: var(--border2); cursor: not-allowed; }
.upcoming-consult { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.upcoming-consult:last-child { border-bottom: none; }

/* ── NEW: MESSAGES ── */
.chat-layout { display: grid; grid-template-columns: 280px 1fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; height: calc(100vh - 140px); min-height: 460px; }
.chat-list { border-right: 1px solid var(--border); overflow-y: auto; }
.chat-list-item { display: flex; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; }
.chat-list-item:hover { background: var(--surface2); }
.chat-list-item.active { background: var(--gold-pale2); border-left: 3px solid var(--gold); }
.cli-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-mid); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.cli-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.cli-preview { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.cli-time { font-size: 10px; color: var(--muted2); margin-left: auto; flex-shrink: 0; }
.chat-thread { display: flex; flex-direction: column; }
.chat-thread-head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--cream); }
.chat-bubble { max-width: 70%; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
.cb-them { background: var(--surface); border: 1px solid var(--border); color: var(--ink2); align-self: flex-start; border-bottom-left-radius: 4px; }
.cb-me { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.cb-time { font-size: 9px; opacity: 0.6; margin-top: 4px; display: block; }
.chat-input-row { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); }
.chat-input-row input { flex: 1; border: 1px solid var(--border); border-radius: 20px; padding: 10px 16px; font-size: 13px; font-family: 'DM Sans', sans-serif; outline: none; background: var(--surface2); }
.chat-input-row input:focus { border-color: var(--navy); background: #fff; }
.chat-send-btn { background: var(--navy); color: #fff; border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; font-size: 15px; flex-shrink: 0; }

/* ── NEW: BILLING ── */
.pay-method-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 18px; }
.pay-method { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; display: flex; align-items: center; gap: 12px; }
.pay-method.default { border-color: var(--navy); }
.pm-icon { width: 40px; height: 30px; border-radius: 6px; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 16px; }

/* TOAST */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--navy); color: #fff; padding: 11px 20px; border-radius: 30px;
  font-size: 13px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px;
  animation: toastIn 0.25s ease; max-width: 90vw;
}
.toast.gold { background: var(--gold); color: var(--navy); font-weight: 500; }
.toast.green { background: var(--green); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* MODAL + DRAWER OVERLAY */
.overlay { position: fixed; inset: 0; background: rgba(15,34,70,0.45); z-index: 1500; opacity: 0; pointer-events: none; transition: opacity 0.22s; }
.overlay.show { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -46%) scale(0.97);
  background: var(--surface); border-radius: var(--r-xl); z-index: 1600;
  width: 440px; max-width: 92vw; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: all 0.22s; overflow: hidden;
}
.modal.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-head { padding: 20px 22px 0; display: flex; align-items: flex-start; justify-content: space-between; }
.modal-title { font-family: 'Poppins', serif; font-size: 19px; color: var(--navy); }
.modal-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.modal-close { background: none; border: none; font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1; }
.modal-body { padding: 18px 22px 22px; }

/* CART DRAWER */
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 380px; max-width: 92vw;
  background: var(--surface); z-index: 1600; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.drawer.show { transform: translateX(0); }
.drawer-head { padding: 20px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.drawer-title { font-family: 'Poppins', serif; font-size: 18px; color: var(--navy); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.drawer-foot { border-top: 1px solid var(--border); padding: 18px 22px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.cart-item-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.cart-item-meta { font-size: 11px; color: var(--orange); margin-top: 2px; }
.cart-item-price { font-size: 13px; font-weight: 500; color: var(--navy); margin-left: auto; }
.cart-remove { background: none; border: none; color: var(--muted2); cursor: pointer; font-size: 16px; align-self: flex-start; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 20px; font-size: 13px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink2); padding: 5px 0; }
.cart-summary-row.total { font-weight: 600; color: var(--ink); font-size: 15px; padding-top: 10px; border-top: 1px solid var(--border); margin-top: 6px; }
.coin-apply-box { background: var(--gold-pale2); border: 1px solid rgba(232,168,32,0.35); border-radius: var(--r); padding: 12px 14px; margin: 14px 0; }
.checkout-btn { width: 100%; background: var(--navy); color: #fff; border: none; border-radius: var(--r); padding: 13px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.checkout-btn:hover { background: var(--navy-mid); }

/* NOTIFICATION PANEL */
.notif-panel {
  position: absolute; top: 50px; right: 28px; width: 360px; max-width: 92vw;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); z-index: 1400; overflow: hidden;
  opacity: 0; pointer-events: none; transform: translateY(-8px); transition: all 0.2s;
}
.notif-panel.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.notif-panel-head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.notif-panel-body { max-height: 380px; overflow-y: auto; padding: 6px 18px; }

/* range input theming */
input[type=range] { accent-color: var(--navy); }

/* TOGGLE SWITCH */
.vk-toggle { background: var(--border2); width: 38px; height: 20px; border-radius: 20px; position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.vk-toggle.on { background: var(--navy); }
.vk-knob { width: 16px; height: 16px; background: white; border-radius: 50%; position: absolute; left: 2px; top: 2px; transition: left 0.2s; }
.vk-toggle.on .vk-knob { left: 20px; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.page.active .content { animation: fadeUp 0.3s ease; }

/* MOBILE TOGGLE */
.mob-menu { display: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 10px; }

/* ── shared badges ── */
.badge { font-size: 10px; font-weight: 500; padding: 3px 9px; border-radius: 20px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-orange { background: var(--orange-bg); color: var(--orange); }
.btn-sm { font-size: 11px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border2); background: none; color: var(--navy); font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap; }
.btn-sm:hover { border-color: var(--navy); }

/* ── NEW: consultation virtual / physical mode ── */
.mode-switch { display: flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; margin: 12px 0 4px; }
.mode-opt { flex: 1; padding: 7px 6px; font-size: 11px; font-weight: 500; text-align: center; cursor: pointer; background: var(--surface); color: var(--muted); transition: all 0.15s; }
.mode-opt.on { background: var(--navy); color: #fff; }
.mode-opt:not(.on):hover { background: var(--surface2); }
.mode-context { font-size: 11px; color: var(--muted); background: var(--surface2); border-radius: 8px; padding: 7px 9px; margin: 8px 0 4px; line-height: 1.45; min-height: 40px; }

/* ── NEW: checkout upsell inside cart ── */
.upsell-block { margin-top: 16px; border-top: 1px dashed var(--border2); padding-top: 12px; }
.upsell-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.upsell-head .uh-title { font-size: 12px; font-weight: 600; color: var(--navy); }
.upsell-tag { font-size: 10px; font-weight: 600; color: var(--orange); background: var(--gold-pale2); border: 1px solid rgba(232,168,32,0.35); padding: 2px 8px; border-radius: 20px; }
.upsell-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.upsell-row:last-child { border-bottom: none; }
.upsell-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.upsell-name { font-size: 12px; font-weight: 500; color: var(--ink); }
.upsell-meta { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.upsell-meta .coins { color: var(--orange); font-weight: 600; }
.upsell-add { font-size: 11px; font-weight: 600; padding: 5px 11px; border: 1px solid var(--border2); border-radius: 8px; background: none; color: var(--navy); cursor: pointer; font-family: 'DM Sans', sans-serif; flex-shrink: 0; }
.upsell-add:hover { border-color: var(--navy); }

/* ── NEW: feedback page ── */
.fb-reward-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--gold-pale); border: 1px solid rgba(232,168,32,0.4); color: var(--orange); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px; margin-bottom: 14px; }
.fb-stars { display: flex; gap: 8px; margin: 4px 0 4px; }
.fb-star { font-size: 32px; color: var(--border2); cursor: pointer; transition: transform 0.12s, color 0.12s; line-height: 1; user-select: none; }
.fb-star:hover { transform: scale(1.12); }
.fb-star.lit { color: var(--gold); }
.fb-rating-word { font-size: 12px; color: var(--muted); height: 16px; margin-bottom: 14px; }
.fb-chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.fb-chip { font-size: 12px; padding: 7px 13px; border-radius: 20px; border: 1px solid var(--border2); background: var(--surface); cursor: pointer; color: var(--muted); font-family: 'DM Sans', sans-serif; transition: all 0.15s; }
.fb-chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.fb-text { width: 100%; min-height: 96px; padding: 12px; border: 1px solid var(--border2); border-radius: 10px; font-size: 13px; font-family: 'DM Sans', sans-serif; resize: vertical; color: var(--ink); }
.fb-text:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,168,32,0.14); }
.fb-submit { margin-top: 16px; background: var(--navy); color: #fff; border: none; border-radius: 10px; padding: 13px 20px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.fb-submit:hover { background: var(--navy-mid); }
.fb-success { display: none; text-align: center; padding: 40px 20px; }
.fb-success.show { display: block; }
.fb-coin-burst { font-size: 44px; font-family: 'Poppins', serif; color: var(--orange); margin: 6px 0; }
.fb-success h3 { font-family: 'Poppins', serif; font-size: 21px; color: var(--navy); margin-bottom: 6px; }
.fb-success p { font-size: 13px; color: var(--muted); max-width: 360px; margin: 0 auto; }

/* ── NEW: dedicated checkout page ── */
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.checkout-stack { display: flex; flex-direction: column; gap: 16px; }
.summary-card-wrap { position: sticky; top: 18px; }
.order-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.order-item:last-child { border-bottom: none; }
.order-item-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.order-item-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.order-item-meta { font-size: 11px; color: var(--muted); margin-top: 3px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.order-item-meta .coins-tag { color: var(--orange); font-weight: 600; font-size: 11px; display: inline-flex; align-items: center; gap: 4px; }
.order-item-meta .mult-tag { font-size: 9.5px; background: var(--gold-pale); border: 1px solid rgba(232,168,32,0.35); padding: 1px 6px; border-radius: 12px; color: var(--orange); font-weight: 600; }
.order-item-meta .remove-link { font-size: 11px; color: var(--muted); background: none; border: none; cursor: pointer; text-decoration: underline; padding: 0; font-family: 'DM Sans', sans-serif; }
.order-item-meta .remove-link:hover { color: var(--red); }
.order-item-price { font-size: 13px; font-weight: 600; color: var(--ink); margin-left: auto; }
.checkout-line { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink2); padding: 5px 0; }
.checkout-line.muted { color: var(--muted); }
.checkout-line.disc { color: var(--green); font-weight: 500; }
.checkout-divider { border-top: 1px solid var(--border); margin: 8px 0; }
.checkout-total { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; color: var(--navy); padding-top: 6px; }
.redeem-box-c { display: flex; align-items: center; gap: 11px; background: var(--gold-pale); border: 1px solid rgba(232,168,32,0.4); border-radius: 10px; padding: 11px 13px; margin: 14px 0; }
.toggle-pill { width: 38px; height: 21px; border-radius: 20px; background: var(--border2); position: relative; flex-shrink: 0; cursor: pointer; transition: background 0.2s; }
.toggle-pill.on { background: var(--gold); }
.toggle-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; position: absolute; left: 3px; top: 2.5px; transition: left 0.2s; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.toggle-pill.on .toggle-thumb { left: 19px; }
.redeem-title-c { font-size: 12px; font-weight: 600; color: var(--orange); }
.redeem-sub-c { font-size: 11px; color: var(--orange); opacity: 0.85; margin-top: 1px; }
.earn-notice-c { display: flex; align-items: center; gap: 9px; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--ink); margin-top: 14px; line-height: 1.5; }
.earn-notice-c strong { color: var(--orange); font-weight: 600; }
.pay-now-btn { width: 100%; margin-top: 16px; padding: 14px; border-radius: 10px; border: none; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.15s; }
.pay-now-btn:hover { background: var(--navy-mid); }
.cap-note { font-size: 10.5px; color: var(--muted); text-align: center; margin-top: 9px; }
.empty-checkout { text-align: center; padding: 50px 20px; color: var(--muted); font-size: 13px; }
.upsell-page-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.upsell-page-row:last-child { border-bottom: none; }
.upsell-page-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.upsell-page-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.upsell-page-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; display: flex; gap: 10px; align-items: center; }
.upsell-page-meta .coins-tag { color: var(--orange); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.upsell-page-meta .mult-tag { font-size: 9.5px; background: var(--gold-pale); border: 1px solid rgba(232,168,32,0.35); padding: 1px 6px; border-radius: 12px; color: var(--orange); font-weight: 600; }
.upsell-page-add { font-size: 12px; font-weight: 600; padding: 7px 14px; border: 1px solid var(--border2); border-radius: 9px; background: none; color: var(--navy); cursor: pointer; font-family: 'DM Sans', sans-serif; flex-shrink: 0; transition: all 0.15s; }
.upsell-page-add:hover { border-color: var(--navy); background: var(--surface2); }

/* ── NEW: Order Status — team panel ── */
.team-member { display: flex; gap: 11px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.team-member:last-child { border-bottom: none; padding-bottom: 0; }
.team-member:first-child { padding-top: 0; }
.tm-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 600; font-family: 'Poppins', serif; flex-shrink: 0; position: relative; }
.tm-avatar.tm-expert { background: linear-gradient(135deg, var(--gold), var(--orange)); color: var(--navy); }
.tm-avatar.tm-backoffice { background: linear-gradient(135deg, var(--blue), var(--navy-light)); }
.tm-avatar.tm-sales { background: linear-gradient(135deg, var(--green), #0f7849); }
.tm-avatar::after { content: ''; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--green); bottom: 0; right: 0; border: 2px solid var(--surface); }
.tm-info { flex: 1; min-width: 0; }
.tm-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.tm-role { font-size: 11px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tm-tag { font-size: 9.5px; font-weight: 600; padding: 1.5px 6px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.4px; }
.tm-tag-expert { background: var(--gold-pale); color: var(--orange); }
.tm-tag-backoffice { background: var(--blue-bg); color: var(--blue); }
.tm-tag-sales { background: var(--green-bg); color: var(--green); }
.tm-actions { display: flex; gap: 5px; margin-top: 8px; }
.tm-btn { font-size: 10.5px; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--ink2); cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.15s; display: inline-flex; align-items: center; gap: 3px; }
.tm-btn:hover { border-color: var(--navy); color: var(--navy); background: var(--surface2); }
.tm-extra { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.tm-extra strong { color: var(--ink2); font-weight: 500; }

/* ── NEW: Live Chatbot (Order Status page only) ── */
.chat-fab { position: fixed; bottom: 24px; right: 24px; z-index: 1100; width: 60px; height: 60px; border-radius: 50%; border: none; background: linear-gradient(135deg, var(--navy-mid), var(--navy)); color: #fff; cursor: pointer; box-shadow: 0 8px 24px rgba(15,34,70,0.32); display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
.chat-fab:hover { transform: scale(1.08); }
.chat-fab-icon { font-size: 26px; }
.chat-fab-pulse { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gold); animation: cfPulse 2s ease-out infinite; pointer-events: none; }
@keyframes cfPulse { 0% { transform: scale(0.9); opacity: 0.8; } 100% { transform: scale(1.45); opacity: 0; } }
.chat-fab-label { position: absolute; right: 70px; top: 50%; transform: translateY(-50%); background: var(--navy); color: #fff; padding: 6px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow); pointer-events: none; opacity: 0.95; }
.chat-fab-label::after { content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-left-color: var(--navy); }
.chat-fab.on { background: var(--red); transform: rotate(90deg); }
.chat-fab.on .chat-fab-pulse, .chat-fab.on .chat-fab-label { display: none; }
.chat-fab.on .chat-fab-icon::before { content: '×'; font-size: 32px; }
.chat-fab.on .chat-fab-icon { font-size: 0; }

.chat-bot { position: fixed; bottom: 100px; right: 24px; z-index: 1100; width: 360px; height: 540px; background: var(--surface); border-radius: 18px; box-shadow: 0 24px 60px rgba(15,34,70,0.32); display: none; flex-direction: column; overflow: hidden; transform: translateY(20px) scale(0.96); opacity: 0; transition: transform 0.22s, opacity 0.22s; border: 1px solid var(--border); }
.chat-bot.on { display: flex; transform: translateY(0) scale(1); opacity: 1; }
.chat-bot-head { display: flex; align-items: center; gap: 11px; padding: 13px 16px; background: linear-gradient(135deg, var(--navy), var(--navy-mid)); color: #fff; }
.cb-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.cb-title { font-size: 14px; font-family: 'Poppins', serif; font-weight: 500; }
.cb-status { font-size: 11px; color: rgba(255,255,255,0.72); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.cb-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 2px rgba(74,222,128,0.25); animation: cbDot 1.6s ease-in-out infinite; }
@keyframes cbDot { 50% { opacity: 0.5; } }
.cb-close { margin-left: auto; background: rgba(255,255,255,0.1); border: none; color: rgba(255,255,255,0.9); width: 26px; height: 26px; border-radius: 50%; font-size: 18px; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; }
.cb-close:hover { background: rgba(255,255,255,0.2); }
.chat-bot-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--cream); }
.bb-row { display: flex; max-width: 88%; flex-direction: column; }
.bb-bot { align-self: flex-start; }
.bb-user { align-self: flex-end; align-items: flex-end; }
.bb-bubble { padding: 9px 13px; border-radius: 14px; font-size: 12.5px; line-height: 1.55; word-wrap: break-word; }
.bb-bot .bb-bubble { background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(15,34,70,0.04); }
.bb-user .bb-bubble { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.bb-bubble strong { color: var(--navy); font-weight: 600; }
.bb-user .bb-bubble strong { color: var(--gold-light); }
.bb-time { font-size: 9.5px; color: var(--muted); margin-top: 3px; padding: 0 6px; }
.typing-indicator { display: flex; gap: 4px; align-items: center; padding: 4px 2px; }
.typing-indicator span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted2); animation: typingBounce 1.2s ease-in-out infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 0.18s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-bot-quick { padding: 9px 12px 4px; display: flex; gap: 6px; flex-wrap: wrap; background: var(--surface); }
.qr-chip { font-size: 11px; padding: 5px 10px; border-radius: 16px; border: 1px solid var(--border2); background: var(--surface2); color: var(--ink2); cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap; transition: all 0.15s; }
.qr-chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.chat-bot-input { display: flex; gap: 8px; padding: 10px 12px 12px; background: var(--surface); border-top: 1px solid var(--border); }
.chat-bot-input input { flex: 1; padding: 9px 14px; border: 1px solid var(--border2); border-radius: 20px; font-size: 12.5px; font-family: 'DM Sans', sans-serif; outline: none; color: var(--ink); background: var(--surface); }
.chat-bot-input input:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(232,168,32,0.16); }
.chat-bot-input button { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--navy); color: #fff; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.15s; }
.chat-bot-input button:hover { background: var(--navy-mid); }

/* ══════════════════════════════════════════════════════════
   PORTAL SWITCHER (demo control at very top of viewport)
   ══════════════════════════════════════════════════════════ */
.portal-switch { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; background: linear-gradient(135deg, #0B1120, #1a3a6b); color: #fff; padding: 6px 14px; display: flex; align-items: center; gap: 12px; font-family: 'DM Sans', sans-serif; font-size: 11.5px; font-weight: 500; box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 8px 24px rgba(0,0,0,0.18); }
.portal-switch-brand { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,0.7); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.portal-switch-brand .ps-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; animation: psDot 1.6s ease-in-out infinite; }
@keyframes psDot { 50% { opacity: 0.4; } }
.portal-switch-tabs { display: flex; gap: 4px; margin-left: auto; }
.portal-switch-btn { padding: 5px 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.6); font-family: 'DM Sans', sans-serif; font-size: 11.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all 0.15s; }
.portal-switch-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.portal-switch-btn.on { color: #0B1120; background: var(--gold-light); border-color: var(--gold); }
.portal-switch-btn.on.sp { background: #5FA8F5; border-color: #1A73E8; color: #fff; }
.portal-switch-btn.on.bo { background: #4DD4A0; border-color: #0DA86A; color: #0B1120; }
.portal-switch-hint { font-size: 10.5px; color: rgba(255,255,255,0.4); font-weight: 400; }
/* body.in-internal .customer-shell, body { padding-top: 32px; } */
body.in-internal { padding-top: 0; }
body.in-internal #internal-portal { padding-top: 32px; box-sizing: border-box; }

/* ══════════════════════════════════════════════════════════
   INTERNAL PORTAL — scoped under #internal-portal
   Adapted from VakilKaro internal-system design (ink + role colors)
   ══════════════════════════════════════════════════════════ */
#internal-portal { display: flex; flex-direction: column; height: 100vh; background: #EFF2F7; color: #0B1120; font-family: 'DM Sans', sans-serif; font-size: 13px; overflow: hidden;
  --ip-ink:#0B1120; --ip-ink2:#1E2D45; --ip-ink3:#2D4060;
  --ip-muted:#5A7090; --ip-border:#DDE4EE; --ip-bg:#EFF2F7; --ip-card:#fff;
  --ip-gold:#E8A020; --ip-gold2:#C47A10; --ip-gold-bg:#FFF8EC;
  --ip-green:#0DA86A; --ip-red:#E03E3E; --ip-blue:#2563EB; --ip-purple:#7C3AED; --ip-orange:#EA6A0A;
  --ip-r:12px; --ip-rs:8px; }
#internal-portal *, #internal-portal *::before, #internal-portal *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
#internal-portal ::-webkit-scrollbar { width: 5px; height: 5px; }
#internal-portal ::-webkit-scrollbar-track { background: transparent; }
#internal-portal ::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }

/* Login */
#internal-portal .ip-login-wrap { display: flex; align-items: center; justify-content: center; flex: 1; background: linear-gradient(135deg, #0B1120 0%, #1a2f4a 50%, #0B1120 100%); position: relative; overflow: hidden; }
#internal-portal .ip-login-bg { position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 50%, rgba(26,115,232,0.12) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(13,168,106,0.1) 0%, transparent 40%), radial-gradient(circle at 60% 80%, rgba(232,160,32,0.08) 0%, transparent 35%); }
#internal-portal .ip-login-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 48px 48px; }
#internal-portal .ip-login-box { background: rgba(255,255,255,0.04); backdrop-filter: blur(24px); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 32px 30px; width: 100%; max-width: 420px; position: relative; z-index: 1; box-shadow: 0 40px 80px rgba(0,0,0,0.4); animation: ipFadeUp 0.3s ease both; }
#internal-portal .ip-login-logo { font-family: 'DM Serif Display', Georgia, serif; font-size: 28px; color: #fff; text-align: center; margin-bottom: 4px; }
#internal-portal .ip-login-logo span { color: var(--ip-gold); }
#internal-portal .ip-login-sub { text-align: center; font-size: 10.5px; color: rgba(255,255,255,0.32); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px; }
#internal-portal .ip-role-pick { display: flex; gap: 8px; margin-bottom: 22px; }
#internal-portal .ip-role-btn { flex: 1; padding: 11px 10px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,0.1); background: transparent; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.42); text-align: center; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
#internal-portal .ip-role-btn.on { color: #fff; border-color: transparent; }
#internal-portal .ip-role-btn.sp.on { background: rgba(26,115,232,0.3); border-color: #1A73E8; }
#internal-portal .ip-role-btn.bo.on { background: rgba(13,168,106,0.3); border-color: #0DA86A; }
#internal-portal .ip-li { margin-bottom: 13px; }
#internal-portal .ip-li-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.36); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 5px; }
#internal-portal .ip-li-input { width: 100%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 9px; padding: 10px 13px; font-size: 13px; color: #fff; font-family: 'DM Sans', sans-serif; outline: none; transition: border-color 0.2s; }
#internal-portal .ip-li-input:focus { border-color: rgba(255,255,255,0.36); }
#internal-portal .ip-li-input::placeholder { color: rgba(255,255,255,0.22); }
#internal-portal .ip-login-btn { width: 100%; padding: 12px; border-radius: 10px; border: none; font-family: 'DM Sans', sans-serif; font-size: 13.5px; font-weight: 800; cursor: pointer; margin-top: 4px; transition: all 0.2s; letter-spacing: 0.02em; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
#internal-portal .ip-login-btn.sp { background: linear-gradient(135deg, #1A73E8, #0D5FD9); color: #fff; }
#internal-portal .ip-login-btn.bo { background: linear-gradient(135deg, #0DA86A, #0A8B57); color: #fff; }
#internal-portal .ip-demo-hint { text-align: center; font-size: 10px; color: rgba(255,255,255,0.24); margin-top: 14px; }
#internal-portal .ip-quick-users { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
#internal-portal .ip-quick-user { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 4px 10px; cursor: pointer; font-family: inherit; font-size: 10px; color: rgba(255,255,255,0.42); }
#internal-portal .ip-quick-user:hover { color: #fff; background: rgba(255,255,255,0.12); }

/* Shell */
#internal-portal .ip-shell { display: flex; height: 100%; overflow: hidden; }
#internal-portal .ip-sidebar { width: 218px; background: var(--ip-ink); display: flex; flex-direction: column; flex-shrink: 0; }
#internal-portal .ip-sb-top { padding: 14px 14px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; gap: 9px; min-height: 56px; }
#internal-portal .ip-sb-logo { font-family: 'DM Serif Display', Georgia, serif; font-size: 17px; color: #fff; }
#internal-portal .ip-sb-logo span { color: var(--ip-gold); }
#internal-portal .ip-sb-role-pill { margin: 10px 12px 6px; border-radius: 8px; padding: 7px 11px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; display: flex; align-items: center; gap: 6px; }
#internal-portal .ip-sb-role-pill.sp { background: rgba(26,115,232,0.18); color: #5FA8F5; }
#internal-portal .ip-sb-role-pill.bo { background: rgba(13,168,106,0.18); color: #4DD4A0; }
#internal-portal .ip-sb-nav { flex: 1; overflow-y: auto; padding: 6px 8px; }
#internal-portal .ip-sb-section { font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.22); letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 6px 4px; }
#internal-portal .ip-sb-item { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 8px; cursor: pointer; color: rgba(255,255,255,0.5); font-size: 12.5px; font-weight: 500; transition: all 0.15s; margin-bottom: 1px; white-space: nowrap; overflow: hidden; position: relative; }
#internal-portal .ip-sb-item:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); }
#internal-portal .ip-sb-item.on { background: rgba(255,255,255,0.1); color: #fff; font-weight: 700; }
#internal-portal .ip-sb-item.on::before { content: ''; position: absolute; left: 0; top: 25%; height: 50%; width: 3px; border-radius: 0 3px 3px 0; background: var(--ip-gold); }
#internal-portal .ip-sb-item i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
#internal-portal .ip-sb-badge { margin-left: auto; background: rgba(232,160,32,0.25); color: var(--ip-gold); border-radius: 10px; padding: 1px 7px; font-size: 10px; font-weight: 800; }
#internal-portal .ip-sb-bottom { padding: 10px; border-top: 1px solid rgba(255,255,255,0.06); }
#internal-portal .ip-sb-user { display: flex; align-items: center; gap: 9px; padding: 6px 4px; }
#internal-portal .ip-sb-user-name { font-size: 12px; font-weight: 700; color: #fff; }
#internal-portal .ip-sb-user-role { font-size: 10px; font-weight: 600; }

/* Main */
#internal-portal .ip-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
#internal-portal .ip-topbar { background: #fff; border-bottom: 1px solid var(--ip-border); padding: 0 18px; display: flex; align-items: center; gap: 12px; height: 56px; flex-shrink: 0; }
#internal-portal .ip-topbar-title { font-size: 17px; font-weight: 800; color: var(--ip-ink); font-family: 'DM Serif Display', Georgia, serif; }
#internal-portal .ip-search-wrap { flex: 1; max-width: 320px; margin-left: auto; position: relative; }
#internal-portal .ip-search-input { width: 100%; background: var(--ip-bg); border: 1px solid var(--ip-border); border-radius: 8px; padding: 7px 12px 7px 32px; font-size: 12px; outline: none; font-family: 'DM Sans', sans-serif; color: var(--ip-ink); }
#internal-portal .ip-search-ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ip-muted); font-size: 12.5px; }
#internal-portal .ip-tb-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--ip-border); background: #fff; cursor: pointer; color: var(--ip-muted); display: flex; align-items: center; justify-content: center; font-size: 14px; position: relative; flex-shrink: 0; }
#internal-portal .ip-ndot { width: 7px; height: 7px; border-radius: 50%; background: var(--ip-red); border: 1.5px solid #fff; position: absolute; top: 5px; right: 5px; }
#internal-portal .ip-content { flex: 1; overflow-y: auto; padding: 16px 18px 24px; }

/* Cards & tables */
#internal-portal .ip-card { background: var(--ip-card); border-radius: var(--ip-r); border: 1px solid var(--ip-border); overflow: hidden; margin-bottom: 12px; }
#internal-portal .ip-card-h { padding: 11px 14px; border-bottom: 1px solid var(--ip-border); font-weight: 700; font-size: 12.5px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ip-ink); }
#internal-portal .ip-card-b { padding: 13px 14px; }
#internal-portal .ip-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px; }
#internal-portal .ip-stat-card { background: #fff; border-radius: var(--ip-r); border: 1px solid var(--ip-border); padding: 14px 16px; }
#internal-portal .ip-stat-val { font-size: 26px; font-weight: 900; color: var(--ip-ink); letter-spacing: -0.5px; line-height: 1; font-family: 'DM Serif Display', Georgia, serif; }
#internal-portal .ip-stat-label { font-size: 11px; color: var(--ip-muted); font-weight: 600; margin-top: 3px; }
#internal-portal .ip-stat-change { font-size: 11px; font-weight: 700; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
#internal-portal .ip-tabs { display: flex; gap: 5px; margin-bottom: 12px; flex-wrap: wrap; }
#internal-portal .ip-tab { padding: 6px 13px; border-radius: 20px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--ip-border); background: #fff; cursor: pointer; color: var(--ip-muted); transition: all 0.15s; }
#internal-portal .ip-tab.on { background: var(--ip-ink); color: #fff; border-color: var(--ip-ink); }
#internal-portal .ip-tbl { width: 100%; border-collapse: collapse; }
#internal-portal .ip-tbl th { padding: 8px 12px; text-align: left; font-size: 10px; font-weight: 700; color: var(--ip-muted); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--ip-border); background: #FAFBFD; }
#internal-portal .ip-tbl td { padding: 10px 12px; border-bottom: 1px solid #F4F7FB; vertical-align: middle; font-size: 12px; }
#internal-portal .ip-tbl tr { cursor: pointer; transition: background 0.15s; }
#internal-portal .ip-tbl tr:hover td { background: #FAFBFD; }
#internal-portal .ip-tbl tr:last-child td { border-bottom: none; }

/* Badges */
#internal-portal .ip-bdg { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 20px; font-size: 10px; font-weight: 700; }
#internal-portal .ip-b-new { background: #DBEAFE; color: #1D4ED8; }
#internal-portal .ip-b-docs { background: #FEF3C7; color: #92400E; }
#internal-portal .ip-b-prog { background: #EDE9FE; color: #5B21B6; }
#internal-portal .ip-b-verify { background: #FCE7F3; color: #9D174D; }
#internal-portal .ip-b-done { background: #D1FAE5; color: #065F46; }
#internal-portal .ip-b-hold { background: #FEE2E2; color: #991B1B; }
#internal-portal .ip-b-wait { background: #EDE9FE; color: #5B21B6; }
#internal-portal .ip-b-appd { background: #D1FAE5; color: #065F46; }
#internal-portal .ip-b-rejd { background: #FEE2E2; color: #991B1B; }

/* Buttons */
#internal-portal .ip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: none; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.15s; }
#internal-portal .ip-btn-ink { background: var(--ip-ink); color: #fff; }
#internal-portal .ip-btn-ink:hover { background: var(--ip-ink2); }
#internal-portal .ip-btn-gold { background: linear-gradient(135deg, #E8A020, #C47A10); color: #fff; }
#internal-portal .ip-btn-out { background: transparent; border: 1.5px solid var(--ip-border); color: var(--ip-ink); }
#internal-portal .ip-btn-out:hover { border-color: var(--ip-ink); }
#internal-portal .ip-btn-green { background: #D1FAE5; color: #065F46; border: 1px solid #86EFAC; }
#internal-portal .ip-btn-blue { background: #DBEAFE; color: #1D4ED8; border: 1px solid #BFDBFE; }
#internal-portal .ip-btn-red { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
#internal-portal .ip-btn-sm { padding: 5px 10px; font-size: 11px; border-radius: 6px; }

/* Panel & Modal */
#internal-portal .ip-panel-overlay { position: fixed; inset: 32px 0 0 0; background: rgba(11,17,32,0.45); z-index: 50; display: flex; align-items: stretch; justify-content: flex-end; animation: ipFadeIn 0.2s ease; }
@keyframes ipFadeIn { from { opacity: 0; } to { opacity: 1; } }
#internal-portal .ip-panel { width: 480px; max-width: 90vw; background: #fff; display: flex; flex-direction: column; animation: ipSlideIn 0.25s cubic-bezier(0.22,1,0.36,1); }
@keyframes ipSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
#internal-portal .ip-panel-head { padding: 14px 18px; border-bottom: 1px solid var(--ip-border); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
#internal-portal .ip-panel-scroll { flex: 1; overflow-y: auto; padding: 16px 18px; }
#internal-portal .ip-panel-footer { padding: 12px 18px; border-top: 1px solid var(--ip-border); display: flex; gap: 8px; flex-shrink: 0; }
#internal-portal .ip-modal-wrap { position: fixed; inset: 32px 0 0 0; background: rgba(11,17,32,0.55); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; animation: ipFadeIn 0.2s ease; }
#internal-portal .ip-modal { background: #fff; border-radius: 16px; width: 100%; max-width: 460px; overflow: hidden; animation: ipPop 0.25s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes ipPop { from { opacity: 0; transform: scale(0.93); } to { opacity: 1; transform: scale(1); } }
#internal-portal .ip-modal-h { padding: 14px 18px; border-bottom: 1px solid var(--ip-border); display: flex; align-items: center; justify-content: space-between; }
#internal-portal .ip-modal-b { padding: 16px 18px; }
#internal-portal .ip-modal-f { padding: 12px 18px; border-top: 1px solid var(--ip-border); display: flex; gap: 8px; justify-content: flex-end; }

/* Form */
#internal-portal .ip-inp { width: 100%; border: 1.5px solid var(--ip-border); border-radius: 8px; padding: 9px 12px; font-size: 13px; outline: none; font-family: 'DM Sans', sans-serif; color: var(--ip-ink); transition: border-color 0.15s; background: #fff; }
#internal-portal .ip-inp:focus { border-color: var(--ip-ink); }
#internal-portal .ip-lbl { font-size: 10px; font-weight: 700; color: var(--ip-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
#internal-portal .ip-frw { margin-bottom: 12px; }
#internal-portal .ip-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Chat */
#internal-portal .ip-msg-wrap { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
#internal-portal .ip-msg { display: flex; flex-direction: column; max-width: 78%; }
#internal-portal .ip-msg.out { align-self: flex-end; align-items: flex-end; }
#internal-portal .ip-msg-bubble { padding: 9px 12px; border-radius: 12px; font-size: 12px; line-height: 1.5; word-break: break-word; }
#internal-portal .ip-msg.in .ip-msg-bubble { background: var(--ip-bg); color: var(--ip-ink); border-bottom-left-radius: 3px; }
#internal-portal .ip-msg.out .ip-msg-bubble { background: var(--ip-ink); color: #fff; border-bottom-right-radius: 3px; }
#internal-portal .ip-msg-meta { font-size: 10px; color: var(--ip-muted); margin-top: 3px; }
#internal-portal .ip-chat-input-row { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--ip-border); background: #fff; flex-shrink: 0; }

/* Coupon */
#internal-portal .ip-coupon-card { background: linear-gradient(135deg, #0B1120 0%, #1e3a5f 100%); border-radius: 14px; padding: 16px; position: relative; overflow: hidden; margin-bottom: 10px; }
#internal-portal .ip-coupon-code { font-family: 'DM Mono', monospace; font-size: 22px; font-weight: 700; color: var(--ip-gold); letter-spacing: 3px; }

/* Misc */
#internal-portal .ip-av { border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; flex-shrink: 0; }
#internal-portal .ip-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; font-size: 10px; font-weight: 700; }
#internal-portal .ip-prog { height: 5px; background: var(--ip-bg); border-radius: 3px; overflow: hidden; }
#internal-portal .ip-prog-f { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
#internal-portal .ip-pay-bar { height: 7px; background: var(--ip-bg); border-radius: 4px; overflow: hidden; margin: 4px 0; }
#internal-portal .ip-pay-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--ip-green), #0A8B57); }
#internal-portal .ip-doc-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #F4F7FB; }
#internal-portal .ip-doc-row:last-child { border-bottom: none; }
#internal-portal .ip-doc-ico { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
#internal-portal .ip-tl-row { display: flex; gap: 12px; align-items: flex-start; }
#internal-portal .ip-tl-col { display: flex; flex-direction: column; align-items: center; width: 20px; flex-shrink: 0; }
#internal-portal .ip-tl-dot { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; }
#internal-portal .ip-tl-done { background: var(--ip-green); color: #fff; }
#internal-portal .ip-tl-act { background: var(--ip-gold); color: #fff; }
#internal-portal .ip-tl-pend { background: var(--ip-border); color: var(--ip-muted); }
#internal-portal .ip-tl-line { width: 2px; height: 18px; background: var(--ip-border); margin: 2px auto; }
#internal-portal .ip-tl-line.done { background: var(--ip-green); }
#internal-portal .ip-empty { text-align: center; padding: 40px; color: var(--ip-muted); font-size: 13px; }
@keyframes ipFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
#internal-portal .ip-anim { animation: ipFadeUp 0.3s ease both; }

/* Live indicator badge for new messages in customer panel */
.live-link-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--green-bg); color: var(--green); font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 12px; margin-left: 7px; }
.live-link-pill .lp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: psDot 1.6s infinite; }

/* ═════════ Compliance booking sheet ═════════ */
.cb-sheet { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 92vw; background: var(--surface); z-index: 1050; transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.22,1,0.36,1); display: flex; flex-direction: column; box-shadow: -16px 0 50px rgba(15,34,70,0.18); }
.cb-sheet.show { transform: translateX(0); }
.cb-head { padding: 18px 22px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, var(--navy), var(--navy-mid)); color: #fff; flex-shrink: 0; }
.cb-head .cb-title { font-family: 'Poppins', serif; font-size: 18px; font-weight: 500; }
.cb-head .cb-meta { font-size: 11.5px; color: rgba(255,255,255,0.7); margin-top: 3px; letter-spacing: 0.3px; }
.cb-close { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.16); border: none; color: #fff; font-size: 17px; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; }
.cb-close:hover { background: rgba(255,255,255,0.28); }
.cb-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cb-body h4 { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; margin: 6px 0 10px; }
.cb-event-card { background: var(--cream); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; border: 1px solid var(--border); }
.cb-event-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.cb-event-due { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.cb-event-due strong { color: var(--orange); }
.cb-plan { background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; transition: all 0.2s; display: flex; align-items: flex-start; gap: 12px; }
.cb-plan:hover { border-color: var(--gold); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(232,168,32,0.12); }
.cb-plan.selected { border-color: var(--gold); background: var(--gold-pale); box-shadow: 0 0 0 3px rgba(232,168,32,0.15); }
.cb-plan-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border2); flex-shrink: 0; margin-top: 2px; position: relative; transition: all 0.2s; }
.cb-plan.selected .cb-plan-radio { border-color: var(--gold); }
.cb-plan.selected .cb-plan-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold); }
.cb-plan-content { flex: 1; min-width: 0; }
.cb-plan-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cb-plan-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.cb-plan-price { font-size: 14px; font-weight: 700; color: var(--navy); white-space: nowrap; margin-left: 8px; flex-shrink: 0; }
.cb-plan-price small { font-size: 10px; color: var(--muted); font-weight: 500; display: block; }
.cb-coins-line { background: var(--gold-pale); border-left: 3px solid var(--gold); border-radius: 8px; padding: 8px 12px; font-size: 11.5px; color: var(--orange); margin: 12px 0; font-weight: 500; }
.cb-foot { padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.cb-book-btn { width: 100%; padding: 13px; background: linear-gradient(135deg, var(--navy-mid), var(--navy)); color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; }
.cb-book-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15,34,70,0.22); }
.cb-book-btn:disabled { background: var(--border2); cursor: not-allowed; transform: none; box-shadow: none; }
.cb-trust { font-size: 10.5px; color: var(--muted); text-align: center; margin-top: 9px; line-height: 1.5; }

/* Calendar cell hover hint for bookable cells */
.cal-cell.has-event { cursor: pointer; }
.cal-cell.has-event:hover { background: var(--gold-pale); }

/* ═════════ Completion + feedback CTA ═════════ */
.complete-card { background: linear-gradient(135deg, #1a8c5a 0%, #0d7849 100%); border-radius: var(--r-lg); padding: 22px 26px; color: #fff; position: relative; overflow: hidden; box-shadow: 0 12px 30px rgba(26,140,90,0.25); margin-top: 18px; }
.complete-card::before { content: ''; position: absolute; top: -50px; right: -40px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 60%); }
.complete-card::after { content: ''; position: absolute; bottom: -60px; left: -20px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(232,168,32,0.30) 0%, transparent 60%); }
.complete-inner { position: relative; z-index: 1; }
.complete-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.7px; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.complete-head-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,0.6); animation: completePulse 1.8s ease-out infinite; }
@keyframes completePulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.55); } 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.complete-title { font-family: 'Poppins', serif; font-size: 22px; font-weight: 500; line-height: 1.2; margin-bottom: 8px; }
.complete-sub { font-size: 13px; color: rgba(255,255,255,0.85); margin-bottom: 18px; max-width: 460px; line-height: 1.55; }
.complete-fb-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.complete-fb-btn { background: #fff; color: var(--navy); padding: 12px 22px; border: none; border-radius: 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; box-shadow: 0 6px 16px rgba(0,0,0,0.15); }
.complete-fb-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,0,0,0.20); }
.complete-fb-reward { font-size: 11.5px; color: #fef3d7; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.complete-fb-reward strong { color: #fff; }

/* Inline feedback step in tracker */
.track-step .feedback-inline-cta { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; background: var(--gold-pale); border: 1px solid rgba(232,168,32,0.4); color: var(--orange); padding: 5px 12px; border-radius: 14px; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.track-step .feedback-inline-cta:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* External link icon nudge */
.ext-link::after { content: ' ↗'; font-size: 0.85em; opacity: 0.75; }

@media (max-width: 920px) {
  .stats-row, .service-cats, .expert-grid { grid-template-columns: 1fr 1fr; }
  .section-row, .wallet-grid, .support-grid, .profile-grid, .cal-layout, .chat-layout, .pay-method-row, .checkout-grid { grid-template-columns: 1fr; }
  .chat-layout { height: auto; }
  .summary-card-wrap { position: static; }
  .chat-bot { width: calc(100vw - 32px); right: 16px; bottom: 88px; height: 460px; }
  .chat-fab { bottom: 16px; right: 16px; width: 54px; height: 54px; }
  .chat-fab-label { display: none; }
  #internal-portal .ip-stat-grid { grid-template-columns: 1fr 1fr; }
  #internal-portal .ip-sidebar { width: 60px; }
  #internal-portal .ip-sb-logo, #internal-portal .ip-sb-role-pill, #internal-portal .ip-sb-item span, #internal-portal .ip-sb-badge, #internal-portal .ip-sb-user-info { display: none; }
  #internal-portal .ip-sb-item { justify-content: center; }
  #internal-portal .ip-panel { width: 100vw; }
}

/* ════════════════════════════════════════════════════════════
   BOOTSTRAP RESPONSIVE SHIM
   ── Added during multi-file refactor (Round 1).
   ── Does NOT change desktop appearance. ONLY makes the
   ── existing .sidebar collapse to an off-canvas drawer on
   ── tablets/phones, with a hamburger toggle in the topbar.
   ── Original design preserved exactly above this block.
   ════════════════════════════════════════════════════════════ */

/* Mobile hamburger button — hidden on desktop, shown ≤ 991px */
.vk-mobile-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  border: none;
  align-items: center; justify-content: center;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Backdrop behind the off-canvas sidebar on mobile */
.vk-sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15, 34, 70, 0.5);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  z-index: 1029;
  opacity: 0;
  transition: opacity 0.3s;
}
.vk-sidebar-backdrop.show {
  display: block;
  opacity: 1;
}

@media (max-width: 991.98px) {
  .vk-mobile-toggle { display: inline-flex; }

  .sidebar {
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    z-index: 1030;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 16px 0 40px rgba(15, 34, 70, 0.20);
  }
  .sidebar.show { transform: translateX(0); }

  /* Main content takes full width when sidebar is hidden */
  .main-content,
  .customer-shell > .main-content,
  body.vk-body > .customer-shell {
    margin-left: 0 !important;
  }
}
/* ════════════════════════════════════════════════════════════
   TOPBAR PROFILE MENU
   ── Avatar + hover dropdown with My Profile / Wallet / Help / Logout
   ════════════════════════════════════════════════════════════ */
.vk-profile-menu {
  position: relative;
  display: inline-block;
}
.vk-profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(15, 34, 70, 0.18);
  user-select: none;
  font-family: 'DM Sans', sans-serif;
}
.vk-profile-avatar:hover,
.vk-profile-avatar:focus {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 34, 70, 0.30);
  outline: none;
}
 
/* Dropdown */
.vk-profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(15, 34, 70, 0.16), 0 0 0 1px rgba(15, 34, 70, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1050;
  overflow: hidden;
  padding: 6px;
}
.vk-profile-menu:hover .vk-profile-dropdown,
.vk-profile-menu:focus-within .vk-profile-dropdown,
.vk-profile-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Invisible bridge so cursor can move from avatar to dropdown without losing hover */
.vk-profile-menu::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 12px;
  background: transparent;
}
 
.vk-profile-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.vk-profile-head-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}
.vk-profile-head-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.vk-profile-head-mail {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
 
.vk-profile-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink2);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.vk-profile-item i {
  width: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.vk-profile-item:hover {
  background: var(--gold-pale2);
  color: var(--navy);
}
.vk-profile-item:hover i {
  color: var(--navy);
}
 
.vk-profile-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
 
.vk-profile-logout {
  color: var(--red);
}
.vk-profile-logout i {
  color: var(--red) !important;
}
.vk-profile-logout:hover {
  background: var(--red-bg);
  color: var(--red);
}
.vk-profile-logout:hover i {
  color: var(--red) !important;
}
 
/* On mobile, position dropdown so it doesn't go off-screen */
@media (max-width: 575.98px) {
  .vk-profile-dropdown {
    right: -8px;
    min-width: 220px;
  }
}
.recommended-outer {
  display:grid; grid-template-columns: repeat(4,1fr); gap:12px; padding:16px 18px;
}
/* =====================================================
   RESPONSIVE CSS
===================================================== */

/* 1400px */
@media (max-width:1400px){

  .checkout-grid{
    grid-template-columns:1fr 320px;
  }

  .expert-grid{
    grid-template-columns:repeat(2,1fr);
  }

}

/* 1200px */
@media (max-width:1200px){

  .stats-row{
    grid-template-columns:repeat(2,1fr);
  }

  .service-cats{
    grid-template-columns:repeat(2,1fr);
  }

  .section-row,
  .wallet-grid,
  .support-grid,
  .cal-layout,
  .checkout-grid,
  .profile-grid{
    grid-template-columns:1fr;
  }

  .summary-card-wrap{
    position:relative;
    top:auto;
  }

  .expert-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .chat-layout{
    grid-template-columns:250px 1fr;
  }

}

/* TABLET */
@media (max-width:992px){

  body{
    overflow-x:hidden;
  }

  .sidebar{
    position:fixed;
    left:-260px;
    top:0;
    bottom:0;
    z-index:9999;
    transition:.3s ease;
  }

  .sidebar.show{
    left:0;
  }

  .main{
    width:100%;
  }

  .mob-menu{
    display:flex;
    width:40px;
    height:40px;
    border-radius:8px;
    align-items:center;
    justify-content:center;
    background:#fff;
    border:1px solid var(--border);
    cursor:pointer;
  }

  .welcome-banner,
  .welcome-rewards-hero,
  .wallet-hero{
    flex-direction:column;
    text-align:center;
  }

  .wallet-divider{
    width:100%;
    height:1px;
  }

  .wr-right{
    min-width:100%;
  }

  .expert-grid{
    grid-template-columns:1fr;
  }

  .pay-method-row{
    grid-template-columns:1fr;
  }

  .chat-layout{
    grid-template-columns:1fr;
    height:auto;
  }

  .chat-list{
    max-height:250px;
    border-right:none;
    border-bottom:1px solid var(--border);
  }

}

/* MOBILE */
@media (max-width:768px){

  .content{
    padding:15px;
  }

  .topbar{
    padding:10px 15px;
    height:auto;
    flex-wrap:wrap;
  }

  .topbar-title{
    font-size:16px;
  }

  .topbar-right{
    width:100%;
    justify-content:flex-end;
    margin-left:0;
  }

  .stats-row,
  .service-cats,
  .wallet-grid,
  .support-grid{
    grid-template-columns:1fr;
  }

  .profile-grid{
    grid-template-columns:1fr;
  }

  .form-grid{
    grid-template-columns:1fr;
  }

  .form-field.full{
    grid-column:auto;
  }

  .search-box{
    width:100%;
    margin-left:0;
  }

  .search-box input{
    width:100%;
  }

  .orders-toolbar{
    flex-direction:column;
    align-items:stretch;
  }

  .notif-panel{
    width:95%;
    right:2.5%;
  }

  .drawer{
    width:100%;
    max-width:100%;
  }

  .modal{
    width:95%;
  }

  .order-table-wrap{
    overflow-x:auto;
  }

  .order-table{
    min-width:900px;
  }

  .checkout-grid{
    grid-template-columns:1fr;
  }

  .service-list{
    overflow-x:auto;
  }

  .svc-list-item{
    flex-wrap:wrap;
  }

  .wallet-coin-big{
    font-size:36px;
  }

  .wb-name{
    font-size:22px;
  }

  .wr-heading{
    font-size:20px;
  }

}

/* SMALL MOBILE */
@media (max-width:576px){

  .topbar-book-btn{
    width:100%;
  }

  .welcome-banner,
  .wallet-hero,
  .welcome-rewards-hero{
    padding:18px;
  }

  .card-head,
  .card-body{
    padding:12px;
  }
.recommended-outer{
  display:unset;
}
  .tracker-card{
    padding:15px;
  }

  .chat-bubble{
    max-width:90%;
  }

  .profile-card-main{
    padding:18px;
  }

  .rebook-card{
    flex-direction:column;
    align-items:flex-start;
  }

  .rbc-price{
    margin-left:0;
    text-align:left;
  }

  .rbc-btn{
    margin-left:0;
    width:100%;
  }

  .cal-grid{
    gap:2px;
  }

  .cal-cell{
    font-size:10px;
  }

  .wallet-redeem-btn,
  .checkout-btn,
  .pay-now-btn,
  .consult-book-btn{
    width:100%;
  }

}

/* EXTRA SMALL */
@media (max-width:400px){

  .content{
    padding:10px;
  }

  .wb-name{
    font-size:18px;
  }

  .wallet-coin-big{
    font-size:30px;
  }

  .profile-avatar-lg{
    width:60px;
    height:60px;
    font-size:22px;
  }

  .chat-input-row{
    padding:10px;
  }

}