/* ============================================
   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("/?originalUrl=https%3A%2F%2Fi.ibb.co%2FtZHRZf7%2FSPECTRABackground.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);
}

.promo-link {
  display: block;
  width: 100%;
  padding: 12px 24px;
  margin-top: 10px;

  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.25),
    rgba(167, 139, 250, 0.25)
  );

  color: var(--text-secondary);
  text-align: center;
  text-decoration: none;

  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;

  transition: all 0.3s ease;
}

.promo-link:hover {
  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.35),
    rgba(34, 211, 238, 0.35)
  );

  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(60, 20, 156, 0.25);
}


.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;
  }
}
/* ============================================
   WALLET RESEARCHER V2 - ENHANCED CSS STYLES
   Add to your existing styles.css
   ============================================ */

/* Version Badge */
.version-badge {
  display: inline-block;
  padding: 2px 8px;
  background: linear-gradient(135deg, #bafc95, #22c55e);
  color: #0a0a1a;
  font-size: 0.6em;
  font-weight: 700;
  border-radius: 10px;
  vertical-align: middle;
  margin-left: 8px;
}

/* Features Banner */
.features-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 15px;
  background: rgba(60, 20, 156, 0.15);
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid rgba(186, 252, 149, 0.1);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bafc95;
  font-size: 0.85em;
  padding: 6px 12px;
  background: rgba(186, 252, 149, 0.08);
  border-radius: 20px;
}

.feature-item i {
  font-size: 0.9em;
  opacity: 0.8;
}

/* Input Helper */
.input-helper {
  margin-top: 8px;
}

.supported-formats {
  color: #888;
  font-size: 0.8em;
}

.supported-formats i {
  color: #22c55e;
  margin-right: 4px;
}

.hint {
  color: #888;
  font-size: 0.85em;
  font-weight: normal;
}

