/* ==========================================================================
 * India Myanmar Connect (IM Connect) — ORQENTA UI Component System
 * Phase 03 · Bootstrap 5 Compatible · Direct-Root cPanel Ready
 * ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--im-font-body);
  background-color: var(--im-bg-page);
  color: var(--im-fg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.im-heading {
  font-family: var(--im-font-heading);
  color: var(--im-fg-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* Multilingual Line-Height Adjustments for Burmese & Devanagari */
:lang(my),
.im-lang-my {
  line-height: 1.85;
  letter-spacing: 0;
}

:lang(hi),
.im-lang-hi {
  line-height: 1.75;
}

/* Accessible Skip Link & Keyboard Focus Outline */
.im-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--im-secondary);
  color: var(--im-white);
  padding: 10px 16px;
  border-radius: var(--im-radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.im-skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--im-focus-ring);
  outline-offset: 2px;
}

/* Top Navigation Bar */
.im-navbar {
  background-color: var(--im-bg-card);
  border-bottom: 1px solid var(--im-border-subtle);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.im-nav-link {
  color: var(--im-fg-body);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--im-radius-sm);
  text-decoration: none;
  transition: background-color var(--im-transition-fast), color var(--im-transition-fast);
}

.im-nav-link:hover {
  background-color: var(--im-bg-subtle);
  color: var(--im-fg-heading);
}

.im-nav-link.active,
.im-nav-link[aria-current="page"] {
  background-color: var(--im-bg-selected);
  color: var(--im-fg-heading);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--im-primary);
}

/* Dark Command Sidebar (Superadmin / Admin / Embassy Portals) */
.im-sidebar {
  background-color: var(--im-bg-sidebar);
  color: var(--im-white);
  min-height: 100vh;
  border-right: 1px solid rgba(255, 233, 225, 0.12);
}

.im-sidebar-brand {
  background: var(--im-gradient-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.im-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--im-radius-sm);
  color: #FFE9E1;
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  transition: background-color var(--im-transition-fast), color var(--im-transition-fast);
}

.im-sidebar-link:hover {
  background-color: rgba(255, 233, 225, 0.12);
  color: var(--im-white);
}

.im-sidebar-link.active {
  background-color: var(--im-primary);
  color: var(--im-secondary); /* 5.58:1 WCAG PASS */
  font-weight: 700;
}

/* Accessible Buttons (WCAG 2.2 AA Enforced) */
.btn-im-primary {
  background-color: var(--im-primary);
  color: var(--im-fg-on-primary); /* #141110 on #F05A3C = 5.58:1 PASS */
  border: 1px solid var(--im-primary-dark);
  border-radius: var(--im-radius-sm);
  font-weight: 700;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--im-transition-fast), color var(--im-transition-fast), border-color var(--im-transition-fast);
}

/* Hover uses dark #141110 + white text (18.79:1) in Light, or #F7906F + #141110 (8.21:1) in Dark */
.btn-im-primary:hover {
  background-color: var(--im-secondary);
  color: var(--im-white);
  border-color: var(--im-secondary);
}

[data-theme="dark"] .btn-im-primary:hover {
  background-color: var(--im-peach);
  color: var(--im-secondary);
  border-color: var(--im-peach);
}

