/* ============================================
   VARIABLES & THEME SYSTEM
   ============================================ */
:root {
  /* Primary Brand Color - Intelligence on Chain Purple */
  --brand-purple: #3c149c;
  --matrix-green: #00FF41;
  --brand-purple-light: #5a2bb8;
  --brand-purple-dark: #2a0d70;
  --brand-purple-10: rgba(60, 20, 156, 0.1);
  --brand-purple-20: rgba(60, 20, 156, 0.2);
  --brand-purple-30: rgba(60, 20, 156, 0.3);
  --brand-purple-40: rgba(60, 20, 156, 0.4);
  --brand-purple-50: rgba(60, 20, 156, 0.5);
  --brand-purple-60: rgba(60, 20, 156, 0.6);
  --brand-purple-70: rgba(60, 20, 156, 0.7);
  --brand-purple-80: rgba(60, 20, 156, 0.8);
  --brand-purple-90: rgba(60, 20, 156, 0.9);
  
  /* Accent Colors */
  --accent-cyan: #00d9ff;
  --accent-magenta: #e892e7;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  
  /* Transition Speed */
  --transition-speed: 0.3s;
  
  /* Layout */
  --sidebar-width: 240px;
  --header-height: 70px;
  --header-height: 110px;
}

/* Dark Mode (Default) */
body {
  --bg-primary: #0a0a0f;
  --bg-secondary: #1a1625;
  --bg-tertiary: #2d1b4e;
  --bg-panel: rgba(60, 20, 156, 0.15);
  --bg-panel-hover: rgba(60, 20, 156, 0.25);
  --bg-input: rgba(60, 20, 156, 0.2);
  --bg-overlay: rgba(10, 10, 15, 0.95);
  
  --text-primary: #ffffff;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --text-inverse: #0a0a0f;
  
  --border-color: rgba(60, 20, 156, 0.4);
  --border-hover: rgba(60, 20, 156, 0.6);
  
  --shadow-sm: 0 2px 8px rgba(60, 20, 156, 0.2);
  --shadow-md: 0 4px 16px rgba(60, 20, 156, 0.3);
  --shadow-lg: 0 8px 32px rgba(60, 20, 156, 0.4);
}

/* Light Mode */
body.light-mode {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e9ecef;
  --bg-panel: rgba(60, 20, 156, 0.05);
  --bg-panel-hover: rgba(60, 20, 156, 0.1);
  --bg-input: rgba(60, 20, 156, 0.08);
  --bg-overlay: rgba(255, 255, 255, 0.95);
  
  --text-primary: #0a0a0f;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-inverse: #ffffff;
  
  --border-color: rgba(60, 20, 156, 0.2);
  --border-hover: rgba(60, 20, 156, 0.4);
  
  --shadow-sm: 0 2px 8px rgba(60, 20, 156, 0.1);
  --shadow-md: 0 4px 16px rgba(60, 20, 156, 0.15);
  --shadow-lg: 0 8px 32px rgba(60, 20, 156, 0.2);
}

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

