/* ==========================================================================
   People's Initiative Design System & Styling
   ========================================================================== */

/* Variables & Design Tokens */
:root {
  /* HSL Color Palette */
  --hue-primary: 224;
  --hue-accent-blue: 217;
  --hue-accent-emerald: 142;
  --hue-accent-gold: 41;
  --hue-accent-red: 343;

  /* Theme Tokens (Light Mode Defaults) */
  --color-primary: hsl(var(--hue-primary), 64%, 12%);
  --color-primary-light: hsl(var(--hue-primary), 60%, 25%);
  --color-bg: hsl(var(--hue-primary), 40%, 97%);
  --color-card: hsl(0, 0%, 100%);
  --color-card-hover: hsl(var(--hue-primary), 30%, 99%);
  --color-text: hsl(var(--hue-primary), 47%, 12%);
  --color-text-muted: hsl(var(--hue-primary), 20%, 45%);
  --color-border: hsl(var(--hue-primary), 20%, 88%);
  --color-input-bg: hsl(0, 0%, 100%);
  --color-modal-overlay: rgba(15, 23, 42, 0.7);

  /* Shared Accents */
  --color-accent-blue: hsl(var(--hue-accent-blue), 91%, 60%);
  --color-accent-blue-soft: hsl(var(--hue-accent-blue), 91%, 95%);
  --color-accent-emerald: hsl(var(--hue-accent-emerald), 76%, 36%);
  --color-accent-emerald-soft: hsl(var(--hue-accent-emerald), 76%, 95%);
  --color-accent-gold: hsl(var(--hue-accent-gold), 96%, 54%);
  --color-accent-gold-soft: hsl(var(--hue-accent-gold), 96%, 94%);
  --color-accent-red: hsl(var(--hue-accent-red), 82%, 58%);
  --color-accent-red-soft: hsl(var(--hue-accent-red), 82%, 96%);

  /* Shadow & Glows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  --glow-blue: 0 0 15px rgba(37, 99, 235, 0.3);
  --glow-emerald: 0 0 15px rgba(16, 185, 129, 0.3);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables Override */
body.dark-theme {
  --color-primary: hsl(var(--hue-primary), 20%, 94%);
  --color-primary-light: hsl(var(--hue-primary), 20%, 80%);
  --color-bg: hsl(var(--hue-primary), 40%, 6%);
  --color-card: hsl(var(--hue-primary), 35%, 10%);
  --color-card-hover: hsl(var(--hue-primary), 30%, 13%);
  --color-text: hsl(var(--hue-primary), 25%, 90%);
  --color-text-muted: hsl(var(--hue-primary), 15%, 65%);
  --color-border: hsl(var(--hue-primary), 20%, 20%);
  --color-input-bg: hsl(var(--hue-primary), 30%, 8%);
  --color-modal-overlay: rgba(4, 6, 10, 0.85);

  --color-accent-blue-soft: rgba(37, 99, 235, 0.15);
  --color-accent-emerald-soft: rgba(16, 185, 129, 0.15);
  --color-accent-gold-soft: rgba(217, 119, 6, 0.15);
  --color-accent-red-soft: rgba(225, 29, 72, 0.15);

  --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

a {
  color: var(--color-accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  text-decoration: underline;
}

/* Utility Typography Classes */
.text-mono { font-family: 'JetBrains Mono', monospace; font-size: 0.9em; }
.text-accent-blue { color: var(--color-accent-blue); }
.text-accent-emerald { color: var(--color-accent-emerald); }
.text-accent-gold { color: var(--color-accent-gold); }
.text-semibold { font-weight: 600; }
.text-bold { font-weight: 700; }
.text-center { text-align: center; }
.hidden { display: none; }


/* Base Inputs */
input, textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--color-input-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

input:focus, textarea:focus {
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 3px var(--color-accent-blue-soft);
}

input[readonly] {
  background-color: var(--color-bg);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

input[readonly]:focus {
  border-color: var(--color-border);
  box-shadow: none;
}

/* Base Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  user-select: none;
}

.btn-primary {
  background-color: var(--color-accent-blue);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
  background-color: hsl(var(--hue-accent-blue), 91%, 50%);
  transform: translateY(-2px);
  box-shadow: var(--glow-blue);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: var(--color-card);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--color-border);
}

.btn-success {
  background-color: var(--color-accent-emerald);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-success:hover {
  background-color: hsl(var(--hue-accent-emerald), 76%, 30%);
  transform: translateY(-2px);
  box-shadow: var(--glow-emerald);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}

.btn-icon {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.btn-icon:hover {
  background-color: var(--color-border);
  color: var(--color-text);
}

/* ==========================================================================
   Hero Section (BEM Naming Convention)
   ========================================================================== */
.hero {
  background: radial-gradient(circle at 10% 20%, hsl(var(--hue-primary), 60%, 15%) 0%, hsl(var(--hue-primary), 65%, 8%) 90%);
  color: #ffffff;
  padding: 70px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(var(--color-accent-blue-soft) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.15;
  pointer-events: none;
}

.hero__container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-block;
  background-color: var(--color-accent-blue-soft);
  color: var(--color-accent-blue);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.hero__title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.15;
}

@media (min-width: 769px) {
  .hero__title {
    font-size: 3rem;
  }
}

.hero__text {
  font-size: 1.1rem;
  font-weight: 400;
  color: hsl(var(--hue-primary), 20%, 80%);
  margin-bottom: 35px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.hero__meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: hsl(var(--hue-primary), 20%, 90%);
  background-color: rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__meta-tag svg {
  color: var(--color-accent-gold);
}

/* ==========================================================================
   Active Initiatives Section (BEM Naming Convention)
   ========================================================================== */
.app-content {
  flex-grow: 1;
}

.initiatives, .transparency {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px;
}

.initiatives__header {
  margin-bottom: 40px;
}

.initiatives__title-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent-blue);
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 8px;
}

.initiatives__title-text {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.initiatives__desc {
  color: var(--color-text-muted);
  max-width: 600px;
  margin-top: 10px;
}

/* Initiatives Grid & Cards */
.initiatives__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 481px) {
  .initiatives__grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

.initiative-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.initiative-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent-blue);
  box-shadow: var(--shadow-premium);
  background-color: var(--color-card-hover);
}

.initiative-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.initiative-card__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.initiative-card__progress-container {
  margin-bottom: 30px;
}

.initiative-card__progress-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.initiative-card__progress-votes {
  font-weight: 600;
  color: var(--color-text);
}

.initiative-card__progress-percent {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-accent-blue);
}

.initiative-card__progress-track {
  width: 100%;
  height: 8px;
  background-color: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.initiative-card__progress-indicator {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-accent-blue) 0%, hsl(var(--hue-accent-blue), 91%, 70%) 100%);
  transition: width var(--transition-slow);
}

