:root {
  --bg-app: #0a0e14;
  --bg-navbar: #111722;
  --bg-surface: #16202c;
  --bg-surface-elevated: #1d2b3a;
  --bg-surface-subtle: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(82, 136, 193, 0.4);
  
  --color-primary: #5288c1;
  --color-primary-hover: #639bd6;
  --color-primary-dim: rgba(82, 136, 193, 0.14);
  
  --color-bubble-me: linear-gradient(135deg, #2b5278 0%, #356391 100%);
  --color-bubble-partner: #182533;
  
  --color-text-title: #f8fafc;
  --color-text-body: #cbd5e1;
  --color-text-muted: #7e8b9b;
  
  --color-success: #38a169;
  --color-danger: #e53935;
  --color-gold: #f59e0b;
  --color-gold-bright: #fbbf24;
  --color-gold-dim: rgba(245, 158, 11, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body.tg-theme {
  background-color: var(--bg-app);
  color: var(--color-text-body);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

#app-root {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-app);
  position: relative;
}

.hidden { display: none !important; }

/* --- TOP NAVBAR --- */
.app-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-navbar);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #2b5278, #5288c1);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.brand-avatar.gold-avatar {
  background: linear-gradient(135deg, #8a5a17, #f59e0b);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
}

.avatar-initials {
  font-weight: 800;
  font-size: 0.8rem;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.online-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--color-success);
  border: 2px solid var(--bg-navbar);
}

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

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-title);
  letter-spacing: -0.01em;
}

.brand-status {
  font-size: 0.72rem;
  color: var(--color-primary);
  font-weight: 500;
}

.tier-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.tier-regular {
  background: var(--bg-surface-subtle);
  color: var(--color-text-muted);
  border: 1px solid var(--border-subtle);
}

.tier-vip {
  background: var(--color-gold-dim);
  color: var(--color-gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.nav-icon-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon-btn:active {
  background: rgba(255, 255, 255, 0.08);
}

/* --- SEGMENTED CONTROL TABS --- */
.nav-segment-bar,
.segmented-control {
  display: flex;
  background: var(--bg-navbar);
  padding: 6px 12px 8px;
  gap: 6px;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 63px;
  z-index: 90;
}

.seg-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.seg-tab.active {
  background: var(--bg-surface);
  color: var(--color-text-title);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* --- TOAST NOTIFICATION --- */
.toast-container {
  position: fixed;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 250;
  pointer-events: none;
}

.toast-bubble {
  background: rgba(22, 32, 44, 0.95);
  border: 1px solid var(--border-subtle);
  color: var(--color-text-title);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- MAIN VIEWPORT --- */
.main-viewport {
  flex: 1;
  padding: 14px 14px 24px;
  display: flex;
  flex-direction: column;
}

.tab-pane {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.tab-pane.active {
  display: flex;
}

/* --- VIP GOLD MEMBERSHIP PASS CARD (RADAR) --- */
.gold-membership-card {
  background: linear-gradient(135deg, #1b160d 0%, #261d10 50%, #151109 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 6px 24px -4px rgba(245, 158, 11, 0.25);
  position: relative;
  overflow: hidden;
}

.gold-membership-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.gold-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gold-chip {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.gold-tier-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-gold);
  letter-spacing: 0.8px;
}

.gold-card-middle {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.gold-holder-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.gold-membership-id {
  font-size: 0.72rem;
  color: #fde68a;
  font-family: 'JetBrains Mono', monospace;
}

.gold-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  padding-top: 8px;
}

.gold-privilege {
  font-size: 0.7rem;
  color: #fde68a;
  font-weight: 600;
}

.gold-expiry {
  font-size: 0.7rem;
  color: #ffffff;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
}

/* --- HIGH PRECISION RADAR INSTRUMENT --- */
.radar-instrument-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.radar-instrument-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.radar-instrument {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, rgba(13, 19, 28, 0.98) 75%);
  border: 2px solid rgba(56, 189, 248, 0.45);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.22), inset 0 0 24px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  user-select: none;
}

.radar-instrument:hover {
  box-shadow: 0 0 36px rgba(56, 189, 248, 0.38), inset 0 0 24px rgba(0, 0, 0, 0.7);
}

.radar-instrument:active {
  transform: scale(0.96);
}

.radar-svg-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.grid-ring {
  fill: none;
  stroke: rgba(56, 189, 248, 0.2);
  stroke-width: 1;
}

.ring-outer { stroke: rgba(56, 189, 248, 0.45); }

.grid-axis {
  stroke: rgba(56, 189, 248, 0.15);
  stroke-width: 1;
}

/* ROTATING CONE & SCAN LINE */
.radar-sweep-cone {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg at 50% 50%, rgba(56, 189, 248, 0.45) 0deg, rgba(56, 189, 248, 0.12) 35deg, transparent 75deg);
  animation: radar-spin 2.6s linear infinite;
  pointer-events: none;
}

.radar-scan-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.3) 0%, #38bdf8 100%);
  box-shadow: 0 0 10px #38bdf8, 0 0 4px #ffffff;
  transform-origin: 0% 50%;
  animation: radar-spin-line 2.6s linear infinite;
  pointer-events: none;
}

