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

:root {
  --bg: #f5f9f6;
  --bg-card: #ffffff;
  --bg-input: #f0f5f1;
  --bg-hover: #e6efe8;
  --border: #d4e0d6;
  --border-light: #c0d0c3;
  --text: #1a2e1f;
  --text-sec: #4a6650;
  --text-dim: #7a9480;
  --primary: #22c55e;
  --primary-hover: #16a34a;
  --primary-dim: rgba(34,197,94,0.10);
  --primary-glow: rgba(34,197,94,0.25);
  --success: #22c55e;
  --success-dim: rgba(34,197,94,0.10);
  --danger: #ef4444;
  --danger-dim: rgba(239,68,68,0.10);
  --warning: #f59e0b;
  --warning-dim: rgba(245,158,11,0.10);
  --cyan: #06b6d4;
  --cyan-dim: rgba(6,182,212,0.10);
  --purple: #8b5cf6;
  --purple-dim: rgba(139,92,246,0.10);
  --gradient-start: #e8f5ec;
  --gradient-end: #f0fdf4;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --navbar-height: 64px;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --bg: #0a0d0b;
  --bg-card: #141a16;
  --bg-input: #1c241e;
  --bg-hover: #242e27;
  --border: #283028;
  --border-light: #344036;
  --text: #e8f0ea;
  --text-sec: #a0b8a6;
  --text-dim: #6a8070;
  --primary-dim: rgba(34,197,94,0.12);
  --primary-glow: rgba(34,197,94,0.18);
  --success-dim: rgba(34,197,94,0.12);
  --danger-dim: rgba(239,68,68,0.12);
  --warning-dim: rgba(245,158,11,0.12);
  --cyan-dim: rgba(6,182,212,0.12);
  --purple-dim: rgba(139,92,246,0.12);
  --gradient-start: #0a0d0b;
  --gradient-end: #0f1512;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.30);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.40);
}

html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.bg-effects {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
}

[data-theme="dark"] .bg-grid { opacity: 0.08; }

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

.bg-glow-1 {
  width: 700px; height: 700px;
  top: -250px; right: -150px;
  background: radial-gradient(circle, rgba(34,197,94,0.10) 0%, rgba(34,197,94,0.04) 40%, transparent 70%);
}

.bg-glow-2 {
  width: 550px; height: 550px;
  bottom: -180px; left: -120px;
  background: radial-gradient(circle, rgba(34,197,94,0.08) 0%, rgba(34,197,94,0.03) 50%, transparent 70%);
}

.bg-glow-3 {
  width: 450px; height: 450px;
  top: 40%; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(34,197,94,0.06) 0%, transparent 70%);
}

[data-theme="dark"] .bg-glow-1 { background: radial-gradient(circle, rgba(34,197,94,0.05) 0%, rgba(34,197,94,0.03) 40%, transparent 70%); }
[data-theme="dark"] .bg-glow-2 { background: radial-gradient(circle, rgba(34,197,94,0.04) 0%, rgba(34,197,94,0.02) 50%, transparent 70%); }
[data-theme="dark"] .bg-glow-3 { background: radial-gradient(circle, rgba(34,197,94,0.03) 0%, transparent 70%); }

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-height);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: var(--shadow-sm), inset 0 -1px 0 var(--primary-dim);
}

[data-theme="dark"] .navbar {
  background: rgba(14,18,15,0.88);
  box-shadow: var(--shadow-md), inset 0 -1px 0 rgba(34,197,94,0.15);
}

[data-theme="dark"] .navbar { background: rgba(26,31,28,0.85); }

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 24px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon { flex-shrink: 0; }

.brand-text {
  font-size: 20px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 2px;
  color: var(--text);
  background: linear-gradient(135deg, var(--primary) 0%, #15803d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.navbar-tab {
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}

.navbar-tab:hover { color: var(--text); background: var(--bg-hover); }

.navbar-tab.active { color: var(--primary); background: var(--primary-dim); }

.navbar-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

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

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-sec);
  transition: all var(--transition);
}

.theme-toggle:hover { background: var(--bg-hover); color: var(--text); border-color: var(--border-light); }

.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.navbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 1001;
  overflow: hidden;
  animation: fadeInUp 0.15s ease;
}

.user-dropdown.open { display: block; }

.user-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.user-dropdown button:hover { background: var(--bg-hover); }

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
  color: var(--text);
}

.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0; right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
  animation: slideDown 0.2s ease;
}

.mobile-menu.open { display: flex; }

