/* CSS Variables - Цветовая схема из шаблона */
:root {
  --neon: rgba(54, 199, 255, 1);
  --neon-glow: rgba(54, 199, 255, 0.3);
  --panel: rgba(15, 20, 30, 0.95);
  --panel-hover: rgba(20, 30, 45, 0.95);
  --bg: #0a0e1a;
  --bg-secondary: #0f1419;
  --text-primary: #e6eef8;
  --text-secondary: rgba(230, 238, 248, 0.6);
  --text-muted: rgba(230, 238, 248, 0.4);
  --border: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(54, 199, 255, 0.2);
  --card-glow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(54, 199, 255, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Header */
.app-header {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 40px;
  width: auto;
}

.app-title {
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--neon), rgba(54, 199, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: baseline;
  gap: 0.1em;
}

.superscript {
  font-size: 0.65em;
  vertical-align: super;
  font-weight: 600;
  line-height: 1;
  position: relative;
  top: -0.5em;
  color: var(--neon);
  text-shadow: 0 0 8px var(--neon), 0 0 16px var(--neon-glow);
  background: linear-gradient(135deg, var(--neon), rgba(54, 199, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.app-title sup {
  font-size: 0.6em;
  vertical-align: super;
  font-weight: 400;
}

.main-nav {
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  padding: 0.6rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: rgba(54, 199, 255, 0.05);
}

.nav-btn.active {
  background: rgba(54, 199, 255, 0.1);
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: 0 0 20px var(--neon-glow);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.view-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.view-section.active {
  display: block;
}

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

/* Indicators Grid */
.indicators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.indicator-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.indicator-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-glow);
  transform: translateY(-2px);
}

.indicator-card.main-indicator {
  border-color: var(--neon);
  box-shadow: 0 0 30px var(--neon-glow);
}

.indicator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.indicator-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.indicator-badge {
  padding: 0.3rem 0.8rem;
  background: rgba(54, 199, 255, 0.1);
  border: 1px solid var(--neon);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--neon);
  font-weight: 600;
  text-transform: uppercase;
}

.indicator-badge.day {
  background: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.5);
  color: #ffc107;
}

.indicator-badge.dev {
  background: rgba(156, 39, 176, 0.1);
  border-color: rgba(156, 39, 176, 0.5);
  color: #9c27b0;
}

.indicator-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.indicator-display {
  margin-bottom: 1.5rem;
}

.indicator-value {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon), rgba(54, 199, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 1rem;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.indicator-progress {
  margin-top: 1rem;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon), rgba(54, 199, 255, 0.6));
  border-radius: 6px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px var(--neon-glow);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

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

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.indicator-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.indicator-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-all;
}

.info-value.address {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
}

.info-value.trend {
  color: var(--neon);
}

/* Clouds View */
.clouds-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cloud-btn {
  padding: 0.8rem 2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
}

.cloud-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: rgba(54, 199, 255, 0.05);
}

.cloud-btn.active {
  background: rgba(54, 199, 255, 0.1);
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: 0 0 20px var(--neon-glow);
}

.cloud-container {
  position: relative;
  min-height: 600px;
}

.cloud-visualization {
  display: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  min-height: 600px;
}

.cloud-visualization.active {
  display: block;
}

