/* ============================================
   FormsFalous344 — style.css
   by Falous-dev
   ============================================ */

/* ─── Variables ─────────────────────────────── */
:root {
  --bg-primary:    #0a0a0f;
  --bg-secondary:  #111117;
  --bg-card:       #161622;
  --bg-card-hover: #1c1c2e;
  --bg-input:      #1a1a28;

  --border:        rgba(255,255,255,.08);
  --border-focus:  rgba(139,92,246,.6);

  --text-primary:  #f1f0ff;
  --text-secondary:#b8b7cc;
  --text-muted:    #6b6a85;

  --accent:        #7c3aed;
  --accent-light:  #a855f7;
  --accent-glow:   rgba(124,58,237,.35);

  --success:       #10b981;
  --danger:        #ef4444;
  --warning:       #f59e0b;
  --info:          #3b82f6;

  --shadow:        0 4px 24px rgba(0,0,0,.4);
  --shadow-lg:     0 16px 60px rgba(0,0,0,.6);

  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  --transition:    .2s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex; flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ─── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ─── Container ─────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── Animations ────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ──────────────────────────────────────────────
   NAVBAR
   ────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 800; font-size: 1.15rem;
  letter-spacing: -.02em;
}
.brand-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
}
.brand-name { color: var(--text-primary); }
.nav-links { display: flex; align-items: center; gap: .5rem; }
.nav-link {
  padding: .45rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  display: flex; align-items: center; gap: .4rem;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-user {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .3rem .6rem .3rem .4rem;
}
.user-avatar {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem;
}
.user-name { font-size: .875rem; font-weight: 500; }
.nav-logout { padding: .3rem .5rem; color: var(--text-muted); }
.nav-logout:hover { color: var(--danger); background: transparent; }

/* ──────────────────────────────────────────────
   FLASH MESSAGES
   ────────────────────────────────────────────── */
.flash-container {
  position: fixed; top: 70px; right: 1.5rem; z-index: 200;
  display: flex; flex-direction: column; gap: .5rem;
  max-width: 400px;
}
.flash {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem; font-weight: 500;
  border: 1px solid;
  animation: fadeIn .3s ease;
  box-shadow: var(--shadow);
}
.flash-success  { background: rgba(16,185,129,.15); border-color: rgba(16,185,129,.3); color: #6ee7b7; }
.flash-danger   { background: rgba(239,68,68,.15);  border-color: rgba(239,68,68,.3);  color: #fca5a5; }
.flash-warning  { background: rgba(245,158,11,.15); border-color: rgba(245,158,11,.3); color: #fcd34d; }
.flash-info     { background: rgba(59,130,246,.15); border-color: rgba(59,130,246,.3); color: #93c5fd; }
.flash-close {
  margin-left: auto; background: none; border: none;
  color: inherit; cursor: pointer; opacity: .6;
  font-size: .85rem; padding: .2rem;
}
.flash-close:hover { opacity: 1; }

/* ──────────────────────────────────────────────
   MAIN CONTENT
   ────────────────────────────────────────────── */
.main-content { flex: 1; }

/* ──────────────────────────────────────────────
   BUTTONS
   ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.35rem;
  border-radius: var(--radius);
  font-size: .9rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--accent-glow);
  filter: brightness(1.1);
}
.btn-ghost {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: var(--border-focus); }
.btn-danger  { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-sm      { padding: .45rem 1rem; font-size: .8rem; }
.btn-xs      { padding: .3rem .6rem;  font-size: .78rem; }
.btn-lg      { padding: .85rem 1.75rem; font-size: 1rem; }
.btn-full    { width: 100%; justify-content: center; }
.btn-danger-hover:hover { color: var(--danger) !important; border-color: rgba(239,68,68,.3) !important; background: rgba(239,68,68,.08) !important; }

/* ──────────────────────────────────────────────
   FORMS
   ────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .875rem; font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: .5rem;
  display: flex; align-items: center; gap: .4rem;
}
.required { color: var(--accent-light); }
.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  color: var(--text-primary);
  font-size: .9rem; font-family: inherit;
  transition: var(--transition);
  outline: none;
}
.form-input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { cursor: pointer; appearance: none; }

.input-group { position: relative; display: flex; }
.input-group .form-input { padding-right: 3rem; }
.input-toggle {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: .9rem;
}
.input-toggle:hover { color: var(--text-primary); }

/* Toggle switch */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  gap: 1rem;
}
.toggle-label { font-weight: 500; font-size: .9rem; display: block; }
.toggle-desc  { color: var(--text-muted); font-size: .8rem; margin-top: .2rem; }
.toggle-switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  width: 44px; height: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: var(--transition);
  display: block;
  position: relative;
}
.toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); border-color: var(--accent); }
.toggle-switch input:checked + .toggle-slider::after { transform: translateX(20px); background: #fff; }

/* ──────────────────────────────────────────────
   HERO
   ────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 65px);
  display: flex; align-items: center;
  padding: 5rem 1.5rem;
  max-width: 1200px; margin: 0 auto;
  gap: 4rem;
  position: relative;
}
.hero-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(124,58,237,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 60%, rgba(168,85,247,.08) 0%, transparent 70%);
}
.hero-content { flex: 1; animation: fadeUp .6s ease; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.3);
  padding: .35rem .85rem; border-radius: 50px;
  font-size: .8rem; font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent-light), #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { flex: 1; display: flex; justify-content: center; align-items: center; animation: fadeUp .8s ease; }

/* Form preview card */
.form-card-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 320px; overflow: hidden;
  transform: rotate(-2deg);
  transition: var(--transition);
}
.form-card-preview:hover { transform: rotate(0deg) scale(1.02); }
.fcp-header {
  background: var(--bg-secondary);
  padding: .75rem 1rem;
  display: flex; align-items: center; gap: .5rem;
  border-bottom: 1px solid var(--border);
}
.fcp-dot { width: 10px; height: 10px; border-radius: 50%; }
.fcp-dot.red    { background: #ef4444; }
.fcp-dot.yellow { background: #f59e0b; }
.fcp-dot.green  { background: #10b981; }
.fcp-title { flex: 1; text-align: center; font-size: .75rem; color: var(--text-muted); }
.fcp-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .9rem; }
.fcp-field { display: flex; flex-direction: column; gap: .35rem; }
.fcp-label { font-size: .7rem; color: var(--text-muted); font-weight: 500; }
.fcp-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .5rem .75rem;
  font-size: .8rem; color: var(--text-secondary);
}
.fcp-textarea { min-height: 50px; }
.fcp-submit {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  border-radius: var(--radius-sm);
  padding: .6rem 1rem;
  font-size: .8rem; font-weight: 600;
  text-align: center;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  margin-top: .25rem;
}

/* ──────────────────────────────────────────────
   FEATURES SECTION
   ────────────────────────────────────────────── */
.features-section {
  padding: 5rem 1.5rem;
  background: linear-gradient(to bottom, transparent, rgba(124,58,237,.04), transparent);
}
.section-title {
  font-size: 2rem; font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -.02em;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: rgba(124,58,237,.35);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(124,58,237,.12);
}
.feature-icon {
  width: 48px; height: 48px;
  background: rgba(124,58,237,.15);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--accent-light);
  margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p  { font-size: .875rem; color: var(--text-secondary); line-height: 1.6; }

/* ──────────────────────────────────────────────
   AUTH
   ────────────────────────────────────────────── */
.auth-wrapper {
  min-height: calc(100vh - 130px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.5rem;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.5rem;
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg);
  animation: fadeUp .5s ease;
}
.auth-logo {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 24px var(--accent-glow);
}
.auth-title {
  font-size: 1.75rem; font-weight: 800;
  text-align: center; margin-bottom: .5rem;
  letter-spacing: -.02em;
}
.auth-sub {
  text-align: center; color: var(--text-muted);
  font-size: .9rem; margin-bottom: 2rem;
}
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-footer {
  text-align: center; color: var(--text-muted);
  font-size: .82rem; margin-top: 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
}

/* ──────────────────────────────────────────────
   SHARED BY BANNER
   ────────────────────────────────────────────── */
.shared-by-banner {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  position: fixed;
  top: 80px;
  left: 1.5rem;
  z-index: 90;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .45rem .9rem .45rem .5rem;
  box-shadow: var(--shadow);
  font-size: .82rem;
  animation: fadeIn .4s ease;
  max-width: 280px;
  backdrop-filter: blur(8px);
}
.shared-by-banner:hover {
  border-color: rgba(124,58,237,.35);
  box-shadow: 0 4px 20px rgba(124,58,237,.12);
  transition: var(--transition);
}
.shared-avatar {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .72rem; color: #fff;
  flex-shrink: 0;
}
.shared-avatar-img {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}
.shared-text {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shared-text strong { color: var(--text-primary); }
.shared-icon { color: var(--accent-light); font-size: .8rem; flex-shrink: 0; }

@media (max-width: 600px) {
  .shared-by-banner { top: auto; bottom: 1rem; left: 50%; transform: translateX(-50%); }
}

/* ──────────────────────────────────────────────
   PUBLIC FORM
   ────────────────────────────────────────────── */
.public-form-wrapper {
  min-height: calc(100vh - 130px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 3rem 1.5rem;
}
.public-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 620px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeUp .5s ease;
}
.public-form-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(168,85,247,.04));
}
.public-form-title { font-size: 1.6rem; font-weight: 800; margin-bottom: .5rem; }
.public-form-desc  { color: var(--text-secondary); font-size: .95rem; line-height: 1.6; margin-bottom: .75rem; }
.public-form-meta  { display: flex; align-items: center; gap: 1rem; font-size: .8rem; color: var(--text-muted); }
.public-form-body  { padding: 2rem; }
.public-form-footer {
  text-align: center; padding: 1rem;
  border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--text-muted);
}
.public-form-footer a { color: var(--accent-light); }
.public-form-footer a:hover { text-decoration: underline; }