/* Research Options Panel */
.research-options {
  margin-top: 15px;
  padding: 18px;
  background: rgba(60, 20, 156, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(186, 252, 149, 0.15);
}

.options-header {
  color: #bafc95;
  font-weight: 600;
  font-size: 0.9em;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

/* Custom Checkbox Styling */
.option-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #ccc;
  font-size: 0.85em;
  padding: 10px 12px;
  background: rgba(30, 15, 60, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(186, 252, 149, 0.1);
  transition: all 0.2s ease;
}

.option-checkbox:hover {
  background: rgba(60, 20, 156, 0.3);
  border-color: rgba(186, 252, 149, 0.25);
}

.option-checkbox input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(186, 252, 149, 0.4);
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.option-checkbox input[type="checkbox"]:checked + .checkbox-custom {
  background: #bafc95;
  border-color: #bafc95;
}

.option-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #0a0a1a;
  font-size: 12px;
  font-weight: bold;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.option-label i {
  opacity: 0.7;
}

/* Premium Option (Deep Search) */
.option-premium {
  border-color: rgba(232, 146, 231, 0.3);
  background: rgba(232, 146, 231, 0.05);
}

.option-premium:hover {
  border-color: rgba(232, 146, 231, 0.5);
  background: rgba(232, 146, 231, 0.1);
}

.option-premium .option-label {
  color: #e892e7;
}

.option-premium .checkbox-custom {
  border-color: rgba(232, 146, 231, 0.5);
}

.option-premium input[type="checkbox"]:checked + .checkbox-custom {
  background: #e892e7;
  border-color: #e892e7;
}

.credit-cost {
  font-size: 0.75em;
  color: #f59e0b;
  margin-left: 4px;
}

/* Progress Section Enhancement */
.progress-section {
  margin-top: 20px;
  padding: 20px;
  background: rgba(60, 20, 156, 0.15);
  border-radius: 10px;
  border: 1px solid rgba(186, 252, 149, 0.15);
}

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

.progress-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(186, 252, 149, 0.1);
  border-radius: 50%;
  color: #bafc95;
  font-size: 1.1em;
}

.progress-title {
  color: #fff;
  font-weight: 600;
  font-size: 1em;
}

.progress-bar-container {
  height: 8px;
  background: rgba(30, 15, 60, 0.6);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #bafc95, #22c55e);
  border-radius: 10px;
  transition: width 0.4s ease;
  width: 0%;
}

.progress-status {
  color: #888;
  font-size: 0.85em;
  text-align: center;
}

/* Results Area Enhancement */
.results-area {
  margin-top: 20px;
}

/* Wallet Research Card */
.wallet-research-card {
  background: rgba(30, 15, 60, 0.6);
  border: 1px solid rgba(186, 252, 149, 0.15);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.wallet-research-card:hover {
  border-color: rgba(186, 252, 149, 0.3);
}

.wallet-card-header {
  padding: 18px;
  background: rgba(60, 20, 156, 0.2);
  border-bottom: 1px solid rgba(186, 252, 149, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.wallet-address-display {
  flex: 1;
  min-width: 200px;
}

.wallet-address-label {
  color: #888;
  font-size: 0.75em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.wallet-address-value {
  color: #fff;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.9em;
  word-break: break-all;
}

/* Risk Badges */
.risk-badge,
.wallet-risk-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.risk-low,
.wallet-risk-badge.risk-low {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #22c55e;
}

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

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

.risk-critical,
.wallet-risk-badge.risk-critical {
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid #dc2626;
  color: #dc2626;
  animation: pulse-critical 2s infinite;
}

@keyframes pulse-critical {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 10px 3px rgba(220, 38, 38, 0.2); }
}

/* Tabs */
.wallet-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(186, 252, 149, 0.1);
  background: rgba(60, 20, 156, 0.1);
}

.wallet-tab {
  padding: 12px 20px;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 0.85em;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wallet-tab:hover {
  color: #bafc95;
  background: rgba(186, 252, 149, 0.05);
}

.wallet-tab.active {
  color: #bafc95;
  border-bottom-color: #bafc95;
}

.wallet-tab-content {
  padding: 20px;
}

.tab-pane {
  animation: fadeIn 0.3s ease;
}

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

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.info-item {
  padding: 15px;
  background: rgba(60, 20, 156, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(186, 252, 149, 0.1);
}

.wallet-info-label {
  color: #888;
  font-size: 0.75em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wallet-info-value {
  color: #fff;
  font-size: 0.95em;
}

/* Analysis Section */
.wallet-analysis-section {
  margin-top: 15px;
  padding: 15px;
  background: rgba(186, 252, 149, 0.05);
  border: 1px solid rgba(186, 252, 149, 0.15);
  border-radius: 8px;
}

.analysis-title {
  color: #bafc95;
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.analysis-content {
  color: #ddd;
  font-size: 0.9em;
  line-height: 1.6;
  white-space: pre-line;
}

/* Error Card */
.wallet-error-card {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 15px;
}

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

.error-message {
  color: #f59e0b;
  font-size: 0.9em;
}

/* Export Buttons */
.export-btn {
  padding: 8px 16px;
  background: rgba(60, 20, 156, 0.5);
  border: 1px solid rgba(186, 252, 149, 0.3);
  border-radius: 6px;
  color: #bafc95;
  cursor: pointer;
  font-size: 0.85em;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.export-btn:hover {
  background: rgba(60, 20, 156, 0.7);
  border-color: rgba(186, 252, 149, 0.5);
  transform: translateY(-1px);
}

/* Token Table */
.tokens-table {
  width: 100%;
  border-collapse: collapse;
}

.tokens-table th {
  padding: 12px;
  text-align: left;
  color: #888;
  font-size: 0.75em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(186, 252, 149, 0.2);
}

.tokens-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(186, 252, 149, 0.08);
}

.tokens-table tr:hover {
  background: rgba(60, 20, 156, 0.2);
}

/* Transaction List */
.tx-list-item {
  padding: 12px;
  background: rgba(60, 20, 156, 0.15);
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tx-hash {
  font-family: monospace;
  color: #bafc95;
  font-size: 0.85em;
}

.tx-value {
  color: #22c55e;
  font-weight: 500;
}

.tx-time {
  color: #888;
  font-size: 0.8em;
}

/* Web Finding Item */
.web-finding {
  padding: 15px;
  background: rgba(60, 20, 156, 0.2);
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid rgba(186, 252, 149, 0.1);
  transition: border-color 0.2s ease;
}

.web-finding:hover {
  border-color: rgba(186, 252, 149, 0.3);
}

.web-finding-title {
  color: #bafc95;
  font-weight: 500;
  margin-bottom: 6px;
}

.web-finding-title a {
  color: inherit;
  text-decoration: none;
}

.web-finding-title a:hover {
  text-decoration: underline;
}

.web-finding-source {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(186, 252, 149, 0.1);
  border-radius: 10px;
  color: #888;
  font-size: 0.7em;
  text-transform: uppercase;
}

.web-finding-snippet {
  color: #aaa;
  font-size: 0.85em;
  line-height: 1.4;
  margin-top: 8px;
}

/* Labels Display */
.labels-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.label-tag {
  padding: 5px 12px;
  background: rgba(60, 20, 156, 0.4);
  border-radius: 15px;
  color: #bafc95;
  font-size: 0.8em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .features-banner {
    justify-content: center;
  }
  
  .options-grid {
    grid-template-columns: 1fr;
  }
  
  .wallet-card-header {
    flex-direction: column;
    text-align: center;
  }
  
  .wallet-tabs {
    overflow-x: auto;
  }
  
  .wallet-tab {
    padding: 10px 15px;
    font-size: 0.8em;
    white-space: nowrap;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .export-btn {
    flex: 1;
    justify-content: center;
  }
}

/* Loading State for Cards */
.wallet-research-card.loading {
  position: relative;
  overflow: hidden;
}

.wallet-research-card.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(186, 252, 149, 0.1), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% { left: 100%; }
}

/* Notification Toast */
.notification-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 24px;
  border-radius: 8px;
  color: white;
  z-index: 10000;
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.notification-toast.success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.notification-toast.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification-toast.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.notification-toast.info {
  background: linear-gradient(135deg, #3c149c, #5b21b6);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   COMPREHENSIVE FEATURE LOCKING CSS
   Add this to your styles.css
   ============================================ */

/* ============================================
   LOCKED NAV BUTTONS
   ============================================ */
.nav-btn.locked {
  position: relative;
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: auto !important; /* Keep pointer events to show upgrade modal */
}

.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;
}

.nav-btn.locked:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: #ef4444 !important;
  transform: none !important;
}

.nav-btn.locked span {
  opacity: 0.7;
}

/* ============================================
   LOCKED INPUT FIELDS
   ============================================ */
.input-field.input-locked,
.select-field.input-locked,
.textarea-field.input-locked,
input[data-locked="true"],
select[data-locked="true"],
textarea[data-locked="true"] {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  background: rgba(100, 100, 100, 0.2) !important;
  border-color: #666 !important;
  color: #888 !important;
  pointer-events: auto !important; /* Allow click to show upgrade modal */
}

.input-field.input-locked:focus,
.select-field.input-locked:focus,
.textarea-field.input-locked:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: #ef4444 !important;
}

.input-field.input-locked::placeholder {
  color: #666 !important;
}

/* ============================================
   LOCKED ACTION BUTTONS
   ============================================ */
.action-btn.locked,
.action-btn:disabled,
button.locked[data-locked="true"] {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  background: linear-gradient(135deg, #444, #333) !important;
  border-color: #555 !important;
  color: #888 !important;
  pointer-events: auto !important;
  position: relative;
}

.action-btn.locked:hover,
.action-btn:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

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

/* ============================================
   LOCKED ADVANCED BUTTONS
   ============================================ */
.advanced-btn.locked,
.advanced-btn:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  background: rgba(50, 50, 50, 0.5) !important;
  border-color: #444 !important;
  color: #666 !important;
}

.advanced-btn.locked:hover,
.advanced-btn:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: #ef4444 !important;
}

.advanced-btn.locked::after {
  content: ' 🔒';
  font-size: 0.8em;
}

/* ============================================
   LOCK OVERLAY FOR PANELS
   ============================================ */
.lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 26, 0.92);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: 12px;
  cursor: pointer;
}

.lock-overlay-content {
  text-align: center;
  padding: 30px;
}

.lock-overlay-content i.fa-lock {
  font-size: 3em;
  color: #f59e0b;
  margin-bottom: 15px;
  display: block;
  animation: lockPulse 2s infinite;
}

@keyframes lockPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.lock-overlay-content h3 {
  color: #fff;
  font-size: 1.4em;
  margin-bottom: 8px;
}

.lock-overlay-content p {
  color: #aaa;
  margin-bottom: 20px;
  font-size: 0.95em;
}

.unlock-btn {
  padding: 12px 28px;
  background: linear-gradient(135deg, #3c149c, #6b21a8);
  border: 2px solid #bafc95;
  border-radius: 8px;
  color: #bafc95;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.unlock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(186, 252, 149, 0.3);
  background: linear-gradient(135deg, #4c1cbc, #8b31c8);
}

.unlock-btn i {
  color: #f59e0b;
}

/* ============================================
   LOCKED PANEL STATE
   ============================================ */
.tool-panel.panel-locked .input-section {
  position: relative;
}

.tool-panel.panel-locked .panel-header {
  opacity: 0.7;
}

.tool-panel.panel-locked .panel-header h2::after {
  content: ' 🔒';
  font-size: 0.6em;
  margin-left: 10px;
  vertical-align: middle;
}

/* ============================================
   LOCKED RESEARCH OPTIONS (WALLET RESEARCHER)
   ============================================ */
.research-options.locked,
#walletResearchOptions.locked {
  opacity: 0.5;
  pointer-events: none;
}

.research-options.locked .option-checkbox,
#walletResearchOptions.locked .option-checkbox {
  cursor: not-allowed;
}

.research-options.locked input[type="checkbox"],
#walletResearchOptions.locked input[type="checkbox"] {
  pointer-events: none;
}

/* ============================================
   DISABLED CHECKBOX STYLING
   ============================================ */
input[type="checkbox"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

input[type="checkbox"]:disabled + .checkbox-custom {
  background: #333 !important;
  border-color: #555 !important;
}

input[type="checkbox"]:disabled ~ .option-label {
  opacity: 0.5;
  color: #666;
}

/* ============================================
   TOOLTIP FOR LOCKED FEATURES
   ============================================ */
[data-locked="true"] {
  position: relative;
}

[data-locked="true"]:hover::after {
  content: 'Subscribe to unlock';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  color: #f59e0b;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75em;
  white-space: nowrap;
  z-index: 1000;
  border: 1px solid #f59e0b;
  margin-bottom: 5px;
}

/* Don't show tooltip on nav buttons (they already have lock icon) */
.nav-btn[data-locked="true"]:hover::after {
  display: none;
}

/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */
@media (max-width: 768px) {
  .lock-overlay-content {
    padding: 20px;
  }
  
  .lock-overlay-content i.fa-lock {
    font-size: 2.5em;
  }
  
  .lock-overlay-content h3 {
    font-size: 1.2em;
  }
  
  .unlock-btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}

/* ============================================
   ANIMATION FOR LOCKED STATE TRANSITION
   ============================================ */
.nav-btn,
.action-btn,
.advanced-btn,
.input-field,
.select-field,
.textarea-field {
  transition: opacity 0.3s ease, 
              background 0.3s ease, 
              border-color 0.3s ease,
              transform 0.2s ease;
}

/* ============================================
   FREE TIER INDICATOR
   ============================================ */
.tier-badge-small.free-tier {
  background: linear-gradient(135deg, #666, #444);
  color: #aaa;
}

.tier-badge-small.free-tier::before {
  content: '🔒 ';
}

/* ============================================
   MAIN PAGE IOC BANNER
   ============================================ */
.ioc-banner {
  background: linear-gradient(135deg, rgba(60, 20, 156, 0.9), rgba(107, 33, 168, 0.9));
  border-bottom: 2px solid #bafc95;
  padding: 12px 20px;
  position: relative;
  overflow: hidden;
}

.ioc-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23bafc95' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.ioc-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.ioc-banner-icon {
  flex-shrink: 0;
}

.ioc-banner-logo {
  width: 32px;
  height: 32px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.ioc-banner-text {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.ioc-banner-highlight {
  background: linear-gradient(135deg, #bafc95, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.1em;
}

.ioc-banner-message {
  color: #e0e0e0;
  font-size: 0.95em;
}

.ioc-banner-message strong {
  color: #fff;
}

.ioc-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #bafc95, #22c55e);
  border: none;
  border-radius: 25px;
  color: #0a0a1a;
  font-weight: 600;
  font-size: 0.9em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.ioc-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(186, 252, 149, 0.4);
}

.ioc-banner-btn i {
  font-size: 1em;
}

.ioc-banner-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s ease;
}

.ioc-banner-close:hover {
  color: #fff;
}

/* Hide banner when dismissed */
.ioc-banner.hidden {
  display: none;
}

/* ============================================
   SUBSCRIPTION MODAL IOC SECTION
   ============================================ */
.ioc-holder-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 25px;
  background: linear-gradient(135deg, rgba(60, 20, 156, 0.4), rgba(107, 33, 168, 0.3));
  border: 2px solid #bafc95;
  border-radius: 12px;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
}

.ioc-holder-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(186, 252, 149, 0.1) 50%, transparent 60%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.ioc-holder-icon {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.ioc-holder-icon img {
  width: 50px;
  height: 50px;
  animation: pulse 2s infinite;
}

.ioc-holder-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.ioc-holder-content h4 {
  color: #bafc95;
  font-size: 1.1em;
  margin: 0 0 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ioc-holder-content h4 i {
  color: #f59e0b;
}

.ioc-holder-content p {
  color: #ccc;
  margin: 0;
  font-size: 0.95em;
}

.ioc-holder-content .highlight {
  color: #bafc95;
  font-weight: 600;
}

.ioc-holder-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #f6851b, #e2761b);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95em;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.ioc-holder-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(246, 133, 27, 0.4);
}

/* Subscription Divider */
.subscription-divider {
  display: flex;
  align-items: center;
  margin: 25px 0;
  gap: 15px;
}

.subscription-divider::before,
.subscription-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(186, 252, 149, 0.3), transparent);
}

.subscription-divider span {
  color: #888;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* IOC Info Link */
.ioc-info-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bafc95;
  text-decoration: none;
  font-size: 0.9em;
  margin-bottom: 15px;
  transition: all 0.2s ease;
}

.ioc-info-link:hover {
  color: #fff;
  text-decoration: underline;
}

.ioc-info-link i {
  font-size: 1em;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
  .ioc-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .ioc-banner-close {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-top: 5px;
  }
  
  .ioc-holder-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .ioc-holder-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   LOGIN MODAL IOC NOTE (Optional)
   ============================================ */
.login-ioc-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: rgba(186, 252, 149, 0.1);
  border: 1px solid rgba(186, 252, 149, 0.2);
  border-radius: 8px;
  margin-top: 20px;
}

.login-ioc-note img {
  width: 24px;
  height: 24px;
}

.login-ioc-note p {
  margin: 0;
  color: #aaa;
  font-size: 0.85em;
}

.login-ioc-note strong {
  color: #bafc95;
}

/* ============================================
   TORNADO CASH VIEWER — Additional Styles
   Uses existing IOC theme variables from styles.css
   ============================================ */

/* ── Pool Toggle Buttons ────────────────────── */
.tc-pool-toggles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tc-pool-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(30, 15, 60, 0.4);
  border: 1px solid rgba(186, 252, 149, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  font-size: 0.85em;
  font-weight: 500;
  color: var(--text-muted);
}

.tc-pool-toggle:hover {
  background: var(--brand-purple-20);
  border-color: rgba(186, 252, 149, 0.25);
  color: var(--text-primary);
}

.tc-pool-toggle.active {
  border-color: rgba(186, 252, 149, 0.6);
  background: rgba(186, 252, 149, 0.08);
  color: #bafc95;
}

/* Pool-specific active colours */
.tc-pool-toggle[data-pool="1_eth"].active {
  color: var(--accent-magenta);
  border-color: var(--accent-magenta);
}
.tc-pool-toggle[data-pool="10_eth"].active {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}
.tc-pool-toggle[data-pool="100_eth"].active {
  color: #bafc95;
  border-color: #bafc95;
}

/* Dot indicator */
.tc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: box-shadow 0.2s ease;
}

.tc-dot-1   { background: var(--accent-magenta); }
.tc-dot-10  { background: var(--accent-cyan); }
.tc-dot-100 { background: #bafc95; }

.tc-pool-toggle.active .tc-dot {
  box-shadow: 0 0 8px currentColor;
}

/* ── Preset Buttons ─────────────────────────── */
.tc-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tc-preset {
  padding: 8px 16px;
  border-radius: 6px;
  background: rgba(30, 15, 60, 0.4);
  border: 1px solid rgba(186, 252, 149, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tc-preset:hover {
  border-color: rgba(186, 252, 149, 0.3);
  color: var(--text-primary);
  background: var(--brand-purple-20);
}

.tc-preset.active {
  border-color: #bafc95;
  color: #bafc95;
  background: rgba(186, 252, 149, 0.08);
}

/* ── Pool Contract Info Tags ────────────────── */
.tc-pool-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tc-pool-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(186, 252, 149, 0.06);
  border: 1px solid rgba(186, 252, 149, 0.12);
  border-radius: 20px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.tc-pool-tag code {
  color: var(--accent-cyan);
  font-size: 0.9em;
}

/* ── Status & Error Messages ────────────────── */
.tc-status {
  padding: 12px 16px;
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid rgba(0, 217, 255, 0.15);
  border-radius: 8px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.4s ease-out;
}

.tc-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--danger);
  animation: fadeIn 0.4s ease-out;
}

/* ── Summary Stat Cards ─────────────────────── */
.tc-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.tc-stat {
  padding: 16px;
  background: rgba(60, 20, 156, 0.2);
  border-radius: 10px;
  border: 1px solid rgba(186, 252, 149, 0.1);
  transition: all 0.3s ease;
  animation: slideIn 0.4s ease-out;
}

.tc-stat:hover {
  border-color: rgba(186, 252, 149, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(186, 252, 149, 0.1);
}

.tc-stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.tc-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #bafc95;
}

.tc-stat-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Results Table ──────────────────────────── */
.tc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-panel);
}

.tc-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

/* Header row */
.tc-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--brand-purple-30);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.63rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 10px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color);
}