.initiative-card:hover .initiative-card__progress-indicator {
  filter: brightness(1.05);
}

.initiative-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 12px;
}

.initiative-card__doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-accent-blue);
  background-color: var(--color-accent-blue-soft);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.initiative-card__doc-link:hover {
  background-color: var(--color-accent-blue);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--glow-blue);
}

.initiative-card__doc-icon {
  flex-shrink: 0;
  color: inherit;
}

.initiative-card__btn-sign {
  flex-shrink: 0;
}

/* ==========================================================================
   Transparency Section (BEM Naming Convention)
   ========================================================================== */
.transparency__card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.transparency__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.transparency__icon {
  background-color: var(--color-accent-blue-soft);
  color: var(--color-accent-blue);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.transparency__title-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-blue);
  letter-spacing: 1.5px;
}

.transparency__title-text {
  font-size: 1.8rem;
  letter-spacing: -0.5px;
}

.transparency__body-text {
  color: var(--color-text-muted);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.transparency__pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.transparency__step {
  position: relative;
}

.transparency__step-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-border);
  margin-bottom: 8px;
  transition: color var(--transition-normal);
}

.transparency__step:hover .transparency__step-num {
  color: var(--color-accent-blue-soft);
}

.transparency__step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.transparency__step-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.transparency__info-box {
  background-color: var(--color-bg);
  border-left: 4px solid var(--color-accent-gold);
  padding: 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.transparency__info-box-title {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 8px;
}

.transparency__info-box-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Multi-Step Wizard (BEM Naming Convention)
   ========================================================================== */
.vote-wizard {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-modal-overlay);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.vote-wizard.active {
  opacity: 1;
  pointer-events: auto;
}

.vote-wizard__card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 650px;
  max-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-premium);
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  overflow: hidden;
}