.btn-im-secondary {
  background-color: var(--im-secondary);
  color: var(--im-white);
  border: 1px solid var(--im-secondary);
  border-radius: var(--im-radius-sm);
  font-weight: 600;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.btn-im-secondary:hover {
  background-color: var(--im-primary);
  color: var(--im-secondary);
  border-color: var(--im-primary-dark);
}

.btn-im-outline {
  background-color: transparent;
  color: var(--im-fg-heading);
  border: 1.5px solid var(--im-border-strong);
  border-radius: var(--im-radius-sm);
  font-weight: 600;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.btn-im-outline:hover {
  background-color: var(--im-bg-selected);
  border-color: var(--im-primary);
  color: var(--im-fg-heading);
}

/* ORQENTA Bento Cards & Alternating Sections */
.im-section-surface {
  background-color: var(--im-bg-section);
  border-top: 1px solid var(--im-border-subtle);
  border-bottom: 1px solid var(--im-border-subtle);
}

.im-card {
  background-color: var(--im-bg-card);
  border: 1px solid var(--im-border-subtle);
  border-radius: var(--im-radius-lg);
  box-shadow: var(--im-shadow-card);
  padding: 20px;
}

.im-card-highlight {
  background: var(--im-gradient-surface);
  border: 1px solid var(--im-primary);
}

[data-theme="dark"] .im-card-highlight {
  background: var(--im-bg-selected);
  border-color: var(--im-primary);
}

.im-kpi-value {
  font-family: var(--im-font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--im-fg-heading);
  letter-spacing: -0.03em;
}

/* Badges & Market Indicators (Accessible Text + Icon/Text Cue) */
.im-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--im-radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.im-badge-positive {
  background-color: var(--im-accent);
  color: var(--im-fg-on-accent); /* 7.25:1 PASS */
}

.im-badge-mint {
  background-color: var(--im-status-positive-bg);
  color: var(--im-status-positive-fg);
  border: 1px solid var(--im-accent);
}

.im-badge-primary {
  background-color: var(--im-bg-selected);
  color: var(--im-fg-heading);
  border: 1px solid var(--im-primary);
}

.im-badge-sponsored {
  background-color: var(--im-bg-subtle);
  color: var(--im-fg-body);
  border: 1px solid var(--im-border-strong);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Ad-Free Safety / Emergency Alert Banner */
.im-alert-emergency {
  background-color: var(--im-status-error-bg);
  color: var(--im-status-error-fg);
  border: 2px solid var(--im-status-error-border);
  border-radius: var(--im-radius-md);
  padding: 16px 20px;
}

.im-alert-warning {
  background-color: var(--im-status-warning-bg);
  color: var(--im-status-warning-fg);
  border: 1.5px solid var(--im-status-warning-border);
  border-radius: var(--im-radius-md);
  padding: 14px 18px;
}

/* Independent Platform Disclaimer Banner */
.im-disclaimer-bar {
  background-color: var(--im-bg-subtle);
  border-bottom: 1px solid var(--im-border-subtle);
  color: var(--im-fg-body);
  font-size: 0.85rem;
  padding: 8px 16px;
}

/* Notification Bell & Inbox Drawer (Multichannel Revision 2) */
.im-bell-btn {
  position: relative;
  background-color: var(--im-bg-subtle);
  color: var(--im-fg-heading);
  border: 1px solid var(--im-border-subtle);
  border-radius: var(--im-radius-pill);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.im-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--im-radius-pill);
  background-color: var(--im-primary);
  color: var(--im-secondary); /* 5.58:1 PASS */
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--im-bg-card);
}

.im-inbox-item {
  border-bottom: 1px solid var(--im-border-subtle);
  padding: 12px 14px;
  transition: background-color var(--im-transition-fast);
}

.im-inbox-item.unread {
  background-color: var(--im-bg-selected);
  border-left: 4px solid var(--im-primary);
}

/* Data Tables & Accessible Form Controls */
.im-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--im-fg-body);
}

.im-table thead th {
  background-color: var(--im-bg-subtle);
  color: var(--im-fg-heading);
  font-family: var(--im-font-heading);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--im-border-subtle);
  text-align: left;
}

.im-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--im-border-subtle);
  vertical-align: middle;
}

.im-input,
.im-select {
  width: 100%;
  background-color: var(--im-bg-card);
  color: var(--im-fg-heading);
  border: 1.5px solid var(--im-border-strong);
  border-radius: var(--im-radius-sm);
  padding: 10px 14px;
  font-family: var(--im-font-body);
  font-size: 0.95rem;
}

.im-input:focus,
.im-select:focus {
  border-color: var(--im-primary-dark);
  outline: 3px solid rgba(240, 90, 60, 0.28);
  outline-offset: 0;
}

