/* ============================================================
   KriptoLens — EggTech Material Design 3 (M3) Light Theme
   Reference: https://m3.material.io/develop/web
   Design System: EggTech M3 (eggtech.company/media-kit)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ── M3 DESIGN TOKENS (EggTech M3 Palette) ───────────────────── */
:root {
  /* Primary (Warm Orange) */
  --md-sys-color-primary: #ea580c;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #ffedd5;
  --md-sys-color-on-primary-container: #7c2d12;
  --md-sys-color-primary-hover: #c2410c;

  /* Secondary (Slate Gray) */
  --md-sys-color-secondary: #4b5563;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #e5e7eb;
  --md-sys-color-on-secondary-container: #111827;

  /* Tertiary (Success / Green) */
  --md-sys-color-tertiary: #16a34a;
  --md-sys-color-on-tertiary: #ffffff;
  --md-sys-color-tertiary-container: #dcfce7;
  --md-sys-color-on-tertiary-container: #166534;

  /* Error (Red) */
  --md-sys-color-error: #dc2626;
  --md-sys-color-on-error: #ffffff;
  --md-sys-color-error-container: #fee2e2;
  --md-sys-color-on-error-container: #991b1b;

  /* Surface & Background (Light Mode) */
  --md-sys-color-background: #f9fafb;
  --md-sys-color-on-background: #111827;
  --md-sys-color-surface: #ffffff;
  --md-sys-color-on-surface: #111827;
  --md-sys-color-surface-variant: #f3f4f6;
  --md-sys-color-on-surface-variant: #4b5563;

  /* Tonal Surface Containers (M3 Layering) */
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low: #f9fafb;
  --md-sys-color-surface-container: #f3f4f6;
  --md-sys-color-surface-container-high: #e5e7eb;
  --md-sys-color-surface-container-highest: #e0e2e7;

  /* Outline & Borders */
  --md-sys-color-outline: #e5e7eb;
  --md-sys-color-outline-variant: #d1d5db;
  --md-sys-color-outline-focus: #ea580c;

  /* Text & Labels */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;

  /* Shapes (M3 Shape System) */
  --md-shape-corner-none: 0px;
  --md-shape-corner-xs: 4px;
  --md-shape-corner-sm: 8px;
  --md-shape-corner-md: 12px;
  --md-shape-corner-lg: 16px;
  --md-shape-corner-xl: 20px;
  --md-shape-corner-full: 999px;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Elevations (Subtle tonal layers instead of heavy dark shadows) */
  --md-elevation-1: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --md-elevation-2: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --md-elevation-3: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);

  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

/* ── BASE RESET ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--md-sys-color-background);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background subtle ambient warmth */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
}
.orb-1 {
  width: 500px;
  height: 500px;
  background: #ffedd5;
  top: -150px;
  right: -100px;
}
.orb-2 {
  width: 450px;
  height: 450px;
  background: #fef3c7;
  bottom: 50px;
  left: -100px;
}
.orb-3 {
  width: 350px;
  height: 350px;
  background: #fed7aa;
  top: 40%;
  left: 40%;
}

/* ── HEADER / M3 TOP APP BAR ─────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--md-sys-color-outline);
  box-shadow: var(--md-elevation-1);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Seneca Quote Bar */
.header-quote-bar {
  background: rgba(234, 88, 12, 0.04);
  border-top: 1px dashed rgba(234, 88, 12, 0.15);
  padding: 5px 1.5rem;
}

.header-quote-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  flex-wrap: wrap;
}

