:root {
  --bg: #f4f6f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --muted: #64748b;
  --green: #16a34a;
  --green-dark: #15803d;
  --green-soft: #dcfce7;
  --blue: #2563eb;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --sidebar-w: 248px;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

.mono { font-family: 'JetBrains Mono', monospace; }
.hidden { display: none !important; }

/* App Shell: Fixed Left Vertical Sidebar + Scrollable Main */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ==================== LEFT SIDEBAR ==================== */
.left-sidebar {
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  height: 64px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
}
.brand-name { font-weight: 800; font-size: 1.08rem; letter-spacing: -0.02em; color: var(--text); }
.brand-sub { font-size: 0.72rem; color: var(--muted); }

.sidebar-scroll {
  padding: 14px 12px 24px;
  overflow-y: auto;
  flex: 1;
}

.nav-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.06em;
  padding: 14px 10px 6px;
}
.nav-group-label:first-child { padding-top: 2px; }

.side-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 3px;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.side-link .ico { font-size: 1rem; width: 20px; text-align: center; }
.side-link:hover { background: #f1f5f9; color: var(--text); }
.side-link.active {
  background: var(--green-soft);
  color: var(--green-dark);
}
.side-link-red.active { background: var(--red-soft); color: var(--red); }

.badge-hot {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 800;
  background: #fef3c7;
  color: #b45309;
  padding: 2px 6px;
  border-radius: 5px;
}

.sidebar-card {
  margin-top: 20px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.sc-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 4px; }
.sc-desc { font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; }

/* ==================== TOPBAR & MAIN ==================== */
.main-wrap {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-left { display: flex; align-items: center; gap: 12px; flex: 1; max-width: 520px; }
.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 1.15rem;
  cursor: pointer;
}
.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0 12px;
  height: 38px;
  flex: 1;
}
.top-search:focus-within { border-color: var(--green); background: var(--white); }
.top-search input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
}

