/* FakeVisitor - Professional Browser Fingerprint Analysis */

:root {
  /* Dark theme - professional and readable */
  --bg-primary: #0f0f17;
  --bg-secondary: #161621;
  --bg-card: #1a1a2e;
  --bg-input: #232336;
  --bg-hover: #2a2a42;

  --border: #2d2d44;
  --border-light: #3d3d5c;

  --text: #e4e4eb;
  --text-dim: #9999a8;
  --text-bright: #ffffff;
  --text-muted: #6b6b7b;

  --accent: #4ecca3;
  --accent-hover: #45b892;
  --blue: #5c8aff;
  --green: #4ecca3;
  --yellow: #ffcc4d;
  --orange: #ff9f43;
  --red: #ff6b6b;
  --purple: #a855f7;

  --font-sans: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --hero-score: 0;
}

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

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at 20% 20%, rgba(78, 204, 163, 0.12), transparent 25%),
              radial-gradient(circle at 80% 0%, rgba(92, 138, 255, 0.12), transparent 28%),
              linear-gradient(180deg, #0b0b12 0%, #0f0f17 40%, #0d0d14 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent-hover); }

code, .mono { font-family: var(--font-mono); }

/* Header */
.header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-bright);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--text-bright); }

.nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.nav-link:hover {
  color: var(--text);
  background: var(--bg-hover);
}
.nav-link.active {
  color: var(--accent);
  background: rgba(78, 204, 163, 0.1);
}

/* Main */
.main {
  padding: 40px 0 60px;
}

/* Hero Section - Epic 2026 Redesign */
.hero {
  padding: 30px 0 40px;
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(78, 204, 163, 0.15), transparent),
              radial-gradient(ellipse 40% 40% at 80% 20%, rgba(92, 138, 255, 0.1), transparent);
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   HERO SECTION - Compact Modern Design
   ============================================================ */

.hero {
  padding: 30px 0 20px;
}

.hero-main {
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  gap: 20px;
  align-items: stretch;
  max-width: 860px;
  margin: 0 auto;
}

/* Compact Info Panels */
.hero-info-panel {
  background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(22, 22, 33, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-info-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-info-panel:hover::before { opacity: 1; }
.hero-info-panel:hover {
  border-color: rgba(78, 204, 163, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(78, 204, 163, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-icon svg {
  stroke: var(--accent);
  width: 14px;
  height: 14px;
}

.panel-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
}

.panel-value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-bright);
}

.panel-value .hero-flag { font-size: 1rem; }
.panel-value .mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.panel-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.panel-tag {
  font-size: 0.6rem;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: var(--text-dim);
}

.panel-tag.good { background: rgba(78, 204, 163, 0.15); color: var(--green); }
.panel-tag.warn { background: rgba(255, 204, 77, 0.15); color: var(--yellow); }
.panel-tag.bad { background: rgba(255, 107, 107, 0.15); color: var(--red); }

/* Network Items */
.network-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.network-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  color: var(--text-dim);
}

.network-item-icon { font-size: 0.55rem; }
.network-item-icon.good { color: var(--green); }
.network-item-icon.warn { color: var(--yellow); }
.network-item-icon.bad { color: var(--red); }

.network-item-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.status-dot { font-size: 0.65rem; }
.status-dot.good { color: var(--green); }
.status-dot.warn { color: var(--yellow); }
.status-dot.bad { color: var(--red); }

/* ============================================================
   SCORE RING (Center)
   ============================================================ */

.hero-score-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 0;
}

.score-ring {
  position: relative;
  width: 110px;
  height: 110px;
}

.score-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
}

.score-ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 1.5s ease-out, stroke 0.5s ease;
  filter: drop-shadow(0 0 6px var(--accent));
}

.score-ring.score-low .score-ring-progress { stroke: var(--green); filter: drop-shadow(0 0 6px var(--green)); }
.score-ring.score-medium .score-ring-progress { stroke: var(--yellow); filter: drop-shadow(0 0 6px var(--yellow)); }
.score-ring.score-high .score-ring-progress { stroke: var(--red); filter: drop-shadow(0 0 6px var(--red)); }

.score-ring-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1;
  font-family: var(--font-mono);
}

.score-ring.score-low .score-number { color: var(--green); }
.score-ring.score-medium .score-number { color: var(--yellow); }
.score-ring.score-high .score-number { color: var(--red); }

.score-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Scan Button */
.scan-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--accent) 0%, #3ba381 100%);
  border: none;
  border-radius: 16px;
  color: #0f0f17;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(78, 204, 163, 0.3);
}

.scan-button-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
}

.scan-button:hover .scan-button-bg { transform: translateX(100%); transition: transform 0.5s ease; }
.scan-button:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(78, 204, 163, 0.5); }
.scan-button:active { transform: scale(0.98); }

.scan-icon-play { display: block; width: 14px; height: 14px; }
.scan-icon-loading { display: none; width: 14px; height: 14px; }

