/* ==========================================================================
   THE EQ: MUSIC SUITE — EXECUTIVE ACOUSTIC WORKSTATION THEME
   Warm Walnut/Obsidian Console, Brushed Brass Accents & Crisp Architectural UI
   ========================================================================== */

:root {
  --eqs-bg-deep: #0e0c0a;
  --eqs-bg-surface: #171310;
  --eqs-bg-card: rgba(26, 21, 17, 0.92);
  --eqs-bg-card-hover: rgba(35, 28, 22, 0.98);
  --eqs-gold: #c89d54;
  --eqs-gold-bright: #e5c158;
  --eqs-amber: #d97706;
  --eqs-cyan: #c89d54;
  --eqs-emerald: #2e9e6b;
  --eqs-text-main: #f5f0e6;
  --eqs-text-sub: #d6cbb9;
  --eqs-text-muted: #9c8f7c;
  --eqs-border: rgba(200, 157, 84, 0.22);
  --eqs-border-gold: rgba(200, 157, 84, 0.45);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--eqs-bg-deep);
  background-image:
    radial-gradient(circle at 18% 0%, rgba(200, 157, 84, 0.10) 0%, transparent 48%),
    radial-gradient(circle at 82% 8%, rgba(180, 115, 45, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #120f0c 0%, #0e0c0a 100%);
  color: var(--eqs-text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Interactive Background Canvas */
#eqs-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.eqs-shell-container {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto;
  padding: 20px 24px 56px;
}

/* ==========================================================================
   MASTER HEADER & GOLD INSTRUMENT CREST
   ========================================================================== */
.eqs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(30, 24, 19, 0.96) 0%, rgba(21, 17, 14, 0.96) 100%);
  border: 1px solid var(--eqs-border-gold);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 245, 220, 0.06);
  flex-wrap: wrap;
}

.eqs-brand-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

.eqs-mark {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  background: #0b0a08;
  border: 1.5px solid rgba(200, 157, 84, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(229, 193, 88, 0.15);
  flex-shrink: 0;
  overflow: hidden;
  padding: 2px;
}

.eqs-crest-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.eqs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eqs-gold-bright);
  margin-bottom: 4px;
}

.eqs-live-led {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--eqs-gold-bright);
  box-shadow: 0 0 6px rgba(229, 193, 88, 0.7);
}

.eqs-title h1 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--eqs-text-main);
  line-height: 1.15;
}

.eqs-title p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--eqs-text-sub);
  font-weight: 400;
}

.eqs-header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Reference Pitch Pipe Strip */
.eqs-tuner-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #110e0b;
  border: 1px solid var(--eqs-border);
}

.eqs-tuner-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--eqs-text-sub);
  margin-right: 4px;
  white-space: nowrap;
}

.eqs-tone-btn {
  appearance: none;
  border: 1px solid rgba(200, 157, 84, 0.28);
  background: #1d1813;
  color: var(--eqs-text-main);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.eqs-tone-btn:hover,
.eqs-tone-btn.playing {
  background: var(--eqs-gold);
  color: #120e0a;
  border-color: var(--eqs-gold-bright);
}

.eqs-tone-a440 {
  border-color: rgba(200, 157, 84, 0.5);
  color: var(--eqs-gold-bright);
}

/* Session Status Badge — Rectangular Studio Tag */
.eqs-session-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 6px;
  background: rgba(46, 158, 107, 0.12);
  border: 1px solid rgba(46, 158, 107, 0.4);
  color: #86efac;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.eqs-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #2e9e6b;
}

/* ==========================================================================
   ACCESSIBILITY & WORKSTATION UTILITY BAR (NO PILL BOXES)
   ========================================================================== */
