/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1B2A4A;
  --primary-light: #2C3E6B;
  --primary-lighter: #3D5A99;
  --accent: #4A90D9;
  --accent-light: #E8F0FE;
  --success: #27AE60;
  --success-light: #E8F8F0;
  --warning: #F39C12;
  --warning-light: #FEF5E7;
  --danger: #E74C3C;
  --danger-light: #FDECEB;
  --info: #8E44AD;
  --info-light: #F3E8F9;

  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --border: #E0E4EA;
  --border-light: #EEF1F5;

  --text: #1B2A4A;
  --text-secondary: #6B7A90;
  --text-muted: #9BA5B4;
  --text-inverse: #FFFFFF;

  --sidebar-width: 260px;
  --header-height: 64px;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(27,42,74,.06);
  --shadow: 0 2px 8px rgba(27,42,74,.08);
  --shadow-lg: 0 8px 24px rgba(27,42,74,.12);
  --shadow-xl: 0 16px 48px rgba(27,42,74,.16);

  --transition: 200ms ease;
}

html { font-size: 15px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-lighter) 100%);
  padding: 20px;
}
.login-container {
  width: 100%;
  max-width: 960px;
  display: flex;
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.login-hero {
  flex: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lighter) 100%);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}
.login-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
}
.login-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; position: relative; }
.login-hero p { font-size: 1.05rem; opacity: .85; line-height: 1.7; position: relative; }
.login-hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  position: relative;
}
.login-hero-stat strong { display: block; font-size: 1.5rem; font-weight: 700; }
.login-hero-stat span { font-size: .85rem; opacity: .7; }

