@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* HSL Color Palette */
  --bg-main: 226, 45%, 5%;
  --bg-card: 224, 40%, 10%;
  --bg-card-hover: 224, 38%, 14%;
  
  --primary: 188, 100%, 50%; /* Cyan #00f0ff */
  --primary-glow: 188, 100%, 50%, 0.15;
  --secondary: 263, 90%, 65%; /* Purple */
  
  --text-main: 210, 40%, 96%;
  --text-muted: 215, 16%, 65%;
  --text-dark: 220, 20%, 15%;
  
  /* Status Colors */
  --color-safe: 145, 80%, 48%; /* Green */
  --color-safe-glow: 145, 80%, 48%, 0.15;
  --color-caution: 35, 100%, 55%; /* Orange */
  --color-caution-glow: 35, 100%, 55%, 0.15;
  --color-threat: 350, 85%, 55%; /* Red */
  --color-threat-glow: 350, 85%, 55%, 0.15;
  
  --border-light: 224, 25%, 20%;
  --border-glass: 255, 255, 255, 0.07;
  --shadow-color: 0, 0%, 0%, 0.4;
  
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 16px;
}

/* Global Reset & Scrollbars */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

input, textarea {
  -webkit-user-select: auto;
  user-select: auto;
}

body {
  background-color: hsl(226, 40%, 3%);
  color: hsl(var(--text-main));
  font-family: var(--font-family);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* PWA Mobile Shell Wrapper */
.phone-frame {
  background: linear-gradient(135deg, hsl(226, 40%, 6%) 0%, hsl(226, 45%, 3%) 100%);
  width: 100%;
  height: 100vh;
  height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
}

@media (min-width: 480px) {
  .phone-frame {
    width: 410px;
    height: 840px;
    border-radius: 42px;
    border: 10px solid #1a2035;
    position: relative;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 0 2px #2d3758;
  }
  
  /* Smartphone Notch / Dynamic Island Simulator */
  .phone-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 25px;
    background-color: #1a2035;
    border-radius: 20px;
    z-index: 1000;
  }
}

/* Status Bar & Header Layout */
.app-header {
  padding: calc(25px + env(safe-area-inset-top)) 20px 15px 20px;
  background: rgba(9, 13, 22, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(var(--border-glass));
  z-index: 99;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 480px) {
  .app-header {
    padding-top: calc(15px + env(safe-area-inset-top));
  }
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.logo-icon svg {
  width: 18px;
  height: 18px;
  stroke: #090d16;
}

.app-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-status-badge {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: hsl(var(--primary));
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.app-status-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: hsl(var(--primary));
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

/* Main Content Viewport */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  position: relative;
  scroll-behavior: smooth;
}

/* Footer Navigation Bar */
.app-nav {
  min-height: 70px;
  height: auto;
  background: rgba(9, 13, 22, 0.9);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(var(--border-glass));
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 99;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: hsl(var(--text-muted));
  font-family: var(--font-family);
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  width: 65px;
  height: 55px;
  border-radius: 12px;
  transition: var(--transition);
  position: relative;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  transition: var(--transition);
}

.nav-item:hover {
  color: hsl(var(--text-main));
}

.nav-item:active {
  transform: scale(0.92);
}

.nav-item.active {
  color: hsl(var(--primary));
}

.nav-item.active svg {
  transform: translateY(-2px);
  stroke: hsl(var(--primary));
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.4));
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 14px;
  height: 3px;
  background-color: hsl(var(--primary));
  border-radius: 2px;
  box-shadow: 0 0 8px hsl(var(--primary));
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--border-glass));
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  transition: var(--transition);
  box-shadow: 0 8px 32px 0 rgba(var(--shadow-color));
}

.glass-card:hover {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
}

/* View Header Styling */
.view-title-wrap {
  margin-bottom: 20px;
}

.view-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.view-desc {
  font-size: 0.85rem;
  color: hsl(var(--text-muted));
  margin-top: 4px;
}

/* Tabs UI inside views */
.tab-container {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid rgba(var(--border-glass));
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: hsl(var(--text-muted));
  padding: 10px;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Input Fields & Textareas */
.input-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: hsl(var(--text-muted));
  margin-bottom: 8px;
}

