/* ─── Components CSS ──────────────────────────────────── */
/* Navbar · SideDrawer · MiniPlayer · Cards · Buttons     */

/* ═══════════════════════════════════════════════════════ */
/*  NAVBAR                                                 */
/* ═══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-h);
  z-index: var(--z-navbar);
  background: rgba(7, 9, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: margin-left 0.35s var(--ease-out);
}

@media (min-width: 1024px) {
  .drawer-open .navbar {
    margin-left: var(--drawer-w);
  }
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  max-width: var(--content-max-w);
  margin: 0 auto;
  gap: 16px;
}

/* Hamburger */
.navbar-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
}

.navbar-hamburger:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--theme-text);
  border-radius: 1px;
  transition: all 0.3s var(--ease-out);
}

.drawer-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.drawer-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.drawer-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Brand */
.navbar-brand {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--theme-accent);
  transition: color 0.3s;
}

.navbar-brand:hover {
  color: var(--theme-text);
}

/* Nav Links */
.navbar-links {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

@media (min-width: 768px) {
  .navbar-links {
    display: flex;
  }
}

.nav-link {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.2s var(--ease-in-out);
  letter-spacing: 0.03em;
}

.nav-link:hover {
  color: var(--theme-text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--theme-accent);
  /* var(--theme-accent) is a hex string, so rgba(var(...), x) is invalid;
     fall back to a neutral tint and let identity rules below override. */
  background: rgba(255, 255, 255, 0.06);
}

/* Identity Badge */
.navbar-identity-badge {
  margin-left: auto;
}

@media (min-width: 768px) {
  .navbar-identity-badge {
    margin-left: 0;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Fira Code', monospace;
  letter-spacing: 0.05em;
}

.badge-developer {
  background: rgba(79, 195, 247, 0.1);
  color: #4fc3f7;
  border: 1px solid rgba(79, 195, 247, 0.2);
}

.badge-artist {
  background: rgba(0, 240, 255, 0.1);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

/* Developer Navbar style */
.theme-developer .navbar {
  border-bottom-color: rgba(79, 195, 247, 0.1);
}

.theme-developer .nav-link.active {
  color: #4fc3f7;
  background: rgba(79, 195, 247, 0.08);
}

/* Artist Navbar style */
.theme-artist .navbar {
  border-bottom-color: rgba(0, 240, 255, 0.1);
}

.theme-artist .nav-link.active {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
}

/* ═══════════════════════════════════════════════════════ */
/*  SIDE DRAWER                                            */
/* ═══════════════════════════════════════════════════════ */
.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--drawer-w);
  height: 100vh;
  z-index: var(--z-drawer);
  background: #0c0f18;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.side-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-height: var(--navbar-h);
}

.drawer-brand {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--theme-accent);
}

.drawer-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.2s;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--theme-text);
}

/* Identity Label */
.drawer-identity {
  padding: 12px 20px;
  font-family: var(--theme-font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

.drawer-identity.identity-developer {
  color: #4fc3f7;
  border-bottom: 1px solid rgba(79, 195, 247, 0.1);
}

.drawer-identity.identity-artist {
  color: #00f0ff;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.identity-icon {
  margin-right: 8px;
}

/* Navigation Links */
.drawer-nav {
  flex: 1;
  padding: 8px 0;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s var(--ease-in-out);
  border-left: 3px solid transparent;
}

.drawer-link:hover {
  color: var(--theme-text);
  background: rgba(255, 255, 255, 0.04);
}

.drawer-link.active {
  color: var(--theme-accent);
  background: rgba(255, 255, 255, 0.03);
  border-left-color: var(--theme-accent);
}

.drawer-link-icon {
  width: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* Footer */
.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-home-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.drawer-home-link:hover {
  color: var(--theme-accent);
}

.drawer-socials {
  display: flex;
  gap: 12px;
  padding-top: 12px;
}

.social-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s;
  letter-spacing: 0.05em;
}

.social-link:hover {
  color: var(--theme-accent);
}

/* Developer drawer style */
.theme-developer .side-drawer {
  border-right-color: rgba(79, 195, 247, 0.08);
}

.theme-developer .drawer-link.active {
  color: #4fc3f7;
  border-left-color: #4fc3f7;
}

/* Artist drawer style */
.theme-artist .side-drawer {
  background: #0a0a12;
  border-right-color: rgba(0, 240, 255, 0.08);
}

.theme-artist .drawer-link.active {
  color: #00f0ff;
  border-left-color: #00f0ff;
}

.theme-artist .drawer-link:hover {
  background: rgba(0, 240, 255, 0.04);
}

/* ═══════════════════════════════════════════════════════ */
/*  MINI PLAYER                                            */
/* ═══════════════════════════════════════════════════════ */
#mini-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-mini-player);
}

.mini-player {
  background: rgba(10, 12, 20, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  height: var(--mini-player-h);
  transition: margin-left 0.35s var(--ease-out);
}

@media (min-width: 1024px) {
  .drawer-open .mini-player {
    margin-left: var(--drawer-w);
  }
}

.mp-progress-bar {
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.mp-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--theme-accent);
  border-radius: 0 2px 2px 0;
  transition: width 0.1s linear;
}

.mp-content {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  gap: 12px;
}

/* Track info */
.mp-track-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.mp-cover {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
}

.mp-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.2);
}