/* QR Event Pass Container (Mandatory High-Contrast Dark on White + Quiet Zone) */
.im-qr-frame {
  background-color: #FFFFFF !important;
  color: #141110 !important;
  border: 2px solid #141110;
  border-radius: var(--im-radius-md);
  padding: 20px; /* Enforces >= 4-module quiet zone */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print / PDF Pass & Consular Checklist Optimization */
@media print {
  body {
    background: #FFFFFF !important;
    color: #141110 !important;
  }
  .im-no-print,
  .im-navbar,
  .im-sidebar {
    display: none !important;
  }
  .im-card {
    box-shadow: none !important;
    border: 1px solid #141110 !important;
  }
}

/* ==========================================================================
 * Phase 11: Multilingual Unicode Rendering & WCAG 2.2 AA Accessibility Polish
 * ========================================================================== */

/* Screen-reader-only utility (preserves semantic announcements without visual clutter) */
.im-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Enhanced Burmese (Pyidaungsu / Noto Sans Myanmar) & Hindi (Devanagari) Rendering */
:lang(my),
.im-lang-my {
  font-family: "Noto Sans Myanmar", "Pyidaungsu", "Myanmar Text", "Inter", system-ui, sans-serif;
  line-height: 1.9;
  letter-spacing: 0 !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}

:lang(my) h1,
:lang(my) h2,
:lang(my) h3,
.im-lang-my h1,
.im-lang-my h2,
.im-lang-my h3 {
  line-height: 1.5;
  letter-spacing: 0 !important;
}

:lang(my) .btn-im-primary,
:lang(my) .btn-im-secondary,
:lang(my) .btn-im-outline,
:lang(my) .im-badge,
:lang(hi) .btn-im-primary,
:lang(hi) .btn-im-secondary,
:lang(hi) .btn-im-outline,
:lang(hi) .im-badge {
  line-height: 1.5;
  padding-top: 8px;
  padding-bottom: 8px;
}

:lang(hi),
.im-lang-hi {
  font-family: "Noto Sans Devanagari", "Inter", system-ui, sans-serif;
  line-height: 1.8;
  letter-spacing: 0 !important;
}

/* Touch Target Minimum & Keyboard Focus Clarity (WCAG 2.2 AA 2.5.8 Target Size) */
.im-nav-link,
.im-pub-pill,
.im-sidebar-link {
  min-height: 36px;
}

/* Windows Forced-Colors / High-Contrast Mode Support */
@media (forced-colors: active) {
  .btn-im-primary,
  .btn-im-secondary,
  .btn-im-outline,
  .im-badge,
  .im-card {
    border: 1px solid CanvasText;
  }
  :focus-visible {
    outline: 3px solid Highlight;
  }
}

/* ==========================================================================
 * Production Frontpage & Brand Components (ORQENTA Palette)
 * ========================================================================== */
.im-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--im-gradient-primary);
  color: #141110;
  font-family: var(--im-font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.03em;
  box-shadow: 0 4px 12px rgba(240, 90, 60, 0.24);
}

.im-hero-shell {
  position: relative;
  border-radius: 20px;
  background: var(--im-gradient-surface);
  border: 1px solid var(--im-border-subtle);
  padding: 32px;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(20, 17, 16, 0.05);
}

[data-theme="dark"] .im-hero-shell {
  background: linear-gradient(145deg, #1E1A18 0%, #272220 100%);
  border-color: var(--im-border-subtle);
}

.im-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 860px) {
  .im-hero-shell { padding: 22px; }
  .im-hero-grid { grid-template-columns: 1fr; }
}

.im-hero-search-form {
  display: flex;
  gap: 8px;
  margin: 18px 0 14px 0;
  background: var(--im-bg-card);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--im-border-subtle);
  box-shadow: 0 4px 16px rgba(20, 17, 16, 0.04);
}