.quote-icon {
  color: var(--md-sys-color-primary);
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.quote-text {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  font-style: italic;
}

.quote-author {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--md-sys-color-primary);
  letter-spacing: 0.02em;
  margin-left: 4px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--md-shape-corner-md);
  background: var(--md-sys-color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.logo-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--md-sys-color-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Search Container — M3 Pill Search Bar */
.header-center {
  flex: 1;
  max-width: 580px;
  position: relative;
}

.search-container {
  display: flex;
  align-items: center;
  background: var(--md-sys-color-surface-container);
  border: 1px solid transparent;
  border-radius: var(--md-shape-corner-full);
  padding: 0 1rem;
  height: 44px;
  transition: var(--transition);
}

.search-container:focus-within {
  background: var(--md-sys-color-surface);
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.search-icon {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  margin-right: 10px;
  flex-shrink: 0;
}
.search-icon svg { width: 18px; height: 18px; stroke: currentColor; }

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.search-input::placeholder {
  color: var(--text-tertiary);
  font-weight: 400;
}

.search-kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-xs);
  padding: 2px 6px;
  margin-left: 8px;
}

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-lg);
  box-shadow: var(--md-elevation-3);
  max-height: 380px;
  overflow-y: auto;
  z-index: 200;
  padding: 6px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--md-shape-corner-md);
  cursor: pointer;
  transition: var(--transition);
}

.search-result-item:hover {
  background: var(--md-sys-color-surface-container);
}

.search-result-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--md-shape-corner-full);
  background: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline);
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-info { flex: 1; min-width: 0; }
.search-result-name { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }
.search-result-pair { font-size: 0.72rem; color: var(--text-secondary); }
.search-result-price { text-align: right; }
.search-result-price-val { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* M3 Live Circular Badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
  border-radius: var(--md-shape-corner-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--md-sys-color-tertiary);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.refresh-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--md-sys-color-surface-container);
  padding: 6px 12px;
  border-radius: var(--md-shape-corner-full);
}

/* ── M3 NAVIGATION TABS ──────────────────────────────────────── */
.tab-nav {
  position: sticky;
  top: 61px;
  z-index: 90;
  background: var(--md-sys-color-surface);
  border-bottom: 1px solid var(--md-sys-color-outline);
}

.tab-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-nav-inner::-webkit-scrollbar { display: none; }

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  border-radius: var(--md-shape-corner-sm) var(--md-shape-corner-sm) 0 0;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--md-sys-color-surface-container);
}

.tab-btn.active {
  color: var(--md-sys-color-primary);
  border-bottom-color: var(--md-sys-color-primary);
  background: rgba(234, 88, 12, 0.05);
}

.tab-btn svg {
  stroke: currentColor;
  fill: none;
}

/* ── MAIN CONTENT ────────────────────────────────────────────── */
.main-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 6rem;
  position: relative;
  z-index: 1;
}

.tab-content { display: none; }
.tab-content.active { display: block; }
.hidden { display: none !important; }

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ── M3 FILTER CHIPS (Pill Shaped with Checkmark) ────────────── */
.chain-filter, .filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Chain button / Chip */
.chain-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-full);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--md-elevation-1);
}

.chain-btn:hover {
  background: var(--md-sys-color-surface-container);
  color: var(--text-primary);
  border-color: var(--md-sys-color-outline-variant);
}

.chain-btn.active {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  border-color: rgba(234, 88, 12, 0.3);
  font-weight: 700;
}
.chain-btn.active::before {
  content: '✓';
  font-size: 0.75rem;
  font-weight: 800;
}

/* ── M3 SURFACE CARDS ────────────────────────────────────────── */
.glass-card, .m3-card {
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-lg);
  box-shadow: var(--md-elevation-1);
  transition: var(--transition);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── TOKEN CARD (M3 Elevated Card) ───────────────────────────── */
.token-card {
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-lg);
  padding: 1.25rem;
  box-shadow: var(--md-elevation-1);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.token-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--md-elevation-2);
  border-color: var(--md-sys-color-primary);
}

.token-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.token-ident {
  display: flex;
  align-items: center;
  gap: 10px;
}

.token-img, .token-img-placeholder {
  width: 42px;
  height: 42px;
  border-radius: var(--md-shape-corner-full);
  background: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline);
  object-fit: cover;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--md-sys-color-primary);
}