.tc-table-wrap thead th:first-child {
  text-align: left;
}

/* Pool group header */
.tc-table-wrap thead th.tc-ph {
  border-left: 1px solid var(--border-color);
  text-align: center;
}

.tc-table-wrap thead th.tc-p1  { color: var(--accent-magenta); }
.tc-table-wrap thead th.tc-p10 { color: var(--accent-cyan); }
.tc-table-wrap thead th.tc-p100 { color: #bafc95; }

/* Body rows */
.tc-table-wrap tbody tr {
  transition: background 0.15s ease;
}

.tc-table-wrap tbody tr:hover {
  background: rgba(186, 252, 149, 0.04);
}

.tc-table-wrap tbody td {
  padding: 10px;
  border-bottom: 1px solid rgba(186, 252, 149, 0.08);
  text-align: right;
  white-space: nowrap;
  color: var(--text-muted);
}

.tc-table-wrap tbody td:first-child {
  text-align: left;
}

.tc-table-wrap tbody td a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.tc-table-wrap tbody td a:hover {
  color: #bafc95;
  border-bottom-color: var(--accent-cyan);
}

/* Pool border separators */
.tc-table-wrap tbody td.tc-pb,
.tc-table-wrap tfoot td.tc-pb {
  border-left: 1px solid rgba(186, 252, 149, 0.1);
}

/* Total column highlight */
.tc-table-wrap tbody td.tc-tc {
  color: #bafc95;
  font-weight: 700;
}

/* Footer totals row */
.tc-table-wrap tfoot td {
  padding: 12px 10px;
  border-top: 2px solid var(--brand-purple-40);
  font-weight: 700;
  text-align: right;
  color: var(--text-primary);
}

.tc-table-wrap tfoot td:first-child {
  text-align: left;
  color: #bafc95;
}

/* ── Credit Cost Badge ───────────────────────── */
.tc-credit-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(186, 252, 149, 0.08);
  border: 1px solid rgba(186, 252, 149, 0.2);
  font-size: 0.78rem;
  font-weight: 600;
  color: #bafc95;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tc-credit-badge.tc-cost-high {
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.tc-credit-badge.tc-cost-extreme {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .tc-pool-toggles {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .tc-summary {
    grid-template-columns: 1fr;
  }
}