/**
 * AiDrumScore - AI驱动的鼓谱转录工具
 * Copyright (c) 2026 苏州市常熟市制谱修修信息技术服务有限责任公司. All rights reserved.
 */
/* ============================================================
   AiDrumScore - Global Design System
   Dark Tech / Apple Pro Product Page Inspired
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS (CSS Custom Properties)
   ------------------------------------------------------------ */
:root {
  /* New homepage design tokens */
  --bg: #121216;
  --bg-card: #1e1e24;
  --bg-input: #2a2a32;
  --white: #f8f8f6;
  --gray: #78787d;
  --light-gray: #505055;
  --accent: #00c8b4;
  --accent-hover: #00e0cc;
  --accent-bg: rgba(0, 200, 180, 0.15);
  --border: #28282f;
  --nav-bg: #0c0c10;

  /* Backgrounds - deep dark with subtle warmth */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-border: rgba(255, 255, 255, 0.08);

  /* Text */
  --text-primary: #f5f5f7;
  --text-secondary: rgba(245, 245, 247, 0.7);
  --text-tertiary: rgba(245, 245, 247, 0.45);
  --text-accent: #bf5af2;
  
  /* Gray colors */
  --gray-500: #666;

  /* Accent colors */
  --accent-primary: #bf5af2;
  --accent-secondary: #5e5ce6;
  --accent-gradient: linear-gradient(135deg, #bf5af2 0%, #5e5ce6 50%, #30d158 100%);
  --accent-gradient-subtle: linear-gradient(135deg, rgba(191, 90, 242, 0.15) 0%, rgba(94, 92, 230, 0.15) 100%);
  --accent-glow: 0 0 40px rgba(191, 90, 242, 0.3);

  /* Status colors */
  --success: #30d158;
  --warning: #ffd60a;
  --danger: #ff453a;
  --info: #64d2ff;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* Typography */
  --font-display: 'SF Pro Display', -apple-system, 'Helvetica Neue', sans-serif;
  --font-body: 'SF Pro Text', -apple-system, 'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(191, 90, 242, 0.2);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border */
  --border-subtle: 1px solid rgba(255, 255, 255, 0.06);
  --border-medium: 1px solid rgba(255, 255, 255, 0.1);
}


/* ------------------------------------------------------------
   2. RESET & GLOBAL STYLES
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.57014;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Selection */
::selection {
  background-color: rgba(191, 90, 242, 0.35);
  color: #ffffff;
}

::-moz-selection {
  background-color: rgba(191, 90, 242, 0.35);
  color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
  background: rgba(191, 90, 242, 0.3);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(191, 90, 242, 0.5);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(191, 90, 242, 0.3) rgba(255, 255, 255, 0.02);
}

/* Links */
a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #d88aff;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lists */
ul, ol {
  list-style: none;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}


/* ------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(24px, 3.5vw, 40px);
  letter-spacing: -0.028em;
}

h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  letter-spacing: -0.022em;
}

h4 {
  font-size: 20px;
  letter-spacing: -0.018em;
}

h5 {
  font-size: 17px;
  letter-spacing: -0.015em;
}

h6 {
  font-size: 15px;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  line-height: 1.57014;
}

code, pre {
  font-family: var(--font-mono);
}

code {
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-primary);
}

pre {
  background: var(--bg-tertiary);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
}


/* ------------------------------------------------------------
   4. NAVBAR (New Homepage Style)
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  padding: 0 40px;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  border: 2px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-logo-icon::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 36px;
  margin-left: 60px;
}

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--accent); }

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-lang {
  padding: 6px 16px;
  border-radius: 12px;
  background: #32323a;
  color: var(--gray);
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-lang:hover { background: #3a3a44; color: var(--white); }

.nav-cs-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  transition: all 0.2s;
  margin-right: 8px;
}
.nav-cs-link:hover {
  background: var(--accent);
  color: #fff;
}

.btn-nav-login {
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.btn-nav-login:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Old navbar styles for compatibility */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  white-space: nowrap;
}

.navbar-logo:hover {
  color: var(--text-primary);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.navbar-nav a,
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.navbar-nav a:hover,
.nav-link:hover {
  color: var(--text-primary);
}

.navbar-nav a.active,
.nav-link.active {
  color: var(--text-primary);
}

.navbar-nav a.active::after,
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  white-space: nowrap;
}

