:root {
  --bg: #080808;
  --surface: #111111;
  --surface2: #181818;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text: #f0f0f0;
  --text-dim: #888;
  --text-dimmer: #555;
  --accent: #e8ff6b;
  --accent-dim: rgba(232, 255, 107, 0.12);
  --accent-glow: rgba(232, 255, 107, 0.25);
  --red: #ff5f57;
  --blue: #6eb5ff;
  --purple: #c084fc;
  --green: #4ade80;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', sans-serif;
  min-height: 100vh;
}

.serif {
  font-family: 'Instrument Serif', serif;
}

.hidden {
  display: none !important;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* Noise overlay */
.grain::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .4;
}

/* Auth Layout Styles */
.auth-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    position: relative;
    z-index: 10;
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.auth-form.active {
    display: flex !important;
    animation: fadeUp 0.3s ease;
}

.auth-input {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text);
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.auth-input:focus {
    border-color: rgba(232, 255, 107, 0.4);
    box-shadow: 0 0 0 3px rgba(232, 255, 107, 0.1);
}

.auth-links {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-top: 8px;
}

.auth-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.2s;
}

.auth-links a:hover {
    color: var(--text);
}

.msg-box {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: var(--green);
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

/* User Navbar Setup */
.user-email {
    font-size: 13px;
    color: var(--text-dim);
    margin-right: 12px;
    display: none;
}
@media (min-width: 600px) {
    .user-email { display: inline-block; }
}

.logout-btn {
    color: var(--red);
    border-color: rgba(255, 95, 87, 0.2);
}
.logout-btn:hover {
    background: rgba(255, 95, 87, 0.1);
    color: var(--red);
    border-color: var(--red);
}

/* Global Feedback Section */
.feedback-section {
    margin: 60px auto 40px;
    padding: 40px 32px;
    max-width: 600px;
    width: 100%;
    background: var(--surface2);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.phase-container {
  display: none;
}

.phase-container.active {
  display: flex;
  flex-direction: column;
}

#phase-result.active,
#phase-history.active {
  display: block;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  height: 72px;
  background: rgba(8, 8, 8, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-logo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 100px;
  border: 1px solid rgba(232, 255, 107, 0.2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.history-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 11px;
  font-family: 'Geist', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: 0.2s;
}

.history-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface);
}

/* Hero */
.hero {
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(232, 255, 107, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-eyebrow svg {
  width: 12px;
  height: 12px;
}

.hero-title {
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
  max-width: 820px;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.typewriter-text {
  color: var(--accent);
  display: inline-block;
  white-space: nowrap;
  border-right: 0.08em solid var(--text);
  padding-right: 6px;
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: var(--text);
  }
}

.hero-sub {
  font-size: 19px;
  color: var(--text-dim);
  text-align: center;
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 56px;
}

/* Input */
.input-wrap {
  width: 100%;
  max-width: 580px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px 6px 6px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: 0.2s;
  margin-bottom: 16px;
}

.input-wrap:focus-within {
  border-color: rgba(232, 255, 107, 0.3);
  box-shadow: 0 0 0 4px rgba(232, 255, 107, 0.06), 0 8px 40px rgba(0, 0, 0, 0.4);
}

.input-wrap>svg {
  width: 14px;
  height: 14px;
  color: var(--text-dimmer);
  flex-shrink: 0;
}

.url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  color: var(--text);
  min-width: 0;
}

.url-input::placeholder {
  color: var(--text-dimmer);
}

.analyze-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: #000;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.analyze-btn:hover {
  background: #f0ff80;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232, 255, 107, 0.3);
}

.analyze-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.analyze-btn svg {
  width: 14px;
  height: 14px;
}

/* Chips */
.example-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip {
  font-size: 12px;
  color: var(--text-dim);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: 0.15s;
  background: transparent;
  font-family: 'Geist', sans-serif;
}

.chip:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--surface);
}

/* Error box */
.error-box {
  background: rgba(255, 95, 87, 0.06);
  border: 1px solid rgba(255, 95, 87, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--red);
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 580px;
  margin-bottom: 20px;
}

.error-box svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Loader */
.loading-wrap {
  width: 100%;
  max-width: 580px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  color: var(--text-dim);
  transition: 0.3s;
}

.step-item.active {
  border-color: rgba(232, 255, 107, 0.2);
  color: var(--text);
  background: var(--surface2);
}