.scan-button.running {
  background: linear-gradient(135deg, var(--yellow) 0%, #e0a800 100%);
  box-shadow: 0 4px 16px rgba(255, 204, 77, 0.4);
}

.scan-button.running .scan-icon-play { display: none; }
.scan-button.running .scan-icon-loading { display: block; animation: spin 1.5s linear infinite; }

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

.score-status {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-confidence {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Progress Bar */
.hero-progress {
  margin-top: 16px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--accent), var(--blue));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 6px;
  min-height: 1em;
}

/* Legacy compatibility */
.hero-flag { font-size: 1rem; line-height: 1; }
.hero-ip-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-bright);
  font-family: var(--font-mono);
}

.hero-ip-location {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 10px;
}

.hero-ip-details {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-ip-tag {
  font-size: 0.7rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-dim);
}

/* Network Card Specific */
.hero-network-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.status-indicator {
  font-size: 1rem;
  animation: pulse-status 2s ease-in-out infinite;
}

.status-indicator.good { color: var(--green); }
.status-indicator.warn { color: var(--yellow); }
.status-indicator.bad { color: var(--red); }

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

.hero-network-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.network-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.network-item-icon {
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
}

.network-item-icon.good { color: var(--green); }
.network-item-icon.warn { color: var(--yellow); }
.network-item-icon.bad { color: var(--red); }

.network-item-status {
  margin-left: auto;
  font-weight: 500;
  color: var(--text);
}

/* Epic Score Orb - Center Piece */
.hero-score-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-orb {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-orb-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 204, 163, 0.3) 0%, transparent 70%);
  animation: orb-glow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes orb-glow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

.score-orb-ring {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: conic-gradient(from 0deg, var(--accent), var(--blue), var(--purple), var(--accent)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: orb-ring-rotate 8s linear infinite;
}

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

.score-orb-inner {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(26, 26, 46, 0.95), rgba(15, 15, 23, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 2px 10px rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.score-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 30px rgba(78, 204, 163, 0.5);
  transition: all 0.5s ease;
}

.score-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 4px;
}

.score-confidence {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Score Orb Button (Inside) */
.score-orb-button {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--accent), #3ba381);
  border: none;
  border-radius: 25px;
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(78, 204, 163, 0.4);
  transition: all 0.3s ease;
  z-index: 10;
}

.score-orb-button:hover {
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 6px 30px rgba(78, 204, 163, 0.6);
}

.score-orb-button:active {
  transform: translateX(-50%) scale(0.98);
}

.score-orb-button svg {
  transition: transform 0.3s ease;
}

.score-orb-button:hover svg {
  transform: scale(1.1);
}

/* Running state */
.score-orb.running .score-orb-button {
  background: linear-gradient(135deg, var(--yellow), #e0a800);
}

.score-orb.running .score-orb-glow {
  background: radial-gradient(circle, rgba(255, 204, 77, 0.4) 0%, transparent 70%);
  animation: orb-glow-running 1s ease-in-out infinite;
}

@keyframes orb-glow-running {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

.score-orb.running .score-orb-ring {
  animation: orb-ring-rotate 2s linear infinite;
}

.score-orb-status {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Score by risk level */
.score-orb.score-low .score-value { color: var(--green); text-shadow: 0 0 30px rgba(78, 204, 163, 0.5); }
.score-orb.score-low .score-orb-glow { background: radial-gradient(circle, rgba(78, 204, 163, 0.3) 0%, transparent 70%); }

.score-orb.score-medium .score-value { color: var(--yellow); text-shadow: 0 0 30px rgba(255, 204, 77, 0.5); }
.score-orb.score-medium .score-orb-glow { background: radial-gradient(circle, rgba(255, 204, 77, 0.3) 0%, transparent 70%); }

.score-orb.score-high .score-value { color: var(--red); text-shadow: 0 0 30px rgba(255, 107, 107, 0.5); }
.score-orb.score-high .score-orb-glow { background: radial-gradient(circle, rgba(255, 107, 107, 0.4) 0%, transparent 70%); }
.score-orb.score-high .score-orb-glow { animation: orb-glow-danger 1.5s ease-in-out infinite; }

@keyframes orb-glow-danger {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* Score Details */
.score-details {
  display: flex;
  gap: 20px;
  margin-top: 25px;
}

.score-detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.score-detail-icon { font-size: 0.7rem; }
.score-detail-icon.good { color: var(--green); }
.score-detail-icon.warn { color: var(--yellow); }
.score-detail-icon.bad { color: var(--red); }

/* Progress Bar */
.hero-progress {
  max-width: 600px;
  margin: 30px auto 0;
  text-align: center;
}

.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--accent), var(--blue));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  min-height: 18px;
}

/* Legacy metric styles for compatibility */
.metric-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.metric-flag {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(78, 204, 163, 0.25));
  margin-bottom: 6px;
}

.gauge {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 8px auto;
  --accent: var(--accent);
}

.gauge-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent) calc(var(--hero-score, 0) * 1%),
    rgba(255,255,255,0.06) 0
  );
  filter: drop-shadow(0 0 22px rgba(78, 204, 163, 0.25));
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.08);
  animation: gauge-pulse 3s ease-in-out infinite;
}

@keyframes gauge-pulse {
  0%, 100% { filter: drop-shadow(0 0 22px rgba(78, 204, 163, 0.25)); }
  50% { filter: drop-shadow(0 0 35px rgba(78, 204, 163, 0.4)); }
}

