/* ================================================================
   Bulldog Champions – Brand Ambassador Platform
   Main Stylesheet
   ================================================================ */

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

:root {
  --gold:         #c9a227;
  --gold-light:   #e4bc45;
  --gold-dark:    #9e7d1a;
  --gold-dim:     rgba(201,162,39,.15);
  --bg-app:       #1a1714;
  --bg-card:      #252118;
  --bg-card2:     #2e2a22;
  --bg-sidebar:   #0f0e0b;
  --bg-input:     #2a261e;
  --border:       rgba(201,162,39,.2);
  --text:         #f0ead8;
  --text-muted:   #9e9580;
  --text-dark:    #6b6355;
  --success:      #4caf7d;
  --error:        #e05252;
  --warning:      #f0a430;
  --info:         #5b9bd5;
  --radius:       10px;
  --radius-lg:    16px;
  --sidebar-w:    240px;
  --sidebar-w-sm: 66px;
  --shadow:       0 4px 24px rgba(0,0,0,.4);
  --transition:   .22s ease;
}

html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-app);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
}

/* ── Layout ────────────────────────────────────────────────────── */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  transition: margin-left var(--transition);
  min-width: 0;
}

.main-content.collapsed { margin-left: var(--sidebar-w-sm); }

/* ── Sidebar ───────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: width var(--transition);
  overflow: hidden;
}

.sidebar.collapsed { width: var(--sidebar-w-sm); }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 14px 14px;
  border-bottom: 1px solid var(--border);
  min-height: 76px;
  flex-shrink: 0;
}

.sidebar-logo {
  width: 120px;
  transition: opacity var(--transition), width var(--transition);
  object-fit: contain;
}

.sidebar.collapsed .sidebar-logo { width: 0; opacity: 0; }

.collapse-btn {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  font-size: 1.1rem;
  transition: background var(--transition);
  flex-shrink: 0;
}
.collapse-btn:hover { background: var(--gold-dim); }

.sidebar-nav {
  list-style: none;
  padding: 10px 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--text-muted);
  border-radius: var(--radius);
  margin: 2px 8px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  overflow: hidden;
}

.nav-link:hover,
.nav-item.active .nav-link {
  background: var(--gold-dim);
  color: var(--gold-light);
}

.nav-item.active .nav-link { border-left: 3px solid var(--gold); padding-left: 13px; }

.nav-icon {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.nav-label {
  font-size: .88rem;
  font-weight: 500;
  transition: opacity var(--transition), width var(--transition);
}

.sidebar.collapsed .nav-label { opacity: 0; width: 0; overflow: hidden; }

.nav-link-danger { color: #e05252 !important; }
.nav-link-danger:hover { background: rgba(224,82,82,.12) !important; color: #ff7070 !important; }

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding-bottom: 6px;
}

/* Tooltip when collapsed */
.sidebar.collapsed .nav-item:hover::after {
  content: attr(data-label);
  position: absolute;
  left: calc(var(--sidebar-w-sm) + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card2);
  color: var(--text);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: .82rem;
  white-space: nowrap;
  border: 1px solid var(--border);
  pointer-events: none;
  z-index: 200;
}

/* ── Top Bar ───────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 62px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
}

.topbar-left h1 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}
.topbar-left p { font-size: .8rem; color: var(--text-muted); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  border: 2px solid var(--gold);
  overflow: hidden;
}

.topbar-avatar img { width: 100%; height: 100%; object-fit: cover; }

.topbar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--gold);
  color: #1a1714;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
}
.topbar-btn:hover { background: var(--gold-light); color: #1a1714; }

/* ── Page Body ─────────────────────────────────────────────────── */
.page-body { padding: 28px; }

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.card-sm { padding: 16px; }
.card-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title i { color: var(--gold); }

/* ── Stat Cards ────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.stat-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-label i { color: var(--gold); font-size: .85rem; }

.stat-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat-sub { font-size: .78rem; color: var(--text-muted); }

/* ── Progress Bar ──────────────────────────────────────────────── */
.progress-wrap { background: var(--bg-card2); border-radius: 99px; height: 8px; overflow: hidden; }
.progress-bar {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transition: width .6s ease;
}

