/* ==========================================================================
   DREAMNETIOPI — ULTRA PREMIUM DARK GLASSOID STYLING SYSTEM
   ========================================================================== */

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0b101a;
  --bg-tertiary: #111827;
  --card-bg: rgba(14, 20, 33, 0.75);
  --card-bg-hover: rgba(20, 29, 48, 0.85);
  --card-border: rgba(45, 62, 95, 0.4);
  --card-border-glow: rgba(0, 242, 254, 0.5);
  
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-emerald: #00f2a9;
  --accent-coral: #ff5e62;
  --accent-amber: #ffb300;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --glass-blur: blur(20px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.25);
  --shadow-coral-glow: 0 0 25px rgba(255, 94, 98, 0.3);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(79, 172, 254, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #07090e 0%, #0b101a 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Base Container */
.app-layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 28px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--glass-blur);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 16px;
  z-index: 100;
  transition: var(--transition-fast);
}

.app-header:hover {
  border-color: rgba(0, 242, 254, 0.3);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(168, 85, 247, 0.15));
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 242, 254, 0.4);
  box-shadow: var(--shadow-glow);
}

.octo-icon {
  width: 32px;
  height: 32px;
  animation: pulseLogo 3s ease-in-out infinite alternate;
}

@keyframes pulseLogo {
  0% { transform: scale(0.96); filter: drop-shadow(0 0 2px var(--accent-cyan)); }
  100% { transform: scale(1.05); filter: drop-shadow(0 0 8px var(--accent-blue)); }
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff, #a5f3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.4);
  -webkit-text-fill-color: var(--accent-cyan);
  letter-spacing: 0.05em;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Merchant Context Badge */
.merchant-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(0, 242, 169, 0.3);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: inset 0 0 12px rgba(0, 242, 169, 0.08);
}

.pulse-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: relative;
}

.pulse-green {
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.pulse-green::after {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent-emerald);
  animation: ripple 2s infinite ease-out;
}

.pulse-red {
  background: var(--accent-coral) !important;
  box-shadow: 0 0 10px var(--accent-coral) !important;
}

.pulse-red::after {
  border-color: var(--accent-coral) !important;
}

@keyframes ripple {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.merchant-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
}

.event-name {
  font-size: 0.72rem;
  color: var(--accent-emerald);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #07090e;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.55);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-2px);
}

.btn-chaos {
  background: linear-gradient(135deg, rgba(255, 94, 98, 0.2), rgba(255, 179, 0, 0.2));
  border-color: rgba(255, 94, 98, 0.5);
  color: #ff9ca0;
  box-shadow: 0 0 15px rgba(255, 94, 98, 0.2);
}

.btn-chaos:hover {
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-amber));
  color: #07090e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-coral-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   SUPER CLAWOCTOPUS INTERACTIVE HUD
   ========================================================================== */

.octopus-hero-section {
  width: 100%;
}

.octo-glass-container {
  background: radial-gradient(circle at center, rgba(14, 23, 42, 0.7) 0%, rgba(7, 9, 14, 0.85) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.octo-glass-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.octo-center-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.core-inner {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, #0e1c36 0%, #070e1e 100%);
  border: 2px solid var(--accent-cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.4), inset 0 0 15px rgba(0, 242, 254, 0.3);
  z-index: 2;
  transition: var(--transition-smooth);
}

.core-logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
}

.core-state-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.core-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0, 242, 254, 0.25);
  animation: rotateClockwise 25s linear infinite;
}

.core-ring-mid {
  width: 140px;
  height: 140px;
}

.core-ring-outer {
  width: 175px;
  height: 175px;
  animation-direction: reverse;
  animation-duration: 35s;
}

@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Tentacle Grid */
.tentacle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tentacle-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.tentacle-card:hover {
  background: rgba(22, 33, 56, 0.8);
  border-color: rgba(0, 242, 254, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.tentacle-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tentacle-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.tentacle-status-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.badge-synced { background: rgba(0, 242, 169, 0.15); color: var(--accent-emerald); border: 1px solid rgba(0, 242, 169, 0.3); }
.badge-ready { background: rgba(0, 242, 254, 0.15); color: var(--accent-cyan); border: 1px solid rgba(0, 242, 254, 0.3); }
.badge-alert { background: rgba(255, 94, 98, 0.18); color: var(--accent-coral); border: 1px solid rgba(255, 94, 98, 0.4); animation: pulseAlert 1.5s infinite; }

@keyframes pulseAlert {
  0% { opacity: 0.8; }
  50% { opacity: 1; box-shadow: 0 0 10px rgba(255, 94, 98, 0.5); }
  100% { opacity: 0.8; }
}

.tentacle-system {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-blue);
}

.tentacle-detail {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ==========================================================================
   NAVIGATION TABS
   ========================================================================== */

.main-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  background: rgba(14, 20, 33, 0.7);
  padding: 6px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--glass-blur);
}