.mobile-menu .navbar-tab { width: 100%; text-align: left; padding: 12px 16px; font-size: 15px; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--navbar-height) + 24px) 20px 40px;
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.tab-panel { display: none; animation: fadeInUp 0.3s ease; }
.tab-panel.active { display: block; }

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

.page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(34,197,94,0.04);
  transition: all var(--transition);
}

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

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn:active { transform: scale(0.97); }

.btn-primary { background: linear-gradient(135deg, #2dd468 0%, var(--primary) 50%, #15803d 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 50%, #166534 100%); box-shadow: 0 4px 18px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.1); }

.btn-secondary { background: var(--bg-input); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-light); }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #16a34a; }

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

.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #d97706; }

.btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-ghost:hover { background: var(--primary-dim); }

.btn.small { padding: 6px 14px; font-size: 13px; border-radius: var(--radius-xs); }
.btn.full { width: 100%; }

.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sec);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  transition: all var(--transition);
  font-family: inherit;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.form-textarea { resize: vertical; min-height: 80px; }
.form-select { cursor: pointer; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.error-msg { color: var(--danger); font-size: 13px; font-weight: 500; margin-bottom: 12px; min-height: 0; }
.error-msg:empty { display: none; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending { background: var(--warning-dim); color: var(--warning); }
.status-confirmed { background: var(--purple-dim); color: var(--purple); }
.status-deposited { background: var(--cyan-dim); color: var(--cyan); }
.status-releasing { background: var(--warning-dim); color: var(--warning); }
.status-claimed { background: var(--cyan-dim); color: var(--cyan); }
.status-completed { background: var(--success-dim); color: var(--success); }
.status-cancelled { background: var(--danger-dim); color: var(--danger); }
.status-disputed { background: var(--danger-dim); color: var(--danger); }
.status-user { background: var(--primary-dim); color: var(--primary); }
.status-staff { background: var(--purple-dim); color: var(--purple); }
.status-owner { background: var(--warning-dim); color: var(--warning); }

.status-badge.pulse { animation: statusPulse 2s ease-in-out infinite; }

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.steps-tracker {
  display: flex;
  align-items: center;
  margin: 20px 0;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  transition: all 0.4s ease;
  position: relative;
}

.step.done .step-dot { background: var(--primary); border-color: var(--primary); color: #fff; }

.step.active .step-dot {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-dim);
  animation: stepGlow 1.5s ease-in-out infinite;
}

@keyframes stepGlow {
  0%, 100% { box-shadow: 0 0 0 4px var(--primary-dim); }
  50% { box-shadow: 0 0 0 8px var(--primary-dim); }
}

.step-label {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
  text-align: center;
  font-weight: 500;
}

.step.done .step-label, .step.active .step-label { color: var(--primary); }

.steps-line {
  position: absolute;
  top: 16px;
  left: 10%; right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.steps-line-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.6s ease;
}

.deal-list { display: flex; flex-direction: column; gap: 12px; }

.deal-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.deal-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.deal-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.deal-item-title { font-weight: 600; font-size: 15px; color: var(--text); }
.deal-item-users { font-size: 13px; color: var(--text-sec); margin-bottom: 4px; }
.deal-item-meta { font-size: 12px; color: var(--text-dim); }

.deal-participants { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.deal-participants .deal-participant { flex: 1; min-width: 0; }

.deal-participant {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  flex: 1;
  min-width: 0;
  transition: all 0.4s ease;
  border: 1px solid transparent;
  overflow: hidden;
}

.deal-participant .participant-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.deal-participant .participant-role { font-size: 11px; }

.deal-participant .confirm-check { font-size: 12px; min-width: 18px; width: 18px; height: 18px; }

.deal-participant.confirmed {
  background: var(--success-dim);
  border-color: var(--success);
}

.deal-participant.confirmed .participant-name { color: var(--success); }

.participant-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
  font-size: 14px;
}

.participant-name { font-weight: 600; font-size: 14px; transition: color 0.4s ease; }
.participant-role { font-size: 12px; color: var(--text-dim); }

.confirm-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 12px;
  margin-left: auto;
  animation: confirmPop 0.4s ease;
}

@keyframes confirmPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.celebration {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.confetti-piece {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 2px;
  animation: confettiFall 1.5s ease-out forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.tabs-inline {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border);
}

.tab-inline-btn {
  padding: 8px 16px;
  background: none;
  border: none;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sec);
  cursor: pointer;
  transition: all var(--transition);
  flex: 1;
  text-align: center;
}

.tab-inline-btn:hover { color: var(--text); }
.tab-inline-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

table { width: 100%; border-collapse: collapse; }

th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  background: var(--bg-input);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-hover); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-value { font-size: 32px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-dim); margin-top: 4px; font-weight: 500; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.game-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.game-card.selected {
  border-color: var(--primary);
  background: var(--primary-dim);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.game-card-name { font-weight: 600; font-size: 14px; color: var(--text); margin-top: 8px; }
.game-card-icon { font-size: 28px; display: block; margin-bottom: 4px; }

.staff-profiles {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.staff-profiles::-webkit-scrollbar { height: 6px; }
.staff-profiles::-webkit-scrollbar-track { background: var(--bg-input); border-radius: 3px; }
.staff-profiles::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

.staff-card {
  flex-shrink: 0;
  width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  scroll-snap-align: start;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.staff-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.staff-card-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.staff-card-name { font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 4px; }

.staff-card-specialty {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 8px;
}

.staff-card-bio {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.star-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.star-filter-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sec);
  cursor: pointer;
  transition: all var(--transition);
}

.star-filter-btn:hover { border-color: var(--primary); color: var(--text); }
.star-filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.star-filter-btn .count { opacity: 0.7; font-size: 12px; }

.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  animation: fadeInUp 0.3s ease backwards;
}

.review-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.review-user-info { flex: 1; }
.review-username { font-weight: 600; font-size: 14px; color: var(--text); }
.review-target { font-size: 12px; color: var(--text-dim); }
.review-stars { color: var(--warning); font-size: 14px; letter-spacing: 2px; }

.review-content {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.5;
  margin-bottom: 12px;
}

.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
}