@keyframes radar-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes radar-spin-line {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-center-blip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 14px #38bdf8, 0 0 4px #ffffff;
  z-index: 5;
  pointer-events: none;
}

.radar-active-blip {
  position: absolute;
  border-radius: 50%;
  background: #38bdf8;
  pointer-events: none;
}

.blip-alpha {
  width: 6px;
  height: 6px;
  top: 42px;
  right: 48px;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse-dot 2.4s infinite;
}

.blip-beta {
  width: 6px;
  height: 6px;
  bottom: 38px;
  left: 44px;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse-dot 3s infinite 1s;
}

.blip-gamma {
  width: 5px;
  height: 5px;
  top: 68px;
  left: 36px;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse-dot 2.8s infinite 0.5s;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.25); }
}

.radar-interactive-ping {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.4);
  border: 1.5px solid #38bdf8;
  box-shadow: 0 0 16px #38bdf8;
  pointer-events: none;
  animation: ping-expand 1.2s cubic-bezier(0, 0, 0.2, 1) forwards;
}

@keyframes ping-expand {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(3.8); opacity: 0; }
}

.radar-range-badge {
  position: absolute;
  bottom: -10px;
  background: #111722;
  border: 1.5px solid #38bdf8;
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 14px;
  border-radius: var(--radius-pill);
  z-index: 25;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 10px rgba(56, 189, 248, 0.35);
  pointer-events: none;
  letter-spacing: 0.4px;
}

.radar-meta { text-align: center; }
.radar-headline { font-size: 0.95rem; font-weight: 700; color: var(--color-text-title); margin-bottom: 2px; }
.radar-description { font-size: 0.74rem; color: var(--color-text-muted); line-height: 1.35; max-width: 290px; }

/* --- INSET CARD GROUPS --- */
.inset-card-group {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.inset-header {
  padding: 12px 16px 4px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.6px;
}

.inset-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}

.inset-row:last-child { border-bottom: none; }
.inset-row.flex-column { flex-direction: column; align-items: stretch; gap: 8px; }