.login-form-side {
  flex: 1;
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.login-logo span { color: var(--accent); }
.login-subtitle { color: var(--text-secondary); margin-bottom: 36px; font-size: .95rem; }

.login-portal-cards { display: flex; flex-direction: column; gap: 14px; }
.login-portal-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.login-portal-card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.login-portal-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.login-portal-icon svg { width: 24px; height: 24px; }
.login-portal-icon.patron { background: var(--accent-light); color: var(--accent); }
.login-portal-icon.producer { background: var(--success-light); color: var(--success); }
.login-portal-icon.admin { background: var(--info-light); color: var(--info); }
.login-portal-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.login-portal-card p { font-size: .82rem; color: var(--text-secondary); }

/* ===== HOME PÚBLICA (2 vias) ===== */
.home-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, #24345C 0%, var(--primary) 55%, #121E34 100%);
  position: relative;
  overflow: hidden;
}
.home-page::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 10%;
  width: 80%;
  height: 90%;
  background: radial-gradient(circle, rgba(124,182,242,.14) 0%, transparent 65%);
  pointer-events: none;
}
.home-inner {
  position: relative;
  max-width: 980px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.home-logo { font-size: 2.4rem; font-weight: 800; color: #F4F8FF; letter-spacing: -1px; margin-bottom: 18px; }
.home-logo span { color: #7CB6F2; }
.home-title { color: #fff; font-size: 2.3rem; font-weight: 800; line-height: 1.2; max-width: 800px; margin-bottom: 14px; }
.home-lead { color: rgba(255,255,255,.82); font-size: 1.02rem; line-height: 1.7; max-width: 800px; }
.home-lead strong { color: #fff; }
.home-pa { color: #7CB6F2; font-weight: 700; }

.home-vias {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 880px;
  margin-top: 36px;
}
.home-via {
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  padding: 28px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.home-via:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--accent); }
.home-via-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.home-via-icon svg { width: 26px; height: 26px; }
.home-via-icon.via-inv { background: var(--accent-light); color: var(--accent); }
.home-via-icon.via-rec { background: var(--success-light); color: var(--success); }
.home-via-kicker { text-transform: uppercase; letter-spacing: 1.5px; font-size: .72rem; font-weight: 800; color: var(--accent); margin: 16px 0 6px; }
.home-via-kicker.kicker-rec { color: var(--success); }
.home-via h2 { font-size: 1.45rem; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.home-via p { font-size: .92rem; color: var(--text-secondary); line-height: 1.65; }
.home-via-cta { margin-top: 16px; font-weight: 700; font-size: .95rem; color: var(--accent); }
.home-via-cta.cta-rec { color: var(--success); }

.home-stats { display: flex; gap: 44px; margin-top: 38px; color: #fff; }
.home-stat strong { display: block; font-size: 1.45rem; font-weight: 800; }
.home-stat span { font-size: .83rem; opacity: .65; }
.home-foot { margin-top: 30px; font-size: .87rem; }
.home-foot a { color: rgba(255,255,255,.75); text-decoration: none; }
.home-foot a:hover { color: #fff; text-decoration: underline; }
.home-foot-sep { color: rgba(255,255,255,.4); margin: 0 10px; }

/* nível 2 — escolha do perfil dentro da via */
.via-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 38px 42px;
  max-width: 620px;
  width: 100%;
  max-height: 94vh;
  overflow-y: auto;
}
.via-voltar { display: inline-block; font-size: .85rem; color: var(--text-secondary); text-decoration: none; margin-bottom: 14px; }
.via-voltar:hover { color: var(--accent); }
.via-card .home-via-kicker { margin: 0 0 4px; }
.via-titulo { font-size: 1.65rem; font-weight: 800; color: var(--text-primary); margin-bottom: 10px; }
.via-intro { font-size: .92rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 22px; }
.via-nota {
  margin-top: 22px;
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .85rem;
  line-height: 1.6;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .home-vias { grid-template-columns: 1fr; }
  .home-title { font-size: 1.6rem; }
  .home-lead { font-size: .93rem; }
  .home-stats { gap: 24px; flex-wrap: wrap; justify-content: center; }
  .via-card { padding: 28px 22px; }
}

/* ===== LAYOUT ===== */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  background: var(--primary);
  color: var(--text-inverse);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform .3s ease;
}
.sidebar-logo {
  padding: 20px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.sidebar-logo span { color: rgba(255,255,255,.6); font-weight: 400; }

.sidebar-section { padding: 16px 0 8px; }
.sidebar-section-title {
  padding: 0 24px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,.35);
  font-weight: 600;
  margin-bottom: 8px;
}
.sidebar-nav { list-style: none; flex: 1; overflow-y: auto; }
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-item:hover {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.06);
}
.sidebar-item.active {
  color: #fff;
  background: rgba(255,255,255,.1);
  border-left-color: var(--accent);
}
.sidebar-item svg { width: 20px; height: 20px; flex-shrink: 0; opacity: .7; }
.sidebar-item.active svg { opacity: 1; }

.sidebar-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.sidebar-footer svg { width: 18px; height: 18px; opacity: .5; flex-shrink: 0; }
.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .85rem;
}
.sidebar-user-name { font-size: .85rem; font-weight: 500; }
.sidebar-user-role { font-size: .72rem; color: rgba(255,255,255,.5); }

.main-area {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-burger {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.header-burger svg { width: 22px; height: 22px; color: var(--text); }
.header-title { font-size: 1.1rem; font-weight: 600; }
.header-spacer { flex: 1; }
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: .85rem;
  min-width: 220px;
}
.header-search svg { width: 16px; height: 16px; }
.header-icon-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  color: var(--text-secondary);
  position: relative;
}
.header-icon-btn:hover { background: var(--bg); color: var(--text); }
.header-icon-btn svg { width: 20px; height: 20px; }
.header-notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--surface);
}

.content { padding: 28px 32px; flex: 1; }

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-header h1 { font-size: 1.5rem; font-weight: 700; }
.page-header p { color: var(--text-secondary); font-size: .9rem; margin-top: 2px; }
.page-header-actions { display: flex; gap: 10px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .88rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
}
.btn-primary:hover { background: #3A7BC8; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary {
  background: var(--primary);
  color: var(--text-inverse);
}
.btn-secondary:hover { background: var(--primary-light); }
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--surface);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.btn-success { background: var(--success); color: var(--text-inverse); }
.btn-success:hover { background: #219653; }
.btn-sm { padding: 7px 14px; font-size: .82rem; }
.btn-lg { padding: 13px 28px; font-size: .95rem; }
.btn-icon { padding: 8px; }

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-header h3 { font-size: .95rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-header h3 svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-secondary); }
.card-body { padding: 22px; }
.card-body.compact { padding: 14px 22px; }

/* ===== STAT CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-icon.blue { background: var(--accent-light); color: var(--accent); }
.stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-icon.orange { background: var(--warning-light); color: var(--warning); }
.stat-icon.purple { background: var(--info-light); color: var(--info); }
.stat-label { font-size: .82rem; color: var(--text-secondary); margin-bottom: 4px; }
.stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.stat-change {
  font-size: .78rem;
  font-weight: 600;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ===== GRID ===== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}
tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: .9rem;
  vertical-align: middle;
}
tbody tr { transition: var(--transition); }
tbody tr:hover { background: var(--bg); }
tbody tr:last-child td { border-bottom: none; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-info { background: var(--accent-light); color: var(--accent); }
.badge-neutral { background: var(--bg); color: var(--text-secondary); }
.badge-purple { background: var(--info-light); color: var(--info); }
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.green { background: var(--success); }
.status-dot.orange { background: var(--warning); }
.status-dot.red { background: var(--danger); }
.status-dot.blue { background: var(--accent); }
.status-dot.gray { background: var(--text-muted); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
.form-input, .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  transition: var(--transition);
  background: var(--surface);
  color: var(--text);
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,144,217,.15);
}
.form-input::placeholder { color: var(--text-muted); }

/* ===== SEARCH BAR (Busca Inteligente) ===== */
.smart-search {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.smart-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  transition: var(--transition);
}
.smart-search-bar:focus-within { border-color: var(--accent); background: var(--surface); }
.smart-search-bar svg { width: 22px; height: 22px; color: var(--text-muted); flex-shrink: 0; }
.smart-search-bar input {
  flex: 1;
  border: none;
  background: none;
  font-size: 1rem;
  color: var(--text);
  outline: none;
}
.smart-search-bar input::placeholder { color: var(--text-muted); }
.smart-search-bar .btn { flex-shrink: 0; }
.smart-search-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: .8rem;
  color: var(--text-muted);
}
.smart-search-hint svg { width: 14px; height: 14px; }

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 500;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.filter-chip:hover, .filter-chip.active {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}
.filter-chip svg { width: 14px; height: 14px; }