.nav-tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-secondary);
  position: relative;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.nav-tab.active {
  background: linear-gradient(180deg, rgba(0, 242, 254, 0.12) 0%, rgba(14, 20, 33, 0.9) 100%);
  border-color: rgba(0, 242, 254, 0.4);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.tab-icon {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.tab-label {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
}

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

.tab-badge {
  position: absolute;
  top: 8px;
  right: 12px;
  background: var(--accent-coral);
  color: #07090e;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  display: none;
}

.tab-badge.badge-active {
  display: block;
}

/* ==========================================================================
   CONTENT STAGE & TAB PANES
   ========================================================================== */

.content-stage {
  min-height: 480px;
}

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

.tab-pane.active {
  display: block;
}

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

.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.pane-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.pane-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.stat-pills {
  display: flex;
  gap: 12px;
}

.stat-pill {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--card-border);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.pill-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.pill-val {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

/* ==========================================================================
   CARDS & GRIDS (TODAY VIEW)
   ========================================================================== */

.today-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: var(--glass-blur);
  position: relative;
  transition: var(--transition-fast);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.card-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 20px;
}

/* Featured Offer Metrics */
.offer-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: rgba(10, 15, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}

.price-val {
  color: var(--accent-emerald);
}

.margin-val {
  color: var(--accent-cyan);
}

.product-inclusions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inclusion-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.inc-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.inc-detail {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

/* Commitment List */
.commitment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.commitment-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.commitment-item:hover {
  background: rgba(25, 36, 60, 0.8);
  border-color: rgba(0, 242, 254, 0.3);
}

.com-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.com-task {
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
}

.com-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}

.com-owner {
  color: var(--accent-blue);
  font-weight: 500;
}

.com-due {
  color: var(--accent-amber);
}

.com-proof {
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.com-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   INVENTORY TABLE (PLAN VIEW)
   ========================================================================== */

.inventory-table-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.inventory-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.inventory-table th {
  background: rgba(15, 23, 42, 0.95);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 14px 18px;
  border-bottom: 1px solid var(--card-border);
}

.inventory-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.inventory-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}

.sku-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

.product-name {
  font-weight: 700;
  color: #fff;
}

.stock-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
}

.stock-deficit {
  background: rgba(255, 94, 98, 0.15) !important;
  color: var(--accent-coral) !important;
}

.plan-packing-checklist {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

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

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.6);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.check-item input[type="checkbox"] {
  accent-color: var(--accent-cyan);
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   DECISIONS VIEW & CONSEQUENCE DIFF (THE WINNING MOMENT)
   ========================================================================== */

.rehearsal-card {
  background: linear-gradient(135deg, rgba(20, 29, 48, 0.9) 0%, rgba(10, 14, 24, 0.95) 100%);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-glow);
  margin-bottom: 24px;
}

.disruption-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.disruption-title-block h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.disruption-trigger {
  font-size: 0.85rem;
  color: var(--accent-coral);
  margin-top: 4px;
  font-family: var(--font-mono);
}

.graph-trace-box {
  background: rgba(7, 9, 14, 0.8);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
}

.graph-trace-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.consequence-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.consequence-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Before / After Diff Table */
.diff-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.diff-box {
  border-radius: var(--radius-md);
  padding: 18px;
  background: rgba(15, 23, 42, 0.7);
}

.diff-box-before {
  border: 1px solid rgba(255, 94, 98, 0.3);
}

.diff-box-after {
  border: 1px solid rgba(0, 242, 169, 0.4);
  box-shadow: 0 0 15px rgba(0, 242, 169, 0.1);
}

.diff-header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.diff-header-before { color: var(--accent-coral); }
.diff-header-after { color: var(--accent-emerald); }

.diff-offer-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.diff-metrics {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Action Bar */
.decision-action-bar {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-approve {
  background: linear-gradient(135deg, var(--accent-emerald), #00b4d8);
  color: #07090e;
  font-size: 0.95rem;
  padding: 12px 28px;
  box-shadow: 0 4px 20px rgba(0, 242, 169, 0.4);
}

.btn-approve:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 242, 169, 0.6);
}

/* ==========================================================================
   5-PLATFORM POSTIZ CAMPAIGN STUDIO
   ========================================================================== */

.postiz-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.post-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: var(--transition-fast);
}

.post-card:hover {
  border-color: rgba(0, 242, 254, 0.4);
  transform: translateY(-2px);
}

.post-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.tastegate-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 169, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(0, 242, 169, 0.3);
}

