/* ==========================================================================
   سایت رسمی و فروشگاهی سروش براتی — استایل عمومی
   پالت رنگی ۵گانه الزامی:
   - Deep Academic Navy: #101A2B
   - Obsidian Black:     #080B10
   - Muted Antique Gold: #B49A62
   - Warm Ivory:         #E8E1D4
   - Slate Blue Gray:    #7D8795
   ========================================================================== */

@font-face {
  font-family: 'Estedad';
  src: url('/fonts/admin/Estedad-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Estedad';
  src: url('/fonts/admin/Estedad-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Estedad';
  src: url('/fonts/admin/Estedad-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Estedad';
  src: url('/fonts/admin/Estedad-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MikhakDisplay';
  src: url('/fonts/admin/Mikhak-DS1-FD-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #101A2B;
  --black: #080B10;
  --gold: #B49A62;
  --ivory: #E8E1D4;
  --slate: #7D8795;

  /* Utility shades strictly derived from the 5 colors via opacity */
  --navy-light: rgba(16, 26, 43, 0.7);
  --navy-border: rgba(180, 154, 98, 0.25);
  --gold-glow: rgba(180, 154, 98, 0.15);
  --gold-hover: #c4ab75;
  --ivory-muted: rgba(232, 225, 212, 0.75);
  --ivory-dark: #d5ccbe;
  --slate-border: rgba(125, 135, 149, 0.3);
  --slate-bg: rgba(125, 135, 149, 0.1);

  --font-sans: 'Estedad', Tahoma, 'Segoe UI', sans-serif;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-subtle: 0 4px 20px rgba(8, 11, 16, 0.35);
  --shadow-gold: 0 4px 24px rgba(180, 154, 98, 0.18);
  --container-max: 1240px;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  direction: rtl;
  scroll-behavior: smooth;
  background-color: var(--black);
  color: var(--ivory);
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--black);
  color: var(--ivory);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  max-width: 100%;
}

main {
  flex: 1 0 auto;
  animation: pageFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Container & Layout Grid
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 5rem;
  position: relative;
}

.section-dark {
  background-color: var(--black);
}

.section-navy {
  background-color: var(--navy);
  border-block: 1px solid var(--navy-border);
}

.section-ivory {
  background-color: var(--ivory);
  color: var(--navy);
}

.section-ivory .section-title {
  color: var(--navy);
}

.section-ivory .section-subtitle {
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   Typography & Section Headers
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.35;
  color: var(--ivory);
  letter-spacing: -0.01em;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.85rem;
  border: 1px solid rgba(180, 154, 98, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(180, 154, 98, 0.06);
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.8;
}

.gold-divider {
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(180, 154, 98, 0.2) 15%, 
    rgba(180, 154, 98, 0.85) 42%, 
    transparent 50%, 
    rgba(180, 154, 98, 0.85) 58%, 
    rgba(180, 154, 98, 0.2) 85%, 
    transparent 100%
  );
  margin: 1.35rem auto 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Shimmer Light Reflection across the divider line */
.gold-divider::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #FFFFFF, var(--gold), transparent);
  filter: drop-shadow(0 0 6px var(--gold));
  opacity: 0.85;
  animation: goldRaySweep 3.6s ease-in-out infinite;
  pointer-events: none;
}

/* Central Golden Musical Emblem & Resonant Frequency Pulse */
.gold-divider::after {
  content: '♪';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1d2c44 0%, #080B10 100%);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: 0.92rem;
  line-height: 23px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(180, 154, 98, 0.45), inset 0 0 6px rgba(180, 154, 98, 0.3);
  animation: acousticResonance 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transition: transform 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
  cursor: default;
}

.gold-divider:hover::after {
  transform: translate(-50%, -50%) scale(1.2) rotate(12deg);
  box-shadow: 0 0 24px rgba(180, 154, 98, 0.85), inset 0 0 10px rgba(180, 154, 98, 0.6);
  color: #FFFFFF;
}

/* Subtle Animated Acoustic Waveform Keyframes */
@keyframes goldRaySweep {
  0% {
    left: -10%;
    opacity: 0;
  }
  20% {
    opacity: 0.9;
  }
  50% {
    left: 45%;
    opacity: 0.3;
  }
  80% {
    opacity: 0.9;
  }
  100% {
    left: 105%;
    opacity: 0;
  }
}

@keyframes acousticResonance {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 12px rgba(180, 154, 98, 0.35), inset 0 0 5px rgba(180, 154, 98, 0.25), 0 0 0 0 rgba(180, 154, 98, 0.4);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 0 20px rgba(180, 154, 98, 0.65), inset 0 0 8px rgba(180, 154, 98, 0.45), 0 0 0 6px rgba(180, 154, 98, 0);
    color: #F8F3E6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 12px rgba(180, 154, 98, 0.35), inset 0 0 5px rgba(180, 154, 98, 0.25), 0 0 0 0 rgba(180, 154, 98, 0);
  }
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.scroll-progress-bar {
  position: absolute;
  top: 0;
  right: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--ivory), var(--gold));
  z-index: 1001;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(180, 154, 98, 0.7);
}

.audio-wave-live {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 13px;
  margin-right: 6px;
  vertical-align: middle;
}

.audio-wave-bar {
  width: 2.5px;
  background-color: var(--gold);
  border-radius: 1px;
  animation: wavePulse 1.2s ease-in-out infinite alternate;
}

.audio-wave-bar:nth-child(1) { height: 4px; animation-duration: 0.9s; }
.audio-wave-bar:nth-child(2) { height: 13px; animation-duration: 1.4s; }
.audio-wave-bar:nth-child(3) { height: 7px; animation-duration: 1.1s; }
.audio-wave-bar:nth-child(4) { height: 11px; animation-duration: 1.6s; }

@keyframes wavePulse {
  0% { height: 3px; opacity: 0.55; }
  100% { height: 13px; opacity: 1; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(16, 26, 43, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(180, 154, 98, 0.25);
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 0.75rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-symbol {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy), var(--black));
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  padding: 3px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(180, 154, 98, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ivory);
  line-height: 1.2;
  white-space: nowrap !important;
}

.brand-slogan-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2px;
}

.brand-slogan {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.01em;
  white-space: nowrap !important;
  opacity: 0.92;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ivory-muted);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1.4;
  flex-shrink: 0;
}

.nav-link:hover {
  color: var(--ivory);
  background-color: rgba(180, 154, 98, 0.1);
}

.nav-link.active {
  color: var(--gold);
  background-color: rgba(180, 154, 98, 0.14);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 15%;
  left: 15%;
  height: 2px;
  background-color: var(--gold);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  transition: var(--transition);
  white-space: nowrap !important;
  text-decoration: none;
  flex-shrink: 0;
}

.btn-header-cta:hover {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(180, 154, 98, 0.3);
}

.mobile-toggle {
  display: none;
  background: rgba(16, 26, 43, 0.85);
  border: 1px solid rgba(180, 154, 98, 0.35);
  color: var(--ivory);
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.mobile-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Buttons & Links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition), transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232, 225, 212, 0.22), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
}

.btn:hover::before {
  left: 150%;
  transition: left 0.65s ease-in-out;
}

.btn:active {
  transform: translateY(2px) scale(0.97) !important;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  box-shadow: 0 4px 18px rgba(180, 154, 98, 0.25);
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  border-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(180, 154, 98, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--ivory);
  border-color: var(--gold);
}

.btn-secondary:hover {
  background-color: rgba(180, 154, 98, 0.12);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-navy {
  background-color: var(--navy);
  color: var(--ivory);
  border-color: rgba(180, 154, 98, 0.4);
}

.btn-navy:hover {
  background-color: #172439;
  border-color: var(--gold);
  color: var(--gold);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Hero Section & Slider
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  background-color: var(--black);
  overflow: hidden;
  border-bottom: 1px solid var(--navy-border);
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 5s ease-out, visibility 0.75s;
  transform: scale(1.05);
}

.hero-slide.active {
  opacity: 0.78;
  visibility: visible;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.06) brightness(1.06) saturate(1.08);
  will-change: transform;
}

.hero-slide.active img {
  animation: heroKenBurns 12s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.06) translate3d(-1%, -0.8%, 0);
  }
  100% {
    transform: scale(1.03) translate3d(1%, 0.6%, 0);
  }
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(16, 26, 43, 0.85);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(8, 11, 16, 0.6);
}

.hero-slider-arrow:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 20px rgba(180, 154, 98, 0.4);
}

.hero-prev {
  right: 2rem;
}

.hero-next {
  left: 2rem;
}

.hero-slider-dots {
  position: absolute;
  bottom: 2rem;
  right: 50%;
  transform: translateX(50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(8, 11, 16, 0.6);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--navy-border);
  backdrop-filter: blur(6px);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(232, 225, 212, 0.3);
  border: 1.5px solid var(--gold);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot:hover {
  background: rgba(180, 154, 98, 0.6);
}

.hero-dot.active {
  width: 30px;
  border-radius: 6px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(180, 154, 98, 0.5);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to left, rgba(8, 11, 16, 0.82) 0%, rgba(8, 11, 16, 0.5) 48%, rgba(8, 11, 16, 0.18) 100%),
    linear-gradient(to top, #080B10 0%, rgba(8, 11, 16, 0.2) 28%, transparent 60%),
    linear-gradient(to bottom, rgba(8, 11, 16, 0.45) 0%, transparent 22%);
  z-index: 2;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Musical Note Particles on Header Links Hover & Touch
   -------------------------------------------------------------------------- */
.note-particle {
  position: absolute;
  pointer-events: none;
  user-select: none;
  font-family: serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 8px rgba(180, 154, 98, 0.85);
  z-index: 1050;
  animation: noteOrbitAndFade 1.4s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes noteOrbitAndFade {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.3) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translate(calc(var(--tx, 20px) * 0.3), calc(var(--ty, -20px) * 0.3)) scale(1.1) rotate(calc(var(--rot, 180deg) * 0.3));
  }
  80% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 40px), var(--ty, -40px)) scale(1.3) rotate(var(--rot, 360deg));
  }
}