.step-item.done {
  border-color: rgba(74, 222, 128, 0.15);
  color: var(--text-dim);
}

.step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.step-dot.pending {
  border: 1px solid var(--border);
}

.step-dot.active {
  background: var(--accent);
  animation: pulse-dot 1.2s ease-in-out infinite;
}

.step-dot.done {
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--green);
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 255, 107, 0.4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(232, 255, 107, 0);
  }
}

/* --- New Horizontal Loading Experience --- */

.loading-split-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: stretch;
  background: transparent;
  /* Removed the background box as it's full screen now */
  border-radius: 16px;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.retro-ad-box {
  width: 100%;
  min-height: 520px;
  background: #111;
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.retro-ad-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(232, 255, 107, 0.03) 2px, rgba(232, 255, 107, 0.03) 4px);
  pointer-events: none;
}

.ad-glitch-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 20px;
  font-weight: bold;
  color: var(--text-dimmer);
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.ad-subtitle {
  font-size: 11px;
  color: var(--text-dimmer);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ad-pitch {
  margin-top: 32px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  font-style: italic;
  max-width: 90%;
  position: relative;
  z-index: 2;
}

.ad-pitch strong {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.loading-journey-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.journey-track {
  height: 4px;
  background: var(--surface2);
  border-radius: 4px;
  position: relative;
  margin-bottom: 24px;
}

.journey-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.current-step-label {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 40px;
}

/* Quote Carousel */
.quote-carousel {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  min-height: 120px;
  position: relative;
}

.quote-icon {
  font-size: 32px;
  color: var(--accent-dim);
  line-height: 1;
  position: absolute;
  top: 12px;
  left: -8px;
  opacity: 0.5;
}

.quote-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 12px;
  padding-left: 28px;
  transition: opacity 0.5s ease;
}

.quote-author {
  font-size: 12px;
  color: var(--text-dimmer);
  letter-spacing: 0.05em;
  padding-left: 28px;
  text-transform: uppercase;
  font-weight: 500;
  transition: opacity 0.5s ease;
}

.quote-carousel.fade-out .quote-text,
.quote-carousel.fade-out .quote-author {
  opacity: 0;
}

/* Results */
.result-page {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.analyze-another {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
  margin-bottom: 32px;
}

.analyze-another:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.analyze-another svg {
  width: 14px;
  height: 14px;
}

.company-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.company-logo {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
  overflow: hidden;
}

.company-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.company-name {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.company-tagline {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 640px;
}

.company-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.meta-badge {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--surface);
}

.meta-badge.accent {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(232, 255, 107, 0.2);
}

.ai-overview-section {
  margin-bottom: 32px;
}

.ai-heading {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text);
}

.ai-text {
  font-size: 17px;
  line-height: 1.85;
  color: #e3e3e3;
  white-space: pre-line;
}

.ai-text mark {
  background-color: var(--accent-glow);
  color: #fff;
  border-radius: 4px;
  padding: 2px 4px;
  margin: 0 -2px;
}

.ai-text strong {
  color: var(--text);
  font-weight: 600;
}

.capabilities-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.capability-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 24px;
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.capability-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.cap-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.cap-icon svg {
  width: 14px;
  height: 14px;
}

.cap-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
}

.cap-text strong {
  color: var(--text);
  font-size: 17px;
  display: block;
  margin-bottom: 6px;
}

.description-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
}

.description-box p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  white-space: pre-line;
}

.core-purpose-highlight {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, rgba(232, 255, 107, 0.12) 0%, rgba(232, 255, 107, 0.02) 100%);
  border: 1px solid rgba(232, 255, 107, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.purpose-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  background: rgba(232, 255, 107, 0.2);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(232, 255, 107, 0.4);
}

.purpose-content {
  display: flex;
  flex-direction: column;
}

.purpose-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.purpose-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-line;
}

.purpose-text strong {
  color: var(--accent);
  font-weight: 600;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin: 32px 0 14px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--border-hover);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.card-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  position: relative;
  cursor: help;
}