/* Epic glow effects based on score level */
.gauge.score-low .gauge-ring {
  --accent: var(--green);
  animation: gauge-pulse-green 3s ease-in-out infinite;
}
.gauge.score-medium .gauge-ring {
  --accent: var(--yellow);
  animation: gauge-pulse-yellow 2.5s ease-in-out infinite;
}
.gauge.score-high .gauge-ring {
  --accent: var(--red);
  animation: gauge-pulse-red 2s ease-in-out infinite;
}

@keyframes gauge-pulse-green {
  0%, 100% { filter: drop-shadow(0 0 22px rgba(78, 204, 163, 0.3)); }
  50% { filter: drop-shadow(0 0 40px rgba(78, 204, 163, 0.5)); }
}
@keyframes gauge-pulse-yellow {
  0%, 100% { filter: drop-shadow(0 0 22px rgba(255, 204, 77, 0.4)); }
  50% { filter: drop-shadow(0 0 45px rgba(255, 204, 77, 0.7)); }
}
@keyframes gauge-pulse-red {
  0%, 100% { filter: drop-shadow(0 0 25px rgba(255, 107, 107, 0.5)); }
  50% { filter: drop-shadow(0 0 50px rgba(255, 107, 107, 0.8)); }
}

.gauge-center {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,26,46,0.9) 0%, rgba(15,15,23,0.9) 80%);
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Score number animation */
.gauge-center::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(78, 204, 163, 0.1), transparent);
  animation: rotate-glow 4s linear infinite;
  opacity: 0.5;
}

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

.gauge.score-high .gauge-center::before {
  background: conic-gradient(from 0deg, transparent, rgba(255, 107, 107, 0.2), transparent);
  animation: rotate-glow 2s linear infinite;
}

.metric-sub {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 4px;
  min-height: 18px;
}

.signal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 10px;
  justify-content: center;
}

.badge-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(26,26,46,0.9), rgba(35,35,54,0.9));
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
}
.badge-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}
.badge-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.05), transparent 45%);
  pointer-events: none;
}
.badge-pill.ok { border-color: var(--green); color: var(--green); }
.badge-pill.warn { border-color: var(--yellow); color: var(--yellow); }
.badge-pill.bad { border-color: var(--red); color: var(--red); }
.badge-pill.neutral { border-color: var(--text-muted); color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(78, 204, 163, 0.3);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* Progress Bar */
.progress-bar {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-dim);
  min-height: 48px;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(26, 26, 46, 0.5);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}
.progress-bar:empty { display: none; }
.progress-bar.running {
  color: var(--yellow);
  border-color: rgba(255, 204, 77, 0.3);
  background: linear-gradient(135deg, rgba(255, 204, 77, 0.08), rgba(26, 26, 46, 0.7));
}
.progress-bar.done {
  color: var(--green);
  border-color: rgba(78, 204, 163, 0.3);
  background: linear-gradient(135deg, rgba(78, 204, 163, 0.08), rgba(26, 26, 46, 0.7));
}
.progress-bar.error {
  color: var(--red);
  border-color: rgba(255, 107, 107, 0.3);
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.08), rgba(26, 26, 46, 0.7));
}

.progress-bar .progress-step {
  font-weight: 600;
  font-size: 1rem;
}

.progress-bar .progress-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Score Section */
.score-section:empty { display: none; }

.score-overview {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}

.score-overview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(78, 204, 163, 0.08), transparent 40%),
              radial-gradient(circle at 80% 10%, rgba(92, 138, 255, 0.06), transparent 42%);
  pointer-events: none;
}

.score-item {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.score-value {
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.score-value.good { color: var(--green); }
.score-value.moderate { color: var(--yellow); }
.score-value.bad { color: var(--red); }

.score-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.score-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.score-badge.real { background: rgba(78, 204, 163, 0.15); color: var(--green); }
.score-badge.uncertain { background: rgba(255, 204, 77, 0.15); color: var(--yellow); }
.score-badge.fake { background: rgba(255, 107, 107, 0.15); color: var(--red); }

.device-id {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.device-id-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.device-id-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  background: var(--bg-input);
  padding: 8px 16px;
  border-radius: var(--radius);
  display: inline-block;
  word-break: break-all;
}

/* Report Link */
.report-link-container:empty { display: none; }
.report-link-container {
  text-align: center;
  margin-bottom: 32px;
}
.report-link-container a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--blue);
  color: white;
  border-radius: var(--radius);
  font-weight: 500;
}
.report-link-container a:hover {
  background: #4a7ae8;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.results-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-input);
  border-bottom: 1px solid var(--border);
}

.card-header.collapsible {
  cursor: pointer;
  user-select: none;
}
.card-header.collapsible:hover {
  background: var(--bg-hover);
}

.card-header h2 {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-bright);
  letter-spacing: 0.01em;
}

.toggle-icon {
  font-size: 1.2rem;
  color: var(--text-dim);
  font-weight: 300;
}

.card-body {
  padding: 20px;
}

.card-body.collapsed {
  display: none;
}