.row-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-blue { background: rgba(82, 136, 193, 0.15); color: #5288c1; }
.icon-gold { background: rgba(245, 158, 11, 0.15); color: var(--color-gold); }

.row-main { flex: 1; display: flex; flex-direction: column; }
.row-title { font-size: 0.85rem; font-weight: 600; color: var(--color-text-title); }
.row-subtitle { font-size: 0.74rem; color: var(--color-text-muted); font-weight: 400; }
.row-split-label { display: flex; justify-content: space-between; align-items: center; }
.row-hint { font-size: 0.7rem; color: var(--color-text-muted); }
.range-display-val { font-size: 0.85rem; font-weight: 700; color: #64b5f6; }

/* QUOTA ROW ELEMENTS */
.quota-head-row { display: flex; justify-content: space-between; align-items: center; }
.row-label { font-size: 0.85rem; font-weight: 600; color: var(--color-text-title); }
.quota-stat-bold { font-size: 0.95rem; font-weight: 800; color: #64b5f6; }

.progress-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.quota-foot-row { display: flex; justify-content: space-between; align-items: center; }
.btn-text-action { background: none; border: none; color: var(--color-gold); font-size: 0.75rem; font-weight: 700; cursor: pointer; }

.pill-status-active {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--color-success);
  background: rgba(56, 161, 105, 0.15);
  border: 1px solid rgba(56, 161, 105, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
}

.pill-status-active.gold {
  color: var(--color-gold);
  background: var(--color-gold-dim);
  border-color: rgba(245, 158, 11, 0.4);
}

.btn-pill-action {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.segmented-pills { display: flex; gap: 6px; margin-top: 4px; }
.seg-pill {
  flex: 1;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.seg-pill.active { background: var(--color-primary); color: #ffffff; border-color: transparent; }
.slider-container { padding: 2px 2px; }
input[type=range] { width: 100%; accent-color: var(--color-primary); margin: 6px 0; }
.slider-scale-labels { display: flex; justify-content: space-between; font-size: 0.65rem; color: var(--color-text-muted); font-weight: 500; }

.actions-group { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.btn-primary-action, .btn-secondary-action, .btn-danger-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.btn-primary-action:active, .btn-secondary-action:active, .btn-danger-action:active { transform: scale(0.985); }
.btn-primary-action { background: var(--color-primary); color: #ffffff; }
.btn-secondary-action { background: var(--bg-surface); color: var(--color-text-title); border: 1px solid var(--border-subtle); }
.btn-danger-action { background: var(--color-danger); color: #ffffff; }

/* --- SEARCHING STATE --- */
.search-state-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 20px 24px;
  gap: 12px;
  min-height: 55vh;
  animation: fade-in 0.3s ease;
}

/* --- HOLOGRAPHIC SEARCHING RADAR --- */
.holo-radar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
  position: relative;
}

.holo-radar-instrument {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(10, 16, 26, 0.98) 75%);
  border: 2px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.28), inset 0 0 30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  user-select: none;
}

.holo-radar-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.holo-grid-ring {
  fill: none;
  stroke: rgba(56, 189, 248, 0.22);
  stroke-width: 1;
}

.r-outer { stroke: rgba(56, 189, 248, 0.5); stroke-dasharray: 4 3; }
.r-mid3 { stroke: rgba(56, 189, 248, 0.3); }
.r-mid2 { stroke: rgba(56, 189, 248, 0.25); }
.r-mid1 { stroke: rgba(56, 189, 248, 0.35); }

.holo-axis {
  stroke: rgba(56, 189, 248, 0.2);
  stroke-width: 1;
  stroke-dasharray: 2 2;
}

.holo-diag {
  stroke: rgba(56, 189, 248, 0.1);
  stroke-width: 0.8;
}

.holo-text-angle {
  fill: rgba(56, 189, 248, 0.5);
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 700;
}

/* ROTATING SCAN BEAM & CONE */
.holo-sweep-cone {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg at 50% 50%, rgba(56, 189, 248, 0.6) 0deg, rgba(56, 189, 248, 0.15) 40deg, transparent 90deg);
  animation: holo-spin 2.2s linear infinite;
  pointer-events: none;
}

.holo-scan-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2.5px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2) 0%, #ffffff 100%);
  box-shadow: 0 0 12px #38bdf8, 0 0 4px #ffffff;
  transform-origin: 0% 50%;
  animation: holo-spin 2.2s linear infinite;
  pointer-events: none;
}

@keyframes holo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* SONAR PULSE WAVES */
.holo-sonar-wave {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  animation: holo-wave 2.4s cubic-bezier(0.1, 0.2, 0.3, 1) infinite;
  pointer-events: none;
}

.holo-sonar-wave.wave-1 { width: 100%; height: 100%; }
.holo-sonar-wave.wave-2 { width: 100%; height: 100%; animation-delay: 1.2s; }

@keyframes holo-wave {
  0% { transform: scale(0.15); opacity: 1; }
  100% { transform: scale(1.1); opacity: 0; }
}

/* CENTER BEACON */
.holo-center-point {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 16px #38bdf8, 0 0 6px #ffffff;
  z-index: 10;
  position: relative;
  pointer-events: none;
}

.holo-center-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.4);
  animation: beacon-pulse 1.4s ease-out infinite;
}

@keyframes beacon-pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* TARGET BLIPS */
.holo-target-blip {
  position: absolute;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8, 0 0 4px #ffffff;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.holo-target-blip .blip-label {
  position: absolute;
  top: -14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(10, 16, 26, 0.85);
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.holo-target-blip.blip-1 {
  width: 7px;
  height: 7px;
  top: 48px;
  right: 52px;
  animation: holo-blip-pulse 2.2s infinite;
}

.holo-target-blip.blip-2 {
  width: 7px;
  height: 7px;
  bottom: 56px;
  left: 46px;
  animation: holo-blip-pulse 2.8s infinite 0.7s;
}

.holo-target-blip.blip-3 {
  width: 6px;
  height: 6px;
  top: 92px;
  left: 38px;
  animation: holo-blip-pulse 2.4s infinite 1.3s;
}

@keyframes holo-blip-pulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  45%, 55% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 16px #38bdf8, 0 0 6px #ffffff; }
}

