/* FeedbackX Glassmorphism: Rose, Indigo & Cyan */
:root {
  --bg-primary: #0d0408;
  --bg-secondary: #1a0812;
  --surface-glass: rgba(26, 8, 18, 0.82);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-hover: rgba(244, 63, 94, 0.45);
  
  --accent-rose: #f43f5e;
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;

  --text-main: #fff1f2;
  --text-muted: #fda4af;
  --text-dim: #fb7185;

  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-arabic: 'Cairo', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.55);
}
[dir="rtl"] { font-family: var(--font-arabic); }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--bg-primary); color: var(--text-main); font-family: var(--font-sans); line-height: 1.6; min-height: 100vh; position: relative; overflow-x: hidden; }
.glow-sphere { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(150px); pointer-events: none; z-index: 0; }
.glow-rose { top: -140px; left: 10%; background: radial-gradient(circle, rgba(244, 63, 94, 0.22), transparent 70%); }
.glow-cyan { top: 35%; right: 8%; background: radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 70%); }
.gradient-text { background: linear-gradient(135deg, #fb7185, #f43f5e, #6366f1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.app-header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(18px); background: rgba(13, 4, 8, 0.85); border-bottom: 1px solid var(--surface-border); }
.header-container { max-width: 1280px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(99, 102, 241, 0.25)); border: 1px solid rgba(244, 63, 94, 0.4); display: flex; align-items: center; justify-content: center; color: var(--accent-rose); }
.brand-info h1 { font-size: 1.35rem; font-weight: 800; }
.brand-badge { font-size: 0.72rem; padding: 2px 8px; border-radius: var(--radius-full); background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); border: 1px solid rgba(244, 63, 94, 0.3); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.live-status { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--accent-rose); padding: 6px 12px; border-radius: var(--radius-full); background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.25); }
.pulse-dot { width: 8px; height: 8px; background: var(--accent-rose); border-radius: 50%; animation: pulse 1.8s infinite; }
.pulse-dot.active { background: var(--accent-emerald); animation: pulse-emerald 1.8s infinite; }
.pulse-dot.muted { background: var(--text-muted); opacity: 0.5; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(244, 63, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); } }
@keyframes pulse-emerald { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-md); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.2s ease; border: none; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-primary { background: linear-gradient(135deg, #f43f5e, #6366f1); color: #ffffff; font-weight: 700; box-shadow: 0 4px 16px rgba(244, 63, 94, 0.35); }
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--surface-border); }
.btn-secondary { background: rgba(255, 255, 255, 0.06); color: var(--text-main); border: 1px solid var(--surface-border); }
.btn-block { width: 100%; }
.glass { background: var(--surface-glass); backdrop-filter: blur(20px); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-glass); }
.app-main { max-width: 1280px; margin: 0 auto; padding: 2.5rem 1.5rem; display: flex; flex-direction: column; gap: 3rem; position: relative; z-index: 1; }
.hero-section { text-align: center; max-width: 860px; margin: 0 auto; }
.hero-section h2 { font-size: 2.3rem; font-weight: 800; margin-bottom: 12px; }
.hero-section p { color: #fecdd3; font-size: 1.05rem; }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.metric-card { padding: 1.5rem; display: flex; flex-direction: column; gap: 6px; }
.metric-label { font-size: 0.82rem; color: #fecdd3; text-transform: uppercase; }
.metric-value { font-size: 1.8rem; font-weight: 800; }
.metric-sub { font-size: 0.8rem; color: var(--text-dim); }
.studio-section { display: flex; flex-direction: column; gap: 1.25rem; }
.studio-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: 1.5rem; }
@media (max-width: 960px) { .studio-layout { grid-template-columns: 1fr; } }
.panel { padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; }
.preset-box { display: flex; flex-direction: column; gap: 8px; }
.preset-label { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; }
.preset-buttons { display: flex; flex-direction: column; gap: 6px; }
.preset-btn { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--surface-border); color: #ffe4e6; border-radius: var(--radius-sm); padding: 8px 12px; font-size: 0.82rem; text-align: left; cursor: pointer; }
.preset-btn:hover { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.84rem; font-weight: 600; color: #fecdd3; }
.input-control { background: rgba(13, 4, 8, 0.85); border: 1px solid var(--surface-border); border-radius: var(--radius-md); color: var(--text-main); padding: 10px 14px; font-size: 0.88rem; outline: none; }
.input-control:focus { border-color: var(--accent-rose); }
.output-panel { display: flex; flex-direction: column; gap: 1.25rem; }
.panel-header { display: flex; justify-content: space-between; align-items: center; }
.panel-title { font-weight: 700; font-size: 1.05rem; }
.badge { padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.74rem; font-weight: 700; }
.badge-success { background: rgba(16, 185, 129, 0.2); color: var(--accent-emerald); }
.pipeline-summary { display: flex; gap: 8px; flex-wrap: wrap; }
.pipe-tag { background: rgba(244, 63, 94, 0.15); border: 1px solid rgba(244, 63, 94, 0.35); border-radius: var(--radius-sm); padding: 6px 12px; font-size: 0.78rem; font-weight: 600; color: var(--accent-rose); }
.roadmap-container { display: flex; flex-direction: column; gap: 10px; }
.roadmap-card { background: rgba(0, 0, 0, 0.35); border: 1px solid var(--surface-border); border-radius: var(--radius-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.roadmap-header { display: flex; justify-content: space-between; align-items: center; }
.roadmap-title { font-weight: 700; font-size: 0.95rem; color: #ffe4e6; }
.roadmap-rice { font-size: 0.76rem; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full); background: rgba(99, 102, 241, 0.2); color: #818cf8; font-family: var(--font-mono); }
.roadmap-body { font-size: 0.82rem; color: #fda4af; }
.roadmap-meta { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--text-dim); font-family: var(--font-mono); }
.app-footer { margin-top: 3rem; padding: 2rem 1.5rem; text-align: center; border-top: 1px solid var(--surface-border); color: var(--text-dim); font-size: 0.88rem; }