.mp-meta {
  min-width: 0;
}

.mp-title {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-artist {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Controls */
.mp-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mp-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  color: rgba(255, 255, 255, 0.7);
}

.mp-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--theme-text);
}

.mp-play {
  width: 40px;
  height: 40px;
  background: var(--theme-accent);
  color: #07090f;
}

.mp-play:hover {
  background: var(--theme-text);
  color: #07090f;
}

/* Time */
.mp-time {
  display: none;
  font-size: 0.72rem;
  font-family: 'Fira Code', monospace;
  color: rgba(255, 255, 255, 0.4);
  gap: 2px;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .mp-time { display: flex; }
}

.mp-time-sep { margin: 0 2px; }

/* Volume */
.mp-volume {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 768px) {
  .mp-volume { display: flex; }
}

.mp-mute {
  width: 30px;
  height: 30px;
}

.mp-volume-slider {
  width: 80px;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  outline: none;
}

.mp-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--theme-accent);
  cursor: pointer;
}

/* Developer mini-player style */
.mini-player[data-identity="developer"] {
  border-top-color: rgba(79, 195, 247, 0.1);
}

.mini-player[data-identity="developer"] .mp-play {
  background: #4fc3f7;
}

.mini-player[data-identity="developer"] .mp-progress-fill {
  background: #4fc3f7;
}

/* Artist mini-player style */
.mini-player[data-identity="artist"] {
  border-top-color: rgba(0, 240, 255, 0.1);
}

.mini-player[data-identity="artist"] .mp-play {
  background: #00f0ff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
}

.mini-player[data-identity="artist"] .mp-progress-fill {
  background: linear-gradient(90deg, #00f0ff, #e040fb);
}

.mini-player[data-identity="artist"] .mp-cover {
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════ */
/*  CARDS                                                  */
/* ═══════════════════════════════════════════════════════ */
.card {
  background: var(--theme-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s var(--ease-out);
}

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

.card-skeleton {
  min-height: 200px;
}

/* Project Card */
.card-project .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.project-icon {
  font-size: 1.2rem;
  color: var(--theme-accent);
}

.card-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-in-progress {
  background: rgba(79, 195, 247, 0.1);
  color: #4fc3f7;
}

.status-released {
  background: rgba(76, 175, 80, 0.1);
  color: #66bb6a;
}

.status-archived {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  margin-bottom: 12px;
}

.card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tech-tag {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Fira Code', monospace;
}

.card-footer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* Album Card */
.card-album {
  padding: 0;
  overflow: hidden;
}

.card-album .card-title,
.card-album .card-meta,
.card-album .card-genre {
  padding: 0 16px;
}

.card-album .card-title {
  padding-top: 14px;
}

.card-album .card-genre {
  padding-bottom: 16px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

.card-album .card-meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

.card-cover {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.06));
}

.cover-icon {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.1);
}

.cover-placeholder.large .cover-icon {
  font-size: 3rem;
}

.card-cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.25s;
}

.card-album:hover .card-cover-overlay {
  opacity: 1;
}

.play-album-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--theme-accent);
  color: #07090f;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.play-album-btn:hover {
  transform: scale(1.1);
}

/* Track List Item */
.track-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}