body, html {
  width: 100%;
  height: 100%;
  font-family: "Courier New", Courier, monospace;
  background: url('https://i.ibb.co/tZHRZf7/SPECTRABackground.png') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Light mode background overlay */
body.light-mode::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  z-index: -1;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 2px solid var(--brand-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  transition: all var(--transition-speed);
  box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
  background: var(--bg-panel-hover);
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.theme-toggle i {
  font-size: 1.5rem;
  color: var(--matrix-green);
  transition: transform var(--transition-speed);
}

.theme-toggle:hover i {
  transform: rotate(20deg);
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.preloader-content {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
}

.matrix-text {
  font-size: 1.2rem;
  color: var(--brand-purple);
  min-height: 150px;
  text-align: left;
  line-height: 1.2;
}

.matrix-text .line {
  margin: 2px 0;
  color: var(--matrix-green);
}

.captcha-widget {
  display: none;
  margin-top: 30px;
}

/* Preloader Logo */
.preloader-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.preloader-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  /* Apply green tint to match matrix text color */
  filter: brightness(0) saturate(100%) invert(81%) sepia(75%) saturate(1000%) hue-rotate(68deg) brightness(105%) contrast(105%);
  animation: preloaderPulse 2s ease-in-out infinite;
}

@keyframes preloaderPulse {
  0%, 100% {
    opacity: 0.8;
    filter: brightness(0) saturate(100%) invert(81%) sepia(75%) saturate(1000%) hue-rotate(68deg) brightness(105%) contrast(105%);
  }
  50% {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(81%) sepia(75%) saturate(1000%) hue-rotate(68deg) brightness(115%) contrast(115%) drop-shadow(0 0 10px var(--matrix-green));
  }
}

/* ============================================
   SOCIAL MEDIA SEARCH RESULTS
   ============================================ */
.social-results-container {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  animation: slideIn 0.4s ease-out;
}

.social-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 10px;
}

.social-results-header h3 {
  color: white;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
}

.social-results-header h3 i {
  color: var(--accent-cyan);
  font-size: 1.1em;
}

.social-platforms-badge {
  font-size: 0.75em;
  color: var(--text-muted);
  background: var(--bg-input);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.social-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px;
  color: var(--accent-cyan);
}

.spinner-small {
  width: 20px;
  height: 20px;
  border: 2px solid var(--brand-purple-20);
  border-top-color: var(--brand-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.social-results-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-result-item {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  transition: all var(--transition-speed);
  overflow: hidden;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.social-result-item:hover {
  border-color: var(--brand-purple);
  box-shadow: var(--shadow-sm);
}

.social-result-item.hidden {
  display: none;
}

.social-result-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-result-platform.twitter { background: rgba(29, 155, 240, 0.2); color: #1d9bf0; }
.social-result-platform.linkedin { background: rgba(0, 119, 181, 0.2); color: #0077b5; }
.social-result-platform.youtube { background: rgba(255, 0, 0, 0.2); color: #ff4444; }
.social-result-platform.instagram { background: rgba(225, 48, 108, 0.2); color: #e1306c; }
.social-result-platform.facebook { background: rgba(24, 119, 242, 0.2); color: #1877f2; }
.social-result-platform.reddit { background: rgba(255, 69, 0, 0.2); color: #ff4500; }
.social-result-platform.tiktok { background: rgba(0, 0, 0, 0.3); color: #fff; }
.social-result-platform.other { background: var(--brand-purple-20); color: var(--brand-purple-light); }

.social-result-title {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
}

.social-result-title a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.social-result-title a:hover {
  color: var(--brand-purple);
  text-decoration: underline;
}

.social-result-snippet {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 8px 0;
}

.social-result-url {
  color: var(--text-muted);
  font-size: 0.85rem;
  word-break: break-all;
  opacity: 0.8;
}

.expand-results-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--accent-cyan);
  font-size: 0.95em;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.expand-results-btn:hover {
  background: var(--bg-panel-hover);
  border-color: var(--brand-purple);
}

.expand-results-btn.expanded i {
  transform: rotate(180deg);
}

.expand-results-btn i {
  transition: transform 0.3s ease;
}

.social-no-results {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
}

.social-no-results i {
  font-size: 2.5em;
  margin-bottom: 15px;
  opacity: 0.5;
  color: var(--brand-purple);
}

.social-no-results p {
  margin: 0;
}

.social-error {
  text-align: center;
  padding: 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #ef4444;
}

.social-error i {
  font-size: 1.5em;
  margin-bottom: 10px;
}

/* Light mode adjustments */
body.light-mode .social-results-container {
  background: white;
}

body.light-mode .social-results-header h3 {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .social-results-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.logo-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.97);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.logo-container img {
  max-width: 200px;
  filter: drop-shadow(0 0 20px var(--brand-purple));
}

.loader {
  width: 90px;
  height: 14px;
  box-shadow: 0 3px 0 var(--brand-purple);
  position: relative;
  clip-path: inset(-40px 0 -5px);
  margin-top: 30px;
}

.loader:before {
  content: "";
  position: absolute;
  inset: auto calc(50% - 17px) 0;
  height: 50px;
  --g: no-repeat linear-gradient(var(--brand-purple) 0 0);
  background: var(--g), var(--g), var(--g), var(--g);
  background-size: 16px 14px;
  animation: l7-1 2s infinite linear, l7-2 2s infinite linear;
}

@keyframes l7-1 {
  0%, 100% {background-position: 0 -50px, 100% -50px}
  17.5% {background-position: 0 100%, 100% -50px, 0 -50px, 100% -50px}
  35% {background-position: 0 100%, 100% 100%, 0 -50px, 100% -50px}
  52.5% {background-position: 0 100%, 100% 100%, 0 calc(100% - 16px), 100% -50px}
  70%, 98% {background-position: 0 100%, 100% 100%, 0 calc(100% - 16px), 100% calc(100% - 16px)}
}

@keyframes l7-2 {
  0%, 70% {transform: translate(0)}
  100% {transform: translate(200%)}
}

/* Overlay Progress Section (for Wallet Researcher) */
.overlay-progress-section {
  margin-top: 30px;
  width: 100%;
  max-width: 400px;
  padding: 0 20px;
  text-align: center;
}

.overlay-progress-status {
  color: var(--brand-lime);
  font-size: 1rem;
  margin-bottom: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 0 15px rgba(186, 252, 149, 0.5);
}

.overlay-progress-bar-container {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(186, 252, 149, 0.3);
  box-shadow: 0 0 20px rgba(60, 20, 156, 0.3), inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.overlay-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-purple), var(--brand-lime), #bafc95);
  border-radius: 6px;
  transition: width 0.3s ease;
  box-shadow: 0 0 20px rgba(186, 252, 149, 0.7), 0 0 40px rgba(186, 252, 149, 0.4);
  position: relative;
}

.overlay-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 6px 6px 0 0;
}

.overlay-progress-percent {
  color: white;
  font-size: 1.3rem;
  margin-top: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(186, 252, 149, 0.5);
}

/* ============================================
   MAIN APP LAYOUT
   ============================================ */
.main-app {
  display: flex;
  flex-direction: column;
  height: auto;
  background: var(--bg-overlay);
}

/* ============================================
   HEADER
   ============================================ */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(7, 6, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--brand-purple-40);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

/* Top bar (tagline + compact social + countdown) */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 30px;
  border-bottom: 1px solid var(--brand-purple-30);
  min-height: 34px;
}

.header-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-tagline {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.header-tagline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--matrix-green);
  box-shadow: 0 0 8px var(--matrix-green);
}

.header-tagline-secondary {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Main header row (logo + title + auth) */
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
  min-height: 70px;
}

.header-main-left,
.header-main-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Brand block */
.brand-block {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 20%, var(--accent-magenta), transparent 55%),
              radial-gradient(circle at 70% 80%, var(--brand-purple), transparent 60%);
  box-shadow: 0 0 18px rgba(60, 20, 156, 0.6);
}

.logo-clean {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* Title + subtitle */
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.app-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--brand-purple), var(--accent-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px var(--brand-purple-30);
}

.app-subtitle {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Social links */
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 1.05em;
  transition: color var(--transition-speed), transform var(--transition-speed), opacity var(--transition-speed);
  opacity: 0.8;
}

.social-links a:hover {
  color: var(--accent-cyan);
  transform: translateY(-1px);
  opacity: 1;
}

.social-links-compact a {
  font-size: 0.95em;
}

/* Full set is shown on desktop, hidden on small screens */
.social-links-full {
  opacity: 0.9;
}

/* Countdown pill */
.countdown-timer {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 6px 12px;
  background: var(--bg-panel);
  border-radius: 999px;
  border: 1px solid var(--border-color);
  display: none; /* JS can set to block when active */
}

/* Auth container stays on the right */
.header-main-right .auth-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Keep your existing login-btn styles from below; they already look good */

/* ============================================
   RESPONSIVE HEADER ADJUSTMENTS
   ============================================ */

@media (max-width: 1024px) {
  .header-top {
    padding: 6px 18px;
  }

  .header-main {
    padding: 10px 18px;
  }

  .app-title {
    font-size: 1.6rem;
  }

  .app-subtitle {
    font-size: 0.75rem;
  }

  .social-links-full {
    display: none; /* hide duplicated full set on medium screens */
  }
}

@media (max-width: 768px) {
  .header-top-left {
    display: none; /* hide tagline on small screens */
  }

  .header-top {
    justify-content: flex-end;
  }

  .header-main {
    flex-direction: row;
    align-items: center;
  }

  .brand-text {
    gap: 0;
  }

  .app-title {
    font-size: 1.4rem;
  }

  .app-subtitle {
    display: none; /* save vertical space */
  }

  .header-main-right .auth-container {
    gap: 8px;
  }

  .social-links-full {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .logo-clean {
    width: 30px;
    height: 30px;
  }

  .app-title {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  .header-main {
    padding: 8px 12px;
  }

  .header-top {
    padding: 4px 12px;
  }
}

.app-title {
  font-size: 2rem;
  font-weight: 700;
  background: var(--text-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 3px;
  text-shadow: 0 0 20px var(--brand-purple-30);
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex: 1;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 1.2em;
  transition: color var(--transition-speed), transform var(--transition-speed);
}

.social-links a:hover {
  color: var(--brand-purple);
  transform: translateY(-2px);
}

.countdown-timer {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 8px 16px;
  background: var(--bg-panel);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  display: none;
}

/* Connect Button Styling */
.connect-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light));
  color: white;
  border: 1px solid var(--brand-purple-light);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.connect-btn:hover {
  background: linear-gradient(135deg, var(--brand-purple-light), var(--brand-purple));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.connect-btn:active {
  transform: translateY(0);
}

.connect-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.connect-btn.connected {
  background: linear-gradient(135deg, var(--success), #20a036);
}

.disconnect-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--danger), #dc2626);
  border: none;
  border-radius: 8px;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
  box-shadow: var(--shadow-sm);
}

.disconnect-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.disconnect-btn:active {
  transform: translateY(0);
}

/* ============================================
   APP CONTAINER
   ============================================ */
.app-container {
  display: flex;
  margin-top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow: hidden;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 2px solid var(--brand-purple);
  padding: 20px 0;
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 15px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-speed);
  position: relative;
}

.nav-btn:hover {
  background: var(--bg-panel);
  border-color: var(--brand-purple-30);
  color: var(--text-primary);
  transform: translateX(5px);
}

.nav-btn.active {
  background: var(--brand-purple-20);
  border-color: var(--brand-purple);
  color: var(--brand-purple);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.nav-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand-purple);
  border-radius: 0 4px 4px 0;
}

.nav-btn i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.nav-btn.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-btn.locked::after {
  content: " 🔒";
  margin-left: auto;
}

.support-btn {
  margin-top: 20px;
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.support-btn:hover {
  background: #dc2626;
  transform: translateX(0);
  transform: scale(1.02);
}

/* Sidebar Scrollbar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--brand-purple);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--brand-purple-light);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  background: var(--bg-primary);
}

.tool-panel {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.tool-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--brand-purple-30);
}

.panel-header h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.panel-header h2 i {
  font-size: 1.8rem;
}

.panel-header p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-left: 47px;
}

/* ============================================
   INPUT SECTION
   ============================================ */
.input-section {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-sm);
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
}

.input-field,
.select-field {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-speed);
}

.input-field:focus,
.select-field:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px var(--brand-purple-20);
}

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

.select-field {
  cursor: pointer;
}

.input-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.action-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark));
  border: none;
  border-radius: 8px;
  color: white;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
  box-shadow: var(--shadow-sm);
  margin-top: 10px;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--brand-purple-light), var(--brand-purple));
}