.vote-wizard.active .vote-wizard__card {
  transform: scale(1);
}

.vote-wizard__close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-full);
  display: flex;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  z-index: 10;
}

.vote-wizard__close-btn:hover {
  background-color: var(--color-border);
  color: var(--color-text);
}

.vote-wizard__header {
  padding: 20px 20px 10px;
  border-bottom: 1px solid var(--color-border);
}

.vote-wizard__body {
  padding: 20px 20px 24px;
  overflow-y: auto;
  flex-grow: 1;
}

/* Step Progress Navigation */
.vote-wizard__progress {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vote-wizard__progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.vote-wizard__progress-fill {
  height: 100%;
  background-color: var(--color-accent-blue);
  transition: width var(--transition-normal);
}

.vote-wizard__progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.vote-wizard__step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  position: relative;
  z-index: 2;
  cursor: default;
}

.vote-wizard__step-node::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background-color: var(--color-card);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  font-size: 0.75rem;
  transition: all var(--transition-normal);
}

/* Set specific content inside before nodes */
.vote-wizard__step-node[data-step="1"]::before { content: "1"; }
.vote-wizard__step-node[data-step="2"]::before { content: "2"; }
.vote-wizard__step-node[data-step="3"]::before { content: "3"; }
.vote-wizard__step-node[data-step="4"]::before { content: "4"; }
.vote-wizard__step-node[data-step="5"]::before { content: "5"; }

.vote-wizard__step-node.active {
  color: var(--color-accent-blue);
}

.vote-wizard__step-node.active::before {
  border-color: var(--color-accent-blue);
  background-color: var(--color-accent-blue-soft);
}

.vote-wizard__step-node.completed {
  color: var(--color-accent-emerald);
}

.vote-wizard__step-node.completed[data-step]::before {
  border-color: var(--color-accent-emerald);
  background-color: var(--color-accent-emerald-soft);
  color: var(--color-accent-emerald);
  content: "✓";
}

.vote-wizard__step-node span {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}



/* Wizard Panes */
.vote-wizard__pane {
  display: none;
  flex-direction: column;
  animation: slideIn var(--transition-normal);
}

.vote-wizard__pane.active {
  display: flex;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.vote-wizard__pane-icon {
  margin: 10px auto 20px;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
}

.vote-wizard__pane-icon--blue {
  color: var(--color-accent-blue);
}

.vote-wizard__pane h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
}

.vote-wizard__pane-title {
  text-align: center;
  margin-bottom: 12px;
}

.vote-wizard__pane-intro {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  text-align: center;
}

.vote-wizard__pane-intro strong {
  font-weight: 600;
}

.vote-wizard__doc-link-container {
  margin: 0 0 24px;
  text-align: center;
}

.vote-wizard__btn-doc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent-blue);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px dashed var(--color-accent-blue);
  border-radius: 8px;
  background-color: var(--color-accent-blue-soft);
  transition: all 0.2s ease;
}

.vote-wizard__btn-doc-link:hover {
  background-color: var(--color-accent-blue-soft);
  text-decoration: none;
  opacity: 0.95;
}

.vote-wizard__doc-icon {
  flex-shrink: 0;
}

.vote-wizard__warning-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent-gold);
  display: block;
  margin-top: 6px;
}

.vote-wizard__warning-card {
  display: flex;
  gap: 16px;
  background-color: var(--color-accent-gold-soft);
  border: 1px solid hsl(var(--hue-accent-gold), 96%, 45%);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  align-items: flex-start;
  transition: all var(--transition-normal);
}

.vote-wizard__warning-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.vote-wizard__warning-content {
  flex: 1;
}

.vote-wizard__warning-content > strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: hsl(var(--hue-accent-gold), 96%, 20%);
  margin-bottom: 4px;
}

.vote-wizard__warning-content p {
  font-size: 0.85rem;
  color: hsl(var(--hue-accent-gold), 96%, 25%);
  margin: 0;
  line-height: 1.45;
}