/* Tooltip implementation */
.card-title[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 0;
  transform: translateY(-8px) scale(0.95);
  background: var(--text);
  color: var(--surface);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  width: max-content;
  max-width: 260px;
  z-index: 100;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.card-title[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 20px;
  transform: translateY(2px);
  border-width: 6px;
  border-style: solid;
  border-color: var(--text) transparent transparent transparent;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.card-title[data-tooltip]:hover::before,
.card-title[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-4px) scale(1);
}

.card-title[data-tooltip]:hover::after {
  transform: translateY(10px);
}

.card-content {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}

.card-content ul {
  padding-left: 20px;
  margin: 0;
}

.card-content li {
  margin-bottom: 10px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}

a.tag:hover {
  border-color: var(--border-hover);
  background: var(--surface);
  color: var(--text);
}

.card-wide {
  grid-column: 1 / -1;
}

/* --- Trust & Reputation Intelligence Add-on --- */
.trust-intelligence-card {
  grid-column: 1 / -1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 24px;
  position: relative;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Dynamic Trust Tiers */
.trust-intelligence-card.trust-high {
  border-color: rgba(74, 222, 128, 0.3);
  box-shadow: 0 8px 40px rgba(74, 222, 128, 0.03);
}

.trust-intelligence-card.trust-med {
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: 0 8px 40px rgba(251, 191, 36, 0.03);
}

.trust-intelligence-card.trust-low {
  border-color: rgba(255, 95, 87, 0.3);
  box-shadow: 0 8px 40px rgba(255, 95, 87, 0.03);
}

.trust-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.trust-title-group {
  flex: 1;
}

.trust-heading {
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.trust-verdict {
  font-size: 16px;
  color: var(--text-dimmer);
  line-height: 1.5;
  max-width: 600px;
}

.trust-meter-container {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.trust-meter-bg {
  fill: none;
  stroke: var(--surface2);
  stroke-width: 8;
}

.trust-meter-progress {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 276;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-high .trust-meter-progress {
  stroke: var(--accent);
  /* Brand purple/blue */
}

.trust-med .trust-meter-progress {
  stroke: #6eb5ff;
  /* Soft Blue */
}

.trust-low .trust-meter-progress {
  stroke: #ff5f57;
  /* Keep warning color for poor trust */
}

.trust-score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 600;
  font-family: 'Geist', sans-serif;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.trust-score-value span {
  font-size: 12px;
  color: var(--text-dimmer);
  font-weight: 400;
}

.trust-signals-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.signal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 10px;
}

.signal-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.sentiment-split {
  display: flex;
  gap: 40px;
}

.sentiment-col {
  flex: 1;
}

.sentiment-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text);
}

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

.sentiment-pro,
.sentiment-con {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
}

.sentiment-pro {
  background: rgba(192, 132, 252, 0.1);
  color: #c084fc;
  /* Purple (matches Users icon) */
  border: 1px solid rgba(192, 132, 252, 0.2);
}

.sentiment-con {
  background: rgba(255, 95, 87, 0.1);
  color: #ff5f57;
  border: 1px solid rgba(255, 95, 87, 0.2);
}

/* History specific */
.history-title {
  font-size: 40px;
  margin-bottom: 10px;
}

.history-sub {
  color: var(--text-dim);
  margin-bottom: 32px;
  font-size: 15px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: 0.2s;
}

.history-item:hover {
  border-color: var(--border-hover);
  background: var(--surface2);
}

.history-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hist-icon {
  font-size: 24px;
}

.hist-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.hist-url {
  font-size: 12px;
  color: var(--accent);
}

.hist-date {
  font-size: 12px;
  color: var(--text-dimmer);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  padding: 20px;
  transition: 0.2s;
}

.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.plan-price {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  font-weight: 400;
  margin: 12px 0 20px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
}

.feature-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.4s ease forwards;
}

.fade-up-1 {
  animation-delay: 0.05s;
  opacity: 0;
}

.fade-up-2 {
  animation-delay: 0.1s;
  opacity: 0;
}

.fade-up-3 {
  animation-delay: 0.15s;
  opacity: 0;
}

.fade-up-4 {
  animation-delay: 0.2s;
  opacity: 0;
}

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

/* Profile Menu */
.profile-menu-container {
  position: relative;
  display: inline-block;
  margin-left: 8px;
}

.profile-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-btn:hover {
  border-color: var(--border-hover);
}

.profile-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 200;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.profile-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface2);
}

.dropdown-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.dropdown-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dropdown-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.dropdown-email {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  width: 100%;
}

.dropdown-logout {
  width: 100%;
  background: transparent;
  border: none;
  padding: 12px 16px;
  color: var(--red);
  font-size: 13px;
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
}

.dropdown-logout:hover {
  background: rgba(255, 95, 87, 0.1);
}
