:root {
  /* Forced dark theme color tokens */
  --bg-main: #060911;
  --bg-card: #0d1527;
  --bg-card-elevated: #131d35;
  --bg-input: #050812;
  --card-border: rgba(255, 255, 255, 0.12);
  --card-border-glow: rgba(0, 240, 255, 0.35);
  
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;

  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.35);
  --accent-violet: #a78bfa;
  --accent-violet-glow: rgba(167, 139, 250, 0.3);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-crimson: #ff3366;
  --accent-crimson-glow: rgba(255, 51, 102, 0.25);
  --accent-amber: #fbbf24;
  --accent-btn: #0284c7;

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  background-color: #060911 !important;
  color-scheme: dark;
}

body {
  background-color: #060911 !important;
  color: #ffffff !important;
  color-scheme: dark;
  font-family: var(--font-sans);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  padding-bottom: env(safe-area-inset-bottom, 30px);
}

/* Ambient dynamic background glow */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.glow-1 {
  top: -100px;
  right: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.22) 0%, transparent 70%);
}
.glow-2 {
  bottom: 50px;
  left: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
}
.glow-3 {
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
}

.mobile-app-wrapper {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0 auto;
  padding: 1rem 1rem 3.5rem;
}

/* Header */
.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--card-border);
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.brand-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 16px;
  padding: 0.4rem 0.55rem;
  box-shadow: 0 0 20px var(--accent-cyan-glow);
  position: relative;
  z-index: 2;
}
.brand-logo-img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  filter: drop-shadow(0 0 14px var(--accent-cyan-glow));
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}
.brand-logo-img:hover {
  transform: scale(1.08) rotate(2deg);
}
.brand-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 2px solid var(--accent-cyan);
  opacity: 0.5;
  animation: pulse-ring 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}

.brand-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.accent-glow {
  background: linear-gradient(135deg, var(--accent-cyan), #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px var(--accent-cyan-glow));
}
.pro-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 6px;
  padding: 0.15rem 0.4rem;
}
.brand-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

/* Balance Pill */
.balance-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #131d35;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.balance-pill:hover {
  background: #1e293b;
  border-color: var(--accent-cyan);
}
.balance-pill.admin-pill {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(239, 68, 68, 0.25));
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}
.buy-stars-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

/* Cards System - Solid Deep Dark */
.mobile-card {
  background: #0d1527 !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.15rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

/* Hero Intro Card */
.hero-intro-card {
  background: linear-gradient(135deg, #0f172a, #1e1b4b) !important;
  border-color: rgba(139, 92, 246, 0.35);
}
.intro-headline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.98rem;
  color: #c4b5fd;
  margin-bottom: 0.35rem;
}
.intro-text {
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.5;
}

/* Quick Detect Card */
.quick-detect-card {
  border-color: rgba(0, 240, 255, 0.3);
  background: linear-gradient(145deg, #0d1527, #071f30) !important;
}
.quick-detect-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.auto-ip-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}
.auto-ip-label {
  font-size: 0.85rem;
  color: #cbd5e1;
}
.auto-ip-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-cyan);
  font-weight: 700;
}
.quick-hint {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 0.85rem;
  line-height: 1.45;
}
.quick-check-btn {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.45);
  margin-top: 0.2rem;
}

/* Input Card */
.card-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 0.85rem;
}
.form-field {
  margin-bottom: 0.85rem;
}
.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 0.35rem;
}
.input-control {
  position: relative;
  display: flex;
  align-items: center;
  background: #050812 !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 0 0.85rem;
  transition: all 0.2s ease;
}
.input-control:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}
.control-icon {
  font-size: 1.05rem;
  margin-right: 0.6rem;
  opacity: 0.8;
}
.input-control input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff !important;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 0.75rem 0;
}
.input-control input::placeholder {
  color: #64748b;
  font-family: var(--font-sans);
  font-size: 0.85rem;
}
.clear-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.3rem;
}
.port-hint {
  font-size: 0.78rem;
  color: #94a3b8;
  white-space: nowrap;
}

/* Main Action Button */
.action-btn {
  width: 100%;
  padding: 0.95rem 1.2rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #00f0ff, #0284c7) !important;
  color: #030712 !important;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 0 25px var(--accent-cyan-glow);
  transition: all 0.2s ease;
}
.action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}
.action-btn:active {
  transform: scale(0.98);
}
.action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(5, 11, 20, 0.2);
  border-top-color: #050b14;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Loading Card */
