/* ==========================================================================
   Sonara UI Components
   ========================================================================== */

/* ==========================================================================
   Floating Navbar
   ========================================================================== */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-4) var(--space-6);
  pointer-events: none;
  transition: padding var(--transition-normal);
}

.navbar {
  pointer-events: auto;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1.25rem;
  background-color: var(--color-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal),
              transform var(--transition-normal);
}

.navbar-scrolled .navbar {
  background-color: rgba(16, 18, 24, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-md);
}

[data-theme="light"] .navbar-scrolled .navbar {
  background-color: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-icon img,
.brand-icon svg {
  width: 100%;
  height: 100%;
}

.brand-name {
  font-weight: 700;
  font-size: var(--text-base);
  background: linear-gradient(135deg, var(--color-text-primary) 30%, var(--color-text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: var(--space-1) 0;
}

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

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

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Theme Toggle */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
  position: relative;
}

.theme-toggle-btn:hover {
  color: var(--color-text-primary);
  border-color: var(--color-border-hover);
  background: var(--color-surface-active);
}

.theme-icon-sun,
.theme-icon-moon,
.theme-icon-system {
  width: 17px;
  height: 17px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* Mobile Menu Toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  gap: 5px;
  padding: 0;
}

.hamburger-line {
  width: 16px;
  height: 1.5px;
  background-color: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.nav-mobile-toggle.is-open .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-mobile-toggle.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Menu Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  padding: var(--space-8) var(--space-6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

[data-theme="light"] .mobile-nav-drawer {
  background: rgba(247, 247, 248, 0.92);
}

.mobile-nav-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

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

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.mobile-nav-links .nav-link {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text-primary);
}

.mobile-nav-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 500;
  font-size: var(--text-sm);
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--transition-fast),
              background var(--transition-fast),
              border-color var(--transition-fast),
              box-shadow var(--transition-fast),
              color var(--transition-fast);
  position: relative;
  user-select: none;
}

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

.btn-primary {
  background: var(--color-accent-gradient);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.55);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-surface-elevated);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-border-hover);
  background: var(--color-surface-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--color-text-primary);
  background: var(--color-surface-hover);
}

.btn-lg {
  padding: 0.8125rem 1.625rem;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
  font-weight: 600;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Badges & Pills
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.2;
}

.badge-accent {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border: 1px solid var(--color-border-accent);
}

.badge-surface {
  background: var(--color-surface-elevated);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.badge-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* ==========================================================================
   Feature Bento Cards
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
}

.bento-col-12 { grid-column: span 12; }
.bento-col-8  { grid-column: span 8; }
.bento-col-7  { grid-column: span 7; }
.bento-col-6  { grid-column: span 6; }
.bento-col-5  { grid-column: span 5; }
.bento-col-4  { grid-column: span 4; }

.bento-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal);
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}

.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(139, 92, 246, 0.08), transparent 80%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-card:hover::after {
  opacity: 1;
}

.bento-header {
  margin-bottom: var(--space-4);
  z-index: 1;
}

.bento-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.bento-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.bento-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.bento-visual {
  margin-top: auto;
  padding-top: var(--space-6);
  z-index: 1;
  position: relative;
}

/* ==========================================================================
   Interactive Music Player Desktop Mockup
   ========================================================================== */
.player-mockup {
  background: var(--mockup-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elevated), var(--shadow-glow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

/* Window Titlebar */
.mockup-titlebar {
  background: var(--mockup-sidebar);
  height: 40px;
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  user-select: none;
}

.mockup-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-close { background: #FF5F56; }
.dot-min { background: #FFBD2E; }
.dot-max { background: #27C93F; }

.mockup-search-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.mockup-kbd {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  padding: 1px 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-text-secondary);
}

.mockup-status {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.mockup-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
}

/* Mockup Body */
.mockup-body {
  display: flex;
  min-height: 440px;
  background: var(--mockup-bg);
}

/* Mockup Sidebar */
.mockup-sidebar {
  width: 220px;
  background: var(--mockup-sidebar);
  border-right: 1px solid var(--color-border-subtle);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  flex-shrink: 0;
}

.sidebar-group-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  padding: 0 var(--space-2);
}

.sidebar-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-item-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sidebar-item:hover {
  background: var(--mockup-row-hover);
  color: var(--color-text-primary);
}

.sidebar-item.active {
  background: var(--mockup-highlight);
  color: var(--color-accent);
  font-weight: 600;
}

.sidebar-count {
  font-size: 10px;
  opacity: 0.7;
}

/* Mockup Main View */
.mockup-main {
  flex: 1;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.mockup-view-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.mockup-tags {
  display: flex;
  gap: var(--space-2);
}

.mockup-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
}

.mockup-tag.active {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border-color: var(--color-border-accent);
}

/* Mockup Track Table */
.mockup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-xs);
}

.mockup-table th {
  text-align: left;
  padding: 6px 10px;
  color: var(--color-text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--color-border-subtle);
}

.mockup-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
}