.eqs-iep-bar {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #14110d;
  border: 1px solid var(--eqs-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.eqs-iep-bar-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--eqs-gold-bright);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.eqs-iep-bar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.eqs-iep-pill {
  appearance: none;
  border: 1px solid rgba(200, 157, 84, 0.25);
  background: #1d1813;
  color: var(--eqs-text-sub);
  padding: 6px 11px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.eqs-iep-pill:hover {
  background: #28211a;
  color: var(--eqs-text-main);
  border-color: var(--eqs-gold);
}

.eqs-iep-pill.active {
  background: rgba(200, 157, 84, 0.2);
  border-color: var(--eqs-gold-bright);
  color: var(--eqs-gold-bright);
}

.eqs-download-cta {
  background: linear-gradient(180deg, #c89d54 0%, #a67c35 100%);
  color: #120e0a !important;
  border-color: #e5c158 !important;
  font-weight: 700;
}

.eqs-download-cta:hover {
  background: linear-gradient(180deg, #e5c158 0%, #c89d54 100%);
  color: #0b0907 !important;
}

/* ==========================================================================
   AUTHENTICATION & ACCESS GATEWAY
   ========================================================================== */
.eqs-auth-wrapper {
  margin: 22px auto 12px;
  max-width: 960px;
}

.eqs-auth-card {
  background: linear-gradient(180deg, #1b1612 0%, #13100c 100%);
  border: 1px solid var(--eqs-border-gold);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
}

.eqs-auth-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--eqs-border);
}

.eqs-auth-top h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--eqs-text-main);
}

.eqs-auth-top p {
  margin: 0;
  font-size: 14px;
  color: var(--eqs-text-sub);
}

.eqs-safe-badge {
  padding: 6px 12px;
  border-radius: 5px;
  background: rgba(200, 157, 84, 0.14);
  border: 1px solid var(--eqs-border-gold);
  color: var(--eqs-gold-bright);
  font-size: 12px;
  font-weight: 700;
}

/* Quick Classroom Code Bar */
.eqs-quick-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #120f0c;
  border: 1px solid var(--eqs-border);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.eqs-quick-code-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.eqs-quick-code-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--eqs-gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.eqs-quick-code-info span:last-child {
  font-size: 13px;
  color: var(--eqs-text-sub);
}

.eqs-quick-code-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.eqs-quick-code-inputs input {
  background: #1a1511;
  border: 1px solid rgba(200, 157, 84, 0.35);
  color: var(--eqs-text-main);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  min-width: 230px;
  outline: none;
}

.eqs-quick-code-inputs input:focus {
  border-color: var(--eqs-gold-bright);
  box-shadow: 0 0 0 2px rgba(200, 157, 84, 0.2);
}

/* 3-Column Portal Selection */
.eqs-auth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 820px) {
  .eqs-auth-grid {
    grid-template-columns: 1fr;
  }
}

.eqs-portal-option {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-radius: 8px;
  background: #181410;
  border: 1px solid var(--eqs-border);
  color: var(--eqs-text-main);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.eqs-portal-option:hover {
  transform: translateY(-2px);
  background: #211b15;
  border-color: var(--eqs-gold);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.eqs-portal-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(200, 157, 84, 0.12);
  border: 1px solid rgba(200, 157, 84, 0.3);
}

.eqs-portal-option h3 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 700;
  color: var(--eqs-text-main);
}

.eqs-portal-option p {
  margin: 0;
  font-size: 13px;
  color: var(--eqs-text-sub);
  line-height: 1.45;
}

.eqs-portal-cta {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--eqs-gold-bright);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* School Form */
.eqs-school-form {
  margin-top: 18px;
  padding: 20px;
  border-radius: 8px;
  background: #120f0c;
  border: 1px solid var(--eqs-border-gold);
}

.eqs-school-form h3 {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--eqs-gold-bright);
}

.eqs-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 760px) {
  .eqs-form-grid {
    grid-template-columns: 1fr;
  }
}

.eqs-form-grid label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--eqs-text-sub);
  margin-bottom: 6px;
}