.cloud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.cloud-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cloud-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cloud-stats {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.treemap-container.treemap-updating {
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

/* Share controls for clouds */
.cloud-share {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* базовые кнопки в облаках — такие же как в индикаторах */
.cloud-share .share-btn {
  align-self: center;
}

/* Token lightbox */
.token-lightbox {
  position: fixed;
  z-index: 200;
  max-width: 340px;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: rgba(10, 14, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
  color: var(--text-primary);
  font-size: 0.8rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.token-lightbox.visible {
  opacity: 1;
  transform: translateY(0);
}

.token-lightbox-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.token-lightbox-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), rgba(54, 199, 255, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.token-lightbox-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.token-lightbox-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.token-lightbox-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.token-lightbox-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.token-lightbox-label {
  color: var(--text-muted);
}

.token-lightbox-value {
  text-align: right;
  word-break: break-all;
}

.token-lightbox-value.address {
  font-family: 'Courier New', monospace;
}

.token-lightbox-twitter a {
  color: #1da1f2;
  text-decoration: none;
}

.token-lightbox-twitter a:hover {
  text-decoration: underline;
}

.token-lightbox-bars {
  display: flex;
  gap: 3px;
  margin-top: 0.4rem;
}

.token-lightbox-bar {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.token-lightbox-bar.positive {
  background: #4caf50;
}

.token-lightbox-bar.negative {
  background: #f44336;
}

.token-lightbox-bar.neutral {
  background: rgba(255, 255, 255, 0.2);
}

.token-lightbox-motion-positive {
  color: #4caf50;
}

.token-lightbox-motion-negative {
  color: #f44336;
}

.token-lightbox-motion-neutral {
  color: var(--text-secondary);
}

.token-protocol-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.token-protocol-pill img {
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.token-protocol-pill-plain {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.06);
}

.treemap-container {
  width: 100%;
  height: calc(100vh - 250px);
  min-height: 600px;
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
}

/* Диагональная GRID для мемкоинов */
.treemap-container.treemap-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-auto-rows: 1fr;
  align-items: stretch;
  justify-items: stretch;
  gap: 0;
  padding: 0;
}

.treemap-item {
  position: absolute;
  background: rgba(54, 199, 255, 0.08);
  border: 1px solid rgba(54, 199, 255, 0.15);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
  box-sizing: border-box;
  margin: 0;
  border-width: 0;
}

.treemap-item:hover {
  background: rgba(54, 199, 255, 0.15);
  border: 2px solid var(--neon);
  box-shadow: 0 0 20px rgba(54, 199, 255, 0.3);
  z-index: 10;
}

.treemap-item.top-item {
  background: rgba(54, 199, 255, 0.12);
  border-color: rgba(54, 199, 255, 0.3);
  box-shadow: 0 0 15px rgba(54, 199, 255, 0.2);
}

/* Внутри GRID-представления используем относительное позиционирование */
.treemap-container.treemap-grid .treemap-item {
  position: relative;
}

.treemap-item-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: auto;
  flex: 1;
  padding: 0.3rem;
  min-height: 0;
}

.treemap-avatar {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), rgba(54, 199, 255, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
  aspect-ratio: 1;
}

.treemap-item-info {
  flex: 1;
  min-width: 0;
}

.treemap-name {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.treemap-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 0.3rem;
  min-height: 0;
}

.treemap-index {
  font-weight: 700;
  color: var(--neon);
}

.treemap-change {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.treemap-change.positive {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.15);
  font-weight: 600;
}

.treemap-change.negative {
  color: #f44336;
  background: rgba(244, 67, 54, 0.15);
  font-weight: 600;
}

.treemap-change.neutral {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

/* Search View */
.search-container {
  max-width: 900px;
  margin: 0 auto;
}

.search-header {
  text-align: center;
  margin-bottom: 2rem;
}

.search-header h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--neon), rgba(54, 199, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.search-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.search-box {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(54, 199, 255, 0.1);
}

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

.search-btn {
  padding: 1rem 2rem;
  background: rgba(54, 199, 255, 0.1);
  border: 1px solid var(--neon);
  border-radius: var(--radius-sm);
  color: var(--neon);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-btn:hover {
  background: rgba(54, 199, 255, 0.2);
  box-shadow: 0 0 20px var(--neon-glow);
  transform: translateY(-2px);
}

.search-icon {
  font-size: 1.2rem;
}

.search-results {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  min-height: 400px;
  box-shadow: var(--shadow);
}

.search-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.search-result-card {
  background: rgba(54, 199, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.search-result-card:hover {
  border-color: var(--border-hover);
  background: rgba(54, 199, 255, 0.1);
}

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

.result-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.result-type {
  padding: 0.3rem 0.8rem;
  background: rgba(54, 199, 255, 0.1);
  border: 1px solid var(--neon);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--neon);
  font-weight: 600;
  text-transform: uppercase;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

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

.stat-value {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* Gauge Indicators */
.gauges-container {
  position: relative;
  margin: 2rem auto;
  padding: 1.5rem 2rem 1.5rem 2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 320px;
  height: auto;
  z-index: 10;
  max-width: 1400px;
}

.indicator-block {
  display: none;
}

.indicator-block.layout-3cols.active {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(260px, 1.1fr) minmax(260px, 1.2fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.gauge-col {
  width: 100%;
}

.indicator-tabs {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(10, 15, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.04);
  max-width: 1400px;
  margin: 0 auto;
}

.indicator-btn {
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  gap: 0.15rem;
  align-items: baseline;
}

.indicator-btn .superscript {
  font-size: 0.65em;
}

.indicator-btn.active {
  background: linear-gradient(135deg, rgba(54, 199, 255, 0.18), rgba(54, 199, 255, 0.45));
  color: var(--text-primary);
}

.indicator-btn:not(.active):hover {
  color: var(--text-primary);
  background: rgba(54, 199, 255, 0.12);
}

.gauge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 500px;
  padding-top: 0.5rem;
}

.gauge-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1em;
  line-height: 1.2;
}

.gauge-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1rem;
}

.gauge-col-description .gauge-subtitle,
.gauge-col-formula .gauge-subtitle {
  text-align: left;
}

.gauge-container {
  width: 100%;
  max-width: 400px;
  height: 260px;
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}

.gauge-svg {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.gauge-col-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.gauge-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.gauge-subsection-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.gauge-text {
  margin-bottom: 0.5rem;
}

.gauge-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gauge-tag {
  display: inline-block;
  min-width: 80px;
  padding: 0.1rem 0.5rem;
  margin-right: 0.4rem;
  border-radius: 999px;
  background: rgba(54, 199, 255, 0.08);
  border: 1px solid rgba(54, 199, 255, 0.4);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
}

.gauge-tag.negative {
  border-color: rgba(244, 67, 54, 0.7);
  background: rgba(244, 67, 54, 0.12);
}

.gauge-col-formula {
  font-family: "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.gauge-formula-block {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 1px rgba(54, 199, 255, 0.06);
}

.formula-line {
  white-space: normal;
  line-height: 1.3;
}

.formula-indent {
  padding-left: 1.2rem;
}

.formula-main {
  color: var(--text-primary);
  font-weight: 600;
}

.formula-eq {
  margin-left: 0.25rem;
}

.formula-sub {
  font-size: 0.7em;
  vertical-align: sub;
}

.gauge-note {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.gauge-share {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.share-btn {
  border-radius: 999px;
  border: 1px solid rgba(54, 199, 255, 0.6);
  background: rgba(54, 199, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.share-btn.primary {
  background: linear-gradient(135deg, var(--neon), rgba(54, 199, 255, 0.85));
  border-color: transparent;
  color: #020712;
}

.share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(54, 199, 255, 0.3), 0 6px 18px rgba(0, 0, 0, 0.5);
}

.gauge-share-under {
  justify-content: flex-start;
}

.share-btn.icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 6px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.share-icon {
  font-size: 0.75rem;
  font-weight: 600;
}

.share-icon-svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Небольшой даунскейл / апскейл для выравнивания визуального размера SVG-иконок */
.share-icon-svg-discord {
  transform: scale(1.08);
  transform-origin: center;
}

.share-btn.icon:hover {
  background: rgba(54, 199, 255, 0.12);
  box-shadow: none;
}

/* Цвета соц-иконок (используют currentColor в SVG) */
.share-btn.icon.share-x {
  color: #1da1f2;
}

.share-btn.icon.share-telegram {
  color: #0088cc;
}

.share-btn.icon.share-instagram {
  color: #e1306c;
}

.share-btn.icon.share-discord {
  color: #5865f2;
}

/* Единый стиль для всех соц-иконок в блоках Share */
.share-btn.icon.share-x,
.share-btn.icon.share-telegram,
.share-btn.icon.share-instagram,
.share-btn.icon.share-discord {
  color: #36c7ff; /* общий неон */
}

.share-btn.icon .share-icon-svg {
  width: 18px;
  height: 18px;
}

/* Чуть увеличиваем Discord, чтобы визуально совпадал по размеру с остальными */
.share-btn.icon .share-icon-svg-discord {
  transform: scale(1.15);
  transform-origin: center;
}

.gauge-watermark {
  position: absolute;
  inset: 30px 40px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.gauge-watermark-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(54, 199, 255, 0.16), transparent 70%);
  opacity: 0.15;
}

.gauge-watermark-logo img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: contain;
}

.gauge-watermark-text {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gauge-watermark-text .wm-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.gauge-watermark-text .wm-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.gauge-track {
  stroke-dasharray: 471.24;
  stroke-dashoffset: 0;
  fill: none;
}

.gauge-fill {
  stroke-dasharray: 471.24;
  stroke-dashoffset: 471.24;
  transition: stroke-dashoffset 1s ease;
  transform-origin: 200px 50px;
  transform: rotate(0deg);
  stroke-linecap: round;
  fill: none;
}

.gauge-needle {
  transition: cx 1s ease, cy 1s ease;
  filter: drop-shadow(0 0 4px rgba(54, 199, 255, 0.8));
}

.gauge-needle-line {
  transition: x2 1s ease, y2 1s ease;
  filter: drop-shadow(0 0 2px rgba(54, 199, 255, 0.6));
}

.gauge-value {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* Footer */
.app-footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 2rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--neon), rgba(54, 199, 255, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.footer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.footer-brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.footer-brand-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.footer-email {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(54, 199, 255, 0.1);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Connection status */
.connection-status {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.connection-status-icon svg {
  width: 16px;
  height: 16px;
}

.connection-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f44336;
}

.connection-status.connected .connection-status-dot {
  background: #4caf50;
}

.connection-status.disconnected .connection-status-dot {
  background: #f44336;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
  }

  .indicators-grid {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding: 1rem;
  }

  .search-box {
    flex-direction: column;
  }

  .cloud-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .gauges-container {
    padding: 1rem;
    min-height: 0;
    height: auto;
  }

  .indicator-block.layout-3cols.active {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-info {
    align-items: flex-start;
  }
}