/* Icons */
.icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.icon-network { background: var(--blue); }
.icon-network::before { content: "IP"; }
.icon-lock { background: var(--purple); }
.icon-lock::before { content: "TLS"; }
.icon-browser { background: var(--accent); }
.icon-browser::before { content: "UA"; }
.icon-webrtc { background: var(--orange); }
.icon-webrtc::before { content: "RTC"; }
.icon-dns { background: var(--yellow); color: var(--bg-primary); }
.icon-dns::before { content: "DNS"; }
.icon-canvas { background: #e91e63; }
.icon-canvas::before { content: "2D"; }
.icon-webgl { background: #00bcd4; }
.icon-webgl::before { content: "GL"; }
.icon-audio { background: #9c27b0; }
.icon-audio::before { content: "AU"; }
.icon-fonts { background: #795548; }
.icon-fonts::before { content: "Aa"; }
.icon-bot { background: var(--red); }
.icon-bot::before { content: "BOT"; font-size: 0.6rem; }
.icon-privacy { background: #607d8b; }
.icon-privacy::before { content: "PRI"; font-size: 0.6rem; }
.icon-cpu { background: #ff5722; }
.icon-cpu::before { content: "HW"; }
.icon-media { background: #8bc34a; }
.icon-media::before { content: "MED"; font-size: 0.6rem; }
.icon-api { background: #3f51b5; }
.icon-api::before { content: "API"; font-size: 0.6rem; }
.icon-http { background: #009688; }
.icon-http::before { content: "HTTP"; font-size: 0.55rem; }
.icon-json { background: #ffc107; color: var(--bg-primary); }
.icon-json::before { content: "{ }"; }

/* Status Badges */
.status-badge:empty { display: none; }

.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.ok { background: rgba(78, 204, 163, 0.15); color: var(--green); }
.status-badge.warn { background: rgba(255, 204, 77, 0.15); color: var(--yellow); }
.status-badge.bad { background: rgba(255, 107, 107, 0.15); color: var(--red); }
.status-badge.info { background: rgba(92, 138, 255, 0.15); color: var(--blue); }
.status-badge.na { background: rgba(107, 107, 123, 0.15); color: var(--text-muted); }

/* Placeholder */
.placeholder {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-style: italic;
}

.placeholder.loading {
  color: var(--text-dim);
  animation: pulse 1.5s ease-in-out infinite;
}

.placeholder.error {
  color: var(--red);
  font-style: normal;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* IP Display */
.ip-display {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: var(--bg-input);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.ip-flag {
  font-size: 2.5rem;
  line-height: 1;
}

.ip-info { flex: 1; }

.ip-address {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-bright);
}

.ip-location {
  color: var(--text);
  font-size: 0.95rem;
  margin-top: 4px;
}

.ip-asn {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 2px;
}

.ip-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ip-tag {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}
.ip-tag.tor { background: rgba(255, 107, 107, 0.2); color: var(--red); }
.ip-tag.hosting { background: rgba(255, 159, 67, 0.2); color: var(--orange); }
.ip-tag.vpn { background: rgba(255, 204, 77, 0.2); color: var(--yellow); }
.ip-tag.proxy { background: rgba(255, 107, 107, 0.2); color: var(--red); }

/* Data Grid */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.data-item {
  padding: 12px;
  background: var(--bg-input);
  border-radius: var(--radius);
}

.data-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.data-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
  word-break: break-all;
}
.data-value.good { color: var(--green); }
.data-value.warn { color: var(--yellow); }
.data-value.bad { color: var(--red); }

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table tr {
  border-bottom: 1px solid var(--border);
}
.data-table tr:last-child { border: none; }

.data-table td {
  padding: 10px 0;
  font-size: 0.9rem;
}

.data-table td:first-child {
  color: var(--text-dim);
  width: 40%;
}

.data-table td:last-child {
  font-family: var(--font-mono);
  text-align: right;
  color: var(--text);
}

/* Hash Display */
.hash {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-input);
  padding: 6px 10px;
  border-radius: var(--radius);
  display: inline-block;
  color: var(--text-dim);
  word-break: break-all;
}

/* TLS Fingerprints */
.tls-grid {
  display: grid;
  gap: 16px;
}

.tls-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-input);
  border-radius: var(--radius);
}

.tls-label {
  font-weight: 600;
  color: var(--text);
}

.tls-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}

.tls-value.na {
  color: var(--text-muted);
  font-style: italic;
}

.tls-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(255, 204, 77, 0.1);
  border: 1px solid rgba(255, 204, 77, 0.2);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--yellow);
}

/* Fingerprint Result */
.fp-result {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fp-hash-display {
  padding: 16px;
  background: var(--bg-input);
  border-radius: var(--radius);
  text-align: center;
}

.fp-hash-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.fp-hash-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  word-break: break-all;
}

.fp-details { margin-top: 8px; }

/* Detection List */
.detection-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detection-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-input);
  border-radius: var(--radius);
}

.detection-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.detection-dot.ok { background: var(--green); }
.detection-dot.warn { background: var(--yellow); }
.detection-dot.bad { background: var(--red); }
.detection-dot.na { background: var(--text-muted); }

.detection-name {
  flex: 1;
  font-size: 0.9rem;
}

.detection-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* API Status Grid */
.api-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.api-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-input);
  border-radius: var(--radius);
  font-size: 0.8rem;
}

.api-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.api-dot.yes { background: var(--green); }
.api-dot.no { background: var(--red); }
.api-dot.partial { background: var(--yellow); }

