/* ═══════════════════════════════════════════════════════
   EncuestasPro — Design System
   Palette: #FFCD00 | #2B033F | #23022D | #FFFFFF
   ═══════════════════════════════════════════════════════ */

:root {
  --gold: #FFCD00;
  --gold-light: #FFD740;
  --gold-dark: #E6B800;
  --purple: #2B033F;
  --purple-deep: #23022D;
  --purple-light: #3D0558;
  --white: #FFFFFF;
  --gray-50: #F8F8F8;
  --gray-100: #F0F0F0;
  --gray-200: #E0E0E0;
  --gray-400: #9E9E9E;
  --gray-600: #616161;
  --gray-800: #212121;
  --success: #00C853;
  --danger: #FF1744;
  --info: #00B0FF;
  --shadow-sm: 0 2px 8px rgba(43,3,63,0.10);
  --shadow-md: 0 8px 24px rgba(43,3,63,0.14);
  --shadow-lg: 0 20px 60px rgba(43,3,63,0.18);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--purple);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
p { color: var(--gray-600); line-height: 1.8; }
a { color: var(--purple); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-dark); }

/* ─── Navbar ─── */
.navbar-main {
  background: var(--purple);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: var(--shadow-md);
}
.navbar-main .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--white) !important;
  letter-spacing: -0.03em;
}
.navbar-main .brand-accent { color: var(--gold); }
.navbar-main .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.navbar-main .nav-link:hover, .navbar-main .nav-link.active {
  color: var(--gold) !important;
  background: rgba(255,205,0,0.08);
}
.navbar-main .btn-nav-cta {
  background: var(--gold);
  color: var(--purple) !important;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 0.45rem 1.2rem !important;
}
.navbar-main .btn-nav-cta:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,205,0,0.4);
}
.navbar-toggler { border-color: rgba(255,205,0,0.5); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 205, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ─── Hero Section ─── */
.hero {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 60%, var(--purple-light) 100%);
  padding: 6rem 0 8rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255,205,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,205,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,205,0,0.15);
  border: 1px solid rgba(255,205,0,0.3);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.15rem; margin-bottom: 2.5rem; }
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 900; color: var(--gold); }
.hero-stat .lbl { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── Buttons ─── */
.btn-gold {
  background: var(--gold);
  color: var(--purple);
  font-weight: 700;
  border: 2px solid var(--gold);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,205,0,0.4);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--purple);
  transform: translateY(-2px);
}
.btn-purple {
  background: var(--purple);
  color: var(--white);
  font-weight: 700;
  border: 2px solid var(--purple);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-purple:hover {
  background: var(--purple-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(43,3,63,0.35);
}
.btn-sm-gold { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-danger-custom {
  background: transparent;
  color: var(--danger);
  border: 1.5px solid var(--danger);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: var(--transition);
}
.btn-danger-custom:hover { background: var(--danger); color: white; }

/* ─── Cards ─── */
.card-ep {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  overflow: hidden;
}
.card-ep:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card-ep .card-header-ep {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  padding: 1.25rem 1.5rem;
  color: var(--white);
}
.card-ep .card-body-ep { padding: 1.5rem; }

/* ─── Survey Cards ─── */
.survey-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  background: var(--white);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.survey-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.survey-card .cover {
  height: 180px;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-light));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.survey-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.survey-card .cover-icon { font-size: 3rem; color: rgba(255,205,0,0.8); }
.survey-card .badge-type {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gold);
  color: var(--purple);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
}
.survey-card .body { padding: 1.25rem; flex: 1; }
.survey-card h3 { font-size: 1.05rem; color: var(--purple); margin-bottom: 0.5rem; }
.survey-card p { font-size: 0.875rem; color: var(--gray-400); margin-bottom: 0; }
.survey-card .footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── Dashboard ─── */
.sidebar {
  background: var(--purple-deep);
  min-height: 100vh;
  width: 260px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding-top: 1rem;
  transition: var(--transition);
  overflow-y: auto;
}
.sidebar-brand {
  padding: 1rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,205,0,0.15);
  margin-bottom: 1rem;
}
.sidebar-brand h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin: 0;
}
.sidebar-brand span { color: var(--gold); }
.sidebar .nav-item .nav-link {
  color: rgba(255,255,255,0.7);
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar .nav-item .nav-link:hover,
.sidebar .nav-item .nav-link.active {
  color: var(--gold);
  background: rgba(255,205,0,0.08);
  border-left-color: var(--gold);
}
.sidebar .nav-item .nav-link i { font-size: 1.1rem; width: 20px; }
.sidebar-section {
  padding: 0.75rem 1.5rem 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
}
.main-content {
  margin-left: 260px;
  min-height: 100vh;
  background: var(--gray-50);
}
.topbar {
  background: var(--white);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.page-content { padding: 2rem; }
.page-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 0.25rem;
}
.page-subtitle { color: var(--gray-400); font-size: 0.9rem; margin-bottom: 2rem; }

/* ─── Stats Cards ─── */
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-card .icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-card .icon-box.gold { background: rgba(255,205,0,0.15); color: var(--gold-dark); }
.stat-card .icon-box.purple { background: rgba(43,3,63,0.1); color: var(--purple); }
.stat-card .icon-box.green { background: rgba(0,200,83,0.1); color: var(--success); }
.stat-card .icon-box.blue { background: rgba(0,176,255,0.1); color: var(--info); }
.stat-card .value { font-size: 2rem; font-weight: 900; color: var(--purple); line-height: 1; }
.stat-card .label { font-size: 0.8rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── Builder ─── */
.builder-layout { display: grid; grid-template-columns: 320px 1fr; gap: 1.5rem; min-height: calc(100vh - 200px); }
.builder-sidebar { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); overflow: hidden; }
.builder-sidebar .tabs { display: flex; border-bottom: 2px solid var(--gray-100); }
.builder-sidebar .tab-btn {
  flex: 1;
  padding: 0.85rem;
  border: none;
  background: none;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-400);
  cursor: pointer;
  transition: var(--transition);
}
.builder-sidebar .tab-btn.active { color: var(--purple); border-bottom: 2px solid var(--gold); margin-bottom: -2px; }
.builder-canvas { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); }