.review-type-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.review-type-badge.crypto { background: var(--cyan-dim); color: var(--cyan); }
.review-type-badge.roblox { background: var(--purple-dim); color: var(--purple); }
.review-type-badge.custom { background: var(--warning-dim); color: var(--warning); }

.chat-container {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
  background: var(--bg-card);
}

.chat-messages {
  height: 300px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 75%;
  animation: fadeInUp 0.2s ease;
}

.chat-msg.own {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
  transition: background 0.15s;
}

.chat-upload-btn:hover { background: var(--bg-hover); }

.chat-msg:not(.own):not(.system) {
  align-items: flex-start;
}

.chat-msg.system {
  align-self: center;
  text-align: left;
  width: 95%;
}

.chat-system-bubble {
  background: var(--primary-dim);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-system-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 12px;
}

.chat-system-content {
  color: var(--text-sec);
  word-break: break-word;
}

.chat-embed {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

.embed-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: var(--bg-input);
}

.embed-header.confirmed { color: var(--primary); }

.deposit-embed { border-left: 3px solid var(--primary); }
.confirmed-embed { border-left: 3px solid var(--primary); }
.pending-embed { border-left: 3px solid var(--warning); }
.embed-header.pending { color: var(--warning); }

.embed-body {
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.embed-qr {
  flex-shrink: 0;
}

.embed-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.embed-field-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.embed-field-value {
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
}

.embed-copyable {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: border-color 0.15s;
}

.embed-copyable:hover {
  border-color: var(--primary);
}

.embed-copyable span:first-child {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
  font-size: 12px;
}

.embed-copy-icon {
  flex-shrink: 0;
  font-size: 14px;
  opacity: 0.5;
}

@media (max-width: 480px) {
  .embed-body { flex-direction: column; }
  .embed-qr { align-self: center; }
}

.panel-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.panel-sidebar {
  width: 220px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

.panel-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 20px;
  text-decoration: none;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 2px;
  font-size: 16px;
  color: var(--primary);
}

.panel-nav { flex: 1; }

.panel-nav-section {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding: 8px 12px 4px;
  font-weight: 600;
}

.panel-nav-btn {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: var(--radius-xs);
  color: var(--text-sec);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 2px;
}

.panel-nav-btn:hover { background: var(--bg-hover); color: var(--text); }
.panel-nav-btn.active { background: var(--primary-dim); color: var(--primary); font-weight: 600; }

.panel-sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.panel-content {
  flex: 1;
  padding: 32px;
  margin-left: 220px;
  min-height: 100vh;
}

.panel-table {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.panel-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.panel-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-input);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

.panel-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.panel-table tr:last-child td { border-bottom: none; }
.panel-table tr:hover td { background: var(--bg-hover); }

@media (max-width: 768px) {
  .panel-sidebar { width: 100%; position: static; flex-direction: row; overflow-x: auto; padding: 8px; }
  .panel-content { margin-left: 0; padding: 16px; }
  .panel-layout { flex-direction: column; }
  .panel-nav { display: flex; gap: 4px; }
  .panel-nav-section { display: none; }
  .panel-sidebar-footer { display: none; }
}

.chat-msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
  width: fit-content;
  max-width: 100%;
}