/* Dark Theme specific values for warning text contrast */
body.dark-theme .vote-wizard__warning-card {
  border-color: hsl(var(--hue-accent-gold), 80%, 30%);
}

body.dark-theme .vote-wizard__warning-content > strong {
  color: hsl(var(--hue-accent-gold), 96%, 75%);
}

body.dark-theme .vote-wizard__warning-content p {
  color: hsl(var(--hue-accent-gold), 96%, 80%);
}

.vote-wizard__disclosure-box {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 30px;
}

.vote-wizard__disclosure-box h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.vote-wizard__disclosure-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vote-wizard__disclosure-box li {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  position: relative;
  padding-left: 20px;
}

.vote-wizard__disclosure-box li::before {
  content: "•";
  position: absolute;
  left: 5px;
  top: -2px;
  color: var(--color-accent-blue);
  font-size: 1.3rem;
}

.vote-wizard__pane-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 16px;
}

.vote-wizard__pane-actions-centered {
  justify-content: center;
  gap: 16px;
}

/* Scanner Card & Simulated Frame */
.vote-wizard__scanner-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vote-wizard__scan-frame-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.vote-wizard__scan-frame {
  width: 100%;
  max-width: 400px;
  height: 180px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  position: relative;
  background-color: var(--color-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.vote-wizard__scan-frame:hover {
  border-color: var(--color-accent-blue);
}

/* Scan Laser animation lines */
.vote-wizard__scan-laser,
.vote-wizard__scan-laser--red {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 5;
  animation: scanMotion 2s infinite ease-in-out;
  animation-play-state: paused;
  pointer-events: none;
}

.vote-wizard__scan-laser {
  background: linear-gradient(90deg, transparent, var(--color-accent-emerald), transparent);
  box-shadow: 0 0 8px var(--color-accent-emerald);
}

.vote-wizard__scan-laser--red {
  background: linear-gradient(90deg, transparent, var(--color-accent-emerald), transparent);
  box-shadow: 0 0 8px var(--color-accent-emerald);
}

@keyframes scanMotion {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.vote-wizard__scan-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.vote-wizard__file-input {
  display: none;
}

.vote-wizard__preview-container {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vote-wizard__preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: pulseOpacity 2s infinite ease-in-out;
}

.vote-wizard__upload-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 20px;
  text-align: center;
  transition: color var(--transition-fast);
  z-index: 3;
}

.vote-wizard__scan-frame:hover .vote-wizard__upload-overlay {
  color: var(--color-accent-blue);
}

.vote-wizard__success-badge {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--color-accent-emerald);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg);
  justify-content: center;
  z-index: 8;
  animation: scaleUp 0.25s ease;
}

.vote-wizard__success-badge svg {
  background-color: var(--color-accent-emerald-soft);
  padding: 12px;
  border-radius: var(--radius-full);
  width: 52px;
  height: 52px;
  box-shadow: var(--glow-emerald);
}

.vote-wizard__success-badge span {
  font-weight: 700;
  font-size: 1rem;
}

.vote-wizard__scanner-toggles {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: -10px 0 16px;
}

.vote-wizard__toggle-btn {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.vote-wizard__toggle-btn.active {
  background-color: var(--color-accent-blue);
  color: #ffffff;
  border-color: var(--color-accent-blue);
}

.vote-wizard__manual-input {
  margin-top: 10px;
}

.vote-wizard__input-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.vote-wizard__input {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  text-align: center;
}

.vote-wizard__input--small {
  font-size: 11px;
}

/* Extracted ID/URL Display Cards */
.vote-wizard__extracted-card {
  display: none;
  flex-direction: column;
  gap: 8px;
  background-color: var(--color-accent-blue-soft);
  border: 1px solid var(--color-accent-blue);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 16px;
  animation: scaleUp 0.3s ease;
}

body.dark-theme .vote-wizard__extracted-card {
  background-color: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
}

.vote-wizard__extracted-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-accent-blue);
  letter-spacing: 0.5px;
}

.vote-wizard__extracted-card-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 1px;
  word-wrap: break-word;
  word-break: break-all;
}

.vote-wizard__extracted-card-value--s3 {
  font-size: 0.8rem;
  font-weight: 500;
  word-break: break-all;
  line-height: 1.4;
}