.token-titles { min-width: 0; }
.token-symbol {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.token-name {
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

/* Chain Badge */
.chain-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--md-shape-corner-full);
  letter-spacing: 0.03em;
}
.chain-solana   { background: #f3e8ff; color: #6b21a8; }
.chain-ethereum { background: #eff6ff; color: #1e40af; }
.chain-bsc      { background: #fef9c3; color: #854d0e; }
.chain-base     { background: #e0e7ff; color: #3730a3; }
.chain-arbitrum { background: #e0f2fe; color: #0369a1; }
.chain-polygon  { background: #ede9fe; color: #5b21b6; }
.chain-default  { background: var(--md-sys-color-surface-container); color: var(--text-secondary); }

/* ── TOKEN PURPOSE & BACKSTORY (Neden Yaratıldı?) ───────────── */
.token-purpose-box {
  background: var(--md-sys-color-surface-container);
  border-left: 3px solid var(--md-sys-color-primary);
  border-radius: 0 var(--md-shape-corner-sm) var(--md-shape-corner-sm) 0;
  padding: 8px 10px;
  margin: 0.6rem 0;
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.token-purpose-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--md-sys-color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}

.token-purpose-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stats Mini Grid inside card */
.token-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 1rem;
}

.stat-box {
  background: var(--md-sys-color-surface-container);
  border-radius: var(--md-shape-corner-sm);
  padding: 8px 10px;
}
.stat-box-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.stat-box-value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Price change pills */
.price-changes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.price-change-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--md-shape-corner-xs);
  display: inline-flex;
  align-items: center;
}
.pct-label {
  font-size: 0.6rem;
  font-weight: 500;
  opacity: 0.75;
  margin-right: 3px;
}

.positive {
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
}
.negative {
  background: var(--md-sys-color-error-container);
  color: var(--md-sys-color-on-error-container);
}
.neutral {
  background: var(--md-sys-color-surface-container);
  color: var(--text-secondary);
}

/* Token Card Footer */
.token-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--md-sys-color-outline);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.txns-info {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.txns-buy  { color: var(--md-sys-color-tertiary); font-weight: 600; }
.txns-sell { color: var(--md-sys-color-error);    font-weight: 600; }

.dex-link-btn {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--md-sys-color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.dex-link-btn:hover { text-decoration: underline; }

/* ── M3 FILTER BAR ───────────────────────────────────────────── */
.filter-bar {
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.filter-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-select {
  background: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  outline: none;
  cursor: pointer;
  height: 38px;
  transition: var(--transition);
}
.filter-select:focus {
  border-color: var(--md-sys-color-primary);
  background: var(--md-sys-color-surface);
}

.sort-dir-btns, .trend-btns {
  display: flex;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-sm);
  overflow: hidden;
  background: var(--md-sys-color-surface-container);
}

.sort-dir-btn, .trend-btn {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--md-sys-color-outline);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  height: 38px;
  white-space: nowrap;
}
.sort-dir-btn:last-child, .trend-btn:last-child { border-right: none; }

.sort-dir-btn.active, .trend-btn.active {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  font-weight: 700;
}

.filter-input-wrap {
  display: flex;
  align-items: center;
  background: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-sm);
  height: 38px;
  overflow: hidden;
}
.filter-input-wrap:focus-within {
  background: var(--md-sys-color-surface);
  border-color: var(--md-sys-color-primary);
}

.filter-input-prefix {
  padding: 0 8px 0 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-right: 1px solid var(--md-sys-color-outline);
}

.filter-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0 10px;
  width: 90px;
}

/* Reset button */
.filter-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--md-sys-color-error-container);
  color: var(--md-sys-color-on-error-container);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--md-shape-corner-sm);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  height: 38px;
}
.filter-reset-btn:hover {
  background: #fecaca;
}

.filter-summary {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--md-sys-color-outline);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  border-radius: var(--md-shape-corner-full);
}