.post-content-preview {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  background: rgba(10, 14, 24, 0.6);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  min-height: 90px;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.media-tag {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

/* ==========================================================================
   SPONSOR TOOL MATRIX (12 ENGINES)
   ========================================================================== */

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sponsor-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition-fast);
}

.sponsor-card:hover {
  background: var(--card-bg-hover);
  border-color: rgba(0, 242, 254, 0.4);
  transform: translateY(-2px);
}

.sponsor-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sponsor-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.sponsor-role {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

.sponsor-proof {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: rgba(10, 14, 24, 0.7);
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  line-height: 1.4;
}

/* ==========================================================================
   MODAL & TOAST
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #0e1526;
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 580px;
  padding: 24px;
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.25);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.audio-waveform-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  margin: 16px 0;
}

.bar {
  width: 4px;
  height: 20px;
  background: var(--accent-cyan);
  border-radius: 2px;
  animation: wave 1.2s infinite ease-in-out;
}

.bar:nth-child(2) { animation-delay: 0.1s; height: 35px; }
.bar:nth-child(3) { animation-delay: 0.2s; height: 45px; }
.bar:nth-child(4) { animation-delay: 0.3s; height: 25px; }
.bar:nth-child(5) { animation-delay: 0.4s; height: 40px; }
.bar:nth-child(6) { animation-delay: 0.5s; height: 18px; }
.bar:nth-child(7) { animation-delay: 0.6s; height: 38px; }
.bar:nth-child(8) { animation-delay: 0.7s; height: 48px; }
.bar:nth-child(9) { animation-delay: 0.8s; height: 28px; }
.bar:nth-child(10) { animation-delay: 0.9s; height: 42px; }
.bar:nth-child(11) { animation-delay: 1.0s; height: 22px; }
.bar:nth-child(12) { animation-delay: 1.1s; height: 30px; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1.1); opacity: 1; filter: drop-shadow(0 0 6px var(--accent-cyan)); }
}

.voice-textarea {
  width: 100%;
  background: rgba(10, 14, 24, 0.8);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.4;
  margin-bottom: 20px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast {
  background: rgba(14, 20, 33, 0.95);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 0.85rem;
  color: #fff;
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease-out;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .tentacle-grid { grid-template-columns: repeat(2, 1fr); }
  .today-grid { grid-template-columns: 1fr; }
  .main-nav { grid-template-columns: repeat(3, 1fr); }
  .postiz-channel-grid { grid-template-columns: repeat(2, 1fr); }
  .sponsors-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .app-header { flex-direction: column; gap: 14px; }
  .tentacle-grid { grid-template-columns: 1fr; }
  .main-nav { grid-template-columns: 1fr 1fr; }
  .diff-container { grid-template-columns: 1fr; }
  .postiz-channel-grid { grid-template-columns: 1fr; }
  .sponsors-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CRUSOE CLEAN COMPUTE & ECO STYLES ($5,000 SPONSOR TRACK)
   ========================================================================== */

.btn-clean-compute {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.35));
  border: 1px solid rgba(16, 185, 129, 0.6);
  color: #6ee7b7;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.btn-clean-compute:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.5));
  border-color: #10b981;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.4);
}

.eco-pulse {
  animation: ecoPulse 2s infinite ease-in-out;
  display: inline-block;
}

@keyframes ecoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px #10b981); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 10px #34d399); }
}

.crusoe-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.card-eco {
  background: rgba(10, 22, 24, 0.7);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-eco::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #00f2fe);
}

.card-eco .metric-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.card-eco .metric-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #6ee7b7;
  letter-spacing: -0.5px;
}

.card-eco .metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 4px;
}

.card-eco .metric-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
}

.card-crusoe-jobs {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
}

.esg-certificate-box {
  background: rgba(6, 78, 59, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
  animation: slideInUp 0.3s ease;
}

.esg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.esg-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #6ee7b7;
  display: flex;
  align-items: center;
  gap: 8px;
}

.esg-cert-hash {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #a7f3d0;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border-radius: 4px;
}

.esg-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.25);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.esg-stat-item {
  font-size: 0.8rem;
}

.esg-stat-label {
  color: #94a3b8;
  font-size: 0.72rem;
}

.esg-stat-val {
  color: #fff;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* ==========================================================================
   BAND INTERACTION LAYER ROOM STYLES ($5,000 SPONSOR TRACK)
   ========================================================================== */

.band-peers-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: rgba(14, 20, 33, 0.6);
  border: 1px solid var(--card-border);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.peer-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  color: #e2e8f0;
}