/* Code Block */
.code-block {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 500px;
  overflow-y: auto;
  color: var(--text-dim);
}

/* Details Section */
.details-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 40px;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-nav a:hover { color: var(--text); }

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* Professional Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(78, 204, 163, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(78, 204, 163, 0.5);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes borderPulse {
  0%, 100% { border-color: rgba(78, 204, 163, 0.3); }
  50% { border-color: rgba(78, 204, 163, 0.6); }
}

/* Animate hero metrics on load */
.hero-metrics .metric-card {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}
.hero-metrics .metric-card:nth-child(1) { animation-delay: 0.1s; }
.hero-metrics .metric-card:nth-child(2) { animation-delay: 0.2s; }
.hero-metrics .metric-card:nth-child(3) { animation-delay: 0.3s; }

/* Glow effect for active analysis */
.btn-primary.analyzing {
  animation: glow 1.5s ease-in-out infinite;
}

/* Skeleton loading effect */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-card) 0%,
    var(--bg-hover) 50%,
    var(--bg-card) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

/* Badge animations */
.badge-pill {
  animation: fadeInUp 0.4s ease-out forwards;
  opacity: 0;
}
.badge-pill:nth-child(1) { animation-delay: 0.05s; }
.badge-pill:nth-child(2) { animation-delay: 0.1s; }
.badge-pill:nth-child(3) { animation-delay: 0.15s; }
.badge-pill:nth-child(4) { animation-delay: 0.2s; }
.badge-pill:nth-child(5) { animation-delay: 0.25s; }
.badge-pill:nth-child(6) { animation-delay: 0.3s; }
.badge-pill:nth-child(7) { animation-delay: 0.35s; }
.badge-pill:nth-child(8) { animation-delay: 0.4s; }
.badge-pill:nth-child(9) { animation-delay: 0.45s; }
.badge-pill:nth-child(10) { animation-delay: 0.5s; }

/* Gauge animation */
.gauge-ring {
  transition: background 0.8s ease-out;
}

/* Card hover effects */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* Score badge animations */
.score-big {
  transition: transform 0.3s ease;
}
.score-big:hover {
  transform: scale(1.05);
}

/* Status dot pulse */
.detection-dot.bad {
  animation: pulse 2s infinite;
}

/* Link hover glow */
.report-url {
  transition: all 0.3s ease;
}
.report-url:hover {
  text-shadow: 0 0 20px rgba(78, 204, 163, 0.5);
}

/* Collapsible smooth animation */
.card-body {
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
  overflow: hidden;
}
.card-body.collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Mobile-specific improvements */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 0.95rem;
    padding: 0 8px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .metric-card {
    padding: 12px 14px;
  }

  .gauge {
    width: 100px;
    height: 100px;
  }

  .gauge-center {
    inset: 14px;
    font-size: 1.3rem;
  }

  .signal-badges {
    gap: 6px;
    padding: 0 8px;
  }

  .badge-pill {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 12px 24px;
  }

  .card-header h2 {
    font-size: 0.95rem;
  }

  .detection-list {
    gap: 8px;
  }

  .detection-item {
    padding: 8px;
    font-size: 0.85rem;
  }
}

/* iOS/Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  body {
    -webkit-overflow-scrolling: touch;
  }

  .card {
    -webkit-transform: translateZ(0);
  }

  .gauge-ring {
    -webkit-backface-visibility: hidden;
  }
}

/* Android WebView fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .hero-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .metric-card {
    flex: 1 1 200px;
    max-width: 300px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border: #4d4d6c;
    --text-dim: #b0b0bb;
  }

  .card {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .results-grid {
    grid-template-columns: 1fr;
  }

  .score-overview {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html { font-size: 13px; }

  .container { padding: 0 16px; }

  .hero h1 { font-size: 1.8rem; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn { justify-content: center; }

  .score-overview {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ip-display {
    flex-direction: column;
    text-align: center;
  }

  .ip-tags {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }

  .footer .container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Print styles */
@media print {
  .header, .footer, .hero-actions, .progress-bar { display: none; }
  .card-body.collapsed { display: block; }
  body { background: white; color: black; }
  .card { border: 1px solid #ccc; }
}

/* ============================================================
   2026 UI ENHANCEMENTS - Modern Effects & Micro-interactions
   ============================================================ */

/* Enhanced Glassmorphism */
.glass {
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.glass-card {
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.8) 0%,
    rgba(22, 22, 33, 0.6) 100%
  );
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

/* Gradient Border Animation */
@keyframes gradientBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-border {
  position: relative;
  background: var(--bg-card);
  z-index: 1;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    45deg,
    var(--accent),
    var(--blue),
    var(--purple),
    var(--accent)
  );
  background-size: 300% 300%;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
  opacity: 1;
  animation: gradientBorder 3s ease infinite;
}

/* Aurora Background Effect */
@keyframes aurora {
  0%, 100% {
    background-position: 0% 50%;
    filter: hue-rotate(0deg);
  }
  25% {
    background-position: 50% 0%;
  }
  50% {
    background-position: 100% 50%;
    filter: hue-rotate(15deg);
  }
  75% {
    background-position: 50% 100%;
  }
}

