/* ─────────────────────────────────────────────────────
   COLLEKT SHARED PLATFORM CSS
   Extends style.css for app pages
───────────────────────────────────────────────────── */

/* ── DARK MODE ────────────────────────────────────── */
html.dark body { background: #071210; color: #e2efed; }
html.dark .card, html.dark .form-card { background: #0f2220; border-color: rgba(255,255,255,.09); }
html.dark .app-sidebar { background: #071210; border-color: rgba(255,255,255,.07); }
html.dark .sidebar-nav-item { color: rgba(255,255,255,.65); }
html.dark .sidebar-nav-item:hover, html.dark .sidebar-nav-item.active { background: rgba(255,255,255,.06); color: #fff; }
html.dark .app-topbar { background: #0f2220; border-color: rgba(255,255,255,.07); }
html.dark .topbar-search { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: #fff; }
html.dark .topbar-search::placeholder { color: rgba(255,255,255,.35); }
html.dark .stat-card { background: #0f2220; border-color: rgba(255,255,255,.09); }
html.dark .tx-row { border-color: rgba(255,255,255,.06); }
html.dark .tx-row:hover { background: rgba(255,255,255,.04); }
html.dark .table-head th { background: #132820; border-color: rgba(255,255,255,.06); color: rgba(255,255,255,.5); }
html.dark .msg-sidebar { background: #0f2220; border-color: rgba(255,255,255,.07); }
html.dark .msg-item { border-color: rgba(255,255,255,.06); }
html.dark .msg-item:hover { background: rgba(255,255,255,.04); }
html.dark .msg-item.active { background: rgba(19,117,111,.2); border-left-color: var(--teal-mid); }
html.dark .chat-area { background: #071210; }
html.dark .bubble.received { background: #0f2220; border-color: rgba(255,255,255,.08); color: #e2efed; }
html.dark .chat-input-bar { background: #0f2220; border-color: rgba(255,255,255,.07); }
html.dark .chat-input-bar input { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: #fff; }
html.dark .gig-card { background: #0f2220; border-color: rgba(255,255,255,.09); }
html.dark .form-input { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: #e2efed; }
html.dark .form-input:focus { background: rgba(255,255,255,.07); border-color: var(--teal-mid); }
html.dark .form-label { color: rgba(255,255,255,.7); }
html.dark .modal-card { background: #0f2220; border-color: rgba(255,255,255,.1); }
html.dark .notif-panel, html.dark .profile-menu { background: #0f2220; border-color: rgba(255,255,255,.1); }
html.dark .notif-item:hover, html.dark .profile-menu-item:hover { background: rgba(255,255,255,.05); }
html.dark .section-heading { color: #e2efed; }
html.dark .pill-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
html.dark .pill-btn.active { background: var(--teal); border-color: var(--teal); color: #fff; }
html.dark .project-row { background: #0f2220; border-color: rgba(255,255,255,.07); }
html.dark .content-card, html.dark .upload-modal-card, html.dark .settings-card { background: #0f2220; border-color: rgba(255,255,255,.09); color: #e2efed; }
html.dark .card-header, html.dark .notif-head, html.dark .profile-menu-header { border-color: rgba(255,255,255,.09); }
html.dark .pm-name, html.dark .notif-head h4, html.dark .card-header h3 { color: #e2efed; }
html.dark .notif-item-text, html.dark .profile-menu-item { color: rgba(255,255,255,.8); }
html.dark .notif-item-text strong { color: #fff; }
html.dark .form-select, html.dark select.form-input, html.dark textarea.form-input { background-color: #0f2220; color: #e2efed; border-color: rgba(255,255,255,.12); }

/* ── TRANSPARENT SHIELD VERIFICATION BADGE ────────── */
.shield-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 6px;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.shield-badge:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px rgba(22, 163, 74, 0.4));
}
.shield-badge svg path {
  stroke: #16a34a;
  transition: stroke 0.2s;
}
.shield-badge svg text {
  fill: #16a34a;
  font-weight: 900;
  transition: fill 0.2s;
}
html.dark .shield-badge svg path {
  stroke: #22c55e;
}
html.dark .shield-badge svg text {
  fill: #22c55e;
}


/* ── APP LAYOUT ───────────────────────────────────── */
.app-page { display: flex; min-height: 100vh; padding-top: 0; }

.app-sidebar {
  width: 240px;
  background: var(--forest);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  border-right: 1px solid rgba(255,255,255,.08);
  z-index: 50;
  transition: transform .3s;
}
.sidebar-brand {
  padding: 0 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 4px;
}
.sidebar-logo-img {
  width: 140px; height: auto;
  object-fit: contain;
  /* PNG has transparent bg - no blend mode needed */
  filter: drop-shadow(0 1px 6px rgba(212,146,11,.2));
  border-radius: 0;
  display: block;
  margin: 0 auto;
}
.sidebar-logo-fallback {
  display: none;
}
.nav-logo-img {
  height: 38px; width: auto;
  object-fit: contain;
  /* PNG transparent bg - no blend mode */
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.3));
}

.sidebar-user-info {
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 12px;
}
.sidebar-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--amber);
  color: #fff; font-weight: 900; font-size: 18px;
  display: grid; place-items: center; flex-shrink: 0;
}
.sidebar-user-info .u-name { font-weight: 700; font-size: 14px; color: #fff; }
.sidebar-user-info .u-role { font-size: 12px; color: rgba(255,255,255,.5); }

.sidebar-nav { padding: 0 12px; flex: 1; }
.sidebar-section-label {
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  color: rgba(255,255,255,.35); text-transform: uppercase;
  padding: 16px 8px 8px;
}
.sidebar-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r);
  color: rgba(255,255,255,.65); font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all .18s; margin-bottom: 2px;
  border-left: 3px solid transparent;
}
.sidebar-nav-item .nav-icon { font-size: 18px; width: 22px; text-align: center; }
.sidebar-nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-nav-item.active { background: rgba(212,146,11,.15); color: var(--amber); border-left-color: var(--amber); }
.sidebar-badge { margin-left: auto; background: var(--amber); color: #fff; font-size: 10px; font-weight: 900; padding: 2px 7px; border-radius: 99px; }

.sidebar-bottom { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); margin-top: auto; }
.sidebar-logout { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: rgba(255,255,255,.45); font-size: 13px; font-weight: 600; cursor: pointer; border-radius: var(--r); }
.sidebar-logout:hover { background: rgba(192,57,43,.15); color: #e74c3c; }

.app-main { flex: 1; margin-left: 240px; min-height: 100%; }

.app-topbar {
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  position: sticky; top: 0; z-index: 40;
  gap: 16px;
}
.topbar-search {
  flex: 1; max-width: 480px;
  padding: 10px 16px 10px 40px;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  font-size: 14px; font-weight: 500;
  outline: none; transition: border-color .2s;
  background: var(--paper);
}
.topbar-search:focus { border-color: var(--teal-mid); background: var(--white); }
.topbar-search-wrap { position: relative; flex: 1; max-width: 480px; }
.topbar-search-wrap .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

/* Notification Bell */
.notif-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; background: var(--paper); border: 1.5px solid var(--line); font-size: 18px; transition: all .18s; }
.notif-btn:hover { background: var(--teal-lt); border-color: var(--teal); }
.notif-dot { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; background: var(--red); border-radius: 50%; font-size: 9px; font-weight: 900; color: #fff; display: grid; place-items: center; border: 2px solid #fff; }

.notif-panel {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: 340px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  overflow: hidden;
  display: none;
  animation: slideDown .2s ease;
}
.notif-panel.open { display: block; }
.notif-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.notif-head h4 { font-size: 15px; font-weight: 800; }
.notif-item { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.notif-item:hover { background: var(--paper); }
.notif-item:last-child { border-bottom: none; }
.notif-dot-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-mid); margin-top: 6px; flex-shrink: 0; }
.notif-item-text { font-size: 13px; color: var(--slate); line-height: 1.5; }
.notif-item-text strong { color: var(--ink); }
.notif-item-time { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Profile Menu */
.profile-trigger { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px; border-radius: 99px; transition: background .15s; }
.profile-trigger:hover { background: var(--paper); }
.topbar-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--amber); color: #fff; font-weight: 900; font-size: 15px; display: grid; place-items: center; }
.profile-caret { font-size: 10px; color: var(--muted); }

.profile-menu {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: 220px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  overflow: hidden;
  display: none;
  animation: slideDown .2s ease;
}
.profile-menu.open { display: block; }
.profile-menu-header { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.profile-menu-header .pm-name { font-weight: 800; font-size: 14px; }
.profile-menu-header .pm-email { font-size: 12px; color: var(--muted); }
.profile-menu-item { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: var(--slate); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s; }
.profile-menu-item:hover { background: var(--paper); color: var(--teal); }
.profile-menu-item.danger { color: var(--red); }
.profile-menu-item.danger:hover { background: #fdf2f2; }

/* Theme toggle */
.theme-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line); font-size: 18px; cursor: pointer; transition: all .18s; }
.theme-btn:hover { background: var(--amber-lt); border-color: var(--amber); }

/* ── FORM COMPONENTS ──────────────────────────────── */
.form-card { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--slate); margin-bottom: 7px; }
.form-input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r); font-size: 14px;
  outline: none; transition: border-color .2s, box-shadow .2s;
  background: var(--paper); color: var(--ink);
}
.form-input:focus { border-color: var(--teal-mid); box-shadow: 0 0 0 4px rgba(26,158,150,.12); background: var(--white); }
.form-input-wrap { position: relative; }
.form-input-wrap .form-input { padding-right: 44px; }
.form-input-wrap .input-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--muted); font-size: 18px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B8280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-error { font-size: 12px; color: var(--red); margin-top: 5px; display: none; }
.form-error.show { display: block; }

/* ── STAT CARDS ───────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
  border-top: 3px solid var(--teal);
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.stat-card:nth-child(2) { border-top-color: var(--amber); }
.stat-card:nth-child(3) { border-top-color: var(--teal-mid); }
.stat-card:nth-child(4) { border-top-color: var(--forest); }
.stat-icon { font-size: 28px; margin-bottom: 12px; }
.stat-value { font-size: 28px; font-weight: 900; color: var(--ink); margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat-change { font-size: 12px; font-weight: 700; margin-top: 8px; }
.stat-change.up { color: #16a34a; }
.stat-change.down { color: var(--red); }

/* ── GIG CARDS (Marketplace) ─────────────────────── */
.gig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gig-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.gig-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.gig-thumb { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 40px; position: relative; }
.gig-rating { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.5); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.gig-save { position: absolute; top: 10px; left: 10px; width: 28px; height: 28px; background: rgba(255,255,255,.9); border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 14px; transition: transform .15s; }
.gig-save:hover { transform: scale(1.1); }
.gig-body { padding: 14px 16px; flex: 1; }
.gig-pro-info { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.gig-pro-avatar { width: 28px; height: 28px; border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff; display: grid; place-items: center; }
.gig-pro-name { font-size: 12px; font-weight: 700; color: var(--slate); }
.gig-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.4; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gig-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.gig-tag { font-size: 10px; padding: 2px 7px; border-radius: 4px; background: var(--teal-lt); color: var(--teal); font-weight: 700; }
.gig-footer { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.gig-price { font-size: 13px; color: var(--muted); }
.gig-price strong { font-size: 16px; font-weight: 900; color: var(--ink); }

/* ── TABLES ───────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.table-head th { padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--paper); border-bottom: 2px solid var(--line); }
.tx-row td { padding: 14px 16px; font-size: 13px; color: var(--slate); border-bottom: 1px solid var(--line); font-weight: 600; vertical-align: middle; }
.tx-row:hover { background: var(--paper); }
.tx-row:last-child td { border-bottom: none; }
.status-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 800; }
.pill-success { background: #dcfce7; color: #16a34a; }
.pill-pending { background: var(--amber-lt); color: var(--amber); }
.pill-processing { background: #dbeafe; color: #1d4ed8; }
.pill-credit { color: #16a34a; font-weight: 800; }
.pill-debit { color: var(--red); font-weight: 800; }

/* ── SECTION HEADING ──────────────────────────────── */
.section-heading { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.section-subheading { font-size: 13px; color: var(--muted); margin-top: -10px; margin-bottom: 16px; }

/* ── MODAL ────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; place-items: center; }
.modal-overlay.open { display: grid; }
.modal-card { background: var(--white); border-radius: var(--r-lg); padding: 36px; width: min(480px, calc(100vw - 40px)); box-shadow: var(--sh-lg); animation: scaleIn .2s ease; }
.modal-title { font-size: 20px; font-weight: 800; margin-bottom: 24px; }
.modal-close { position: absolute; top: 16px; right: 16px; font-size: 20px; cursor: pointer; color: var(--muted); background: var(--paper); border: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.modal-close:hover { background: var(--line); }

/* ── CATEGORY PILLS ───────────────────────────────── */
.cats-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.cats-scroll::-webkit-scrollbar { display: none; }
.pill-btn { padding: 8px 18px; border: 1.5px solid var(--line); border-radius: 99px; font-size: 13px; font-weight: 700; color: var(--slate); background: var(--white); cursor: pointer; white-space: nowrap; transition: all .18s; }
.pill-btn:hover { border-color: var(--teal); color: var(--teal); }
.pill-btn.active { background: var(--forest); border-color: var(--forest); color: #fff; }

/* ── CHAT ─────────────────────────────────────────── */
.bubble { padding: 10px 16px; border-radius: 18px; font-size: 14px; line-height: 1.5; word-break: normal; overflow-wrap: break-word; max-width: 100%; display: inline-block; white-space: pre-wrap; }
.bubble.received { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.sent { background: var(--teal); color: #fff; border-bottom-right-radius: 4px; }

/* ── PROJECT ROW ──────────────────────────────────── */
.project-row { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; display: flex; align-items: center; gap: 16px; margin-bottom: 10px; transition: box-shadow .18s; }
.project-row:hover { box-shadow: var(--sh-sm); }

/* ── WALLET CARDS ─────────────────────────────────── */
.wallet-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.wallet-card { border-radius: var(--r-lg); padding: 28px; color: #fff; position: relative; overflow: hidden; }
.wallet-card::before { content: ''; position: absolute; right: -20px; top: -20px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.1); }
.wallet-card::after { content: ''; position: absolute; right: 20px; bottom: -30px; width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.07); }
.wcard-label { font-size: 13px; font-weight: 700; opacity: .8; margin-bottom: 10px; }
.wcard-amount { font-size: 30px; font-weight: 900; position: relative; z-index: 1; }
.wcard-sub { font-size: 12px; opacity: .7; margin-top: 8px; }

/* ── MISC ─────────────────────────────────────────── */
.page-inner { padding: 32px; max-width: 1400px; }
.content-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.card-header h3 { font-size: 16px; font-weight: 800; }
.card-body { padding: 24px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .e-icon { font-size: 48px; margin-bottom: 12px; }
.profile-strength-bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 12px 0; }
.profile-strength-fill { height: 100%; background: linear-gradient(to right, var(--teal), var(--teal-mid)); border-radius: 4px; transition: width .6s ease; }
.check-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line); }
.check-item:last-child { border-bottom: none; }
.check-item .ci-icon { font-size: 16px; }
.check-item.done { color: var(--teal); }
.check-item.todo { color: var(--muted); }

/* ── ANIMATIONS ───────────────────────────────────── */
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn .4s ease; }

/* ── RESPONSIVE ───────────────────────────────────── */
#sidebarToggle { display: none; }
@media (max-width: 1100px) { .gig-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  #sidebarToggle { display: grid; }
  .app-sidebar { transform: translateX(-100%); }
  .app-sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .wallet-cards { grid-template-columns: 1fr; }
  .gig-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .stats-row { grid-template-columns: 1fr; }
  .gig-grid { grid-template-columns: 1fr; }
  .page-inner { padding: 20px 16px; }
  .app-topbar { padding: 0 16px; }
  .form-card { padding: 24px 20px; }
}

/* ── SHUTTLERS-STYLE WALLET SYSTEM ─────────────────── */
.wallet-tab-strip {
  display: flex; gap: 24px; border-bottom: 1.5px solid var(--line);
  margin-bottom: 28px; padding-bottom: 0;
}
html.dark .wallet-tab-strip { border-color: rgba(255,255,255,.09); }
.wallet-tab-btn {
  background: none; border: none; padding: 12px 4px 14px;
  font-size: 14px; font-weight: 700; color: var(--muted);
  cursor: pointer; position: relative; transition: color .2s;
  font-family: inherit;
}
.wallet-tab-btn:hover { color: var(--ink); }
html.dark .wallet-tab-btn:hover { color: #fff; }
.wallet-tab-btn.active {
  color: var(--ink); font-weight: 800;
}
html.dark .wallet-tab-btn.active { color: #fff; }
.wallet-tab-btn.active::after {
  content: ''; position: absolute; bottom: -1.5px; left: 0; right: 0;
  height: 3px; background: #10b981; border-radius: 99px;
}

.shuttlers-wallet-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px;
  align-items: stretch; margin-bottom: 36px;
}
@media (max-width: 960px) { .shuttlers-wallet-grid { grid-template-columns: 1fr; } }

.shuttlers-balance-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,.02); position: relative;
}
html.dark .shuttlers-balance-card { background: #0f2220; border-color: rgba(255,255,255,.09); }

.sbal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.sbal-title-wrap { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.sbal-eye-btn {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 16px; display: grid; place-items: center; padding: 2px;
  transition: color .15s;
}
.sbal-eye-btn:hover { color: var(--ink); }
html.dark .sbal-eye-btn:hover { color: #fff; }

.sbal-badge {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 700;
  color: var(--ink); display: flex; align-items: center; gap: 4px;
}
html.dark .sbal-badge { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: #e2efed; }

.sbal-amount {
  font-size: 32px; font-weight: 900; color: var(--ink);
  letter-spacing: -.02em; margin-bottom: 24px; min-height: 44px;
  display: flex; align-items: center;
}
html.dark .sbal-amount { color: #fff; }

.btn-black-fund {
  background: #0d1716; color: #fff; border: none;
  padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 800;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s; width: fit-content; font-family: inherit;
}
.btn-black-fund:hover { background: var(--teal); transform: translateY(-2px); box-shadow: var(--sh-md); }

.shuttlers-bank-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
}
html.dark .shuttlers-bank-card { background: #0f2220; border-color: rgba(255,255,255,.09); }

.sbank-field { margin-bottom: 16px; }
.sbank-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; text-transform: capitalize; }
.sbank-val { font-size: 16px; font-weight: 900; color: var(--ink); display: flex; align-items: center; gap: 8px; }
html.dark .sbank-val { color: #fff; }
.sbank-copy-btn {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 14px; display: inline-grid; place-items: center; padding: 4px;
  transition: color .15s; border-radius: 4px;
}
.sbank-copy-btn:hover { color: var(--teal); background: var(--paper); }
html.dark .sbank-copy-btn:hover { background: rgba(255,255,255,.08); }

.sbank-notice {
  font-size: 12px; color: var(--muted); line-height: 1.6;
  margin-top: 12px; font-weight: 500;
}

.wallet-history-section {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
}
html.dark .wallet-history-section { background: #0f2220; border-color: rgba(255,255,255,.09); }

.whistory-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.whistory-head h3 { font-size: 18px; font-weight: 900; color: var(--ink); }
html.dark .whistory-head h3 { color: #fff; }

.whistory-filters {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-bottom: 20px;
}
.whistory-filter-input {
  padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 13px; font-weight: 600; background: var(--paper); color: var(--ink);
  outline: none; font-family: inherit;
}
html.dark .whistory-filter-input { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: #fff; }

.tx-icon-btn {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  flex-shrink: 0; font-size: 14px; font-weight: 900;
}
.tx-icon-btn.debit { background: #fee2e2; color: #dc2626; }
.tx-icon-btn.credit { background: #dcfce7; color: #16a34a; }

.tx-type-tag { font-size: 12px; font-weight: 700; text-transform: lowercase; }
.tx-type-tag.debit { color: #dc2626; }
.tx-type-tag.credit { color: #16a34a; }

.tx-status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 800;
}
.tx-status-badge.success { background: #dcfce7; color: #16a34a; }
.tx-status-badge.pending { background: #fef9c3; color: #ca8a04; }

/* ═════════════════════════════════════════════════════
   MOBILE & TABLET RESPONSIVE ENGINE (320px - 1024px)
   ═════════════════════════════════════════════════════ */
@media (max-width: 992px) {
  .app-sidebar {
    width: 240px;
  }
  .app-main {
    margin-left: 240px;
  }
  .app-topbar {
    left: 240px;
    width: calc(100% - 240px);
  }
}

@media (max-width: 768px) {
  .app-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
  }
  .app-sidebar.open {
    transform: translateX(0);
  }
  .app-main {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .app-topbar {
    left: 0 !important;
    width: 100% !important;
    padding: 0 16px;
  }

  /* Force 1 column layouts on mobile */
  div[style*="grid-template-columns: 1fr 320px"],
  div[style*="grid-template-columns: 1fr 360px"],
  div[style*="grid-template-columns: 320px 1fr"],
  div[style*="grid-template-columns: repeat(4, 1fr)"],
  div[style*="grid-template-columns: repeat(4,1fr)"],
  div[style*="grid-template-columns: repeat(3, 1fr)"],
  div[style*="grid-template-columns: repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  .detail-grid {
    grid-template-columns: 1fr !important;
  }

  /* Wallet Cards Mobile Layout */
  .shuttlers-bank-card {
    margin-top: 16px;
  }

  /* Mobile Modals */
  .modal-card {
    width: min(540px, calc(100vw - 24px)) !important;
    padding: 20px !important;
    margin: 12px !important;
  }
}

@media (max-width: 480px) {
  .topbar-title {
    font-size: 15px !important;
  }
  .btn {
    padding: 8px 14px !important;
    font-size: 12px !important;
  }
  .card-title {
    font-size: 15px !important;
  }
}

/* ═════════════════════════════════════════════════════════
   COLLEKT AI COPILOT SUITE STYLES
   ═════════════════════════════════════════════════════════ */
.collekt-ai-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  background: linear-gradient(135deg, #0e3b35 0%, #13756f 100%);
  color: #fff;
  border: 1.5px solid rgba(34,197,94,0.4);
  border-radius: 99px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(14,59,53,0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Manrope', sans-serif;
}
.collekt-ai-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 40px rgba(14,59,53,0.6);
  border-color: #22c55e;
}

.collekt-ai-chat-window {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 9999;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Manrope', sans-serif;
  animation: aiSlideUp .25s ease-out;
}
@keyframes aiSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-chat-header {
  background: linear-gradient(135deg, #040e0d 0%, #09201d 50%, #0e3b35 100%);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ai-chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--paper);
}
.ai-msg {
  max-width: 85%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 600;
}
.ai-msg.bot {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.ai-msg.user {
  background: linear-gradient(135deg, #0e3b35, #13756f);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.ai-chip-prompt {
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--teal);
  cursor: pointer;
  transition: all .15s;
}
.ai-chip-prompt:hover {
  background: var(--teal-lt);
  border-color: var(--teal);
}

/* ═════════════════════════════════════════════════════════
   PREMIUM UI/UX ENHANCEMENTS & DESIGN TOKENS
   ═════════════════════════════════════════════════════════ */

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(14,59,53,0.04);
}
::-webkit-scrollbar-thumb {
  background: rgba(19,117,111,0.25);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(19,117,111,0.5);
}

/* Glassmorphism & Elevated Card Styles */
.card-glass {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(19, 117, 111, 0.18) !important;
  box-shadow: 0 12px 36px rgba(14, 59, 53, 0.06) !important;
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.card-glass:hover {
  transform: translateY(-2px);
  border-color: rgba(19, 117, 111, 0.38) !important;
  box-shadow: 0 16px 44px rgba(14, 59, 53, 0.12) !important;
}

html.dark .card-glass {
  background: rgba(15, 34, 32, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35) !important;
}

/* Button Pulse & Hover Lifts */
.btn {
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-primary:hover {
  transform: translateY(-1.5px) !important;
  box-shadow: 0 8px 24px rgba(14, 59, 53, 0.35) !important;
}
.btn-primary:active {
  transform: translateY(0) scale(0.98) !important;
}

/* Verified Shield Glow */
.badge-verified-glow {
  background: rgba(22, 163, 74, 0.12) !important;
  color: #15803d !important;
  border: 1px solid rgba(22, 163, 74, 0.3) !important;
  box-shadow: 0 0 12px rgba(22, 163, 74, 0.15) !important;
}

/* Horizontal Star Ratings Layout */
.testi-stars, .star-rating, .star-row, .phone-stars, [aria-label*="star"], [aria-label*="stars"] {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
}

.testi-stars svg, .star-rating svg, .star-row svg, .phone-stars svg, [aria-label*="star"] svg, [aria-label*="stars"] svg {
  display: inline-block !important;
  flex-shrink: 0 !important;
  width: 16px !important;
  height: 16px !important;
  fill: #f59e0b !important;
  stroke: none !important;
  margin: 0 !important;
}