.peer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.peer-dot.online { background: #10b981; box-shadow: 0 0 8px #10b981; }
.peer-dot.active { background: #00f2fe; box-shadow: 0 0 8px #00f2fe; }

.quorum-badge {
  margin-left: auto;
  font-size: 0.82rem;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.4);
  padding: 6px 14px;
  border-radius: 20px;
}

.card-band-room {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.band-messages-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
}

.band-msg-card {
  background: rgba(11, 16, 26, 0.85);
  border: 1px solid rgba(45, 62, 95, 0.5);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: all 0.2s ease;
}

.band-msg-card:hover {
  border-color: rgba(0, 242, 254, 0.4);
  background: rgba(15, 23, 38, 0.95);
}

.band-msg-founder {
  border-left: 3px solid #00f2fe;
}

.band-msg-offer {
  border-left: 3px solid #ffb300;
}

.band-msg-campaign {
  border-left: 3px solid #a855f7;
}

.band-msg-neo4j {
  border-left: 3px solid #00f2a9;
}

.band-msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.band-sender-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.band-avatar {
  font-size: 20px;
}

.band-sender-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 0.92rem;
}

.band-sender-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.band-timestamp {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.band-msg-body {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #cbd5e1;
  white-space: pre-line;
}

.band-receipt-bar {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.receipt-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.receipt-openrouter {
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #c4b5fd;
}

.receipt-neo4j {
  background: rgba(0, 140, 193, 0.2);
  border: 1px solid rgba(0, 140, 193, 0.4);
  color: #7dd3fc;
}

.receipt-duplo {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.band-composer {
  background: rgba(8, 12, 20, 0.75);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.quick-prompts-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.prompt-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.prompt-chip {
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prompt-chip:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: #fff;
}

.composer-row {
  display: flex;
  gap: 12px;
}

.band-input {
  flex: 1;
  background: rgba(14, 20, 33, 0.9);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  resize: none;
}

.band-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.proof-audit-box {
  background: #080c14;
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 20px;
}

.audit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.audit-header h3 {
  color: #c4b5fd;
  font-size: 1rem;
}

.audit-pre {
  background: #04060a;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #7ee787;
  max-height: 400px;
  overflow-y: auto;
  line-height: 1.5;
}

/* ==========================================================================
   WHOLESALE DISPATCH MODAL STYLES
   ========================================================================== */

.dispatch-success-banner {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.banner-icon {
  font-size: 28px;
}

.dispatch-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.dispatch-detail-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.detail-val {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.detail-link {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.detail-sub {
  font-size: 0.72rem;
  color: #94a3b8;
}

.webhook-payload-box {
  background: #070a10;
  border: 1px solid #1e293b;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 20px;
}

.payload-header {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.payload-pre {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #5eead4;
  line-height: 1.4;
}

/* ==========================================================================
   MOBILE, TABLET & APP STORE PWA RESPONSIVE SYSTEM
   ========================================================================== */

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .app-layout {
    padding: 16px 20px 50px;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    font-size: 0.85rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .arms-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

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

  .hero-offer-card {
    grid-template-columns: 1fr;
  }

  .dispatch-details-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Devices & Phones (<= 640px) — Native App Experience */
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .app-layout {
    padding: 10px 12px 60px;
  }

  .app-header {
    padding: 14px;
    border-radius: var(--radius-md);
  }

  .brand-group {
    gap: 10px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .brand-sub {
    font-size: 0.72rem;
  }

  .merchant-badge {
    width: 100%;
    padding: 8px 12px;
  }

  .header-actions {
    flex-direction: column;
    gap: 8px;
  }

  .header-actions .btn {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  /* Sticky Horizontal Scrolling Navigation Bar */
  .nav-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 6px;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-tab {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  /* Single Column Stacking for Compact Mobile */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 14px;
  }

  .arms-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .arm-card {
    padding: 14px;
  }

  .channels-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Table horizontal scroll wrapper */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -12px;
    padding: 0 12px;
  }

  table.data-table {
    min-width: 580px;
  }

  /* Touch-friendly modals */
  .modal-overlay {
    padding: 10px;
  }

  .modal-container {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 92vh;
    padding: 18px 16px;
    border-radius: var(--radius-md);
  }

  .modal-header h2 {
    font-size: 1.15rem;
  }

  /* Band Room mobile chat layout */
  .band-room-layout {
    height: 70vh;
  }

  .band-messages-stream {
    max-height: 48vh;
  }

  .band-input-row {
    flex-direction: column;
    gap: 8px;
  }

  .band-input-row button {
    width: 100%;
  }

  /* Wholesale desk mobile form */
  .wholesale-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Touch Device Interactions (iOS Safari / Android Chrome) */
@media (hover: none) and (pointer: coarse) {
  button, .btn, .nav-tab, .action-btn {
    min-height: 44px; /* Apple HIG minimum tap target */
  }

  .card-hover:active {
    transform: scale(0.98);
  }
}


