:root {
  --bg-primary: #07040d;
  --bg-secondary: #0e081c;
  --bg-card: rgba(18, 10, 34, 0.82);
  --bg-card-hover: rgba(28, 16, 52, 0.92);
  --border-color: rgba(176, 38, 255, 0.15);
  --border-active: rgba(176, 38, 255, 0.45);

  --text-main: #f5f0ff;
  --text-muted: #9f92b6;
  --text-dim: #6b5c82;

  --accent-purple: #b026ff;
  --accent-purple-glow: rgba(176, 38, 255, 0.35);
  --accent-flame: #ff6a00;
  --accent-flame-glow: rgba(255, 106, 0, 0.3);
  --accent-cyan: #c084fc;
  --accent-cyan-glow: rgba(192, 132, 252, 0.3);
  --accent-green: #00e676;
  --accent-green-glow: rgba(0, 230, 118, 0.25);

  /* Official 6 Colors */
  --dice-red: #FF0000;
  --dice-orange: #FFA500;
  --dice-yellow: #FFD700;
  --dice-green: #008000;
  --dice-blue: #0000FF;
  --dice-purple: #800080;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-card: 0 10px 32px -10px rgba(0, 0, 0, 0.65), 0 0 15px rgba(176, 38, 255, 0.05);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background elements */
.cyber-grid-bg {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(176, 38, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(176, 38, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
}

.glow-1 {
  top: -120px;
  left: 10%;
  background: radial-gradient(circle, #b026ff, #7928ca 50%, transparent 70%);
}

.glow-2 {
  bottom: 5%;
  right: 5%;
  background: radial-gradient(circle, #ff6a00, #b026ff 60%, transparent 70%);
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px 24px;
  position: relative;
  z-index: 1;
}

/* Header */
.app-header {
  margin-bottom: 28px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-mark {
  position: relative;
  width: 76px;
  height: 76px;
  background: radial-gradient(circle, #240b44, #0d061c);
  border: 2px solid #b026ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(176, 38, 255, 0.55), 0 0 15px rgba(255, 106, 0, 0.35);
  overflow: visible;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  z-index: 2;
  position: relative;
}

.pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #b026ff;
  box-shadow: 0 0 16px #b026ff, inset 0 0 8px #ff6a00;
  opacity: 0.6;
  animation: pulseGlow 2.5s infinite;
  z-index: 1;
}

@keyframes pulseGlow {
  0% { transform: scale(0.97); opacity: 0.4; }
  50% { transform: scale(1.06); opacity: 0.85; filter: drop-shadow(0 0 10px #ff6a00); }
  100% { transform: scale(0.97); opacity: 0.4; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
}

.btn-discord:hover {
  background: linear-gradient(135deg, #6775fc, #5865F2);
  box-shadow: 0 6px 25px rgba(88, 101, 242, 0.65), 0 0 15px rgba(176, 38, 255, 0.4);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.btn-discord svg {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.badge-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-brand {
  background: linear-gradient(135deg, rgba(176, 38, 255, 0.25), rgba(255, 106, 0, 0.2));
  color: #e9b3ff;
  border: 1px solid rgba(176, 38, 255, 0.5);
  box-shadow: 0 0 14px rgba(176, 38, 255, 0.3);
  font-weight: 800;
}

.badge-cyber {
  background: rgba(255, 106, 0, 0.12);
  color: #ff9d42;
  border: 1px solid rgba(255, 106, 0, 0.3);
}

.badge-status {
  background: rgba(0, 230, 118, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 118, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
}

.main-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 20%, #d8b4fe 70%, #b026ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(176, 38, 255, 0.35));
}

.subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Card General */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(176, 38, 255, 0.28);
}

/* Search Card */
.search-card {
  border-color: rgba(176, 38, 255, 0.35);
  background: linear-gradient(180deg, rgba(24, 13, 48, 0.92), rgba(14, 8, 28, 0.92));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(176, 38, 255, 0.1);
}
}

.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.search-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.search-label .icon {
  width: 16px;
  height: 16px;
  color: var(--accent-cyan);
}

.title-sub-accent {
  font-weight: 500;
  font-size: 0.85em;
  color: var(--text-muted);
}

.secure-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-green);
  font-family: var(--font-sans);
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.search-form {
  display: flex;
  gap: 12px;
}

.input-wrapper {
  position: relative;
  flex: 1;
}

.input-wrapper input {
  width: 100%;
  background: rgba(13, 6, 28, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 44px 14px 18px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 15px;
  transition: var(--transition);
}

.input-wrapper input:focus {
  outline: none;
  border-color: #b026ff;
  box-shadow: 0 0 0 3px rgba(176, 38, 255, 0.3), 0 0 15px rgba(176, 38, 255, 0.2);
  background: rgba(18, 9, 38, 0.98);
}

.input-wrapper input::placeholder {
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 14px;
}

.clear-input-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  display: none;
  transition: color 0.15s;
}

.clear-input-btn:hover {
  color: #fff;
}

.btn {
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #a855f7, #7c3aed 55%, #ff6a00 100%);
  color: #ffffff;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 18px rgba(176, 38, 255, 0.4), 0 0 12px rgba(255, 106, 0, 0.2);
  position: relative;
  min-width: 140px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(176, 38, 255, 0.65), 0 0 18px rgba(255, 106, 0, 0.35);
  background: linear-gradient(135deg, #b865ff, #8b45ff 55%, #ff7700 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.quick-seeds {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-label {
  font-size: 12px;
  color: var(--text-dim);
}

.seed-pill {
  background: rgba(176, 38, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.seed-pill:hover {
  background: rgba(176, 38, 255, 0.18);
  color: #e9b3ff;
  border-color: rgba(176, 38, 255, 0.45);
  box-shadow: 0 0 10px rgba(176, 38, 255, 0.2);
}

/* Alert Banner */
.alert-banner {
  margin-top: 16px;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

.alert-banner.alert-success {
  background: rgba(0, 230, 118, 0.08);
  border-color: rgba(0, 230, 118, 0.3);
}

.alert-banner.alert-warning {
  background: rgba(255, 179, 0, 0.08);
  border-color: rgba(255, 179, 0, 0.3);
}

.alert-icon {
  font-size: 18px;
  line-height: 1;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.alert-message {
  font-size: 12px;
  color: var(--text-muted);
}

.alert-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-icon {
  font-size: 54px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.2));
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 14px;
}

/* Overview Cards */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.stat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.stat-icon {
  font-size: 16px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-value.mono {
  font-family: var(--font-mono);
  font-size: 18px;
  word-break: break-all;
}

.stat-value.fair-tag {
  color: var(--accent-green);
  text-shadow: 0 0 16px var(--accent-green-glow);
  font-size: 20px;
}

.stat-foot {
  font-size: 11px;
  color: var(--text-muted);
}

.highlight-card {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.06), rgba(18, 24, 38, 0.95));
  border-color: rgba(0, 230, 118, 0.25);
}

/* Suggestion Card */
.suggestion-card {
  background: linear-gradient(135deg, rgba(28, 14, 52, 0.92), rgba(16, 8, 32, 0.96));
  border: 1px solid rgba(176, 38, 255, 0.35);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), 0 0 24px rgba(176, 38, 255, 0.12);
}

.suggestion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.accent-dot {
  width: 8px;
  height: 8px;
  background: #b026ff;
  border-radius: 50%;
  box-shadow: 0 0 10px #b026ff, 0 0 4px #ff6a00;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

.btn-action {
  background: linear-gradient(135deg, #b026ff, #7928ca 60%, #ff6a00 100%);
  color: #fff;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(176, 38, 255, 0.45);
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(176, 38, 255, 0.7), 0 0 15px rgba(255, 106, 0, 0.3);
  background: linear-gradient(135deg, #c046ff, #8b38ea 60%, #ff7700 100%);
}

.pick-result-box {
  background: rgba(12, 6, 24, 0.75);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.pick-idle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 24px;
}

.pick-active {
  animation: fadeIn 0.35s ease;
}

.pick-showcase {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.color-orb-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.orb-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #ffd700;
  box-shadow: 0 0 24px currentColor;
}

.pick-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.badge-rec {
  background: rgba(176, 38, 255, 0.18);
  color: #d8b4fe;
  border: 1px solid rgba(176, 38, 255, 0.4);
}

.badge-strategy {
  background: rgba(255, 106, 0, 0.18);
  color: #ffaa66;
  border: 1px solid rgba(255, 106, 0, 0.35);
}

.pick-color-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 4px;
}

.pick-rationale {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.5;
}

.badge-confidence {
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 118, 0.35);
  font-weight: 800;
}

/* Strategy Switcher */
.strategy-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(10, 5, 20, 0.7);
  border-radius: var(--radius-md);
  border: 1px solid rgba(176, 38, 255, 0.15);
}

.switcher-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.strat-btn {
  background: rgba(176, 38, 255, 0.08);
  border: 1px solid rgba(176, 38, 255, 0.25);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.strat-btn:hover {
  background: rgba(176, 38, 255, 0.25);
  color: #fff;
  border-color: #b026ff;
  transform: translateY(-1px);
}

.strat-btn.active {
  background: linear-gradient(135deg, #b026ff, #7928ca 60%, #ff6a00 100%);
  color: #fff;
  border-color: #d8b4fe;
  box-shadow: 0 0 16px rgba(176, 38, 255, 0.5);
  font-weight: 700;
}

/* MANDATORY MATHEMATICAL DISCLAIMER BADGE */
.disclaimer-badge {
  background: rgba(16, 9, 32, 0.95);
  border: 1px solid rgba(176, 38, 255, 0.25);
  border-left: 4px solid #b026ff;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.disclaimer-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.disclaimer-text {
  font-size: 12px;
  color: #c9d6e8;
  line-height: 1.5;
}

.disclaimer-text strong {
  color: var(--accent-cyan);
}

/* 6-Color Grid */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.legend-badge {
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.legend-badge strong {
  color: var(--accent-cyan);
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.color-card {
  background: rgba(12, 16, 26, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.color-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

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

.color-pip {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  box-shadow: 0 0 10px currentColor;
  flex-shrink: 0;
}

.color-title-block {
  overflow: hidden;
}

.color-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.color-hex {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.color-count-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.color-count {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.color-count-label {
  font-size: 11px;
  color: var(--text-dim);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.color-stat-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.color-percentage {
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.color-deviation {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.dev-pos {
  background: rgba(0, 230, 118, 0.12);
  color: var(--accent-green);
}

.dev-neg {
  background: rgba(255, 59, 48, 0.12);
  color: #ff5252;
}

.dev-neutral {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

/* Roll History Table */
.history-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.audit-table th {
  padding: 12px 16px;
  background: rgba(10, 13, 20, 0.6);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

.audit-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.audit-table tbody tr {
  transition: background 0.15s;
}

.audit-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.roll-id-cell {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #c084fc;
}

.hash-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hash-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-hash-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 12px;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.copy-hash-btn:hover {
  color: #fff;
}

/* Dice Badges / Dots */
.dice-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dice-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  transition: transform 0.15s;
}

.dice-chip:hover {
  transform: scale(1.06);
}

.dice-chip-pip {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  box-shadow: 0 0 8px currentColor;
}

.time-cell {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 230, 118, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 118, 0.25);
}

.rigged-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 59, 48, 0.1);
  color: #ff5252;
  border: 1px solid rgba(255, 59, 48, 0.3);
}

/* Footer */
.app-footer {
  margin-top: 40px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-dim);
}

.footer-sub code {
  color: var(--accent-cyan);
}

/* Utilities */
.hidden {
  display: none !important;
}

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

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .color-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .app-container {
    padding: 20px 14px 60px 14px;
  }
  .brand-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-form {
    flex-direction: column;
  }
  .btn-primary {
    height: 48px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .color-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pick-showcase {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   ACCESS GATE MODAL
   ========================================================================== */
.gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 10, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.gate-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, rgba(22, 11, 44, 0.96), rgba(12, 6, 24, 0.98));
  border: 1px solid rgba(176, 38, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(176, 38, 255, 0.25);
  overflow: hidden;
  text-align: center;
}

.gate-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(176, 38, 255, 0.4), transparent 70%);
  pointer-events: none;
  filter: blur(40px);
  z-index: 0;
}

.gate-brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.gate-logo-mark {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid #b026ff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(176, 38, 255, 0.6), 0 0 15px rgba(255, 106, 0, 0.35);
  margin-bottom: 14px;
}

.gate-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.gate-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ffffff 20%, #d8b4fe 70%, #b026ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(176, 38, 255, 0.4));
  margin-bottom: 6px;
}

.gate-badges {
  margin-bottom: 8px;
}

.gate-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.5;
}

.gate-form {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.gate-input-wrapper {
  position: relative;
  margin-bottom: 14px;
}

.gate-key-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #b026ff;
}

.gate-input {
  width: 100%;
  background: rgba(10, 5, 20, 0.9);
  border: 1px solid rgba(176, 38, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 44px 14px 44px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: var(--transition);
}

.gate-input:focus {
  outline: none;
  border-color: #b026ff;
  box-shadow: 0 0 0 3px rgba(176, 38, 255, 0.35), 0 0 20px rgba(176, 38, 255, 0.2);
  background: rgba(14, 7, 30, 0.98);
}

.gate-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  display: none;
}

.gate-btn {
  width: 100%;
  height: 48px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  letter-spacing: 0.03em;
}

.gate-alert {
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 12px;
  color: #ff7676;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  animation: fadeIn 0.2s ease;
}

.gate-alert.alert-success {
  background: rgba(0, 230, 118, 0.12);
  border-color: rgba(0, 230, 118, 0.4);
  color: #55efc4;
}

.gate-divider {
  position: relative;
  margin: 18px 0;
  text-align: center;
}

.gate-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(176, 38, 255, 0.15);
}

.gate-divider span {
  position: relative;
  background: #100720;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.gate-footer {
  position: relative;
  z-index: 1;
}

.gate-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.gate-discord-btn {
  width: 100%;
  justify-content: center;
  font-size: 13px;
  padding: 11px 16px;
}

.gate-hwid-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
}

.gate-hwid-label {
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.gate-hwid-code {
  color: #c084fc;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(176, 38, 255, 0.25);
  font-size: 11px;
}

.hwid-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}

.hwid-bound {
  color: #c084fc;
  background: rgba(176, 38, 255, 0.1);
  border: 1px solid rgba(176, 38, 255, 0.25);
}

.hwid-unbound {
  color: var(--accent-green);
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.25);
}

.btn-resethwid {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #00e5ff;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-resethwid:hover {
  background: rgba(0, 229, 255, 0.25);
  color: #fff;
}

/* Auth Header Chips */
.auth-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(176, 38, 255, 0.1);
  border: 1px solid rgba(176, 38, 255, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.auth-role-badge {
  font-size: 11px;
  font-weight: 700;
  color: #d8b4fe;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.btn-change-key {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-change-key:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-panel-trigger {
  background: linear-gradient(135deg, #b026ff, #7928ca 50%, #ff6a00 100%);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 18px rgba(176, 38, 255, 0.5), 0 0 10px rgba(255, 106, 0, 0.3);
  transition: var(--transition);
}

.btn-panel-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(176, 38, 255, 0.75), 0 0 18px rgba(255, 106, 0, 0.4);
}

/* ==========================================================================
   MANAGEMENT CONTROL PANEL MODAL (Owner & Admin)
   ========================================================================== */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.panel-container {
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  background: linear-gradient(180deg, #130a28, #0b0518);
  border: 1px solid rgba(176, 38, 255, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(176, 38, 255, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(176, 38, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(18, 9, 38, 0.6);
}

.panel-title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-badge-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.panel-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.panel-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.panel-close-btn:hover {
  background: rgba(255, 59, 48, 0.2);
  color: #ff5252;
  border-color: rgba(255, 59, 48, 0.4);
}

/* Live Anonymous Usage Stats (Counters Only - No Personal Data) */
.panel-live-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(12, 6, 24, 0.95);
  border-bottom: 1px solid rgba(176, 38, 255, 0.2);
  flex-wrap: wrap;
}

.live-stats-row {
  display: flex;
  gap: 16px;
  flex: 1;
  flex-wrap: wrap;
}

.live-stat-card {
  flex: 1;
  min-width: 170px;
  background: rgba(22, 10, 42, 0.65);
  border: 1px solid rgba(176, 38, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition);
}

.live-stat-card:hover {
  border-color: rgba(176, 38, 255, 0.5);
  box-shadow: 0 4px 16px rgba(176, 38, 255, 0.15);
}

.live-card-pulse {
  border-color: rgba(0, 230, 118, 0.35);
  background: rgba(0, 230, 118, 0.05);
}

.live-card-pulse:hover {
  border-color: rgba(0, 230, 118, 0.65);
  box-shadow: 0 4px 16px rgba(0, 230, 118, 0.2);
}

.live-stat-header {
  display: flex;
  align-items: center;
  gap: 7px;
}

.live-stat-icon {
  font-size: 13px;
  line-height: 1;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 10px #00e676;
  animation: pulseGreen 1.6s infinite ease-in-out;
  display: inline-block;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); box-shadow: 0 0 4px #00e676; }
  50% { transform: scale(1.3); box-shadow: 0 0 14px #00e676; }
  100% { transform: scale(0.9); box-shadow: 0 0 4px #00e676; }
}

.live-stat-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-sans);
  line-height: 1.2;
}

.live-stat-num.val-online {
  color: #00e676;
  text-shadow: 0 0 12px rgba(0, 230, 118, 0.45);
}

.live-stat-num.val-keys {
  color: #c084fc;
  text-shadow: 0 0 12px rgba(192, 132, 252, 0.45);
}

.live-stat-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.live-stat-action {
  display: flex;
  align-items: center;
}

/* Tabs */
.panel-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 24px;
  background: rgba(8, 4, 16, 0.7);
  border-bottom: 1px solid rgba(176, 38, 255, 0.15);
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(176, 38, 255, 0.1);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(176, 38, 255, 0.25), rgba(255, 106, 0, 0.2));
  border-color: rgba(176, 38, 255, 0.4);
  color: #fff;
  box-shadow: 0 0 12px rgba(176, 38, 255, 0.25);
}

.panel-alert {
  padding: 12px 24px;
  background: rgba(0, 230, 118, 0.12);
  border-bottom: 1px solid rgba(0, 230, 118, 0.3);
  color: #55efc4;
  font-size: 13px;
  font-weight: 600;
  animation: fadeIn 0.2s ease;
}

.panel-alert.alert-error {
  background: rgba(255, 59, 48, 0.12);
  border-color: rgba(255, 59, 48, 0.3);
  color: #ff7676;
}

.panel-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* Tab 1: Key Generator Form */
.gen-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.panel-select, .panel-input {
  width: 100%;
  background: rgba(10, 5, 20, 0.85);
  border: 1px solid rgba(176, 38, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.panel-select:focus, .panel-input:focus {
  outline: none;
  border-color: #b026ff;
  box-shadow: 0 0 0 3px rgba(176, 38, 255, 0.3);
}

.panel-select option {
  background: #14082c;
  color: #fff;
}

.gen-btn {
  height: 46px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
}

/* Generated Key Showcase */
.gen-result-box {
  margin-top: 24px;
  background: rgba(10, 5, 20, 0.7);
  border: 1px solid rgba(0, 230, 118, 0.4);
  border-radius: var(--radius-md);
  padding: 20px;
  max-width: 680px;
  animation: fadeIn 0.3s ease;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.result-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-green);
}

.result-meta {
  font-size: 12px;
  color: var(--text-dim);
}

.key-display-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.key-display-input {
  flex: 1;
  background: #000;
  border: 1px solid rgba(176, 38, 255, 0.4);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: #c084fc;
  letter-spacing: 0.05em;
}

.copy-btn {
  min-width: 90px;
}

.share-snippet-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.snippet-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  display: block;
  margin-bottom: 4px;
}

.snippet-text {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  word-break: break-all;
}

/* Tab 2: Keys Vault Table */
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.search-vault-input {
  flex: 1;
  min-width: 240px;
  background: rgba(10, 5, 20, 0.8);
  border: 1px solid rgba(176, 38, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
}

.search-vault-input:focus {
  outline: none;
  border-color: #b026ff;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12px;
}

.panel-table-wrap {
  background: rgba(10, 5, 20, 0.6);
  border: 1px solid rgba(176, 38, 255, 0.15);
  border-radius: var(--radius-md);
  max-height: 480px;
  overflow-y: auto;
}

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

.panel-table th {
  padding: 12px 16px;
  background: rgba(18, 9, 38, 0.9);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(176, 38, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 2;
}

.panel-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.panel-table tr:hover {
  background: rgba(176, 38, 255, 0.05);
}

.key-code-cell {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #c084fc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-copy-mini {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
}

.btn-copy-mini:hover {
  color: #fff;
}

.role-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.role-user {
  background: rgba(176, 38, 255, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(176, 38, 255, 0.35);
}

.role-admin {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.35);
}

.role-owner {
  background: rgba(255, 106, 0, 0.2);
  color: #ff9d42;
  border: 1px solid rgba(255, 106, 0, 0.4);
}

.status-active {
  color: var(--accent-green);
  font-weight: 700;
  font-size: 11px;
}

.status-expired {
  color: var(--text-dim);
  font-size: 11px;
}

.status-revoked {
  color: #ff5252;
  font-weight: 700;
  font-size: 11px;
}

.table-actions {
  display: flex;
  gap: 6px;
}

.btn-revoke {
  background: rgba(255, 152, 0, 0.12);
  border: 1px solid rgba(255, 152, 0, 0.3);
  color: #ffaa44;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-revoke:hover {
  background: rgba(255, 152, 0, 0.25);
  color: #fff;
}

.btn-delete {
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: #ff5252;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-delete:hover {
  background: rgba(255, 59, 48, 0.25);
  color: #fff;
}

.btn-danger {
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.35);
  color: #ff5252;
  transition: var(--transition);
}

.btn-danger:hover {
  background: rgba(255, 59, 48, 0.3);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.3);
}

/* Prediction Feed Styles */
.pred-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(10, 5, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  font-size: 12px;
}

.pred-color-pip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
}

.pred-strat-tag {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.pred-conf-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #00e676;
}

.pred-fair-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.35);
  color: #00e676;
}

.pred-flag-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.35);
  color: #ff5252;
}

/* Announcement Banner on Website */
.announcement-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  animation: fadeIn 0.3s ease;
  transition: var(--transition);
}

.ann-warning {
  background: linear-gradient(135deg, rgba(255, 170, 0, 0.18), rgba(255, 106, 0, 0.08));
  border: 1px solid rgba(255, 170, 0, 0.5);
  box-shadow: 0 0 24px rgba(255, 170, 0, 0.22);
}

.ann-info {
  background: linear-gradient(135deg, rgba(176, 38, 255, 0.18), rgba(113, 0, 255, 0.08));
  border: 1px solid rgba(176, 38, 255, 0.5);
  box-shadow: 0 0 24px rgba(176, 38, 255, 0.22);
}

.ann-success {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.18), rgba(0, 192, 100, 0.08));
  border: 1px solid rgba(0, 230, 118, 0.5);
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.22);
}

.ann-danger {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.22), rgba(200, 20, 20, 0.08));
  border: 1px solid rgba(255, 59, 48, 0.5);
  box-shadow: 0 0 24px rgba(255, 59, 48, 0.22);
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.announcement-icon {
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255, 170, 0, 0.6));
}

.announcement-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.announcement-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
}