/* ── M3 BUTTONS (Primary Solid Orange + White Text) ──────────── */
.search-btn, .primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border: none;
  border-radius: var(--md-shape-corner-full);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--md-elevation-1);
}

.search-btn:hover, .primary-btn:hover {
  background: var(--md-sys-color-primary-hover);
  box-shadow: var(--md-elevation-2);
}

.search-btn svg, .primary-btn svg { stroke: currentColor; }

.close-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-full);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.close-btn:hover {
  background: var(--md-sys-color-surface-container-high);
  color: var(--text-primary);
}

/* ── PAIR SEARCH & DETAIL ────────────────────────────────────── */
.pair-search-box {
  padding: 1.5rem;
}

.pair-search-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.pair-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pair-field label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.pair-field-wide { flex: 1; min-width: 260px; }

.select-input, .text-input {
  background: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  padding: 10px 14px;
  outline: none;
  transition: var(--transition);
}
.text-input { font-family: var(--font-mono); font-size: 0.82rem; }
.select-input:focus, .text-input:focus {
  background: var(--md-sys-color-surface);
  border-color: var(--md-sys-color-primary);
}

.pair-examples {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.example-label { font-size: 0.75rem; color: var(--text-secondary); font-weight: 600; }

.example-pill {
  padding: 4px 12px;
  background: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-full);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.example-pill:hover {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  border-color: rgba(234, 88, 12, 0.3);
}

/* Pair Detail Card */
.pair-detail-card {
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-xl);
  padding: 1.5rem;
  box-shadow: var(--md-elevation-1);
}

.pair-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--md-sys-color-outline);
  flex-wrap: wrap;
  gap: 1rem;
}

.pair-title-block { display: flex; align-items: center; gap: 12px; }
.pair-names { font-size: 1.25rem; font-weight: 800; color: var(--text-primary); }
.pair-dex-name { font-size: 0.75rem; color: var(--text-secondary); }

.pair-price-big { font-family: var(--font-mono); font-size: 1.75rem; font-weight: 800; color: var(--text-primary); }

.pair-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.pair-box {
  background: var(--md-sys-color-surface-container);
  border-radius: var(--md-shape-corner-md);
  padding: 12px 14px;
}
.pair-box-label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.pair-box-val   { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }

/* Progress bar for buys / sells */
.txns-bar-wrap {
  margin-top: 1rem;
  background: var(--md-sys-color-surface-container);
  border-radius: var(--md-shape-corner-md);
  padding: 12px 16px;
}
.txns-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.txns-progress-track {
  height: 8px;
  background: var(--md-sys-color-error-container);
  border-radius: var(--md-shape-corner-full);
  overflow: hidden;
}
.txns-progress-fill {
  height: 100%;
  background: var(--md-sys-color-tertiary);
  border-radius: var(--md-shape-corner-full);
  transition: width 0.4s ease;
}

/* ── BOOST ANALİZİ & PROFİLLER & METAS ───────────────────────── */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.col-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Boost Item */
.boost-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-md);
  box-shadow: var(--md-elevation-1);
  transition: var(--transition);
  cursor: pointer;
}
.boost-item:hover {
  transform: translateX(4px);
  border-color: var(--md-sys-color-primary);
  box-shadow: var(--md-elevation-2);
}