/* ===== EVENT CARDS ===== */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.event-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.event-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.event-card-banner {
  height: 160px;
  position: relative;
  overflow: hidden;
}
.event-card-banner-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-card-gradient {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.event-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  background: rgba(255,255,255,.92);
  color: var(--primary);
  backdrop-filter: blur(8px);
}
.event-card-body { padding: 18px; }
.event-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .8rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.event-card-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.event-card-meta-item svg { width: 14px; height: 14px; }
.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.event-card-price { font-weight: 700; color: var(--primary); }
.event-card-price span { font-size: .78rem; color: var(--text-secondary); font-weight: 400; }
.event-card-cotas { font-size: .8rem; color: var(--text-secondary); }

/* ===== MATCH SCORE ===== */
.match-score {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.match-score-value { font-size: .85rem; font-weight: 700; color: var(--primary); }
.match-score-ring {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
}
.match-score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.match-score-ring circle {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}
.match-score-ring .bg { stroke: var(--border); }
.match-score-ring .fg { stroke: var(--success); transition: stroke-dashoffset .6s ease; }

.match-score-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 700;
}
.match-score-bar {
  width: 60px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.match-score-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .6s ease;
}
.match-high .match-score-bar-fill { background: var(--success); }
.match-med .match-score-bar-fill { background: var(--warning); }
.match-low .match-score-bar-fill { background: var(--danger); }

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab-item {
  padding: 12px 20px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.tab-item:hover { color: var(--text); }
.tab-item.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== INVENTORY STATUS ===== */
.inventory-status {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.inventory-status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
  background: var(--surface);
}
.inventory-status-item:hover { background: var(--bg); }
.inventory-status-item.active { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.inventory-status-count { font-weight: 700; }

/* ===== CHARTS (CSS-BASED MOCKUP) ===== */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 180px;
  padding-top: 10px;
}
.chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}
.chart-bar {
  width: 100%;
  max-width: 40px;
  border-radius: 6px 6px 0 0;
  transition: height .6s ease;
  position: relative;
}
.chart-bar.primary { background: var(--accent); }
.chart-bar.light { background: var(--accent-light); border: 1px solid var(--border); }
.chart-bar-label {
  font-size: .7rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.chart-bar-value {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.donut-chart {
  width: 140px;
  height: 140px;
  position: relative;
  margin: 0 auto;
}
.donut-chart svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-chart circle {
  fill: none;
  stroke-width: 20;
  cx: 70;
  cy: 70;
  r: 54;
}
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.donut-center strong { font-size: 1.3rem; font-weight: 700; }
.donut-center span { font-size: .72rem; color: var(--text-secondary); }
.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
}
.donut-legend-color {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ===== EVENT DETAIL ===== */
.event-detail-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}
.event-detail-banner {
  height: 240px;
  position: relative;
}
.event-detail-info {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.event-detail-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.event-detail-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.event-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  color: var(--text-secondary);
}
.event-detail-meta-item svg { width: 16px; height: 16px; }

/* ===== CATALOG ITEMS ===== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.catalog-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}
.catalog-item:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.catalog-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.catalog-item-name { font-weight: 600; font-size: .95rem; }
.catalog-item-desc { font-size: .82rem; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.5; }
.catalog-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.catalog-item-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); }

/* ===== PROPOSAL LIST ===== */
.proposal-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}
.proposal-item:last-child { border-bottom: none; }
.proposal-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
  color: var(--text-inverse);
}
.proposal-info { flex: 1; min-width: 0; }
.proposal-info h4 { font-size: .9rem; font-weight: 600; }
.proposal-info p { font-size: .8rem; color: var(--text-secondary); }
.proposal-value { font-weight: 700; text-align: right; }
.proposal-value span { display: block; font-size: .78rem; color: var(--text-secondary); font-weight: 400; }

