/* ==========================================
   GLOBAL VARIABLES
   ========================================== */
:root {
  --navy: #0D1B2A;
  --gold: #D4AF37;
  --white: #ffffff;
  --gray: #f6f6f6;
  --bg-darker: #0A1420;
  --panel: #0f1e31;
  --muted: rgba(255,255,255,0.65);
}

/* ==========================================
   BASE LAYOUT
   ========================================== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0D1B2A 0%, #0A1420 100%);
  color: #fff;
  overflow: hidden;
}

/* ==========================================
   LOGIN PAGE
   ========================================== */
.login-container {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 40px 35px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  animation: fadeIn 1s ease-in-out;
}

.login-container img { width: 180px; margin-bottom: 25px; }
h2 { color: var(--gold); font-weight: 600; margin-bottom: 25px; }

/* Inputs */
.input-group { margin-bottom: 20px; text-align: left; flex: 1; }
.input-group label {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}
.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 8px;
  transition: all 0.3s;
}
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.15);
  outline: none;
}

/* Buttons */
.btn {
  background: var(--gold);
  color: var(--navy);
  border: 0;
  padding: 5px 6px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.btn:hover { background: #f1c857; transform: translateY(-2px); }
.btn.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ==========================================
   DASHBOARD SHELL
   ========================================== */
.shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  height: 100vh;
  overflow: hidden;
}
.shell.collapsed { grid-template-columns: 72px 1fr; }

/* Sidebar */
.sidebar {
  background: rgba(255,255,255,0.05);
  border-right: 1px solid rgba(255,255,255,0.12);
  padding: 18px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.brand img { height: 80px; }
.brand .title { color: var(--gold); font-weight: 600; letter-spacing: .5px; }
.nav { margin-top: 14px; }
.nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: #fff;
  border: 0;
  text-align: left;
  padding: 12px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background .2s;
	font-size: 1.2em;
}
.nav button:hover { background: rgba(255,255,255,0.08); }
.nav button.active { background: var(--gold); color: var(--navy); }

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(13,27,42,.8);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  height: 64px;
  flex: 0 0 auto;
}
.search { display: flex; gap: 10px; align-items: center; }
.search input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  min-width: 260px;
}
.user { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1b2c45, #0c1830);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.2);
}
.logout {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.logout:hover { border-color: var(--gold); color: var(--gold); }

/* Main Content */
main { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.main { flex: 1; padding: 18px; overflow: hidden; }
.cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.card {
  grid-column: span 12;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column;
}
.card h3 { color: var(--gold); margin-bottom: 8px; }
.muted { color: var(--muted); font-size: .92rem; }

/* Table */
.table { width: 100%; border-collapse: collapse; margin-top: 10px; table-layout: fixed; }
.table th, .table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.table th { text-align: left; font-size: .85rem; color: var(--gold); }

/* ==========================================
   MODALS
   ========================================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal.open { display: flex !important; }
.modal-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 18px;
  width: min(500px, 90vw);
  color: #fff;
  backdrop-filter: blur(10px);
}

/* ==========================================
   DROPDOWNS
   ========================================== */
select {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s;
}
select:hover { border-color: var(--gold); background: rgba(255,255,255,0.12); }
select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.3);
}
.select-wrapper { position: relative; display: inline-block; width: 200px; }
.select-wrapper::after {
  content: "▼";
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 0.7rem;
  pointer-events: none;
}

