/* Card */
.card {
  background: var(--gray-mid);
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s;
}
.card:hover {
  border-color: rgba(255, 0, 0, 0.3);
}

/* Pill Button */
.pill-btn {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  font-family: var(--font-system);
  font-size: 12px;
  color: var(--text-sec);
  background: transparent;
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
}
.pill-btn:hover {
  border-color: var(--red);
  color: var(--white);
}
.pill-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* Primary Button */
.btn-primary {
  display: inline-block;
  padding: 10px 24px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-primary:hover {
  opacity: 0.85;
  color: var(--white);
}

/* Secondary Button */
.btn-secondary {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  color: var(--text-sec);
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover {
  border-color: var(--red);
  color: var(--white);
}

/* Status Dot */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}
.status-dot.live {
  background: var(--red);
  animation: blink-red 1.8s ease infinite;
}
.status-dot.online {
  background: var(--green);
}

/* Pulsing Red Dot */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: blink-red 1.8s ease infinite;
}

@keyframes blink-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Badge */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-system);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-live {
  background: var(--red);
  color: var(--white);
}
.badge-offline {
  background: var(--gray-hi);
  color: var(--text-dim);
}

/* Section Header */
.section-header {
  font-family: var(--font-gothic);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

/* Skull Watermark */
.skull-watermark {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 160px;
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}

/* Corner Accent */
.corner-accent {
  position: absolute;
  width: 60px;
  height: 60px;
  opacity: 0.25;
  pointer-events: none;
}
.corner-accent.top-left {
  top: 24px;
  left: 24px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
}
.corner-accent.top-right {
  top: 24px;
  right: 24px;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
}
.corner-accent.bottom-left {
  bottom: 24px;
  left: 24px;
  border-bottom: 2px solid var(--red);
  border-left: 2px solid var(--red);
}
.corner-accent.bottom-right {
  bottom: 24px;
  right: 24px;
  border-bottom: 2px solid var(--red);
  border-right: 2px solid var(--red);
}

/* Notification Bell */
.notif-wrapper {
  position: relative;
}

.notif-bell-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  color: var(--text-sec);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  position: relative;
}

.notif-bell-btn:hover {
  border-color: var(--red);
  color: var(--white);
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-system);
  font-size: 9px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* Notification Panel */
.notif-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  max-height: 400px;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  z-index: 1200;
  overflow: hidden;
  margin-top: 8px;
}

.notif-panel.open {
  display: block;
}

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

.notif-title {
  font-family: var(--font-gothic);
  font-size: 13px;
  color: var(--text-pri);
}

.notif-clear-btn {
  font-family: var(--font-system);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.notif-clear-btn:hover {
  color: var(--red);
}

.notif-list {
  overflow-y: auto;
  max-height: 350px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.notif-unread {
  background: rgba(152, 9, 10, 0.06);
  border-left: 2px solid var(--red);
}

.notif-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  padding-top: 2px;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-message {
  font-family: var(--font-system);
  font-size: 12px;
  color: var(--text-sec);
  line-height: 1.5;
  margin-bottom: 4px;
}

.notif-unread .notif-message {
  color: var(--text-pri);
}

.notif-time {
  font-family: var(--font-system);
  font-size: 10px;
  color: var(--text-dim);
}

.notif-empty {
  padding: 40px 16px;
  text-align: center;
  font-family: var(--font-system);
  font-size: 12px;
  color: var(--text-dim);
}

/* Desktop sidebar: panel flies out to the right */
@media (min-width: 768px) {
  .notif-panel {
    right: auto;
    left: 100%;
    top: 0;
    margin-top: 0;
    margin-left: 8px;
  }
}

/* Auth User Info */
.auth-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  object-fit: cover;
}

.auth-user-badge {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.auth-user-title {
  color: #ff6600;
  font-size: 10px;
  font-style: italic;
  white-space: nowrap;
}

/* Hype Train Banner */
.hype-train-banner {
  background: linear-gradient(90deg, #1a0500 0%, #330a00 50%, #1a0500 100%);
  border-bottom: 2px solid #ff4400;
  padding: 6px 16px;
}
.hype-train-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
  font-family: var(--font-system);
  font-size: 12px;
}
.hype-train-icon { font-size: 18px; }
.hype-train-text {
  font-weight: bold;
  color: #ff4400;
  white-space: nowrap;
  font-size: 13px;
}
.hype-train-bar {
  flex: 1;
  height: 8px;
  background: var(--gray-hi);
  border-radius: 4px;
  overflow: hidden;
  min-width: 80px;
}
.hype-train-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff4400, #ff8800);
  border-radius: 4px;
  transition: width 0.5s ease;
}
.hype-train-pct {
  color: #ff8800;
  font-weight: bold;
  min-width: 30px;
  text-align: right;
}
.auth-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  font-size: 10px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  padding: 0;
  margin-left: 4px;
}

.auth-logout-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Mixed-font capitals */
.cap {
  font-family: var(--font-display);
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