.chat-msg:not(.own) .chat-msg-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-msg.own .chat-msg-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg-info {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 2px;
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
}

.chat-msg.own .chat-msg-info { justify-content: flex-end; }
.chat-msg-user { font-weight: 600; color: var(--text-sec); }

.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.chat-input-bar input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
}

.chat-input-bar input:focus { outline: none; border-color: var(--primary); }

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: modalBgIn 0.2s ease;
  padding: 20px;
}

@keyframes modalBgIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
}

.deal-view-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 1000px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
}

.deal-view-card .modal-body {
  flex: 1;
  overflow: hidden;
  padding: 0;
}

.deal-split {
  display: flex;
  height: 100%;
  overflow: hidden;
}

.deal-split-info {
  width: 40%;
  min-width: 300px;
  overflow-y: auto;
  padding: 20px;
  border-right: 1px solid var(--border);
}

.deal-split-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.deal-split-chat .chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  height: auto;
  max-height: none;
}

.deal-split-chat .chat-input-bar {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .deal-split {
    flex-direction: column;
  }
  .deal-split-info {
    width: 100%;
    min-width: auto;
    max-height: 45%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .deal-split-chat {
    flex: 1;
    min-height: 0;
  }
  .deal-view-card {
    max-width: 100%;
    height: 95vh;
  }
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 { font-size: 18px; font-weight: 600; color: var(--text); }

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-dim);
  cursor: pointer;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition);
}

.modal-close:hover { background: var(--bg-hover); color: var(--text); }

.modal-body { padding: 24px; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
  font-size: 15px;
}

.info-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.info-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-section p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
  margin-bottom: 8px;
}

.info-section ul { list-style: none; padding: 0; }

.info-section li {
  font-size: 14px;
  color: var(--text-sec);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.info-section li:last-child { border-bottom: none; }
.info-section li b { color: var(--text); }

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.auth-container {
  width: 100%;
  max-width: 440px;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.4s ease;
  position: relative;
}

.auth-back-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  background: transparent;
  border: none;
  color: var(--text-sec);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s, color 0.15s;
}
.auth-back-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.auth-close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-sec);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.auth-close-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.auth-brand {
  text-align: center;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.auth-brand .brand-text { font-size: 28px; }

.auth-subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 28px;
}

.auth-form h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 16px;
}

.auth-switch a { color: var(--primary); font-weight: 600; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-dim);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--primary); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.login-prompt { text-align: center; padding: 60px 20px; }
.login-prompt h3 { font-size: 20px; margin-bottom: 8px; color: var(--text); }
.login-prompt p { color: var(--text-dim); margin-bottom: 20px; }
.login-prompt .btn { margin: 0 6px; }

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.filter-btn {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sec);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover { border-color: var(--primary); color: var(--text); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.deal-detail-section { margin-bottom: 20px; }

.deal-detail-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.deal-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }

.deal-info-item {
  padding: 12px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
}

.deal-info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 4px;
  font-weight: 600;
}

.deal-info-value { font-size: 15px; font-weight: 600; color: var(--text); }

.deal-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }

.shimmer {
  background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-hover) 50%, var(--bg-input) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

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

.pw-req {
  font-size: 12px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}

.pw-req::before {
  content: '\2715';
  position: absolute;
  left: 0;
  color: var(--danger);
  font-size: 11px;
}

.pw-req.met {
  color: var(--primary);
}

.pw-req.met::before {
  content: '\2713';
  color: var(--primary);
}

.settings-layout {
  display: flex;
  min-height: 400px;
}

.settings-sidebar {
  width: 180px;
  border-right: 1px solid var(--border);
  padding: 8px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-tab {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  border-radius: var(--radius-xs);
  color: var(--text-sec);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.settings-tab:hover { background: var(--bg-hover); color: var(--text); }
.settings-tab.active { background: var(--primary-dim); color: var(--primary); font-weight: 600; }

.settings-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.settings-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  bottom: 2px;
  background: var(--text-dim);
  border-radius: 50%;
  transition: 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
  border-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: #fff;
}

@media (max-width: 600px) {
  .settings-layout { flex-direction: column; }
  .settings-sidebar {
    width: 100%;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }
  .settings-tab { white-space: nowrap; text-align: center; }
}

.staff-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}

.info-boxes-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.info-boxes-row .fee-info-box,
.info-boxes-row .tos-info-box {
  flex: 1;
  margin-bottom: 0;
}

.info-note-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.5;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .info-boxes-row { flex-direction: column; }
}