/* HUD FREQUENCY BADGE */
.holo-hud-badge {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 16, 26, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 10px;
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.holo-hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
  animation: beacon-pulse 1s infinite;
}

.search-timer-pill {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 1px;
  margin-bottom: 2px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.search-timeout-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  border: 1.5px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

.search-state-title { font-size: 1.2rem; font-weight: 800; color: var(--color-text-title); }
.search-state-desc { font-size: 0.78rem; color: var(--color-text-muted); max-width: 290px; line-height: 1.4; }

/* ==========================================================
   --- CHAT ROOM REDESIGN (LUXURY TELEGRAM EDITION) ---
   ========================================================== */

.chat-room-layout {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 132px);
  gap: 8px;
}

/* FLOATING HEADER PARTNER CARD */
.chat-header-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.chat-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.chat-partner-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.partner-avatar-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f2d3d, #2b3e55);
  border: 1px solid rgba(82, 136, 193, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.partner-avatar-txt {
  font-size: 0.85rem;
  font-weight: 800;
  color: #64b5f6;
}

.partner-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  position: absolute;
  bottom: -1px;
  right: -1px;
  border: 2px solid var(--bg-surface);
}

.partner-live-dot.status-active {
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
  animation: pulse-green 2s infinite;
}

.partner-live-dot.status-inactive {
  background: var(--color-text-muted);
}

@keyframes pulse-green {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.partner-text-block {
  display: flex;
  flex-direction: column;
}

.partner-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.partner-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-title);
}

.partner-badge-status {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
}

.partner-badge-status.active-badge {
  background: rgba(56, 161, 105, 0.2);
  color: #4ade80;
}

.partner-distance-indicator {
  font-size: 0.7rem;
  color: #64b5f6;
  font-weight: 600;
}

/* ACTIVE ACTIONS SUB-BAR (3 EQUAL PILLS) */
.active-actions-bar {
  display: flex;
  gap: 6px;
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
}

.chat-action-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-action-pill:active { transform: scale(0.96); }

.pill-reveal { background: rgba(82, 136, 193, 0.18); color: #64b5f6; border-color: rgba(82, 136, 193, 0.35); }
.pill-next { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.pill-stop { background: rgba(229, 57, 53, 0.18); color: var(--color-danger); border-color: rgba(229, 57, 53, 0.3); }

.ctrl-history {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.ctrl-history:active { transform: scale(0.94); }

/* CANVAS & MESSAGES */
.chat-conversation-canvas {
  flex: 1;
  overflow-y: auto;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: radial-gradient(circle at center, rgba(16, 24, 34, 0.6) 0%, rgba(10, 14, 20, 0.95) 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.chat-date-pill {
  align-self: center;
  background: rgba(0, 0, 0, 0.45);
  color: var(--color-text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}

/* EMPTY STATE CARD IN CHAT */
.chat-empty-state-card {
  align-self: center;
  margin: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  max-width: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.empty-state-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(82, 136, 193, 0.12);
  color: #64b5f6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  border: 1px solid rgba(82, 136, 193, 0.25);
}

.empty-state-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-text-title);
}

.empty-state-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 6px;
}

.empty-state-cta {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.1s;
}

.empty-state-cta:active { transform: scale(0.96); }

/* BUBBLES */
.bubble {
  max-width: 78%;
  padding: 8px 12px 6px;
  font-size: 0.85rem;
  line-height: 1.35;
  word-break: break-word;
  position: relative;
}

.bubble-me {
  align-self: flex-end;
  background: var(--color-bubble-me);
  color: #ffffff;
  border-radius: 16px 16px 3px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.bubble-partner {
  align-self: flex-start;
  background-color: var(--color-bubble-partner);
  color: var(--color-text-title);
  border: 1px solid var(--border-subtle);
  border-radius: 16px 16px 16px 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.bubble-media-img {
  max-width: 220px;
  border-radius: 10px;
  margin-bottom: 4px;
  display: block;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.bubble-media-img:active { transform: scale(0.98); }

.bubble-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  float: right;
  margin-left: 8px;
}

.bubble-time { font-size: 0.6rem; color: rgba(255, 255, 255, 0.6); }
.bubble-checks { font-size: 0.6rem; color: #64b5f6; font-weight: bold; }

/* DOCK COMPOSER */
.chat-bottom-dock {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 0;
  background: var(--bg-app);
}

.dock-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  border: none;
  transition: transform 0.1s;
}

.dock-action-btn:active { transform: scale(0.92); }

.attach-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--color-text-muted);
}

.attach-btn:active {
  background: var(--bg-surface-elevated);
  color: #ffffff;
}

.send-btn {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(82, 136, 193, 0.4);
}

.dock-input-field {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  display: flex;
  align-items: center;
}

.dock-input-field input {
  width: 100%;
  background: none;
  border: none;
  color: var(--color-text-title);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
}

.dock-input-field input::placeholder {
  color: var(--color-text-muted);
}

.dock-input-field input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.dock-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================================
   --- PROFILE VIEW STYLING (TELEGRAM SETTINGS THEME) ---
   ========================================================== */

.profile-hero-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px 20px;
  background: radial-gradient(circle at top, rgba(82, 136, 193, 0.12) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-subtle);
}

.profile-large-avatar {
  width: 68px !important;
  height: 68px !important;
  margin: 0 auto 12px !important;
  border: 2px solid rgba(82, 136, 193, 0.5) !important;
  box-shadow: 0 0 20px rgba(82, 136, 193, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82, 136, 193, 0.25) 0%, rgba(19, 26, 36, 0.9) 100%);
}

.profile-large-avatar span {
  font-size: 1.4rem !important;
  font-weight: 800;
  color: #64b5f6;
}

.profile-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-text-title);
  margin-bottom: 2px;
}