.logo:hover {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex: 1;
  justify-content: center;
}

.lang-selector {
  padding: 6px 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f5f5f7' fill-opacity='0.45' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}

.lang-selector:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

/* User dropdown */
.navbar-user {
  position: relative;
}

.navbar-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-xs);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
}

.navbar-user:hover .navbar-user-menu,
.navbar-user-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-user-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.navbar-user-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.navbar-user-menu .divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: var(--space-xs) 0;
}

/* Mobile hamburger */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 0;
}

.navbar-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition-fast);
}

/* Custom nav hamburger (for pages using .nav instead of .navbar) */
.nav .hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 0;
  margin-left: auto;
  margin-right: 0;
  z-index: 101;
}

.nav .hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav .hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav .hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav .hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile dropdown for .nav */
.nav .nav-links.active {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--nav-bg, #0c0c10);
  border-bottom: 1px solid var(--border);
  padding: 16px 40px;
  gap: 12px;
  z-index: 99;
  margin-left: 0;
}

.nav .nav-links.active a {
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}

.nav .nav-links.active a:last-child {
  border-bottom: none;
}


/* ------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97);
}

/* Primary */
.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
  color: #ffffff;
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: none;
}

/* Secondary */
.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Danger */
.btn-danger {
  background: var(--danger);
  color: #ffffff;
  border: none;
}

.btn-danger:hover {
  background: #ff6961;
  box-shadow: 0 0 20px rgba(255, 69, 58, 0.3);
  color: #ffffff;
}

/* Sizes */
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Disabled */
.btn:disabled,
.btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Icon button */
.btn-icon {
  padding: 8px;
  min-width: 36px;
  min-height: 36px;
}

.btn-icon.btn-sm {
  padding: 6px;
  min-width: 28px;
  min-height: 28px;
}


/* ------------------------------------------------------------
   6. CARDS
   ------------------------------------------------------------ */
.card {
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
}

.card-clickable {
  cursor: pointer;
}

.card-clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-header {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: -12px;
  margin-bottom: var(--space-md);
}

.card-body {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.57014;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: var(--border-subtle);
}

/* Card with glow on hover */
.card-glow:hover {
  box-shadow: var(--shadow-glow);
}


/* ------------------------------------------------------------
   7. FORMS
   ------------------------------------------------------------ */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: all var(--transition-fast);
  outline: none;
  line-height: 1.5;
}

.form-control::placeholder {
  color: var(--text-tertiary);
}

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(191, 90, 242, 0.15);
  background: rgba(255, 255, 255, 0.07);
}

.form-control:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Textarea */
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Select */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f5f5f7' fill-opacity='0.45' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Form helper text */
.form-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* Form error */
.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
}

.form-control.is-error {
  border-color: var(--danger);
}

.form-control.is-error:focus {
  box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.15);
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  flex-shrink: 0;
}

.form-check input[type="radio"] {
  border-radius: 50%;
}