.boost-rank {
  font-size: 1.1rem;
  font-weight: 800;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.boost-ident { flex: 1; min-width: 0; }
.boost-symbol { font-size: 0.95rem; font-weight: 800; color: var(--text-primary); display: flex; align-items: center; gap: 6px; }
.boost-name   { font-size: 0.72rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.boost-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  border-radius: var(--md-shape-corner-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Metas Grid */
.metas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.meta-card {
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-lg);
  padding: 1.25rem;
  box-shadow: var(--md-elevation-1);
  cursor: pointer;
  transition: var(--transition);
}
.meta-card:hover {
  border-color: var(--md-sys-color-primary);
  transform: translateY(-2px);
  box-shadow: var(--md-elevation-2);
}
.meta-name { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.meta-stat  { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-secondary); }

/* Profile Card */
.profile-card {
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-lg);
  padding: 1.25rem;
  box-shadow: var(--md-elevation-1);
  transition: var(--transition);
}
.profile-header { display: flex; align-items: center; gap: 12px; margin-bottom: 0.75rem; }
.profile-desc   { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.45; margin-bottom: 0.75rem; }
.profile-links  { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-link   {
  padding: 4px 10px;
  background: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-full);
  color: var(--md-sys-color-primary);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
}
.profile-link:hover { background: var(--md-sys-color-primary-container); }

/* ── CÜZDAN TAKİBİ & İŞLEMLER ────────────────────────────────── */
.wallet-input-card {
  padding: 1.5rem;
}

.wallet-input-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.saved-wallets-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--md-sys-color-surface-container);
  border-radius: var(--md-shape-corner-md);
  flex-wrap: wrap;
}

.saved-wallet-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.saved-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}
.saved-wallet-pill:hover {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}
.pill-remove { color: var(--md-sys-color-error); font-weight: 800; cursor: pointer; }

/* Wallet Portfolio Summary */
.wallet-summary-card {
  padding: 1.5rem;
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-xl);
  box-shadow: var(--md-elevation-1);
}

.wallet-summary-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.wallet-address-display {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--md-shape-corner-full);
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.wallet-addr-label { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); }
.wallet-addr-value { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 700; color: var(--text-primary); cursor: pointer; }
.wallet-addr-value:hover { color: var(--md-sys-color-primary); }

.wallet-total-value { text-align: right; }
.wallet-total-label { font-size: 0.75rem; color: var(--text-secondary); font-weight: 600; margin-bottom: 2px; }
.wallet-total-amount {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--md-sys-color-primary);
}

.wallet-stats-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--md-sys-color-outline);
  width: 100%;
}
.wallet-stat { text-align: center; }
.wallet-stat-label { font-size: 0.68rem; color: var(--text-secondary); text-transform: uppercase; font-weight: 600; }
.wallet-stat-value { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-top: 2px; }

.sol-balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #f3e8ff;
  color: #6b21a8;
  border-radius: var(--md-shape-corner-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.save-wallet-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-full);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-left: auto;
}
.save-wallet-btn:hover { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }

/* Holding Card */
.holding-card {
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-lg);
  padding: 1.15rem;
  box-shadow: var(--md-elevation-1);
  transition: var(--transition);
  cursor: pointer;
}
.holding-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--md-elevation-2);
  border-color: var(--md-sys-color-primary);
}
.holding-header { display: flex; align-items: center; gap: 10px; margin-bottom: 0.75rem; }
.holding-img { width: 36px; height: 36px; border-radius: var(--md-shape-corner-full); object-fit: cover; background: var(--md-sys-color-surface-container); }
.holding-symbol { font-size: 0.95rem; font-weight: 800; color: var(--text-primary); }
.holding-name   { font-size: 0.72rem; color: var(--text-secondary); }
.holding-amount-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.holding-qty { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-secondary); }
.holding-value { font-family: var(--font-mono); font-size: 1rem; font-weight: 800; color: var(--text-primary); }
.holding-price-row { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-secondary); }

/* ── WALLET TRANSACTIONS (Buys & Sells) ───────────────────────── */
.tx-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tx-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-md);
  padding: 0.85rem 1.15rem;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--md-elevation-1);
}
.tx-row:hover {
  transform: translateX(4px);
  box-shadow: var(--md-elevation-2);
}

.tx-row.tx-buy  { border-left: 4px solid var(--md-sys-color-tertiary); }
.tx-row.tx-sell { border-left: 4px solid var(--md-sys-color-error); }

.tx-type-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--md-shape-corner-full);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.tx-buy  .tx-type-badge { background: var(--md-sys-color-tertiary-container); color: var(--md-sys-color-on-tertiary-container); }
.tx-sell .tx-type-badge { background: var(--md-sys-color-error-container);    color: var(--md-sys-color-on-error-container); }