.loading-card {
  border-color: rgba(0, 240, 255, 0.35);
  background: linear-gradient(135deg, #0d1527, #071f30) !important;
}
.loading-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.loading-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.radar-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  position: relative;
  animation: radar 1.5s linear infinite;
}
@keyframes radar {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
.loading-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-cyan);
}
.loading-pct {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-cyan);
}
.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  border-radius: 10px;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px var(--accent-cyan);
}
.loading-steps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.mini-step-pill {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: #131d35;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.mini-step-pill.active {
  background: rgba(0, 240, 255, 0.2);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  font-weight: 700;
}

/* Hero Verdict Card */
.hero-verdict {
  background: linear-gradient(145deg, #0d1527, #0b1120) !important;
  border-color: rgba(255, 255, 255, 0.16);
  position: relative;
  overflow: hidden;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.verdict-tag {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.15);
}

/* Score Circle Gauge */
.score-circle-wrapper {
  position: relative;
  width: 76px;
  height: 76px;
}
.score-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.score-bg-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}
.score-fg-circle {
  fill: none;
  stroke: var(--accent-emerald);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 1s ease, stroke 0.5s ease;
}
.score-center-text {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}
.score-center-text small {
  font-size: 0.65rem;
  color: #94a3b8;
}

.hero-title {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
  color: #ffffff;
}
.hero-desc {
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin-bottom: 0.95rem;
}

.risk-factors-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.risk-factor-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: rgba(255, 51, 102, 0.12);
  border: 1px solid rgba(255, 51, 102, 0.35);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: #fecdd3;
  line-height: 1.4;
}

.m-report-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.m-report-btn {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.m-report-btn.primary {
  background: rgba(0, 240, 255, 0.18) !important;
  border: 1px solid #00f0ff !important;
  color: #00f0ff !important;
  font-weight: 800;
}
.m-report-btn.secondary {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-weight: 700;
}
.m-report-btn:hover {
  filter: brightness(1.2);
}

/* Card Titles */
.card-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}
.card-icon {
  font-size: 1.25rem;
}
.card-title-row h3 {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.card-caption {
  font-size: 0.84rem;
  color: #cbd5e1;
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

/* WebRTC Leak Box */
.webrtc-box {
  background: #080d1a !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0.95rem;
}
.webrtc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.leak-badge {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.5);
}
.leak-badge.danger {
  background: rgba(255, 51, 102, 0.2);
  color: #fca5a5;
  border-color: rgba(255, 51, 102, 0.5);
}
.webrtc-sub {
  font-size: 0.8rem;
  color: #94a3b8;
}
.leak-ip-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.leak-ip-item {
  background: #0d1527;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
}
.leak-ip-item .k {
  display: block;
  font-size: 0.74rem;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}
.leak-ip-item .v {
  font-size: 0.88rem;
  color: #ffffff;
  font-weight: 700;
}
.mono {
  font-family: var(--font-mono);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.service-item-card {
  background: #080d1a !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.2s ease;
}
.service-item-card.ok {
  border-color: rgba(16, 185, 129, 0.35);
}
.service-item-card.blocked {
  border-color: rgba(255, 51, 102, 0.45);
  background: rgba(255, 51, 102, 0.08) !important;
}
.service-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: #ffffff;
}
.service-status-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.service-status-pill.ok {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.service-status-pill.blocked {
  background: rgba(255, 51, 102, 0.25);
  color: #fca5a5;
  border: 1px solid rgba(255, 51, 102, 0.4);
}
.service-desc {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.4;
}

/* AI Neural Networks Test Card */
.ai-card {
  border-color: rgba(139, 92, 246, 0.4) !important;
  background: linear-gradient(145deg, #0d1527, #131233) !important;
}

.live-ai-ping-btn {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(0, 240, 255, 0.28)) !important;
  border: 1px solid rgba(0, 240, 255, 0.5);
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-bottom: 0.9rem;
  transition: all 0.2s ease;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}
.live-ai-ping-btn:hover {
  filter: brightness(1.15);
  border-color: var(--accent-cyan);
}
.live-ai-ping-btn:active {
  transform: scale(0.98);
}

.ai-models-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ai-model-card {
  background: #080d1a !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: all 0.2s ease;
}
.ai-model-card.ok {
  border-color: rgba(16, 185, 129, 0.35);
}
.ai-model-card.blocked {
  border-color: rgba(255, 51, 102, 0.45);
  background: rgba(255, 51, 102, 0.08) !important;
}
.ai-model-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ai-title-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.ai-model-icon {
  font-size: 1.35rem;
}
.ai-model-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
}
.ai-developer-tag {
  font-size: 0.7rem;
  color: #94a3b8;
  display: block;
}
.ai-badges-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ai-status-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
}
.ai-status-badge.ok {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.45);
}
.ai-status-badge.blocked {
  background: rgba(255, 51, 102, 0.25);
  color: #fca5a5;
  border: 1px solid rgba(255, 51, 102, 0.45);
}
.ai-ping-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}
.ai-model-note {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Vantage Compare */
.vantage-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.compare-box {
  background: #080d1a !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.85rem;
}
.compare-box-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}
.compare-label {
  font-size: 0.78rem;
  color: #cbd5e1;
}
.status-badge {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.status-badge.success {
  color: #34d399;
}
.status-badge.danger {
  color: #f87171;
}
.compare-box small {
  font-size: 0.75rem;
  color: #94a3b8;
}
.tspu-alert {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 51, 102, 0.16);
  border: 1px solid rgba(255, 51, 102, 0.5);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  color: #fecdd3;
  font-weight: 700;
}