/* ==========================================
   BADGES
   ========================================== */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  text-transform: capitalize;
}
.badge-primary { background: rgba(13,110,253,0.15); color: #4da3ff; border-color: rgba(13,110,253,0.35); }
.badge-secondary { background: rgba(108,117,125,0.15); color: #aeb3b9; border-color: rgba(108,117,125,0.35); }
.badge-success { background: rgba(25,135,84,0.15); color: #3edc9f; border-color: rgba(25,135,84,0.35); }
.badge-danger { background: rgba(220,53,69,0.15); color: #ff6f6f; border-color: rgba(220,53,69,0.35); }
.badge-warning { background: rgba(255,193,7,0.15); color: #ffd76a; border-color: rgba(255,193,7,0.35); }
.badge-info { background: rgba(13,202,240,0.15); color: #6ad8ff; border-color: rgba(13,202,240,0.35); }
.badge-light { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.2); }
.badge-dark { background: rgba(0,0,0,0.2); color: #e0e0e0; border-color: rgba(0,0,0,0.4); }
.badge-gold { background: rgba(212,175,55,0.15); color: #e5c75a; border-color: rgba(212,175,55,0.35); }
.badge-purple { background: rgba(147,51,234,0.15); color: #c78fff; border-color: rgba(147,51,234,0.35); }

/* ==========================================
   TOGGLES & META BARS
   ========================================== */
.toggle-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 10px;
}
.toggle-btn {
  flex: 1;
  padding: 10px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.toggle-btn:hover { border-color: var(--gold); color: var(--gold); }
.toggle-btn.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.orders-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}
#orders-last-updated { font-style: italic; }

/* ==========================================
   FINANCE SUMMARY
   ========================================== */
.finance-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.summary-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
	align-items: flex-end;
}
.summary-item .label { font-size: 0.85rem; opacity: 0.7; margin-bottom: 4px; }
.summary-item .value { font-size: 1.3rem; font-weight: 600; color: var(--gold); }
.summary-item.highlight {
  background: rgba(255,215,0,0.08);
  border-color: rgba(255,215,0,0.3);
}

/* ==========================================
   UTILITIES & ANIMATIONS
   ========================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1024px) { .span-4, .span-6, .span-8 { grid-column: span 12; } }
@media (max-width: 900px) { .shell, .shell.collapsed { grid-template-columns: 72px 1fr; } .hide-when-collapsed { display: none; } }

/* ==========================================
   MARKETPLACE EVENT ORDER
   ========================================== */
#panel-marketplace-order .row {
  display: flex;

  gap: 14px;
}

#hall-map-container {
	flex: 8;
}


#categories-container{
	flex: 4;
}

#panel-marketplace-order h4 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 6px;
}

#hall-map {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.qty-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.qty-control button {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.15s;
}
.qty-control button:hover { transform: scale(1.1); }
.qty-control .qty {
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

.loading {
  text-align: center;
  padding: 50px;
  font-weight: 600;
  color: var(--gold);
  font-size: 1.1em;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  #panel-marketplace-order .row { flex-direction: column; }
  #hall-map, #categories-container { width: 100%; }
}


#hall-map svg {
  width: 100%;
  height: auto;
}

#hall-map svg path,
#hall-map svg polygon,
#hall-map svg rect {
  transition: all 0.25s ease;
}

#hall-map svg .highlight {
  stroke: var(--gold);
  stroke-width: 2;
  fill-opacity: 0.7;
}

