:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --secondary: #0d9488;
  --accent: #f59e0b;
  --danger: #e11d48;
  --success: #16a34a;
  --bg-main: #f4f6f9;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.16);
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-scale: 1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: calc(16px * var(--font-scale));
  background-color: var(--bg-main);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

/* TOP HEADER BAR */
.topbar {
  height: 68px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  z-index: 100;
  flex-shrink: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: #f1f5f9;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  font-size: 1.25rem;
}

.icon-btn:hover, .icon-btn:active {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: scale(0.96);
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-parent {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.topbar-hotline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  color: #dc2626;
  border: 1.5px solid #fecaca;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.08);
}

.topbar-hotline strong {
  font-weight: 800;
  font-size: 1.05rem;
}

.topbar-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.breadcrumb-pill {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  display: none;
  align-items: center;
  gap: 8px;
}

.breadcrumb-pill.active {
  display: inline-flex;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 9px 18px;
  border-radius: 999px;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}

.search-trigger-btn:hover, .search-trigger-btn:active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.clock-box {
  text-align: right;
  padding: 0 10px;
  border-left: 1px solid #e2e8f0;
}

.clock-time {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.clock-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* MAIN WORKSPACE */
.main-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 28px;
  position: relative;
  scroll-behavior: smooth;
}

.main-container::-webkit-scrollbar {
  width: 10px;
}
.main-container::-webkit-scrollbar-track {
  background: #e2e8f0;
}
.main-container::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 6px;
}

/* WELCOME BANNER (OPTIONAL SUBTLE HEADER ON HOME) */
.home-banner {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 60%, #0f766e 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 26px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.home-banner-left h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.home-banner-left p {
  font-size: 0.95rem;
  opacity: 0.92;
}

.home-banner-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.banner-chip {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* HOME GRID - MATCHES APPSHEET KIOSK CARDS */
.kiosk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

@media (min-width: 1280px) {
  .kiosk-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1280px) {
  .kiosk-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1650px) {
  .kiosk-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

.kiosk-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  min-height: 245px;
  justify-content: space-between;
}

.kiosk-card:hover, .kiosk-card:active {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #7dd3fc;
}

.kiosk-card-art {
  width: 155px;
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
}

.kiosk-card-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kiosk-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  width: 100%;
  text-align: left;
  padding: 0 4px;
  line-height: 1.35;
}

.kiosk-card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 100%;
  text-align: left;
  padding: 0 4px;
  margin-top: 3px;
}

/* SECTION HEADER IN SUBVIEWS */
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  background: #fff;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 12px;
}

.view-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.back-btn-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid #bae6fd;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.back-btn-large:active {
  transform: scale(0.96);
}

.view-title-group h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.view-title-group p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* TABLE / LIST VIEW (MATCHES SCREENSHOT 2 - THỦ TỤC HÀNH CHÍNH) */
.procedure-table-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.procedure-list-header {
  display: grid;
  grid-template-columns: 50px 1fr 340px 210px 140px;
  column-gap: 36px;
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 2px solid var(--border-color);
  font-weight: 800;
  color: #0f172a;
  font-size: 0.98rem;
}

.procedure-row {
  display: grid;
  grid-template-columns: 50px 1fr 340px 210px 140px;
  column-gap: 36px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  cursor: pointer;
  transition: background 0.15s;
}

.procedure-row:last-child {
  border-bottom: none;
}

.procedure-row:hover, .procedure-row:active {
  background: #f0f9ff;
}

.proc-stt {
  font-weight: 700;
  color: #334155;
  font-size: 1.05rem;
}

.proc-main {
  padding-right: 16px;
}

.proc-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
}

.proc-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.proc-dept {
  font-size: 0.94rem;
  color: #334155;
  font-weight: 500;
  line-height: 1.45;
  padding-right: 12px;
}

.proc-duration {
  font-size: 0.88rem;
  color: #0f766e;
  font-weight: 600;
}

.proc-action {
  display: flex;
  justify-content: flex-end;
}

.btn-open-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

@media (max-width: 1024px) {
  .procedure-list-header {
    grid-template-columns: 60px 1fr 120px;
  }
  .procedure-list-header .hide-tablet,
  .procedure-row .hide-tablet {
    display: none;
  }
  .procedure-row {
    grid-template-columns: 60px 1fr 120px;
  }
}

/* SUB-CARDS VIEW (MATCHES SCREENSHOT 3 - TỔ CHỨC BỘ MÁY) */
.subcards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.subcard-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.subcard-item:hover, .subcard-item:active {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.subcard-thumb {
  width: 100%;
  height: 200px;
  background: #f8fafc;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid #f1f5f9;
}

.subcard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.subcard-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.subcard-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex: 1;
}

/* MODE TABS */
.mode-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mode-tab {
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}

.mode-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

/* SERVICE PRICES LOOKUP */
.price-controls {
  background: #fff;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.search-bar-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.touch-search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.touch-search-input {
  width: 100%;
  padding: 14px 48px 14px 46px;
  font-size: 1.05rem;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s;
  user-select: text;
}

.touch-search-input:focus {
  border-color: var(--primary);
  background: #f8fafc;
}

.search-icon-left {
  position: absolute;
  left: 16px;
  color: #64748b;
  font-size: 1.2rem;
}