/* ─── Question Card in Builder ─── */
.q-card {
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: var(--transition);
  cursor: grab;
}
.q-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.q-card.editing { border-color: var(--purple); }
.q-card .q-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--gray-50);
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
}
.q-card .q-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--gold);
  font-weight: 900;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.q-card .q-title { font-weight: 600; font-size: 0.9rem; color: var(--purple); flex: 1; }
.q-card .q-body { padding: 1.25rem; }
.q-card .q-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.choice-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}
.choice-row:hover { border-color: var(--gold); background: rgba(255,205,0,0.03); }
.choice-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ─── Take Survey ─── */
.survey-wrapper {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--purple-deep) 0%, var(--purple) 40%, var(--gray-50) 40%);
  padding: 2rem 0 4rem;
}
.survey-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
  animation: slideUp 0.5s ease-out;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.survey-progress-bar {
  height: 5px;
  background: var(--gray-100);
}
.survey-progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.5s ease;
}
.survey-header { padding: 2rem 2.5rem 1.5rem; border-bottom: 1px solid var(--gray-100); }
.survey-header .question-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.survey-header h2 { font-size: 1.35rem; color: var(--purple); font-weight: 700; }
.survey-body { padding: 2rem 2.5rem; }
.survey-footer { padding: 1.5rem 2.5rem; border-top: 1px solid var(--gray-100); display: flex; justify-content: space-between; align-items: center; }

/* Choice Options */
.choice-option {
  display: block;
  padding: 1rem 1.25rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.choice-option:hover { border-color: var(--gold); background: rgba(255,205,0,0.04); }
.choice-option.selected {
  border-color: var(--purple);
  background: rgba(43,3,63,0.05);
}
.choice-option.selected::after {
  content: '\f26b';
  font-family: 'bootstrap-icons';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--purple);
  font-size: 1.1rem;
  font-weight: 700;
}
.choice-option input[type="radio"],
.choice-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.choice-option .choice-label { font-weight: 600; color: var(--gray-800); }
.choice-option .choice-sub { font-size: 0.85rem; color: var(--gray-400); }

/* Scale */
.scale-container { padding: 1rem 0; }
.scale-track { position: relative; margin: 2rem 0 1rem; }
.scale-track input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--gold) 0%, var(--gold) 50%, var(--gray-200) 50%);
  outline: none;
}
.scale-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--purple);
  border: 3px solid var(--gold);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(43,3,63,0.3);
}
.scale-value-display {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--purple);
}
.scale-labels { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--gray-400); }

/* ─── Result Page ─── */
.result-hero {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 100%);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.result-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,205,0,0.15) 0%, transparent 70%);
}
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--gold);
  color: var(--purple);
  font-weight: 900;
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 30px rgba(255,205,0,0.4);
}
.result-title { color: var(--white); margin-bottom: 1rem; }
.result-desc { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.score-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 8px solid rgba(255,205,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0 auto 2rem;
  position: relative;
}
.score-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 8px solid transparent;
  border-top-color: var(--gold);
  border-right-color: var(--gold);
  animation: spin 1s ease-out;
}
@keyframes spin {
  from { transform: rotate(-90deg); }
  to { transform: rotate(var(--score-angle, 180deg)); }
}
.score-ring .score-num { font-size: 2.2rem; font-weight: 900; color: var(--white); line-height: 1; }
.score-ring .score-lbl { font-size: 0.75rem; color: rgba(255,255,255,0.6); }