.nav-link, .btn-header-cta, .brand-logo {
  position: relative;
  overflow: visible;
}

.hero-container {
  position: relative;
  z-index: 3;
  padding-block: 4rem;
}

.hero-content {
  max-width: 780px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.hero-ambient-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.ambient-dust {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(232, 225, 212, 0.9) 0%, rgba(180, 154, 98, 0.6) 60%, transparent 100%);
  border-radius: 50%;
  opacity: 0;
  animation: floatDust 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes floatDust {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.6);
  }
  20% {
    opacity: 0.75;
  }
  80% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: translateY(-160px) translateX(var(--drift-x, 25px)) scale(1.2);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  background: rgba(16, 26, 43, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: clamp(0.8rem, 1.35vw, 0.94rem);
  font-weight: 600;
  line-height: 1.5;
  max-width: 100%;
  margin-bottom: 1.85rem;
  box-shadow: 0 4px 20px rgba(8, 11, 16, 0.55), 0 0 18px rgba(180, 154, 98, 0.16);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(8, 11, 16, 0.6), 0 0 22px rgba(180, 154, 98, 0.3);
}

.hero-badge svg {
  color: var(--gold);
  flex-shrink: 0;
  animation: radarPulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes radarPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 2px var(--gold));
  }
  50% {
    transform: scale(1.35);
    opacity: 0.6;
    filter: drop-shadow(0 0 8px var(--gold));
  }
}

.hero-slogan-wrap {
  position: relative;
  margin-bottom: 1.85rem;
  padding-right: 1.35rem;
  border-right: 3px solid var(--gold);
}

.hero-slogan-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  right: -3px;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--gold) 55%, transparent 100%);
  box-shadow: 0 0 16px rgba(180, 154, 98, 0.65);
}

.hero-title {
  font-size: clamp(2.35rem, 5.1vw, 4.15rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ivory);
  margin-bottom: 0;
}

.hero-title-lead {
  display: block;
  font-size: 0.54em;
  font-weight: 500;
  color: var(--ivory);
  opacity: 0.9;
  margin-bottom: 0.35rem;
}

.hero-brand-slogan {
  font-family: 'MikhakDisplay', var(--font-sans);
  display: inline;
  word-break: normal;
  overflow-wrap: break-word;
  letter-spacing: -0.015em;
  padding-block: 0.15rem;
  filter: drop-shadow(0 6px 26px rgba(180, 154, 98, 0.32)) drop-shadow(0 2px 6px rgba(8, 11, 16, 0.85));
}

.hero-title .gold-accent {
  color: var(--gold);
  background: linear-gradient(125deg, #B49A62 0%, #F5EEDB 32%, #B49A62 62%, #E8E1D4 86%, #B49A62 100%);
  background-size: 240% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
  position: relative;
  animation: goldShimmerText 6.5s ease-in-out infinite alternate;
}

.hero-slogan-flourish {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  max-width: 340px;
}

.flourish-line {
  height: 1.5px;
  width: 58px;
  background: linear-gradient(270deg, var(--gold), rgba(232, 225, 212, 0.75));
  border-radius: 2px;
}

.flourish-line-fade {
  flex: 1;
  width: auto;
  background: linear-gradient(270deg, rgba(180, 154, 98, 0.65), transparent);
}

.flourish-note {
  color: var(--gold);
  font-size: 0.95rem;
  line-height: 1;
  text-shadow: 0 0 10px rgba(180, 154, 98, 0.65);
}

@keyframes goldShimmerText {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-description {
  font-size: 1.2rem;
  color: var(--ivory-muted);
  line-height: 1.9;
  margin-bottom: 2.5rem;
  max-width: 680px;
  white-space: pre-line;
  word-break: normal;
  overflow-wrap: break-word;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(180, 154, 98, 0.25);
  max-width: 680px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   Category Entrance Cards (Home)
   -------------------------------------------------------------------------- */
.portals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.portal-card {
  position: relative;
  background-color: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.portal-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portal-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 18px 42px rgba(8, 11, 16, 0.75), 0 0 24px rgba(180, 154, 98, 0.22);
}

.portal-card:hover::before {
  opacity: 1;
}

.portal-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  background: rgba(180, 154, 98, 0.1);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 1.75rem;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.portal-card:hover .portal-icon {
  transform: scale(1.12) rotate(-4deg);
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 6px 20px rgba(180, 154, 98, 0.4);
}

.portal-title {
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
  color: var(--ivory);
  transition: color 0.3s ease;
}

.portal-card:hover .portal-title {
  color: var(--ivory);
}

.portal-text {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: 1.75rem;
  flex: 1;
}

.portal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold);
}

.portal-link svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-card:hover .portal-link svg {
  transform: translateX(-6px);
}

/* --------------------------------------------------------------------------
   Cards: Instruments, Sheets, Courses
   -------------------------------------------------------------------------- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1100px) and (min-width: 769px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.card {
  background-color: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
  will-change: transform, box-shadow;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 16px 36px rgba(8, 11, 16, 0.7), 0 0 24px rgba(180, 154, 98, 0.22);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--black);
  overflow: hidden;
}

.card-media::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(232, 225, 212, 0.22) 50%, transparent 65%);
  transform: translateX(-160%) skewX(-20deg);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 3;
}

.card:hover .card-media::after {
  transform: translateX(160%) skewX(-20deg);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  will-change: transform;
}

.card:hover .card-media img {
  transform: scale(1.08) translateY(-3px);
  filter: brightness(1.06) contrast(1.08);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(16, 26, 43, 0.88);
  backdrop-filter: blur(8px);
  color: var(--gold);
  border: 1px solid var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.card-badge-format {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  z-index: 2;
  letter-spacing: 0.05em;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 0.65rem;
  line-height: 1.5;
  min-height: 2.8em;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.95rem;
}

.card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: rgba(8, 11, 16, 0.55);
  border: 1px solid rgba(180, 154, 98, 0.2);
  font-size: 0.8rem;
  color: var(--ivory-muted);
}

.card-meta-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

.card-text {
  font-size: 0.9rem;
  color: var(--ivory-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--slate-border);
  margin-top: auto;
}

.card-footer-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-price {
  display: flex;
  flex-direction: column;
}

.card-price-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.price-label {
  font-size: 0.78rem;
  color: var(--slate);
  margin-bottom: 0.15rem;
}

.price-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.price-currency {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ivory-muted);
}

.card-actions-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.btn-cta-main {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}

.btn-cart-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(16, 26, 43, 0.85);
  border: 1px solid rgba(180, 154, 98, 0.4);
  color: var(--gold);
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.btn-cart-action:hover {
  background: var(--gold);
  color: #080B10;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(180, 154, 98, 0.3);
}

/* --------------------------------------------------------------------------
   Filter Bar
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ivory-muted);
  background: var(--navy);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--ivory);
  border-color: var(--gold);
}

.filter-btn.active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Product / Item Detail View
   -------------------------------------------------------------------------- */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.detail-gallery {
  position: sticky;
  top: 110px;
}

.detail-image-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--navy-border);
  background-color: var(--navy);
  box-shadow: var(--shadow-subtle);
}

.detail-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
}

.detail-category-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(180, 154, 98, 0.1);
  border: 1px solid var(--gold);
  margin-bottom: 1rem;
}

.detail-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

.detail-price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: rgba(16, 26, 43, 0.75);
  border: 1px solid var(--navy-border);
  padding: 1.25rem 1.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.detail-price-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-price-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .detail-price-box {
    flex-direction: column;
    align-items: stretch;
    gap: 1.15rem;
    padding: 1.25rem 1rem;
  }
  .detail-price-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .detail-price-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.detail-price-label {
  font-size: 0.9rem;
  color: var(--slate);
}

.detail-price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.detail-description {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--ivory-muted);
  margin-bottom: 2rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2.5rem;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.specs-table tr {
  border-bottom: 1px solid rgba(125, 135, 149, 0.15);
}

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

.specs-table td {
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
}

.specs-table td.spec-label {
  width: 35%;
  background-color: rgba(16, 26, 43, 0.5);
  color: var(--slate);
  font-weight: 500;
  border-left: 1px solid rgba(125, 135, 149, 0.15);
}

.specs-table td.spec-val {
  color: var(--ivory);
  font-weight: 500;
}

.notice-box {
  background-color: rgba(16, 26, 43, 0.85);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.notice-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.notice-text {
  font-size: 0.9rem;
  color: var(--ivory-muted);
  line-height: 1.7;
}

.notice-title {
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

/* --------------------------------------------------------------------------
   Order Form & Modals
   -------------------------------------------------------------------------- */
.order-card {
  background-color: var(--navy);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: 0 10px 30px rgba(8, 11, 16, 0.6);
}

.order-card-title {
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--navy-border);
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ivory);
  margin-bottom: 0.5rem;
}