.tx-token-img {
  width: 34px; height: 34px;
  border-radius: var(--md-shape-corner-full);
  object-fit: cover;
  background: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline);
  flex-shrink: 0;
}
.tx-info { flex: 1; min-width: 0; }
.tx-symbol { font-size: 0.92rem; font-weight: 800; color: var(--text-primary); }
.tx-name   { font-size: 0.72rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tx-amount { text-align: right; flex-shrink: 0; }
.tx-qty { font-family: var(--font-mono); font-size: 0.88rem; font-weight: 800; }
.tx-qty.buy-qty  { color: var(--md-sys-color-tertiary); }
.tx-qty.sell-qty { color: var(--md-sys-color-error); }
.tx-usd { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-secondary); }

.tx-time { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-secondary); text-align: right; flex-shrink: 0; }
.tx-explorer-link { color: var(--md-sys-color-primary); font-size: 0.72rem; font-weight: 600; text-decoration: none; display: block; margin-top: 2px; }
.tx-explorer-link:hover { text-decoration: underline; }

.tx-loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 2rem; color: var(--text-secondary); }

/* ── YENİ LİSTEMELER (Early Tokens / New Listings) ────────────── */
.new-stats-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.new-stat-box {
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-lg);
  padding: 14px 20px;
  min-width: 150px;
  box-shadow: var(--md-elevation-1);
  transition: var(--transition);
}

.new-stat-box.clickable {
  cursor: pointer;
  user-select: none;
}

.new-stat-box.clickable:hover {
  transform: translateY(-2px);
  border-color: var(--md-sys-color-primary);
  box-shadow: var(--md-elevation-2);
}

.new-stat-box.clickable.active {
  background: var(--md-sys-color-primary-container);
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25);
}

.new-stat-box.clickable.active .new-stat-label {
  color: var(--md-sys-color-on-primary-container);
}

.new-stat-box.clickable.active .new-stat-hint {
  color: var(--md-sys-color-primary);
  font-weight: 700;
}

.new-stat-label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.new-stat-val   { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 800; color: var(--md-sys-color-primary); }
.new-stat-hint  { font-size: 0.62rem; color: var(--text-tertiary); margin-top: 4px; transition: var(--transition); }
.new-stat-box.clickable:hover .new-stat-hint { color: var(--md-sys-color-primary); }

.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--md-shape-corner-full);
  font-family: var(--font-mono);
}
.age-fresh  { background: var(--md-sys-color-tertiary-container); color: var(--md-sys-color-on-tertiary-container); border: 1px solid rgba(22, 163, 74, 0.3); }
.age-new    { background: var(--md-sys-color-primary-container);  color: var(--md-sys-color-on-primary-container);  border: 1px solid rgba(234, 88, 12, 0.3); }
.age-recent { background: var(--md-sys-color-surface-container); color: var(--text-secondary); border: 1px solid var(--md-sys-color-outline); }

.token-card.is-new {
  border-color: rgba(234, 88, 12, 0.3);
}
.token-card.is-ultra-new {
  border-color: var(--md-sys-color-tertiary);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

.token-created-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--md-sys-color-outline);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* ── M3 STATS BOTTOM APP BAR ─────────────────────────────────── */
.stats-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--md-sys-color-outline);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}
.stat-label { color: var(--text-secondary); font-weight: 500; }
.stat-value { font-family: var(--font-mono); font-weight: 700; color: var(--text-primary); }
.status-ok  { color: var(--md-sys-color-tertiary); font-weight: 700; }
.status-err { color: var(--md-sys-color-error); font-weight: 700; }

/* ── LOADING & EMPTY STATES ──────────────────────────────────── */
.loading-state, .empty-state, .error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 3.5rem 2rem;
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-xl);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  grid-column: 1 / -1;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--md-sys-color-surface-container-high);
  border-top-color: var(--md-sys-color-primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

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

.empty-state-icon { font-size: 2rem; opacity: 0.6; }

/* ── TWITTER & SOCIAL ACTIONS ────────────────────────────────── */
.social-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #f0fdf4;
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: var(--md-shape-corner-full);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: #166534;
}