/* ── Grid Layouts ──────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

/* ── Quick Actions ─────────────────────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  text-align: center;
}
.quick-btn:hover {
  background: var(--bg-card2);
  border-color: rgba(255,255,255,.15);
  transform: translateY(-2px);
  color: var(--text);
}

.quick-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.quick-btn span { font-size: .8rem; font-weight: 600; color: var(--text); }

/* ── Activity Feed ─────────────────────────────────────────────── */
.activity-list { list-style: none; display: flex; flex-direction: column; }

.activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }

.activity-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.activity-text { font-size: .86rem; color: var(--text); line-height: 1.4; font-weight: 500; }

.activity-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
}

.activity-time {
  font-size: .75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.activity-detail { font-size: .75rem; color: var(--text-dark); }

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 14px;
  transition: gap var(--transition);
}
.view-all-link:hover { gap: 10px; color: var(--gold-light); }

/* ── Dashboard Layout Grid ─────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  align-items: start;
}

.dash-col-left,
.dash-col-right { display: flex; flex-direction: column; }

/* ── Events List ───────────────────────────────────────────────── */
.events-list { display: flex; flex-direction: column; gap: 10px; }

.event-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--bg-card2);
  border-left: 3px solid transparent;
}

.event-item-gold   { border-left-color: var(--gold); }
.event-item-teal   { border-left-color: #4caf7d; }
.event-item-blue   { border-left-color: #5b9bd5; }

.event-item-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 38px;
}
.event-day   { font-size: 1.15rem; font-weight: 700; line-height: 1; }
.event-month { font-size: .65rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); letter-spacing: .05em; }

.event-item-info { flex: 1; }
.event-item-title { font-size: .86rem; font-weight: 600; margin-bottom: 4px; }

.event-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  color: var(--text-muted);
}
.event-item-meta i { margin-right: 3px; }

.event-badge {
  padding: 2px 8px;
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 600;
}
.event-badge-online   { background: rgba(76,175,125,.18); color: #4caf7d; }
.event-badge-inperson { background: rgba(201,162,39,.18); color: var(--gold); }

/* ── Engagement Row (updated) ──────────────────────────────────── */
.engage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.engage-row:last-child { border-bottom: none; }

.engage-label { font-size: .82rem; flex: 1; min-width: 0; }

.engage-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.engage-bar { width: 100px; }

.engage-score {
  font-size: .75rem;
  color: var(--text-muted);
  min-width: 44px;
  text-align: right;
}

/* ── eCommerce Platform ────────────────────────────────────────── */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
}
.platform-active {
  background: rgba(76,175,125,.15);
  color: #4caf7d;
  border: 1px solid rgba(76,175,125,.3);
}
.platform-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4caf7d;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

.platform-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-top: 12px;
}
.platform-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-card2);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.platform-stat span:last-child { font-size: 1rem; }

/* ── Tier Qualification Factors ────────────────────────────────── */
.tier-factors { display: flex; flex-direction: column; gap: 2px; }

.tier-factor {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.tier-factor:last-child { border-bottom: none; }

.tier-factor-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}

.tier-factor-info { flex: 1; }
.tier-factor-title { font-size: .84rem; font-weight: 600; }
.tier-factor-sub   { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }

.tier-factor-check { color: var(--text-dark); font-size: 1rem; }

/* ── Tables ────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

thead th {
  background: var(--bg-card2);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .06em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
tbody tr:hover { background: var(--gold-dim); }
tbody tr:last-child { border-bottom: none; }

td { padding: 12px 16px; color: var(--text); vertical-align: middle; }

/* ── Badges ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-gold    { background: rgba(201,162,39,.18); color: var(--gold-light); }
.badge-success { background: rgba(76,175,125,.18); color: #6bcf9e; }
.badge-error   { background: rgba(224,82,82,.18);  color: #ff8080; }
.badge-warning { background: rgba(240,164,48,.18); color: #f5bf6a; }
.badge-muted   { background: rgba(255,255,255,.06); color: var(--text-muted); }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary   { background: var(--gold); color: #1a1714; }
.btn-primary:hover { background: var(--gold-light); color: #1a1714; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-danger    { background: var(--error); color: #fff; }
.btn-danger:hover { background: #c44; }

.btn-success   { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(1.1); }

.btn-sm { padding: 5px 12px; font-size: .8rem; }
.btn-icon { padding: 7px; }

/* ── Forms ─────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }

.form-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 10px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-control::placeholder { color: var(--text-dark); }

select.form-control { cursor: pointer; }
select.form-control option { background: var(--bg-card2); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: .78rem; color: var(--error); margin-top: 4px; }

/* Checkbox / Role toggles */
.role-grid { display: flex; flex-wrap: wrap; gap: 10px; }

.role-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  user-select: none;
  font-size: .85rem;
}
.role-check:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold-light);
}
.role-check input { display: none; }

/* ── Alerts ────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .88rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: rgba(76,175,125,.15); border: 1px solid rgba(76,175,125,.3); color: #6bcf9e; }
.alert-error   { background: rgba(224,82,82,.15);  border: 1px solid rgba(224,82,82,.3);  color: #ff8080; }
.alert-warning { background: rgba(240,164,48,.15); border: 1px solid rgba(240,164,48,.3); color: #f5bf6a; }
.alert-info    { background: rgba(91,155,213,.15); border: 1px solid rgba(91,155,213,.3); color: #7fb8e8; }

/* ── Modal ─────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text); }

/* ── Engagement Overview ───────────────────────────────────────── */
.engage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.engage-row:last-child { border-bottom: none; }
.engage-bar-wrap { width: 120px; }
.mb-4 { margin-bottom: 20px; }

/* ── Avatar initials ───────────────────────────────────────────── */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  background: var(--gold-dark);
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar-sm { width: 32px; height: 32px; font-size: .78rem; }
.avatar-md { width: 42px; height: 42px; font-size: .9rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; }

/* ── Welcome Banner ────────────────────────────────────────────── */
.welcome-banner {
  background: linear-gradient(135deg, var(--bg-card2) 0%, #1e1a10 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.welcome-text h2 { font-size: 1.3rem; font-weight: 700; }
.welcome-text p  { color: var(--text-muted); font-size: .88rem; margin-top: 4px; }

/* ── Event Banner ──────────────────────────────────────────────── */
.event-card {
  background: linear-gradient(135deg, #1d1600 0%, #2a200a 100%);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.event-icon { font-size: 1.6rem; color: var(--gold); }
.event-info h3 { font-size: .95rem; font-weight: 600; margin-bottom: 4px; }
.event-info p  { font-size: .82rem; color: var(--text-muted); }
.event-meta { display: flex; gap: 14px; font-size: .8rem; color: var(--text-muted); margin-top: 6px; }
.event-meta i { color: var(--gold); margin-right: 4px; }
.event-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ── Login Page ────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-app);
  padding: 24px;
}

.login-logo { width: 190px; margin-bottom: 28px; }

.login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.login-card h2 { color: #1a1714; font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 6px; }
.login-card .subtitle {
  color: #888;
  font-size: .88rem;
  text-align: center;
  margin-bottom: 26px;
}
.login-card .subtitle a { color: var(--gold); }

.login-card .form-label { color: #555; }

.login-card .form-control {
  background: #f6f4f0;
  border-color: #ddd;
  color: #222;
}
.login-card .form-control:focus { border-color: var(--gold); }
.login-card .form-control::placeholder { color: #aaa; }

.login-btn {
  width: 100%;
  padding: 12px;
  background: var(--gold);
  color: #1a1714;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 4px;
}
.login-btn:hover { background: var(--gold-light); }

.login-demo {
  text-align: center;
  font-size: .8rem;
  color: #999;
  margin-top: 18px;
}
.login-demo a { color: var(--gold-dark); }

.login-footer {
  margin-top: 22px;
  font-size: .85rem;
  color: var(--text-muted);
  text-align: center;
}
.login-footer a { color: var(--gold); font-weight: 600; }

/* ── Misc Utilities ────────────────────────────────────────────── */
.d-flex      { display: flex; }
.align-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.mt-1   { margin-top: 6px; }
.mt-2   { margin-top: 12px; }
.mt-3   { margin-top: 18px; }
.mt-4   { margin-top: 24px; }
.mb-2   { margin-bottom: 12px; }
.mb-3   { margin-bottom: 18px; }
.mb-4   { margin-bottom: 24px; }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.text-sm     { font-size: .82rem; }
.text-xs     { font-size: .75rem; }
.font-bold   { font-weight: 700; }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius); }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-header h2 { font-size: 1.3rem; font-weight: 700; }
.page-header p  { font-size: .85rem; color: var(--text-muted); margin-top: 3px; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .grid-2, .grid-3, .form-row { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2,1fr); }
  .platform-stats { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 640px) {
  .sidebar { width: var(--sidebar-w-sm); }
  .sidebar .nav-label { opacity: 0; width: 0; overflow: hidden; }
  .sidebar .sidebar-logo { width: 0; opacity: 0; }
  .main-content { margin-left: var(--sidebar-w-sm); }
  .page-body { padding: 16px; }
  .topbar { padding: 0 16px; }
  .welcome-banner { flex-direction: column; }
  .event-card { flex-direction: column; align-items: flex-start; }
  .event-actions { width: 100%; }
  .quick-actions { grid-template-columns: repeat(2,1fr); }
  .platform-stats { grid-template-columns: 1fr 1fr; }
  .login-card { padding: 26px 20px; }
  .engage-bar { width: 70px; }
}

/* ================================================================
   PWA Install Prompt
   ================================================================ */

/* ── Bottom banner ───────────────────────────────────────────── */
#pwa-banner {
  position: fixed;
  bottom: -110px;
  left: 0; right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #252118 0%, #1e1b13 100%);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -6px 30px rgba(0,0,0,.6);
  transition: bottom .45s cubic-bezier(.34,1.3,.64,1);
}
#pwa-banner.visible { bottom: 0; }

.pwa-banner-icon img {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-card2);
}
.pwa-banner-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pwa-banner-body strong { color: var(--text); font-size: .88rem; white-space: nowrap; }
.pwa-banner-body span   { color: var(--text-muted); font-size: .76rem; }

.pwa-btn-install {
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 9px 20px;
  font-weight: 700;
  font-size: .84rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .1s;
}
.pwa-btn-install:hover  { background: var(--gold-light); }
.pwa-btn-install:active { transform: scale(.97); }

.pwa-btn-dismiss {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 1rem; padding: 4px 8px;
  line-height: 1;
  transition: color .2s;
}
.pwa-btn-dismiss:hover { color: var(--text); }

/* ── Install modal ───────────────────────────────────────────── */
.pwa-modal-box { text-align: center; max-width: 380px; }

.pwa-modal-logo {
  width: 72px; height: 72px;
  object-fit: contain;
  border-radius: 18px;
  margin-bottom: 14px;
  background: var(--bg-card2);
  padding: 8px;
  border: 1px solid rgba(201,162,39,.2);
}
.pwa-modal-box h3 { color: var(--gold); margin: 0 0 10px; font-size: 1.15rem; }
.pwa-modal-box p  { color: var(--text-muted); font-size: .87rem; margin: 0 0 20px; line-height: 1.55; }

.pwa-modal-features {
  display: flex; gap: 8px; justify-content: center;
  margin-bottom: 22px; flex-wrap: wrap;
}
.pwa-feature {
  background: var(--gold-dim);
  color: var(--gold-light);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: .78rem;
  display: flex; align-items: center; gap: 6px;
}

.pwa-modal-install {
  width: 100%; margin-bottom: 10px;
  padding: 12px; font-size: .95rem; font-weight: 700;
}
.pwa-modal-skip {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: .83rem; text-decoration: underline; width: 100%;
  transition: color .2s;
}
.pwa-modal-skip:hover { color: var(--text); }

/* ── Sidebar install button ──────────────────────────────────── */
.nav-link-install { color: var(--gold) !important; }
.nav-link-install:hover { background: var(--gold-dim) !important; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  #pwa-banner { padding: 12px 14px; gap: 8px; }
  .pwa-banner-body strong { font-size: .82rem; }
  .pwa-btn-install { padding: 8px 14px; font-size: .8rem; }
}