/* ─── Chart Container ─── */
.chart-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

/* ─── Badges ─── */
.badge-gold {
  background: var(--gold);
  color: var(--purple);
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
}
.badge-purple {
  background: var(--purple);
  color: var(--white);
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
}
.badge-outline-gold {
  border: 1.5px solid var(--gold-dark);
  color: var(--gold-dark);
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.78rem;
}

/* ─── Forms ─── */
.form-control, .form-select {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,205,0,0.15);
  outline: none;
}
.form-label { font-weight: 600; color: var(--purple); font-size: 0.9rem; margin-bottom: 0.4rem; }

/* ─── Auth Pages ─── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}
.auth-left {
  background: linear-gradient(145deg, var(--purple-deep) 0%, var(--purple) 50%, var(--purple-light) 100%);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.auth-left::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,205,0,0.12) 0%, transparent 70%);
}
.auth-right {
  background: var(--white);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.auth-form-box { width: 100%; max-width: 440px; }
.auth-form-box h2 { font-size: 1.8rem; color: var(--purple); margin-bottom: 0.5rem; }
.auth-form-box .subtitle { color: var(--gray-400); margin-bottom: 2rem; }

/* ─── Blog ─── */
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  height: 100%;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-card .cover { height: 200px; overflow: hidden; background: var(--gray-100); }
.blog-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .cover img { transform: scale(1.05); }
.blog-card .body { padding: 1.25rem; }
.blog-card .category-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* ─── Footer ─── */
.footer {
  background: var(--purple-deep);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
}
.footer h5 { color: var(--white); font-weight: 700; margin-bottom: 1rem; }
.footer a { color: rgba(255,255,255,0.6); }
.footer a:hover { color: var(--gold); }
.footer .brand-footer { font-size: 1.4rem; font-weight: 900; color: var(--white); }
.footer .brand-footer span { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ─── Alerts ─── */
.alert-ep {
  border-radius: var(--radius-sm);
  border: none;
  padding: 1rem 1.25rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.alert-ep.success { background: rgba(0,200,83,0.1); color: #007E33; }
.alert-ep.error { background: rgba(255,23,68,0.1); color: #CC0000; }
.alert-ep.info { background: rgba(0,176,255,0.08); color: #005B88; }

/* ─── Tables ─── */
.table-ep { width: 100%; border-collapse: separate; border-spacing: 0; }
.table-ep th {
  background: var(--purple);
  color: var(--white);
  font-weight: 700;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
}
.table-ep th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.table-ep th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.table-ep td { padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.table-ep tr:hover td { background: rgba(255,205,0,0.03); }
.table-ep tbody tr:last-child td { border-bottom: none; }

/* ─── Tooltips & Tags ─── */
.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  margin: 0.15rem;
}

/* ─── Modals ─── */
.modal-ep .modal-content {
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow-lg);
}
.modal-ep .modal-header {
  background: var(--purple);
  color: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.25rem 1.5rem;
}
.modal-ep .modal-title { color: var(--white); font-weight: 700; }
.modal-ep .btn-close { filter: invert(1); }

/* ─── Loading Spinner ─── */
.spinner-ep {
  width: 48px;
  height: 48px;
  border: 4px solid var(--gray-100);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }

/* ─── Animations ─── */
.fade-in { animation: fadeIn 0.4s ease-out; }
.slide-up { animation: slideUp 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── Responsive ─── */
@media (max-width: 992px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .builder-layout { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { flex: none; width: 100%; min-height: 100vh; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
}
@media (max-width: 576px) {
  .survey-box { border-radius: var(--radius); margin: 0 0.5rem; }
  .survey-body { padding: 1.5rem; }
  .survey-header { padding: 1.5rem; }
  .survey-footer { padding: 1rem 1.5rem; flex-direction: column; gap: 1rem; }
  .page-content { padding: 1rem; }
}

/* ─── Utility ─── */
.text-gold { color: var(--gold-dark) !important; }
.text-purple { color: var(--purple) !important; }
.bg-purple { background: var(--purple) !important; }
.bg-gold { background: var(--gold) !important; }
.border-gold { border-color: var(--gold) !important; }
.fw-900 { font-weight: 900 !important; }
.rounded-ep { border-radius: var(--radius) !important; }
.shadow-ep { box-shadow: var(--shadow-md) !important; }
.divider { height: 1px; background: var(--gray-100); margin: 1.5rem 0; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-50); }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }
