/* ================================================
   POROPASSE — main.css
   Dashboards, formulaires, tableaux, composants
   ================================================ */


:root {
  --pp-red:    #750808;
  --pp-red2:   #5a0606;
  --pp-orange: #e88400;
  --pp-black:  #000000;
  --pp-white:  #ffffff;
  --pp-gray:   #f4f4f4;
  --pp-text:   #222222;
  --pp-muted:  #666666;
  --pp-border: #e5e5e5;
  --radius:    8px;
  --radius-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

body.dashboard-body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--pp-gray);
  color: var(--pp-text);
  margin: 0;
}

/* ================================================
   LAYOUT DASHBOARD
   ================================================ */
.dash-layout {
  display: flex;
  min-height: 100vh;
}

/* ---- SIDEBAR ---- */
.dash-sidebar {
  width: 240px;
  background: var(--pp-black);
  color: #fff;
  flex-shrink: 0;
  padding: 20px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.dash-sidebar-logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid #222;
  margin-bottom: 16px;
}
.dash-sidebar-logo img { height: 36px; }

.dash-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: #bbb;
  text-decoration: none;
  font-size: 14px;
  transition: background .2s, color .2s;
}
.dash-nav a:hover { background: #1a1a1a; color: #fff; }
.dash-nav a.active {
  background: var(--pp-red);
  color: #fff;
}
.dash-nav .icon { font-size: 16px; width: 20px; text-align: center; }

.dash-nav-section-title {
  font-size: 11px;
  text-transform: uppercase;
  color: #555;
  padding: 16px 14px 6px;
  letter-spacing: .5px;
}

/* ---- MAIN CONTENT ---- */
.dash-main {
  flex: 1;
  padding: 0;
  min-width: 0;
}
.dash-topbar {
  background: #fff;
  border-bottom: 1px solid var(--pp-border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.dash-topbar h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
.dash-topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dash-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.dash-user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--pp-red);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}

.dash-content { padding: 24px 28px; }

/* Mobile: bouton menu */
.dash-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--pp-text);
}

/* ================================================
   STAT CARDS
   ================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--pp-border);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.stat-card-label {
  font-size: 12px;
  color: var(--pp-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-card-value {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
}
.stat-card-trend {
  font-size: 12px;
  font-weight: 500;
}
.stat-card-trend.up   { color: #1a8a52; }
.stat-card-trend.down { color: var(--pp-red); }

.stat-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.stat-icon-red    { background: #f8e8e8; }
.stat-icon-orange { background: #fff0e0; }
.stat-icon-green  { background: #e8f5ee; }
.stat-icon-purple { background: #f0e8f8; }

/* ================================================
   CARDS GÉNÉRIQUES
   ================================================ */
.card {
  background: #fff;
  border: 1px solid var(--pp-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-header h2, .card-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

/* ================================================
   FORMULAIRES
   ================================================ */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--pp-text);
  margin-bottom: 6px;
}
.form-group .hint {
  font-size: 12px;
  color: var(--pp-muted);
  margin-top: 4px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--pp-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--pp-text);
  transition: border-color .2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--pp-red);
}
textarea.form-control { resize: vertical; min-height: 90px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

/* Upload de fichier custom */
.upload-zone {
  border: 2px dashed var(--pp-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--pp-orange);
  background: #fffaf2;
}
.upload-zone .upload-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.upload-zone p { font-size: 13px; color: var(--pp-muted); margin: 0; }
.upload-zone input[type="file"] { display: none; }
.upload-preview {
  margin-top: 12px;
  max-width: 200px;
  border-radius: var(--radius);
  display: none;
}

/* Toggle / radio en cartes (ex: choix de rôle, type d'événement) */
.choice-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.choice-card {
  border: 2px solid var(--pp-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}
.choice-card input[type="radio"],
.choice-card input[type="checkbox"] {
  position: absolute;
  top: 10px; right: 10px;
}
.choice-card.selected,
.choice-card:has(input:checked) {
  border-color: var(--pp-red);
  background: #fdf3f3;
}
.choice-card .choice-icon { font-size: 24px; margin-bottom: 6px; }
.choice-card .choice-label { font-size: 13px; font-weight: 500; }

/* Boutons */
.btn-primary {
  background: var(--pp-red);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s;
}
.btn-primary:hover { background: var(--pp-red2); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.btn-orange {
  background: var(--pp-orange);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.btn-orange:hover { opacity: .85; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--pp-border);
  color: var(--pp-text);
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: var(--pp-red); background: #fdf3f3; }

.btn-danger {
  background: #fff;
  border: 1.5px solid var(--pp-red);
  color: var(--pp-red);
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.btn-danger:hover { background: var(--pp-red); color: #fff; }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }

/* Alertes */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: #e8f5ee; color: #0a6a3a; }
.alert-error   { background: #fbe8e8; color: var(--pp-red); }
.alert-warning { background: #fff7e0; color: #a05800; }
.alert-info    { background: #e8f0fb; color: #0a4a8a; }

/* ================================================
   TABLEAUX
   ================================================ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--pp-border);
  border-radius: var(--radius-lg);
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}
table.data-table th {
  background: var(--pp-gray);
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--pp-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .3px;
  white-space: nowrap;
}
table.data-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--pp-border);
  vertical-align: middle;
}
table.data-table tr:hover td { background: #fafafa; }

/* Badges de statut */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-brouillon { background: #f0f0f0; color: #666; }
.badge-soumis    { background: #fff7e0; color: #a05800; }
.badge-publie    { background: #e8f5ee; color: #0a6a3a; }
.badge-pending   { background: #fff7e0; color: #a05800; }
.badge-paid      { background: #e8f5ee; color: #0a6a3a; }
.badge-used      { background: #e8e8e8; color: #555; }
.badge-failed    { background: #fbe8e8; color: var(--pp-red); }
.badge-admin      { background: #f0e8f8; color: #5a1fa3; }
.badge-annonceur  { background: #e8f0fb; color: #0a4a8a; }
.badge-acheteur   { background: #f0f0f0; color: #555; }

/* Actions table (icônes) */
.table-actions { display: flex; gap: 6px; }
.table-actions a, .table-actions button {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--pp-border);
  background: #fff;
  color: var(--pp-muted);
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  transition: all .2s;
}
.table-actions a:hover, .table-actions button:hover {
  border-color: var(--pp-red);
  color: var(--pp-red);
}
.table-actions .danger:hover {
  border-color: var(--pp-red);
  background: var(--pp-red);
  color: #fff;
}

/* ================================================
   PAGINATION
   ================================================ */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
}
.pagination a, .pagination span {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--pp-border);
  font-size: 13px;
  text-decoration: none;
  color: var(--pp-text);
}
.pagination a:hover { border-color: var(--pp-red); color: var(--pp-red); }
.pagination .active {
  background: var(--pp-red);
  color: #fff;
  border-color: var(--pp-red);
}

/* ================================================
   QR CODE / TICKET
   ================================================ */
.ticket-card {
  background: #fff;
  border: 1px solid var(--pp-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 360px;
  margin: 0 auto;
}
.ticket-card-header {
  background: linear-gradient(135deg, var(--pp-red), var(--pp-orange));
  color: #fff;
  padding: 18px;
  text-align: center;
}
.ticket-card-header h3 { margin: 0 0 4px; font-size: 16px; }
.ticket-card-header p { margin: 0; font-size: 12px; opacity: .9; }
.ticket-card-body {
  padding: 20px;
  text-align: center;
}
.ticket-card-qr {
  width: 180px; height: 180px;
  margin: 0 auto 14px;
  background: #fff;
  border: 1px solid var(--pp-border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.ticket-card-qr img { width: 100%; height: 100%; object-fit: contain; }
.ticket-card-info { font-size: 13px; color: var(--pp-muted); }
.ticket-card-info strong { color: var(--pp-text); }
.ticket-card-divider {
  border-top: 2px dashed var(--pp-border);
  margin: 16px 0;
  position: relative;
}

/* ================================================
   MODALS
   ================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-box h3 { margin: 0 0 16px; font-size: 16px; }
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ================================================
   SPINNER / LOADING
   ================================================ */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pp-spin .6s linear infinite;
  display: inline-block;
}
@keyframes pp-spin { to { transform: rotate(360deg); } }

/* ================================================
   TOASTS
   ================================================ */
.toast-container {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 13px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  border-left: 4px solid var(--pp-red);
  min-width: 240px;
  animation: pp-toast-in .25s ease;
}
.toast.success { border-left-color: #1a8a52; }
.toast.error   { border-left-color: var(--pp-red); }
.toast.warning { border-left-color: var(--pp-orange); }
@keyframes pp-toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
  .dash-sidebar {
    position: fixed;
    left: -240px;
    top: 0;
    z-index: 999;
    transition: left .25s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,.2);
  }
  .dash-sidebar.open { left: 0; }
  .dash-menu-toggle { display: block; }
  .dash-content { padding: 16px; }
  .dash-topbar { padding: 12px 16px; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}


/* ================================================
   ALIAS — classes utilisées dans les vues admin/annonceur
   ================================================ */

.admin-wrapper  { display: flex; min-height: 100vh; }
.admin-sidebar  { width: 220px; background: var(--pp-black); color: #fff; flex-shrink: 0; padding: 20px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar h2 { padding: 0 20px 16px; font-size: 16px; border-bottom: 1px solid #222; margin: 0 0 12px; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.admin-sidebar nav a { display: block; padding: 10px 14px; border-radius: var(--radius); color: #bbb; text-decoration: none; font-size: 14px; transition: background .2s, color .2s; }
.admin-sidebar nav a:hover { background: #1a1a1a; color: #fff; }
.admin-sidebar nav a.active { background: var(--pp-red); color: #fff; }
.admin-main     { flex: 1; padding: 28px; min-width: 0; background: var(--pp-gray); }
.admin-main h1  { font-size: 22px; font-weight: 700; margin: 0 0 20px; }
.admin-subtitle { color: var(--pp-muted); margin: -16px 0 20px; font-size: 14px; }

/* Stats grid admin */
.stats-grid     { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card      { background: #fff; border: 1px solid var(--pp-border); border-radius: var(--radius-lg); padding: 18px; display: flex; align-items: center; gap: 14px; }
.stat-card--warning { border-left: 4px solid var(--pp-orange); }
.stat-card--success { border-left: 4px solid #1a8a52; }
.stat-card--gold    { border-left: 4px solid #c8a000; }
.stat-icon      { font-size: 28px; }
.stat-value     { font-size: 22px; font-weight: 700; margin: 0; }
.stat-label     { font-size: 12px; color: var(--pp-muted); margin: 0; }

/* Sections admin */
.admin-section  { background: #fff; border: 1px solid var(--pp-border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-header h2 { font-size: 16px; font-weight: 600; margin: 0; }

/* Tables admin */
.table-wrapper  { overflow-x: auto; border: 1px solid var(--pp-border); border-radius: var(--radius-lg); background: #fff; }
.admin-table    { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { background: var(--pp-gray); text-align: left; padding: 12px 16px; font-weight: 600; color: var(--pp-muted); font-size: 12px; text-transform: uppercase; white-space: nowrap; }
.admin-table td { padding: 12px 16px; border-top: 1px solid var(--pp-border); vertical-align: middle; }
.admin-table tr:hover td { background: #fafafa; }
.table-count    { font-size: 13px; color: var(--pp-muted); margin-top: 10px; }

/* Badges */
.badge          { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge-success  { background: #e8f5ee; color: #0a6a3a; }
.badge-warning  { background: #fff7e0; color: #a05800; }
.badge-danger   { background: #fbe8e8; color: var(--pp-red); }
.badge-muted    { background: #f0f0f0; color: #666; }
.badge-billetterie { background: #e8f0fb; color: #0a4a8a; }
.badge-vote        { background: #f0e8f8; color: #5a1fa3; }
.badge-mixte       { background: #fff0e0; color: #a05800; }
.badge-admin       { background: #f0e8f8; color: #5a1fa3; }
.badge-annonceur   { background: #e8f0fb; color: #0a4a8a; }
.badge-acheteur    { background: #f0f0f0; color: #555; }

/* Boutons */
.btn            { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 500; cursor: pointer; border: none; text-decoration: none; transition: all .2s; }
.btn-primary    { background: var(--pp-red); color: #fff; }
.btn-primary:hover { background: var(--pp-red2); }
.btn-outline    { background: transparent; border: 1.5px solid var(--pp-border); color: var(--pp-text); }
.btn-outline:hover { border-color: var(--pp-red); background: #fdf3f3; color: var(--pp-red); }
.btn-success    { background: #1a8a52; color: #fff; border: none; }
.btn-success:hover { background: #156640; }
.btn-danger     { background: var(--pp-red); color: #fff; border: none; }
.btn-danger:hover { background: var(--pp-red2); }
.btn-sm         { padding: 5px 12px; font-size: 12px; }
.btn-lg         { padding: 12px 28px; font-size: 16px; }

/* Actions dans tableau */
.actions        { display: flex; gap: 6px; flex-wrap: wrap; }

/* Filtres */
.filter-bar     { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-bar input, .filter-bar select { padding: 9px 14px; border: 1px solid var(--pp-border); border-radius: var(--radius); font-size: 14px; background: #fff; }
.filter-bar input { flex: 1; min-width: 200px; }

/* Empty state */
.empty-state    { text-align: center; padding: 32px; color: var(--pp-muted); font-size: 14px; }
.empty-cta      { text-align: center; padding: 32px; }
.empty-cta p    { color: var(--pp-muted); margin-bottom: 16px; }

/* Flash messages */
.flash          { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.flash-success  { background: #e8f5ee; color: #0a6a3a; border-left: 4px solid #1a8a52; }
.flash-error    { background: #fbe8e8; color: var(--pp-red); border-left: 4px solid var(--pp-red); }
.flash button   { background: none; border: none; cursor: pointer; font-size: 16px; color: inherit; }

/* Modal */
.modal          { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-box      { background: #fff; border-radius: var(--radius-lg); padding: 24px; max-width: 440px; width: 100%; }
.modal-box h3   { margin: 0 0 16px; font-size: 16px; }
.modal-box textarea { width: 100%; padding: 10px; border: 1px solid var(--pp-border); border-radius: var(--radius); font-size: 14px; resize: vertical; min-height: 100px; }
.modal-actions  { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* Texte */
.text-danger    { color: var(--pp-red); font-size: 12px; }

/* Navbar publique */
.navbar         { background: var(--pp-black); position: sticky; top: 0; z-index: 100; }
.navbar-inner   { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 32px; height: 64px; }
.navbar-logo img { height: 36px; }
.navbar-links   { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; flex: 1; }
.navbar-links a { color: #ccc; text-decoration: none; font-size: 15px; transition: color .2s; }
.navbar-links a:hover, .navbar-links a.active { color: #fff; }
.navbar-actions { display: flex; gap: 10px; align-items: center; }
.navbar-username { color: #ccc; font-size: 14px; }


/* Footer */
.footer         { background: var(--pp-black); color: #aaa; padding: 32px 24px; margin-top: 40px; }
.footer-inner   { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-brand img { height: 32px; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; margin: 0 0 16px; }
.footer-links   { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { color: #aaa; text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-copy    { font-size: 12px; color: #666; margin: 0; }

/* Scanner */
.scanner-page   { max-width: 480px; margin: 2rem auto; padding: 1rem; text-align: center; }

/* Responsive admin */
@media (max-width: 768px) {
  .admin-wrapper { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; }
  .admin-main    { padding: 16px; }
  .stats-grid    { grid-template-columns: 1fr 1fr; }
}

/* ===================================================
   NAVBAR RESPONSIVE
=================================================== */

.navbar {
    position: relative;
}

.navbar-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
}
.navbar-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all .3s;
}
.navbar-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-burger.active span:nth-child(2) { opacity: 0; }
.navbar-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navbar-mobile {
    display: flex;
    flex-direction: column;
    background: #1a1a2e;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.navbar-mobile a {
    color: #ddd !important;
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 15px;
    display: block !important;
}
.navbar-mobile a.btn-primary {
    background: #750808;
    color: #fff !important;
    text-align: center;
    border-radius: 8px;
    margin: 12px 0;
    border-bottom: none;
}
.navbar-mobile hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,.1);
    margin: 4px 0;
}
.navbar-mobile.open {
    max-height: 500px;
    padding: 12px 20px 20px;
}

@media (max-width: 768px) {
    .navbar-links,
    .navbar-actions {
        display: none !important;
    }
    .navbar-burger {
        display: flex;
        margin-left: auto;
    }
    .navbar-inner {
        justify-content: space-between;
        align-items: center;
    }
}