.form-label .req {
  color: var(--gold);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background-color: var(--black);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-sm);
  color: var(--ivory);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* --------------------------------------------------------------------------
   Syllabus List (Courses)
   -------------------------------------------------------------------------- */
.syllabus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.syllabus-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(16, 26, 43, 0.6);
  border: 1px solid var(--slate-border);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.syllabus-item:hover {
  border-color: var(--gold);
  background: rgba(16, 26, 43, 0.9);
}

.syllabus-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(180, 154, 98, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.syllabus-text {
  font-size: 0.95rem;
  color: var(--ivory);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   About Page
   -------------------------------------------------------------------------- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--gold);
  box-shadow: 0 16px 40px rgba(8, 11, 16, 0.8), 0 0 25px rgba(180, 154, 98, 0.15);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease, border-color 0.4s ease;
  will-change: transform, box-shadow;
}

.about-image-wrapper:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--gold-hover);
  box-shadow: 0 24px 55px rgba(8, 11, 16, 0.9), 0 0 35px rgba(180, 154, 98, 0.3);
}

.about-image-wrapper img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  will-change: transform;
}

.about-image-wrapper:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-lead {
  font-size: 1.2rem;
  color: var(--gold);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.about-text {
  font-size: 1.02rem;
  color: var(--ivory-muted);
  line-height: 1.95;
  margin-bottom: 1.5rem;
}

.instagram-box {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.75rem;
  background-color: var(--navy);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-sm);
  margin-top: 1.5rem;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease, background-color 0.3s ease;
  will-change: transform, box-shadow;
}

.instagram-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(8, 11, 16, 0.7), 0 0 24px rgba(180, 154, 98, 0.3);
  background-color: #172439;
}

.instagram-icon {
  width: 44px;
  height: 44px;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.instagram-box:hover .instagram-icon {
  transform: scale(1.15) rotate(6deg);
}

.instagram-info {
  display: flex;
  flex-direction: column;
}

.instagram-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ivory);
}

.instagram-handle {
  font-size: 0.88rem;
  color: var(--gold);
  direction: ltr;
  text-align: right;
  margin-top: 2px;
}

.instagram-stats {
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Contact Page
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.contact-card {
  background-color: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-method-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  background: rgba(8, 11, 16, 0.4);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.contact-method-item:hover {
  border-color: var(--gold);
}

.contact-method-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(180, 154, 98, 0.12);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-method-text {
  display: flex;
  flex-direction: column;
}

.contact-method-label {
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 0.25rem;
}

.contact-method-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ivory);
}

/* --------------------------------------------------------------------------
   Order Confirmation View
   -------------------------------------------------------------------------- */
.confirmation-box {
  max-width: 680px;
  margin: 3rem auto;
  background-color: var(--navy);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(8, 11, 16, 0.7);
}

.confirmation-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(180, 154, 98, 0.15);
  border: 2px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.confirmation-code-box {
  background-color: var(--black);
  border: 1px dashed var(--gold);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin: 1.5rem auto;
}

.confirmation-code-label {
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 0.25rem;
}

.confirmation-code-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  direction: ltr;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: radial-gradient(ellipse 90% 80% at 50% 0%, #111a29 0%, var(--black) 70%);
  border-top: 1px solid rgba(180, 154, 98, 0.22);
  box-shadow: inset 0 1px 0 rgba(180, 154, 98, 0.12), 0 -10px 30px rgba(0, 0, 0, 0.35);
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  color: var(--ivory);
  margin-top: auto;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.3fr 1.05fr 1.05fr 1.45fr;
  gap: 3.25rem;
  margin-bottom: 3.5rem;
  align-items: start;
}

/* Col 1: Brand & Identity (Right column in RTL) */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 0.85rem;
}

.footer-brand-symbol {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 37, 56, 0.95), rgba(8, 11, 16, 0.98));
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 18px rgba(180, 154, 98, 0.22), inset 0 0 12px rgba(180, 154, 98, 0.1);
  flex-shrink: 0;
  padding: 4px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.footer-brand-symbol:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(180, 154, 98, 0.38);
}

.footer-brand-titles {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-brand-name {
  font-family: 'MikhakDisplay', var(--font-sans);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(8, 11, 16, 0.9);
}

.footer-brand-badge-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.footer-brand-pill {
  font-size: 0.73rem;
  color: var(--gold);
  background: rgba(180, 154, 98, 0.08);
  border: 1px solid rgba(180, 154, 98, 0.26);
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}

.footer-brand-motto {
  font-size: 0.76rem;
  color: var(--ivory-muted);
  font-style: italic;
  opacity: 0.88;
}

.footer-brand-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 420px;
  margin: 0.5rem 0 1.15rem 0;
}

.footer-brand-divider .divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, rgba(180, 154, 98, 0.4), transparent);
}

.footer-brand-divider .divider-icon {
  color: var(--gold);
  font-size: 0.88rem;
  line-height: 1;
  opacity: 0.85;
}

.footer-about {
  font-size: 0.92rem;
  color: #B8C2D0;
  line-height: 1.95;
  max-width: 430px;
  margin-bottom: 1.35rem;
  border-right: 2.5px solid rgba(180, 154, 98, 0.55);
  padding-right: 0.95rem;
  text-align: justify;
  text-justify: inter-word;
}

.footer-brand-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 420px;
}

.footer-brand-features .feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.84rem;
  color: var(--slate);
  line-height: 1.6;
}

.feature-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--gold);
  box-shadow: 0 0 6px rgba(180, 154, 98, 0.65);
  flex-shrink: 0;
}

/* Col 2 & 3: Headings & Links */
.footer-heading {
  font-family: 'MikhakDisplay', var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 1.35rem;
  position: relative;
  padding-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2px;
  background: linear-gradient(to left, var(--gold), rgba(180, 154, 98, 0.2));
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-size: 0.91rem;
  color: var(--slate);
  transition: color 0.25s ease, padding-right 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--gold);
  padding-right: 6px;
}

.footer-view-all-link {
  color: var(--gold) !important;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Col 4: Contact */
.footer-col-contact .footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  background: rgba(16, 26, 43, 0.45);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.7rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.footer-col-contact .footer-contact-item:hover {
  border-color: rgba(180, 154, 98, 0.45);
  background-color: rgba(16, 26, 43, 0.75);
}

.footer-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(180, 154, 98, 0.1);
  border: 1px solid rgba(180, 154, 98, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.footer-contact-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-contact-title {
  font-size: 0.75rem;
  color: var(--slate);
}

.footer-contact-num,
.footer-contact-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ivory);
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
  transition: color 0.2s ease;
}

.footer-contact-num:hover,
.footer-contact-link:hover {
  color: var(--gold);
}

.footer-hours-card {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  background: rgba(8, 11, 16, 0.6);
  border: 1px dashed rgba(180, 154, 98, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hours-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold);
}

.hours-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #2ecc71;
  box-shadow: 0 0 6px #2ecc71;
  display: inline-block;
}

.hours-schedule {
  font-size: 0.78rem;
  color: var(--slate);
}

/* Footer Bottom Bar */
.footer-bottom {
  padding-top: 2rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(180, 154, 98, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--slate);
}

.footer-bottom-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom-badge {
  font-size: 0.75rem;
  color: var(--gold);
  background: rgba(180, 154, 98, 0.08);
  border: 1px solid rgba(180, 154, 98, 0.2);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}

.footer-academic-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ivory-muted);
  font-size: 0.82rem;
}

.mark-clef {
  font-size: 1.25rem;
  color: var(--gold);
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .portals-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
  .footer-about,
  .footer-brand-features,
  .footer-brand-divider {
    max-width: 100%;
  }
  .detail-layout,
  .about-hero,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .detail-gallery {
    position: static;
  }
}

@media (max-width: 1250px) {
  .brand-slogan-wrap {
    display: none !important;
  }
}

@media (max-width: 1120px) {
  .btn-header-cta {
    display: none !important;
  }
  .nav-link {
    padding: 0.45rem 0.55rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 1024px) {
  body {
    padding-top: 80px;
  }
  .site-header {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: rgba(16, 26, 43, 0.99) !important;
  }
  body.menu-open {
    overflow: hidden !important;
  }
  .mobile-toggle {
    display: flex !important;
  }
  .mobile-toggle.active {
    background: var(--gold) !important;
    color: var(--navy) !important;
    border-color: var(--gold) !important;
  }
  .main-nav {
    position: fixed !important;
    top: 80px !important;
    right: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: calc(100vh - 80px) !important;
    height: calc(100dvh - 80px) !important;
    max-height: calc(100dvh - 80px) !important;
    margin: 0 !important;
    background-color: rgba(16, 26, 43, 0.98) !important;
    padding: 1.5rem 1.25rem 4rem !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    display: none;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--gold);
    z-index: 9999 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  }
  .main-nav.open {
    display: flex !important;
    animation: mobileNavSlideDown 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.65rem;
    padding: 0;
    margin: 0;
  }
  .nav-link {
    width: 100%;
    padding: 0.95rem 1.25rem;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
    background: rgba(8, 11, 16, 0.55);
    border: 1px solid rgba(180, 154, 98, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: right;
  }
  .nav-link:hover, .nav-link.active {
    background: rgba(180, 154, 98, 0.18);
    border-color: var(--gold);
    color: var(--gold);
  }
  .nav-link.active::after {
    display: none;
  }
  .header-actions {
    display: flex !important;
    gap: 0.45rem;
  }
  .mobile-only-link {
    display: block !important;
  }
}

@keyframes mobileNavSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-description {
    font-size: 1.05rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .portals-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    text-align: right;
  }
  .footer-bottom-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 500px) {
  .header-login-btn span {
    display: none;
  }
  .header-login-btn {
    padding: 0.45rem;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    justify-content: center;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .brand-symbol {
    width: 38px;
    height: 38px;
  }
  .brand-logo-vector {
    width: 34px;
    height: 34px;
  }
}

/* --------------------------------------------------------------------------
   Living Elements: Scroll Reveal & Interactive Harmonic Wave
   -------------------------------------------------------------------------- */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.harmonic-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 1.5px solid var(--gold);
  background: radial-gradient(circle, rgba(180, 154, 98, 0.25) 0%, transparent 70%);
  transform: scale(0);
  animation: harmonicRipple 0.65s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
  z-index: 100;
}

