/* REBL Futuristic Theme — shared palette + components
 * Used across: Skool Audit, Twin, Coach (member-facing) and VIP MAC v2 Coach + Audit
 * Reference: matches the CTD dashboard look established 2026-06-29
 * Drop-in via: <link rel="stylesheet" href="/rebl-futuristic.css?v=2"/>
 */

:root {
  --bg: #0a0c10;
  --bg-grid: #14171f;
  --canvas: #14171f;
  --canvas-elev: #1a1e28;
  --ink: #f1f5f9;
  --ink-soft: #94a3b8;
  --ink-mute: #64748b;
  --line: #2a2d36;
  --line-soft: #1c1f27;
  --accent: #e8720c;
  --accent-soft: rgba(232,114,12,0.12);
  --accent-deep: #ff8c2e;
  --accent-glow: 0 0 0 4px rgba(232,114,12,0.15);
  --blue: #2d6cdf;
  --blue-soft: rgba(45,108,223,0.12);
  --cyan: #5ccfd0;
  --cyan-soft: rgba(92,207,208,0.12);
  --green: #6dd58c;
  --green-soft: rgba(109,213,140,0.12);
  --amber: #ffb84d;
  --amber-soft: rgba(255,184,77,0.12);
  --red: #e57373;
  --red-soft: rgba(229,115,115,0.12);
  --red-deep: #c62828;
  --purple: #9b6dff;
  --shadow: 0 2px 12px -2px rgba(0,0,0,0.5), 0 1px 3px -1px rgba(0,0,0,0.3);
  --shadow-elev: 0 8px 32px -4px rgba(0,0,0,0.6), 0 2px 8px -2px rgba(0,0,0,0.4);
  --glow-accent: 0 0 24px -4px rgba(232,114,12,0.4);
}

/* Subtle futuristic grid background */
body.rebl-fut {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  background-image:
    linear-gradient(rgba(232,114,12,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,114,12,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: 0 0;
}

/* Focus glow on all interactive */
.rebl-fut select:focus,
.rebl-fut input:focus,
.rebl-fut textarea:focus,
.rebl-fut button:focus {
  outline: none;
  box-shadow: var(--accent-glow);
}

/* Topbar with orange accent stripe */
.rebl-topbar {
  height: 60px;
  background: linear-gradient(180deg, var(--canvas-elev) 0%, var(--canvas) 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 0 0 rgba(232,114,12,0.5), 0 8px 24px -8px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  position: sticky; top: 0; z-index: 50;
}
.rebl-topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(232,114,12,0.5) 50%, transparent 100%);
  pointer-events: none;
}

/* Brand indicator — pulsing orange dot */
.rebl-brand-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 16px 2px rgba(232,114,12,0.4);
  animation: rebl-brand-pulse 2.4s infinite;
  display: inline-block; vertical-align: middle; margin-right: 10px;
}
@keyframes rebl-brand-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 16px 2px rgba(232,114,12,0.4); }
  50% { box-shadow: 0 0 0 6px var(--accent-soft), 0 0 24px 4px rgba(232,114,12,0.6); }
}

/* Elevated card */
.rebl-card {
  background: linear-gradient(180deg, var(--canvas-elev) 0%, var(--canvas) 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  position: relative;
}

/* Primary glossy orange button */
.rebl-btn-primary {
  background: linear-gradient(180deg, #ff8c2e 0%, var(--accent) 50%, #b9560a 100%);
  color: #1a0e02;
  border: 1px solid var(--accent-deep);
  padding: 10px 20px; border-radius: 7px;
  font-size: 13px; font-weight: 700; font-family: inherit;
  cursor: pointer; position: relative; overflow: hidden;
  box-shadow:
    0 2px 8px -2px rgba(232,114,12,0.5),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  text-shadow: 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.2s;
}
.rebl-btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none; border-radius: 6px;
}
.rebl-btn-primary:hover {
  background: linear-gradient(180deg, #ffa052 0%, var(--accent-deep) 50%, #c46210 100%);
  box-shadow:
    0 4px 16px -2px rgba(232,114,12,0.7),
    0 0 32px -4px rgba(232,114,12,0.5),
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  transform: translateY(-1px);
}
.rebl-btn-primary:disabled {
  opacity: 0.4; cursor: not-allowed; transform: none;
}

/* Secondary ghost button */
.rebl-btn-ghost {
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 7px;
  font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.rebl-btn-ghost:hover { color: var(--ink); border-color: var(--ink-soft); }

/* Input field */
.rebl-input {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px;
  background: rgba(0,0,0,0.35); color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px;
  font-size: 14px; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.rebl-input::placeholder { color: var(--ink-mute); }

/* Status pill */
.rebl-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 11px; font-size: 10px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
.rebl-pill-warn { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(255,184,77,0.4); }
.rebl-pill-bad { background: var(--red-soft); color: var(--red); border: 1px solid rgba(229,115,115,0.4); }
.rebl-pill-good { background: var(--green-soft); color: var(--green); border: 1px solid rgba(109,213,140,0.4); }
.rebl-pill-info { background: var(--cyan-soft); color: var(--cyan); border: 1px solid rgba(92,207,208,0.4); }
.rebl-pill-accent { background: var(--accent-soft); color: var(--accent-deep); border: 1px solid rgba(232,114,12,0.4); }

/* Animated meter bar with shimmer */
.rebl-bar { height: 8px; background: rgba(0,0,0,0.4); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,0.5); position: relative; }
.rebl-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-deep)); box-shadow: 0 0 8px -2px rgba(232,114,12,0.5), inset 0 1px 0 rgba(255,255,255,0.25); transition: width 0.5s ease; position: relative; }
.rebl-bar-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: rebl-bar-shimmer 3s infinite;
}
@keyframes rebl-bar-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Scrollbar */
.rebl-fut ::-webkit-scrollbar { width: 8px; height: 8px; }
.rebl-fut ::-webkit-scrollbar-track { background: transparent; }
.rebl-fut ::-webkit-scrollbar-thumb { background: rgba(232,114,12,0.3); border-radius: 4px; }
.rebl-fut ::-webkit-scrollbar-thumb:hover { background: rgba(232,114,12,0.5); }