.tos-info-box {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

[data-theme="dark"] .tos-info-box {
  background: rgba(59,130,246,0.06);
  border-color: rgba(59,130,246,0.2);
}

.fee-info-box {
  background: var(--primary-dim);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.5;
}

.fee-info-note {
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(34,197,94,0.08);
  border-radius: var(--radius-xs);
  font-size: 13px;
  color: var(--text-sec);
  border-left: 3px solid var(--primary);
}

.deal-counter-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-left: 12px;
}

.deal-counter-label {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-dim);
}

.deal-counter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.notif-bell { position: relative; padding: 4px; color: var(--text-sec); display: flex; align-items: center; justify-content: center; }
.notif-bell:hover { color: var(--text); }
.notif-badge { position: absolute; top: -4px; right: -6px; background: var(--danger, #ef4444); color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.notif-dropdown { display: none; position: absolute; top: 100%; right: 0; width: 320px; max-height: 400px; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0,0,0,0.3); z-index: 1000; margin-top: 8px; }
.notif-dropdown.open { display: block; }
.notif-item { padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.notif-item:hover { background: var(--bg-input); }
.notif-item:last-child { border-bottom: none; }

.invite-toast {
  background: var(--bg-card) !important;
  border: 1px solid var(--primary) !important;
  color: var(--text) !important;
  padding: 14px 18px !important;
  opacity: 1 !important;
  transform: none !important;
}

.confirm-popup-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(4px);
}

.confirm-popup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s ease;
}

.deal-actions-full {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.deal-actions-full .btn.full {
  width: 100%;
  border-radius: var(--radius-sm);
}

.fee-divider {
  border: none;
  border-top: 2px solid var(--border);
  margin: 16px 0;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 20px 0;
  margin-top: 40px;
  box-shadow: inset 0 1px 0 rgba(34,197,94,0.12);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.footer-text {
  font-size: 13px;
  color: var(--text-dim);
}

.about-hero {
  text-align: center;
  padding: 60px 20px 48px;
}

.about-hero-badge {
  margin-bottom: 16px;
  display: inline-block;
  animation: fadeInUp 0.5s ease;
}

.about-hero-title {
  font-size: 48px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #2dd468 0%, var(--primary) 50%, #15803d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  animation: fadeInUp 0.5s ease 0.1s backwards;
}

.about-hero-tagline {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-sec);
  margin-bottom: 16px;
  animation: fadeInUp 0.5s ease 0.2s backwards;
}

.about-hero-desc {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.7;
  animation: fadeInUp 0.5s ease 0.3s backwards;
}

.about-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.5s ease 0.4s backwards;
}

.about-trust-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px;
  margin-bottom: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
}

.about-features { margin-bottom: 48px; }

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.about-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(34,197,94,0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(180deg, var(--primary-dim) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.about-feature-card:hover::before { opacity: 1; }

.about-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.about-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.about-feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.about-feature-card p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
}

.about-processes { margin-bottom: 48px; }

.about-process {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.about-process-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.about-step:last-child { border-bottom: none; }

.about-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #15803d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(34,197,94,0.3);
  flex-shrink: 0;
}

.about-step-content {
  flex: 1;
}

.about-step-content strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.about-step-content p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.5;
  margin: 0;
}

.about-process-diagram { margin-bottom: 20px; }

.process-actors {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 20px;
}

.process-actor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sec);
}

.process-actor-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.process-actor-icon.seller { background: var(--primary); }
.process-actor-icon.mm { background: var(--purple); }
.process-actor-icon.buyer { background: var(--cyan); }

.about-process-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--primary-dim);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.5;
  border-left: 3px solid var(--primary);
}

.about-fees { margin-bottom: 48px; }

.about-cta {
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.about-cta h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.about-cta p {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .navbar-tabs { display: none; }
  .hamburger { display: flex; }
  .navbar-user span { display: none; }
  .content { padding: calc(var(--navbar-height) + 16px) 12px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .review-list { grid-template-columns: 1fr; }
  .deal-info-grid { grid-template-columns: 1fr; }
  .deal-participants { flex-direction: column; gap: 12px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .modal-card, .deal-view-card { max-height: 95vh; border-radius: var(--radius-sm); }
  .modal-overlay { padding: 8px; }
  .about-hero-title { font-size: 32px; }
  .about-hero { padding: 40px 12px 32px; }
  .about-trust-bar { gap: 16px; }
  .about-features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .stat-row { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 20px; }
  .about-hero-title { font-size: 26px; }
  .trust-item span { font-size: 12px; }
}