.aurora-bg {
  background: linear-gradient(
    -45deg,
    rgba(78, 204, 163, 0.15),
    rgba(92, 138, 255, 0.15),
    rgba(168, 85, 247, 0.1),
    rgba(78, 204, 163, 0.15)
  );
  background-size: 400% 400%;
  animation: aurora 20s ease infinite;
}

/* Enhanced Button Micro-interactions */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #3bb389 100%);
  box-shadow:
    0 4px 15px rgba(78, 204, 163, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 25px rgba(78, 204, 163, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

/* Pulse Animation for Active States */
@keyframes activePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(78, 204, 163, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(78, 204, 163, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(78, 204, 163, 0);
  }
}

.btn-primary.analyzing {
  animation: activePulse 1.5s ease-out infinite, glow 2s ease-in-out infinite;
}

/* Enhanced Badge Pills */
.badge-pill {
  position: relative;
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-pill.ok {
  background: linear-gradient(145deg, rgba(78, 204, 163, 0.2), rgba(78, 204, 163, 0.05));
  box-shadow:
    0 0 20px rgba(78, 204, 163, 0.15),
    inset 0 1px 0 rgba(78, 204, 163, 0.2);
}

.badge-pill.warn {
  background: linear-gradient(145deg, rgba(255, 204, 77, 0.2), rgba(255, 204, 77, 0.05));
  box-shadow:
    0 0 20px rgba(255, 204, 77, 0.15),
    inset 0 1px 0 rgba(255, 204, 77, 0.2);
}

.badge-pill.bad {
  background: linear-gradient(145deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.05));
  box-shadow:
    0 0 20px rgba(255, 107, 107, 0.15),
    inset 0 1px 0 rgba(255, 107, 107, 0.2);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(255, 107, 107, 0.15),
      inset 0 1px 0 rgba(255, 107, 107, 0.2);
  }
  50% {
    box-shadow:
      0 0 30px rgba(255, 107, 107, 0.3),
      inset 0 1px 0 rgba(255, 107, 107, 0.3);
  }
}

/* Real-time Status Indicator */
@keyframes statusPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.status-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: statusPulse 2s ease-in-out infinite;
}

.status-indicator.working::before {
  background: var(--yellow);
}

.status-indicator.error::before {
  background: var(--red);
}

/* Enhanced Card Effects */
.card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(
    180deg,
    rgba(26, 26, 46, 0.95) 0%,
    rgba(22, 22, 33, 0.9) 100%
  );
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(78, 204, 163, 0.1);
}

/* Enhanced Metric Cards */
.metric-card {
  background: linear-gradient(
    145deg,
    rgba(78, 204, 163, 0.12) 0%,
    rgba(92, 138, 255, 0.06) 50%,
    rgba(26, 26, 46, 0.8) 100%
  );
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(78, 204, 163, 0.1);
}

/* Enhanced Gauge */
.gauge {
  position: relative;
}

.gauge::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(78, 204, 163, 0.2) 90deg,
    transparent 180deg,
    rgba(92, 138, 255, 0.2) 270deg,
    transparent 360deg
  );
  animation: spin 8s linear infinite;
  opacity: 0.5;
}

@keyframes gaugeGlow {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(78, 204, 163, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(78, 204, 163, 0.5));
  }
}

.gauge-ring {
  animation: gaugeGlow 3s ease-in-out infinite;
}

/* Score Section Enhancements */
.score-overview {
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.95) 0%,
    rgba(22, 22, 33, 0.9) 50%,
    rgba(26, 26, 46, 0.95) 100%
  );
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.score-overview::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(78, 204, 163, 0.05) 60deg,
    transparent 120deg,
    rgba(92, 138, 255, 0.05) 180deg,
    transparent 240deg,
    rgba(168, 85, 247, 0.03) 300deg,
    transparent 360deg
  );
  animation: spin 30s linear infinite;
  pointer-events: none;
}

/* Score Value Animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.score-value {
  animation: countUp 0.6s ease-out forwards;
  text-shadow: 0 0 40px currentColor;
}

.score-value.good {
  text-shadow: 0 0 40px rgba(78, 204, 163, 0.5);
}

.score-value.moderate {
  text-shadow: 0 0 40px rgba(255, 204, 77, 0.5);
}

.score-value.bad {
  text-shadow: 0 0 40px rgba(255, 107, 107, 0.5);
}

/* Progress Bar Enhancements */
.progress-bar {
  position: relative;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
}

.progress-bar.running {
  background: linear-gradient(90deg,
    rgba(255, 204, 77, 0.1) 0%,
    rgba(26, 26, 46, 0.6) 50%,
    rgba(255, 204, 77, 0.1) 100%
  );
  animation: progressShimmer 2s ease infinite;
  border-color: rgba(255, 204, 77, 0.3);
}

@keyframes progressShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.progress-bar.done {
  background: rgba(78, 204, 163, 0.1);
  border-color: rgba(78, 204, 163, 0.3);
}

.progress-bar.error {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.3);
}

/* Data Item Hover Effects */
.data-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.data-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(78, 204, 163, 0.05),
    transparent
  );
  transition: left 0.5s ease;
}

.data-item:hover::before {
  left: 100%;
}

.data-item:hover {
  background: var(--bg-hover);
  transform: translateX(4px);
}

/* Detection Item Enhancements */
.detection-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.detection-item:hover {
  background: var(--bg-hover);
  transform: translateX(4px);
}

