:root {
  --primary: #d4af37;
  --primary-dark: #b8962f;
  --primary-light: rgba(212, 175, 55, 0.12);
  --gold-bright: #f9e090;
  --gold-text: #f3dd9a;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --bg: #08080b;
  --bg-2: #0c0b0f;
  --card-bg: rgba(20, 19, 25, 0.84);
  --card-solid: #16141a;
  --border: rgba(212, 175, 55, 0.18);
  --border-light: rgba(212, 175, 55, 0.10);
  --text: #f5f2ea;
  --text-light: #c9c4b4;
  --text-lighter: #9a958a;
  --shadow: 0 12px 32px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 55px rgba(0,0,0,0.5);
  --radius: 12px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 60% -10%, rgba(212,175,55,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 30%, rgba(212,175,55,0.05) 0%, transparent 40%),
    linear-gradient(135deg, #0c0b0f 0%, #0a090d 50%, #100f13 100%);
  background-attachment: fixed;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ============ Auth ============ */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 90% 55% at 50% 108%, rgba(212,175,55,0.20) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(212,175,55,0.05) 0%, transparent 70%),
    linear-gradient(180deg, #08080b 0%, #0c0b10 60%, #131009 100%);
  position: relative;
  overflow: hidden;
}
.auth-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 2 54 17v32L28 64 2 49V17zM28 66 54 81v32M28 66 2 81v32' fill='none' stroke='%23d4af37' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E") center/56px repeat;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, transparent 35%, #000 100%);
  mask-image: radial-gradient(ellipse at 50% 40%, transparent 35%, #000 100%);
  pointer-events: none;
  z-index: 0;
}
.auth-hex, .auth-particles { display: none; }
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: rgba(16, 15, 19, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 18px;
  padding: 52px 38px 40px;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(212,175,55,0.07);
}
.auth-logo {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  display: block;
  border-radius: 18px;
  box-shadow: 0 0 36px rgba(212, 175, 55, 0.45);
  object-fit: cover;
}
.auth-logo-wrap {
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
}
.auth-logo-ring {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f9e090, #d4af37 45%, #8a6d20);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  padding: 2.5px;
  filter: drop-shadow(0 0 18px rgba(212,175,55,0.45));
}
.auth-logo-inner {
  width: 100%;
  height: 100%;
  background: #0b0a0e;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.auth-logo-wrap .auth-logo {
  width: 92%;
  height: 92%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}
.auth-card h1 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 6px;
  color: #f3dd9a;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 18px rgba(243,221,154,0.25);
}
.auth-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #f3dd9a;
  letter-spacing: 6px;
  text-indent: 6px;
  margin-bottom: 10px;
  text-shadow: 0 2px 18px rgba(243,221,154,0.25);
}
.auth-subtitle {
  text-align: center;
  color: #b8b0a0;
  margin-bottom: 30px;
  font-size: 12px;
  letter-spacing: 3px;
  text-indent: 3px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 30px;
  width: 78%;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.45), transparent);
}
.auth-divider span {
  width: 6px;
  height: 6px;
  background: #d4af37;
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(212,175,55,0.6);
}
.auth-card .subtitle {
  text-align: center;
  color: #a0a0b0;
  margin-bottom: 30px;
  font-size: 13px;
}
.auth-card .form-group label { color: #c0c0d0; }
.auth-card .form-group input,
.auth-card .form-group select,
.auth-card .form-group textarea {
  background: rgba(10, 10, 15, 0.65);
  border-color: rgba(212, 175, 55, 0.25);
  color: #f0f0f5;
}
.auth-card .form-group input::placeholder { color: #6a6a7a; }
.auth-card .form-group input:focus,
.auth-card .form-group select:focus,
.auth-card .form-group textarea:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}
.auth-input-group {
  position: relative;
}
.auth-input-group .auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}
.auth-input-group input {
  padding-left: 40px !important;
}
.login-btn {
  background: linear-gradient(180deg, #f3dd9a 0%, #d4af37 55%, #a8862a 100%);
  border: none;
  color: #1a1305;
  font-weight: 700;
  letter-spacing: 8px;
  text-indent: 8px;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(212,175,55,0.25);
  transition: filter .2s, box-shadow .2s;
}
.login-btn:hover {
  filter: brightness(1.1);
  background: linear-gradient(180deg, #f3dd9a 0%, #d4af37 55%, #a8862a 100%);
  box-shadow: 0 8px 32px rgba(212,175,55,0.4);
  transform: none;
}
@media (max-width: 480px) {
  .auth-card { padding: 44px 26px 34px; }
  .auth-title { font-size: 21px; }
  .auth-logo-wrap { width: 88px; height: 88px; }
}
.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}
.auth-links a {
  color: #c9c4b4;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color .2s;
}
.auth-links a:hover { color: #f5d77a; }
.auth-link-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.85;
}
.auth-card .btn-primary {
  background: linear-gradient(135deg, #d4af37 0%, #b8962f 100%);
  border: none;
  color: #0a0a0f;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.28);
}
.auth-card .btn-primary:hover {
  background: linear-gradient(135deg, #e4c14f 0%, #c9a436 100%);
  box-shadow: 0 8px 26px rgba(212, 175, 55, 0.38);
}
.auth-card .btn-outline {
  border-color: rgba(212, 175, 55, 0.45);
  color: #d4af37;
  background: transparent;
}
.auth-card .btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* ============ Bank Admin Tab ============ */
.bank-admin-tab {
  padding: 8px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
}
.bank-admin-tab:hover { color: var(--gold-text); }
.bank-admin-tab.active {
  color: var(--gold-text);
  border-bottom-color: var(--primary);
}

/* ============ Form ============ */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text);
  font-size: 13px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
  background: rgba(8, 8, 10, 0.6);
  color: var(--text);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-lighter); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

/* ============ Button ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #f3dd9a 0%, #d4af37 55%, #a8862a 100%);
  color: #1a1305;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(212,175,55,0.22);
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 24px rgba(212,175,55,0.32);
}
.btn-success {
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 55%, #15803d 100%);
  color: #052e0a;
  font-weight: 600;
}
.btn-success:hover { filter: brightness(1.1); }
.btn-danger {
  background: linear-gradient(180deg, #f87171 0%, #ef4444 55%, #b91c1c 100%);
  color: #fff;
  font-weight: 600;
}
.btn-danger:hover { filter: brightness(1.1); }
.btn-warning {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 55%, #b45309 100%);
  color: #1a1305;
  font-weight: 600;
}
.btn-warning:hover { filter: brightness(1.1); }
.btn-outline {
  background: rgba(212, 175, 55, 0.06);
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  color: var(--primary);
}
.btn-outline:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--primary);
  color: var(--gold-text);
}
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ============ Layout ============ */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 230px;
  background: linear-gradient(180deg, #0f0e12 0%, #121015 100%);
  border-right: 1px solid rgba(212, 175, 55, 0.15);
  padding: 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 4px 0 24px rgba(0,0,0,0.3);
}
.sidebar-logo {
  padding: 20px 22px;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #f9e090, #d4af37 55%, #b8962f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
}
.sidebar-team {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}
.sidebar-team label {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.sidebar-team select {
  width: 100%;
  padding: 9px 10px;
  border: 1.5px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: rgba(8, 8, 10, 0.7);
  color: var(--text);
}
.sidebar-team select:focus {
  outline: none;
  border-color: var(--primary);
}
.sidebar-nav { padding: 14px 0; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  margin: 3px 10px;
  color: var(--text-light);
  cursor: pointer;
  font-size: 14px;
  transition: all .15s;
  border-radius: 8px;
  position: relative;
  border: 1px solid transparent;
}
.nav-item:hover {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-text);
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(212,175,55,0.18), rgba(212,175,55,0.04));
  color: var(--gold-text);
  font-weight: 600;
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 0 18px rgba(212,175,55,0.1), inset 0 1px 0 rgba(255,255,255,0.04);
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #f9e090, #d4af37, #b8962f);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px rgba(212,175,55,0.5);
}
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; }
.nav-icon svg { width: 18px; height: 18px; }
.guild-logo { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); box-shadow: 0 0 10px rgba(212,175,55,0.18); }
.nav-section {
  padding: 10px 22px 6px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 1.5px;
}