.mockup-table tr {
  cursor: pointer;
  transition: background var(--transition-fast);
}

.mockup-table tr:hover {
  background: var(--mockup-row-hover);
}

.mockup-table tr.is-playing {
  background: var(--mockup-highlight);
  color: var(--color-accent);
}

.mockup-table tr.is-playing td {
  color: var(--color-accent);
}

.track-title-cell {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 500;
  color: var(--color-text-primary);
}

.track-thumb {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, #7C3AED, #3B82F6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.audio-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Mockup Bottom Player Bar */
.mockup-playerbar {
  background: var(--mockup-player);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  z-index: 2;
}

.player-track-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 200px;
}

.player-art {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #8B5CF6, #4F46E5);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

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

.player-meta {
  display: flex;
  flex-direction: column;
}

.player-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
}

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

.player-controls-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 520px;
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.player-btn {
  color: var(--color-text-secondary);
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.player-btn:hover {
  color: var(--color-text-primary);
  transform: scale(1.1);
}

.player-btn-play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-text-primary);
  color: var(--color-text-inverse);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.player-btn-play:hover {
  transform: scale(1.08);
  color: var(--color-text-inverse);
}

.player-progress-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
}

.player-time {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
}

.player-progressbar {
  flex: 1;
  height: 4px;
  background: var(--color-surface-hover);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.player-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 42%;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
}

.player-actions-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 160px;
  justify-content: flex-end;
}

.volume-slider-wrap {
  width: 70px;
  height: 4px;
  background: var(--color-surface-hover);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
}

.volume-slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 75%;
  background: var(--color-text-secondary);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Segmented Tabs
   ========================================================================== */
.tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-8);
}

.segmented-tabs {
  display: inline-flex;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 4px;
  border-radius: var(--radius-full);
  gap: 2px;
  box-shadow: var(--shadow-sm);
}

.tab-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  background: transparent;
}

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

.tab-btn.active {
  background: var(--color-surface-elevated);
  color: var(--color-text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  font-weight: 600;
}

[data-theme="dark"] .tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Equalizer Mockup Component
   ========================================================================== */
.eq-container {
  background: var(--mockup-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.eq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: var(--space-4);
}

.eq-presets {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.eq-preset-btn {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.eq-preset-btn.active,
.eq-preset-btn:hover {
  background: var(--color-accent-subtle);
  border-color: var(--color-border-accent);
  color: var(--color-accent);
}

.eq-sliders-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 220px;
  padding: var(--space-4) var(--space-2);
  position: relative;
}

.eq-db-axis {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  pointer-events: none;
}

.eq-band-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  height: 100%;
}

.eq-slider-track {
  width: 4px;
  height: 160px;
  background: var(--color-surface-hover);
  border-radius: var(--radius-full);
  position: relative;
  display: flex;
  justify-content: center;
}

.eq-slider-fill {
  position: absolute;
  bottom: 50%;
  width: 100%;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.eq-slider-thumb {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  border: 2px solid var(--color-accent);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
  border-radius: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  cursor: grab;
  transition: transform 0.1s ease;
}

.eq-slider-thumb:hover {
  transform: translate(-50%, 50%) scale(1.2);
}

.eq-freq-label {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
}

.eq-db-label {
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--color-accent);
}

/* ==========================================================================
   Shortcuts Modal Dialog
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-elevated);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-8);
  transform: scale(0.96) translateY(10px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.is-open .modal-dialog {
  transform: scale(1) translateY(0);
}

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

.modal-title {
  font-size: var(--text-xl);
  font-weight: 700;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--color-text-primary);
  border-color: var(--color-border-hover);
}

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

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
}

.shortcut-action {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.shortcut-keys {
  display: flex;
  gap: 4px;
}

.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Skeleton Loaders
   ========================================================================== */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface-elevated) 25%, var(--color-surface-hover) 50%, var(--color-surface-elevated) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.8s infinite;
  border-radius: var(--radius-sm);
}

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