.im-hero-search-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 0.95rem;
  color: var(--im-fg-heading);
  outline: none;
}

.im-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.im-quick-chip {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--im-bg-card);
  border: 1px solid var(--im-border-subtle);
  color: var(--im-fg-heading);
  text-decoration: none;
  transition: border-color var(--im-transition-fast), background-color var(--im-transition-fast);
}

.im-quick-chip:hover {
  border-color: var(--im-primary);
  background: var(--im-primary-light);
  color: #141110;
}

.im-sos-panel {
  background: var(--im-bg-card);
  border: 1px solid var(--im-border-subtle);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.im-sos-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.im-sos-dial {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border-radius: 10px;
  background: var(--im-primary-light);
  color: #141110;
  text-decoration: none;
  border: 1px solid rgba(240, 90, 60, 0.25);
}

.im-sos-dial strong {
  font-family: var(--im-font-heading);
  font-size: 1.2rem;
  line-height: 1.1;
}

.im-sos-dial span {
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 2px;
}

.im-quick-action-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.im-quick-action-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--im-bg-section);
  border: 1px solid var(--im-border-subtle);
  color: var(--im-fg-heading);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  transition: transform var(--im-transition-fast), border-color var(--im-transition-fast);
}

.im-quick-action-tile:hover {
  transform: translateY(-1px);
  border-color: var(--im-primary);
}

.im-quick-action-tile small {
  font-weight: 500;
  font-size: 0.74rem;
  color: var(--im-fg-muted);
}

.im-pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
}

.im-pillar-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform var(--im-transition-fast), box-shadow var(--im-transition-fast), border-color var(--im-transition-fast);
}

.im-pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--im-primary);
  box-shadow: 0 10px 26px rgba(20, 17, 16, 0.07);
}

.im-live-pulse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.im-live-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--im-border-subtle);
}

.im-live-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.im-app-banner {
  border-radius: 18px;
  background: var(--im-gradient-dark);
  color: #FFFFFF;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.im-app-banner h2,
.im-app-banner p {
  color: #FFFFFF;
}

/* ==========================================================================
 * IM Connect v2.0 — Elevated Global Editorial & Bento ORQENTA Redesign
 * Applies cohesive luxury polish across frontpage & every public/member page
 * ========================================================================== */
body {
  background-image: radial-gradient(circle at 12% 0%, rgba(255, 233, 225, 0.52) 0%, transparent 42%),
                    radial-gradient(circle at 88% 8%, rgba(230, 246, 238, 0.42) 0%, transparent 38%);
  background-attachment: fixed;
}

[data-theme="dark"] body {
  background-image: radial-gradient(circle at 12% 0%, rgba(240, 90, 60, 0.12) 0%, transparent 45%),
                    radial-gradient(circle at 88% 10%, rgba(47, 182, 124, 0.08) 0%, transparent 40%);
}

.im-disclaimer-bar {
  background: linear-gradient(90deg, #141110 0%, #241C1A 55%, #141110 100%);
  color: #FFE9E1;
  font-size: 0.78rem;
  padding: 7px 16px;
  text-align: center;
  border-bottom: 2px solid var(--im-primary);
}

.im-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(20, 17, 16, 0.05);
}

[data-theme="dark"] .im-navbar {
  background: rgba(20, 17, 16, 0.92);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
}

.im-card {
  border-radius: 16px;
  border: 1px solid var(--im-border-subtle);
  box-shadow: 0 4px 18px rgba(20, 17, 16, 0.035);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.im-card-highlight {
  background: linear-gradient(135deg, var(--im-primary-light) 0%, var(--im-bg-card) 72%);
  border: 1px solid rgba(240, 90, 60, 0.28);
}

[data-theme="dark"] .im-card-highlight {
  background: linear-gradient(135deg, rgba(240, 90, 60, 0.16) 0%, var(--im-bg-card) 72%);
  border-color: rgba(240, 90, 60, 0.36);
}

.im-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--im-border-subtle);
}