.track-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.track-num {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  width: 24px;
  text-align: right;
}

.track-title {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}

.track-genre {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  display: none;
}

@media (min-width: 640px) {
  .track-genre { display: block; }
}

.track-duration {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

.track-play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s;
}

.track-play-btn:hover {
  background: var(--theme-accent);
  color: #07090f;
}

/* Blog Card */
.card-blog .card-date {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 6px;
  font-family: 'Fira Code', monospace;
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.card-tag {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════ */
/*  BUTTONS                                                */
/* ═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: all 0.25s var(--ease-in-out);
  cursor: pointer;
}

.btn-primary {
  background: var(--theme-accent);
  color: #07090f;
}

.btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  border-color: var(--theme-accent);
  color: var(--theme-accent);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
}

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

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
}

.btn-neon {
  background: transparent;
  border: 1px solid #00f0ff;
  color: #00f0ff;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.btn-neon:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════ */
/*  TABS                                                   */
/* ═══════════════════════════════════════════════════════ */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
}

.tab {
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  margin-bottom: -1px;
}

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

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

/* ═══════════════════════════════════════════════════════ */
/*  MODALS                                                 */
/* ═══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s var(--ease-in-out);
}

.modal-overlay.visible {
  opacity: 1;
}

.modal {
  background: var(--theme-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease-out);
}

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

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.2s;
}

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

.modal-body {
  padding: 24px;
}

/* ═══════════════════════════════════════════════════════ */
/*  BACK LINK                                              */
/* ═══════════════════════════════════════════════════════ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 24px;
  transition: color 0.2s;
  position: relative;
  z-index: 1;
}
.back-link:hover { color: var(--theme-accent); }
.neon-link:hover { color: #00f0ff; text-shadow: 0 0 6px rgba(0,240,255,0.3); }

/* ═══════════════════════════════════════════════════════ */
/*  STORE PAGES                                            */
/* ═══════════════════════════════════════════════════════ */
.page-store { position: relative; min-height: 100vh; }

.store-header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title cart"
    "subtitle subtitle";
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.store-title {
  grid-area: title;
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  margin: 0;
  min-width: 0;
}

.store-subtitle {
  grid-area: subtitle;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.42);
  margin: 0;
  line-height: 1.4;
}

.btn-cart { grid-area: cart; }

.store-grid { position: relative; z-index: 1; }
.empty-text { color: rgba(255,255,255,0.35); padding: 40px 0; text-align: center; }

.btn-cart {
  font-size: 0.82rem;
  padding: 8px 16px;
  white-space: nowrap;
}