/* RKN Status List */
.rkn-status-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.rkn-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #080d1a !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.86rem;
  color: #ffffff;
  font-weight: 600;
}
.rkn-item .status-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rkn-item.clean .status-circle {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}
.rkn-item.blocked .status-circle {
  background: var(--accent-crimson);
  box-shadow: 0 0 8px var(--accent-crimson);
}
.rkn-note {
  font-size: 0.82rem;
  color: #cbd5e1;
  background: #080d1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  line-height: 1.45;
}

/* Protocol Cards Feed */
.protocol-cards-feed {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.m-proto-item {
  background: #080d1a !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.85rem;
  transition: all 0.2s ease;
}
.m-proto-item.blocked {
  border-color: rgba(255, 51, 102, 0.4);
  background: rgba(255, 51, 102, 0.08) !important;
}
.m-proto-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.m-proto-head strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
}
.m-proto-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.m-proto-item.blocked .m-proto-badge {
  background: rgba(255, 51, 102, 0.25);
  color: #fca5a5;
  border-color: rgba(255, 51, 102, 0.4);
}
.m-proto-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Compact KV list */
.compact-kv-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.compact-kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #080d1a !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  font-size: 0.86rem;
}
.compact-kv .k {
  color: #cbd5e1;
}
.compact-kv .v {
  color: #ffffff;
  text-align: right;
  font-weight: 700;
}

/* Port Grid */
.port-grid-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.port-chip {
  background: #080d1a !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.6rem 0.5rem;
  text-align: center;
}
.port-chip-title {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.15rem;
}
.port-chip-status {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
}
.port-chip-status.open {
  color: #34d399;
}
.port-chip-status.closed {
  color: #94a3b8;
}

.mtu-pill-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 240, 255, 0.12) !important;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 700;
}
.stub-alert-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 51, 102, 0.16);
  border: 1px solid rgba(255, 51, 102, 0.45);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  color: #fecdd3;
  margin-top: 0.65rem;
}

/* Mobile Tabs */
.mobile-tabs {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  overflow-x: auto;
}
.m-tab-btn {
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  background: #131d35 !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1 !important;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.m-tab-btn.active {
  background: rgba(0, 240, 255, 0.2) !important;
  border-color: #00f0ff !important;
  color: #00f0ff !important;
}
.tab-help {
  font-size: 0.84rem;
  color: #cbd5e1;
  margin-bottom: 0.6rem;
  line-height: 1.45;
}
.code-box {
  background: #030509 !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0.95rem;
  position: relative;
}
.code-box pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #38bdf8;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 220px;
  overflow-y: auto;
}
.tap-copy-btn {
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.7rem;
  border-radius: 10px;
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}
.tap-copy-btn:hover {
  background: #334155 !important;
}

/* Footer */
.mobile-footer {
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 2rem;
  padding: 0 1rem;
}

/* Paywall Modal */
.paywall-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.paywall-card {
  background: linear-gradient(145deg, #0f172a, #090e1a) !important;
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  padding: 1.4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}
.paywall-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.paywall-icon {
  font-size: 2rem;
}
.paywall-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
}
.paywall-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: #ffffff;
}
.paywall-subtitle {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
  line-height: 1.45;
}
.paywall-free-note {
  color: #6ee7b7;
  font-size: 0.82rem;
}
.paywall-packages {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.pkg-card {
  background: #131d35 !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  transition: all 0.2s ease;
}
.pkg-card.popular {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.12) !important;
}
.pkg-badge {
  position: absolute;
  top: -9px;
  right: 14px;
  font-size: 0.65rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}