.text-input, .textarea-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(var(--border-glass));
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.9rem;
  padding: 12px 14px;
  outline: none;
  transition: var(--transition);
}

.textarea-input {
  min-height: 120px;
  resize: none;
}

.text-input:focus, .textarea-input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
}

/* File Upload Mock styling */
.upload-container {
  border: 2px dashed rgba(var(--border-glass));
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}

.upload-container:hover {
  border-color: hsl(var(--primary));
  background: rgba(0, 240, 255, 0.02);
}

.upload-icon {
  margin-bottom: 10px;
  color: hsl(var(--text-muted));
}

.upload-icon svg {
  width: 32px;
  height: 32px;
}

.upload-text {
  font-size: 0.85rem;
  font-weight: 500;
}

.upload-subtext {
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
  margin-top: 4px;
}

/* Dynamic scanner buttons */
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
  color: #090d16;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.4);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

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

.btn-outline {
  width: 100%;
  background: none;
  border: 1px solid rgba(var(--border-glass));
  color: hsl(var(--text-main));
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Scanner Screen - Scanning Animation */
.scanning-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 10px;
  text-align: center;
}

.scanner-radar {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

.scanner-radar::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.3);
  animation: pulse-ring 2s infinite linear;
}

.scanner-radar-line {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0, 240, 255, 0.4) 0deg, transparent 90deg, transparent 360deg);
  animation: spin 1.5s infinite linear;
}

.scanner-radar svg {
  width: 40px;
  height: 40px;
  color: hsl(var(--primary));
  filter: drop-shadow(0 0 8px hsl(var(--primary)));
}

.scanning-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.scanning-subtext {
  font-size: 0.8rem;
  color: hsl(var(--text-muted));
}

/* Analyzer Results layout */
.results-container {
  animation: slide-up 0.4s ease-out;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

/* Circular Score Gauge */
.gauge-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
}

.gauge-svg {
  transform: rotate(-90deg);
  width: 90px;
  height: 90px;
}

.gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 8;
}

.gauge-progress {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease-out;
}

.gauge-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-val {
  font-size: 1.35rem;
  font-weight: 700;
}

.gauge-lbl {
  font-size: 0.6rem;
  color: hsl(var(--text-muted));
  text-transform: uppercase;
}

/* Dynamic score colors */
.score-safe {
  stroke: hsl(var(--color-safe));
  filter: drop-shadow(0 0 3px hsl(var(--color-safe)));
}
.score-caution {
  stroke: hsl(var(--color-caution));
  filter: drop-shadow(0 0 3px hsl(var(--color-caution)));
}
.score-threat {
  stroke: hsl(var(--color-threat));
  filter: drop-shadow(0 0 3px hsl(var(--color-threat)));
}

.verdict-info {
  flex: 1;
}

.verdict-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.badge-safe {
  background: rgba(var(--color-safe-glow));
  color: hsl(var(--color-safe));
  border: 1px solid rgba(var(--color-safe-glow));
}
.badge-caution {
  background: rgba(var(--color-caution-glow));
  color: hsl(var(--color-caution));
  border: 1px solid rgba(var(--color-caution-glow));
}
.badge-threat {
  background: rgba(var(--color-threat-glow));
  color: hsl(var(--color-threat));
  border: 1px solid rgba(var(--color-threat-glow));
}

.verdict-title {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Indicators list (critical, warnings) */
.indicator-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: hsl(var(--text-muted));
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.indicator-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.indicator-item {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.indicator-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.indicator-critical {
  color: #ff9494;
  border-left: 3px solid hsl(var(--color-threat));
}

.indicator-critical svg {
  color: hsl(var(--color-threat));
}

.indicator-warning {
  color: #ffd085;
  border-left: 3px solid hsl(var(--color-caution));
}

.indicator-warning svg {
  color: hsl(var(--color-caution));
}

.indicator-positive {
  color: #99ffd0;
  border-left: 3px solid hsl(var(--color-safe));
}

.indicator-positive svg {
  color: hsl(var(--color-safe));
}

/* Steps list */
.steps-list {
  padding-left: 20px;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: hsl(var(--text-main));
}

.steps-list li {
  line-height: 1.4;
}

/* Interactive Wizard / Diagnostic Survey */
.wizard-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}

.wizard-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
  width: 0%;
  transition: width 0.3s ease;
}