.pw-gate { padding: 3rem 2rem; text-align: center; }
.pw-gate-icon {
  width: 64px; height: 64px;
  background: rgba(124,58,237,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--accent-light);
  margin: 0 auto 1.5rem;
}
.pw-gate h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: .5rem; }
.pw-gate p  { color: var(--text-muted); margin-bottom: 1.5rem; }
.pw-form    { max-width: 320px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }

/* Radio / checkbox */
.radio-group { display: flex; flex-direction: column; gap: .5rem; }
.radio-label, .checkbox-label {
  display: flex; align-items: center; gap: .65rem;
  cursor: pointer; font-size: .9rem;
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
  transition: var(--transition);
}
.radio-label:hover, .checkbox-label:hover {
  border-color: var(--border-focus);
  background: rgba(124,58,237,.06);
}
.radio-label input, .checkbox-label input { accent-color: var(--accent); }

/* ──────────────────────────────────────────────
   FORM SUBMITTED
   ────────────────────────────────────────────── */
.submitted-wrapper {
  min-height: calc(100vh - 130px);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.submitted-card {
  text-align: center; max-width: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  box-shadow: var(--shadow-lg);
  animation: fadeUp .5s ease;
}
.submitted-icon {
  font-size: 4rem; color: var(--success);
  margin-bottom: 1.5rem;
  animation: fadeUp .4s ease;
  filter: drop-shadow(0 0 20px rgba(16,185,129,.4));
}
.submitted-card h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.submitted-card p  { color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.6; }
.submitted-card .btn + .btn { margin-left: .75rem; }

/* ──────────────────────────────────────────────
   BUILDER
   ────────────────────────────────────────────── */
.builder-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.builder-section-header {
  display: flex; align-items: center; gap: .65rem;
  font-weight: 700; font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.builder-section-header i { color: var(--accent-light); }
.builder-section-header h2 {
  font-size: 1rem; font-weight: 700;
  color: var(--text-primary);
  margin: 0; display: flex; align-items: center; gap: .5rem; flex: 1;
}
.header-link { font-size: .8rem; color: var(--accent-light); font-weight: 400; }
.header-link:hover { text-decoration: underline; }

.builder-actions {
  display: flex; justify-content: flex-end; gap: 1rem; margin-top: 1rem;
}
.field-buttons {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* ─── Champ builder ──── */
.builder-field {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: .75rem;
  display: flex; flex-direction: column; gap: .85rem;
  position: relative;
  transition: var(--transition);
}
.builder-field:hover { border-color: rgba(124,58,237,.3); }
.builder-field-header {
  display: flex; align-items: center; gap: .75rem;
}
.field-drag { cursor: grab; color: var(--text-muted); font-size: .9rem; }
.field-type-tag {
  font-size: .7rem; font-weight: 600;
  background: rgba(124,58,237,.15);
  color: var(--accent-light);
  padding: .2rem .6rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.builder-field-header .form-input { flex: 1; padding: .5rem .75rem; font-size: .875rem; }
.builder-field-actions {
  display: flex; align-items: center; gap: .5rem; margin-left: auto;
}
.field-required-toggle {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: var(--text-muted); cursor: pointer;
}
.field-options-group { display: flex; flex-direction: column; gap: .5rem; }
.option-row { display: flex; gap: .5rem; }
.option-row .form-input { flex: 1; padding: .45rem .75rem; font-size: .8rem; }

/* ──────────────────────────────────────────────
   MODAL
   ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s ease;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 420px; width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: fadeUp .3s ease;
}
.modal-icon {
  width: 60px; height: 60px;
  background: rgba(124,58,237,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--accent-light);
  margin: 0 auto 1.25rem;
}
.modal-icon.danger { background: rgba(239,68,68,.15); color: var(--danger); }
.modal h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.modal p  { color: var(--text-secondary); font-size: .9rem; line-height: 1.6; margin-bottom: 1.5rem; }
.modal-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; justify-content: center; }

/* ──────────────────────────────────────────────
   ALERTS
   ────────────────────────────────────────────── */
.alert-box {
  padding: .9rem 1rem;
  border-radius: var(--radius);
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .9rem; margin-bottom: 1rem;
  border: 1px solid;
}
.alert-info    { background: rgba(59,130,246,.1);  border-color: rgba(59,130,246,.25); color: #93c5fd; }
.alert-warning { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.25); color: #fcd34d; }
.alert-danger  { background: rgba(239,68,68,.1);  border-color: rgba(239,68,68,.25);  color: #fca5a5; }

/* ──────────────────────────────────────────────
   BADGES
   ────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .55rem;
  border-radius: 20px;
  font-size: .72rem; font-weight: 600;
}
.badge-lock     { background: rgba(124,58,237,.15); color: #c4b5fd; }
.badge-closed   { background: rgba(239,68,68,.15);  color: #fca5a5; }
.badge-required { background: rgba(245,158,11,.15); color: #fcd34d; }
.badge-you      { background: rgba(16,185,129,.15); color: #6ee7b7; }

/* ──────────────────────────────────────────────
   DETAIL STATS
   ────────────────────────────────────────────── */
.detail-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  font-size: .85rem; color: var(--text-muted);
}
.stat-box i    { font-size: 1.2rem; color: var(--accent-light); }
.stat-val { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); }

/* Share box */
.share-box { display: flex; gap: .75rem; align-items: center; }
.share-input { font-family: monospace; font-size: .85rem; cursor: text; }

/* Fields preview */
.fields-preview { display: flex; flex-direction: column; gap: .5rem; }
.field-preview-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.field-type-badge {
  font-size: .7rem; font-weight: 600;
  background: rgba(124,58,237,.15);
  color: var(--accent-light);
  padding: .2rem .5rem; border-radius: 4px;
  text-transform: uppercase; flex-shrink: 0;
}
.field-label-text { flex: 1; font-size: .9rem; }

/* ──────────────────────────────────────────────
   ERROR PAGES
   ────────────────────────────────────────────── */
.error-wrapper {
  min-height: calc(100vh - 130px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  animation: fadeUp .5s ease;
}
.error-code {
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: .5rem;
}
.error-wrapper h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; }
.error-wrapper p  { color: var(--text-secondary); margin-bottom: 2rem; }

/* ──────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
}
.brand-falous { color: var(--accent-light); font-weight: 600; }
.text-muted   { color: var(--text-muted) !important; }

/* ──────────────────────────────────────────────
   EMPTY STATE
   ────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 5rem 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.empty-icon {
  font-size: 3.5rem; color: var(--text-muted);
  margin-bottom: .5rem;
}
.empty-state h2 { font-size: 1.4rem; font-weight: 700; }
.empty-state p  { color: var(--text-secondary); max-width: 400px; }

/* ──────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { flex-direction: column; padding: 3rem 1.5rem; min-height: auto; }
  .hero-visual { display: none; }
  .nav-links .btn span { display: none; }
  .share-box { flex-direction: column; align-items: stretch; }
  .detail-stats { grid-template-columns: repeat(2, 1fr); }
}