.hidden { display: none; }
.group-row:hover { background:#222 !important; }
.order-row td { background:#1a1a1a; color:#ccc; }

.dashboard { padding:30px; color:#fff; }
.dashboard h1 { font-size:28px; color:var(--gold); font-weight:700; }
.welcome-card {
  display:flex; align-items:center; justify-content:space-between;
  background:var(--card); border:1px solid var(--stroke);
  border-radius:14px; padding:24px 30px; margin-bottom:30px;
}
.welcome-card img { height:70px; opacity:.8; }
.stats-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:20px; margin-bottom:40px;
}
.stat-card {
  background:var(--card); border:1px solid var(--stroke);
  border-radius:12px; padding:20px; text-align:center;
  transition:all .25s ease;
}
.stat-card:hover { border-color:var(--gold); transform:translateY(-3px); }
.stat-card .icon { font-size:26px; color:var(--gold); margin-bottom:10px; }
.stat-card .label { color:#9fb0c2; font-size:14px; }
.stat-card .value { color:#fff; font-size:22px; font-weight:700; margin-top:6px; }
.section { margin-top:40px; }
.section h2 { color:var(--gold); margin-bottom:16px; font-size:22px; }
.activity-feed, .events-grid {
  background:var(--card); border:1px solid var(--stroke);
  border-radius:12px; padding:20px;
}
.activity-feed .empty, .events-grid .empty {
  color:#9fb0c2; text-align:center; font-style:italic;
}
.activity-item {
  display:flex; align-items:flex-start; gap:10px; margin-bottom:10px;
}
.activity-item .icon { color:var(--gold); margin-top:3px; }
.activity-item .desc { color:#e3e7f1; font-size:15px; }
.activity-item .meta { font-size:12px; color:#9fb0c2; }


/* === SCROLL & LAYOUT FIXES === */
.main, #main-content {
  overflow-y: auto;
  height: calc(100vh - 80px); /* adjust if your topbar is taller */
  padding-bottom: 40px;
}

/* Dashboard section */
.dashboard-section {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Ensure charts and right column wrap on smaller screens */
.dashboard-grid {
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
@media (max-width: 1080px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid .card {
    margin-bottom: 15px;
  }
}

/* Cap chart height to avoid stretching */
.dashboard-grid canvas {
  max-height: 300px;
  width: 100% !important;
}

/* Prevent overflow inside cards with long lists */
.action-list,
.event-list,
.purchase-list,
.activity-feed {
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold, #d4af37) transparent;
}

/* Subtle scrollbar styling (WebKit) */
.action-list::-webkit-scrollbar,
.event-list::-webkit-scrollbar,
.purchase-list::-webkit-scrollbar,
.activity-feed::-webkit-scrollbar {
  width: 6px;
}
.action-list::-webkit-scrollbar-thumb,
.event-list::-webkit-scrollbar-thumb,
.purchase-list::-webkit-scrollbar-thumb,
.activity-feed::-webkit-scrollbar-thumb {
  background-color: var(--gold, #d4af37);
  border-radius: 4px;
}

/* === ORDERS PAGE LAYOUT === */
#panel-orders {
  color: #fff;
  padding: 25px;
  font-family: 'Inter', sans-serif;
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.orders-grid {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 15px;
}

/* === KPI ROW === */
.orders-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 15px;
  flex-shrink: 0;
}
.kpi-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
  cursor: pointer;
}
.kpi-box:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.kpi-icon {
  font-size: 1.5rem;
  color: var(--gold);
}
.kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
}
.kpi-label {
  font-size: 0.9rem;
  color: #9fb0c2;
}

/* === TABLE CONTAINER === */
.orders-table-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  transition: opacity 0.3s ease;
  min-height: 0;
}
.orders-table-container.loading {
  opacity: 0.4;
  pointer-events: none;
}

/* Table header */
.orders-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(20,20,20,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 10px 15px;
  flex-shrink: 0;
}
.table-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Table body */
#orders-table {
  width: 100%;
  border-collapse: collapse;
}
#orders-table thead {
  background: rgba(30,30,30,0.9);
}
#orders-table th, #orders-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
}
#orders-table tbody tr:hover {
  background: rgba(255,255,255,0.05);
}