.profile-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.profile-id-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--color-text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.profile-status-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.profile-status-pill.badge-vip {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.32));
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.profile-status-pill.badge-regular {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================
   --- VIP & MEMBERSHIP (NATIVE TELEGRAM SETTINGS THEME) ---
   ========================================================== */

.vip-upgrade-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vip-hero-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 12px 6px;
}

.vip-hero-banner.active-mode {
  padding-bottom: 14px;
}

.vip-hero-icon-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82, 136, 193, 0.25) 0%, rgba(43, 82, 120, 0.1) 80%);
  border: 1px solid rgba(82, 136, 193, 0.4);
  color: #5288c1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(82, 136, 193, 0.2);
}

.vip-hero-icon-ring.green {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.1) 80%);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.vip-hero-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.vip-hero-desc {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  max-width: 300px;
  line-height: 1.4;
}

/* ROW ICONS WITH COLOR CIRCLES */
.row-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-blue { background: rgba(82, 136, 193, 0.18); color: #64b5f6; }
.icon-purple { background: rgba(168, 85, 247, 0.18); color: #c084fc; }
.icon-gold { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
.icon-cyan { background: rgba(6, 182, 212, 0.18); color: #22d3ee; }

.row-split-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.voucher-input-bar {
  display: flex;
  gap: 8px;
  width: 100%;
}

.voucher-input-bar input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  outline: none;
}

.voucher-input-bar input:focus,
.voucher-input-box:focus {
  border-color: var(--color-primary);
}

.voucher-input-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
}

.telegram-primary-btn {
  width: 100%;
  background: linear-gradient(135deg, #2a72b5, #5288c1);
  color: #ffffff;
  border: none;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(42, 114, 181, 0.35);
  transition: all 0.2s ease;
}

.telegram-primary-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(42, 114, 181, 0.2);
}

/* --- HISTORY MODAL DRAWER --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 24px;
  animation: slide-up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.modal-title-group { display: flex; flex-direction: column; }
.modal-title { font-size: 0.95rem; font-weight: 800; color: var(--color-text-title); }
.modal-subtitle { font-size: 0.72rem; color: var(--color-text-muted); }

.btn-close-modal {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
}

.history-list-feed {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 55vh;
}

.history-item-row {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.history-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-sender-tag { font-size: 0.7rem; font-weight: 700; color: var(--color-primary); }
.history-time-tag { font-size: 0.65rem; color: var(--color-text-muted); }
.history-text-content { font-size: 0.8rem; color: var(--color-text-body); line-height: 1.35; }
.history-empty-state { text-align: center; color: var(--color-text-muted); font-size: 0.8rem; padding: 24px 0; }

/* --- APP FOOTER CREDIT --- */
.app-footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px 36px;
  font-size: 0.75rem;
  color: #64748b;
  letter-spacing: 0.4px;
  user-select: none;
}

.app-footer-credit .credit-divider {
  color: #334155;
  font-size: 0.8rem;
}

.app-footer-credit .credit-link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.2s;
}