.pkg-badge.discount {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}
.pkg-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}
.pkg-desc {
  font-size: 0.78rem;
  color: #cbd5e1;
}
.pkg-buy-btn {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.pkg-card.popular .pkg-buy-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.paywall-footnote {
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
}

/* DNS Leak Box */
.dns-leak-box {
  background: #080d1a !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0.95rem;
}

/* Speedtest Card & Benchmark */
.speedtest-card {
  border-color: rgba(0, 240, 255, 0.35) !important;
  background: linear-gradient(145deg, #0d1527, #071f30) !important;
}
.speed-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0.75rem 0;
}
.speed-metric-item {
  background: #080d1a !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.speed-metric-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.05em;
}
.speed-metric-val-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.speed-metric-num {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--accent-cyan);
}
.speed-metric-unit {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
}
.speed-sub-label {
  font-size: 0.76rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.speed-progress-track {
  width: 100%;
  height: 6px;
  background: #080d1a;
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.speed-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00f0ff, #10b981);
  border-radius: 99px;
  transition: width 0.15s ease;
}
.speed-btn {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.28), rgba(16, 185, 129, 0.28)) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
}

/* Passport Share Card & Modal */
.passport-row {
  margin-top: 0.75rem;
}
.passport-btn {
  width: 100%;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(139, 92, 246, 0.28)) !important;
  border: 1px solid rgba(236, 72, 153, 0.5) !important;
  color: #f472b6 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.2);
}
.passport-btn:hover {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.32), rgba(139, 92, 246, 0.38)) !important;
  filter: brightness(1.15);
}
.passport-modal-card {
  max-width: 440px !important;
  padding: 1.15rem !important;
}
.passport-preview-box {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.9rem;
  background: #060911;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
}
.passport-img-preview {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}
.passport-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.passport-download-btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
  color: #ffffff !important;
  font-size: 0.85rem !important;
  padding: 0.75rem !important;
}
.passport-share-btn {
  background: linear-gradient(135deg, #00f0ff, #0284c7) !important;
  color: #030712 !important;
  font-size: 0.85rem !important;
  padding: 0.75rem !important;
}
.passport-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  margin: 0 0 0.85rem 0;
  line-height: 1.4;
}

/* History Button & Modal Styles */
.history-pill-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #131d35;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}
.history-pill-btn:hover {
  background: #1e293b;
  border-color: rgba(0, 240, 255, 0.5);
  color: #ffffff;
}
.history-modal-card {
  max-width: 480px !important;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.history-list-box {
  overflow-y: auto;
  max-height: 60vh;
  padding-right: 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.history-items-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.history-empty {
  text-align: center;
  padding: 2.2rem 1rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}
.history-item-card {
  background: #0d1527;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s ease;
}
.history-item-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
}
.history-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.history-item-ip-box {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.history-item-ip {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}
.history-item-country {
  font-size: 0.75rem;
  color: #94a3b8;
}
.history-score-badge {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  white-space: nowrap;
}
.history-score-badge.score-good {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.history-score-badge.score-warn {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.history-score-badge.score-bad {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.history-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.45rem;
  margin-top: 0.2rem;
}
.history-item-verdict {
  color: #cbd5e1;
  font-weight: 500;
}
.history-item-flag {
  font-size: 1.15rem;
  line-height: 1;
}
.history-issues-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font-size: 0.78rem;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.history-issues-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f87171;
}
.history-issue-row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: #e2e8f0;
}
.history-issue-icon {
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.history-card-clean {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
  flex-direction: row;
  align-items: center;
}
.history-card-danger {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  flex-direction: row;
  align-items: center;
}
.history-card-warn {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
  color: #fcd34d;
  flex-direction: row;
  align-items: center;
}
.history-recheck-btn {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  border-radius: 8px;
  padding: 0.3rem 0.65rem;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}
.history-recheck-btn:hover {
  background: rgba(0, 240, 255, 0.25);
  border-color: #00f0ff;
  color: #ffffff;
}

/* Mobile Responsiveness */
@media (max-width: 420px) {
  .mobile-app-wrapper {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .m-report-actions-row {
    grid-template-columns: 1fr;
  }
  .leak-ip-comparison {
    grid-template-columns: 1fr;
  }
  .speed-metrics-grid {
    grid-template-columns: 1fr;
  }
  .passport-actions-grid {
    grid-template-columns: 1fr;
  }
}


/* Telegram-only Auth Gate Overlay */
.tg-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(6, 9, 17, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.tg-gate-card {
  max-width: 440px;
  width: 100%;
  background: var(--bg-card, #0d1527);
  border: 1px solid var(--card-border-glow, rgba(0, 240, 255, 0.35));
  border-radius: 24px;
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 240, 255, 0.25);
  animation: tgGateFadeIn 0.35s ease-out;
}

@keyframes tgGateFadeIn {
  from { opacity: 0; transform: scale(0.93) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.tg-gate-icon {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.6));
}

.tg-gate-badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--accent-cyan, #00f0ff);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--accent-cyan, #00f0ff);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.tg-gate-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.tg-gate-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.6rem;
}

.tg-gate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(2, 132, 199, 0.45);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.tg-gate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(0, 240, 255, 0.45);
}

.tg-gate-subtext {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 1.2rem;
  line-height: 1.45;
}