@keyframes harmonicRipple {
  0% {
    transform: scale(0);
    opacity: 0.9;
  }
  100% {
    transform: scale(3.5);
    opacity: 0;
  }
}

/* Subtle breathing on active category filter button */
.filter-btn.active {
  box-shadow: 0 4px 18px rgba(180, 154, 98, 0.35);
  animation: activeFilterBreath 3s ease-in-out infinite alternate;
}

@keyframes activeFilterBreath {
  0% { border-color: var(--gold); }
  100% { border-color: var(--ivory); }
}


/* --------------------------------------------------------------------------
   Bespoke Brand Logo, Header Cart & User Account Controls
   -------------------------------------------------------------------------- */
.brand-logo-vector {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 2px 6px rgba(180, 154, 98, 0.35));
}

.header-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(16, 26, 43, 0.9);
  border: 1px solid rgba(180, 154, 98, 0.4);
  color: var(--gold);
  transition: all 0.25s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.header-cart-btn:hover,
.header-cart-btn.active {
  background: rgba(180, 154, 98, 0.2);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(180, 154, 98, 0.3);
}

.cart-badge {
  position: absolute;
  top: -3px;
  left: -3px;
  background: var(--gold);
  color: #080B10;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  font-family: monospace;
  padding: 0 3px;
}

.header-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border-radius: 20px;
  background: rgba(180, 154, 98, 0.12);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.header-user-btn:hover {
  background: var(--gold);
  color: #080B10;
  transform: translateY(-2px);
}

.header-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border-radius: 20px;
  background: transparent;
  border: 1px solid rgba(180, 154, 98, 0.4);
  color: var(--ivory);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.header-login-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(180, 154, 98, 0.08);
}

.mobile-only-link {
  display: none;
}

@media (max-width: 900px) {
  .mobile-only-link {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   Product Cards: Discount Badges, Original Price, Quick Add-to-Cart
   -------------------------------------------------------------------------- */
.card-badge-discount {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #b49a62, #8f7743);
  color: #080B10;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 2;
  letter-spacing: 0.5px;
}

.price-original-struck {
  text-decoration: line-through;
  color: var(--slate);
  font-size: 0.82rem;
  margin-bottom: 0.15rem;
}

.card-actions-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-cart-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(16, 26, 43, 0.8);
  border: 1px solid rgba(180, 154, 98, 0.4);
  color: var(--gold);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-cart-action:hover {
  background: var(--gold);
  color: #080B10;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(180, 154, 98, 0.3);
}

/* --------------------------------------------------------------------------
   Customer Authentication Cards (Register / Login)
   -------------------------------------------------------------------------- */
.auth-card {
  background: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 2.75rem 2.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.4s ease;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-title {
  font-size: 1.65rem;
  color: var(--ivory);
  margin: 0.5rem 0;
}

.auth-subtitle {
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.7;
}

.auth-switch {
  text-align: center;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--navy-border);
  color: var(--slate);
  font-size: 0.9rem;
}

.auth-switch a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  margin-right: 0.35rem;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Customer Luxury Dashboard: KPIs, Tabs, Courses, Orders & Timeline
   -------------------------------------------------------------------------- */
.dashboard-header-card {
  background: linear-gradient(135deg, rgba(16, 26, 43, 0.95), rgba(8, 11, 16, 0.95));
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  margin-bottom: 2.25rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.dashboard-tabs {
  display: flex;
  gap: 0.75rem;
  border-bottom: 2px solid var(--navy-border);
  margin-bottom: 2.25rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.dashboard-tab-btn {
  background: none;
  border: none;
  padding: 0.85rem 1.5rem;
  color: var(--slate);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  font-family: inherit;
}

.dashboard-tab-btn:hover {
  color: var(--ivory);
}

.dashboard-tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.dashboard-tab-content {
  display: none;
}

.dashboard-tab-content.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

.my-course-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.my-course-card:hover {
  transform: translateY(-3px);
  border-color: rgba(180, 154, 98, 0.5);
}

@media (max-width: 768px) {
  .my-course-card {
    grid-template-columns: 1fr;
  }
}

.user-order-card {
  background: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  padding: 1.65rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.25s ease;
}

.user-order-card:hover {
  border-color: rgba(180, 154, 98, 0.4);
}

.order-timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(8, 11, 16, 0.6);
  border-radius: var(--radius-sm);
  position: relative;
  gap: 0.5rem;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--slate);
  z-index: 1;
  flex: 1;
}

.timeline-step.completed {
  color: #6ee7b7;
  font-weight: 600;
}

.timeline-step.active {
  color: var(--gold);
  font-weight: 700;
}

.step-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a2538;
  border: 2px solid var(--navy-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
  color: var(--slate);
}

.timeline-step.completed .step-icon-circle {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #10b981;
}

.timeline-step.active .step-icon-circle {
  background: rgba(180, 154, 98, 0.2);
  border-color: var(--gold);
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Online Classroom Video Player & Playlist Layout
   -------------------------------------------------------------------------- */
.classroom-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 992px) {
  .classroom-layout {
    grid-template-columns: 1fr;
  }
}

.video-player-container {
  background: #000;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

.active-lesson-info-box {
  background: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-top: 1.5rem;
}

.classroom-sidebar {
  background: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.sidebar-playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--navy-border);
  margin-bottom: 1rem;
}

.playlist-items-scroll {
  max-height: 580px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(8, 11, 16, 0.5);
  border: 1px solid transparent;
}

.playlist-item:hover {
  background: rgba(180, 154, 98, 0.1);
  border-color: rgba(180, 154, 98, 0.3);
}

.playlist-item.active {
  background: rgba(180, 154, 98, 0.18);
  border-color: var(--gold);
  border-right: 4px solid var(--gold);
}

.playlist-item-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(8, 11, 16, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  font-family: monospace;
}

.playlist-item-content {
  flex: 1;
}

.playlist-item-title {
  font-size: 0.92rem;
  color: var(--ivory);
  font-weight: 600;
  line-height: 1.4;
}

.playlist-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   Unified Shopping Cart & Multi-Item Checkout
   -------------------------------------------------------------------------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 992px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  padding: 0.85rem 1rem;
  text-align: right;
  border-bottom: 2px solid var(--navy-border);
  color: var(--slate);
  font-size: 0.88rem;
  font-weight: 600;
}

.cart-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--navy-border);
  vertical-align: middle;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--black);
}

.qty-btn {
  background: none;
  border: none;
  color: var(--ivory);
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: rgba(180, 154, 98, 0.2);
  color: var(--gold);
}

.qty-input {
  width: 40px;
  text-align: center;
  background: none;
  border: none;
  color: var(--ivory);
  font-weight: 700;
  font-family: monospace;
}

.summary-card {
  background: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.coupon-box {
  background: rgba(8, 11, 16, 0.6);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   Responsive Enhancements: Cart, Dashboard, Tables & Mobile Polish
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cart-items-container,
.cart-checkout-container,
.classroom-main,
.classroom-sidebar,
.detail-gallery,
.detail-info {
  min-width: 0;
}

.cart-items-container .admin-card,
.dash-tab-content .admin-card {
  background-color: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  max-width: 100%;
}

.cart-item-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--navy-border);
  background: var(--black);
}

.cart-item-link {
  color: var(--ivory);
  font-weight: 600;
}

.cart-item-link:hover {
  color: var(--gold);
}

.cart-coupon-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--navy-border);
}

.coupon-form {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.coupon-form .form-control {
  flex: 1 1 180px;
}

.coupon-applied-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: rgba(180, 154, 98, 0.08);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.summary-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--ivory-muted);
}

.summary-grand-total {
  padding-top: 0.85rem;
  margin-top: 0.35rem;
  border-top: 1px solid var(--navy-border);
  font-size: 1.05rem;
  color: var(--gold);
}

.qty-num {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  color: var(--ivory);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--black);
  border: 1px solid var(--navy-border);
  color: var(--ivory);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-icon svg {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.btn-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-icon-danger {
  background: rgba(224, 108, 117, 0.12);
  border-color: rgba(224, 108, 117, 0.35);
  color: #ff8a93;
}

.btn-icon-danger:hover {
  background: rgba(224, 108, 117, 0.24);
  border-color: #ff8a93;
  color: #ffb3b8;
  transform: scale(1.04);
}

/* Dashboard Components */
.dashboard-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.dashboard-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(180, 154, 98, 0.12);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-user-info {
  flex: 1;
  min-width: 220px;
}

.dashboard-welcome-name {
  font-size: 1.5rem;
  color: var(--ivory);
}

.dashboard-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--slate);
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.dash-kpi-card {
  background: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.5rem;
  text-align: center;
}

