/* ═══════════════════════════════════════════════════════════════════════════════════
   INSTANT CANVAS v1.0  —  Polymorphic Instant Answer Rendering System
   ═══════════════════════════════════════════════════════════════════════════════════
   Glassmorphic panels for 10 canvas types rendered above standard search results.
   Inherits design tokens from nexus-canvas.css (--nx-* variables).

   Canvas Types:
   1. Conversion   — Interactive calculator widget
   2. Weather       — Forecast hero + hourly/daily cards
   3. DateTime      — Live ticking clock + world clocks
   4. Location      — Leaflet map + info card
   5. Product       — Horizontal product carousel
   6. Movie         — Backdrop hero + cast + providers
   7. Stock         — Financial dashboard
   8. GDP           — Economics panel + indicators
   9. Sports        — Team hero + fixtures + standings
  10. News          — Hero article + news grid
   ═══════════════════════════════════════════════════════════════════════════════════ */

/* ── BASE — Containerless: transparent wrapper, no card/glass ── */
.ic-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 24px;
  color: var(--nx-text, #e8e8e8);
  font-family: var(--nx-font-body, 'Poppins', sans-serif);
  animation: icFadeSlideUp 0.5s var(--nx-spring, cubic-bezier(0.23,1,0.32,1)) both;
}

.ic-container.ic-dismissing {
  animation: icFadeOutDown 0.35s ease-out forwards;
  pointer-events: none;
}

/* ── (header/dismiss removed — containerless design) ── */

/* ── SHARED ELEMENTS ── */
.ic-hero-value {
  font-size: 42px;
  font-weight: 700;
  font-family: var(--nx-font-display, 'Orbitron', sans-serif);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}

.ic-hero-label {
  font-size: 14px;
  color: var(--nx-text-secondary, #b0b0b8);
}

.ic-subtitle {
  font-size: 12px;
  color: var(--nx-text-muted, #808088);
  margin-top: 2px;
}

.ic-divider {
  height: 1px;
  background: var(--nx-glass-border, rgba(255,255,255,0.08));
  margin: 16px 0;
}

.ic-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--nx-accent-dim, rgba(0,240,255,0.15));
  color: var(--nx-accent, #00f0ff);
}

.ic-badge-green {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
}

.ic-badge-red {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
}

.ic-badge-amber {
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
}

.ic-grid {
  display: grid;
  gap: 12px;
}

.ic-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ic-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ic-grid-4 { grid-template-columns: repeat(4, 1fr); }

.ic-card {
  padding: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--nx-glass-border, rgba(255,255,255,0.08));
  border-radius: var(--nx-radius-sm, 12px);
  transition: all 0.2s ease;
}

.ic-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--nx-glass-border-hi, rgba(255,255,255,0.14));
}