.detection-dot {
  transition: all 0.3s ease;
  box-shadow: 0 0 0 0 currentColor;
}

.detection-dot.ok {
  box-shadow: 0 0 10px rgba(78, 204, 163, 0.5);
}

.detection-dot.bad {
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 107, 107, 0.5); }
  50% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.8); }
}

/* Header Glass Effect */
.header {
  background: rgba(22, 22, 33, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Nav Link Enhancements */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* TLS Item Hover */
.tls-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tls-item:hover {
  background: var(--bg-hover);
  transform: translateX(4px);
}

/* API Grid Item */
.api-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.api-item:hover {
  background: var(--bg-hover);
  transform: scale(1.02);
}

/* IP Display Enhancement */
.ip-display {
  background: linear-gradient(
    135deg,
    rgba(35, 35, 54, 0.9) 0%,
    rgba(26, 26, 46, 0.8) 100%
  );
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.ip-display:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* IP Flag Animation */
.ip-flag {
  transition: transform 0.3s ease;
}

.ip-display:hover .ip-flag {
  transform: scale(1.1);
}

/* Footer Enhancement */
.footer {
  background: linear-gradient(
    180deg,
    rgba(22, 22, 33, 0.9) 0%,
    rgba(15, 15, 23, 1) 100%
  );
  backdrop-filter: blur(10px);
}

/* Smooth Section Transitions */
section {
  animation: fadeInUp 0.5s ease-out forwards;
}

.results-column section:nth-child(1) { animation-delay: 0.1s; }
.results-column section:nth-child(2) { animation-delay: 0.15s; }
.results-column section:nth-child(3) { animation-delay: 0.2s; }
.results-column section:nth-child(4) { animation-delay: 0.25s; }
.results-column section:nth-child(5) { animation-delay: 0.3s; }

/* Code Block Enhancement */
.code-block {
  background: linear-gradient(
    135deg,
    rgba(35, 35, 54, 0.95) 0%,
    rgba(26, 26, 46, 0.9) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.code-block::before {
  content: 'JSON';
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Selection Styling */
::selection {
  background: rgba(78, 204, 163, 0.3);
  color: var(--text-bright);
}

/* Focus States */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:focus-visible {
  box-shadow:
    0 0 0 3px rgba(78, 204, 163, 0.3),
    0 4px 15px rgba(78, 204, 163, 0.3);
}

/* Tooltip Style */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 6px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 1000;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

/* Loading Skeleton Enhancement */
.skeleton {
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  animation: shimmer 2s infinite;
}

/* Device Type Icon Container */
.device-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--blue) 100%);
  border-radius: 12px;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(78, 204, 163, 0.25);
}

/* Section Status Indicator */
.section-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-status.loading {
  background: rgba(255, 204, 77, 0.15);
  color: var(--yellow);
}

.section-status.loading::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  animation: statusPulse 1s ease-in-out infinite;
}

.section-status.complete {
  background: rgba(78, 204, 163, 0.15);
  color: var(--green);
}

.section-status.error {
  background: rgba(255, 107, 107, 0.15);
  color: var(--red);
}

/* Floating Action Hint */
@keyframes floatHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.float-hint {
  animation: floatHint 3s ease-in-out infinite;
}

/* Risk Level Indicator Bar */
.risk-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-input);
  overflow: hidden;
  position: relative;
}

.risk-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--red));
}

/* Confidence Meter */
.confidence-meter {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 20px;
}

.confidence-bar {
  width: 4px;
  background: var(--border);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.confidence-bar.active {
  background: var(--accent);
}

/* Animated Background Blobs */
@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  75% {
    transform: translate(30px, 10px) scale(1.05);
  }
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
  animation: blob 15s ease-in-out infinite;
}

.blob-1 {
  width: 300px;
  height: 300px;
  background: rgba(78, 204, 163, 0.15);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 250px;
  height: 250px;
  background: rgba(92, 138, 255, 0.15);
  top: 50%;
  right: 15%;
  animation-delay: -5s;
}

.blob-3 {
  width: 200px;
  height: 200px;
  background: rgba(168, 85, 247, 0.1);
  bottom: 20%;
  left: 30%;
  animation-delay: -10s;
}

/* ============================================================
   EPIC 2026 UI ENHANCEMENTS
   ============================================================ */