/* ===== ACTIVITY FEED ===== */
.activity-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
}
.activity-item:not(:last-child) { border-bottom: 1px solid var(--border-light); }
.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.activity-text { font-size: .85rem; }
.activity-text strong { font-weight: 600; }
.activity-time { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }

/* ===== MEDIA KIT ===== */
.media-kit-preview {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.media-kit-header {
  padding: 32px;
  text-align: center;
}
.media-kit-section {
  padding: 24px 32px;
  border-top: 1px solid var(--border-light);
}
.media-kit-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.media-kit-section h3 svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-secondary); }
.media-kit-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.media-kit-stat {
  text-align: center;
  padding: 18px;
  background: var(--bg);
  border-radius: var(--radius);
}
.media-kit-stat strong { display: block; font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.media-kit-stat span { font-size: .78rem; color: var(--text-secondary); }
.media-kit-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.media-kit-photo {
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state svg { width: 64px; height: 64px; margin-bottom: 16px; opacity: .4; }
.empty-state h3 { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: .88rem; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27,42,74,.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn .2s ease;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp .3s ease;
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h2 { font-size: 1.1rem; font-weight: 700; }
.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  color: var(--text-secondary);
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ===== FILTER SIDEBAR ===== */
.search-layout { display: flex; gap: 24px; }
.search-filters {
  width: 260px;
  flex-shrink: 0;
}
.search-results { flex: 1; min-width: 0; }
.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.search-results-header span { color: var(--text-secondary); font-size: .88rem; }
.filter-section { margin-bottom: 22px; }
.filter-section-title {
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-secondary);
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: .85rem;
  cursor: pointer;
}
.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

/* ===== CALENDAR MINI ===== */
.calendar-mini { width: 100%; }
.calendar-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.calendar-header-row h4 { font-size: .9rem; font-weight: 600; }
.calendar-grid-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.calendar-day-header {
  text-align: center;
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px;
}
.calendar-day {
  text-align: center;
  padding: 6px;
  font-size: .8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.calendar-day:hover { background: var(--bg); }
.calendar-day.other { color: var(--text-muted); }
.calendar-day.today { background: var(--accent); color: var(--text-inverse); font-weight: 600; }
.calendar-day.event { background: var(--accent-light); color: var(--accent); font-weight: 600; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn .4s ease; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .search-layout { flex-direction: column; }
  .search-filters { width: 100%; }
  .login-container { flex-direction: column; }
  .login-hero { padding: 40px 32px; }
  .login-form-side { padding: 40px 32px; }
  .event-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .media-kit-photos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .header-burger { display: flex; }
  .header { padding: 0 16px; }
  .content { padding: 20px 16px; }
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 1.2rem; }
  .event-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .tabs { gap: 0; }
  .tab-item { padding: 10px 14px; font-size: .82rem; }
  .login-hero-stats { flex-direction: column; gap: 16px; }
  .inventory-status { flex-wrap: wrap; }
  .filter-chips { gap: 6px; }
  .event-detail-info { flex-direction: column; align-items: flex-start; }
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 99;
}
.sidebar-overlay.open { display: block; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== UTILITIES ===== */
.icon-badge { width: 22px; height: 22px; flex-shrink: 0; }
.icon-badge svg { width: 100%; height: 100%; }
.icon-inline { display: inline-flex; width: 14px; height: 14px; vertical-align: -2px; }
.icon-inline svg { width: 100%; height: 100%; }
.help-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-secondary);
  font-size: .68rem;
  font-weight: 700;
  cursor: help;
  margin-left: 6px;
  vertical-align: 1px;
}
.help-tip .help-tip-box {
  display: none;
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 8px;
  z-index: 80;
  box-shadow: var(--shadow-lg);
  text-align: left;
  white-space: normal;
}
.help-tip:hover .help-tip-box { display: block; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-accent { color: var(--accent); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