.profile-social-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--md-sys-color-outline);
}

.social-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--md-shape-corner-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--md-elevation-1);
}

.twitter-search-btn {
  background: #0f1419;
  color: #ffffff;
  border: 1px solid #0f1419;
}
.twitter-search-btn:hover {
  background: #272c30;
}

.twitter-prof-btn {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid rgba(29, 78, 216, 0.2);
}
.twitter-prof-btn:hover {
  background: #dbeafe;
}

.tg-btn {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.2);
}
.tg-btn:hover { background: #e0f2fe; }

/* ── LIVE INVESTMENT SIGNAL BADGES (Yatırım Karar Rozeti) ─────── */
.signal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--md-shape-corner-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-family: var(--font-mono);
}

.signal-buy {
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
  border: 1px solid rgba(22, 163, 74, 0.35);
}

.signal-watch {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid rgba(202, 138, 4, 0.35);
}

.signal-avoid {
  background: var(--md-sys-color-error-container);
  color: var(--md-sys-color-on-error-container);
  border: 1px solid rgba(220, 38, 38, 0.35);
}

/* ── INVESTMENT GUIDE SECTION (Sitenin Sonu / Standartlar) ───── */
.investment-guide-section {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--md-sys-color-outline);
}

.guide-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.guide-card {
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-shape-corner-xl);
  padding: 1.5rem;
  box-shadow: var(--md-elevation-1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guide-card-buy   { border-top: 4px solid var(--md-sys-color-tertiary); }
.guide-card-watch { border-top: 4px solid #ca8a04; }
.guide-card-avoid { border-top: 4px solid var(--md-sys-color-error); }

.guide-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--md-shape-corner-full);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.badge-buy   { background: var(--md-sys-color-tertiary-container); color: var(--md-sys-color-on-tertiary-container); }
.badge-watch { background: #fef9c3; color: #854d0e; }
.badge-avoid { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }

.guide-desc {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.45;
}

.guide-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.guide-list li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 16px;
  line-height: 1.4;
}

.guide-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  font-weight: 800;
  color: var(--md-sys-color-primary);
}


/* ── MOBILE RESPONSIVE OPTIMIZATIONS ─────────────────────────── */
@media (max-width: 900px) {
  .two-col-layout { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; gap: 0.75rem; padding: 0.75rem 1rem; }
  .header-center { order: 3; max-width: 100%; width: 100%; margin-top: 2px; }
  .main-content { padding: 1rem 1rem 5.5rem; }
}