.im-table thead th {
  background: var(--im-bg-section);
  font-family: var(--im-font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 11px 14px;
}

.im-table tbody td {
  padding: 12px 14px;
  border-top: 1px solid var(--im-border-subtle);
}

.im-table tbody tr:hover td {
  background: rgba(255, 233, 225, 0.22);
}

[data-theme="dark"] .im-table tbody tr:hover td {
  background: rgba(240, 90, 60, 0.08);
}

/* Mega Menu Dropdown for All 30+ Hubs */
.im-more-menu {
  position: relative;
  display: inline-block;
}

.im-more-menu summary {
  list-style: none;
  cursor: pointer;
}

.im-more-menu summary::-webkit-details-marker {
  display: none;
}

.im-more-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(640px, 92vw);
  background: var(--im-bg-card);
  border: 1px solid var(--im-border-subtle);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(20, 17, 16, 0.16);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 14px;
  z-index: 1080;
}

.im-more-col h4 {
  margin: 0 0 8px 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--im-primary-dark);
}

.im-more-col a {
  display: block;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--im-fg-heading);
  text-decoration: none;
}

.im-more-col a:hover {
  background: var(--im-primary-light);
  color: #141110;
}

/* Deep-Share Bar (WhatsApp / Viber / Facebook / Telegram) */
.im-share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--im-bg-section);
  border: 1px solid var(--im-border-subtle);
  margin-top: 16px;
}

.im-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--im-border-subtle);
  background: var(--im-bg-card);
  color: var(--im-fg-heading);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.im-share-btn:hover {
  transform: translateY(-1px);
  border-color: var(--im-primary);
  background: var(--im-primary-light);
  color: #141110;
}

/* v2.0 Feature Launch Strip on Frontpage */
.im-v2-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.im-v2-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  background: var(--im-bg-card);
  border: 1px solid var(--im-border-subtle);
  text-decoration: none;
  color: var(--im-fg-heading);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.im-v2-tile:hover {
  transform: translateY(-2px);
  border-color: var(--im-primary);
  box-shadow: 0 10px 24px rgba(240, 90, 60, 0.12);
}

.im-v2-tile-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--im-primary-dark);
}

.im-v2-tile strong {
  font-family: var(--im-font-heading);
  font-size: 0.98rem;
  line-height: 1.3;
}

.im-v2-tile small {
  font-size: 0.8rem;
  color: var(--im-fg-muted);
  line-height: 1.45;
}