.vote-wizard__extracted-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent-emerald);
}

.vote-wizard__pulse-green {
  width: 6px;
  height: 6px;
  background-color: var(--color-accent-emerald);
  border-radius: var(--radius-full);
  display: inline-block;
  animation: pulseScale 1.5s infinite ease-in-out;
}

@keyframes pulseScale {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

/* Checklist Status Box */
.vote-wizard__checklist-status {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--color-bg);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-top: 20px;
}

.vote-wizard__check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.vote-wizard__check-icon {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition-fast);
}

.vote-wizard__check-item--success {
  color: var(--color-text);
}

.vote-wizard__check-item--success .vote-wizard__check-icon {
  border-color: var(--color-accent-emerald);
  background-color: var(--color-accent-emerald);
}

.vote-wizard__check-item--success .vote-wizard__check-icon::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  top: 2px;
  left: 5px;
}

.vote-wizard__check-item--error {
  color: var(--color-accent-red);
}

.vote-wizard__check-item--error .vote-wizard__check-icon {
  border-color: var(--color-accent-red);
  background-color: var(--color-accent-red);
}

.vote-wizard__check-item--error .vote-wizard__check-icon::after {
  content: "!";
  font-weight: 800;
  color: #ffffff;
  font-size: 10px;
  line-height: 1;
}

.vote-wizard__check-item--loading .vote-wizard__check-icon {
  border-color: var(--color-accent-blue);
  border-top-color: transparent;
  animation: spinnerRotate 0.8s infinite linear;
}

@keyframes spinnerRotate {
  to { transform: rotate(360deg); }
}

/* Secure Developer Audit Console */
.vote-wizard__console {
  background-color: #020617;
  color: #38bdf8;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: var(--shadow-lg);
}

.vote-wizard__console-header {
  background-color: #0f172a;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
}

.vote-wizard__console-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.vote-wizard__console-status {
  font-family: 'JetBrains Mono', monospace;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background-color: #1e293b;
  font-size: 0.7rem;
  color: #94a3b8;
  transition: all var(--transition-fast);
}

.vote-wizard__console-status--loading {
  background-color: rgba(217, 119, 6, 0.15);
  color: #fbbf24;
}

