/* ==========================================================================
   GOLD GRAB / CARTIER LUXURY - OBSIDIAN & GOLD DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-main: #090D16;
  --bg-sidebar: #0C121E;
  --bg-card: rgba(18, 25, 42, 0.85);
  --bg-card-hover: rgba(26, 36, 60, 0.95);
  --bg-input: #0B101D;
  --border-gold: rgba(212, 175, 55, 0.22);
  --border-gold-glow: rgba(245, 158, 11, 0.45);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --gold-primary: #D4AF37;
  --gold-light: #FDE68A;
  --gold-dark: #996515;
  --gold-gradient: linear-gradient(135deg, #FDE68A 0%, #D4AF37 50%, #B48A28 100%);
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.25);

  --accent-blue: #3B82F6;
  --accent-green: #10B981;
  --accent-red: #EF4444;
  --accent-purple: #8B5CF6;
  --accent-amber: #F59E0B;

  --text-white: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --text-gold: #E5C158;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --sidebar-width: 270px;
  --topbar-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-white);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 40%);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Layout Container */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  transition: var(--transition);
}

.sidebar-header {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--gold-glow);
  color: #000;
  font-weight: 800;
  font-size: 20px;
}

.brand-text h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 12px 14px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-item i {
  font-size: 18px;
  width: 22px;
  text-align: center;
  transition: var(--transition);
}

.nav-item:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: #000;
  background: var(--gold-gradient);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.nav-item.active i {
  color: #000;
}

.nav-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

.nav-item.active .nav-badge {
  background: rgba(0, 0, 0, 0.2);
  color: #000;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  background: linear-gradient(135deg, #1E293B, #0F172A);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-weight: 700;
}

.admin-meta h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
}

.admin-meta p {
  font-size: 11px;
  color: var(--text-dim);
}

.btn-logout-icon {
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  padding: 8px;
  border-radius: 8px;
}
.btn-logout-icon:hover {
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.1);
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Topbar */
.topbar {
  height: var(--topbar-height);
  background: rgba(12, 18, 30, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.live-clock {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Content Container */
.content-body {
  flex: 1;
  padding: 32px;
}

/* Flash Messages */
.alert-container {
  margin-bottom: 24px;
}
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  animation: slideDown 0.3s ease;
}
.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
}
.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards & Glass Containers */
.luxe-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.luxe-card:hover {
  border-color: var(--border-gold-glow);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.08);
}

.luxe-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title i {
  color: var(--gold-primary);
}

/* Stats Grids */
.stats-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.stat-header-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.badge-today {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff;
}
.badge-month {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  color: #fff;
}
.badge-platform {
  background: var(--gold-gradient);
  color: #000;
}

.stat-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
}
.stat-item-row:last-child {
  border-bottom: none;
}
.stat-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-label i {
  font-size: 13px;
  color: var(--text-dim);
}
.stat-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-white);
}
.stat-val.gold {
  color: var(--gold-light);
}
.stat-val.green {
  color: var(--accent-green);
}
.stat-val.red {
  color: var(--accent-red);
}

/* Platform Totals Highlight Box */
.totals-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 10px 0;
}
.total-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
}
.total-stat-box:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: var(--border-gold);
}
.total-stat-title {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.total-stat-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-light);
}

/* Filter Box */
.filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 180px;
}
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-control, .form-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 13.5px;
  transition: var(--transition);
  width: 100%;
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