/* Pagination bar (top-right) */
.pagination-bar.top {
  display: flex;
  gap: 5px;
}
.pagination-bar.top button {
  background: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pagination-bar.top button:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.pagination-bar.top button.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

/* Status badge */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}
.badge-success { background: #2c6b2f; color: #fff; }
.badge-warning { background: #b89a2e; color: #000; }
.badge-primary { background: #2575fc; color: #fff; }
.badge-gold { background: var(--gold); color: #000; }
.badge-secondary { background: #555; color: #fff; }

/* Smooth entry */
.fade-in { animation: fadeIn .4s ease; }
@keyframes fadeIn { from {opacity:0;transform:translateY(6px);} to{opacity:1;transform:none;} }

/* === ORDERS LIST === */
.orders-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}
.loading-state {
  text-align: center;
  color: #999;
  padding: 40px 0;
}

/* Fixture card (group) */
.fixture-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.25s ease;
}
.fixture-header {
  background: rgba(20,20,20,0.9);
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fixture-header:hover {
  background: rgba(255,255,255,0.05);
}
.fixture-header .title {
  font-weight: 600;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}
.fixture-header .meta {
  font-size: 0.85rem;
  color: #9fb0c2;
}
.fixture-body {
  display: none;
  background: rgba(255,255,255,0.02);
  padding: 10px 16px 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.fixture-card.open .fixture-body { display: block; }

/* Mini table within fixture */
.fixture-body table {
  width: 100%;
  border-collapse: collapse;
}
.fixture-body th, .fixture-body td {
  padding: 8px 6px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-align: left;
}
.fixture-body tr:last-child td { border-bottom: none; }
.fixture-body th {
  color: #9fb0c2;
  font-weight: 600;
}
.fixture-body td { color: #ddd; }

/* Pagination bottom */
.pagination-bar.bottom {
  text-align: center;
  margin-top: 8px;
}
.pagination-bar.bottom button {
  background: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 5px 10px;
  margin: 0 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pagination-bar.bottom button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Status badges (unchanged) */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}
.badge-success { background: #2c6b2f; color: #fff; }
.badge-warning { background: #b89a2e; color: #000; }
.badge-primary { background: #2575fc; color: #fff; }
.badge-gold { background: var(--gold); color: #000; }
.badge-secondary { background: #555; color: #fff; }

/* === Tickets Modal === */
.tickets-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}
.tickets-modal {
  background: #1b263b;
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 25px 30px;
  width: 420px;
  text-align: left;
  color: #fff;
  box-shadow: 0 0 30px rgba(0,0,0,0.4);
}
.tickets-modal h3 {
  color: var(--gold);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}
.ticket-files {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
}
.ticket-files li {
  margin: 6px 0;
}
.ticket-files a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  transition: color 0.2s;
}
.ticket-files a:hover {
  color: var(--gold);
}
.btn.gold {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.8rem;
}
.btn.gold:hover {
  background: var(--gold);
  color: #000;
}

/* === Animated Download Arrow === */
.btn.gold .icon-wrap {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  position: relative;
}

.animated-arrow {
  animation: arrowBounce 1.4s infinite ease-in-out;
  color: var(--gold);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.btn.gold:hover .animated-arrow {
  color: #000;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(3px); opacity: 0.7; }
}


/* === Glassy Modal Panel === */
.tickets-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.tickets-modal.glass {
  background: rgba(15, 25, 40, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
  width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  color: #fff;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* === Modal Header === */
.tickets-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 15px 20px;
}

.tickets-modal .modal-header h3 {
  color: var(--gold);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.tickets-modal .close-modal {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.tickets-modal .close-modal:hover { color: var(--gold); }

/* === Modal Body === */
.tickets-modal .modal-body {
  padding: 20px;
}

.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.25s ease;
}

.ticket-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.pdf-icon {
  color: var(--gold);
  font-size: 1.3rem;
}

.file-name {
  font-weight: 600;
  color: #fff;
}

.file-meta {
  font-size: 0.8rem;
  color: #9fb0c2;
}

.btn.small {
  padding: 4px 8px;
  font-size: 0.8rem;
}

.btn.outline {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn.outline:hover {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 8px rgba(212,175,55,0.4);
}


/* === CATEGORY HEADER WITH SPLIT SELECTOR === */
.categories-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 12px;
}

.categories-header h4 {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.split-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.split-selector label {
  font-size: 0.85rem;
  color: #9fb0c2;
}

.split-selector select {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: #fff;
  padding: 5px 8px;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}

.split-selector select:hover {
  border-color: var(--gold);
}

/* === CONNECT PANEL === */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 20px;
  margin-top: 20px;
}

.connect-status {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e74c3c;
  box-shadow: 0 0 8px #e74c3c;
  transition: all 0.3s;
}
.status-dot.connected {
  background: #3ccf4e;
  box-shadow: 0 0 8px #3ccf4e;
}
.api-key-box {
  display: flex;
  gap: 10px;
}
.api-key-box input {
  flex: 1;
}

/* === Modal === */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content.connect-modal {
  background: var(--slate);
  border-radius: 10px;
  padding: 25px;
  width: 90%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.category-row {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 12px;
}
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.category-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
}
.toggle-expand {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
}
.toggle-expand:hover {
  color: var(--gold);
}
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 18px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #555;
  transition: .3s;
  border-radius: 18px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider { background-color: var(--gold); }
input:checked + .slider:before { transform: translateX(20px); }
.switch.mixed .slider { background-color: #ffb347 !important; }

/* Modal footer */
.modal-footer {
  text-align: right;
  margin-top: 15px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .connect-grid { grid-template-columns: 1fr; }
}


/* CONNECT PANEL */
.connect-card {
  padding: 25px;
}

.connect-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 5px;
}

.connect-main {
  display: grid;
  grid-template-columns: 220px 1fr 1fr 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.connect-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100px;
}

.status-block {
  align-items: flex-start;
  justify-content: space-between;
}

.status-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e74c3c;
  box-shadow: 0 0 6px #e74c3c;
}

.status-dot.connected {
  background: #3ccf4e;
  box-shadow: 0 0 6px #3ccf4e;
}

.connect-block label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}

.api-key-box {
  display: flex;
  gap: 6px;
}

.feed-block {
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.markup-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.connect-block input,
.connect-block select {
  width: 100%;
  background: #122032;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  padding: 6px 8px;
}

.btn.gold {
  background: var(--gold);
  color: #000;
}

.btn.gold:hover {
  background: #bfa335;
}

/* Responsive */
@media (max-width: 1100px) {
  .connect-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .connect-main {
    grid-template-columns: 1fr;
  }
}

/* CONNECT PANEL LAYOUT */
.connect-topbar{
  display:flex;justify-content:space-between;align-items:center;
  margin-bottom:15px;
}
.connect-status-box{
  display:flex;align-items:center;gap:8px;
}
.connect-status-box .status-dot{
  width:10px;height:10px;border-radius:50%;background:#3ccf4e;box-shadow:0 0 8px #3ccf4e;
}
.connect-layout{
  display:grid;grid-template-columns:1fr 1fr;gap:25px;
}
.subcard{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:8px;
  padding:18px;
  margin-bottom:20px;
}
.subcard h4{color:var(--gold);margin:0 0 10px;}
.api-key-box{display:flex;gap:6px;}
.toggle-row{display:flex;justify-content:space-between;align-items:center;margin-top:6px;}
.feed-list{margin-top:10px;}
.feed-item{
  display:flex;justify-content:space-between;align-items:center;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.05);
  border-radius:6px;padding:8px 12px;margin-bottom:6px;
  transition:background .2s;
}
.feed-item:hover{background:rgba(255,255,255,0.08);}
.feed-controls{display:flex;align-items:center;gap:6px;}
.summary .summary-line{display:flex;justify-content:space-between;margin-bottom:4px;font-size:13px;color:var(--muted);}
.event-search{
  width:100%;padding:8px 10px;margin:10px 0;
  border:1px solid rgba(255,255,255,0.1);border-radius:6px;
  background:#122032;color:#fff;
}
.events-list .event-item{
  display:flex;justify-content:space-between;align-items:center;
  background:rgba(255,255,255,0.03);padding:6px 10px;margin-bottom:4px;border-radius:6px;
}
.switch{position:relative;display:inline-block;width:38px;height:18px;}
.switch input{opacity:0;width:0;height:0;}
.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background:#555;transition:.3s;border-radius:18px;}
.slider:before{content:"";position:absolute;height:12px;width:12px;left:3px;bottom:3px;background:white;transition:.3s;border-radius:50%;}
input:checked+.slider{background:var(--gold);}
input:checked+.slider:before{transform:translateX(20px);}


/* Form field styling */
.connect-left input,
.connect-left select {
  width:100%;
  background:#0f1b2b;
  border:1px solid rgba(255,255,255,0.15);
  color:#fff;
  padding:8px 10px;
  border-radius:6px;
  margin:4px 0 10px;
  font-size:14px;
  transition:border .2s,background .2s;
}
.connect-left input:focus,
.connect-left select:focus {
  outline:none;
  border-color:var(--gold);
  background:#16263a;
}

/* Modal restyle */
.modal {display:none;align-items:center;justify-content:center;
  position:fixed;top:0;left:0;width:100%;height:100%;
  background:rgba(0,0,0,0.6);backdrop-filter:blur(4px);z-index:1000;
}
.modal-content.connect-modal {
  background:#1b263b;
  border-radius:10px;
  width:90%;max-width:780px;
  max-height:85vh;
  overflow:hidden;
  display:flex;flex-direction:column;
  box-shadow:0 0 25px rgba(0,0,0,0.4);
}
.connect-modal h3 {
  margin:0;padding:18px 22px;
  border-bottom:1px solid rgba(255,255,255,0.1);
  color:var(--gold);
}
.event-search {
  margin:12px 22px;
  padding:8px 10px;
  border-radius:6px;
  border:1px solid rgba(255,255,255,0.1);
  background:#122032;color:#fff;
}
.events-list {
  padding:0 22px 15px;
  flex:1;
  overflow-y:auto;
}
.events-list::-webkit-scrollbar{width:6px;}
.events-list::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.1);border-radius:4px;}
.event-item {
  display:flex;justify-content:space-between;align-items:center;
  background:rgba(255,255,255,0.04);
  padding:8px 12px;margin-bottom:6px;border-radius:6px;
  transition:background .2s;
}
.event-item:hover {background:rgba(255,255,255,0.08);}
.modal-footer {
  border-top:1px solid rgba(255,255,255,0.1);
  padding:12px 22px;text-align:right;
  background:#16263a;
}

/* Connect layout tidy */
.form-row{margin-bottom:10px;}
.form-row input,
.form-row select{
  width:100%;
  max-width:340px;
  background:#0f1b2b;
  border:1px solid rgba(255,255,255,0.15);
  border-radius:6px;
  color:#fff;
  padding:8px 10px;
  font-size:14px;
}
.form-row select{appearance:none;}
.form-row input:focus,
.form-row select:focus{outline:none;border-color:var(--gold);background:#16263a;}
.markup-inline{display:flex;align-items:center;gap:8px;}
.connect-actions{display:flex;align-items:center;gap:10px;}

/* Developer Guide modal */
.modal-content.connect-modal{background:#1b263b;border-radius:10px;box-shadow:0 0 25px rgba(0,0,0,0.4);}
.connect-modal h3{margin:0;padding:18px 22px;border-bottom:1px solid rgba(255,255,255,0.1);color:var(--gold);}
.event-search{margin:12px 22px;padding:8px 10px;border-radius:6px;border:1px solid rgba(255,255,255,0.1);background:#122032;color:#fff;width:calc(100% - 44px);}
.events-list{padding:0 22px 15px;flex:1;overflow-y:auto;}
.event-item{display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,0.04);padding:8px 12px;margin-bottom:6px;border-radius:6px;}
.event-item:hover{background:rgba(255,255,255,0.08);}
.modal-footer{border-top:1px solid rgba(255,255,255,0.1);padding:12px 22px;text-align:right;background:#16263a;}

.brand img {
  height: 80px;
  transition: height 0.25s ease;
}


@media (max-width: 768px) {
  .brand img {
    height: 40px;
  }
}

/* ==========================================
   NAV POLISH OVERRIDES
   ========================================== */
.sidebar {
  background: linear-gradient(180deg, rgba(9, 23, 38, 0.96), rgba(8, 20, 33, 0.98));
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 14px 10px 12px;
}

.sidebar .brand {
  padding: 8px 10px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar .brand img {
  height: 52px;
}

.sidebar .nav {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar .nav button {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 10px;
  gap: 10px;
  color: #d4deea;
}

.sidebar .nav button i {
  margin: 0;
  width: 16px;
  text-align: center;
  font-size: 0.92rem;
  opacity: 0.88;
}

.sidebar .nav .nav-label {
  min-width: 0;
}

.sidebar .nav .nav-count {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  padding: 0 6px;
  background: rgba(212, 175, 55, 0.18);
  color: #f4e2a9;
  border: 1px solid rgba(212, 175, 55, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.sidebar .nav button.active .nav-count {
  background: rgba(9, 22, 38, 0.18);
  color: #c99516;
  border-color: rgba(9, 22, 38, 0.42);
}

.sidebar .nav button:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
  color: #ffffff;
}

.sidebar .nav button.active {
  background: rgba(212,175,55,0.16);
  color: #f4e2a9;
  border-color: rgba(212,175,55,0.42);
  box-shadow: inset 0 0 0 1px rgba(212,175,55,0.16);
}

.sidebar .nav button.active i {
  color: #d4af37;
  opacity: 1;
}

.collapse-wrap {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-logout {
  flex: 1 1 auto;
  min-height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  color: #d4deea;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 8px;
  background: rgba(255,255,255,0.04);
  font-size: 0.82rem;
  font-weight: 600;
}

.sidebar-logout:hover {
  border-color: rgba(212,175,55,0.55);
  color: #d4af37;
  background: rgba(212,175,55,0.08);
}

.collapse-wrap .collapse {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  color: #d4deea;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.collapse-wrap .collapse:hover {
  border-color: rgba(212,175,55,0.55);
  color: #d4af37;
}

.shell.collapsed .sidebar .brand img {
  height: 34px;
}

.shell.collapsed .sidebar .nav button {
  justify-content: center;
}

.shell.collapsed .sidebar .nav button i {
  width: auto;
}

.shell.collapsed .sidebar .sidebar-logout {
  flex: 0 0 auto;
  width: 32px;
  padding: 0;
}

/* ==========================================
   PORTAL CONTENT STABILITY
   ========================================== */
.shell {
  min-height: 100vh;
}

.shell > main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#main-content.main {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  overflow: auto;
  padding: 16px;
}

/* ==========================================
   PORTAL LAYOUT HARD FIX
   ========================================== */
.shell {
  display: flex !important;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.sidebar {
  display: flex;
  flex-direction: column;
  flex: 0 0 260px;
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  overflow: hidden;
}

.shell > main {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  overflow: hidden;
}

.shell.collapsed .sidebar,
body.collapsed .sidebar {
  flex-basis: 72px;
  width: 72px;
  min-width: 72px;
  max-width: 72px;
}

.shell.collapsed .hide-when-collapsed,
body.collapsed .hide-when-collapsed {
  display: none !important;
}

.sidebar .nav button i {
  margin: 0 !important;
}

/* ==========================================
   MOBILE SHELL OVERRIDES
   ========================================== */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 9, 18, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 1190;
}

.mobile-close {
  display: none;
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: #dbe6f3;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 900px) {
  html, body {
    overflow: auto;
    height: 100%;
  }

  .shell {
    display: block !important;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .shell > main {
    width: 100%;
    height: 100dvh;
    overflow: hidden;
  }

  #main-content.main {
    padding: 12px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(82vw, 290px) !important;
    min-width: min(82vw, 290px) !important;
    max-width: min(82vw, 290px) !important;
    z-index: 1200;
    transform: translateX(-104%);
    transition: transform 0.24s ease;
    box-shadow: 8px 0 28px rgba(0,0,0,0.34);
    overflow-y: auto;
    padding: 12px 10px 14px;
  }

  .shell.nav-open .sidebar {
    transform: translateX(0);
  }

  .shell.nav-open + .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-close {
    display: inline-flex;
  }

  .sidebar .brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .sidebar .brand img {
    height: 42px;
  }

  .sidebar .nav button {
    padding: 11px 10px;
    font-size: 0.92rem;
  }

  .hide-when-collapsed {
    display: inline !important;
  }

  .collapse-wrap {
    display: none;
  }
}

/* ==========================================
   2026 Global Theme Refresh (TSG Access)
   ========================================== */
:root {
  --ink-1: #071326;
  --ink-2: #0b1e3a;
  --ink-3: #112b4d;
  --surface-1: rgba(255, 255, 255, 0.07);
  --surface-2: rgba(255, 255, 255, 0.04);
  --stroke-1: rgba(255, 255, 255, 0.16);
  --stroke-2: rgba(255, 255, 255, 0.11);
  --text-1: #eaf2ff;
  --text-2: #a7bddb;
  --accent: #3cc4ff;
  --accent-2: #1e8bff;
  --success-1: #77e1a8;
  --gold: #3cc4ff;
  --navy: #071326;
  --slate: #0b1e3a;
  --panel: #112b4d;
  --muted: #a7bddb;
}

html, body {
  font-family: "Sora", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:
    radial-gradient(900px 500px at 15% 20%, #1a3f74 0%, transparent 60%),
    radial-gradient(700px 450px at 85% 85%, #0d4a67 0%, transparent 60%),
    linear-gradient(135deg, var(--ink-1), var(--ink-2) 52%, var(--ink-3)) !important;
  color: var(--text-1);
}

.shell > main,
.main {
  background: transparent !important;
}

.sidebar {
  background: linear-gradient(180deg, rgba(8, 20, 36, 0.88), rgba(9, 22, 38, 0.94)) !important;
  border-right: 1px solid var(--stroke-1) !important;
  box-shadow: inset -1px 0 0 rgba(255,255,255,0.05);
}

.brand img {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.nav button {
  color: var(--text-1) !important;
  border: 1px solid transparent;
  font-weight: 700;
}

.nav button:hover {
  background: rgba(60, 196, 255, 0.14) !important;
  border-color: rgba(60, 196, 255, 0.28);
}

.nav button.active {
  background: linear-gradient(135deg, rgba(30, 139, 255, 0.94), rgba(60, 196, 255, 0.94)) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(30, 139, 255, 0.35);
}

#topbar,
.topbar {
  background: linear-gradient(180deg, rgba(10, 27, 47, 0.95), rgba(8, 22, 39, 0.95)) !important;
  border-bottom: 1px solid var(--stroke-1) !important;
}

#topbar .page-header h1,
#topbar .page-header h1 i,
#page-title-text {
  color: var(--text-1) !important;
}

#topbar .title-underline {
  background: linear-gradient(90deg, var(--accent-2), var(--accent)) !important;
}

#topbar .avatar,
.avatar {
  background: linear-gradient(135deg, var(--accent-2), var(--accent)) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
}

#topbar .currency-switch .tsg-select-trigger {
  background: linear-gradient(180deg, rgba(18, 41, 69, 0.95), rgba(13, 33, 57, 0.95)) !important;
  border-color: rgba(113, 184, 241, 0.44) !important;
}

#topbar .currency-switch .tsg-select-menu {
  background: linear-gradient(180deg, rgba(17, 41, 70, 0.98), rgba(12, 30, 52, 0.98)) !important;
  border-color: rgba(113, 184, 241, 0.35) !important;
}

.card,
.db-card,
.db-kpi,
.mp-table-card,
.fixture-card,
.orders-detail-wrap,
.order-card,
.adm-card,
.adm-kpi,
.set-card,
.fin-card,
.team-card {
  background: var(--surface-2) !important;
  border: 1px solid var(--stroke-2) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.card h3,
.db-card h3,
.db-kpi .value,
.orders-detail-title,
.fixture-title,
.table-title,
.mp-event-title {
  color: var(--text-1) !important;
}

.muted,
.mp-muted,
.db-refresh,
.db-kpi .label,
.fixture-meta,
.order-card-meta,
.company,
.mp-event-meta {
  color: var(--text-2) !important;
}

.btn,
button.btn,
.btn.gold {
  background: linear-gradient(135deg, var(--accent-2), var(--accent)) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  box-shadow: 0 8px 22px rgba(30, 139, 255, 0.32);
}

.btn:hover,
button.btn:hover,
.btn.gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(30, 139, 255, 0.45);
}

.btn.ghost,
.btn.outline,
.orders-back,
.logout {
  background: rgba(255,255,255,0.03) !important;
  color: var(--text-1) !important;
  border: 1px solid var(--stroke-1) !important;
  box-shadow: none !important;
}

.btn.ghost:hover,
.btn.outline:hover,
.orders-back:hover,
.logout:hover {
  background: rgba(60, 196, 255, 0.12) !important;
  border-color: rgba(60, 196, 255, 0.38) !important;
  color: #eaf6ff !important;
}

input,
select,
textarea,
.orders-search,
.search input {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid var(--stroke-1) !important;
  color: var(--text-1) !important;
  border-radius: 10px !important;
}

input::placeholder,
textarea::placeholder {
  color: #9bb2d1;
}

input:focus,
select:focus,
textarea:focus,
.orders-search:focus,
.search input:focus {
  border-color: rgba(60, 196, 255, 0.65) !important;
  box-shadow: 0 0 0 2px rgba(60, 196, 255, 0.2) !important;
  outline: none !important;
}

.table th,
.db-table th,
.order-table th,
#mp-table th,
#orders-table th {
  color: #cce8ff !important;
  border-bottom-color: rgba(255,255,255,0.14) !important;
}

.table td,
.db-table td,
.order-table td,
#mp-table td,
#orders-table td {
  border-bottom-color: rgba(255,255,255,0.09) !important;
}

.table tbody tr:hover,
.db-table tbody tr:hover,
.order-table tbody tr:hover,
#mp-table tbody tr:hover,
#orders-table tbody tr:hover,
.fixture-card:hover,
.event-item:hover {
  background: rgba(60, 196, 255, 0.10) !important;
}

.modal,
.mpe-modal,
.tickets-modal-backdrop {
  background: rgba(3, 11, 21, 0.72) !important;
  backdrop-filter: blur(6px);
}

.modal-card,
.mpe-modal-card,
.tickets-modal,
.tickets-modal.glass,
.modal-content.connect-modal {
  background: linear-gradient(180deg, rgba(11, 29, 49, 0.96), rgba(8, 22, 39, 0.97)) !important;
  border: 1px solid var(--stroke-1) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4) !important;
}

.badge-success {
  background: rgba(119, 225, 168, 0.18) !important;
  color: #aef5ca !important;
  border-color: rgba(119, 225, 168, 0.42) !important;
}

.badge-warning {
  background: rgba(255, 206, 122, 0.18) !important;
  color: #ffe0a0 !important;
  border-color: rgba(255, 206, 122, 0.42) !important;
}

.badge-danger {
  background: rgba(255, 129, 129, 0.18) !important;
  color: #ffc2c2 !important;
  border-color: rgba(255, 129, 129, 0.42) !important;
}

.badge-primary,
.badge-gold {
  background: rgba(60, 196, 255, 0.18) !important;
  color: #bcecff !important;
  border-color: rgba(60, 196, 255, 0.42) !important;
}

@media (max-width: 900px) {
  #topbar,
  .topbar {
    padding: 8px 10px !important;
  }

  #main-content.main {
    padding: 10px !important;
  }

  .mp-wrap,
  #panel-orders.orders-panel,
  #panel-dashboard.db-wrap {
    padding: 10px !important;
  }
}