.action-btn:active {
  transform: translateY(0);
}

.action-btn i {
  margin-right: 8px;
}

.note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 10px;
}

/* ============================================
   ADVANCED BUTTONS
   ============================================ */
.advanced-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.advanced-btn {
  flex: 1;
  min-width: 120px;
  padding: 10px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--brand-purple-40);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.advanced-btn:hover {
  background: var(--brand-purple-20);
  border-color: var(--brand-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.advanced-btn.locked {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.advanced-btn.locked::after {
  content: " 🔒";
}

.advanced-btn i {
  font-size: 1rem;
}

/* ============================================
   RESULTS AREA
   ============================================ */
.results-area {
  margin-top: 30px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.results-container,
.results-containerArkham {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  height: auto;
  box-shadow: var(--shadow-sm);
  overflow-y: auto;
  animation: slideIn 0.4s ease-out;
}

.results-containerArkham {
  background: var(--bg-secondary);
  grid-column: 1 / -1;
  margin-bottom: 20px;
}

/* Light mode adjustment for Arkham container */
body.light-mode .results-containerArkham {
  background: white;
  color: black;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-container h3 {
  margin-bottom: 15px;
  color: white;
  font-size: 1.3rem;
}

.results-container::-webkit-scrollbar,
.results-containerArkham::-webkit-scrollbar {
  width: 8px;
}

.results-container::-webkit-scrollbar-track,
.results-containerArkham::-webkit-scrollbar-track {
  background: var(--bg-input);
  border-radius: 4px;
}

.results-container::-webkit-scrollbar-thumb {
  background: var(--brand-purple);
  border-radius: 4px;
}

.results-containerArkham::-webkit-scrollbar-thumb {
  background: var(--brand-purple-dark);
  border-radius: 4px;
}

.results-container::-webkit-scrollbar-thumb:hover,
.results-containerArkham::-webkit-scrollbar-thumb:hover {
  background: var(--brand-purple-light);
}

.result-item {
  padding: 15px;
  background-color: var(--bg-input);
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-speed);
  overflow: hidden;
  max-width:100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.result-item:hover {
  border-color: var(--brand-purple);
  box-shadow: var(--shadow-sm);
}

.result-item h2 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.result-item a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.result-item a:hover {
  color: var(--brand-purple);
  text-decoration: underline;
}

.result-snippet,
.result-url {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

/* ============================================
   SPINNER
   ============================================ */
.spinner {
  border: 4px solid var(--brand-purple-20);
  border-top: 4px solid var(--brand-purple);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
  display: none; /* Hidden by default */
}

.spinner.active {
  display: block; /* Show when active */
}

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

/* ============================================
   TABLES
   ============================================ */
.trace-table,
.keyword-table,
.email-results table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: var(--bg-panel);
  border-radius: 8px;
  overflow: hidden;
}

.trace-table thead,
.keyword-table thead,
.email-results table thead {
  background: var(--brand-purple-30);
}

.trace-table th,
.keyword-table th,
.email-results table th,
.trace-table td,
.keyword-table td,
.email-results table td {
  padding: 12px;
  text-align: left;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.trace-table th,
.keyword-table th,
.email-results table th {
  font-weight: 600;
  color: var(--text-primary);
}

.trace-table tbody tr:hover,
.keyword-table tbody tr:hover,
.email-results table tbody tr:hover {
  background: var(--bg-panel-hover);
}

/* Warning highlight for unlikely results */
.trace-table td[title*="Unlikely"] {
  position: relative;
  background-color: rgba(239, 68, 68, 0.1);
  border-left: 3px solid var(--danger);
}

.trace-table td[title*="Unlikely"]:hover {
  background-color: rgba(239, 68, 68, 0.2);
}

/* Clickable links in trace table */
.trace-table td a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.trace-table td a:hover {
  color: var(--brand-purple);
  border-bottom: 1px solid var(--accent-cyan);
}

.trace-table td a:active {
  color: var(--brand-purple-light);
}

.email-results {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 8px;
}

body.light-mode .email-results {
  background: white;
  color: black;
}

.email-results table th,
.email-results table td {
  color: var(--text-primary);
}

/* ============================================
   GOOGLE AUTHENTICATION STYLES
   ============================================ */

/* Auth buttons container */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Google Sign-In Wrapper */
.google-signin-wrapper {
  display: inline-flex;
  align-items: center;
}

/* User Profile Display */
.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  transition: all 0.3s ease;
}

.user-profile:hover {
  background: var(--bg-panel-hover);
  border-color: var(--border-hover);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--brand-purple);
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sign Out Button */
.disconnect-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.disconnect-btn:hover {
  background: var(--danger);
  color: white;
  transform: scale(1.1);
}



/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .input-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .app-header {
    padding: 0 15px;
  }
  
  .header-center {
    display: none;
  }
  
  .app-title {
    font-size: 1.5rem;
  }
  
  .sidebar {
    display: none;
  }
  
  .main-content {
    padding: 15px;
  }
  
  .theme-toggle {
    top: 70px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
  
  .social-links {
    gap: 8px;
  }
  
  .social-links a {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .logo-glitch {
    width: 40px;
    height: 40px;
  }
  
  .app-title {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
  
  .connect-btn,
  .disconnect-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .panel-header h2 {
    font-size: 1.5rem;
  }

    .auth-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  
  .google-signin-wrapper,
  .connect-btn {
    width: 100%;
    justify-content: center;
  }
  
  .user-profile {
    width: 100%;
    justify-content: space-between;
  }
}

/* Loading state for auth */
.auth-loading {
  opacity: 0.6;
  pointer-events: none;
}

.auth-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--brand-purple);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
/* ============================================
   ENHANCED AUTH UI & MODALS
   ============================================ */

/* Login Button */
.login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light));
  color: white;
  border: 1px solid var(--brand-purple-light);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.login-btn:hover {
  background: linear-gradient(135deg, var(--brand-purple-light), var(--accent-cyan));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.login-btn i {
  font-size: 16px;
}

/* Modal Base Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(60, 20, 156, 0.5);
  animation: slideUp 0.3s ease;
  z-index: 10001;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-panel);
}

.modal-header h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  color: var(--text-primary);
  margin: 0;
}

.modal-header i {
  color: var(--brand-purple);
  font-size: 24px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.modal-close:hover {
  background: var(--danger);
  color: white;
  transform: rotate(90deg);
}

.modal-close i {
  font-size: 18px;
}

.modal-body {
  padding: 24px;
}

/* Auth Options */
.auth-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-option {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.auth-option:hover {
  background: var(--bg-panel-hover);
  border-color: var(--brand-purple);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.auth-option-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.auth-option-header i,
.auth-option-header img {
  font-size: 24px;
  color: var(--brand-purple);
}

.auth-option-header h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin: 0;
}

.auth-option-description {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.google-signin-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

.modal-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light));
  color: white;
  border: 1px solid var(--brand-purple-light);
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.modal-auth-btn:hover {
  background: linear-gradient(135deg, var(--brand-purple-light), var(--accent-cyan));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 10px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
  padding: 0 16px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

/* Subscription Modal Styles */
.subscription-info {
  text-align: center;
}

.subscription-message {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.subscription-benefits {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: left;
}

.subscription-benefits h3 {
  color: var(--brand-purple);
  font-size: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.subscription-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.subscription-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
}

.subscription-benefits li:last-child {
  border-bottom: none;
}

.subscription-benefits li i {
  color: var(--success);
  font-size: 16px;
}

.subscription-pricing {
  margin: 24px 0;
  padding: 24px;
  background: linear-gradient(135deg, var(--brand-purple-30), var(--brand-purple-20));
  border: 2px solid var(--brand-purple);
  border-radius: 12px;
}

.price-tag {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price-tag .currency {
  font-size: 24px;
  color: var(--brand-purple);
  font-weight: 700;
}

.price-tag .amount {
  font-size: 48px;
  color: var(--text-primary);
  font-weight: 800;
}

.price-tag .period {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

.subscription-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.purchase-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.purchase-btn:hover {
  background: linear-gradient(135deg, #059669, var(--success));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.purchase-btn i {
  font-size: 18px;
}

.cancel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cancel-btn:hover {
  background: var(--bg-panel);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* User Profile Enhancements */
.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  transition: all 0.3s ease;
}

.user-profile:hover {
  background: var(--bg-panel-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--brand-purple);
  object-fit: cover;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.disconnect-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.disconnect-btn:hover {
  background: var(--danger);
  color: white;
  transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Loading States */
.modal-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.modal-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid var(--brand-purple);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 16px;
  }
  
  .modal-body {
    padding: 16px;
  }
  
  .auth-option {
    padding: 16px;
  }
  
  .subscription-pricing {
    padding: 16px;
  }
  
  .price-tag .amount {
    font-size: 36px;
  }
  
  .login-btn {
    width: 100%;
    justify-content: center;
  }
  
  .user-name {
    max-width: 100px;
  }
}

/* Enhanced visibility for Google button in modal */
#googleSignInContainer {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ============================================
   SUBSCRIPTION TIER CARDS
   ============================================ */

.subscription-modal-large {
  max-width: 1000px !important;
}

.subscription-intro {
  text-align: center;
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.subscription-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.tier-card {
  background: var(--bg-panel);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tier-card:hover {
  border-color: var(--brand-purple);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(60, 20, 156, 0.3);
}

.tier-card.featured {
  border-color: var(--brand-purple);
  background: linear-gradient(135deg, var(--brand-purple-10), var(--bg-panel));
  box-shadow: 0 4px 16px rgba(60, 20, 156, 0.2);
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light));
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-header {
  margin-bottom: 20px;
}

.tier-header h3 {
  font-size: 24px;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  font-weight: 700;
}

.tier-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--brand-purple-20), var(--brand-purple-10));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--brand-purple-30);
}

.tier-icon i {
  font-size: 28px;
  color: var(--brand-purple);
}

.tier-card.featured .tier-icon {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light));
  border-color: var(--brand-purple);
}

.tier-card.featured .tier-icon i {
  color: white;
}

.tier-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 24px 0;
}

.tier-price .currency {
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 600;
}

.tier-price .amount {
  font-size: 48px;
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1;
}

.tier-price .period {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

.tier-calls {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.tier-calls strong {
  color: var(--brand-purple);
  font-size: 20px;
  font-weight: 800;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

.tier-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.tier-features li:last-child {
  border-bottom: none;
}

.tier-features li i {
  color: var(--success);
  font-size: 14px;
  min-width: 16px;
}

.tier-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light));
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s ease;
  margin-top: auto;
}

.tier-btn:hover {
  background: linear-gradient(135deg, var(--brand-purple-light), var(--accent-cyan));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(60, 20, 156, 0.4);
}

.tier-btn.featured {
  background: linear-gradient(135deg, var(--success), #059669);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.tier-btn.featured:hover {
  background: linear-gradient(135deg, #059669, var(--success));
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.cancel-btn-link {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.cancel-btn-link:hover {
  color: var(--text-primary);
}

/* Responsive Design for Tier Cards */
@media (max-width: 768px) {
  .subscription-modal-large {
    max-width: 95% !important;
  }
  
  .subscription-tiers {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .tier-card {
    padding: 24px 20px;
  }
  
  .tier-price .amount {
    font-size: 40px;
  }
  
  .tier-header h3 {
    font-size: 20px;
  }
}

/* ============================================
   IMPROVED NAVIGATION & INFO CARDS
   ============================================ */

/* Auth Container - Better organization */
.auth-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* User Info Section - New container for all user data */
.user-info-section {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.4s ease;
}

/* Info Cards - Unified card design */
.info-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.3s ease;
  min-width: 120px;
}

.info-card:hover {
  border-color: var(--brand-purple);
  background: var(--bg-panel-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Info Labels */
.info-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.info-label i {
  font-size: 11px;
  color: var(--brand-purple);
}

/* Info Values */
.info-value {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
}

/* Wallet Balance Card */
.wallet-balance .info-value {
  color: var(--matrix-green);
  font-size: 16px;
  font-weight: 800;
}

/* Wallet Address Card */
.wallet-address {
  min-width: 180px;
}

.wallet-address-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--accent-cyan);
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover {
  background: var(--brand-purple-20);
  color: var(--brand-purple);
  transform: scale(1.1);
}

.copy-btn.copied {
  color: var(--success);
}

.copy-btn.copied i::before {
  content: "\f00c"; /* fa-check */
}

/* API Stats Card */
.api-stats {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
}

.stat-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-value {
  color: var(--brand-purple);
  font-weight: 700;
  font-size: 16px;
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border-color);
}

.tier-badge-small {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light));
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* User Profile - Improved */
.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  transition: all 0.3s ease;
}

.user-profile:hover {
  border-color: var(--brand-purple);
  box-shadow: var(--shadow-sm);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--brand-purple);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.user-avatar:hover {
  transform: scale(1.1);
}

.user-name {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Disconnect Button */
.disconnect-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.disconnect-btn:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
  transform: scale(1.1);
}

.disconnect-btn i {
  font-size: 14px;
}

/* Upgrade Button */
.upgrade-btn {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light));
  border: 1px solid var(--brand-purple);
  color: white;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.upgrade-btn:hover {
  background: linear-gradient(135deg, var(--brand-purple-light), var(--accent-magenta));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.upgrade-btn i {
  font-size: 14px;
  color: #ffd700;
}

.upgrade-btn span {
  font-size: 12px;
}

/* Responsive Design for Navigation */
@media (max-width: 1400px) {
  .user-info-section {
    gap: 8px;
  }
  
  .info-card {
    min-width: 100px;
    padding: 6px 10px;
  }
  
  .wallet-address {
    min-width: 140px;
  }
  
  .wallet-address-text {
    font-size: 11px;
  }
  
  .user-name {
    max-width: 80px;
  }
}

@media (max-width: 1200px) {
  .header-right {
    gap: 8px;
  }
  
  .social-links {
    gap: 8px;
  }
  
  .social-links a {
    font-size: 14px;
  }
  
  .info-card {
    min-width: 90px;
    font-size: 11px;
  }
  
  .info-value {
    font-size: 13px;
  }
  
  .wallet-balance .info-value {
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  /* Stack info cards vertically on smaller screens */
  .user-info-section {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
  
  .info-card {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 768px) {
  .header-right {
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
  }
  
  .social-links {
    order: 3;
  }
  
  .countdown-timer {
    order: 2;
    font-size: 11px;
  }
  
  .auth-container {
    order: 1;
  }
  
  .user-info-section {
    align-items: flex-end;
  }
  
  .login-btn {
    width: 100%;
    justify-content: center;
  }
  
  .user-name {
    max-width: 100px;
  }
}

/* Loading state for info values */
.info-value.loading::after {
  content: '...';
  animation: ellipsis 1.5s infinite;
}

@keyframes ellipsis {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Success state for copy button */
@keyframes copySuccess {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.copy-btn.copied {
  animation: copySuccess 0.4s ease;
}

/* ============================================
   UNIFIED RESULT ITEMS STYLING
   ============================================ */

/* Universal result item styling matching User Search theme */
.result-item,
.results-container > div:not(.spinner):not(h3):not(.advanced-buttons),
#googleResults > div:not(h3),
#braveResults > div:not(h3),
#googleResultsC > div:not(h3),
#braveResultsC > div:not(h3),
#arkhamResults > div:not(h3),
#googleDorkResults > div.result-item,
#tracerResults > div,
#emailResults > div,
#keywordResults > div {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(186, 252, 149, 0.2);
  transition: all 0.3s ease;
}

.result-item:hover,
.results-container > div:not(.spinner):not(h3):not(.advanced-buttons):hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(186, 252, 149, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(186, 252, 149, 0.15);
}

/* Result titles */
.result-item h2,
.result-item h3,
.result-item .result-title {
  margin-bottom: 8px;
  color: #bafc95;
  text-align: left;
  margin-top: 0;
  font-size: 1.2em;
  font-weight: 600;
}

.result-item h2 a,
.result-item h3 a,
.result-item .result-title a {
  color: #bafc95;
  text-decoration: none;
  transition: color 0.2s;
}

.result-item h2 a:hover,
.result-item h3 a:hover,
.result-item .result-title a:hover {
  color: #d4ffc1;
}

/* Result descriptions/snippets */
.result-item p,
.result-item .result-snippet,
.result-item .result-description {
  margin-bottom: 8px;
  margin-top: 8px;
  text-align: left;
  color: #fff;
  line-height: 1.5;
}

/* Result URLs */
.result-item .result-url,
.result-item p[style*="color: #4caf50"],
.result-item a[style*="color: #00d9ff"] {
  font-size: 14px;
  color: #4caf50 !important;
  text-align: left;
  word-break: break-all;
  margin: 0;
}

/* Info headers/boxes */
.result-item .info-header,
.search-info-header,
div[style*="background: rgba(186, 252, 149, 0.1)"] {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(186, 252, 149, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(186, 252, 149, 0.2);
}

/* Query/search term highlighting */
.result-item strong,
.search-info-header strong {
  color: #bafc95;
}

/* Result metadata */
.result-item .result-meta,
.result-item .meta-info {
  color: #ccc;
  font-size: 0.9em;
  margin-top: 8px;
}

/* Success indicators */
.result-item i.fa-check-circle,
.search-info i.fa-check-circle {
  color: #bafc95;
}

/* ============================================
   OSINT DATA EXTRACTOR STYLES
   ============================================ */

.osint-section {
  animation: fadeIn 0.4s ease;
}

.osint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.osint-item {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(186, 252, 149, 0.2);
  color: #fff;
  font-size: 0.95em;
  transition: all 0.3s ease;
  word-break: break-word;
}

.osint-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(186, 252, 149, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(186, 252, 149, 0.1);
}

.osint-item a {
  text-decoration: none;
  transition: opacity 0.2s;
}

.osint-item a:hover {
  opacity: 0.8;
}

/* Summary cards in OSINT */
.osint-summary-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.osint-summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(186, 252, 149, 0.2);
}

@media (max-width: 768px) {
  .osint-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   WALLET RESEARCHER STYLES
   ============================================ */

/* Feature info banner */
.feature-info-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--brand-purple-20), var(--brand-purple-10));
  border: 1px solid var(--brand-purple-40);
  border-radius: 8px;
  margin-bottom: 20px;
  color: var(--accent-cyan);
  font-size: 0.9em;
}

.feature-info-banner i {
  color: #f59e0b;
  font-size: 1.1em;
}

/* Textarea field */
.textarea-field {
  min-height: 150px;
  resize: vertical;
  font-family: "Courier New", Courier, monospace;
  line-height: 1.6;
  padding: 12px;
}

/* Wallet researcher options */
.wallet-researcher-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 20px 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.option-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--brand-purple);
}

.option-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.95em;
  transition: color var(--transition-speed);
}

.option-group label:hover {
  color: var(--text-primary);
}

.option-group label i {
  color: var(--accent-cyan);
  font-size: 1.1em;
}

/* Progress section */
.progress-section {
  margin: 25px 0;
  padding: 20px;
  background: rgba(60, 20, 156, 0.1);
  border: 1px solid var(--brand-purple-40);
  border-radius: 8px;
  animation: fadeIn 0.3s ease;
}

.progress-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--text-primary);
  font-weight: 600;
}

.progress-header i {
  color: var(--accent-cyan);
  font-size: 1.2em;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-purple), var(--accent-cyan));
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
  box-shadow: 0 0 10px rgba(60, 20, 156, 0.5);
}

.progress-status {
  color: var(--text-muted);
  font-size: 0.9em;
  text-align: center;
}

/* Wallet research result card */
.wallet-research-card {
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.3s ease;
  animation: slideIn 0.4s ease;
}

.wallet-research-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--brand-purple-60);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(60, 20, 156, 0.3);
}