.vote-wizard__console-status--verified {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.vote-wizard__console-status--error {
  background-color: rgba(225, 29, 72, 0.15);
  color: #fda4af;
}

.vote-wizard__console-status--waiting {
  background-color: #1e293b;
  color: #94a3b8;
}

.vote-wizard__console-status--failed {
  background-color: rgba(225, 29, 72, 0.15);
  color: #fda4af;
}

.vote-wizard__console-log {
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  height: 140px;
  overflow-y: auto;
  white-space: pre-wrap;
  color: #e2e8f0;
  text-align: left;
}

.vote-wizard__console-log .log-info { color: #38bdf8; }
.vote-wizard__console-log .log-success { color: #4ade80; font-weight: 700; }
.vote-wizard__console-log .log-warning,
.vote-wizard__console-log .log-warn { color: #facc15; }
.vote-wizard__console-log .log-error { color: #f87171; font-weight: 700; }

/* Signature Drawing Canvas */
.vote-wizard__signature-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vote-wizard__signature-canvas-container {
  width: 100%;
  height: 200px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  position: relative;
  background-color: var(--color-input-bg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.vote-wizard__signature-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  cursor: crosshair;
}

.vote-wizard__canvas-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
}

.vote-wizard__canvas-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--color-text-muted);
  pointer-events: none;
  z-index: 2;
  transition: opacity var(--transition-normal);
}

.vote-wizard__canvas-placeholder span {
  font-size: 0.85rem;
  font-weight: 500;
}

.vote-wizard__signature-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.vote-wizard__canvas-guidance {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.vote-wizard__clear-btn {
  flex-shrink: 0;
}

/* Ticket Summary */
.vote-wizard__review-ticket {
  width: 100%;
  background-color: var(--color-input-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
}

.vote-wizard__ticket-header {
  background-color: var(--color-bg);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.vote-wizard__ticket-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
}

.vote-wizard__ticket-badge {
  background-color: var(--color-accent-blue-soft);
  color: var(--color-accent-blue);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.vote-wizard__ticket-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vote-wizard__ticket-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.vote-wizard__ticket-label {
  color: var(--color-text-muted);
  font-weight: 500;
}

.vote-wizard__ticket-val {
  color: var(--color-text);
  font-weight: 600;
  text-align: right;
  max-width: 60%;
  word-break: break-all;
}

.vote-wizard__ticket-val--mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
}

.vote-wizard__ticket-val--emerald {
  color: var(--color-accent-emerald);
}

.vote-wizard__ticket-signature {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  border-top: 1px dashed var(--color-border);
  padding-top: 12px;
}

.vote-wizard__signature-preview-box {
  width: 100%;
  height: 90px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vote-wizard__signature-preview-box img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
}

/* Success Panel & Ballot Receipt */
.vote-wizard__success-panel {
  display: flex;
  flex-direction: column;
  animation: slideIn var(--transition-normal);
}

.vote-wizard__success-panel.hidden {
  display: none;
}

.vote-wizard__receipt-checkmark {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent-emerald-soft);
  color: var(--color-accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.vote-wizard__receipt-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.vote-wizard__receipt-header {
  background-color: #0f172a;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

.vote-wizard__receipt-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.vote-wizard__receipt-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-accent-gold);
  border: 1px solid var(--color-accent-gold);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.vote-wizard__receipt-content {
  padding: 24px;
}

.vote-wizard__receipt-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.vote-wizard__meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.vote-wizard__meta-row span {
  color: var(--color-text-muted);
}

.vote-wizard__meta-row strong {
  color: var(--color-primary);
  font-weight: 700;
}

.vote-wizard__receipt-divider {
  border-bottom: 2px dashed var(--color-border);
  margin: 16px 0;
}

.vote-wizard__receipt-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
}

@media (min-width: 481px) {
  .vote-wizard__receipt-details {
    grid-template-columns: 1fr 90px;
  }
}

.vote-wizard__signature-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vote-wizard__signature-block span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.vote-wizard__receipt-sig-box {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.vote-wizard__receipt-sig-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.vote-wizard__receipt-seal {
  display: flex;
  justify-content: center;
}

.vote-wizard__receipt-hash-block {
  margin-top: 20px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.vote-wizard__receipt-hash-block span {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.vote-wizard__receipt-hash-block code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-emerald);
  word-break: break-all;
}

/* Optional Email Ballot Dispatcher Box */
.vote-wizard__email-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px auto;
  max-width: 480px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.vote-wizard__email-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
}

.vote-wizard__input-with-button {
  display: flex;
  gap: 8px;
  width: 100%;
}

.vote-wizard__email-input {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  flex-grow: 1;
}

.vote-wizard__email-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vote-wizard__email-feedback {
  display: none;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 0 0 4px;
}

@media (min-width: 769px) {
  .vote-wizard {
    padding: 20px;
  }

  .vote-wizard__card {
    border-radius: var(--radius-lg);
    max-height: 90vh;
  }

  .vote-wizard__close-btn {
    top: 20px;
    right: 20px;
  }

  .vote-wizard__header {
    padding: 30px 40px 10px;
  }

  .vote-wizard__body {
    padding: 30px 40px 40px;
  }
}/* ==========================================================================
   Admin Portal Styles (BEM Naming Convention)
   ========================================================================== */
.admin-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%;
}

.admin-layout__header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
}

.admin-layout__subtitle {
  color: var(--color-text-muted);
}

.admin-layout__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

.admin-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
}

.admin-card:hover {
  box-shadow: var(--shadow-md);
}

.admin-card h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--color-accent-blue-soft);
  padding-bottom: 8px;
}

.admin-table-container,
.admin-table__container {
  overflow-x: auto;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}