.eqs-form-grid input {
  width: 100%;
  background: #1a1511;
  border: 1px solid rgba(200, 157, 84, 0.3);
  color: var(--eqs-text-main);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

.eqs-form-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.eqs-btn-gold {
  appearance: none;
  border: 1px solid #e5c158;
  background: linear-gradient(180deg, #d4ab62 0%, #b3863b 100%);
  color: #120e0a;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.eqs-btn-gold:hover {
  background: linear-gradient(180deg, #e5c158 0%, #c89d54 100%);
}

.eqs-btn-ghost {
  color: var(--eqs-text-sub);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.eqs-btn-ghost:hover {
  color: var(--eqs-text-main);
}

/* ==========================================================================
   FILTER & SEARCH CONSOLE BAR (RECTANGULAR HARDWARE CONTROLS)
   ========================================================================== */
.eqs-console-bar {
  margin: 20px 0 18px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #15120e;
  border: 1px solid var(--eqs-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.eqs-category-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.eqs-cat-tab {
  appearance: none;
  border: 1px solid rgba(200, 157, 84, 0.2);
  background: #1d1813;
  color: var(--eqs-text-sub);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.eqs-cat-tab:hover {
  color: var(--eqs-text-main);
  background: #262019;
  border-color: rgba(200, 157, 84, 0.4);
}

.eqs-cat-tab.active {
  background: var(--eqs-gold);
  color: #120e0a;
  border-color: var(--eqs-gold-bright);
  font-weight: 700;
}

.eqs-console-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
}

.eqs-search-box {
  position: relative;
  min-width: 250px;
  max-width: 340px;
  flex: 1;
}

.eqs-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: 0.7;
  pointer-events: none;
}

.eqs-search-box input {
  width: 100%;
  background: #100d0a;
  border: 1px solid rgba(200, 157, 84, 0.28);
  color: var(--eqs-text-main);
  padding: 8px 12px 8px 34px;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}

.eqs-search-box input:focus {
  border-color: var(--eqs-gold-bright);
}

.eqs-mode-switch-btn {
  appearance: none;
  border: 1px solid rgba(200, 157, 84, 0.35);
  background: #1f1914;
  color: var(--eqs-gold-bright);
  padding: 8px 13px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.eqs-mode-switch-btn:hover {
  background: #2b231b;
  border-color: var(--eqs-gold-bright);
}

/* ==========================================================================
   10 STUDIO MODULE CARDS GRID (ARCHITECTURAL CONSOLE MODULES)
   ========================================================================== */
.eqs-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.eqs-card {
  grid-column: span 6;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 22px;
  border-radius: 8px;
  background: linear-gradient(180deg, #1a1511 0%, #14100d 100%);
  border: 1px solid rgba(200, 157, 84, 0.24);
  border-top: 3px solid var(--card-accent, var(--eqs-gold));
  color: var(--eqs-text-main);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.eqs-card:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, #221c16 0%, #191410 100%);
  border-color: var(--eqs-gold);
  border-top-color: var(--card-accent, var(--eqs-gold-bright));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
}

.eqs-card.hidden-by-filter {
  display: none !important;
}

@media (max-width: 900px) {
  .eqs-card {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .eqs-shell-container {
    padding: 12px 14px 44px;
  }
  .eqs-header {
    padding: 14px 16px;
    gap: 14px;
  }
  .eqs-mark {
    width: 68px;
    height: 68px;
  }
  .eqs-title h1 {
    font-size: 21px;
  }
  .eqs-title p {
    font-size: 12.5px;
  }
}

.eqs-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.eqs-studio-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eqs-gold-bright);
}

.eqs-badge-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: #231d17;
  border: 1px solid rgba(200, 157, 84, 0.28);
  color: var(--eqs-text-sub);
}

.eqs-card-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.eqs-card-art {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #110e0b;
  border: 1px solid rgba(200, 157, 84, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eqs-card-art svg {
  width: 30px;
  height: 30px;
}

.eqs-card-text h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--eqs-text-main);
}

.eqs-card-text p {
  margin: 0;
  font-size: 13.5px;
  color: var(--eqs-text-sub);
  line-height: 1.5;
}

.eqs-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(200, 157, 84, 0.14);
}

.eqs-mini-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.eqs-mini-eq span {
  width: 3px;
  border-radius: 1px;
  background: var(--card-accent, var(--eqs-gold));
  opacity: 0.65;
  transition: height 0.25s ease;
}

.eqs-mini-eq span:nth-child(1) { height: 5px; }
.eqs-mini-eq span:nth-child(2) { height: 12px; }
.eqs-mini-eq span:nth-child(3) { height: 8px; }
.eqs-mini-eq span:nth-child(4) { height: 14px; }

.eqs-card:hover .eqs-mini-eq span {
  opacity: 1;
}

.eqs-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 5px;
  background: #231d17;
  border: 1px solid rgba(200, 157, 84, 0.35);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--eqs-gold-bright);
  transition: all 0.18s ease;
}

.eqs-card:hover .eqs-chip {
  background: var(--eqs-gold);
  color: #120e0a;
  border-color: var(--eqs-gold-bright);
}

.eqs-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--card-accent, var(--eqs-gold));
}

.eqs-card:hover .eqs-dot {
  background: #120e0a;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.eqs-footer {
  margin-top: 36px;
  padding: 18px 22px;
  border-radius: 8px;
  background: #14110d;
  border: 1px solid var(--eqs-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--eqs-text-muted);
}

.eqs-footer-brand {
  font-weight: 700;
  color: var(--eqs-text-sub);
}

.eqs-footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.eqs-footer-links a {
  color: var(--eqs-gold-bright);
  text-decoration: none;
  font-weight: 600;
}

.eqs-footer-links a:hover {
  text-decoration: underline;
}

.eqs-footer-safe {
  color: #86efac;
  font-weight: 700;
}

/* Demo Modal */
.eqs-demo-modal {
  max-width: 400px;
  margin: 24px auto;
  padding: 22px;
  border-radius: 8px;
  background: #171310;
  border: 1px solid var(--eqs-border-gold);
  text-align: center;
}

.eqs-demo-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eqs-demo-inputs input {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--eqs-border);
  background: #100d0a;
  color: #fff;
}