@media (max-width: 600px) {
  /* Header */
  .logo-name { font-size: 1.05rem; }
  .logo-sub  { font-size: 0.62rem; }
  .live-badge { font-size: 0.7rem; padding: 4px 10px; }
  .refresh-info { font-size: 0.7rem; padding: 4px 10px; }

  /* Tab Navigation */
  .tab-nav {
    position: sticky;
    top: 106px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .tab-nav-inner {
    padding: 0 0.75rem;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .tab-btn {
    padding: 10px 12px;
    font-size: 0.8rem;
    gap: 5px;
  }
  .tab-btn svg { width: 14px; height: 14px; }

  /* Filters */
  .chain-filter { 
    gap: 6px; 
    flex-wrap: wrap;
    width: 100%;
  }
  .chain-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    min-height: 36px;
    flex: 0 0 auto;
  }

  .filter-bar {
    padding: 0.875rem;
    border-radius: var(--md-shape-corner-md);
  }
  .filter-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  .filter-group { 
    width: 100%; 
    grid-column: auto !important;
  }
  .filter-select, .sort-dir-btns, .trend-btns, .filter-input-wrap, .filter-reset-btn {
    width: 100%;
    min-height: 40px;
    height: auto;
  }
  .sort-dir-btns, .trend-btns {
    display: flex;
    flex-wrap: wrap;
  }
  .sort-dir-btn, .trend-btn {
    flex: 1 1 0;
    min-width: 60px;
    text-align: center;
    padding: 8px 6px;
    font-size: 0.75rem;
    height: 40px;
    white-space: nowrap;
  }
  .trend-btns button {
    font-size: 0.72rem;
    padding: 6px 4px;
  }
  #signalFilterBtns.trend-btns,
  #profileSignalFilterBtns.trend-btns,
  #newSignalFilterBtns.trend-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-left: 0 !important;
  }
  #signalFilterBtns .trend-btn,
  #profileSignalFilterBtns .trend-btn,
  #newSignalFilterBtns .trend-btn {
    width: 100%;
    border-bottom: 1px solid var(--md-sys-color-outline);
  }
  #signalFilterBtns .trend-btn:nth-child(2),
  #profileSignalFilterBtns .trend-btn:nth-child(2),
  #newSignalFilterBtns .trend-btn:nth-child(2) {
    border-right: none;
  }
  #signalFilterBtns .trend-btn:nth-child(3),
  #signalFilterBtns .trend-btn:nth-child(4),
  #profileSignalFilterBtns .trend-btn:nth-child(3),
  #profileSignalFilterBtns .trend-btn:nth-child(4),
  #newSignalFilterBtns .trend-btn:nth-child(3),
  #newSignalFilterBtns .trend-btn:nth-child(4) {
    border-bottom: none;
  }
  .filter-input-wrap {
    height: 40px;
  }
  .filter-input { 
    width: 100%; 
    flex: 1;
    font-size: 0.85rem;
  }
  .filter-reset-btn {
    justify-content: center;
  }

  /* Cards Grid */
  .cards-grid { grid-template-columns: 1fr; gap: 1rem; }
  .token-card {
    padding: 1rem;
    border-radius: var(--md-shape-corner-md);
  }

  /* New Listings Stats */
  .new-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
  }
  .new-stat-box {
    min-width: unset;
    padding: 10px 8px;
    text-align: center;
  }
  .new-stat-label { font-size: 0.6rem; letter-spacing: 0; }
  .new-stat-val   { font-size: 0.95rem; }

  /* Wallet Card */
  .wallet-input-card, .wallet-summary-card {
    padding: 1rem;
  }
  .wallet-input-row {
    flex-direction: column;
    align-items: stretch;
  }
  .wallet-input-row .select-input,
  .wallet-input-row .text-input,
  .wallet-input-row .primary-btn {
    width: 100%;
    height: 44px;
  }
  .wallet-summary-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .wallet-total-value { text-align: left; }
  .wallet-total-amount { font-size: 1.6rem; }
  .wallet-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: left;
  }
  .wallet-stat { text-align: left; }
  .save-wallet-btn { width: 100%; justify-content: center; height: 38px; }

  /* Pair Search Box */
  .pair-search-box, .pair-detail-card { padding: 1rem; }
  .pair-search-row { flex-direction: column; align-items: stretch; }
  .pair-field-wide { width: 100%; }
  .pair-search-row .select-input,
  .pair-search-row .text-input,
  .pair-search-row .search-btn {
    width: 100%;
    height: 44px;
  }
  .pair-grid-4 { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .pair-price-big { font-size: 1.35rem; }

  /* Action Buttons in Cards */
  .profile-social-actions { gap: 5px; }
  .social-action-btn {
    padding: 6px 10px;
    font-size: 0.7rem;
    min-height: 32px;
  }

  /* Compact Bottom Stats Bar on Mobile */
  .stats-bar {
    padding: 0.45rem 1rem env(safe-area-inset-bottom, 0.45rem);
    font-size: 0.68rem;
    justify-content: space-between;
  }
  .stat-item:nth-child(3), .stat-item:nth-child(4) {
    display: none;
  }
}