.app-footer-credit .credit-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* --- ACTIVE CHAT FULLSCREEN BLUR LOCK OVERLAY --- */
body.chat-active-locked #app-container,
body.chat-active-locked .dock-nav {
  filter: blur(12px) brightness(0.6);
  pointer-events: none;
  user-select: none;
  transition: filter 0.4s ease, brightness 0.4s ease;
}

.active-chat-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 12, 20, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 0.35s ease, visibility 0.35s ease;
  opacity: 1;
  visibility: visible;
}

.active-chat-lock-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.active-chat-lock-card {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(160deg, rgba(22, 33, 49, 0.95), rgba(11, 17, 28, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 28px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(56, 189, 248, 0.18);
  position: relative;
  overflow: hidden;
  animation: lock-card-enter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lock-card-enter {
  0% { transform: scale(0.92) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.chat-live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.2);
}

.live-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: beacon-pulse 1.2s infinite;
}

.chat-lock-icon-wrap {
  width: 80px;
  height: 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.chat-lock-center-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
}

.chat-lock-radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  animation: radar-ping 2.2s infinite cubic-bezier(0, 0, 0.2, 1);
}

.chat-lock-radar-ring.ring-1 {
  width: 72px;
  height: 72px;
}

.chat-lock-radar-ring.ring-2 {
  width: 86px;
  height: 86px;
  animation-delay: 0.7s;
}

.chat-lock-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}

.chat-lock-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0 0 20px;
}

.chat-lock-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-bottom: 22px;
}

.chat-lock-meta-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.lock-meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lock-meta-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
}

.lock-meta-val.text-green {
  color: #4ade80;
}

.chat-lock-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn-lock-return {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-lock-return:active {
  transform: scale(0.97);
}

.btn-lock-stop {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-lock-stop:active {
  transform: scale(0.97);
  background: rgba(239, 68, 68, 0.22);
}

/* ==========================================================
   --- DYNAMIC QRIS PAYMENT TERMINAL STYLES ---
   ========================================================== */

.qris-terminal-content {
  padding: 16px 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.qris-status-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qris-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  padding: 4px 10px;
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.qris-live-pill.expired {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.qris-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: beacon-pulse 1s infinite;
}

.qris-merchant-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.4px;
}

/* QRIS FRAME (LUXURY INDONESIAN STANDARDS) */
.qris-qr-frame {
  width: 100%;
  max-width: 280px;
  background: #ffffff;
  border-radius: 20px;
  padding: 14px 16px 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid #e2e8f0;
}

.qris-brand-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid #dc2626;
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.qris-badge-title {
  font-family: 'Arial Black', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 1px;
}

.qris-badge-sub {
  font-size: 0.58rem;
  font-weight: 700;
  color: #475569;
}

.qris-img-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qris-img-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
}

.qris-loading-box, .qris-expired-box {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #0f172a;
  font-weight: 700;
}

.qris-expired-box {
  color: #ef4444;
}

.qris-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: #0284c7;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.qris-brand-footer {
  margin-top: 8px;
  border-top: 1px solid #e2e8f0;
  padding-top: 6px;
  width: 100%;
  text-align: center;
  font-size: 0.58rem;
  color: #64748b;
  font-weight: 600;
  line-height: 1.25;
}

/* NOMINAL BOX */
.qris-nominal-box {
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.qris-nominal-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.6px;
}

.qris-nominal-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.45rem;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 0.5px;
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.qris-unique-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 10px;
  border-radius: 10px;
}

.btn-copy-nominal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.15s ease;
}

.btn-copy-nominal:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.15);
}

.qris-action-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-secondary-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary-action:active {
  background: rgba(255, 255, 255, 0.12);
}

.qris-info-notice {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.4;
  text-align: center;
}

.qris-pending-notice {
  width: 100%;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: lock-card-enter 0.3s ease;
}

.qris-pending-icon {
  font-size: 1.5rem;
}

.qris-pending-title {
  font-weight: 800;
  font-size: 0.92rem;
  color: #38bdf8;
}

.qris-pending-desc {
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.35;
}