.dash-kpi-val {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.dash-kpi-label {
  font-size: 0.88rem;
  color: var(--slate);
  margin-top: 0.35rem;
}

.dash-tab {
  background: none;
  border: none;
  padding: 0.85rem 1.25rem;
  color: var(--slate);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-family: inherit;
}

.dash-tab:hover {
  color: var(--ivory);
}

.dash-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.dash-tab-content {
  display: none;
}

.dash-tab-content.active {
  display: block;
}

.my-course-media {
  position: relative;
  min-height: 180px;
  background: var(--black);
}

.my-course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.my-course-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.my-course-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--gold);
}

.my-course-desc {
  font-size: 0.92rem;
  color: var(--ivory-muted);
  line-height: 1.75;
}

.empty-state-box {
  background: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 3rem 1.75rem;
  text-align: center;
  color: var(--slate);
}

.empty-state-box h3 {
  color: var(--ivory);
  margin: 1rem 0 0.5rem;
}

.form-card {
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.9rem;
}

.data-table th {
  padding: 0.85rem 1rem;
  background: rgba(8, 11, 16, 0.55);
  color: var(--gold);
  border-bottom: 1px solid var(--navy-border);
  white-space: nowrap;
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--slate-border);
  color: var(--ivory);
}

@media (max-width: 768px) {
  .container {
    padding-inline: 1rem;
  }
  .section {
    padding-block: 3.25rem;
  }
  .section-title {
    font-size: 1.7rem;
  }
  .detail-title {
    font-size: 1.6rem;
  }
  .detail-price-amount {
    font-size: 1.5rem;
  }
  .order-card,
  .contact-card,
  .auth-card,
  .confirmation-box,
  .dashboard-header-card,
  .form-card,
  .active-lesson-info-box {
    padding: 1.35rem 1.15rem;
  }
  .dashboard-kpi-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .dashboard-welcome-name {
    font-size: 1.25rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .order-timeline {
    flex-wrap: wrap;
    padding: 0.85rem;
    gap: 0.75rem;
  }
  .timeline-step {
    flex: 1 1 42%;
    font-size: 0.75rem;
  }
  .cart-table {
    min-width: 540px;
  }
  .cart-table th,
  .cart-table td {
    padding: 0.75rem 0.65rem;
    font-size: 0.84rem;
  }
  .specs-table td {
    padding: 0.7rem 0.85rem;
    font-size: 0.86rem;
  }
}


/* ==========================================================================
   ACADEMIC CHORDS PORTAL (Laminor Reference) & HEADER DROPDOWN
   ========================================================================== */

/* 1. Header Navigation Dropdown */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-header {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.nav-dropdown-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--slate);
  padding: 0.35rem 0.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.nav-item-dropdown:hover .nav-dropdown-toggle-btn,
.nav-item-dropdown.is-open .nav-dropdown-toggle-btn {
  color: var(--gold);
}

.nav-caret {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.85;
}

.nav-item-dropdown:hover .nav-caret,
.nav-item-dropdown:focus-within .nav-caret,
.nav-item-dropdown.is-open .nav-caret {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--gold);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: rgba(16, 26, 43, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(180, 154, 98, 0.35);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 20px rgba(180, 154, 98, 0.12);
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  pointer-events: none;
}

/* Invisible bridge so mouse movement never leaves the dropdown */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  right: 0;
  left: 0;
  height: 14px;
  background: transparent;
  pointer-events: auto;
}

@media (min-width: 1025px) {
  .nav-item-dropdown:hover .nav-dropdown,
  .nav-item-dropdown:focus-within .nav-dropdown,
  .nav-item-dropdown.is-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  color: var(--ivory-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  color: #fff;
  background: rgba(180, 154, 98, 0.16);
  padding-right: 1.05rem;
  transform: translateX(-2px);
}

.nav-dropdown .dropdown-divider {
  height: 1px;
  background: rgba(180, 154, 98, 0.18);
  margin: 0.35rem 0.4rem;
}

.nav-dropdown .dropdown-view-all {
  color: var(--gold) !important;
  font-weight: 700 !important;
  font-size: 0.82rem;
  background: rgba(180, 154, 98, 0.08);
  justify-content: space-between;
}

.nav-dropdown .dropdown-view-all:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
}

/* Header spacing safeguard between 1025px and 1280px */
@media (max-width: 1280px) and (min-width: 1025px) {
  .nav-links {
    gap: 0.1rem;
  }
  .nav-link {
    padding: 0.38rem 0.48rem;
    font-size: 0.82rem;
  }
  .header-actions {
    gap: 0.35rem;
  }
  .brand-slogan-wrap {
    display: none !important;
  }
  .btn-header-cta {
    display: none !important;
  }
}

/* Mobile Dropdown & Accordion (Screens <= 1024px) */
@media (max-width: 1024px) {
  .nav-item-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8, 11, 16, 0.55);
    border: 1px solid rgba(180, 154, 98, 0.2);
    border-radius: var(--radius-sm);
    transition: var(--transition);
  }

  .nav-dropdown-header:hover,
  .nav-item-dropdown.is-open .nav-dropdown-header {
    background: rgba(180, 154, 98, 0.16);
    border-color: var(--gold);
  }

  .nav-dropdown-header .nav-link {
    flex: 1;
    background: transparent !important;
    border: none !important;
    padding: 0.95rem 1.25rem;
    font-size: 1.05rem;
    color: var(--ivory);
  }

  .nav-dropdown-toggle-btn {
    padding: 0.95rem 1.25rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .nav-dropdown-toggle-btn .nav-caret {
    width: 14px;
    height: 14px;
  }

  .nav-item-dropdown .nav-dropdown {
    position: static !important;
    width: 100% !important;
    min-width: 100% !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    box-shadow: none !important;
    background: rgba(8, 11, 16, 0.75) !important;
    border: 1px solid rgba(180, 154, 98, 0.25) !important;
    border-radius: 8px !important;
    margin-top: 0.45rem !important;
    padding: 0.5rem !important;
    display: none;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    animation: accordionSlideDown 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .nav-item-dropdown.is-open .nav-dropdown {
    display: flex !important;
  }

  .nav-item-dropdown .nav-dropdown a {
    padding: 0.75rem 1rem !important;
    font-size: 0.92rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-item-dropdown .nav-dropdown a:last-child {
    border-bottom: none;
  }

  .nav-dropdown::before {
    display: none !important;
  }
}

@keyframes accordionSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. Chords Catalog Portal Page */
.chords-hero-section {
  padding-top: 2rem;
}

.chords-control-panel {
  background: rgba(16, 26, 43, 0.65);
  border: 1px solid rgba(180, 154, 98, 0.22);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.chords-search-form {
  margin-bottom: 1.5rem;
}

.chords-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chords-search-input {
  flex: 1;
  background: rgba(8, 11, 16, 0.75);
  border: 1px solid rgba(180, 154, 98, 0.28);
  border-radius: 12px;
  padding: 0.85rem 3.1rem 0.85rem 1rem;
  color: var(--ivory);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.chords-search-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(8, 11, 16, 0.95);
  box-shadow: 0 0 15px rgba(180, 154, 98, 0.2);
}

.chords-search-input-wrap .search-icon {
  position: absolute;
  right: 1.1rem;
  color: var(--gold);
  pointer-events: none;
}

.chords-search-input-wrap .search-clear-btn {
  position: absolute;
  left: 125px;
  color: var(--slate);
  text-decoration: none;
  font-size: 0.85rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
}

.chords-search-input-wrap .search-clear-btn:hover {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.chords-search-btn {
  padding: 0.85rem 1.85rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  flex-shrink: 0;
}

/* Category Filter Tabs (Laminor Style) */
.chords-category-tabs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(180, 154, 98, 0.3) transparent;
}

.chord-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(180, 154, 98, 0.18);
  color: var(--ivory-muted);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.chord-tab-btn:hover {
  background: rgba(180, 154, 98, 0.14);
  color: var(--ivory);
  border-color: rgba(180, 154, 98, 0.4);
}

.chord-tab-btn.active {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(180, 154, 98, 0.35);
}

.chord-tab-btn .tab-count {
  font-size: 0.74rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  line-height: 1.2;
}

.chord-tab-btn.active .tab-count {
  background: rgba(16, 26, 43, 0.35);
  color: var(--gold);
}

/* Secondary Sub-filters */
.chords-subfilter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(180, 154, 98, 0.12);
  flex-wrap: wrap;
  gap: 1rem;
}

.rhythm-pills-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.subfilter-label {
  font-size: 0.82rem;
  color: var(--slate);
  margin-left: 0.45rem;
}

.rhythm-pill {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ivory-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}

.rhythm-pill:hover {
  background: rgba(180, 154, 98, 0.12);
  color: var(--ivory);
}

.rhythm-pill.active {
  background: rgba(180, 154, 98, 0.22);
  color: var(--gold);
  border-color: var(--gold);
  font-weight: 600;
}

.sort-selector-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chords-sort-select {
  background: rgba(8, 11, 16, 0.8);
  border: 1px solid rgba(180, 154, 98, 0.25);
  color: var(--ivory);
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.chords-sort-select:focus {
  outline: none;
  border-color: var(--gold);
}

/* Chords List Items (Laminor Song Rows) */
.chords-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chord-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.6rem;
  background: rgba(16, 26, 43, 0.7);
  border: 1px solid rgba(180, 154, 98, 0.16);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 1.25rem;
}

.chord-card-row:hover {
  transform: translateY(-2px);
  border-color: rgba(180, 154, 98, 0.45);
  background: rgba(22, 34, 56, 0.92);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 15px rgba(180, 154, 98, 0.08);
}

.chord-card-start {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 240px;
}

.chord-avatar-symbol {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(180, 154, 98, 0.12);
  border: 1px solid rgba(180, 154, 98, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.chord-main-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.chord-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chord-song-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--creme);
  margin: 0;
  transition: color 0.15s ease;
}

.chord-card-row:hover .chord-song-title {
  color: var(--gold);
}

.verified-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(39, 174, 96, 0.15);
  color: #2ecc71;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.chord-artist-name {
  font-size: 0.86rem;
  color: var(--slate);
}

.chord-card-middle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.chord-meta-chip {
  font-size: 0.8rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ivory-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chord-meta-chip.chip-rhythm {
  color: var(--gold);
  background: rgba(180, 154, 98, 0.1);
  border: 1px solid rgba(180, 154, 98, 0.2);
}

.chord-meta-chip.chip-key {
  color: #6db1ff;
  background: rgba(43, 114, 186, 0.14);
  border: 1px solid rgba(109, 177, 255, 0.25);
  font-family: monospace;
  font-weight: 700;
}

.chord-meta-chip.diff-easy {
  color: #2ecc71;
  background: rgba(39, 174, 96, 0.12);
  border: 1px solid rgba(39, 174, 96, 0.2);
}

.chord-meta-chip.diff-medium {
  color: var(--gold);
  background: rgba(180, 154, 98, 0.12);
  border: 1px solid rgba(180, 154, 98, 0.2);
}

.chord-meta-chip.diff-hard {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.2);
}

.chord-meta-chip.chip-capo {
  color: #e67e22;
  background: rgba(230, 126, 34, 0.12);
  border: 1px solid rgba(230, 126, 34, 0.25);
}

.chord-card-end {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.chord-views-stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: var(--slate);
  direction: ltr;
}

.btn-chord-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  background: rgba(180, 154, 98, 0.1);
  border: 1px solid rgba(180, 154, 98, 0.25);
  transition: all 0.15s ease;
}