.wizard-question {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 25px;
  min-height: 60px;
}

.wizard-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* History view log items */
.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(var(--border-glass));
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

.history-item-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 70%;
}

.history-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item-meta {
  font-size: 0.7rem;
  color: hsl(var(--text-muted));
}

.history-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.history-btn-del {
  background: none;
  border: none;
  color: hsl(var(--text-muted));
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: var(--transition);
}

.history-btn-del:hover {
  color: hsl(var(--color-threat));
  background: rgba(var(--color-threat-glow));
}

.empty-state {
  text-align: center;
  padding: 40px 10px;
  color: hsl(var(--text-muted));
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  opacity: 0.4;
}

.empty-state p {
  font-size: 0.85rem;
}

/* News screen alert items */
.news-item {
  border-left: 4px solid hsl(var(--border-light));
}

.news-item.news-high {
  border-left-color: hsl(var(--color-threat));
}

.news-item.news-medium {
  border-left-color: hsl(var(--color-caution));
}

.news-item.news-low {
  border-left-color: hsl(var(--color-safe));
}

.news-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  cursor: pointer;
}

.news-title-text {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  padding-right: 10px;
}

.news-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-block;
}

.news-date {
  font-size: 0.7rem;
  color: hsl(var(--text-muted));
  margin-top: 4px;
}

.news-arrow {
  color: hsl(var(--text-muted));
  transition: var(--transition);
}

.news-arrow.open {
  transform: rotate(180deg);
}

.news-content-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.news-content-panel.open {
  max-height: 1000px;
  transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(var(--border-glass));
}

.news-summary {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 12px;
  color: hsl(var(--text-main));
}

.news-subheading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: hsl(var(--text-muted));
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.news-bullets {
  padding-left: 15px;
  font-size: 0.8rem;
  line-height: 1.45;
  margin-bottom: 12px;
  color: hsl(var(--text-muted));
}

.news-action-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(var(--border-glass));
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #ffd085;
}

/* Lookup UI elements */
.lookup-search-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.lookup-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(var(--border-glass));
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  animation: slide-up 0.4s ease-out;
}

.lookup-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

.lookup-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.lookup-domain-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  word-break: break-all;
  margin: 0;
}

.lookup-registrar-sub {
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
}