.form-check input[type="checkbox"]:checked,
.form-check input[type="radio"]:checked {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.form-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-check input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Toggle switch */
.form-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.form-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-toggle-track {
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
  position: relative;
}

.form-toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.form-toggle input:checked + .form-toggle-track {
  background: var(--accent-primary);
}

.form-toggle input:checked + .form-toggle-track::after {
  transform: translateX(20px);
}


/* ------------------------------------------------------------
   8. BADGES
   ------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
}

.badge-purple {
  background: rgba(191, 90, 242, 0.15);
  color: #bf5af2;
}

.badge-green {
  background: rgba(48, 209, 88, 0.15);
  color: #30d158;
}

.badge-blue {
  background: rgba(100, 210, 255, 0.15);
  color: #64d2ff;
}

.badge-yellow {
  background: rgba(255, 214, 10, 0.15);
  color: #ffd60a;
}

.badge-red {
  background: rgba(255, 69, 58, 0.15);
  color: #ff453a;
}

.badge-gray {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}


/* ------------------------------------------------------------
   9. TOAST NOTIFICATIONS
   ------------------------------------------------------------ */
.toast-container {
  position: fixed;
  top: 64px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: 13px;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(100%);
  max-width: 380px;
  position: fixed;
  top: 64px;
  right: 20px;
  z-index: 9999;
}

.toast-show {
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast-hide {
  animation: fadeOut 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast-success {
  border-left: 3px solid var(--success);
}

.toast-error {
  border-left: 3px solid var(--danger);
}

.toast-info {
  border-left: 3px solid var(--accent-primary);
}

.toast-warning {
  border-left: 3px solid var(--warning);
}

.toast-icon {
  flex-shrink: 0;
  font-size: 16px;
}

.toast-message {
  flex: 1;
  line-height: 1.4;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 2px;
  font-size: 16px;
  line-height: 1;
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: var(--text-primary);
}


/* ------------------------------------------------------------
   10. CONTAINER
   ------------------------------------------------------------ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-sm {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-md {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-lg {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}


/* ------------------------------------------------------------
   11. GRID & FLEX UTILITIES
   ------------------------------------------------------------ */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-col {
  flex-direction: column;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.flex-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.items-end {
  align-items: flex-end;
}

.flex-1 {
  flex: 1;
}

.gap-xs {
  gap: var(--space-xs);
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.gap-xl {
  gap: var(--space-xl);
}


/* ------------------------------------------------------------
   12. PAGINATION
   ------------------------------------------------------------ */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.pagination-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.pagination-btn.active {
  color: #ffffff;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-btn:disabled:hover {
  background: transparent;
  color: var(--text-secondary);
}

.pagination-ellipsis {
  color: var(--text-tertiary);
  font-size: 13px;
  padding: 0 4px;
}


/* ------------------------------------------------------------
   13. EMPTY STATE
   ------------------------------------------------------------ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: var(--space-lg);
  opacity: 0.3;
  color: var(--text-tertiary);
}

.empty-state-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.empty-state-text {
  font-size: 14px;
  color: var(--text-tertiary);
  max-width: 320px;
  line-height: 1.5;
}


/* ------------------------------------------------------------
   14. LOADING / SPINNER
   ------------------------------------------------------------ */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(191, 90, 242, 0.2);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner-sm {
  width: 14px;
  height: 14px;
  border-width: 1.5px;
}

.spinner-lg {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.loading-text {
  font-size: 13px;
  color: var(--text-secondary);
}


/* ------------------------------------------------------------
   15. ANIMATIONS
   ------------------------------------------------------------ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(191, 90, 242, 0.15);
  }
  50% {
    box-shadow: 0 0 40px rgba(191, 90, 242, 0.3);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Animation utility classes */
.animate-fadeIn {
  animation: fadeIn var(--transition-normal) both;
}

.animate-slideUp {
  animation: slideUp var(--transition-slow) both;
}

.animate-slideInRight {
  animation: slideInRight var(--transition-normal) both;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-glow {
  animation: glow 3s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Staggered animation delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }


/* ------------------------------------------------------------
   16. SKELETON LOADING
   ------------------------------------------------------------ */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 14px;
  margin-bottom: var(--space-sm);
  border-radius: 4px;
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-title {
  height: 24px;
  width: 50%;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-sm);
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-card {
  height: 180px;
  border-radius: var(--radius-lg);
}

.skeleton-image {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-lg);
}


/* ------------------------------------------------------------
   17. TEXT UTILITIES
   ------------------------------------------------------------ */
/* Gradient text */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Text colors */
.text-primary {
  color: var(--text-primary) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-tertiary {
  color: var(--text-tertiary) !important;
}

.text-accent {
  color: var(--text-accent) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.text-info {
  color: var(--info) !important;
}

/* Text sizes */
.text-xs {
  font-size: 11px !important;
}

.text-sm {
  font-size: 13px !important;
}

.text-base {
  font-size: 14px !important;
}

.text-lg {
  font-size: 17px !important;
}

.text-xl {
  font-size: 20px !important;
}

.text-2xl {
  font-size: 24px !important;
}

/* Font weights */
.font-normal {
  font-weight: 400 !important;
}

.font-medium {
  font-weight: 500 !important;
}

.font-semibold {
  font-weight: 600 !important;
}

.font-bold {
  font-weight: 700 !important;
}

/* Text alignment */
.text-center {
  text-align: center !important;
}

.text-right {
  text-align: right !important;
}

.text-left {
  text-align: left !important;
}

/* Text overflow */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Uppercase */
.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ------------------------------------------------------------
   18. SPACING UTILITIES
   ------------------------------------------------------------ */
/* Margin top */
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

/* Margin bottom */
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

/* Margin horizontal */
.mx-auto { margin-left: auto; margin-right: auto; }

/* Margin all */
.m-sm { margin: var(--space-sm); }
.m-md { margin: var(--space-md); }
.m-lg { margin: var(--space-lg); }

/* Padding */
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }

.px-sm { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-lg { padding-left: var(--space-lg); padding-right: var(--space-lg); }

.py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.py-2xl { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }


/* ------------------------------------------------------------
   19. GLASS MORPHISM
   ------------------------------------------------------------ */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}


/* ------------------------------------------------------------
   20. GRADIENT MESH BACKGROUND
   ------------------------------------------------------------ */
.mesh-bg {
  position: relative;
  overflow: hidden;
}

.mesh-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(191, 90, 242, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(94, 92, 230, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 60% 80%, rgba(48, 209, 88, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 10% 90%, rgba(100, 210, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.mesh-bg > * {
  position: relative;
  z-index: 1;
}

/* Subtle noise texture overlay */
.noise-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  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)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}


/* ------------------------------------------------------------
   21. DISPLAY UTILITIES
   ------------------------------------------------------------ */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }

.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }

.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }
.overflow-scroll { overflow: scroll !important; }

.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }

.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.min-h-screen { min-height: 100vh !important; }

.z-10 { z-index: 10 !important; }
.z-50 { z-index: 50 !important; }
.z-100 { z-index: 100 !important; }

.pointer-events-none { pointer-events: none !important; }
.cursor-pointer { cursor: pointer !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ------------------------------------------------------------
   22. DIVIDERS & SEPARATORS
   ------------------------------------------------------------ */
.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  margin: var(--space-lg) 0;
}

.divider-sm {
  height: 1px;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  margin: var(--space-md) 0;
}

.divider-vertical {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  display: inline-block;
  vertical-align: middle;
}


/* ------------------------------------------------------------
   23. AVATAR
   ------------------------------------------------------------ */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-gradient-subtle);
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.avatar-md {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 17px;
}

.avatar-xl {
  width: 64px;
  height: 64px;
  font-size: 22px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ------------------------------------------------------------
   24. PROGRESS BAR
   ------------------------------------------------------------ */
.progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

.progress-bar-striped {
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.1) 75%,
    transparent 75%,
    transparent
  );
  background-size: 16px 16px;
  animation: shimmer 1s linear infinite;
}

.progress-lg {
  height: 8px;
}


/* ------------------------------------------------------------
   25. TOOLTIP
   ------------------------------------------------------------ */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all var(--transition-fast);
  z-index: 100;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ------------------------------------------------------------
   26. TABS
   ------------------------------------------------------------ */
.tabs {
  display: flex;
  gap: var(--space-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0;
}

.tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: -1px;
}

.tab:hover {
  color: var(--text-secondary);
}

.tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-primary);
}


/* ------------------------------------------------------------
   27. MODAL / DIALOG
   ------------------------------------------------------------ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease both;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 520px;
  width: calc(100% - 48px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 18px;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.modal-body {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.57014;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: var(--border-subtle);
}


/* ------------------------------------------------------------
   28. DROPDOWN
   ------------------------------------------------------------ */
.dropdown {
  position: relative;
  display: inline-flex;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-xs);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu.right {
  left: auto;
  right: 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  text-decoration: none;
  font-family: var(--font-body);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.dropdown-item.danger {
  color: var(--danger);
}

.dropdown-item.danger:hover {
  background: rgba(255, 69, 58, 0.1);
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: var(--space-xs) 0;
}


/* ------------------------------------------------------------
   29. TABLE
   ------------------------------------------------------------ */
.table-wrapper {
  overflow-x: auto;
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
}

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

.table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 500;
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.table td {
  padding: 12px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}


/* ------------------------------------------------------------
   30. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    padding: 0 var(--space-md);
  }

  .navbar-nav {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-md);
    gap: 0;
  }

  .navbar-nav.show {
    display: flex;
  }

  .navbar-nav a,
  .nav-link {
    padding: 12px var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 15px;
  }

  .navbar-nav a:hover,
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .navbar-nav a.active::after,
  .nav-link.active::after {
    display: none;
  }

  .navbar-hamburger {
    display: flex;
  }

  /* Custom nav mobile */
  .nav {
    padding: 0 16px !important;
  }

  .nav .nav-links {
    display: none;
  }

  .nav .hamburger {
    display: flex;
  }

  /* Grid */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Container */
  .container {
    padding: 0 var(--space-md);
  }

  .container-sm,
  .container-md,
  .container-lg {
    padding: 0 var(--space-md);
  }

  /* Cards */
  .card {
    padding: var(--space-md);
  }

  /* Toast */
  .toast-container {
    top: 60px;
    right: 12px;
    left: 12px;
  }

  .toast {
    max-width: 100%;
  }

  /* Modal */
  .modal {
    padding: var(--space-lg);
    margin: 0 var(--space-md);
    width: calc(100% - 32px);
  }

  /* Spacing */
  .mt-xl, .mb-xl { margin-top: var(--space-lg); margin-bottom: var(--space-lg); }
  .py-xl { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
  .py-2xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

  /* Table */
  .table th,
  .table td {
    padding: 10px 12px;
  }

  /* Tabs */
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab {
    padding: 8px 12px;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  /* Further compact */
  .navbar {
    padding: 0 var(--space-sm);
  }

  .container,
  .container-sm,
  .container-md,
  .container-lg {
    padding: 0 var(--space-sm);
  }

  .card {
    padding: var(--space-sm);
    border-radius: var(--radius-md);
  }

  .btn-lg {
    padding: 10px 20px;
    font-size: 14px;
  }

  .modal {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    width: calc(100% - 16px);
    margin: 0 var(--space-sm);
  }

  .toast-container {
    right: 8px;
    left: 8px;
  }

  .toast {
    padding: 10px 14px;
    font-size: 12px;
  }

  /* Typography */
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 18px;
  }

  /* Spacing */
  .mt-lg, .mb-lg { margin-top: var(--space-md); margin-bottom: var(--space-md); }
  .py-lg { padding-top: var(--space-md); padding-bottom: var(--space-md); }
}


/* ------------------------------------------------------------
   31. SCORE CARD STYLES
   ------------------------------------------------------------ */
.score-card {
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.score-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.score-preview {
  position: relative;
  height: 160px;
  background: var(--accent-gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.score-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(191, 90, 242, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.score-preview-icon {
  font-size: 48px;
  z-index: 1;
  opacity: 0.8;
}

.score-price-tag {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
}

.score-price-tag.free {
  background: rgba(48, 209, 88, 0.2);
  color: var(--success);
}

.score-member-free-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: rgba(191, 90, 242, 0.2);
  color: var(--accent-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
}

.score-download-tag {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2;
}

.score-card-body {
  padding: var(--space-md);
}

.score-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-artist {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.score-type-tag {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.score-type-tag.original {
  background: rgba(191, 90, 242, 0.15);
  color: #bf5af2;
}

.score-type-tag.tutorial {
  background: rgba(100, 210, 255, 0.15);
  color: #64d2ff;
}

.score-type-tag.cover {
  background: rgba(48, 209, 88, 0.15);
  color: #30d158;
}

.score-type-tag.free {
  background: rgba(48, 209, 88, 0.15);
  color: #30d158;
}

.score-type-tag.competition {
  background: rgba(255, 214, 10, 0.15);
  color: #ffd60a;
}

.score-downloads {
  font-size: 12px;
  color: var(--text-tertiary);
  flex: 1;
  text-align: right;
  white-space: nowrap;
}

/* Purchase modal */
.purchase-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.purchase-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.purchase-modal {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 480px;
  width: calc(100% - 48px);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.purchase-modal-overlay.show .purchase-modal {
  transform: translateY(0);
}

.purchase-modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-align: center;
  letter-spacing: -0.02em;
}

.purchase-modal-score-name {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  text-align: center;
  line-height: 1.3;
}

.purchase-modal-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: var(--space-lg);
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.purchase-modal-hint {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-xl);
  text-align: center;
  line-height: 1.5;
}

.purchase-modal-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.purchase-modal-actions .btn {
  min-width: 120px;
}

/* ------------------------------------------------------------
   32. PRINT STYLES
   ------------------------------------------------------------ */
@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  .navbar,
  .toast-container,
  .modal-overlay,
  .loading-overlay {
    display: none !important;
  }

  .card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .glass,
  .glass-strong,
  .glass-dark {
    background: #ffffff;
    backdrop-filter: none;
    border: 1px solid #e0e0e0;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }
}