.main {
  flex: 1;
  padding: 26px 30px;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}
.main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104' viewBox='0 0 60 104'%3E%3Cpath d='M30 2L58 18v36L30 70 2 54V18z' fill='none' stroke='%23d4af37' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, transparent 25%, #000 90%);
  mask-image: radial-gradient(ellipse at 70% 40%, transparent 25%, #000 90%);
}
.main > * { position: relative; z-index: 1; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-text);
  text-shadow: 0 2px 12px rgba(243,221,154,0.15);
}
.page-actions { display: flex; gap: 8px; }

/* ============ Card ============ */
.card {
  background: var(--card-bg);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.6), rgba(249,224,144,0.85), rgba(212,175,55,0.6), transparent);
  box-shadow: 0 2px 10px rgba(212,175,55,0.2);
  z-index: 1;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-text);
}
.card-body { padding: 20px; }

/* ============ Table ============ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left;
  padding: 12px 16px;
  background: rgba(212, 175, 55, 0.06);
  color: var(--gold-text);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}
tbody tr:hover { background: rgba(212, 175, 55, 0.04); }
tbody tr:last-child td { border-bottom: none; }

/* ============ Badge ============ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge-primary {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-text);
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.badge-success { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-gray { background: rgba(255, 255, 255, 0.08); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.12); }

/* ============ Stats ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--card-bg);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 24px rgba(212,175,55,0.1);
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #b8962f, #f9e090, #b8962f);
  box-shadow: 0 2px 14px rgba(212,175,55,0.4);
}
.stat-card::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.stat-label { font-size: 12px; color: var(--text-light); margin-bottom: 10px; letter-spacing: 0.5px; font-weight: 500; }
.stat-value {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #f9e090, #d4af37 55%, #b8962f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 18px rgba(243,221,154,0.12);
}
.stat-value.primary { color: var(--gold-text); }
.stat-value.success {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-value.warning {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ Modal ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal {
  background: var(--card-solid);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(212, 175, 55, 0.08);
  position: relative;
}
.modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.6), rgba(249,224,144,0.85), rgba(212,175,55,0.6), transparent);
  z-index: 1;
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: 17px; font-weight: 700; color: var(--gold-text); }
.modal-close { cursor: pointer; font-size: 20px; color: var(--text-light); border: none; background: none; transition: color .2s; }
.modal-close:hover { color: var(--gold-text); }
.modal-body { padding: 20px; }
.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ============ Misc ============ */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-light);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  z-index: 2000;
  animation: slideIn .3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.toast.success {
  background: linear-gradient(135deg, #22c55e, #15803d);
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.toast.error {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border: 1px solid rgba(239, 68, 68, 0.4);
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mb-12 { margin-bottom: 12px; }
.text-light { color: var(--text-light); }
.text-sm { font-size: 12px; }
.text-lg { font-size: 16px; }
.text-bold { font-weight: 600; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-danger { color: var(--danger); }
.text-success { color: #4ade80; }
.text-primary { color: var(--gold-text); }
.cursor-pointer { cursor: pointer; }
.hide { display: none !important; }

.auction-item {
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  transition: box-shadow .2s, border-color .2s;
  background: rgba(16, 15, 20, 0.6);
  position: relative;
  overflow: hidden;
}
.auction-item:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.4), 0 0 20px rgba(212,175,55,0.08);
  border-color: rgba(212, 175, 55, 0.35);
}
.auction-item.ended { opacity: 0.65; }

.user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 16px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f9e090, #b8962f);
  color: #1a1305;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

/* select 下拉选项深色化 */
select option {
  background: #100f14;
  color: var(--text);
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(212, 175, 55, 0.4); }

@media (max-width: 768px) {
  .sidebar { display: none; }
  .main { padding: 16px; }
  .form-row { flex-direction: column; }
}

/* ============ Light Theme （浅色金） ============ */
[data-theme="light"] {
  --primary: #b8962f;
  --primary-dark: #9a7c20;
  --primary-light: rgba(212, 175, 55, 0.14);
  --gold-bright: #b8860b;
  --gold-text: #8a6510;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --success: #16a34a;
  --danger: #e11d48;
  --warning: #d97706;
  --bg: #faf6ec;
  --bg-2: #f1ead9;
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-solid: #fffdf7;
  --border: rgba(184, 150, 47, 0.30);
  --border-light: rgba(184, 150, 47, 0.14);
  --text: #2e2717;
  --text-light: #6d6248;
  --text-lighter: #988c6b;
  --shadow: 0 4px 16px rgba(138, 101, 16, 0.10);
  --shadow-lg: 0 16px 40px rgba(138, 101, 16, 0.16);
}
[data-theme="light"] body {
  background:
    radial-gradient(ellipse 80% 50% at 60% -10%, rgba(212,175,55,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 30%, rgba(212,175,55,0.07) 0%, transparent 40%),
    linear-gradient(135deg, #faf6ec 0%, #f6f0e0 50%, #f1ead9 100%);
}
[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, rgba(255,253,246,0.92), rgba(248,242,228,0.95));
  border-right-color: rgba(184,150,47,0.22);
  box-shadow: 4px 0 24px rgba(138,101,16,0.06);
}
[data-theme="light"] .sidebar-logo {
  background: linear-gradient(135deg, #8a6510, #b8962f 55%, #8a6510);
  -webkit-background-clip: text;
}
[data-theme="light"] .sidebar-logo img { box-shadow: 0 0 14px rgba(212,175,55,0.35); }
[data-theme="light"] .sidebar-team { border-bottom-color: rgba(184,150,47,0.15); }
[data-theme="light"] .sidebar-team select {
  background: rgba(255,255,255,0.85);
  border-color: rgba(184,150,47,0.30);
}
[data-theme="light"] .guild-logo { border-color: rgba(184,150,47,0.35); box-shadow: 0 0 10px rgba(212,175,55,0.25); }
[data-theme="light"] .nav-item { color: #5c5340; }
[data-theme="light"] .nav-item .nav-icon { color: #8a7d5e; }
[data-theme="light"] .nav-item:hover {
  background: rgba(212,175,55,0.12);
  color: #8a6510;
}
[data-theme="light"] .nav-item:hover .nav-icon { color: #b8860b; }
[data-theme="light"] .nav-item.active {
  background: linear-gradient(90deg, rgba(212,175,55,0.28), rgba(212,175,55,0.08));
  color: #6b4e00;
  border-color: rgba(184,150,47,0.35);
  box-shadow: none;
}
[data-theme="light"] .nav-item.active .nav-icon { color: #a97f1c; filter: none; }
[data-theme="light"] .nav-item.active::before {
  background: linear-gradient(180deg, #d4af37, #b8962f);
  box-shadow: 0 0 8px rgba(212,175,55,0.4);
}
[data-theme="light"] .nav-section { color: #988c6b; }
[data-theme="light"] .main::before { opacity: 0.5; }
[data-theme="light"] .page-title {
  color: #4a3a10;
  text-shadow: none;
}
[data-theme="light"] .card {
  background: rgba(255,255,255,0.92);
  border-color: rgba(184,150,47,0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-theme="light"] .card::before {
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.55), rgba(240,215,149,0.9), rgba(212,175,55,0.55), transparent);
  box-shadow: 0 2px 8px rgba(212,175,55,0.15);
}
[data-theme="light"] .card-header { border-bottom-color: rgba(184,150,47,0.14); }
[data-theme="light"] .card-title { color: #6b4e00; }
[data-theme="light"] .stat-card {
  background: rgba(255,255,255,0.92);
  border-color: rgba(184,150,47,0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-theme="light"] .stat-card:hover {
  box-shadow: 0 12px 30px rgba(138,101,16,0.14), 0 0 20px rgba(212,175,55,0.12);
}
[data-theme="light"] .stat-card::before {
  background: linear-gradient(90deg, #b8962f, #f0d795, #b8962f);
  box-shadow: 0 2px 10px rgba(212,175,55,0.25);
}
[data-theme="light"] .stat-card::after {
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
}
[data-theme="light"] .stat-label { color: #6d6248; }
[data-theme="light"] .stat-value {
  background: linear-gradient(135deg, #b8860b, #8a6510 55%, #6b4e00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}
[data-theme="light"] .stat-value.success {
  background: linear-gradient(135deg, #16a34a, #15803d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .stat-value.warning {
  background: linear-gradient(135deg, #d97706, #b45309);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] table thead th {
  background: rgba(212, 175, 55, 0.10);
  color: #6b4e00;
  border-bottom-color: rgba(184,150,47,0.25);
}
[data-theme="light"] tbody td { border-bottom-color: rgba(184,150,47,0.12); }
[data-theme="light"] tbody tr:hover { background: rgba(212, 175, 55, 0.07); }
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: #fff;
  border-color: rgba(184,150,47,0.30);
  color: #2e2717;
}
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder { color: #988c6b; }
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
  border-color: #b8962f;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.18);
}
[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #d4af37, #b8962f);
  color: #fff;
  box-shadow: 0 4px 14px rgba(212,175,55,0.35);
}
[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #e4c14f, #c9a436);
  box-shadow: 0 6px 20px rgba(212,175,55,0.45);
}
[data-theme="light"] .btn-outline {
  background: #fff;
  border-color: rgba(184,150,47,0.35);
  color: #8a6510;
}
[data-theme="light"] .btn-outline:hover {
  background: rgba(212,175,55,0.10);
  border-color: #b8962f;
  color: #6b4e00;
}
[data-theme="light"] .badge-primary {
  background: rgba(212, 175, 55, 0.12);
  color: #8a6510;
  border-color: rgba(184, 150, 47, 0.40);
}
[data-theme="light"] .badge-success { background: rgba(22,163,74,0.10); color: #16a34a; border-color: rgba(22,163,74,0.30); }
[data-theme="light"] .badge-danger { background: rgba(225,29,72,0.08); color: #e11d48; border-color: rgba(225,29,72,0.28); }
[data-theme="light"] .badge-warning { background: rgba(217,119,6,0.10); color: #d97706; border-color: rgba(217,119,6,0.30); }
[data-theme="light"] .badge-info { background: rgba(2,132,199,0.08); color: #0284c7; border-color: rgba(2,132,199,0.28); }
[data-theme="light"] .badge-gray {
  background: rgba(0, 0, 0, 0.04);
  color: #6d6248;
  border-color: rgba(0, 0, 0, 0.10);
}
[data-theme="light"] .modal {
  background: #fffdf7;
  border-color: rgba(184,150,47,0.30);
  box-shadow: 0 20px 60px rgba(138,101,16,0.20);
}
[data-theme="light"] .modal::before {
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.6), rgba(240,215,149,0.9), rgba(212,175,55,0.6), transparent);
}
[data-theme="light"] .modal-header { border-bottom-color: rgba(184,150,47,0.14); }
[data-theme="light"] .modal-title { color: #6b4e00; }
[data-theme="light"] .modal-close { color: #6d6248; }
[data-theme="light"] .modal-close:hover { color: #8a6510; }
[data-theme="light"] .modal-footer { border-top-color: rgba(184,150,47,0.14); }
[data-theme="light"] .auction-item {
  background: rgba(255,255,255,0.85);
  border-color: rgba(184,150,47,0.25);
}
[data-theme="light"] .auction-item:hover {
  box-shadow: 0 8px 24px rgba(138,101,16,0.12);
  border-color: rgba(212,175,55,0.45);
}
[data-theme="light"] .avatar {
  background: linear-gradient(135deg, #f0d795, #d4af37);
  color: #3a2a08;
  box-shadow: 0 0 8px rgba(212,175,55,0.3);
}
[data-theme="light"] select option {
  background: #fff;
  color: #2e2717;
}
[data-theme="light"] .text-primary { color: #8a6510; }
[data-theme="light"] .text-success { color: #16a34a; }
[data-theme="light"] .text-danger { color: #e11d48; }
[data-theme="light"] .empty-state { color: #6d6248; }
[data-theme="light"] .bank-admin-tab { color: #6d6248; }
[data-theme="light"] .bank-admin-tab:hover { color: #8a6510; }
[data-theme="light"] .bank-admin-tab.active {
  color: #8a6510;
  border-bottom-color: #b8962f;
}
[data-theme="light"] .modal-overlay { background: rgba(60,45,10,0.30); }
[data-theme="light"] .toast { box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
[data-theme="light"] ::-webkit-scrollbar-track { background: #f1ead9; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(184,150,47,0.35); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(184,150,47,0.55); }
[data-theme="light"] #app-loading {
  background: radial-gradient(ellipse 80% 50% at 50% 40%, rgba(212,175,55,0.08), transparent 60%), #faf6ec;
}
[data-theme="light"] #app-loading .spinner {
  border-color: rgba(184,150,47,0.25);
  border-top-color: #b8962f;
  border-right-color: #d4af37;
}
[data-theme="light"] #app-loading p { color: #6d6248; }
/* 主题切换按钮 */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-light);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 8px;
}
.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--gold-text);
  background: var(--primary-light);
}