.ic-card-label {
  font-size: 11px;
  color: var(--nx-text-muted, #808088);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.ic-card-value {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.ic-card-sub {
  font-size: 12px;
  color: var(--nx-text-secondary, #b0b0b8);
  margin-top: 2px;
}

.ic-scroll-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.ic-scroll-row::-webkit-scrollbar { height: 4px; }
.ic-scroll-row::-webkit-scrollbar-track { background: transparent; }
.ic-scroll-row::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.ic-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  background: rgba(255,255,255,0.06);
  color: var(--nx-text-secondary, #b0b0b8);
  white-space: nowrap;
}

.ic-link {
  color: var(--nx-accent, #00f0ff);
  text-decoration: none;
  font-size: 13px;
  transition: opacity 0.2s;
}

.ic-link:hover { opacity: 0.8; text-decoration: underline; }

.ic-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-text-secondary, #b0b0b8);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ic-positive { color: #22c55e; }
.ic-negative { color: #ef4444; }

/* ═══════════════════════════════════════════════════
   1. CONVERSION CANVAS
   ═══════════════════════════════════════════════════ */
.ic-conversion .ic-converter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ic-conversion .ic-input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ic-conversion .ic-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--nx-glass-border, rgba(255,255,255,0.08));
  border-radius: var(--nx-radius-xs, 8px);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  font-family: var(--nx-font-mono, monospace);
  outline: none;
  transition: border-color 0.2s;
}

.ic-conversion .ic-input:focus {
  border-color: var(--nx-accent, #00f0ff);
}

.ic-conversion .ic-unit-label {
  font-size: 12px;
  color: var(--nx-text-muted, #808088);
  font-weight: 500;
}

.ic-conversion .ic-swap-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--nx-glass-border, rgba(255,255,255,0.08));
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  color: var(--nx-accent, #00f0ff);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.ic-conversion .ic-swap-btn:hover {
  background: var(--nx-accent-dim, rgba(0,240,255,0.15));
  transform: rotate(180deg);
}

.ic-conversion .ic-rate-info {
  font-size: 12px;
  color: var(--nx-text-muted, #808088);
  text-align: center;
  margin-bottom: 16px;
}

.ic-conversion .ic-category-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.ic-conversion .ic-category-tab {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--nx-glass-border, rgba(255,255,255,0.08));
  background: transparent;
  color: var(--nx-text-secondary, #b0b0b8);
  cursor: pointer;
  transition: all 0.2s;
}

.ic-conversion .ic-category-tab:hover,
.ic-conversion .ic-category-tab.active {
  background: var(--nx-accent-dim, rgba(0,240,255,0.15));
  color: var(--nx-accent, #00f0ff);
  border-color: rgba(0,240,255,0.25);
}

.ic-conversion .ic-related {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ic-conversion .ic-related-chip {
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 11px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--nx-glass-border, rgba(255,255,255,0.08));
  color: var(--nx-text-secondary, #b0b0b8);
  cursor: pointer;
  transition: all 0.2s;
}

.ic-conversion .ic-related-chip:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ═══════════════════════════════════════════════════
   2. WEATHER CANVAS
   ═══════════════════════════════════════════════════ */
.ic-weather .ic-weather-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.ic-weather .ic-weather-temp {
  font-size: 56px;
  font-weight: 700;
  font-family: var(--nx-font-display, 'Orbitron', sans-serif);
  color: #fff;
  line-height: 1;
}

.ic-weather .ic-weather-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.ic-weather .ic-weather-details {
  flex: 1;
}

.ic-weather .ic-weather-condition {
  font-size: 16px;
  font-weight: 600;
  color: var(--nx-text, #e8e8e8);
}

.ic-weather .ic-weather-feelslike {
  font-size: 13px;
  color: var(--nx-text-secondary, #b0b0b8);
}

.ic-weather .ic-temp-toggle {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--nx-glass-border, rgba(255,255,255,0.08));
  background: transparent;
  color: var(--nx-text-secondary, #b0b0b8);
  cursor: pointer;
  transition: all 0.2s;
}

.ic-weather .ic-temp-toggle.active {
  background: var(--nx-accent-dim);
  color: var(--nx-accent);
  border-color: rgba(0,240,255,0.25);
}

.ic-weather .ic-hourly-card {
  min-width: 64px;
  padding: 10px 8px;
  text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--nx-glass-border, rgba(255,255,255,0.08));
  border-radius: var(--nx-radius-sm, 12px);
  flex-shrink: 0;
}

.ic-weather .ic-hourly-time {
  font-size: 10px;
  color: var(--nx-text-muted, #808088);
  margin-bottom: 4px;
}

.ic-weather .ic-hourly-icon { font-size: 18px; margin-bottom: 4px; }

.ic-weather .ic-hourly-temp {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.ic-weather .ic-daily-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.ic-weather .ic-daily-row:last-child { border-bottom: none; }

.ic-weather .ic-daily-day {
  width: 44px;
  font-size: 12px;
  font-weight: 600;
  color: var(--nx-text-secondary, #b0b0b8);
}

.ic-weather .ic-daily-icon { font-size: 18px; width: 28px; text-align: center; }

.ic-weather .ic-daily-temps {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.ic-weather .ic-daily-high {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.ic-weather .ic-daily-low {
  font-size: 13px;
  color: var(--nx-text-muted, #808088);
}

.ic-weather .ic-sun-info {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--nx-text-secondary, #b0b0b8);
}

.ic-weather .ic-sun-info i { color: #f59e0b; margin-right: 4px; }

/* ═══════════════════════════════════════════════════
   3. DATETIME CANVAS — Premium Digital Clock
   ═══════════════════════════════════════════════════ */
.ic-datetime .ic-clock-hero {
  text-align: center;
  margin-bottom: 20px;
}

.ic-datetime .ic-clock-display {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--nx-font-display, 'Orbitron', monospace);
  line-height: 1;
}

.ic-datetime .ic-clock-hm {
  font-size: 60px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(0,240,255,0.4), 0 0 60px rgba(0,240,255,0.15);
}

.ic-datetime .ic-clock-colon {
  font-size: 56px;
  font-weight: 700;
  color: var(--nx-accent, #00f0ff);
  transition: opacity 0.15s ease;
  margin: 0 2px;
}

.ic-datetime .ic-clock-sec {
  font-size: 28px;
  font-weight: 500;
  color: var(--nx-accent, #00f0ff);
  margin-left: 4px;
  min-width: 1.6em;
  text-shadow: 0 0 12px rgba(0,240,255,0.5);
}

.ic-datetime .ic-clock-ampm {
  font-size: 16px;
  font-weight: 600;
  color: var(--nx-text-secondary, #b0b0b8);
  margin-left: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ic-datetime .ic-clock-time {
  font-size: 56px;
  font-weight: 700;
  font-family: var(--nx-font-display, 'Orbitron', sans-serif);
  color: #fff;
  line-height: 1;
  letter-spacing: 2px;
}

.ic-datetime .ic-clock-seconds {
  font-size: 24px;
  color: var(--nx-accent, #00f0ff);
  font-weight: 400;
}

.ic-datetime .ic-clock-date {
  font-size: 15px;
  color: var(--nx-text-secondary, #b0b0b8);
  margin-top: 6px;
}

.ic-datetime .ic-clock-tz {
  font-size: 12px;
  color: var(--nx-text-muted, #808088);
  margin-top: 2px;
}

.ic-datetime .ic-world-clocks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.ic-datetime .ic-world-clock-card {
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--nx-glass-border, rgba(255,255,255,0.08));
  border-radius: var(--nx-radius-sm, 12px);
  text-align: center;
}

.ic-datetime .ic-wc-city {
  font-size: 11px;
  color: var(--nx-text-muted, #808088);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ic-datetime .ic-wc-time {
  font-size: 18px;
  font-weight: 600;
  font-family: var(--nx-font-mono, monospace);
  color: #fff;
}

.ic-datetime .ic-wc-offset {
  font-size: 10px;
  color: var(--nx-text-muted, #808088);
  margin-top: 2px;
}

.ic-datetime .ic-wc-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px;
}

.ic-datetime .ic-wc-indicator.day { background: #f59e0b; }
.ic-datetime .ic-wc-indicator.night { background: #6366f1; }

/* ═══════════════════════════════════════════════════
   4. LOCATION CANVAS
   ═══════════════════════════════════════════════════ */
.ic-location .ic-map-container {
  width: 100%;
  height: 300px;
  border-radius: var(--nx-radius-sm, 12px);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--nx-glass-border, rgba(255,255,255,0.08));
}

.ic-location .ic-location-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ic-location .ic-location-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.ic-location .ic-location-address {
  font-size: 13px;
  color: var(--nx-text-secondary, #b0b0b8);
}

.ic-location .ic-location-coords {
  font-size: 12px;
  font-family: var(--nx-font-mono, monospace);
  color: var(--nx-text-muted, #808088);
}

.ic-location .ic-location-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════
   5. PRODUCT CANVAS
   ═══════════════════════════════════════════════════ */
.ic-product .ic-product-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.ic-product .ic-product-card {
  min-width: 180px;
  max-width: 200px;
  flex-shrink: 0;
  padding: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--nx-glass-border, rgba(255,255,255,0.08));
  border-radius: var(--nx-radius-sm, 12px);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.ic-product .ic-product-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--nx-glass-border-hi, rgba(255,255,255,0.14));
  transform: translateY(-2px);
}

.ic-product .ic-product-img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: var(--nx-radius-xs, 8px);
  margin-bottom: 10px;
  background: rgba(255,255,255,0.02);
}

.ic-product .ic-product-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-text, #e8e8e8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.ic-product .ic-product-brand {
  font-size: 11px;
  color: var(--nx-text-muted, #808088);
  margin-bottom: 6px;
}

.ic-product .ic-product-price {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.ic-product .ic-product-original-price {
  font-size: 12px;
  color: var(--nx-text-muted, #808088);
  text-decoration: line-through;
  margin-left: 6px;
}

.ic-product .ic-product-discount {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(239,68,68,0.9);
  color: #fff;
}

.ic-product .ic-product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  color: #f59e0b;
}

.ic-product .ic-product-rating span {
  color: var(--nx-text-muted, #808088);
}

/* ═══════════════════════════════════════════════════
   6. MOVIE CANVAS
   ═══════════════════════════════════════════════════ */
.ic-movie .ic-movie-hero {
  position: relative;
  margin: 0 0 20px;
  height: 200px;
  overflow: hidden;
  border-radius: var(--nx-radius, 18px);
}

.ic-movie .ic-movie-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.ic-movie .ic-movie-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(28,28,32,0.95));
  border-radius: 0 0 var(--nx-radius, 18px) var(--nx-radius, 18px);
}

.ic-movie .ic-movie-hero-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.ic-movie .ic-movie-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ic-movie .ic-movie-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(245,158,11,0.2);
  color: #f59e0b;
  font-size: 12px;
  font-weight: 700;
}

.ic-movie .ic-movie-body {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.ic-movie .ic-movie-poster {
  width: 140px;
  flex-shrink: 0;
  border-radius: var(--nx-radius-sm, 12px);
  overflow: hidden;
}

.ic-movie .ic-movie-poster img {
  width: 100%;
  height: auto;
  display: block;
}

.ic-movie .ic-movie-info { flex: 1; }

.ic-movie .ic-movie-plot {
  font-size: 13px;
  color: var(--nx-text-secondary, #b0b0b8);
  line-height: 1.6;
  margin-bottom: 12px;
}

.ic-movie .ic-movie-detail-row {
  font-size: 12px;
  color: var(--nx-text-muted, #808088);
  margin-bottom: 4px;
}

.ic-movie .ic-movie-detail-row strong {
  color: var(--nx-text-secondary, #b0b0b8);
}

.ic-movie .ic-movie-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.ic-movie .ic-providers-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ic-movie .ic-provider-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.ic-movie .ic-cast-card {
  min-width: 90px;
  text-align: center;
  flex-shrink: 0;
}

.ic-movie .ic-cast-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 6px;
  border: 2px solid var(--nx-glass-border, rgba(255,255,255,0.08));
}

.ic-movie .ic-cast-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--nx-text, #e8e8e8);
}

.ic-movie .ic-cast-character {
  font-size: 10px;
  color: var(--nx-text-muted, #808088);
}

.ic-movie .ic-recommendation-card {
  min-width: 120px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s;
}

.ic-movie .ic-recommendation-card:hover { transform: translateY(-2px); }

.ic-movie .ic-rec-poster {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--nx-radius-xs, 8px);
  margin-bottom: 6px;
}

.ic-movie .ic-rec-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--nx-text, #e8e8e8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════
   7. STOCK CANVAS
   ═══════════════════════════════════════════════════ */
.ic-stock .ic-stock-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.ic-stock .ic-stock-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--nx-radius-xs, 8px);
  object-fit: contain;
  background: rgba(255,255,255,0.06);
  padding: 4px;
}

.ic-stock .ic-stock-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.ic-stock .ic-stock-ticker {
  font-size: 12px;
  color: var(--nx-text-muted, #808088);
  font-family: var(--nx-font-mono, monospace);
}

.ic-stock .ic-stock-price-group {
  margin-left: auto;
  text-align: right;
}

.ic-stock .ic-stock-price {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--nx-font-display, 'Orbitron', sans-serif);
  color: #fff;
}

.ic-stock .ic-stock-change {
  font-size: 14px;
  font-weight: 600;
}

.ic-stock .ic-analyst-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.ic-stock .ic-analyst-buy { background: #22c55e; }
.ic-stock .ic-analyst-hold { background: #f59e0b; }
.ic-stock .ic-analyst-sell { background: #ef4444; }

.ic-stock .ic-analyst-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--nx-text-muted, #808088);
}

.ic-stock .ic-news-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.ic-stock .ic-news-item:last-child { border-bottom: none; }

.ic-stock .ic-news-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--nx-text, #e8e8e8);
  flex: 1;
}

.ic-stock .ic-news-source {
  font-size: 10px;
  color: var(--nx-text-muted, #808088);
  margin-top: 2px;
}

.ic-stock .ic-peer-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-family: var(--nx-font-mono, monospace);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--nx-glass-border, rgba(255,255,255,0.08));
  color: var(--nx-text-secondary, #b0b0b8);
}

/* ═══════════════════════════════════════════════════
   8. GDP CANVAS
   ═══════════════════════════════════════════════════ */
.ic-gdp .ic-gdp-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.ic-gdp .ic-country-flag {
  font-size: 36px;
}

.ic-gdp .ic-gdp-value {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--nx-font-display, 'Orbitron', sans-serif);
  color: #fff;
}

.ic-gdp .ic-gdp-label {
  font-size: 13px;
  color: var(--nx-text-secondary, #b0b0b8);
}

.ic-gdp .ic-gdp-chart {
  width: 100%;
  height: 100px;
  margin: 16px 0;
}

.ic-gdp .ic-gdp-chart svg {
  width: 100%;
  height: 100%;
}

.ic-gdp .ic-gdp-chart .ic-chart-line {
  fill: none;
  stroke: var(--nx-accent, #00f0ff);
  stroke-width: 2;
}

.ic-gdp .ic-gdp-chart .ic-chart-area {
  fill: var(--nx-accent-dim, rgba(0,240,255,0.15));
}

/* ═══════════════════════════════════════════════════
   9. SPORTS CANVAS
   ═══════════════════════════════════════════════════ */
.ic-sports .ic-sports-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.ic-sports .ic-team-badge {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.ic-sports .ic-team-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.ic-sports .ic-team-league {
  font-size: 13px;
  color: var(--nx-text-secondary, #b0b0b8);
}

.ic-sports .ic-fixture-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--nx-glass-border, rgba(255,255,255,0.08));
  border-radius: var(--nx-radius-sm, 12px);
  margin-bottom: 10px;
}

.ic-sports .ic-fixture-team {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ic-sports .ic-fixture-badge {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ═══════════════════════════════════════════════════════════════════
   INTERACTIVE CANVAS STYLES — v2.0 Production Enhancement
   ═══════════════════════════════════════════════════════════════════ */

/* ── Scroll Wrapper + Arrow Buttons (Product, Weather) ── */
.ic-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ic-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--nx-glass-border, rgba(255,255,255,0.12));
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--nx-text-primary, #eee);
  font-size: 13px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.ic-scroll-arrow:hover {
  background: rgba(0,240,255,0.12);
  border-color: rgba(0,240,255,0.3);
  opacity: 1;
}

.ic-scroll-left { left: -8px; }
.ic-scroll-right { right: -8px; }

.ic-product-scroll {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.ic-product-scroll .ic-product-card {
  scroll-snap-align: start;
}

/* ── Precipitation Bars (Weather hourly/daily) ── */
.ic-precip-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.ic-precip-bar {
  height: 100%;
  background: linear-gradient(90deg, rgba(0,160,255,0.6), rgba(0,200,255,0.9));
  border-radius: 2px;
  min-width: 2px;
  transition: width 0.3s ease;
}

.ic-precip-pct {
  font-size: 9px;
  opacity: 0.45;
  margin-top: 2px;
}

/* ── Movie / TV Enhancements ── */
.ic-star-rating {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #f5c518;
  font-size: 13px;
  margin-right: 6px;
}

.ic-star-rating .empty { color: rgba(255,255,255,0.15); }
.ic-star-rating .half { position: relative; }

.ic-vote-count {
  font-size: 11px;
  opacity: 0.45;
  margin-left: 4px;
}

.ic-trailer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,0,0,0.15);
  border: 1px solid rgba(255,0,0,0.25);
  border-radius: 20px;
  color: #ff4444;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  margin-top: 8px;
}

.ic-trailer-btn:hover {
  background: rgba(255,0,0,0.25);
  border-color: rgba(255,0,0,0.4);
  color: #ff6666;
}

.ic-movie .ic-cast-card[data-name],
.ic-movie .ic-rec-card[data-title] {
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s;
}

.ic-movie .ic-cast-card[data-name]:hover,
.ic-movie .ic-rec-card[data-title]:hover {
  transform: translateY(-2px);
  border-color: rgba(0,240,255,0.25);
}

.ic-providers-section {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ic-provider-category {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.5;
  margin-right: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ic-tmdb-attribution {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  opacity: 0.35;
}

.ic-tmdb-attribution img {
  height: 12px;
  width: auto;
}

/* ── Stock Enhancements ── */
.ic-stock-range {
  position: relative;
  height: 6px;
  background: linear-gradient(90deg, rgba(255,100,100,0.3), rgba(255,255,100,0.3), rgba(100,255,100,0.3));
  border-radius: 3px;
  margin: 12px 0 4px;
}

.ic-stock-range-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--nx-accent, #00f0ff);
  border: 2px solid rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(0,240,255,0.4);
}

.ic-stock-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  opacity: 0.4;
}

.ic-stock .ic-news-item {
  transition: background 0.15s;
  border-radius: 8px;
  padding: 8px;
  margin: -4px -8px;
}

.ic-stock .ic-news-item:hover {
  background: rgba(255,255,255,0.04);
}

.ic-stock .ic-peer-chip {
  cursor: pointer;
  transition: all 0.15s;
}

.ic-stock .ic-peer-chip:hover {
  background: var(--nx-accent-dim, rgba(0,240,255,0.1));
  border-color: rgba(0,240,255,0.3);
  color: var(--nx-accent, #00f0ff);
}

/* ── GDP Interactive Chart ── */
.ic-interactive-chart {
  position: relative;
}

.ic-chart-dot {
  fill: var(--nx-accent, #00f0ff);
  opacity: 0.5;
  transition: r 0.15s, opacity 0.15s;
  cursor: crosshair;
}

.ic-chart-dot:hover {
  opacity: 1;
}

.ic-chart-hover-line {
  stroke: rgba(255,255,255,0.2);
  stroke-width: 1;
  stroke-dasharray: 4,4;
  pointer-events: none;
}

.ic-chart-label {
  fill: rgba(255,255,255,0.35);
  font-family: inherit;
}

.ic-chart-tooltip {
  position: absolute;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--nx-text-primary, #eee);
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.ic-chart-tooltip strong {
  color: var(--nx-accent, #00f0ff);
  font-weight: 600;
}

/* ── Sports Enhancements ── */
.ic-fixture-card[data-search] {
  cursor: pointer;
  transition: background 0.15s, border-color 0.2s;
}

.ic-fixture-card[data-search]:hover {
  background: rgba(0,240,255,0.05);
  border-color: rgba(0,240,255,0.2);
}

.ic-fixture-mini {
  flex-wrap: wrap;
  padding: 10px 14px;
  font-size: 13px;
}

.ic-fixture-date {
  font-size: 12px;
  opacity: 0.5;
  margin-top: 4px;
  margin-bottom: 12px;
}

.ic-result-indicator {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: auto;
}

.ic-result-w { background: rgba(0,200,100,0.15); color: #2ecc71; }
.ic-result-d { background: rgba(255,200,0,0.15); color: #f1c40f; }
.ic-result-l { background: rgba(255,80,80,0.15); color: #e74c3c; }

/* ── News Enhancements ── */
.ic-news-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--nx-accent, #00f0ff);
  margin-bottom: 12px;
  padding: 0 20px;
}

.ic-news-card {
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s;
}

.ic-news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,240,255,0.2);
}

.ic-news-card-time {
  font-size: 11px;
  opacity: 0.4;
  margin-top: 4px;
}

/* ── DateTime Enhancements ── */
.ic-world-clock-card[data-city] {
  cursor: pointer;
  transition: background 0.15s, border-color 0.2s;
}

.ic-world-clock-card[data-city]:hover {
  background: rgba(0,240,255,0.06);
  border-color: rgba(0,240,255,0.2);
}

/* ── Location Enhancements ── */
.ic-location-type {
  margin: 4px 0 8px;
}

/* ── Conversion Enhancements ── */
.ic-conversion .ic-conv-input {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--nx-glass-border, rgba(255,255,255,0.08));
  border-radius: 12px;
  color: var(--nx-text-primary, #eee);
  padding: 8px 12px;
  width: 100%;
  max-width: 200px;
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}

.ic-conversion .ic-conv-input::-webkit-inner-spin-button,
.ic-conversion .ic-conv-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ic-conversion .ic-conv-input:focus {
  border-color: rgba(0,240,255,0.4);
}

.ic-conversion .ic-swap-btn:hover {
  color: var(--nx-accent, #00f0ff);
  border-color: rgba(0,240,255,0.3);
  background: rgba(0,240,255,0.08);
}

.ic-conversion .ic-related-chip {
  cursor: pointer;
  transition: all 0.15s;
}

.ic-conversion .ic-related-chip:hover {
  background: var(--nx-accent-dim, rgba(0,240,255,0.1));
  border-color: rgba(0,240,255,0.3);
  color: var(--nx-accent, #00f0ff);
}

/* ── General Attribution ── */
.ic-attribution {
  font-size: 11px;
  opacity: 0.35;
  text-align: right;
  margin-top: 8px;
}

.ic-sports .ic-fixture-vs {
  font-size: 12px;
  font-weight: 700;
  color: var(--nx-text-muted, #808088);
  text-align: center;
  min-width: 40px;
}

.ic-sports .ic-fixture-score {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--nx-font-mono, monospace);
  color: #fff;
  min-width: 40px;
  text-align: center;
}

.ic-sports .ic-fixture-date {
  font-size: 11px;
  color: var(--nx-text-muted, #808088);
  text-align: center;
  margin-top: 4px;
}

.ic-sports .ic-result-indicator {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.ic-sports .ic-result-w { background: #22c55e; }
.ic-sports .ic-result-d { background: #f59e0b; }
.ic-sports .ic-result-l { background: #ef4444; }

/* ═══════════════════════════════════════════════════
  10. NEWS CANVAS
   ═══════════════════════════════════════════════════ */
.ic-news .ic-news-hero {
  position: relative;
  margin: 0 0 20px;
  height: 180px;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--nx-radius, 18px);
}

.ic-news .ic-news-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.ic-news .ic-news-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(transparent, rgba(28,28,32,0.95));
  border-radius: 0 0 var(--nx-radius, 18px) var(--nx-radius, 18px);
}

.ic-news .ic-news-hero-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.ic-news .ic-news-hero-source {
  font-size: 12px;
  color: var(--nx-text-muted, #808088);
}

.ic-news .ic-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ic-news .ic-news-card {
  padding: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--nx-glass-border, rgba(255,255,255,0.08));
  border-radius: var(--nx-radius-sm, 12px);
  cursor: pointer;
  transition: all 0.2s;
}

.ic-news .ic-news-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--nx-glass-border-hi, rgba(255,255,255,0.14));
}

.ic-news .ic-news-card-img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: var(--nx-radius-xs, 8px);
  margin-bottom: 8px;
}

.ic-news .ic-news-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--nx-text, #e8e8e8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.ic-news .ic-news-card-source {
  font-size: 10px;
  color: var(--nx-text-muted, #808088);
}

.ic-news .ic-news-card-time {
  font-size: 10px;
  color: var(--nx-text-muted, #808088);
}

/* ═══════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════ */
@keyframes icFadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .ic-hero-value { font-size: 32px; }
  .ic-weather .ic-weather-temp { font-size: 42px; }
  .ic-datetime .ic-clock-time { font-size: 42px; }
  .ic-datetime .ic-clock-hm { font-size: 42px; }
  .ic-datetime .ic-clock-sec { font-size: 20px; }
  .ic-datetime .ic-clock-colon { font-size: 38px; }
  .ic-stock .ic-stock-price { font-size: 22px; }
  .ic-gdp .ic-gdp-value { font-size: 24px; }

  .ic-grid-3, .ic-grid-4 { grid-template-columns: repeat(2, 1fr); }

  .ic-movie .ic-movie-hero { height: 150px; }
  .ic-movie .ic-movie-body { flex-direction: column; }
  .ic-movie .ic-movie-poster { width: 100px; }
  .ic-news .ic-news-grid { grid-template-columns: 1fr; }
  .ic-news .ic-news-hero { height: 140px; }
  .ic-location .ic-map-container { height: 220px; }
}

@media (max-width: 480px) {
  .ic-container { max-width: 100%; margin: 0 0 16px; }
  .ic-hero-value { font-size: 28px; }
  .ic-weather .ic-weather-hero { flex-wrap: wrap; }
  .ic-stock .ic-stock-hero { flex-wrap: wrap; }
  .ic-sports .ic-sports-hero { flex-wrap: wrap; }
  .ic-datetime .ic-world-clocks { grid-template-columns: repeat(2, 1fr); }
}