.chord-card-row:hover .btn-chord-action {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* 3. Chord Detail Page (Laminor Interactive Controls) */
.chord-detail-section {
  padding-top: 1.5rem;
}

.chord-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.chord-breadcrumbs a {
  color: var(--ivory-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.chord-breadcrumbs a:hover {
  color: var(--gold);
}

.breadcrumb-separator {
  color: rgba(180, 154, 98, 0.35);
  font-size: 0.8rem;
}

.breadcrumb-current {
  color: var(--creme);
  font-weight: 600;
}

.chord-control-card {
  background: rgba(16, 26, 43, 0.8);
  border: 1px solid rgba(180, 154, 98, 0.24);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.chord-card-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(180, 154, 98, 0.14);
}

.chord-heading-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.chord-view-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--creme);
  margin: 0;
  letter-spacing: -0.01em;
}

.chord-view-artist {
  font-size: 0.98rem;
  color: var(--slate);
}

.chord-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #2ecc71;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(39, 174, 96, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(39, 174, 96, 0.25);
  margin-top: 0.4rem;
  width: fit-content;
}

.chord-meta-boxes {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.meta-box {
  text-align: center;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  background: rgba(8, 11, 16, 0.6);
  border: 1px solid rgba(180, 154, 98, 0.2);
  min-width: 90px;
}

.meta-box-label {
  display: block;
  font-size: 0.72rem;
  color: var(--slate);
  margin-bottom: 0.25rem;
}

.meta-box-val {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--creme);
}

.meta-key .meta-box-val {
  color: #6db1ff;
  font-family: monospace;
}

.btn-bookmark-chord {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  background: rgba(180, 154, 98, 0.12);
  border: 1px solid rgba(180, 154, 98, 0.3);
  color: var(--gold);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-bookmark-chord:hover {
  background: rgba(180, 154, 98, 0.22);
}

.btn-bookmark-chord.bookmarked {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* Transposer Panel (17 Chromatic Scale Buttons) */
.transposer-panel {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: rgba(8, 11, 16, 0.65);
  border-radius: 12px;
  border: 1px solid rgba(180, 154, 98, 0.16);
}

.transposer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.transposer-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.95rem;
}

.transposer-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.active-key-indicator {
  font-size: 0.9rem;
  color: var(--creme);
}

.active-key-indicator b {
  color: #6db1ff;
  font-family: monospace;
  font-size: 1rem;
}

.semitone-shift-badge {
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(180, 154, 98, 0.15);
  color: var(--gold);
}

.btn-reset-key {
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: transparent;
  border: 1px solid rgba(180, 154, 98, 0.25);
  color: var(--slate);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-reset-key:hover {
  background: rgba(180, 154, 98, 0.12);
  color: var(--creme);
}

.key-buttons-scroll-wrap {
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.key-buttons-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
  min-width: 680px;
}

.btn-pitch {
  min-width: 36px;
  height: 36px;
  padding: 0 0.45rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ivory);
  font-family: monospace;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-pitch:hover {
  background: rgba(180, 154, 98, 0.2);
  color: var(--gold);
  border-color: rgba(180, 154, 98, 0.4);
}

.btn-pitch.active {
  background: #2563eb !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
  transform: scale(1.08);
}

.btn-pitch-step {
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(180, 154, 98, 0.15);
  border: 1px solid rgba(180, 154, 98, 0.3);
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-pitch-step:hover {
  background: var(--gold);
  color: var(--navy);
}

/* 3 Feature Toggles (Laminor Switch Bars) */
.chord-interactive-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.toggle-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(8, 11, 16, 0.5);
  border: 1px solid rgba(180, 154, 98, 0.14);
  border-radius: 12px;
  transition: border-color 0.2s ease;
}

.toggle-card:hover {
  border-color: rgba(180, 154, 98, 0.3);
}

.toggle-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.toggle-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(180, 154, 98, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.toggle-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.toggle-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--creme);
}

.toggle-desc {
  font-size: 0.78rem;
  color: var(--slate);
}

/* iOS/Laminor Style Switch Control */
.switch-control {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  cursor: pointer;
  flex-shrink: 0;
}

.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.16);
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.switch-control input:checked + .switch-slider {
  background-color: #2563eb;
}

.switch-control input:checked + .switch-slider:before {
  transform: translateX(22px);
}

/* Drawers & Interactive Modules */
.chord-drawer-section {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(8, 11, 16, 0.85);
  border: 1px solid rgba(180, 154, 98, 0.25);
  border-radius: 12px;
  animation: fadeIn 0.3s ease forwards;
}

.drawer-header {
  margin-bottom: 1.25rem;
}

.drawer-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.25rem;
}

.drawer-hint {
  font-size: 0.8rem;
  color: var(--slate);
}

/* Fretboards Grid */
.diagrams-fretboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.25rem;
}

.fretboard-card {
  background: rgba(16, 26, 43, 0.7);
  border: 1px solid rgba(180, 154, 98, 0.2);
  border-radius: 10px;
  padding: 0.85rem;
  text-align: center;
  transition: all 0.2s ease;
}

.fretboard-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.fretboard-chord-name {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: #6db1ff;
  margin-bottom: 0.45rem;
}

.fretboard-svg-wrap {
  display: flex;
  justify-content: center;
}

/* Rhythm Strummer Box & Real Audio Engine */
.rhythm-strummer-box {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rhythm-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rhythm-sound-mode-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 26, 43, 0.7);
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(180, 154, 98, 0.25);
}

.mode-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border-radius: 7px;
  background: transparent;
  color: var(--slate);
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-tab-btn:hover {
  color: var(--creme);
  background: rgba(255, 255, 255, 0.05);
}

.mode-tab-btn.active {
  background: linear-gradient(135deg, rgba(180, 154, 98, 0.28), rgba(180, 154, 98, 0.12));
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 0 10px rgba(180, 154, 98, 0.28);
}

.strum-pattern-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding: 1.25rem 1rem;
  background: rgba(16, 26, 43, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(180, 154, 98, 0.18);
}

.strum-arrow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  padding: 0.65rem 0.95rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  min-width: 60px;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
}

.strum-arrow-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(180, 154, 98, 0.35);
  transform: translateY(-2px);
}

.strum-step-num {
  font-size: 0.68rem;
  color: var(--slate);
  font-family: inherit;
  font-weight: 500;
}

.strum-glyph {
  font-size: 1.7rem;
  color: var(--gold);
  font-family: monospace;
  line-height: 1;
}

.strum-label {
  font-size: 0.74rem;
  color: var(--creme);
  font-weight: 600;
}

.strum-arrow-item.active-step,
.strum-arrow-item.active-strum {
  background: linear-gradient(135deg, rgba(180, 154, 98, 0.42), rgba(180, 154, 98, 0.22)) !important;
  border-color: var(--gold) !important;
  transform: translateY(-4px) scale(1.12) !important;
  box-shadow: 0 4px 20px rgba(180, 154, 98, 0.6) !important;
}