.lookup-safety-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lookup-safety-badge.safe {
  background: rgba(var(--color-safe-glow));
  color: hsl(var(--color-safe));
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.lookup-safety-badge.caution {
  background: rgba(255, 160, 0, 0.1);
  color: #ffa000;
  border: 1px solid rgba(255, 160, 0, 0.25);
}

.lookup-safety-badge.danger {
  background: rgba(var(--color-threat-glow));
  color: hsl(var(--color-threat));
  border: 1px solid rgba(255, 23, 68, 0.2);
}

.lookup-warning-box {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.8rem;
  line-height: 1.45;
}

.lookup-warning-box.danger {
  background: rgba(255, 23, 68, 0.06);
  border-left: 4px solid hsl(var(--color-threat));
  color: #ff8a80;
}

.lookup-warning-box.caution {
  background: rgba(255, 160, 0, 0.05);
  border-left: 4px solid #ffa000;
  color: #ffe082;
}

.lookup-warning-box.safe {
  background: rgba(0, 230, 118, 0.04);
  border-left: 4px solid hsl(var(--color-safe));
  color: #b9f6ca;
}

.lookup-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .lookup-meta-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.lookup-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lookup-meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: hsl(var(--text-muted));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lookup-meta-val {
  font-size: 0.85rem;
  color: hsl(var(--text-main));
  font-weight: 500;
  word-break: break-all;
}

.lookup-meta-val.highlight {
  color: #fff;
  font-family: monospace;
}

.lookup-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lookup-nameservers-list {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: monospace;
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lookup-nameserver-item {
  color: hsl(var(--text-main));
  display: flex;
  align-items: center;
  gap: 6px;
}

.lookup-footer-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.lookup-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: hsl(var(--text-main));
  font-family: var(--font-family);
  font-size: 0.78rem;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.lookup-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Guide items */
.guide-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.guide-num {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(var(--border-glass));
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.guide-text-wrap {
  flex: 1;
}

.guide-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.guide-desc {
  font-size: 0.8rem;
  line-height: 1.4;
  color: hsl(var(--text-muted));
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: hsl(var(--primary));
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 10px;
  transition: var(--transition);
}

.link-button:hover {
  text-decoration: underline;
  filter: brightness(1.2);
}

/* Settings View Elements */
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(var(--border-glass));
}

.setting-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.setting-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.setting-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.setting-desc {
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(var(--border-glass));
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: hsl(var(--text-muted));
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: rgba(0, 240, 255, 0.2);
  border-color: hsl(var(--primary));
}

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: hsl(var(--primary));
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* Keyframes Animations */
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes slide-up {
  0% { transform: translateY(15px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes scale-in {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.animate-fade-in {
  animation: fade-in 0.3s ease-out;
}

.animate-slide-up {
  animation: slide-up 0.4s ease-out;
}

/* Real-Time Camera Stream and Capture Styling */
.camera-container {
  position: relative;
  width: 100%;
  height: 280px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 15px;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-overlay {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 2px dashed rgba(0, 240, 255, 0.4);
  border-radius: 8px;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.camera-overlay::before {
  content: "POSITION MESSAGE IN BOX";
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(0, 240, 255, 0.8);
  letter-spacing: 1px;
  background: rgba(9, 13, 22, 0.7);
  padding: 4px 8px;
  border-radius: 4px;
}

.camera-controls {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.btn-capture {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
  cursor: pointer;
  outline: none;
  transition: transform 0.2s, background-color 0.2s;
}

.btn-capture:hover {
  background: #e0faff;
  transform: scale(1.05);
}

.btn-capture:active {
  transform: scale(0.9);
}

.btn-camera-close {
  background: rgba(9, 13, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-camera-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

.btn-camera-close svg {
  width: 18px;
  height: 18px;
}

.camera-preview-img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 15px;
  margin-bottom: 15px;
  background: rgba(0, 0, 0, 0.3);
}

/* suggestion chip buttons */
.chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: hsl(var(--text-main));
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: var(--font-family);
  cursor: pointer;
  transition: var(--transition);
}

.chip-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: hsl(var(--primary));
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

/* AI Consent Modal styles */
.ai-consent-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.ai-consent-modal {
  width: 100%;
  max-width: 350px;
  padding: 25px 20px;
  text-align: center;
  border-color: rgba(var(--primary), 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ai-consent-icon-wrapper {
  width: 50px;
  height: 50px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid hsl(var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: hsl(var(--primary));
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.ai-consent-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.ai-consent-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.ai-consent-text {
  font-size: 0.82rem;
  color: hsl(var(--text-main));
  line-height: 1.45;
  margin-bottom: 12px;
  text-align: center;
}

.ai-consent-disclosure-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  text-align: left;
}

.ai-consent-privacy-note {
  font-size: 0.72rem;
  color: hsl(var(--text-muted));
  line-height: 1.4;
  margin-bottom: 12px;
  text-align: center;
}

.ai-consent-links {
  font-size: 0.72rem;
  color: hsl(var(--text-muted));
  margin-bottom: 16px;
}

.ai-consent-links a {
  color: hsl(var(--primary));
  text-decoration: underline;
}

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

.ai-consent-buttons button {
  width: 100%;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.animate-scale-in {
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-fade-out {
  animation: fadeOut 0.25s ease-out forwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.pulse-highlight {
  animation: pulseRow 0.6s ease-in-out 3;
  border-radius: 12px;
}

@keyframes pulseRow {
  0% { background-color: transparent; }
  50% { background-color: rgba(0, 240, 255, 0.2); box-shadow: 0 0 15px rgba(0, 240, 255, 0.35); }
  100% { background-color: transparent; }
}