/* Outer Ring Animation */
.score-orb-ring-outer {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: conic-gradient(from 180deg, transparent, rgba(78, 204, 163, 0.3), transparent, rgba(92, 138, 255, 0.2), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: orb-ring-rotate 12s linear infinite reverse;
  opacity: 0.6;
}

/* Particle System */
.score-orb-particles {
  position: absolute;
  inset: -40px;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}

/* Enhanced Score Orb Button */
.score-orb-button {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent) 0%, #2fa97f 50%, var(--accent) 100%);
  background-size: 200% 100%;
  border: none;
  border-radius: 30px;
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 
    0 8px 32px rgba(78, 204, 163, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  overflow: hidden;
}

.score-orb-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.score-orb-button:hover::before {
  left: 100%;
}

.score-orb-button:hover {
  transform: translateX(-50%) scale(1.08) translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(78, 204, 163, 0.5),
    0 0 60px rgba(78, 204, 163, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  background-position: 100% 0;
}

.score-orb-button:active {
  transform: translateX(-50%) scale(0.98);
}

.score-orb-button .btn-text {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Running state button */
.score-orb.running .score-orb-button {
  background: linear-gradient(135deg, var(--yellow) 0%, #e6a700 50%, var(--yellow) 100%);
  box-shadow: 
    0 8px 32px rgba(255, 204, 77, 0.4),
    0 0 40px rgba(255, 204, 77, 0.2);
  animation: buttonPulse 1.5s ease-in-out infinite;
}

.score-orb.running .btn-icon-play { display: none; }
.score-orb.running .btn-icon-scan { display: block; animation: spin 2s linear infinite; }

@keyframes buttonPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(255, 204, 77, 0.4), 0 0 40px rgba(255, 204, 77, 0.2); }
  50% { box-shadow: 0 8px 40px rgba(255, 204, 77, 0.6), 0 0 60px rgba(255, 204, 77, 0.4); }
}

/* Score Orb Status Badge */
.score-orb-status {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(35, 35, 54, 0.9));
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

/* Risk level status colors */
.score-orb.score-low .score-orb-status { 
  border-color: rgba(78, 204, 163, 0.4);
  color: var(--green);
}
.score-orb.score-medium .score-orb-status { 
  border-color: rgba(255, 204, 77, 0.4);
  color: var(--yellow);
}
.score-orb.score-high .score-orb-status { 
  border-color: rgba(255, 107, 107, 0.4);
  color: var(--red);
  animation: dangerPulse 2s ease-in-out infinite;
}

@keyframes dangerPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }
  50% { box-shadow: 0 4px 30px rgba(255, 107, 107, 0.3); }
}

/* Epic Message Display */
.epic-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(35, 35, 54, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  backdrop-filter: blur(10px);
  transition: all 0.5s ease;
}

.epic-message-icon {
  font-size: 1.2rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.epic-message-text {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

/* Risk level message colors */
.epic-message.level-low {
  border-color: rgba(78, 204, 163, 0.3);
  background: linear-gradient(135deg, rgba(78, 204, 163, 0.1), rgba(26, 26, 46, 0.8));
}
.epic-message.level-low .epic-message-text { color: var(--green); }

.epic-message.level-medium {
  border-color: rgba(255, 204, 77, 0.3);
  background: linear-gradient(135deg, rgba(255, 204, 77, 0.1), rgba(26, 26, 46, 0.8));
}
.epic-message.level-medium .epic-message-text { color: var(--yellow); }

.epic-message.level-high {
  border-color: rgba(255, 107, 107, 0.3);
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(26, 26, 46, 0.8));
  animation: dangerBorder 2s ease-in-out infinite;
}
.epic-message.level-high .epic-message-text { color: var(--red); }

@keyframes dangerBorder {
  0%, 100% { border-color: rgba(255, 107, 107, 0.3); }
  50% { border-color: rgba(255, 107, 107, 0.6); }
}

/* Visit History Badge */
.visit-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 16px;
  background: rgba(92, 138, 255, 0.1);
  border: 1px solid rgba(92, 138, 255, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--blue);
}

.visit-badge-icon {
  animation: spin 4s linear infinite;
}

.visit-badge.returning {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--purple);
}

/* Epic Report Link Button */
.report-link-epic:empty { display: none; }

.report-link-epic {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.report-link-epic a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: linear-gradient(135deg, rgba(92, 138, 255, 0.2), rgba(168, 85, 247, 0.15));
  border: 2px solid rgba(92, 138, 255, 0.4);
  border-radius: 50px;
  color: var(--text-bright);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.report-link-epic a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s ease;
}

.report-link-epic a:hover::before {
  left: 100%;
}

.report-link-epic a:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(92, 138, 255, 0.8);
  box-shadow: 
    0 15px 40px rgba(92, 138, 255, 0.3),
    0 0 60px rgba(92, 138, 255, 0.15);
  color: #fff;
}

.report-link-epic .report-icon {
  font-size: 1.3rem;
}

.report-link-epic .report-arrow {
  transition: transform 0.3s ease;
}

.report-link-epic a:hover .report-arrow {
  transform: translateX(4px);
}

/* IP Type Tag Colors */
.hero-ip-tag.good {
  background: rgba(78, 204, 163, 0.15);
  border-color: rgba(78, 204, 163, 0.3);
  color: var(--green);
}

.hero-ip-tag.warn {
  background: rgba(255, 204, 77, 0.15);
  border-color: rgba(255, 204, 77, 0.3);
  color: var(--yellow);
}

.hero-ip-tag.bad {
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.3);
  color: var(--red);
}

/* Enhanced Progress Bar */
.hero-progress {
  max-width: 700px;
  margin: 35px auto 0;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--purple));
  background-size: 200% 100%;
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: progressGradient 3s ease infinite;
}

@keyframes progressGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text);
  margin-top: 12px;
  text-align: center;
  font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .hero-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .hero-score-container {
    order: -1;
  }
  
  .score-orb {
    width: 200px;
    height: 200px;
  }
  
  .score-orb-inner {
    width: 140px;
    height: 140px;
  }
  
  .score-value {
    font-size: 2.8rem;
  }
}