.strum-arrow-item.active-step .strum-glyph,
.strum-arrow-item.active-strum .strum-glyph {
  color: #fff !important;
  text-shadow: 0 0 12px var(--gold);
}

.strum-arrow-item.active-step .strum-step-num,
.strum-arrow-item.active-strum .strum-step-num {
  color: var(--gold) !important;
  font-weight: 700;
}

.rhythm-audio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.btn-play-rhythm {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, var(--gold), #988350);
  color: #080B10;
  border: none;
  box-shadow: 0 3px 12px rgba(180, 154, 98, 0.35);
}

.btn-play-rhythm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(180, 154, 98, 0.5);
}

.btn-play-rhythm.playing {
  background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
  border-color: #e74c3c !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(231, 76, 60, 0.45) !important;
}

.tempo-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--creme);
}

.tempo-control-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-tempo-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-tempo-step:hover {
  background: rgba(180, 154, 98, 0.2);
  border-color: var(--gold);
  color: #fff;
}

.tempo-slider {
  accent-color: var(--gold);
  cursor: pointer;
  width: 135px;
}

.volume-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--creme);
}

.volume-slider-wrap label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--slate);
}

.volume-slider-wrap label b {
  color: var(--gold);
  font-family: monospace;
}

.volume-slider {
  accent-color: var(--gold);
  cursor: pointer;
  width: 110px;
}

.capo-recommendation-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  background: rgba(180, 154, 98, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(180, 154, 98, 0.22);
}

.capo-icon-badge {
  font-size: 1.8rem;
}

.capo-text h4 {
  font-size: 0.95rem;
  color: var(--gold);
  margin: 0 0 0.35rem;
}

.capo-text p {
  font-size: 0.86rem;
  color: var(--ivory);
  margin: 0;
  line-height: 1.6;
}

/* 4. Lyrics & Chords Display Area (Laminor Sheet) */
.chord-sheet-container {
  background: rgba(16, 26, 43, 0.75);
  border: 1px solid rgba(180, 154, 98, 0.2);
  border-radius: 16px;
  padding: 2.25rem;
  margin-bottom: 3rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.sheet-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(180, 154, 98, 0.14);
  flex-wrap: wrap;
  gap: 1rem;
}

.font-size-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.toolbar-label {
  font-size: 0.82rem;
  color: var(--slate);
  margin-left: 0.5rem;
}

.btn-tool-sm {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ivory);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-tool-sm:hover {
  background: rgba(180, 154, 98, 0.2);
  color: var(--gold);
  border-color: var(--gold);
}

.sheet-actions-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-tool-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(180, 154, 98, 0.25);
  color: var(--gold);
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-tool-outline:hover {
  background: rgba(180, 154, 98, 0.15);
  border-color: var(--gold);
}

/* Sheet Typography & Inline Chords */
.chord-sheet-content {
  direction: rtl;
  font-size: 1.05rem;
  line-height: 2.8;
  color: var(--ivory);
  transition: font-size 0.2s ease;
}

.chord-verse-line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: 0.85rem;
  row-gap: 1.25rem;
  margin-bottom: 1.6rem;
}

.chord-line-chords {
  margin-bottom: 0.35rem;
  white-space: pre-wrap;
  direction: rtl;
  font-family: inherit;
}

.chord-space {
  white-space: pre;
  display: inline;
}

.chord-empty-line {
  height: 1.6rem;
}

.chord-syllable-unit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 32px;
}

.chord-tag {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #3b82f6;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 0.1rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
  cursor: pointer;
  line-height: 1.3;
}

.chord-tag:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(180, 154, 98, 0.22);
  transform: translateY(-2px);
}

.chord-spacer {
  height: 1.6rem;
  display: block;
}

.lyric-text {
  display: inline-block;
  font-size: 1.05rem;
  color: var(--ivory);
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.4;
}

.lyric-text.lyric-empty {
  min-width: 20px;
}

/* 5. Floating Hands-Free Auto-Scroll Bar */
.floating-autoscroll-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(16, 26, 43, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--gold);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(180, 154, 98, 0.2);
  padding: 0.4rem 0.75rem;
  transition: all 0.3s ease;
}

.autoscroll-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-toggle-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-toggle-scroll:hover {
  background: #d4b574;
  transform: scale(1.03);
}

.btn-toggle-scroll.scrolling {
  background: #e74c3c;
  color: #fff;
}

.scroll-speed-buttons {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-speed {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ivory);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-speed:hover {
  background: rgba(180, 154, 98, 0.2);
  color: var(--gold);
}

.btn-speed.active {
  background: rgba(180, 154, 98, 0.25);
  color: var(--gold);
  border-color: var(--gold);
}

.btn-close-scroll {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--slate);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-close-scroll:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--creme);
}

/* Responsive tuning for chords portal */
@media (max-width: 768px) {
  .chord-card-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.15rem;
    gap: 0.85rem;
  }
  .chord-card-start {
    width: 100%;
    min-width: 0;
  }
  .chord-card-middle {
    width: 100%;
  }
  .chord-card-end {
    width: 100%;
    justify-content: space-between;
  }
  .chord-card-header-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .chord-meta-boxes {
    width: 100%;
    justify-content: space-between;
  }
  .meta-box {
    flex: 1;
    min-width: 0;
  }
  .btn-bookmark-chord {
    width: 100%;
    justify-content: center;
  }
  .chord-sheet-container {
    padding: 1.5rem 1.1rem;
  }
  .floating-autoscroll-bar {
    width: calc(100% - 32px);
    border-radius: 16px;
    padding: 0.5rem;
  }
  .autoscroll-inner {
    justify-content: space-between;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Password Visibility Toggle Button & Field Wrap
   -------------------------------------------------------------------------- */
.password-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-field-wrap .form-control {
  padding-left: 2.75rem !important;
}

.password-toggle-btn {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: color 0.2s ease, transform 0.15s ease;
  line-height: 1;
}

.password-toggle-btn:hover {
  color: var(--gold);
}

.password-toggle-btn:focus-visible {
  outline: 1px dashed var(--gold);
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Sheet Music Search & Genre Filter Bar
   -------------------------------------------------------------------------- */
.sheet-search-filter-wrap {
  margin-bottom: 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.sheet-search-form {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.sheet-search-input-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.sheet-search-input-box .search-icon {
  position: absolute;
  right: 14px;
  color: var(--slate);
  pointer-events: none;
}

.sheet-search-input {
  width: 100%;
  padding: 0.85rem 2.85rem 0.85rem 2.5rem;
  background-color: var(--navy);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-sm);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

.sheet-search-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.sheet-search-clear-btn {
  position: absolute;
  left: 12px;
  background: none;
  border: none;
  color: var(--slate);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 2px 6px;
  text-decoration: none;
  line-height: 1;
}

.sheet-search-clear-btn:hover {
  color: var(--gold);
}

.btn-search-submit {
  padding: 0.85rem 1.6rem;
  white-space: nowrap;
}

.sheet-category-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  width: 100%;
}

.sheet-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ivory-muted);
  background: var(--navy);
  border: 1px solid var(--slate-border);
  border-radius: 30px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.sheet-filter-pill:hover {
  color: var(--ivory);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.sheet-filter-pill.active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(180, 154, 98, 0.35);
}

.sheet-filter-pill .pill-count {
  font-size: 0.75rem;
  padding: 1px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

.sheet-filter-pill.active .pill-count {
  background: rgba(16, 26, 43, 0.25);
  color: var(--navy);
}

.card-badge-category {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(16, 26, 43, 0.88);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  z-index: 2;
}




/* --------------------------------------------------------------------------
   Blog & Educational Articles Styles (وبلاگ و مقالات آموزشی سرودا)
   -------------------------------------------------------------------------- */
.blog-page {
  padding-bottom: 5rem;
}

.blog-hero {
  padding: 4rem 0 2rem;
  background: radial-gradient(circle at 50% 10%, rgba(180, 154, 98, 0.08) 0%, rgba(8, 11, 16, 0.98) 70%);
}

.blog-controls-card {
  max-width: 900px;
  margin: 2.5rem auto 0;
  background: rgba(16, 26, 43, 0.85);
  border: 1px solid rgba(180, 154, 98, 0.3);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.blog-search-form {
  margin-bottom: 1.25rem;
}

.blog-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.blog-search-input-wrap .search-icon {
  position: absolute;
  right: 1.2rem;
  color: var(--gold);
  pointer-events: none;
}

.blog-search-input {
  width: 100%;
  padding: 0.95rem 3.25rem 0.95rem 7.5rem;
  background: rgba(8, 11, 16, 0.8);
  border: 1px solid var(--slate-border);
  border-radius: 30px;
  color: var(--ivory);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.blog-search-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(180, 154, 98, 0.2);
}

.blog-search-btn {
  position: absolute;
  left: 6px;
  padding: 0.55rem 1.4rem;
  border-radius: 24px;
  font-size: 0.88rem;
}

.blog-categories-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
}

.blog-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  color: var(--slate);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--slate-border);
  border-radius: 30px;
  text-decoration: none;
  transition: var(--transition);
}

.blog-cat-pill:hover {
  color: var(--ivory);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.blog-cat-pill.active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(180, 154, 98, 0.3);
}

.blog-cat-pill .cat-count {
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.blog-cat-pill.active .cat-count {
  background: rgba(16, 26, 43, 0.25);
  color: var(--navy);
}

/* Grid & Cards */
.blog-grid-section {
  padding-top: 3rem;
}

.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--card-bg, #101a2b);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(180, 154, 98, 0.15);
}

.blog-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
}