@media print {
  .im-navbar, .im-disclaimer-bar, .im-footer, .im-share-bar, .no-print {
    display: none !important;
  }
  body { background: #FFFFFF !important; }
  .im-card { box-shadow: none !important; border: 1px solid #CCCCCC !important; }
}

/* ==========================================================================
 * IM Connect v2.1 — Flagship ORQENTA Frontpage Editorial Showcase
 * Exact Approved Palette · Zero External Assets · Full Dark-Mode Parity
 * ========================================================================== */
.im-hero-flagship {
  position: relative;
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 14%, rgba(240, 90, 60, 0.16) 0%, transparent 46%),
    radial-gradient(circle at 8% 92%, rgba(47, 182, 124, 0.14) 0%, transparent 44%),
    linear-gradient(145deg, #FFFFFF 0%, #FBF8F6 52%, #FFE9E1 100%);
  border: 1px solid rgba(240, 90, 60, 0.22);
  padding: 36px;
  margin-bottom: 30px;
  box-shadow: 0 22px 54px rgba(20, 17, 16, 0.08);
  overflow: hidden;
}

[data-theme="dark"] .im-hero-flagship {
  background:
    radial-gradient(circle at 90% 12%, rgba(240, 90, 60, 0.22) 0%, transparent 48%),
    radial-gradient(circle at 10% 90%, rgba(47, 182, 124, 0.16) 0%, transparent 46%),
    linear-gradient(145deg, #1A1614 0%, #241E1B 58%, #2E1F1B 100%);
  border-color: rgba(240, 90, 60, 0.34);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
}

.im-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--im-accent);
  box-shadow: 0 0 0 4px rgba(47, 182, 124, 0.25);
  margin-right: 6px;
}

.im-hero-title-gradient {
  background: linear-gradient(95deg, var(--im-primary-dark) 0%, var(--im-primary) 55%, #C43A19 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="dark"] .im-hero-title-gradient {
  background: linear-gradient(95deg, #FFE9E1 0%, #F7906F 48%, #F05A3C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.im-city-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 6px 0;
}

.im-city-pill {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--im-border-subtle);
  background: rgba(255, 255, 255, 0.85);
  color: var(--im-fg-heading);
  transition: all 0.15s ease;
}

[data-theme="dark"] .im-city-pill {
  background: rgba(30, 26, 24, 0.85);
}

.im-city-pill.active,
.im-city-pill:hover {
  background: var(--im-secondary);
  border-color: var(--im-secondary);
  color: #FFFFFF;
}

[data-theme="dark"] .im-city-pill.active,
[data-theme="dark"] .im-city-pill:hover {
  background: var(--im-primary);
  border-color: var(--im-primary);
  color: #141110;
}

.im-hero-command-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(240, 90, 60, 0.24);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 14px 36px rgba(20, 17, 16, 0.08);
}

[data-theme="dark"] .im-hero-command-card {
  background: rgba(24, 20, 18, 0.92);
  border-color: rgba(240, 90, 60, 0.32);
}

.im-kpi-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid var(--im-border-subtle);
  padding-top: 12px;
}

.im-kpi-mini {
  background: var(--im-bg-section);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
}

.im-kpi-mini strong {
  display: block;
  font-family: var(--im-font-heading);
  font-size: 1.15rem;
  color: var(--im-fg-heading);
  line-height: 1.15;
}

.im-kpi-mini span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--im-fg-muted);
}

.im-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--im-primary-light);
  color: #141110;
  flex-shrink: 0;
}

.im-icon-badge.mint {
  background: var(--im-mint-light);
  color: #141110;
}

.im-icon-badge.dark {
  background: var(--im-secondary);
  color: #FFE9E1;
}

.im-spotlight-bento {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(0, 1.85fr);
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .im-hero-flagship { padding: 22px; }
  .im-spotlight-bento { grid-template-columns: 1fr; }
}

.im-ai-spotlight-card {
  border-radius: 20px;
  background: linear-gradient(155deg, #141110 0%, #261D1A 65%, #3B221B 100%);
  color: #FFFFFF;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(240, 90, 60, 0.45);
  box-shadow: 0 18px 40px rgba(20, 17, 16, 0.22);
}

.im-ai-spotlight-card h3,
.im-ai-spotlight-card p {
  color: #FFFFFF;
}

.im-ai-prompt-chip {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 233, 225, 0.14);
  border: 1px solid rgba(255, 233, 225, 0.3);
  color: #FFE9E1;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.im-ai-prompt-chip:hover {
  background: var(--im-primary);
  border-color: var(--im-primary);
  color: #141110;
}

.im-city-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.im-city-card {
  position: relative;
  border-radius: 16px;
  padding: 20px;
  background: var(--im-bg-card);
  border: 1px solid var(--im-border-subtle);
  text-decoration: none;
  color: var(--im-fg-heading);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.im-city-card:hover {
  transform: translateY(-3px);
  border-color: var(--im-primary);
  box-shadow: 0 14px 28px rgba(240, 90, 60, 0.14);
}

.im-city-card-code {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--im-primary-dark);
}

.im-phone-mockup {
  width: 220px;
  border-radius: 26px;
  background: #141110;
  border: 3px solid rgba(255, 233, 225, 0.25);
  padding: 14px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.im-phone-screen {
  border-radius: 16px;
  background: #FBF8F6;
  color: #141110;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.im-section-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--im-primary-dark);
  margin-bottom: 4px;
}