.admin-table th {
  background-color: var(--color-bg);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table__header-cell--center {
  text-align: center;
}

.admin-table__empty-cell {
  text-align: center;
  color: var(--color-text-muted);
  padding: 30px;
}

.admin-table__title {
  font-weight: 600;
  color: var(--color-primary);
}

.admin-table__doc-link-container {
  font-size: 0.8rem;
  margin-top: 4px;
}

.admin-table__doc-link {
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-table__signatures-count {
  font-weight: 500;
  font-size: 0.85rem;
}

.admin-table__signatures-target {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.admin-table__progress-percent {
  font-weight: 700;
  font-size: 0.9rem;
}

.admin-table__progress-track {
  background-color: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  width: 60px;
  margin-bottom: 8px;
}

.admin-table__progress-indicator {
  background-color: var(--color-accent-blue);
  height: 100%;
}

.admin-table__actions-cell {
  white-space: nowrap;
  text-align: center;
}

.admin-table__action-btn {
  padding: 6px 10px;
  min-width: auto;
}

.admin-table__action-btn--delete {
  margin-left: 4px;
}

/* Table Action Buttons styling */
.btn-action-edit,
.btn-action-delete,
.admin-table__action-btn {
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  transition: all var(--transition-fast) ease;
}

.btn-action-edit:hover,
.admin-table__action-btn:not(.admin-table__action-btn--delete):hover {
  border-color: var(--color-accent-blue);
  color: var(--color-accent-blue);
  background-color: var(--color-accent-blue-soft);
  transform: scale(1.05);
}

.btn-action-delete:hover,
.admin-table__action-btn--delete:hover {
  border-color: var(--color-accent-red);
  color: var(--color-accent-red);
  background-color: var(--color-accent-red-soft);
  transform: scale(1.05);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-form-group,
.admin-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-form-group label,
.admin-form__group label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
}

.admin-form-group input,
.admin-form-group textarea,
.admin-form__group input,
.admin-form__group textarea,
.admin-login__input {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--color-input-bg);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.admin-form-group input:focus,
.admin-form-group textarea:focus,
.admin-form__group input:focus,
.admin-form__group textarea:focus,
.admin-login__input:focus {
  outline: none;
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 3px var(--color-accent-blue-soft);
}

.admin-form__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.admin-form__submit-btn {
  flex-grow: 1;
}

.admin-form__cancel-btn {
  flex-grow: 0;
}

.admin-alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.admin-layout__alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.admin-alert-success,
.admin-layout__alert--success {
  background-color: var(--color-accent-emerald-soft);
  border: 1px solid var(--color-accent-emerald);
  color: var(--color-accent-emerald);
}

.admin-alert-error,
.admin-layout__alert--error {
  background-color: var(--color-accent-red-soft);
  border: 1px solid var(--color-accent-red);
  color: var(--color-accent-red);
}

.admin-alert span,
.admin-layout__alert span {
  font-size: 1.2rem;
  line-height: 1;
}

/* Admin Login Layout */
.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding: 60px 20px;
}

.admin-login__card {
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-premium);
}

.admin-login__header {
  text-align: center;
  margin-bottom: 24px;
}

.admin-login__logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
}

.admin-login__title {
  border: none;
  padding: 0;
  margin-bottom: 8px;
  font-size: 1.6rem;
  font-family: 'Outfit', sans-serif;
}

.admin-login__subtitle {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.admin-login__alert {
  margin-bottom: 20px;
}

.admin-login__input {
  font-size: 1rem;
  width: 100%;
}

.admin-login__submit-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 0.95rem;
  margin-top: 10px;
  font-weight: 700;
}

body.dark-theme .login-card:hover,
body.dark-theme .admin-login__card:hover {
  box-shadow: var(--shadow-premium), 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* Text Wrapping & Overflow Prevention */
code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  word-wrap: break-word;
  word-break: break-all;
  white-space: normal;
}

.transparency__step {
  word-wrap: break-word;
  word-break: break-word;
}

.transparency__step p {
  word-wrap: break-word;
  word-break: break-word;
}



/* ==========================================================================
   Footer Section (BEM Naming Convention)
   ========================================================================== */
.app-footer {
  background-color: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding: 40px 24px;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.app-footer--admin {
  margin-top: auto;
}

.app-footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 769px) {
  .app-footer__container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.app-footer__brand {
  max-width: 400px;
}

.app-footer__brand h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.app-footer__brand p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.app-footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 481px) {
  .app-footer__links {
    flex-direction: row;
    gap: 24px;
  }
}

.app-footer__links a {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.app-footer__links a:hover {
  color: var(--color-accent-blue);
  text-decoration: none;
}

.app-footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  width: 100%;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
}