.announcement-msg {
  font-size: 13px;
  color: #f1f1f1;
  line-height: 1.4;
}

.announcement-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.announcement-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Mandatory Win Strategy Rule Notice in Oracle */
.win-strategy-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255, 170, 0, 0.14), rgba(255, 106, 0, 0.06));
  border: 1px solid rgba(255, 170, 0, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 0 16px rgba(255, 170, 0, 0.15);
}

.win-strategy-icon {
  font-size: 22px;
  line-height: 1;
}

.win-strategy-body {
  font-size: 13px;
  color: #fce7b2;
  line-height: 1.4;
}

.win-strategy-body strong {
  color: #ffaa00;
  letter-spacing: 0.03em;
}

.win-rule-inline {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 170, 0, 0.35);
  color: #ffaa00;
  font-size: 12px;
  font-weight: 600;
}

/* Tab 3: Admin Permissions Form */
.perms-desc {
  margin-bottom: 20px;
}

.perms-desc h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.perms-desc p {
  font-size: 13px;
  color: var(--text-muted);
}

.perms-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
}

.perm-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(10, 5, 20, 0.7);
  border: 1px solid rgba(176, 38, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.perm-info {
  display: flex;
  flex-direction: column;
}

.perm-info strong {
  font-size: 13px;
  color: #fff;
}

.perm-info span {
  font-size: 11px;
  color: var(--text-dim);
}

/* Toggle Switch */
.perm-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #b026ff;
  border-color: #d8b4fe;
  box-shadow: 0 0 10px rgba(176, 38, 255, 0.5);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .panel-live-stats {
    flex-direction: column;
    align-items: stretch;
  }
  .live-stats-row {
    flex-direction: column;
  }
}