/* Buttons */
.btn-gold {
  background: var(--gold-gradient);
  color: #000;
  border: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13.5px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.btn-blue {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13.5px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-blue:hover {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13.5px;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 6px;
}

/* Custom Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--accent-blue);
  border-color: #60A5FA;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}
input:checked + .slider:before {
  transform: translateX(20px);
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.luxe-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.luxe-table thead {
  background: rgba(12, 18, 30, 0.95);
  border-bottom: 2px solid var(--border-gold);
}
.luxe-table th {
  padding: 14px 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  white-space: nowrap;
  font-size: 11.5px;
}
.luxe-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition);
}
.luxe-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.04);
}
.luxe-table td {
  padding: 14px 16px;
  vertical-align: middle;
  color: var(--text-white);
  white-space: nowrap;
}

/* Status Badges */
.badge-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
}
.badge-processing {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #F87171;
}
.badge-vip {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #C084FC;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3500;
  animation: fadeIn 0.2s ease;
}
.modal-box {
  position: relative;
  z-index: 3501;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 90%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.15);
  animation: scaleUp 0.25s ease;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-white);
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover {
  color: var(--accent-red);
}
.modal-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* CREATE MEMBER MODAL - OBSIDIAN & GOLD ADMIN THEME */
.modal-box-create-member {
  position: relative;
  z-index: 3501;
  background: linear-gradient(145deg, #10192D 0%, #0A0F1D 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-md, 14px);
  padding: 28px 32px 30px;
  width: 640px;
  max-width: 95vw;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 175, 55, 0.16);
  animation: scaleUp 0.25s ease;
  color: var(--text-white, #F8FAFC);
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  box-sizing: border-box;
}

.create-member-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.create-member-header h3 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.create-member-header h3 i {
  color: var(--gold-primary, #D4AF37);
  font-size: 17px;
}

.create-member-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-dim, #94A3B8);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: var(--transition, all 0.2s ease);
}

.create-member-close:hover {
  color: var(--accent-red, #EF4444);
  transform: scale(1.1);
}

.create-member-body {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.create-member-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.create-member-label {
  width: 175px;
  min-width: 175px;
  font-size: 13.5px;
  font-weight: 600;
  color: #E2E8F0;
  text-transform: none;
  line-height: 1.3;
}

.create-member-input-wrap {
  flex: 1;
}

.create-member-input {
  width: 100%;
  height: 42px;
  background: #070B14;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: var(--radius-sm, 8px);
  padding: 0 14px;
  font-size: 13.5px;
  color: #F8FAFC;
  font-family: var(--font-body, inherit);
  transition: var(--transition, all 0.2s ease);
  outline: none;
  box-sizing: border-box;
}

.create-member-input::placeholder {
  color: #64748B;
  font-size: 13px;
}

.create-member-input:focus {
  background: #0B111F;
  border-color: var(--gold-primary, #D4AF37);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.28);
  color: #ffffff;
}

.create-member-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-modal-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm, 8px);
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition, all 0.2s ease);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-modal-ok {
  background: var(--gold-gradient, linear-gradient(135deg, #FDE68A 0%, #D4AF37 50%, #B48A28 100%));
  color: #000000;
  border: none;
  border-radius: var(--radius-sm, 8px);
  padding: 10px 34px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition, all 0.2s ease);
  font-family: inherit;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-modal-ok:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.45);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Toast Notification */
#toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast-msg {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  color: var(--text-white);
  font-size: 13.5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s ease;
}
/* Right Side Drawer System */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 500px;
  max-width: 92vw;
  background: #0D1424;
  border-left: 1px solid var(--border-gold);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 175, 55, 0.15);
  z-index: 2401;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.drawer-panel.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 24px;
  background: rgba(18, 25, 42, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.drawer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  background: linear-gradient(135deg, #1E293B, #0F172A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--gold-light);
  box-shadow: var(--gold-glow);
}

.drawer-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
}
.drawer-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.4);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.drawer-section {
  background: rgba(18, 25, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: var(--transition);
}
.drawer-section:hover {
  border-color: var(--border-gold);
}

.drawer-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.drawer-field {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.drawer-field-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.drawer-field-val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-white);
  word-break: break-all;
}

.member-row {
  cursor: pointer;
  transition: var(--transition);
}
.member-row:hover {
  background: rgba(212, 175, 55, 0.08) !important;
}