.clear-input-btn {
  position: absolute;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  color: #475569;
  font-weight: bold;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.Filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-chip.active {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.price-table th {
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  text-align: left;
  padding: 16px 20px;
  border-bottom: 2px solid #cbd5e1;
  font-size: 0.94rem;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.price-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.98rem;
  color: #1e293b;
}

.price-table tbody tr.dvkt-item-row {
  cursor: pointer;
  transition: background 0.14s;
}

.price-table tbody tr.dvkt-item-row:hover,
.price-table tbody tr.dvkt-item-row:active {
  background: #f0f9ff;
}

.price-table tbody tr.dvkt-group-row td {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 14px 20px;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
}

.price-type-list-header {
  display: grid;
  grid-template-columns: 70px 1fr 180px 50px;
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 2px solid var(--border-color);
  font-weight: 800;
  color: #0f172a;
  font-size: 0.98rem;
}

.price-type-row {
  display: grid;
  grid-template-columns: 70px 1fr 180px 50px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  cursor: pointer;
  transition: background 0.15s;
}

.price-type-row:last-child {
  border-bottom: none;
}

.price-type-row:hover, .price-type-row:active {
  background: #f0f9ff;
}

.price-badge {
  font-weight: 800;
  color: #0369a1;
  font-size: 1.05rem;
}

.group-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.82rem;
  font-weight: 700;
}

/* HOSPITAL MAP INTERACTIVE & ORIGINAL VIEW */
.map-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 1100px) {
  .map-layout {
    grid-template-columns: 1fr;
  }
}

.campus-diagram-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.campus-Quick-Finder {
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.finder-chip {
  padding: 7px 13px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
}

.finder-chip:hover, .finder-chip.active {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

.building-detail-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.floor-item {
  border-left: 4px solid var(--primary);
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 12px;
}

.floor-name {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1rem;
  margin-bottom: 6px;
}

.dept-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dept-tag {
  background: #fff;
  border: 1px solid #cbd5e1;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
}

.dept-tag.highlight {
  background: #fef08a;
  border-color: #eab308;
  color: #854d0e;
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.3);
}

/* ORIGINAL IMAGE VIEWER (WITH ZOOM & PAN + DONE BUTTON LIKE SCREENSHOT 4) */
.image-viewer-box {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 230px);
  min-height: 480px;
}

.image-viewer-toolbar {
  padding: 12px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.image-stage {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 20px;
}

.image-stage img {
  transition: transform 0.2s ease;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.done-footer-bar {
  padding: 12px;
  background: #fff;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
}

.btn-done-appsheet {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 12px 36px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

/* TOUCH PDF VIEWER MODAL */
.pdf-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: none;
  flex-direction: column;
}

.pdf-modal-backdrop.open {
  display: flex;
}

.pdf-topbar {
  height: 66px;
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid #334155;
  flex-shrink: 0;
}

.pdf-doc-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
}

.pdf-controls-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-btn {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #475569;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.pdf-btn:hover, .pdf-btn:active {
  background: var(--primary);
  border-color: var(--primary);
}

.pdf-btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pdf-page-indicator {
  background: #334155;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.pdf-Viewport {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 24px;
  background: #334155;
  scroll-behavior: smooth;
}

.pdf-page-canvas-wrap {
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  position: relative;
  margin: 0 auto;
  flex-shrink: 0;
}

.pdf-bottombar {
  height: 64px;
  background: #fff;
  border-top: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}

/* BOTTOM NAVIGATION BAR (MATCHES APPSHEET KIOSK FOOTER) */
.bottom-nav {
  height: 66px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 20px;
  flex-shrink: 0;
  z-index: 90;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 28px;
  border-radius: 12px;
  transition: all 0.15s;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
}

.bottom-nav-item.active {
  color: var(--primary);
  background: #f0f9ff;
  font-weight: 700;
}

/* ON-SCREEN VIRTUAL KEYBOARD FOR TOUCH KIOSK */
.virtual-keyboard-drawer {
  position: fixed;
  bottom: 66px;
  left: 0;
  right: 0;
  background: #1e293b;
  padding: 14px 18px 18px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
  z-index: 650;
  display: none;
  flex-direction: column;
  gap: 10px;
  border-top: 2px solid #38bdf8;
}

.virtual-keyboard-drawer.open {
  display: flex;
}

.vk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #cbd5e1;
  font-size: 0.88rem;
  padding-bottom: 4px;
}

.vk-suggestions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.vk-suggest-chip {
  background: #334155;
  color: #38bdf8;
  border: 1px solid #475569;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.vk-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.vk-key {
  min-width: 54px;
  height: 50px;
  padding: 0 12px;
  border-radius: 8px;
  border: none;
  background: #f8fafc;
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 0 #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s;
}

.vk-key:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #94a3b8;
  background: #bae6fd;
}

.vk-key.wide {
  min-width: 110px;
  background: #cbd5e1;
}

.vk-key.space {
  min-width: 320px;
}

.vk-key.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 3px 0 #0369a1;
}

/* GLOBAL SEARCH MODAL & POPUPS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(3px);
  z-index: 550;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 75px;
}

.modal-overlay.open {
  display: flex;
}

#qrPopupModal {
  z-index: 750;
  align-items: center;
  padding-top: 0;
}

.modal-card {
  background: #fff;
  width: 92%;
  max-width: 880px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 18px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

/* IDLE RESET TOAST */
.idle-toast {
  position: fixed;
  bottom: 85px;
  right: 24px;
  background: #0f172a;
  color: #fff;
  padding: 16px 22px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 850;
  display: none;
  align-items: center;
  gap: 16px;
  border: 2px solid #38bdf8;
}

.idle-toast.show {
  display: flex;
}
