/* ─── Glass Card Base ─── */
.glass {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  box-shadow: var(--shadow-glass);
  border-radius: var(--radius-xl);
}

.inner-glass {
  background: rgba(10, 10, 12, 0.4);
  backdrop-filter: blur(80px) saturate(150%);
  -webkit-backdrop-filter: blur(80px) saturate(150%);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.05), inset 0 20px 40px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0,0,0,0.8);
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  border-radius: var(--radius-lg);
}

.glass-violet {
  background: rgba(123, 94, 248, 0.05);
  border: 1px solid rgba(123, 94, 248, 0.15);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ─── Gradient Button ─── */
.btn-primary {
  background: var(--grad-violet);
  border: none;
  border-radius: var(--radius-pill);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--text-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 40%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2.5s linear infinite;
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 0 32px rgba(123, 94, 248, 0.5);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* ─── Pill ─── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill-violet {
  background: rgba(123, 94, 248, 0.2);
  color: var(--accent-violet-bright);
  border: 1px solid rgba(123, 94, 248, 0.3);
}

.pill-cyan {
  background: rgba(0, 229, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 212, 0.25);
}

.pill-pink {
  background: rgba(244, 114, 182, 0.15);
  color: var(--accent-pink);
  border: 1px solid rgba(244, 114, 182, 0.25);
}

/* ─── Avatar ─── */
.avatar {
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 40px; height: 40px; }
.avatar-lg { width: 48px; height: 48px; }

.avatar-glow {
  box-shadow: 0 0 0 1px var(--accent-violet), 0 4px 16px rgba(0, 0, 0, 0.6);
}

/* ─── Section Label ─── */
.section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-label svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

/* ─── Divider ─── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass-bright), transparent);
  margin: 10px 0;
}

/* ─── Number Display ─── */
.num-display {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  animation: countUp 0.3s var(--ease-out);
}

/* ─── Noise Overlay ─── */
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  border-radius: inherit;
  animation: noise 8s steps(1) infinite;
  opacity: 0.4;
}

/* ─── Scroll ─── */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll-x::-webkit-scrollbar { display: none; }

/* ─── Ticket Selected ─── */
.ticket-card.selected {
  border-color: var(--accent-violet) !important;
  background: var(--bg-glass-active) !important;
  animation: violetPulse 2s ease-in-out infinite;
  transform: scale(1.02);
}