.topbar-right { display: flex; align-items: center; gap: 8px; }
.auth-area { display: flex; align-items: center; gap: 8px; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.user-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

/* Buttons */
.btn {
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { background: var(--white); color: var(--text); border: 1px solid var(--border-strong); }
.btn-outline:hover { background: #f8fafc; border-color: #94a3b8; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { filter: brightness(0.92); }
.btn-google { background: #fff; color: #1f2937; border: 1px solid #cbd5e1; width: 100%; padding: 11px; }
.btn-google:hover { background: #f8fafc; }
.btn-discord { background: #5865F2; color: #fff; width: 100%; padding: 11px; }
.btn-discord:hover { background: #4752c4; }
.btn-sm { padding: 7px 12px; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* Content & Views */
.content {
  padding: 24px 28px 56px;
  max-width: 1220px;
  width: 100%;
  margin: 0 auto;
}
.view { display: none; }
.view.active { display: block; }

/* Home Hero */
.home-hero {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.hero-tag {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.home-hero h1 { font-size: 1.75rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.home-hero p { color: var(--muted); font-size: 0.93rem; margin-bottom: 18px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hstat {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.hstat strong { display: block; font-size: 1.45rem; font-weight: 800; color: var(--green-dark); font-family: 'JetBrains Mono', monospace; }
.hstat span { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.hstat-red strong { color: var(--red); }

/* Headings */
.sec-head, .page-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.sec-head h2, .page-top h2 { font-size: 1.2rem; font-weight: 800; }
.sec-note { font-size: 0.85rem; color: var(--muted); }

/* Rank Category Grid */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.rank-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.15s;
}
.rank-tile:hover { border-color: var(--green); box-shadow: 0 4px 12px rgba(22, 163, 74, 0.08); transform: translateY(-2px); }
.rt-ico { font-size: 1.35rem; margin-bottom: 4px; }
.rank-tile strong { font-size: 0.92rem; color: var(--text); }
.rank-tile small { font-size: 0.78rem; color: var(--muted); }

/* Filter Panel & Rank Pills */
.filter-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
}
.search-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.search-input-wrap {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 0 12px;
  height: 40px;
}
.search-input-wrap:focus-within { border-color: var(--green); background: var(--white); }
.search-input-wrap input { border: none; outline: none; background: transparent; width: 100%; font-family: inherit; font-size: 0.9rem; }
.select, .input {
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
}
.input { width: 100%; }
.input:focus, .select:focus { border-color: var(--green); }
textarea.input { resize: vertical; min-height: 84px; }
.chk { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 500; cursor: pointer; }

.pill-group-label { font-size: 0.78rem; font-weight: 700; color: var(--muted); margin: 12px 0 8px; }
.rank-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.rpill {
  background: #f1f5f9;
  border: 1px solid transparent;
  color: #334155;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.rpill:hover { background: #e2e8f0; }
.rpill.active { background: var(--green); color: #fff; }

/* Freelancer Cards */
.fl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.fl-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.16s;
}
.fl-card:hover { border-color: var(--green); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06); transform: translateY(-2px); }
.fl-top { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.mc-avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f1f5f9;
  image-rendering: pixelated;
}
.fl-name { font-weight: 700; font-size: 0.98rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.role-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
}
.role-badge.staff { background: #fef3c7; color: #b45309; }
.role-badge.police { background: #fee2e2; color: #b91c1c; }
.pass-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--green-soft);
  color: var(--green-dark);
  padding: 2px 7px;
  border-radius: 5px;
}
.fl-title { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fl-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.tag-sm { font-size: 0.73rem; background: #f1f5f9; color: #475569; padding: 3px 8px; border-radius: 6px; }
.fl-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}
.price-txt { font-weight: 700; color: var(--green-dark); font-family: 'JetBrains Mono', monospace; }

/* Server Ads Grid */
.srv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.srv-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ad-banner {
  padding: 14px 16px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ad-online { background: rgba(0, 0, 0, 0.28); padding: 3px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.srv-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.srv-ip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 10px;
  font-size: 0.83rem;
}
.srv-desc { font-size: 0.84rem; color: var(--muted); margin-bottom: 12px; flex: 1; }
.srv-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--border); font-size: 0.8rem; }

/* Jobs Stack */
.jobs-stack { display: flex; flex-direction: column; gap: 10px; }
.job-row {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.job-row:hover { border-color: var(--border-strong); }
.job-title { font-weight: 700; font-size: 0.98rem; margin: 5px 0; }
.job-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.81rem; color: var(--muted); margin-top: 6px; }

/* Custom Server Builder */
.builder-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.builder-form-card, .builder-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.builder-summary { position: sticky; top: 84px; }
.step-title { font-weight: 700; font-size: 0.92rem; margin: 16px 0 10px; color: var(--text); }
.step-title:first-child { margin-top: 0; }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice-grid-2 { grid-template-columns: repeat(2, 1fr); }
.choice-grid-3 { grid-template-columns: repeat(3, 1fr); }
.choice-card {
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.choice-card:hover { border-color: #94a3b8; }
.choice-card.active { border-color: var(--green); background: #f0fdf4; }
.choice-card strong { font-size: 0.85rem; }
.choice-card small { font-size: 0.76rem; color: var(--muted); }

.feature-checks { display: flex; flex-direction: column; gap: 8px; }
.fcheck {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 0.86rem;
  cursor: pointer;
}
.fcheck b { margin-left: auto; color: var(--green-dark); font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.sum-line { display: flex; justify-content: space-between; font-size: 0.86rem; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.sum-features { margin: 12px 0; font-size: 0.82rem; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.sum-total {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0;
}
.sum-total strong { font-size: 1.25rem; color: var(--green-dark); font-family: 'JetBrains Mono', monospace; }
.sum-note { font-size: 0.76rem; color: var(--muted); margin-top: 8px; text-align: center; }

/* Hard Skill Test */
.test-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.test-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.timer-badge {
  background: var(--red-soft);
  color: var(--red);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
}
.q-block { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid #f1f5f9; }
.q-title { font-weight: 700; font-size: 0.93rem; margin-bottom: 10px; }
.opt-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 7px;
  font-size: 0.86rem;
  cursor: pointer;
}
.opt-label:hover { background: #f8fafc; border-color: #94a3b8; }

/* Logo Maker */
.logo-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.logo-controls, .logo-preview-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.logo-preview-wrap { text-align: center; }
#logoCanvas {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 14px;
  background: repeating-conic-gradient(#e2e8f0 0% 25%, #f8fafc 0% 50%) 50% / 20px 20px;
  border: 1px solid var(--border);
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; color: #334155; margin-bottom: 6px; }

/* Scam Check */
.scam-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
}
.scam-samples { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 0.82rem; color: var(--muted); }
.sample-btn { background: #f1f5f9; border: 1px solid var(--border); padding: 4px 10px; border-radius: 7px; cursor: pointer; font-size: 0.78rem; }
.sample-btn:hover { border-color: var(--green); }
.scam-result { max-width: 640px; margin: 16px auto 0; text-align: left; padding: 16px; border-radius: 10px; }
.scam-result.safe { background: #f0fdf4; border: 1px solid #86efac; }
.scam-result.danger { background: #fef2f2; border: 1px solid #fca5a5; }
.scam-result.unknown { background: #fffbeb; border: 1px solid #fcd34d; }
.scam-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.scam-card { background: var(--white); border: 1px solid #fecaca; border-radius: var(--radius); padding: 16px; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f8fafc;
  cursor: pointer;
}
.modal-close:hover { background: var(--red); color: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.form-full { grid-column: 1 / -1; }
.divider { text-align: center; color: var(--muted); font-size: 0.78rem; margin: 14px 0; position: relative; }

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #0f172a;
  color: #fff;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
}

/* Responsive */
.sidebar-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.45); z-index: 55; }

@media (max-width: 1024px) {
  .home-hero, .builder-layout, .logo-layout { grid-template-columns: 1fr; }
  .fl-grid, .srv-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .left-sidebar { transform: translateX(-100%); transition: transform 0.2s; }
  .left-sidebar.open { transform: translateX(0); }
  .main-wrap { margin-left: 0; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .fl-grid, .srv-grid, .scam-grid, .choice-grid, .form-grid, .form-row-2 { grid-template-columns: 1fr; }
  .content { padding: 18px 14px 48px; }
  .job-row { flex-direction: column; align-items: flex-start; }
}

/* MineWork VN v3 Additions */
.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.badge-tiers-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.btier {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.lock-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 20px;
  text-align: center;
}
.exp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.exam-section-title {
  background: #f8fafc;
  border-left: 4px solid var(--green);
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.96rem;
  margin: 22px 0 14px;
}
.essay-box {
  width: 100%;
  min-height: 92px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.86rem;
  resize: vertical;
  outline: none;
}
.essay-box:focus { border-color: var(--green); }

/* Anti-Cheat Exam Shield */
.exam-protected {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.anticheat-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 9px;
  padding: 9px 14px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 600;
}
.anticheat-bar.ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

/* AUREUS v4 Additions: Avatar Menu, Forum, Wiki, Free-Included Box */
.badge-ai {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 800;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 2px 6px;
  border-radius: 5px;
}
.avatar-menu-wrap { position: relative; }
.user-chip { cursor: pointer; transition: background 0.15s; }
.user-chip:hover { background: #e2e8f0; border-color: var(--green); }
.avatar-dropdown {
  position: absolute;
  right: 0;
  top: 44px;
  width: 240px;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  padding: 6px;
  z-index: 90;
}
.adrop-head { padding: 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.adrop-item {
  width: 100%;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: left;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.adrop-item:hover { background: #f1f5f9; color: var(--text); }
.adrop-item.danger { color: var(--red); }
.adrop-item.danger:hover { background: var(--red-soft); }

.free-included-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.84rem;
  color: #166534;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Forum Posts */
.forum-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.forum-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.forum-author { display: flex; align-items: center; gap: 9px; font-size: 0.84rem; }
.forum-author img { width: 32px; height: 32px; border-radius: 8px; image-rendering: pixelated; }
.forum-title { font-size: 1.04rem; font-weight: 800; margin: 6px 0; }
.forum-content { font-size: 0.9rem; color: #334155; white-space: pre-line; }
.forum-actions { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.forum-comments { margin-top: 12px; background: #f8fafc; border-radius: 10px; padding: 12px; }
.cmt-item { padding: 8px 0; border-bottom: 1px solid #e2e8f0; font-size: 0.85rem; }
.cmt-item:last-child { border-bottom: none; }
.cmt-form { display: flex; gap: 8px; margin-top: 10px; }

/* Wiki Grid */
.wiki-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.wiki-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s, box-shadow 0.16s;
}
.wiki-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08); }
.wiki-img-wrap {
  position: relative;
  height: 195px;
  background: #0f172a;
  overflow: hidden;
}
.wiki-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wiki-ver-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 7px;
}
.wiki-year-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--green);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 7px;
}
.wiki-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.wiki-body h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 8px; }
.wiki-list { padding-left: 18px; font-size: 0.84rem; color: #334155; margin-bottom: 12px; }
.wiki-list li { margin-bottom: 4px; }
.wiki-fact {
  margin-top: auto;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: #92400e;
}
.terms-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.65;
  max-height: 55vh;
  overflow-y: auto;
}
.terms-box h4 { color: var(--text); margin: 12px 0 4px; }
.terms-box h4:first-child { margin-top: 0; }
@media (max-width: 820px) { .wiki-grid { grid-template-columns: 1fr; } }

/* 3-Tier Pricing Cards (Cheap / Basic PHỔ BIẾN / Premium) matching reference */
.pricing-3grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 14px;
}
.pcard {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 24px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08); }
.pcard.active, .pcard-popular.active { border-color: var(--green); box-shadow: 0 10px 28px rgba(22, 163, 74, 0.14); }
.pcard-popular { border-color: #86efac; }
.popular-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #2f7d46;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 14px;
  border-radius: 999px;
}
.pcard-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pcard-head h3 { font-size: 1.25rem; font-weight: 800; }
.psq { width: 22px; height: 22px; border-radius: 6px; display: inline-block; }
.psq-blue { background: #3b82f6; }
.psq-green { background: #4ade80; border: 1px solid #16a34a; }
.psq-red { background: #dc5c5c; }
.pcard-sub { font-size: 0.83rem; color: var(--muted); min-height: 38px; margin-bottom: 14px; }
.pcard-price-label { font-size: 0.72rem; font-weight: 700; color: var(--muted); letter-spacing: 0.05em; }
.pcard-price { font-size: 1.95rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); margin-bottom: 16px; }
.pcard-price small { font-size: 0.84rem; font-weight: 500; color: var(--muted); margin-left: 2px; }
.pcard-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.83rem; color: #334155; margin-bottom: 20px; flex: 1; }
.pcard-blue li::first-letter { color: #2563eb; font-weight: 800; }
.pcard-green li::first-letter { color: #16a34a; font-weight: 800; }
.pcard-red li::first-letter { color: #dc2626; font-weight: 800; }
.pcard-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s;
}
.pcard-btn:hover { filter: brightness(1.08); }
.pcard-btn-dark { background: #1e293b; color: #fff; }
.pcard-btn-green { background: #367a47; color: #fff; }

/* Payment Tabs & QR */
.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.pay-tab { border: 1.5px solid var(--border); background: #f8fafc; border-radius: 10px; padding: 10px; font-family: inherit; font-weight: 700; font-size: 0.86rem; cursor: pointer; }
.pay-tab.active { border-color: var(--green); background: #f0fdf4; color: var(--green-dark); }
.qr-box { text-align: center; background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.qr-box img { max-width: 220px; width: 100%; border-radius: 10px; border: 1px solid var(--border); background: #fff; }

/* Clickable Wiki Cards */
.wiki-card { cursor: pointer; }
.wiki-readmore { margin-top: 10px; font-size: 0.82rem; font-weight: 700; color: var(--green-dark); display: flex; justify-content: flex-end; }
@media (max-width: 960px) { .pricing-3grid { grid-template-columns: 1fr; } }

/* Bottom-left Zalo & Phone Contact Widget + Topbar Cart Button */
.sidebar-contact {
  border-top: 1px solid var(--border);
  padding: 12px 14px 14px;
  background: #f8fafc;
}
.sc-head { font-size: 0.76rem; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.sc-phone { font-size: 0.96rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.sc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sc-btn {
  text-decoration: none;
  text-align: center;
  padding: 7px 6px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: filter 0.15s;
}
.sc-btn:hover { filter: brightness(0.92); }
.sc-zalo { background: #0068ff; color: #fff; }
.sc-call { background: var(--green); color: #fff; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 7px 11px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.cart-btn:hover { border-color: var(--green); background: #f0fdf4; }
.cart-dot {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}
.service-guarantee {
  margin-top: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  font-size: 0.84rem;
  color: #334155;
}
.ai-q-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 14px;
  margin-top: 12px;
}
@media (max-width: 820px) { .service-guarantee { grid-template-columns: 1fr; } }

/* Multi-tier Pricing Grid (4 & 5 cards) + Server Ad Top Banner Image & Icon */
.pricing-multi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 14px;
}
.pricing-4grid { grid-template-columns: repeat(2, 1fr); }
.psq-amber { background: #f59e0b; }
.psq-purple { background: #8b5cf6; }
.pcard-amber li::first-letter { color: #d97706; font-weight: 800; }
.pcard-purple li::first-letter { color: #7c3aed; font-weight: 800; }

.srv-cover {
  position: relative;
  height: 138px;
  background: #0f172a;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
  color: #fff;
}
.srv-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62);
}
.srv-cover-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.srv-icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: #1e293b;
  object-fit: cover;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.srv-online-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.82);
  color: #4ade80;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
}
.srv-online-pill.off { color: #f87171; }
@media (max-width: 1024px) { .pricing-multi, .pricing-4grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .pricing-multi, .pricing-4grid { grid-template-columns: 1fr; } }


/* ==================== RIKAMC — GACHCLOUD COMPACT AIRY STYLE ==================== */
body { background: #f6faf7; }

/* Compact GachCloud-like Anime Logo */
.gc-brand-img {
  width: 34px !important;
  height: 34px !important;
  border-radius: 9px !important;
  object-fit: cover;
  border: 1.5px solid #bbf7d0;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.14);
}
.gc-brand-word {
  font-weight: 900 !important;
  font-size: 1.12rem !important;
  letter-spacing: 0.04em !important;
  color: #1e293b;
}

/* YouTube Button in Sidebar Contact */
.sc-yt {
  display: block;
  margin-top: 6px;
  background: #ef4444;
  color: #fff !important;
  text-align: center;
}
.sc-yt:hover { background: #dc2626; }

/* GachCloud Hero Section */
.gc-hero {
  background: linear-gradient(135deg, #eefaf3 0%, #f5fcf8 58%, #ffffff 100%);
  border: 1px solid #dcfce7;
  border-radius: 20px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  overflow: hidden;
}
.gc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.gc-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s, border-color 0.15s;
}
.gc-pill-green { color: #15803d; border-color: #bbf7d0; }
.gc-pill-yt { color: #dc2626; border-color: #fecaca; }
.gc-pill-yt:hover { background: #fef2f2; transform: translateY(-1px); }

.gc-title {
  font-size: 2.35rem;
  line-height: 1.13;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
  margin-bottom: 14px;
}
.gc-green { color: #2f7d46; }
.gc-blue { color: #3b6ea5; }
.gc-slate { color: #64748b; }
.gc-amber { color: #9a6b2f; }

.gc-sub {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 20px;
}
.gc-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.gc-btn-primary {
  background: #367a47;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 15px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s, transform 0.15s;
}
.gc-btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.gc-btn-white {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 13px;
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.gc-btn-white:hover { background: #f8fafc; border-color: #94a3b8; }

.gc-meta-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
}
.gc-meta-dots span { display: inline-flex; align-items: center; gap: 6px; }
.gc-meta-dots b { color: #1e293b; font-weight: 700; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-g { background: #22c55e; }
.dot-o { background: #d97706; }
.dot-b { background: #3b82f6; }
.dot-r { background: #ef4444; }

.gc-hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gc-hero-art {
  width: 100%;
  max-width: 390px;
  border-radius: 18px;
  mix-blend-mode: multiply;
  filter: contrast(1.03);
}

/* GachCloud-style 6-Card Feature Grid */
.gc-feat-wrap { margin-bottom: 26px; }
.gc-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #2f7d46;
  margin-bottom: 4px;
}
.gc-feat-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 16px;
}
.gc-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gc-fcard {
  background: #ffffff;
  border: 1px solid #e5ece8;
  border-left-width: 3.5px;
  border-radius: 14px;
  padding: 18px 18px 16px;
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s;
}
.gc-fcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
.gc-fb-green { border-left-color: #22c55e; }
.gc-fb-brown { border-left-color: #b45309; }
.gc-fb-blue  { border-left-color: #3b82f6; }
.gc-fb-amber { border-left-color: #eab308; }
.gc-fb-rose  { border-left-color: #ef4444; }
.gc-fb-sky   { border-left-color: #0ea5e9; }

.gc-fico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  margin-bottom: 11px;
}
.gc-fi-green { background: #dcfce7; }
.gc-fi-brown { background: #ffedd5; }
.gc-fi-blue  { background: #dbeafe; }
.gc-fi-amber { background: #fef9c3; }
.gc-fi-rose  { background: #fee2e2; }
.gc-fi-sky   { background: #e0f2fe; }

.gc-fcard h3 {
  font-size: 0.96rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 5px;
}
.gc-fcard p {
  font-size: 0.81rem;
  color: #64748b;
  line-height: 1.5;
}

/* Compact crisp Pricing Cards like GachCloud */
.pcard { padding: 20px 18px; border-radius: 16px; }
.pcard-sub { min-height: 36px; margin-bottom: 10px; font-size: 0.8rem; }
.pcard-price { font-size: 1.78rem; margin-bottom: 12px; }
.pcard-list { gap: 6px; font-size: 0.8rem; margin-bottom: 16px; }

/* Delete order button */
.btn-del-order {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-del-order:hover { background: #fee2e2; border-color: #f87171; }

@media (max-width: 960px) {
  .gc-hero { grid-template-columns: 1fr; padding: 22px 20px; }
  .gc-title { font-size: 1.85rem; }
  .gc-feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gc-feat-grid { grid-template-columns: 1fr; }
}


/* ==================== KHO PLUGIN / MOD & ADMIN WEB PANEL ==================== */
.badge-new {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 800;
  background: #dcfce7;
  color: #15803d;
  padding: 2px 6px;
  border-radius: 5px;
}
.side-link-admin {
  color: #b91c1c !important;
  background: #fef2f2;
  border: 1px solid #fecaca !important;
}
.side-link-admin:hover, .side-link-admin.active {
  background: #fee2e2 !important;
  color: #991b1b !important;
}
.badge-admin {
  margin-left: auto;
  background: #dc2626;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
}
.admin-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

/* Resource Marketplace Grid */
.res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.res-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.res-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
.res-head { display: flex; align-items: flex-start; gap: 11px; }
.res-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.25);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--green-dark);
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}
.res-title { font-size: 0.94rem; font-weight: 800; color: var(--text); line-height: 1.3; }
.res-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.res-shield {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.res-shield.warn { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.res-shield.pend { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.res-shield.rej { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.res-summary { font-size: 0.82rem; color: #475569; line-height: 1.5; }
.res-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.fee-calc-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: #166534;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.scan-result-box {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.81rem;
  line-height: 1.5;
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #166534;
}
.scan-result-box.warn { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.scan-result-box.bad { border-color: #fca5a5; background: #fef2f2; color: #991b1b; }

/* Admin Panel */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.admin-kpi {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.admin-kpi strong { display: block; font-size: 1.35rem; font-weight: 800; color: var(--text); font-family: 'JetBrains Mono', monospace; }
.admin-kpi span { font-size: 0.76rem; color: var(--muted); font-weight: 600; }
.admin-row-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
@media (max-width: 960px) {
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .res-grid { grid-template-columns: 1fr; }
}


/* ==================== 3D BLUEPRINTS GALLERY & LAYER STUDIO ==================== */
.bp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.bp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.bp-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}
.bp-thumb-wrap {
  position: relative;
  background: #f2faf5;
  border-bottom: 1px solid var(--border);
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bp-thumb-wrap canvas { width: 100%; height: 100%; display: block; }
.bp-diff-tag {
  position: absolute;
  top: 9px;
  right: 9px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
}
.bp-diff-tag.med { background: #fef3c7; color: #b45309; }
.bp-diff-tag.hard { background: #fee2e2; color: #b91c1c; }
.bp-cat-tag {
  position: absolute;
  top: 9px;
  left: 9px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
}
.bp-body { padding: 13px 14px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.bp-body h3 { font-size: 0.94rem; font-weight: 800; color: var(--text); }
.bp-body p { font-size: 0.79rem; color: var(--muted); line-height: 1.45; }
.bp-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: #334155;
}

/* Wide Compact Full-Viewport Pro Modal for 3D Builder Studio */
.modal.modal-wide {
  max-width: 1320px;
  width: 96vw;
  height: 90vh;
  max-height: 90vh;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal .modal-close { z-index: 30; }
.modal.modal-wide #modalBody {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 10px;
}
.bp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-right: 36px;
  flex-wrap: wrap;
}
.bp-topbar h2 { font-size: 1.06rem; font-weight: 800; margin: 0; line-height: 1.25; }
.bp-dim-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bp-dim-pill {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
}
.bp-dim-pill.x { background: #ffedd5; color: #c2410c; border: 1px solid #fdba74; }
.bp-dim-pill.z { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }
.bp-dim-pill.y { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.bp-dim-pill.n { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }

.bp-studio {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.bp-stage-box {
  background: linear-gradient(180deg, #dff0fc 0%, #f1f8fc 65%, #e8f2ec 100%);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}
.bp-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}
.bp-canvas-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
  display: block;
}
.bp-canvas-wrap canvas:active { cursor: grabbing; }
.bp-hud-tl {
  position: absolute;
  top: 9px;
  left: 9px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  z-index: 5;
}
.bp-hud-btn {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 7px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.bp-hud-btn:hover { border-color: var(--green); color: var(--green-dark); }
.bp-hud-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
.bp-hud-measure {
  position: absolute;
  bottom: 9px;
  left: 9px;
  right: 9px;
  background: rgba(15, 23, 42, 0.86);
  color: #f8fafc;
  font-size: 0.76rem;
  padding: 6px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: auto;
  backdrop-filter: blur(4px);
}
.bp-controls {
  padding: 8px 10px;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bp-ctrl-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.bp-ctrl-row input[type="range"] { flex: 1; min-width: 120px; accent-color: var(--green); }
.bp-side-panel {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-height: 0;
}
.bp-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}
.bp-tab {
  border: 0;
  background: transparent;
  padding: 8px 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
}
.bp-tab.active { color: var(--green-dark); background: #fff; border-bottom-color: var(--green); }
.bp-tab-pane {
  flex: 1;
  min-height: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
}
.bp-tab-pane.hidden { display: none; }
.bp-2d-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.bp-2d-wrap {
  flex: 1;
  min-height: 230px;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  background: #f8fafc;
  position: relative;
}
.bp-2d-wrap canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.bp-measure-card {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.77rem;
  line-height: 1.45;
  color: #14532d;
}
.bp-mat-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bp-mat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  padding: 5px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
}
.bp-swatch {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.28);
  display: inline-block;
  margin-right: 7px;
  vertical-align: middle;
}
.bp-guide-step {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 10px;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bp-guide-step strong { color: #0f172a; font-size: 0.82rem; }
.bp-guide-step .sample-btn { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 960px) {
  .modal.modal-wide { height: 94vh; display: block; overflow-y: auto; }
  .modal.modal-wide #modalBody { height: auto; }
  .bp-grid { grid-template-columns: repeat(2, 1fr); }
  .bp-studio { display: flex; flex-direction: column; gap: 10px; flex: none; }
  .bp-stage-box { flex: none; }
  .bp-canvas-wrap { height: 340px; flex: none; }
  .bp-side-panel { min-height: 430px; flex: none; }
}
@media (max-width: 640px) {
  .bp-grid { grid-template-columns: 1fr; }
}


/* ==================== CLEAN HUMAN-CRAFTED UI REFINEMENT (NO AI CLUTTER) ==================== */
body { background: #f8faf9; color: #111827; }
.left-sidebar { background: #ffffff; border-right: 1px solid #e5e7eb; }
.topbar { background: #ffffff; border-bottom: 1px solid #e5e7eb; }

.s-ico {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  opacity: 0.78;
}
.side-link.active .s-ico { opacity: 1; stroke: var(--green-dark); }
.side-link { font-size: 0.86rem; font-weight: 500; padding: 8px 11px; color: #374151; }
.side-link.active { font-weight: 700; background: #ecfdf5; color: #15803d; }

.gc-fico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #1f2937;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gc-fi-green svg { stroke: #15803d; }
.gc-fi-brown svg { stroke: #9a3412; }
.gc-fi-blue svg { stroke: #1d4ed8; }
.gc-fi-amber svg { stroke: #b45309; }
.gc-fi-rose svg { stroke: #be123c; }
.gc-fi-sky svg { stroke: #0369a1; }

.rank-tile { padding: 13px 15px; border-color: #e5e7eb; box-shadow: none; }
.rank-tile strong { font-size: 0.9rem; font-weight: 700; }
.fl-card { border-color: #e5e7eb; box-shadow: none; }
.fl-card:hover { border-color: #16a34a; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05); transform: translateY(-1px); }
.exp-badge {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  font-weight: 600 !important;
}
.bp-thumb-wrap { background: linear-gradient(180deg, #dff0fc 0%, #f2f8fc 68%, #e6efe9 100%); height: 195px; }
.bp-stage-box { background: linear-gradient(180deg, #dff0fc 0%, #f2f8fc 68%, #e6efe9 100%); border-color: #cbdce8; }
.bp-stage-box canvas { width: 100%; height: 100%; display: block; cursor: grab; background: transparent; }


/* ==================== 3D REDSTONE LAB v2 — FULL-VIEWPORT ZERO-SCROLL PRO STUDIO ==================== */
.rs-app {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: calc(100vh - 96px);
  min-height: 560px;
}
.rs-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.rs-bar-left, .rs-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.rs-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f172a;
  padding: 0 6px 0 2px;
  letter-spacing: -0.01em;
}
.rs-seg-group {
  display: inline-flex;
  background: #f1f5f9;
  padding: 2px;
  border-radius: 8px;
  gap: 2px;
}
.rs-seg {
  border: none;
  background: transparent;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}
.rs-seg.active { background: #ffffff; color: #15803d; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); }
.rs-div { width: 1px; height: 20px; background: #e2e8f0; }
.rs-sel-sm {
  height: 29px;
  padding: 0 7px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  cursor: pointer;
}
.rs-danger { color: #b91c1c !important; border-color: #fecaca !important; }
.rs-danger:hover { background: #fef2f2 !important; }

.rs-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 264px;
  gap: 8px;
}
.rs-left, .rs-center, .rs-right {
  min-width: 0;
  min-height: 0;
}

/* LEFT: 2-Column Clean Tile Palette */
.rs-left {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rs-cat-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px 5px;
  gap: 3px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.rs-ctab {
  border: none;
  background: #f8fafc;
  padding: 4px 2px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}
.rs-ctab.active { background: #ecfdf5; color: #15803d; }
.rs-tile-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 7px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  align-content: start;
  scrollbar-width: thin;
}
.rs-tile {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
  min-width: 0;
  transition: border-color 0.12s, background 0.12s;
}
.rs-tile:hover { border-color: #94a3b8; background: #f1f5f9; }
.rs-tile.active { border-color: #16a34a; background: #ecfdf5; color: #15803d; }
.rs-sw {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(15, 23, 42, 0.22);
}
.rs-tlbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rs-left-tip {
  padding: 7px 9px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.7rem;
  color: #475569;
  line-height: 1.38;
  background: #f8fafc;
  flex-shrink: 0;
}

/* CENTER: Maximized 3D Canvas with Sleek Floating HUDs */
.rs-center {
  position: relative;
  background: #f1f7fb;
  border: 1px solid #cbdce8;
  border-radius: 11px;
  overflow: hidden;
}
.rs-center canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}
.rs-float-top, .rs-float-bot {
  position: absolute;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 3;
}
.rs-float-top { top: 9px; }
.rs-float-bot { bottom: 9px; }
.rs-pill-hud {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 0.74rem;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}
.rs-layer-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.rs-layer-bar input[type="range"] { width: 95px; accent-color: #16a34a; }
.rs-cam-bar {
  display: flex;
  gap: 4px;
  padding: 3px;
}
.rs-cam-bar button {
  border: none;
  background: transparent;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.73rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}
.rs-cam-bar button:hover { background: #e2e8f0; color: #0f172a; }

/* RIGHT: Full-Height 3-Tab Drawer */
.rs-right {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rs-rtabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 6px;
  gap: 4px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.rs-rtab {
  border: none;
  background: transparent;
  padding: 6px 4px;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}
.rs-rtab.active { background: #ffffff; color: #15803d; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); }
.rs-rpBody {
  flex: 1;
  min-height: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.rs-lesson-sel {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 7px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
}
.rs-guide {
  flex: 1;
  overflow-y: auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  scrollbar-width: thin;
}
.rs-goal-txt { font-size: 0.79rem; font-weight: 700; color: #15803d; margin-bottom: 6px; line-height: 1.42; }
.rs-steps-txt { white-space: pre-line; font-size: 0.77rem; color: #334155; line-height: 1.55; }
.rs-log-list { display: flex; flex-direction: column; gap: 5px; }
.rs-log-row {
  font-size: 0.74rem;
  color: #334155;
  padding: 5px 7px;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid #16a34a;
}
.rs-log-row .mono { color: #15803d; font-weight: 700; margin-right: 4px; }

@media (max-width: 1180px) {
  .rs-app { height: auto; }
  .rs-grid { grid-template-columns: 1fr; }
  .rs-left { max-height: 210px; }
  .rs-center { height: 440px; }
  .rs-right { max-height: 360px; }
}

/* ==================== PROMO / COUPON BANNER NEAR HOME TABS ==================== */
.promo-strip {
  margin-bottom: 14px;
  background: linear-gradient(90deg, #fffbeb 0%, #fef9c3 55%, #ecfdf5 100%);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.promo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}
.promo-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  font-size: 0.84rem;
  color: #78350f;
}
.promo-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.promo-badge {
  display: inline-flex;
  align-items: center;
  background: #d97706;
  color: #fff;
  font-size: 0.69rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.promo-code-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px dashed #d97706;
  color: #b45309;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 9px;
  border-radius: 7px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s;
}
.promo-code-chip:hover { background: #fef3c7; }
.promo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.promo-meta {
  font-size: 0.74rem;
  color: #92400e;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .promo-row { flex-wrap: wrap; }
  .promo-text { white-space: normal; }
}

/* ==================== WALLET & AFFILIATE CLEAN LAYOUT ==================== */
.wallet-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.wallet-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 0 !important;
}
.wallet-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.wallet-stat-tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
}
.wallet-stat-tile small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.wallet-stat-tile strong {
  font-size: 0.9rem;
  color: var(--text);
}
.wallet-tip-box {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--green-soft);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 10px;
  font-size: 0.8rem;
  color: #14532d;
}
@media (max-width: 820px) {
  .wallet-grid-2 { grid-template-columns: 1fr; }
}

/* ==================== COUPON INPUT IN ORDER WIZARD & PAYMENT MODAL ==================== */
.coupon-box {
  margin-top: 12px;
  padding: 11px 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 11px;
}
.coupon-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.coupon-row .input {
  flex: 1;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}
.coupon-suggestions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 7px;
  font-size: 0.76rem;
  color: var(--muted);
}
.coupon-suggest-btn {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  color: #b45309;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}
.coupon-suggest-btn:hover { background: #fef3c7; }
.coupon-status {
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}
.coupon-status.ok { color: #15803d; }
.coupon-status.err { color: #dc2626; }

/* ==================== SITE MAINTENANCE / NOTICE BAR ==================== */
.site-notice-bar {
  margin-bottom: 12px;
  padding: 9px 14px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #60a5fa;
  color: #1e40af;
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==================== MINECRAFT TOOLS (MOTD PREVIEW & WALLET & COMBO) ==================== */
.mc-motd-preview {
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
  border: 1.5px solid #334155;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.45);
}
.mc-motd-ico {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #475569;
  flex-shrink: 0;
  image-rendering: pixelated;
}
.mc-motd-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #e2e8f0;
  word-break: break-word;
}
.wallet-hero {
  background: linear-gradient(135deg, #065f46 0%, #15803d 60%, #0f766e 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.wallet-bal {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.verified-buy-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
}
.top-ico {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -2px;
}

/* ==================== DARK MODE (HIGH CONTRAST, FULL TEXT LEGIBILITY) ==================== */
[data-theme="dark"] {
  --bg: #0b1120;
  --white: #111827;
  --border: #1f2937;
  --border-strong: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --green-dark: #4ade80;
  --green-soft: rgba(22, 163, 74, 0.16);
  --amber-soft: rgba(217, 119, 6, 0.18);
  --red-soft: rgba(220, 38, 38, 0.18);
}
[data-theme="dark"] body {
  background: #0b1120 !important;
  color: #f1f5f9 !important;
}
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] .brand-name,
[data-theme="dark"] .gc-brand-word,
[data-theme="dark"] .gc-title,
[data-theme="dark"] .gc-feat-title,
[data-theme="dark"] .gc-fcard h3,
[data-theme="dark"] .gc-meta-dots b,
[data-theme="dark"] .pcard-price,
[data-theme="dark"] .sc-phone,
[data-theme="dark"] .bp-guide-step strong,
[data-theme="dark"] .res-title,
[data-theme="dark"] .fl-name,
[data-theme="dark"] .wallet-stat-tile strong,
[data-theme="dark"] .admin-kpi strong {
  color: #f8fafc !important;
}
[data-theme="dark"] .gc-green { color: #4ade80 !important; }
[data-theme="dark"] .gc-blue { color: #60a5fa !important; }
[data-theme="dark"] .gc-slate { color: #cbd5e1 !important; }
[data-theme="dark"] .gc-amber { color: #fbbf24 !important; }
[data-theme="dark"] .gc-kicker { color: #4ade80 !important; }
[data-theme="dark"] .gc-sub,
[data-theme="dark"] .gc-fcard p,
[data-theme="dark"] .gc-meta-dots,
[data-theme="dark"] .field label,
[data-theme="dark"] .forum-content,
[data-theme="dark"] .wiki-list,
[data-theme="dark"] .srv-desc,
[data-theme="dark"] .pcard-list li,
[data-theme="dark"] .rs-steps-txt,
[data-theme="dark"] .rs-log-row {
  color: #cbd5e1 !important;
}
[data-theme="dark"] .gc-sub strong { color: #f8fafc !important; }
[data-theme="dark"] .gc-hero-art {
  mix-blend-mode: normal !important;
  filter: brightness(1.04) contrast(1.04);
  border: 1px solid #334155;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .gc-pill {
  background: #1e293b !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .gc-pill-green { color: #4ade80 !important; }
[data-theme="dark"] .gc-pill-yt { color: #f87171 !important; }
[data-theme="dark"] .gc-fico { background: #1e293b !important; }

[data-theme="dark"] .left-sidebar,
[data-theme="dark"] .topbar,
[data-theme="dark"] .filter-panel,
[data-theme="dark"] .card,
[data-theme="dark"] .gc-fcard,
[data-theme="dark"] .res-card,
[data-theme="dark"] .bp-card,
[data-theme="dark"] .pcard,
[data-theme="dark"] .admin-row-card,
[data-theme="dark"] .admin-kpi,
[data-theme="dark"] .modal,
[data-theme="dark"] .avatar-dropdown,
[data-theme="dark"] .srv-card,
[data-theme="dark"] .job-row,
[data-theme="dark"] .forum-card,
[data-theme="dark"] .wiki-card,
[data-theme="dark"] .scam-box,
[data-theme="dark"] .service-guarantee,
[data-theme="dark"] .test-box {
  background: #111827 !important;
  border-color: #1f2937 !important;
  color: #f1f5f9 !important;
}
[data-theme="dark"] .gc-hero {
  background: linear-gradient(135deg, #111827 0%, #0f172a 100%) !important;
  border-color: #1f2937 !important;
}
[data-theme="dark"] .gc-btn-white,
[data-theme="dark"] .btn-outline,
[data-theme="dark"] .rpill,
[data-theme="dark"] .choice-card,
[data-theme="dark"] .rank-tile,
[data-theme="dark"] .cart-btn,
[data-theme="dark"] .user-chip,
[data-theme="dark"] .sample-btn,
[data-theme="dark"] .top-search {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
[data-theme="dark"] .btn-outline:hover,
[data-theme="dark"] .gc-btn-white:hover,
[data-theme="dark"] .rpill:hover {
  background: #273549 !important;
  border-color: #475569 !important;
}
[data-theme="dark"] .rpill.active,
[data-theme="dark"] .side-link.active {
  background: rgba(22, 163, 74, 0.2) !important;
  color: #4ade80 !important;
  border-color: rgba(74, 222, 128, 0.4) !important;
}
[data-theme="dark"] .side-link { color: #cbd5e1 !important; }
[data-theme="dark"] .side-link:hover { background: #1e293b !important; color: #ffffff !important; }
[data-theme="dark"] .side-link-admin {
  background: rgba(220, 38, 38, 0.14) !important;
  color: #fca5a5 !important;
  border-color: rgba(248, 113, 113, 0.32) !important;
}
[data-theme="dark"] .side-link-admin:hover,
[data-theme="dark"] .side-link-admin.active {
  background: rgba(220, 38, 38, 0.26) !important;
  color: #fecaca !important;
}
[data-theme="dark"] .btn-del-order {
  background: rgba(220, 38, 38, 0.16) !important;
  color: #fca5a5 !important;
  border-color: rgba(248, 113, 113, 0.35) !important;
}
[data-theme="dark"] .input,
[data-theme="dark"] .select,
[data-theme="dark"] textarea.input,
[data-theme="dark"] .top-search input,
[data-theme="dark"] .search-input-wrap {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}
[data-theme="dark"] .promo-strip {
  background: linear-gradient(90deg, #1e1b10 0%, #182032 58%, #0c261d 100%) !important;
  border-color: #b45309 !important;
}
[data-theme="dark"] .promo-left,
[data-theme="dark"] .promo-meta { color: #fde68a !important; }
[data-theme="dark"] .promo-code-chip {
  background: #0f172a !important;
  border-color: #d97706 !important;
  color: #fbbf24 !important;
}
[data-theme="dark"] .coupon-box,
[data-theme="dark"] .qr-box,
[data-theme="dark"] .sum-total,
[data-theme="dark"] .scan-result-box,
[data-theme="dark"] .ai-q-box,
[data-theme="dark"] .wallet-stat-tile,
[data-theme="dark"] .bp-guide-step,
[data-theme="dark"] .rs-guide,
[data-theme="dark"] .rs-log-row {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
[data-theme="dark"] .wallet-tip-box {
  background: rgba(22, 163, 74, 0.14) !important;
  border-color: rgba(74, 222, 128, 0.3) !important;
  color: #bbf7d0 !important;
}
[data-theme="dark"] .sidebar-contact { background: #0f172a; border-color: #1f2937; }
[data-theme="dark"] .sec-note,
[data-theme="dark"] .pcard-sub,
[data-theme="dark"] .res-meta { color: #94a3b8 !important; }
[data-theme="dark"] .pay-tabs { background: #0f172a; }
[data-theme="dark"] .pay-tab { color: #cbd5e1; }
[data-theme="dark"] .pay-tab.active { background: #1e293b; color: #4ade80; }
[data-theme="dark"] .tag-sm { background: #1e293b; color: #cbd5e1; }
[data-theme="dark"] .adrop-item { color: #e2e8f0 !important; }
[data-theme="dark"] .adrop-item:hover { background: #1e293b !important; }
[data-theme="dark"] .verified-buy-pill { background: rgba(22, 163, 74, 0.2); color: #86efac; border-color: rgba(74, 222, 128, 0.4); }
[data-theme="dark"] .site-notice-bar { background: #172554; border-color: #3b82f6; color: #bfdbfe; }

/* ==================== VIP PINNED SERVER CARD, TICKET CHAT, ANALYTICS & CHECK-IN ==================== */
.srv-card-vip {
  border: 2px solid #d97706 !important;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.14);
}
.vip-pin-badge {
  display: inline-flex;
  align-items: center;
  background: #d97706;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 5px;
  text-transform: uppercase;
}
.ticket-chat-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px;
  max-height: 340px;
  min-height: 160px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ticket-msg {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  max-width: 88%;
  align-self: flex-start;
}
.ticket-msg.mine {
  align-self: flex-end;
  border-color: #86efac;
  background: #f0fdf4;
}
[data-theme="dark"] .ticket-msg.mine {
  background: rgba(22, 163, 74, 0.16);
  border-color: rgba(74, 222, 128, 0.35);
}
.ticket-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.ticket-msg-text {
  font-size: 0.86rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}
.ticket-img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 8px;
  margin-top: 6px;
  border: 1px solid var(--border);
}
.rev-bar-track {
  height: 8px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.rev-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  border-radius: 999px;
}
.checkin-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.checkin-day {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.checkin-day small { font-size: 0.72rem; color: var(--muted); }
.checkin-day strong { font-size: 1rem; color: var(--text); }
.checkin-day span { font-size: 0.7rem; color: var(--muted); }
.checkin-day.done {
  background: var(--green-soft);
  border-color: #16a34a;
}
.checkin-day.done strong,
.checkin-day.done span { color: var(--green-dark); font-weight: 700; }
.checkin-day.next {
  border: 1.5px solid #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}
@media (max-width: 720px) {
  .checkin-grid { grid-template-columns: repeat(4, 1fr); }
}


/* ==================== REAL-TIME MESSENGER (ZALO-STYLE 2-PANE CHAT) ==================== */
.dm-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 185px);
  min-height: 520px;
  max-height: 760px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.dm-sidebar {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--card);
  min-height: 0;
}
.dm-side-head {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.dm-filter-tabs {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.dm-ftab {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  border-radius: 7px;
  padding: 5px 4px;
  font-size: 0.71rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.dm-ftab.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}
.dm-thread-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}
.dm-empty-list {
  padding: 24px 14px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.dm-thread-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  margin-bottom: 3px;
  transition: background 0.14s ease;
}
.dm-thread-item:hover { background: var(--bg); }
.dm-thread-item.active {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.25);
}
.dm-av-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.dm-av-wrap img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  image-rendering: pixelated;
  border: 1px solid var(--border);
}
.dm-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #94a3b8;
  border: 2px solid var(--card);
}
.dm-dot.on { background: #16a34a; }
.dm-th-body { min-width: 0; flex: 1; }
.dm-th-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.dm-th-name {
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-th-time { font-size: 0.7rem; color: var(--muted); flex-shrink: 0; }
.dm-th-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}
.dm-th-prev {
  font-size: 0.77rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.dm-ctx-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  flex-shrink: 0;
}
.dm-ctx-pill.freelancer { background: #dcfce7; color: #166534; }
.dm-ctx-pill.job { background: #dbeafe; color: #1d4ed8; }
.dm-ctx-pill.staff { background: #fef3c7; color: #92400e; }
.dm-unread-pill {
  background: #dc2626;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.dm-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg);
}
.dm-chat-header {
  padding: 11px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dm-mobile-back { display: none; padding: 4px 9px; }
.dm-msg-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dm-empty-chat {
  margin: auto;
  max-width: 420px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  padding: 20px;
}
.dm-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 78%;
}
.dm-row.mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.dm-row.theirs { align-self: flex-start; }
.dm-msg-av {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.dm-bubble-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dm-row.mine .dm-bubble-col { align-items: flex-end; }
.dm-sender-lbl {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  padding-left: 4px;
}
.dm-bubble {
  padding: 8px 13px;
  border-radius: 14px;
  font-size: 0.87rem;
  line-height: 1.45;
  word-break: break-word;
  white-space: normal;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
}
.dm-bubble-txt {
  white-space: pre-wrap;
  word-break: break-word;
}
.dm-bubble.theirs {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.dm-bubble.mine {
  background: #16a34a;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}
.dm-bubble-img {
  display: block;
  max-width: 260px;
  max-height: 220px;
  border-radius: 8px;
  margin-top: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.dm-att-link {
  color: inherit;
  text-decoration: underline;
  font-size: 0.8rem;
  word-break: break-all;
}
.dm-msg-meta {
  display: flex;
  gap: 6px;
  font-size: 0.69rem;
  color: var(--muted);
  padding: 0 4px;
}
.dm-seen-lbl.seen { color: #16a34a; font-weight: 700; }
.dm-typing {
  padding: 4px 16px 6px;
  font-size: 0.76rem;
  color: var(--green-dark);
  font-style: italic;
}
.dm-composer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.dm-attach-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  background: var(--bg);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.dm-input-bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.dm-tool-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.dm-tool-btn:hover { border-color: var(--green-dark); color: var(--green-dark); }
.dm-textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.87rem;
  background: var(--bg);
  color: var(--text);
  max-height: 120px;
  line-height: 1.4;
}
.dm-textarea:focus { outline: none; border-color: var(--green-dark); }

/* Dark mode overrides for Messenger */
[data-theme="dark"] .dm-bubble.mine { background: #15803d; color: #f8fafc; }
[data-theme="dark"] .dm-ctx-pill { background: #1e293b; color: #cbd5e1; }
[data-theme="dark"] .dm-ctx-pill.freelancer { background: rgba(22, 163, 74, 0.22); color: #86efac; }
[data-theme="dark"] .dm-ctx-pill.job { background: rgba(37, 99, 235, 0.22); color: #93c5fd; }
[data-theme="dark"] .dm-ctx-pill.staff { background: rgba(217, 119, 6, 0.22); color: #fcd34d; }

@media (max-width: 820px) {
  .dm-shell { grid-template-columns: 1fr; height: calc(100vh - 160px); }
  .dm-shell:not(.mobile-chat-open) .dm-main { display: none; }
  .dm-shell.mobile-chat-open .dm-sidebar { display: none; }
  .dm-mobile-back { display: inline-flex; }
  .dm-row { max-width: 90%; }
}


/* ==================== MINIMALIST UI REDESIGN (CLEAN, COMPACT, SCANNABLE) ==================== */
:root {
  --bg: #f8fafc;
  --white: #ffffff;
  --card: #ffffff;
  --border: rgba(15, 23, 42, 0.085);
  --border-strong: rgba(15, 23, 42, 0.15);
  --text: #0f172a;
  --muted: #64748b;
  --sidebar-w: 224px;
  --radius: 12px;
}

body {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Slim, airy Sidebar */
.left-sidebar {
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--border);
}
.sidebar-brand {
  height: 58px;
  padding: 0 16px;
}
.gc-brand-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.brand-name, .gc-brand-word {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.sidebar-scroll {
  padding: 10px 10px 14px;
}
.nav-group-label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 11px 10px 4px;
  color: #94a3b8;
}
.side-link {
  padding: 7px 10px;
  margin-bottom: 2px;
  font-size: 0.83rem;
  font-weight: 600;
  border-radius: 8px;
  gap: 9px;
}
.side-link .s-ico {
  width: 16px;
  height: 16px;
  opacity: 0.78;
}
.side-link.active {
  background: rgba(22, 163, 74, 0.1);
  color: var(--green-dark);
}
.side-link.active .s-ico { opacity: 1; }

/* Compact Bottom Support Box */
.sidebar-contact {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
  background: transparent;
}
.sc-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.sc-head {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0;
}
.sc-phone {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.sc-btn.sc-staff {
  width: 100%;
  margin-bottom: 6px;
  padding: 7px 10px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.sc-btn.sc-staff:hover { background: var(--green-dark); }
.sidebar-contact .sc-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 0;
}
.sidebar-contact .sc-btns .sc-btn {
  padding: 5px 4px;
  font-size: 0.73rem;
  border-radius: 7px;
  margin: 0;
}

/* Translucent Clean Topbar */
.main-wrap { margin-left: var(--sidebar-w); }
.topbar {
  height: 58px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.top-search {
  height: 36px;
  border-radius: 9px;
  background: #f1f5f9;
  border-color: transparent;
  max-width: 360px;
}
.top-search:focus-within {
  background: var(--white);
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}
.top-search input { font-size: 0.83rem; }
.topbar-right { gap: 7px; }
.btn, .cart-btn {
  border-radius: 8px;
  font-size: 0.82rem;
}
.btn-sm { padding: 6px 11px; font-size: 0.79rem; }
.cart-btn { height: 34px; padding: 0 11px; font-size: 0.79rem; }

/* Content Spacing & Clean Typography */
.content {
  padding: 20px 26px 52px;
  max-width: 1180px;
}
.page-top {
  margin-bottom: 16px;
  gap: 12px;
}
.page-top h2, .sec-head h2 {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.sec-head h3 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.sec-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Sleek Promo Strip */
.promo-strip {
  padding: 9px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.82rem;
}

/* Modern Minimalist Hero */
.gc-hero {
  padding: 26px 30px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.035);
  gap: 28px;
  margin-bottom: 24px;
}
.gc-pills { gap: 6px; margin-bottom: 12px; }
.gc-pill {
  font-size: 0.73rem;
  padding: 4px 10px;
  border-radius: 999px;
}
.gc-title {
  font-size: 2.1rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}
.gc-sub {
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 460px;
  margin-bottom: 18px;
}
.gc-cta { gap: 8px; margin-bottom: 18px; }
.gc-btn-primary, .gc-btn-white {
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 0.84rem;
}
.gc-meta-dots {
  gap: 14px;
  font-size: 0.78rem;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.gc-hero-art {
  border-radius: 14px;
  max-height: 235px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

/* Compact Feature Cards */
.gc-feat-wrap { margin-top: 0; }
.gc-feat-grid {
  gap: 12px;
}
.gc-fcard {
  padding: 15px 16px;
  border-radius: 13px;
  border: 1px solid var(--border);
  box-shadow: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.gc-fcard:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 163, 74, 0.35);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}
.gc-fico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  margin-bottom: 10px;
}
.gc-fcard h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.gc-fcard p {
  font-size: 0.79rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Compact Rank Tiles */
.rank-grid { gap: 9px; }
.rank-tile {
  padding: 12px 13px;
  border-radius: 11px;
  border: 1px solid var(--border);
  box-shadow: none;
}
.rank-tile:hover {
  border-color: rgba(22, 163, 74, 0.4);
  transform: translateY(-1px);
}
.rank-tile strong { font-size: 0.86rem; }
.rank-tile small { font-size: 0.74rem; color: var(--muted); }
.rt-ico {
  display: inline-block;
  font-size: 0.7rem !important;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--green-dark);
  background: rgba(22, 163, 74, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
  margin-bottom: 6px;
}

/* Filter Panel & Pills */
.filter-panel {
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  box-shadow: none;
}
.rank-pills { gap: 6px; margin-top: 9px; }
.rpill {
  padding: 5px 11px;
  font-size: 0.78rem;
  border-radius: 8px;
}

/* Clean, Uniform Cards with Clamped Text */
.fl-card, .srv-card, .job-row, .res-card, .bp-card, .wiki-card, .forum-card, .scam-box {
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.fl-card:hover, .srv-card:hover, .res-card:hover, .bp-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 163, 74, 0.32);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.055);
}
.fl-title, .srv-desc, .res-desc, .bp-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.81rem;
  line-height: 1.48;
}
.job-row { padding: 14px 16px; }
.job-title { font-size: 0.96rem; margin: 5px 0 4px; }

/* Scannable Pricing Cards */
.pricing-multi, .pricing-3grid { gap: 14px; }
.pcard {
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: none;
}
.pcard-popular {
  border-color: rgba(22, 163, 74, 0.55);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.09);
}
.pcard-head h3 { font-size: 0.98rem; }
.pcard-sub {
  font-size: 0.79rem;
  margin: 4px 0 12px;
  min-height: 0;
}
.pcard-price {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.pcard-list {
  gap: 7px;
  margin-bottom: 16px;
}
.pcard-list li {
  font-size: 0.8rem;
  line-height: 1.4;
}
.pcard-btn {
  margin-top: auto;
  padding: 9px 12px;
  font-size: 0.82rem;
  border-radius: 9px;
}
.service-guarantee {
  margin-top: 16px;
  padding: 11px 16px;
  border-radius: 11px;
  font-size: 0.81rem;
  border: 1px solid var(--border);
}

/* Harmonized Dark Mode for Minimalist Layer */
[data-theme="dark"] {
  --bg: #0b1120;
  --white: #111827;
  --card: #111827;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.24);
  --text: #f8fafc;
  --muted: #94a3b8;
}
[data-theme="dark"] .topbar {
  background: rgba(17, 24, 39, 0.86) !important;
  border-bottom-color: rgba(148, 163, 184, 0.14) !important;
}
[data-theme="dark"] .top-search {
  background: #1e293b !important;
  border-color: transparent !important;
}
[data-theme="dark"] .top-search:focus-within {
  background: #0f172a !important;
  border-color: #22c55e !important;
}
[data-theme="dark"] .gc-hero {
  background: linear-gradient(135deg, #111827 0%, #0f1f1a 100%) !important;
  border-color: rgba(148, 163, 184, 0.14) !important;
}
[data-theme="dark"] .sidebar-contact {
  background: transparent !important;
  border-top-color: rgba(148, 163, 184, 0.14) !important;
}
[data-theme="dark"] .rt-ico {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}
[data-theme="dark"] .fl-card:hover,
[data-theme="dark"] .srv-card:hover,
[data-theme="dark"] .res-card:hover,
[data-theme="dark"] .bp-card:hover,
[data-theme="dark"] .gc-fcard:hover {
  border-color: rgba(74, 222, 128, 0.35) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

/* Dark Mode Fixes: Server IP Row, Exp Badge, Role Badges & Hero Art */
[data-theme="dark"] .srv-ip-row {
  background: #1e293b !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  color: #f8fafc !important;
}
[data-theme="dark"] .srv-ip-row .mono {
  color: #4ade80 !important;
}
[data-theme="dark"] .exp-badge {
  background: rgba(217, 119, 6, 0.14) !important;
  border-color: rgba(245, 158, 11, 0.32) !important;
  color: #fcd34d !important;
}
[data-theme="dark"] .role-badge {
  background: rgba(22, 163, 74, 0.18) !important;
  color: #86efac !important;
}
[data-theme="dark"] .role-badge.staff {
  background: rgba(37, 99, 235, 0.2) !important;
  color: #93c5fd !important;
}
[data-theme="dark"] .role-badge.police {
  background: rgba(220, 38, 38, 0.2) !important;
  color: #fca5a5 !important;
}
[data-theme="dark"] .gc-hero-art {
  border: 1px solid rgba(148, 163, 184, 0.2);
  filter: brightness(0.92) contrast(1.04);
}

/* Responsive Fixes after Minimalist Layer */
@media (max-width: 960px) {
  .main-wrap { margin-left: 0 !important; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar-left { max-width: none; }
  .top-search { max-width: none; }
  .content { padding: 14px 14px 44px; }
  .gc-hero { grid-template-columns: 1fr; padding: 20px 18px; }
  .gc-hero-right { display: none; }
  .cart-btn span:not(.cart-dot) { display: none; }
  .cart-btn { padding: 0 9px; }
}

/* Sleek subtle scrollbar for Sidebar & Chat in both themes */
.sidebar-scroll, .dm-thread-list, .dm-msg-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.28) transparent;
}
.sidebar-scroll::-webkit-scrollbar,
.dm-thread-list::-webkit-scrollbar,
.dm-msg-scroll::-webkit-scrollbar {
  width: 5px;
}
.sidebar-scroll::-webkit-scrollbar-track,
.dm-thread-list::-webkit-scrollbar-track,
.dm-msg-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-scroll::-webkit-scrollbar-thumb,
.dm-thread-list::-webkit-scrollbar-thumb,
.dm-msg-scroll::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.28);
  border-radius: 999px;
}
[data-theme="dark"] .menu-toggle {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.24);
  color: #f8fafc;
}


/* ==================== ETA PILL & NHANHOA-STYLE 2-COLUMN CHECKOUT ==================== */
.pcard-eta {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-dark);
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.22);
  padding: 3px 8px;
  border-radius: 6px;
  margin: 6px 0 4px;
}
[data-theme="dark"] .pcard-eta {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(74, 222, 128, 0.28);
}

.modal.modal-checkout {
  max-width: 820px;
  width: 96vw;
  padding: 20px 22px;
}
.nh-co-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  padding-right: 28px;
}
.nh-co-eta {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--green-dark);
  background: rgba(22, 163, 74, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}
.nh-checkout-grid {
  display: grid;
  grid-template-columns: 1.28fr 0.92fr;
  gap: 16px;
  align-items: start;
}
.nh-pay-tabs {
  margin-bottom: 10px;
}
.nh-qr-card, .nh-wallet-pane {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.nh-qr-split {
  display: grid;
  grid-template-columns: 156px 1fr;
  gap: 14px;
  align-items: center;
}
.nh-qr-img {
  width: 156px;
  height: 156px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--border);
  display: block;
}
.nh-qr-placeholder {
  padding: 14px 10px;
  border-radius: 10px;
  border: 1px dashed var(--border-strong);
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
.nh-bank-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nh-kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.81rem;
}
.nh-kv span { color: var(--muted); flex-shrink: 0; }
.nh-kv-val {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nh-kv-code {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.06);
  border: 1px dashed rgba(220, 38, 38, 0.25);
}
.nh-poll-note {
  margin-top: 9px;
  font-size: 0.76rem;
  color: var(--green-dark);
  font-weight: 600;
  text-align: center;
}

/* Right Summary Panel — NhanHoa Card Style */
.nh-co-summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: 12px;
  padding: 15px 16px;
}
.nh-sum-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.nh-sum-item {
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 10px;
}
.nh-sum-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.nh-sum-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 3px;
}
.nh-sum-coupon {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}
.nh-sum-applied {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(22, 163, 74, 0.1);
  color: var(--green-dark);
  margin-bottom: 10px;
}
.nh-sum-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nh-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
}
.nh-sum-row span { color: var(--muted); }
.nh-sum-total {
  padding-top: 9px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}
.nh-sum-total span { color: var(--text); font-weight: 700; }
.nh-sum-total strong {
  font-size: 1.18rem;
  color: var(--green-dark);
  font-weight: 800;
}
.nh-sum-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.45;
}

[data-theme="dark"] .nh-co-eta,
[data-theme="dark"] .nh-sum-title,
[data-theme="dark"] .nh-sum-total strong,
[data-theme="dark"] .nh-sum-applied {
  color: #4ade80;
}
[data-theme="dark"] .nh-co-summary {
  background: #0f172a;
}
[data-theme="dark"] .nh-kv-code {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(248, 113, 113, 0.3);
}

@media (max-width: 760px) {
  .nh-checkout-grid { grid-template-columns: 1fr; }
  .nh-qr-split { grid-template-columns: 1fr; text-align: center; }
  .nh-qr-img { margin: 0 auto; }
}

/* Checkout Tabs & Dark Mode Contrast Polish */
.nh-pay-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 5px !important;
  padding: 4px !important;
  border-radius: 10px !important;
}
.nh-pay-tabs .pay-tab {
  flex: 1 1 0 !important;
  white-space: nowrap !important;
  padding: 7px 8px !important;
  font-size: 0.78rem !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: none !important;
}
.nh-pay-tabs .pay-tab.active {
  background: var(--white) !important;
  color: var(--green-dark) !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
[data-theme="dark"] .pay-tabs {
  background: #0f172a !important;
  border: 1px solid rgba(148, 163, 184, 0.16);
}
[data-theme="dark"] .pay-tab {
  background: transparent !important;
  color: #cbd5e1 !important;
  border: none !important;
}
[data-theme="dark"] .pay-tab:hover {
  color: #ffffff !important;
}
[data-theme="dark"] .pay-tab.active {
  background: #1e293b !important;
  color: #4ade80 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.nh-qr-split {
  grid-template-columns: 142px minmax(0, 1fr);
}
.nh-qr-img {
  width: 142px;
  height: 142px;
}
.nh-kv {
  flex-wrap: wrap;
}
.nh-kv-val {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nh-kv-val strong.mono {
  word-break: break-all;
}


/* ==================== COMPLETE DARK MODE COVERAGE (ZERO WHITE-ON-WHITE BOXES) ==================== */
[data-theme="dark"] .fcheck {
  background: #1e293b !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  color: #f1f5f9 !important;
}
[data-theme="dark"] .fcheck:hover {
  background: #263549 !important;
  border-color: rgba(74, 222, 128, 0.45) !important;
}
[data-theme="dark"] .fcheck span,
[data-theme="dark"] .fcheck label {
  color: #f1f5f9 !important;
}
[data-theme="dark"] .fcheck b,
[data-theme="dark"] .fcheck strong {
  color: #4ade80 !important;
}
[data-theme="dark"] .choice-card.active {
  background: rgba(22, 163, 74, 0.2) !important;
  border-color: #22c55e !important;
  color: #86efac !important;
}
[data-theme="dark"] .modal-close {
  background: #1e293b !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  color: #f8fafc !important;
}
[data-theme="dark"] .modal-close:hover {
  background: #334155 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .free-included-box,
[data-theme="dark"] .fee-calc-box {
  background: rgba(22, 163, 74, 0.12) !important;
  border-color: rgba(74, 222, 128, 0.3) !important;
  color: #dcfce7 !important;
}
[data-theme="dark"] .forum-comments,
[data-theme="dark"] .cmt-item,
[data-theme="dark"] .q-card,
[data-theme="dark"] .hstat,
[data-theme="dark"] .lock-card {
  background: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  color: #e2e8f0 !important;
}
[data-theme="dark"] .opt-label {
  background: #1e293b !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  color: #e2e8f0 !important;
}
[data-theme="dark"] .opt-label:hover {
  background: #263549 !important;
  border-color: #22c55e !important;
}
[data-theme="dark"] .exam-section-title,
[data-theme="dark"] .wiki-fact {
  background: rgba(37, 99, 235, 0.16) !important;
  border-color: rgba(96, 165, 250, 0.32) !important;
  color: #bfdbfe !important;
}
[data-theme="dark"] .anticheat-bar {
  background: rgba(220, 38, 38, 0.14) !important;
  border-color: rgba(248, 113, 113, 0.32) !important;
  color: #fecaca !important;
}
[data-theme="dark"] .scam-result.safe {
  background: rgba(22, 163, 74, 0.14) !important;
  border-color: rgba(74, 222, 128, 0.35) !important;
  color: #bbf7d0 !important;
}
[data-theme="dark"] .scam-result.unknown {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(251, 191, 36, 0.35) !important;
  color: #fde68a !important;
}
[data-theme="dark"] .scam-result.danger,
[data-theme="dark"] .scan-result-box.bad {
  background: rgba(220, 38, 38, 0.14) !important;
  border-color: rgba(248, 113, 113, 0.35) !important;
  color: #fecaca !important;
}
[data-theme="dark"] .res-shield {
  background: rgba(22, 163, 74, 0.16) !important;
  border-color: rgba(74, 222, 128, 0.3) !important;
  color: #86efac !important;
}
[data-theme="dark"] .res-shield.pend {
  background: rgba(245, 158, 11, 0.16) !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
  color: #fde68a !important;
}
[data-theme="dark"] .coupon-suggest-btn {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(251, 191, 36, 0.35) !important;
  color: #fde68a !important;
}
[data-theme="dark"] .btn-google {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
}
[data-theme="dark"] .bp-controls,
[data-theme="dark"] .bp-side-panel,
[data-theme="dark"] .bp-tabs,
[data-theme="dark"] .bp-2d-wrap,
[data-theme="dark"] .bp-measure-card,
[data-theme="dark"] .bp-mat-row,
[data-theme="dark"] .bp-thumb-wrap,
[data-theme="dark"] .rs-bar,
[data-theme="dark"] .rs-seg-group,
[data-theme="dark"] .rs-left,
[data-theme="dark"] .rs-right,
[data-theme="dark"] .rs-rpBody,
[data-theme="dark"] .rs-guide,
[data-theme="dark"] .rs-left-tip,
[data-theme="dark"] .rs-rtabs,
[data-theme="dark"] .rs-cat-tabs,
[data-theme="dark"] .rs-sel-sm,
[data-theme="dark"] .rs-lesson-sel {
  background: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  color: #e2e8f0 !important;
}
[data-theme="dark"] .rs-ctab {
  background: #1e293b !important;
  color: #cbd5e1 !important;
}
[data-theme="dark"] .rs-ctab.active {
  background: rgba(22, 163, 74, 0.22) !important;
  color: #86efac !important;
}
[data-theme="dark"] .rs-steps-txt {
  color: #cbd5e1 !important;
}
[data-theme="dark"] .rs-pill-hud {
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #e2e8f0 !important;
}
[data-theme="dark"] .rs-cam-bar button {
  color: #cbd5e1 !important;
}
[data-theme="dark"] .rs-cam-bar button:hover {
  background: #334155 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .bp-tab.active,
[data-theme="dark"] .rs-seg.active,
[data-theme="dark"] .rs-rtab.active,
[data-theme="dark"] .rs-tile {
  background: #1e293b !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  color: #f8fafc !important;
}
[data-theme="dark"] .rs-tile.active {
  background: rgba(22, 163, 74, 0.2) !important;
  border-color: #22c55e !important;
  color: #86efac !important;
}
[data-theme="dark"] .btier {
  filter: brightness(0.92);
}
[data-theme="dark"] .user-chip:hover {
  background: #334155 !important;
}
.modal {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.32) transparent;
}
.modal::-webkit-scrollbar { width: 6px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, 0.32); border-radius: 999px; }

/* Autonomous Order Delivery Box, Agent Status Pills & 5-Star Rating Picker */
.agent-state-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.agent-state-pill.ab-queue { background: rgba(59, 130, 246, 0.14); color: #2563eb; border-color: rgba(59, 130, 246, 0.28); }
.agent-state-pill.ab-build { background: rgba(14, 165, 233, 0.14); color: #0284c7; border-color: rgba(14, 165, 233, 0.28); }
.agent-state-pill.ab-ask { background: rgba(245, 158, 11, 0.16); color: #b45309; border-color: rgba(245, 158, 11, 0.34); }
.agent-state-pill.ab-ready { background: rgba(22, 163, 74, 0.15); color: #15803d; border-color: rgba(22, 163, 74, 0.35); }
.agent-state-pill.ab-done { background: rgba(16, 185, 129, 0.18); color: #047857; border-color: rgba(16, 185, 129, 0.38); }
[data-theme="dark"] .agent-state-pill.ab-queue { color: #93c5fd; }
[data-theme="dark"] .agent-state-pill.ab-build { color: #7dd3fc; }
[data-theme="dark"] .agent-state-pill.ab-ask { color: #fcd34d; }
[data-theme="dark"] .agent-state-pill.ab-ready { color: #86efac; }
[data-theme="dark"] .agent-state-pill.ab-done { color: #6ee7b7; }

.delivery-box {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
}
[data-theme="dark"] .delivery-box {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.24);
}
.delivery-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text);
}
.delivery-note {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
}
.delivery-report {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.24);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-x: auto;
  max-height: 170px;
}
[data-theme="dark"] .delivery-report {
  background: rgba(22, 163, 74, 0.14);
  border-color: rgba(74, 222, 128, 0.28);
  color: #dcfce7;
}
.rating-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(22, 163, 74, 0.16);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.34);
}
[data-theme="dark"] .rating-verified-pill {
  color: #86efac;
  background: rgba(22, 163, 74, 0.22);
}
.delivery-review-quote {
  margin-top: 8px;
  padding-left: 10px;
  border-left: 3px solid var(--green);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--muted);
}
.star-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 4px;
}
.star-btn {
  background: transparent;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  color: #cbd5e1;
  transition: transform 0.12s ease, color 0.12s ease;
  padding: 2px 4px;
}
[data-theme="dark"] .star-btn {
  color: #475569;
}
.star-btn:hover {
  transform: scale(1.16);
}
.star-btn.active {
  color: #f59e0b;
}
.star-label {
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.promo-upload-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
}
[data-theme="dark"] .promo-upload-field {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.28);
}