.blog-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-thumb {
  transform: scale(1.06);
}

.blog-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(8, 11, 16, 0.9);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--slate);
  margin-bottom: 0.85rem;
}

.blog-card-date,
.blog-card-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.blog-card-title a {
  color: var(--ivory);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card-title a:hover {
  color: var(--gold);
}

.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--slate);
}

.blog-card-author .author-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.blog-card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.blog-card-read-more:hover {
  transform: translateX(-4px);
}

/* ==========================================================================
   Single Article Reading Layout
   ========================================================================== */
.article-single-page {
  padding: 3rem 0 5rem;
}

.article-layout {
  max-width: 860px;
  margin: 0 auto;
}

.article-breadcrumbs {
  margin-bottom: 2rem;
  font-size: 0.85rem;
}

.article-breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0;
  margin: 0;
}

.article-breadcrumbs a {
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s;
}

.article-breadcrumbs a:hover {
  color: var(--gold);
}

.article-breadcrumbs .crumb-sep {
  color: rgba(255, 255, 255, 0.2);
}

.article-breadcrumbs .active {
  color: var(--gold);
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-header {
  margin-bottom: 2rem;
}

.article-category-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(180, 154, 98, 0.12);
  border: 1px solid var(--gold);
  border-radius: 20px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.article-main-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ivory);
  line-height: 1.45;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.article-lead-excerpt {
  font-size: 1.1rem;
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 1.75rem;
  border-right: 3px solid var(--gold);
  padding-right: 1rem;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(16, 26, 43, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.article-meta-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(180, 154, 98, 0.15);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.author-name {
  display: block;
  font-weight: 700;
  color: var(--ivory);
  font-size: 0.95rem;
}

.author-role {
  display: block;
  font-size: 0.78rem;
  color: var(--slate);
}

.article-meta-stats {
  display: flex;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: var(--slate);
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.article-cover-wrap {
  margin: 2rem 0 3rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-cover-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Article Content Typography & Word Links & Inline Images
   ========================================================================== */
.article-content-body {
  font-size: 1.05rem;
  line-height: 2.1;
  color: #e2e8f0;
}

.article-content-body p {
  margin-bottom: 1.5rem;
}

.article-content-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  margin: 3rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(180, 154, 98, 0.2);
  line-height: 1.5;
}

.article-content-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ivory);
  margin: 2.25rem 0 1rem;
  line-height: 1.5;
}

.article-content-body ul,
.article-content-body ol {
  margin: 1.25rem 0 1.75rem 0;
  padding-right: 1.75rem;
}

.article-content-body li {
  margin-bottom: 0.65rem;
  line-height: 1.9;
}

.article-content-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  background: rgba(180, 154, 98, 0.06);
  border-right: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  color: var(--ivory);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.9;
}

/* Specific Word Links (User Requirement: کلمه متصل به لینک) */
.blog-link {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 1px 3px;
  border-radius: 3px;
}

.blog-link:hover {
  background: rgba(180, 154, 98, 0.18);
  color: #fff;
  text-decoration-color: var(--gold);
}

/* Inline Images inside Article (User Requirement: تعیین مکان عکس بین متن‌ها) */
.blog-inline-img {
  margin: 2rem 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.blog-inline-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-inline-img figcaption {
  font-size: 0.82rem;
  color: var(--slate);
  text-align: center;
  padding: 0.6rem 0.5rem 0;
  font-style: italic;
  line-height: 1.6;
}

/* Position 1: Center / Block */
.blog-inline-img.img-center {
  margin: 2.5rem auto;
  text-align: center;
  display: block;
}

/* Position 2: Float Right with text wrapping */
.blog-inline-img.img-right {
  float: right;
  margin: 0.5rem 0 1.5rem 2rem;
  max-width: 48%;
}

/* Position 3: Float Left with text wrapping */
.blog-inline-img.img-left {
  float: left;
  margin: 0.5rem 2rem 1.5rem 0;
  max-width: 48%;
}

@media (max-width: 768px) {
  .blog-inline-img.img-right,
  .blog-inline-img.img-left {
    float: none !important;
    max-width: 100% !important;
    margin: 2rem 0 !important;
  }
}

/* Tags & Action Bar */
.article-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 3rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tags-label {
  font-size: 0.85rem;
  color: var(--slate);
}

.article-tag-pill {
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--slate-border);
  color: var(--slate);
  font-size: 0.82rem;
  text-decoration: none;
  transition: var(--transition);
}

.article-tag-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.article-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.25rem;
  background: rgba(16, 26, 43, 0.5);
  border-radius: 10px;
}

.share-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.share-label {
  font-size: 0.85rem;
  color: var(--slate);
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--slate-border);
  border-radius: 6px;
  color: var(--ivory);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-share:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-share-wa:hover {
  border-color: #25D366;
  color: #25D366;
}

.btn-share-tg:hover {
  border-color: #229ED9;
  color: #229ED9;
}

.btn-back-to-blog {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.2s;
}

.btn-back-to-blog:hover {
  transform: translateX(-4px);
}

/* Author Card */
.article-author-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: radial-gradient(circle at 10% 50%, rgba(180, 154, 98, 0.08) 0%, rgba(16, 26, 43, 0.95) 70%);
  border: 1px solid rgba(180, 154, 98, 0.3);
  border-radius: 12px;
  padding: 2rem;
  margin: 3.5rem 0;
}

.author-card-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

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

.author-card-name {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.author-card-bio {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.author-card-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.author-link {
  font-size: 0.82rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.author-link:hover {
  text-decoration: underline;
}

/* Related Articles */
.related-articles-section {
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2.5rem;
}

.related-headline {
  font-size: 1.35rem;
  color: var(--ivory);
  margin-bottom: 1.5rem;
  border-right: 3px solid var(--gold);
  padding-right: 0.75rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.related-card {
  background: var(--card-bg, #101a2b);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.related-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.related-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-info {
  padding: 1rem;
}

.related-cat {
  font-size: 0.72rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.35rem;
}

.related-title {
  font-size: 0.92rem;
  color: var(--ivory);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.related-read-time {
  font-size: 0.75rem;
  color: var(--slate);
}

/* ==========================================================================
   Chords Archive Pagination - Grouped Square Tiles Design
   ========================================================================== */
.chords-pagination-container {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem 1.25rem;
  background: rgba(16, 26, 43, 0.65);
  border: 1px solid rgba(180, 154, 98, 0.22);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.chord-page-categories {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(180, 154, 98, 0.12);
  width: 100%;
}

.page-category-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light, #DFC488);
}

.page-category-label svg {
  color: var(--gold, #B49A62);
}

.page-category-pills {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.page-category-pill {
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: rgba(22, 34, 54, 0.85);
  border: 1px solid rgba(180, 154, 98, 0.24);
  color: var(--ivory-muted, #C8D1DC);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.page-category-pill:hover {
  color: var(--gold-light, #DFC488);
  border-color: var(--gold, #B49A62);
  background: rgba(180, 154, 98, 0.16);
  transform: translateY(-1px);
}

.page-category-pill.active {
  background: rgba(180, 154, 98, 0.24);
  border-color: var(--gold, #B49A62);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(180, 154, 98, 0.3);
}

.chord-pagination-squares-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.25rem 0;
}

.chord-square-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  aspect-ratio: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(22, 34, 54, 0.9);
  border: 1px solid rgba(180, 154, 98, 0.28);
  color: var(--ivory, #F8F9FA);
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.chord-square-box:hover:not(.disabled):not(.active) {
  background: rgba(180, 154, 98, 0.22);
  border-color: var(--gold, #B49A62);
  color: var(--gold-light, #DFC488);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 6px 16px rgba(180, 154, 98, 0.32);
}

.chord-square-box.active {
  background: linear-gradient(135deg, #B49A62 0%, #D4AF37 50%, #B49A62 100%);
  border-color: #F3E5AB;
  color: #0B1320 !important;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(180, 154, 98, 0.5);
  cursor: default;
  transform: none;
}

.chord-square-box.nav-square {
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 800;
  color: var(--gold, #B49A62);
}

.chord-square-box.disabled {
  opacity: 0.28;
  pointer-events: none;
  cursor: not-allowed;
  border-color: rgba(125, 135, 149, 0.2);
  background: rgba(16, 26, 43, 0.4);
}

.chord-square-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 44px;
  color: var(--gold, #B49A62);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 2px;
  user-select: none;
}

.chord-pagination-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--slate);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.25rem;
}

.chord-pagination-meta strong {
  color: var(--gold-light, #DFC488);
  font-weight: 700;
}

.chord-pagination-meta .meta-dot {
  color: rgba(180, 154, 98, 0.45);
}

@media (max-width: 576px) {
  .chords-pagination-container {
    padding: 1.25rem 0.75rem;
    gap: 1rem;
  }
  .chord-square-box {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    font-size: 0.92rem;
    border-radius: 8px;
  }
  .chord-square-box.nav-square {
    font-size: 1.15rem;
  }
  .chord-pagination-squares-row {
    gap: 0.35rem;
  }
  .page-category-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
  }
}