.wallet-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.wallet-address-display {
  flex: 1;
}

.wallet-address-label {
  color: var(--text-muted);
  font-size: 0.85em;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wallet-address-value {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.05em;
  color: var(--accent-cyan);
  word-break: break-all;
  font-weight: 600;
}

.wallet-risk-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.risk-low { 
  background: rgba(16, 185, 129, 0.2); 
  color: #10b981;
  border: 1px solid #10b981;
}

.risk-medium { 
  background: rgba(245, 158, 11, 0.2); 
  color: #f59e0b;
  border: 1px solid #f59e0b;
}

.risk-high { 
  background: rgba(239, 68, 68, 0.2); 
  color: #ef4444;
  border: 1px solid #ef4444;
}

.wallet-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.wallet-info-item {
  padding: 12px;
  background: rgba(60, 20, 156, 0.1);
  border-radius: 8px;
  border: 1px solid var(--brand-purple-30);
}

.wallet-info-label {
  color: var(--text-muted);
  font-size: 0.85em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wallet-info-label i {
  color: var(--brand-purple);
}

.wallet-info-value {
  color: var(--text-primary);
  font-size: 1.1em;
  font-weight: 600;
}

.wallet-analysis-section {
  margin-top: 20px;
  padding: 16px;
  background: rgba(0, 217, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(0, 217, 255, 0.2);
}

.analysis-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 12px;
}

.analysis-title i {
  font-size: 1.2em;
}

.analysis-content {
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-wrap;
}

.wallet-error-card {
  padding: 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  margin-bottom: 15px;
}

.wallet-error-card .error-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ef4444;
  font-weight: 600;
  margin-bottom: 8px;
}

.wallet-error-card .error-message {
  color: var(--text-secondary);
  font-size: 0.95em;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Locked feature styling */
.nav-btn.locked {
  position: relative;
  opacity: 0.6;
}

.nav-btn.locked::after {
  content: '\f023';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #f59e0b;
  font-size: 0.9em;
}

.action-btn.locked {
  opacity: 0.7;
  cursor: not-allowed;
  position: relative;
}

.action-btn.locked::before {
  content: '\f023';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 8px;
  color: #f59e0b;
}

@media (max-width: 768px) {
  .wallet-info-grid {
    grid-template-columns: 1fr;
  }
  
  .wallet-researcher-options {
    grid-template-columns: 1fr;
  }
  
  .wallet-card-header {
    flex-direction: column;
    gap: 12px;
  }
}