/* Store Item Card */
.card-store-item {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-store-item .card-cover { aspect-ratio: 16/10; }
.store-item-body { padding: 14px 16px 8px; flex: 1; }
.store-item-body .card-title { font-size: 0.95rem; }
.store-item-body .card-desc { font-size: 0.78rem; margin-bottom: 8px; }

.store-category-tag {
  display: inline-block;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.store-meta {
  display: inline-block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  margin-right: 8px;
}

.store-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 14px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.store-price {
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--theme-accent);
}
.store-price.free { color: #66bb6a; }

.btn-add-cart {
  padding: 6px 14px;
  font-size: 0.75rem;
  border-radius: 4px;
  background: var(--theme-accent);
  color: #07090f;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-add-cart:hover { filter: brightness(1.15); }
.btn-add-cart.added { background: #66bb6a; cursor: default; }
.btn-sm { padding: 6px 14px; font-size: 0.78rem; }

/* ═══════════════════════════════════════════════════════ */
/*  CART DRAWER                                            */
/* ═══════════════════════════════════════════════════════ */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  background: #0c0f18;
  border-left: 1px solid rgba(255,255,255,0.06);
  z-index: var(--z-drawer);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: calc(var(--z-drawer) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cart-drawer-header h3 { font-size: 1rem; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}

.cart-empty {
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 40px 0;
  font-size: 0.85rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-cat { font-size: 0.7rem; color: rgba(255,255,255,0.35); }
.cart-item-price {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--theme-accent);
  white-space: nowrap;
}
.cart-item-remove {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  transition: all 0.2s;
}
.cart-item-remove:hover { background: rgba(255,80,80,0.15); color: #ff5050; }

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.cart-total-amount {
  font-family: 'Fira Code', monospace;
  font-weight: 600;
  color: var(--theme-accent);
}
.btn-checkout { width: 100%; }

/* ═══════════════════════════════════════════════════════ */
/*  CHECKOUT MODAL                                         */
/* ═══════════════════════════════════════════════════════ */
.checkout-modal { max-width: 480px; }
.checkout-total { font-size: 1.1rem; margin: 12px 0 20px; }
.checkout-subtitle { font-size: 0.9rem; margin: 20px 0 12px; color: rgba(255,255,255,0.6); }

.checkout-field { margin-bottom: 16px; }
.checkout-field label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.checkout-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--theme-text);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.checkout-input:focus { border-color: var(--theme-accent); }

.checkout-methods {
  display: flex;
  gap: 10px;
}
.checkout-method {
  flex: 1;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--theme-text);
  transition: all 0.2s;
}
.checkout-method:hover {
  border-color: var(--theme-accent);
  background: rgba(255,255,255,0.03);
}
.method-icon { font-size: 1.4rem; }

/* Payment Info */
.payment-info { margin-top: 16px; }
.payment-info h3 { font-size: 1rem; margin-bottom: 8px; }
.payment-chain { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 16px; }

.payment-amount, .payment-address {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  margin-bottom: 10px;
}
.amount-label, .address-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}
.amount-value {
  font-family: 'Fira Code', monospace;
  font-weight: 600;
  color: var(--theme-accent);
  font-size: 1rem;
}
.address-value {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  word-break: break-all;
  flex: 1;
}
.payment-expires {
  font-size: 0.75rem;
  color: rgba(255,200,50,0.6);
  margin-bottom: 16px;
}
.payment-verify { margin-top: 16px; }
.payment-verify label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.payment-verify .checkout-input { margin-bottom: 10px; }
#verify-status {
  margin-top: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* Neon modal variant */
.neon-modal {
  border-color: rgba(0,240,255,0.15);
}
.neon-modal .checkout-input:focus { border-color: #00f0ff; }
.neon-modal .checkout-method:hover { border-color: #00f0ff; }

/* ═══════════════════════════════════════════════════════ */
/*  STORE — MOBILE OPTIMIZATIONS                           */
/* ═══════════════════════════════════════════════════════ */

/* Tablet — 2 column grid */
@media (max-width: 900px) {
  .store-grid .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phone — 1 column grid + tighter cards */
@media (max-width: 560px) {
  .store-grid .card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .store-header { margin-bottom: 12px; }

  .btn-cart {
    padding: 7px 12px;
    font-size: 0.75rem;
    min-width: 0;
  }

  /* Tabs become a horizontally-scrollable strip */
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -20px 16px;
    padding: 0 20px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  /* Compact store cards */
  .card-store-item .card-cover { aspect-ratio: 16/9; }
  .store-item-body { padding: 12px 14px 6px; }
  .store-item-body .card-title { font-size: 0.92rem; }
  .store-item-body .card-desc {
    font-size: 0.76rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .store-item-footer { padding: 10px 14px 12px; }
  .store-price { font-size: 0.85rem; }
  .btn-add-cart {
    padding: 7px 12px;
    font-size: 0.74rem;
    min-height: 34px;
  }

  /* Cart drawer becomes a bottom sheet on small phones */
  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
    height: 88vh;
    top: auto;
    bottom: 0;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px 14px 0 0;
    transform: translateY(100%);
  }
  .cart-drawer.open { transform: translateY(0); }
  .cart-drawer-header {
    padding: 14px 18px;
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 1;
  }
  .cart-drawer-header::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.18);
  }
  .cart-items { padding: 10px 18px; }
  .cart-footer { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); }
  .btn-checkout { min-height: 44px; }

  /* Checkout modal — make scrollable, full-width on phones */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    max-width: 100vw;
    width: 100vw;
    border-radius: 14px 14px 0 0;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
  }
  .modal-header {
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 1;
    padding: 14px 18px;
  }
  .modal-body {
    padding: 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .checkout-modal { max-width: 100vw; }
  .checkout-methods { flex-direction: column; gap: 8px; }
  .checkout-method { flex-direction: row; justify-content: flex-start; padding: 12px 14px; }
  .method-icon { font-size: 1.2rem; }

  .payment-amount, .payment-address {
    flex-wrap: wrap;
    gap: 6px 10px;
  }
  .address-value { font-size: 0.7rem; width: 100%; }

  .checkout-input { font-size: 16px; padding: 12px 14px; }
}

/* Very small phones */
@media (max-width: 360px) {
  .store-title { font-size: 1rem; }
  .btn-cart { padding: 6px 10px; font-size: 0.72rem; }
}

/* ═══════════════════════════════════════════════════════ */
/*  DETAIL PAGES (shared)                                  */
/* ═══════════════════════════════════════════════════════ */
.pd-hero-skeleton, .ad-hero-skeleton {
  display: flex;
  gap: 24px;
  padding: 20px 0;
}

/* Buy single button (inline in tracklist) */
.btn-buy-single {
  padding: 3px 10px;
  font-size: 0.7rem;
  font-family: 'Fira Code', monospace;
  border-radius: 3px;
  background: rgba(0,240,255,0.1);
  color: #00f0ff;
  border: 1px solid rgba(0,240,255,0.2);
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-buy-single:hover {
  background: rgba(0,240,255,0.2);
}

/* ═══════════════════════════════════════════════════════ */
/*  IDENTITY FLASH (cross-identity transition)             */
/* ═══════════════════════════════════════════════════════ */
.identity-flash::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  animation: identity-flash 520ms ease-out;
}
.identity-flash-developer::after {
  background: radial-gradient(circle at center, rgba(79, 195, 247, 0.18), transparent 70%);
}
.identity-flash-artist::after {
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.18), rgba(224, 64, 251, 0.12) 50%, transparent 80%);
}
@keyframes identity-flash {
  0%   { opacity: 0; }
  30%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════ */
/*  NAVBAR — IDENTITY-DISTINCT BRAND + LINK STYLES         */
/* ═══════════════════════════════════════════════════════ */

/* Developer brand: <BRAEZN/> */
.theme-developer .navbar-brand {
  font-family: 'Fira Code', monospace;
  letter-spacing: 0.05em;
}
.theme-developer .brand-bracket {
  color: rgba(79, 195, 247, 0.6);
  font-weight: 500;
  margin: 0 2px;
}
.theme-developer .brand-text {
  color: var(--theme-text);
}
.theme-developer .navbar-brand:hover .brand-bracket {
  color: #4fc3f7;
}

/* Artist brand: glowing BRAEZN */
.theme-artist .navbar-brand .brand-glow {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.2em;
  background: linear-gradient(90deg, #00f0ff, #ff00e5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
  animation: brand-pulse 3.5s ease-in-out infinite;
}
@keyframes brand-pulse {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.25); }
}

/* Developer nav links — bracketed numbering */
.theme-developer .nav-link {
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  border-radius: 0;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid transparent;
}
.theme-developer .nav-link-num {
  color: rgba(79, 195, 247, 0.4);
  font-size: 0.7rem;
}
.theme-developer .nav-link-label { letter-spacing: 0.04em; }
.theme-developer .nav-link:hover .nav-link-num { color: #4fc3f7; }
.theme-developer .nav-link.active {
  background: transparent;
  border-bottom-color: #4fc3f7;
  color: #4fc3f7;
}
.theme-developer .nav-link.active .nav-link-num { color: #4fc3f7; }

/* Artist nav links — keep clean, add glow on active */
.theme-artist .nav-link.active {
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* ═══════════════════════════════════════════════════════ */
/*  DRAWER — DEVELOPER FILE-TREE STYLE                     */
/* ═══════════════════════════════════════════════════════ */
.theme-developer .drawer-brand,
.drawer-brand-mono {
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: #4fc3f7;
}
.theme-developer .drawer-brand::before {
  content: '~/';
  color: rgba(79, 195, 247, 0.4);
}
.theme-developer .drawer-brand-mono::before { content: ''; } /* prevent double prefix */

.drawer-tree-header {
  padding: 14px 20px 6px;
  font-family: 'Fira Code', monospace;
  font-size: 0.7rem;
  color: rgba(79, 195, 247, 0.4);
  letter-spacing: 0.05em;
}

.theme-developer .drawer-link-tree {
  font-family: 'Fira Code', monospace;
  font-size: 0.82rem;
  padding: 8px 20px;
  gap: 10px;
  border-left-width: 2px;
  display: grid;
  grid-template-columns: 22px 18px 1fr;
  align-items: center;
}
.drawer-link-num {
  color: rgba(79, 195, 247, 0.45);
  font-size: 0.7rem;
}
.drawer-tree-branch {
  color: rgba(79, 195, 247, 0.3);
  font-size: 0.75rem;
}
.drawer-link-file {
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}
.theme-developer .drawer-link-tree:hover .drawer-link-num { color: #4fc3f7; }
.theme-developer .drawer-link-tree:hover .drawer-tree-branch { color: #4fc3f7; }
.theme-developer .drawer-link-tree.active .drawer-link-num,
.theme-developer .drawer-link-tree.active .drawer-tree-branch,
.theme-developer .drawer-link-tree.active .drawer-link-file { color: #4fc3f7; }

/* ═══════════════════════════════════════════════════════ */
/*  MINI PLAYER — IDENTITY-DISTINCT VARIANTS               */
/* ═══════════════════════════════════════════════════════ */
.mini-player[data-identity="developer"] .mp-progress-fill {
  background: repeating-linear-gradient(
    90deg,
    #4fc3f7 0,
    #4fc3f7 4px,
    rgba(79, 195, 247, 0.6) 4px,
    rgba(79, 195, 247, 0.6) 6px
  );
}
.mini-player[data-identity="developer"] .mp-title {
  font-family: 'Fira Code', monospace;
  letter-spacing: 0;
}
.mini-player[data-identity="artist"] .mp-progress-fill {
  background: linear-gradient(90deg, #00f0ff, #ff00e5);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════ */
/*  INPUT VALIDATION                                       */
/* ═══════════════════════════════════════════════════════ */
.checkout-input.input-error,
.input-error {
  border-color: #ff5050 !important;
  box-shadow: 0 0 0 3px rgba(255, 80, 80, 0.18);
  animation: input-shake 0.4s;
}
@keyframes input-shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

/* ═══════════════════════════════════════════════════════ */
/*  CODE-COMMENT SECTION TITLE (developer pages)           */
/* ═══════════════════════════════════════════════════════ */
.section-title-code {
  font-family: 'Fira Code', monospace;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
}
.section-title-code .sec-bracket {
  color: rgba(79, 195, 247, 0.45);
  font-weight: 400;
}
.section-title-code .sec-comment {
  color: rgba(79, 195, 247, 0.7);
}
.section-title-code .sec-label {
  color: var(--theme-text);
  font-weight: 600;
}
.section-link {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: rgba(79, 195, 247, 0.6);
  margin-left: auto;
  transition: color 0.2s;
}
.section-link:hover { color: #4fc3f7; }


/* ═══════════════════════════════════════════════════════ */
/*  v0.0.6b — DRAWER + NAVBAR + MINIPLAYER UPDATES         */
/* ═══════════════════════════════════════════════════════ */

/* ── MiniPlayer auto-hide ── */
/* Mini-player is fully hidden until a track is loaded. We slide it
   off-screen rather than `display: none` so the height transition
   feels natural and any incoming state changes don't flash. */
#mini-player {
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}
#mini-player.mini-player-hidden {
  pointer-events: none;
  transform: translateY(100%);
  opacity: 0;
}

/* Page padding-bottom only when the mini-player is visible. Without a
   track, the page can use the full viewport height. */
.layout-main {
  padding-bottom: 0;
  transition: padding-bottom 0.25s var(--ease-out);
}
body.has-mini-player .layout-main {
  padding-bottom: var(--mini-player-h);
}

/* ── Drawer body / sections ── */
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 8px;
  display: flex;
  flex-direction: column;
}

.drawer-section {
  padding: 12px 0 6px;
}

.drawer-section + .drawer-section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 4px;
  padding-top: 14px;
}

.drawer-section-label {
  padding: 0 20px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Developer's lowercase `// comment` style */
.dev-section-label {
  font-family: 'Fira Code', 'Roboto Mono', monospace;
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: rgba(79, 195, 247, 0.42);
}

/* Artist's UPPERCASE neon caption */
.art-section-label {
  color: rgba(255, 90, 200, 0.55);
  text-shadow: 0 0 6px rgba(255, 90, 200, 0.18);
}

/* ── Drawer link row (for pill clusters) ── */
.drawer-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 4px;
}

.drawer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-family: 'Fira Code', monospace;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.18s var(--ease-out);
  text-decoration: none;
}
.drawer-pill:hover {
  border-color: var(--theme-accent);
  color: var(--theme-accent);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

/* Artist neon variant */
.drawer-pill-neon {
  border-color: rgba(0, 240, 255, 0.18);
  color: rgba(0, 240, 255, 0.7);
}
.drawer-pill-neon:hover {
  border-color: #00f0ff;
  color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.18);
  background: rgba(0, 240, 255, 0.06);
}

/* ── Drawer status block (developer) ── */
.drawer-status-list {
  padding: 0 20px 4px;
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
}
.drawer-status-row {
  display: grid;
  grid-template-columns: 12px 64px 1fr;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.55);
}
.status-key {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.74rem;
}
.status-val {
  color: #4fc3f7;
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.15);
}
.status-dot.status-online {
  background: #66bb6a;
  box-shadow: 0 0 6px rgba(102, 187, 106, 0.55);
  animation: status-pulse 2.4s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ── Drawer footer (sectioned actions) ── */
.drawer-footer {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}

.drawer-action-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.18s, transform 0.18s;
}
.drawer-action-link:hover {
  color: var(--theme-accent);
  transform: translateX(2px);
}

/* Developer footer (terminal) */
.drawer-footer-dev .drawer-action-link {
  font-family: 'Fira Code', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(79, 195, 247, 0.55);
}
.drawer-footer-dev .drawer-action-link:hover {
  color: #4fc3f7;
}

/* Artist footer (neon) */
.drawer-footer-art .drawer-action-link:hover {
  color: #00f0ff;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.3);
}

/* Admin entry — subtler than the others */
.drawer-admin-action {
  margin-top: 6px;
  padding-top: 8px !important;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  font-size: 0.78rem !important;
  color: rgba(255, 255, 255, 0.32) !important;
}

/* ── Active drawer-link state per identity ── */
.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-left: 2px solid transparent;
}
.drawer-link:hover {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.95);
}
.drawer-link.active {
  background: rgba(255, 255, 255, 0.04);
  color: var(--theme-accent);
  border-left-color: var(--theme-accent);
}

.drawer-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Developer file-tree variant */
.drawer-link-tree {
  font-family: 'Fira Code', monospace;
  font-size: 0.84rem;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
}
.drawer-link-num {
  color: rgba(79, 195, 247, 0.4);
  font-size: 0.78rem;
  width: 22px;
}
.drawer-tree-branch {
  color: rgba(255, 255, 255, 0.18);
}
.drawer-link-file {
  color: rgba(79, 195, 247, 0.85);
}
.drawer-link-tree.active {
  color: #4fc3f7;
}
.drawer-link-tree.active .drawer-link-num,
.drawer-link-tree.active .drawer-tree-branch,
.drawer-link-tree.active .drawer-link-file {
  color: #4fc3f7;
}

.drawer-tree-header {
  padding: 0 20px 8px;
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  color: rgba(79, 195, 247, 0.4);
}

.drawer-nav-tree {
  padding: 6px 0 4px;
}

/* ── Navbar cart icon ── */
.navbar-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: auto;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.18s var(--ease-out);
}
.navbar-cart:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--theme-text);
}
.navbar-cart .cart-icon {
  display: block;
}

/* Count badge */
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  font-family: 'Fira Code', monospace;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--theme-accent);
  color: #07090f;
  box-shadow: 0 0 0 2px rgba(7, 9, 15, 0.85);
  letter-spacing: -0.02em;
  pointer-events: none;
}
.cart-count[hidden] { display: none; }

/* Identity-specific cart styling */
.navbar-cart.has-items { color: var(--theme-accent); }
.navbar-cart-developer.has-items { color: #4fc3f7; }
.navbar-cart-developer .cart-count { background: #4fc3f7; }
.navbar-cart-artist.has-items { color: #00f0ff; }
.navbar-cart-artist .cart-count {
  background: #00f0ff;
  box-shadow: 0 0 0 2px rgba(7, 9, 15, 0.85),
              0 0 8px rgba(0, 240, 255, 0.4);
}

@media (min-width: 768px) {
  .navbar-cart { margin-left: 4px; }
}
