/* G-Eye Platform — Design System v4 — Clean Light Default */

:root {
  --purple: #7c3aed;
  --purple-2: #6d28d9;
  --purple-light: #a78bfa;
  --purple-dim: rgba(124,58,237,0.08);
  --purple-glow: rgba(124,58,237,0.20);
  --purple-border: rgba(124,58,237,0.20);
  --gold: #f59e0b;
  --gold-2: #d97706;
  --gold-light: #fcd34d;
  --gold-dim: rgba(245,158,11,0.08);
  --gold-glow: rgba(245,158,11,0.20);
  --gold-border: rgba(245,158,11,0.20);
  --cyan: #06b6d4;
  --cyan-2: #0891b2;
  --cyan-light: #67e8f9;
  --cyan-dim: rgba(6,182,212,0.08);
  --cyan-glow: rgba(6,182,212,0.20);
  --cyan-border: rgba(6,182,212,0.20);
  --mint: #10b981;
  --mint-dim: rgba(16,185,129,0.08);
  --mint-glow: rgba(16,185,129,0.20);
  --rose: #f43f5e;
  --rose-dim: rgba(244,63,94,0.08);
  --rose-glow: rgba(244,63,94,0.20);
  --indigo: #4f46e5;
  --indigo-dim: rgba(79,70,229,0.08);
  --indigo-glow: rgba(79,70,229,0.20);
  --gp-red: #e8453c;
  --gp-red-dim: rgba(232,69,60,0.08);
  --gp-red-glow: rgba(232,69,60,0.20);
  --lime: #84cc16;
  --lime-dim: rgba(132,204,22,0.08);
  --lime-glow: rgba(132,204,22,0.20);
  --coral: #e8453c;
  --coral-dim: rgba(232,69,60,0.08);
  --violet: #7c3aed;
  --violet-dim: rgba(124,58,237,0.08);
  --sky: #06b6d4;
  --sky-dim: rgba(6,182,212,0.08);
  --amber: #f59e0b;
  --amber-dim: rgba(245,158,11,0.08);
  --mag: #7c3aed;
  --mag-dim: rgba(124,58,237,0.08);
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: 'Inter', sans-serif; background: #f8f9fb; color: #1a1a2e; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }

/* Ambient + Grid (subtle) */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.grid-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; background-image: linear-gradient(rgba(124,58,237,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(124,58,237,0.025) 1px, transparent 1px); background-size: 60px 60px; }

/* ── HEADER ── */
.app-header {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 64px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.app-header::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--gold));
}
.logo { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.logo-name { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 20px; color: var(--purple); }
.logo-name em { font-style: italic; }
.header-nav { display: flex; align-items: center; gap: 2px; }
.nav-link { padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 400; color: #5a6478; cursor: pointer; transition: all .15s; white-space: nowrap; }
.nav-link:hover { color: #1a1a2e; background: rgba(0,0,0,0.03); }
.nav-link.active { color: var(--purple); font-weight: 600; background: rgba(124,58,237,0.06); border: 1px solid rgba(124,58,237,0.15); }
.header-right { display: flex; align-items: center; gap: 10px; }
.live-badge { display: flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(16,185,129,0.25); background: rgba(16,185,129,0.05); font-size: 11.5px; font-weight: 500; color: #059669; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: #059669; }

/* ── STATUS BAR ── */
.status-bar { position: relative; z-index: 10; height: 40px; border-top: 1px solid rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; background: #ffffff; }
.status-bar span { font-size: 10.5px; color: #9ca3af; }
.status-group { display: flex; align-items: center; gap: 14px; }
.status-indicator { display: flex; align-items: center; gap: 5px; color: #6b7280 !important; }
.status-indicator::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #059669; }

/* ── CARDS ── */
.t-card {
  position: relative; background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07); border-radius: 14px;
  padding: 24px 24px 20px 28px; cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.t-card::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 4px; background: var(--c, var(--purple)); }
.t-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.t-card::after { display: none; }
.t-card.coral   { --c: var(--gp-red); --c-dim: var(--gp-red-dim); }
.t-card.violet  { --c: var(--purple); --c-dim: var(--purple-dim); }
.t-card.mint    { --c: var(--mint); --c-dim: var(--mint-dim); }
.t-card.sky     { --c: var(--cyan); --c-dim: var(--cyan-dim); }
.t-card.amber   { --c: var(--gold); --c-dim: var(--gold-dim); }
.t-card.rose    { --c: var(--rose); --c-dim: var(--rose-dim); }
.t-card.lime    { --c: var(--lime); --c-dim: var(--lime-dim); }
.t-card.indigo  { --c: var(--indigo); --c-dim: var(--indigo-dim); }
.t-card.cyan    { --c: var(--cyan); --c-dim: var(--cyan-dim); }
.t-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--c-dim, rgba(124,58,237,0.06)); display: flex; align-items: center; justify-content: center; color: var(--c, var(--purple)); flex-shrink: 0; }
.t-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.t-title-group { flex: 1; min-width: 0; }
.t-label { font-size: 15px; font-weight: 700; color: #1a1a2e; line-height: 1.3; }
.t-full { font-size: 11.5px; color: #9ca3af; margin-top: 2px; }
.t-desc { font-size: 13px; color: #6b7280; line-height: 1.55; }
.t-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.t-tag { padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 500; background: var(--c-dim, rgba(124,58,237,0.05)); color: var(--c, var(--purple)); }

/* ── BUTTONS ── */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border-radius: 999px; background: linear-gradient(135deg, var(--purple), var(--indigo)); color: #fff; font-size: 13.5px; font-weight: 600; font-family: 'Inter', sans-serif; cursor: pointer; border: none; box-shadow: 0 4px 12px var(--purple-glow); transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--purple-glow); }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border-radius: 999px; background: #ffffff; border: 1px solid rgba(0,0,0,0.12); color: #1a1a2e; font-size: 13.5px; font-weight: 500; font-family: 'Inter', sans-serif; cursor: pointer; transition: transform .15s, border-color .15s; white-space: nowrap; }
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--purple); }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { width: 100%; max-width: 580px; background: #ffffff; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; overflow: hidden; transform: translateY(16px); transition: transform .2s; box-shadow: 0 24px 60px rgba(0,0,0,0.12); }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-strip { height: 3px; background: linear-gradient(90deg, var(--purple), var(--cyan)); }
.modal-head { padding: 20px 24px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.modal-head-left { display: flex; align-items: center; gap: 14px; }
.modal-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(124,58,237,0.06); color: var(--purple); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modal-title { font-size: 16px; font-weight: 700; color: #1a1a2e; }
.modal-subtitle { font-size: 12px; color: #6b7280; margin-top: 2px; }
.modal-close { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.08); background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #6b7280; }
.modal-close:hover { background: rgba(0,0,0,0.04); color: #1a1a2e; }
.modal-body { padding: 16px 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--purple); margin-bottom: 6px; }
.modal-prompt-box { background: #f8f9fb; border: 1px solid rgba(0,0,0,0.06); border-radius: 10px; padding: 14px 16px; font-size: 13px; line-height: 1.7; color: #4b5563; white-space: pre-wrap; max-height: 260px; overflow-y: auto; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-tag { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 500; background: rgba(6,182,212,0.06); color: var(--cyan); }
.modal-foot { padding: 12px 24px 20px; display: flex; align-items: center; justify-content: center; }
.copy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; background: linear-gradient(135deg, var(--purple), var(--indigo)); color: #fff; box-shadow: 0 4px 12px var(--purple-glow); transition: filter .15s; }
.copy-btn:hover { filter: brightness(1.1); }

/* ── FEEDBACK ── */
.feedback-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: transparent; border: 1px solid rgba(124,58,237,0.20); color: var(--purple); font-size: 12px; font-weight: 600; font-family: 'Inter', sans-serif; cursor: pointer; white-space: nowrap; transition: background .15s; }
.feedback-btn:hover { background: rgba(124,58,237,0.05); }
.fb-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.fb-overlay.open { opacity: 1; pointer-events: all; }
.fb-modal { width: 100%; max-width: 480px; background: #ffffff; border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; overflow: hidden; transform: translateY(16px); transition: transform .2s; box-shadow: 0 24px 60px rgba(0,0,0,0.12); }
.fb-overlay.open .fb-modal { transform: translateY(0); }
.fb-modal-strip { height: 3px; background: linear-gradient(90deg, var(--purple), var(--cyan)); }
.fb-modal-head { padding: 20px 24px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(0,0,0,0.06); }
.fb-modal-title { font-size: 16px; font-weight: 700; color: #1a1a2e; }
.fb-modal-close { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.08); background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #6b7280; }
.fb-modal-close:hover { background: rgba(0,0,0,0.04); }
.fb-modal-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.fb-field { display: flex; flex-direction: column; gap: 6px; }
.fb-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--purple); }
.fb-input, .fb-select, .fb-textarea { background: #f8f9fb; border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; padding: 10px 14px; font-size: 13px; font-family: 'Inter', sans-serif; color: #1a1a2e; outline: none; width: 100%; transition: border-color .15s; }
.fb-input::placeholder, .fb-textarea::placeholder { color: #9ca3af; }
.fb-input:focus, .fb-select:focus, .fb-textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,0.06); }
.fb-select { appearance: none; cursor: pointer; }
.fb-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.fb-status { font-size: 12.5px; min-height: 18px; text-align: center; }
.fb-success { color: var(--mint); }
.fb-error { color: var(--gp-red); }
.fb-modal-foot { padding: 12px 24px 22px; }
.fb-submit-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; background: linear-gradient(135deg, var(--purple), var(--indigo)); color: #fff; font-family: 'Inter', sans-serif; box-shadow: 0 4px 12px var(--purple-glow); transition: filter .15s; }
.fb-submit-btn:hover { filter: brightness(1.1); }
.fb-submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── THEME TOGGLE ── */
.theme-toggle { display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: transparent; border: 1px solid rgba(0,0,0,0.10); color: #5a6478; font-size: 11.5px; font-weight: 500; font-family: 'Inter', sans-serif; cursor: pointer; white-space: nowrap; transition: background .15s; }
.theme-toggle:hover { background: rgba(124,58,237,0.05); color: var(--purple); }
.theme-toggle svg { width: 14px; height: 14px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 4px; }

/* ── DARK THEME ── */
body.theme-dark { background: #0a0e1a; color: #f0f4ff; }
body.theme-dark .app-header { background: rgba(10,14,26,0.95); border-bottom-color: rgba(255,255,255,0.06); }
body.theme-dark .status-bar { background: rgba(10,14,26,0.95); border-top-color: rgba(255,255,255,0.05); }
body.theme-dark .status-bar span { color: #3d4f6e; }
body.theme-dark .nav-link { color: #8b9ab8; }
body.theme-dark .nav-link:hover { color: #f0f4ff; background: rgba(255,255,255,0.05); }
body.theme-dark .nav-link.active { color: #a78bfa; background: rgba(124,58,237,0.10); border-color: rgba(124,58,237,0.20); }
body.theme-dark .t-card { background: #1a2236; border-color: rgba(255,255,255,0.06); }
body.theme-dark .t-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
body.theme-dark .t-label { color: #f0f4ff; }
body.theme-dark .t-full { color: #8b9ab8; }
body.theme-dark .t-desc { color: #8b9ab8; }
body.theme-dark .live-badge { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.25); color: #34d399; }
body.theme-dark .pulse-dot { background: #34d399; }
body.theme-dark .grid-bg { background-image: linear-gradient(rgba(99,179,237,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(99,179,237,0.025) 1px, transparent 1px); }
body.theme-dark .modal { background: #1a2236; border-color: rgba(255,255,255,0.08); }
body.theme-dark .modal-title { color: #f0f4ff; }
body.theme-dark .modal-prompt-box { background: #111827; border-color: rgba(255,255,255,0.06); color: #8b9ab8; }
body.theme-dark .fb-modal { background: #1a2236; }
body.theme-dark .fb-input, body.theme-dark .fb-select, body.theme-dark .fb-textarea { background: #111827; border-color: rgba(255,255,255,0.08); color: #f0f4ff; }
