/* ==========================================================================
   Chordix Pro Studio - Premium Light Ivory / Titanium Gray & Royal Gold
   + Dark Studio Edition (User Selectable Theme Toggle)
   Responsive for Mobile, iPad/Tablet, Mac, and PC
   Branding: Nithyam Chordix AI
   ========================================================================== */

:root {
  --bg-app: #F5F6F8;              /* Soft Titanium Light Gray / Ivory */
  --bg-surface: #FFFFFF;          /* Pure Crisp White */
  --bg-surface-elevated: #F0F2F5; /* Soft Elevated Well */
  --bg-surface-well: #E5E7EB;     /* Inset Well / Divider */
  
  --border-studio: #DDE1E6;       /* Hardware Chassis Subtle Border */
  --border-gold: #D97706;         /* Royal Gold Border */
  
  --gold-primary: #D97706;        /* High-Contrast Royal Gold */
  --gold-vibrant: #F59E0B;        /* Sunburst Amber Gold */
  --gold-amber: #B45309;          /* Deep Bronze Amber */
  --gold-glow: rgba(217, 119, 6, 0.22);
  
  --text-primary: #111827;        /* Crisp Charcoal Obsidian */
  --text-secondary: #374151;      /* Slate Gray Secondary */
  --text-muted: #6B7280;          /* Muted Gray */
  
  --card-bg: #FFFFFF;             /* Crisp Pure White Card */
  --card-border: #E5E7EB;
  
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ============================================================
   DARK STUDIO MODE — Original Black & 24K Gold
   Applied when html element has data-theme="dark"
   ============================================================ */
html[data-theme="dark"] {
  --bg-app: #0A0C10;              /* Deep Space Black */
  --bg-surface: #0E1117;          /* Studio Carbon Black */
  --bg-surface-elevated: #161A22; /* Elevated Dark Panel */
  --bg-surface-well: #1E232E;     /* Inset Dark Well */

  --border-studio: #2A2F3A;       /* Dark Hardware Border */
  --border-gold: #D97706;         /* Royal Gold Border (same) */

  --gold-primary: #F59E0B;        /* Bright Sunburst Gold (more visible on dark) */
  --gold-vibrant: #FBBF24;        /* Amber Glow */
  --gold-amber: #D97706;          /* Deep Bronze */
  --gold-glow: rgba(245, 158, 11, 0.28);

  --text-primary: #F1F5F9;        /* Bright Crisp White */
  --text-secondary: #CBD5E1;      /* Soft Silver */
  --text-muted: #64748B;          /* Muted Slate */

  --card-bg: #161A22;             /* Dark Card Background */
  --card-border: #2A2F3A;
}

/* Smooth theme transition on all elements */
*, *::before, *::after {
  transition: background-color 0.3s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, var(--gold-glow) 0%, transparent 65%);
}

/* Responsive Device Shell Frame */
.app-shell {
  width: 100%;
  max-width: 540px; /* Mobile width default */
  background-color: var(--bg-surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.1);
  padding-bottom: calc(265px + env(safe-area-inset-bottom, 24px)); /* Elevated space for split bottom player */
  transition: max-width 0.3s ease;
}

/* Tablet & iPad Responsiveness */
@media (min-width: 768px) {
  .app-shell {
    max-width: 860px; /* iPad / Tablet comfortable width */
    padding-bottom: calc(275px + env(safe-area-inset-bottom, 24px));
  }
}

/* Android TV Remote Control Focus Ring & 10-Foot UI Highlight */
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3.5px solid #F59E0B !important;
  outline-offset: 3px !important;
  transform: scale(1.04);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6) !important;
  z-index: 10;
}

/* In-App Live Chat Bubbles */
.chat-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 85%;
  font-size: 0.88rem;
  line-height: 1.4;
}
.chat-bubble.admin {
  background: var(--bg-surface);
  border: 1px solid var(--border-studio);
  align-self: flex-start;
  color: var(--text-primary);
}
.chat-bubble.user {
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  color: #FFFFFF;
  align-self: flex-end;
}

/* Mac & Desktop PC Responsiveness */
@media (min-width: 1100px) {
  .app-shell {
    max-width: 1140px; /* Full Studio DAW width */
    border-left: 1px solid var(--border-studio);
    border-right: 1px solid var(--border-studio);
  }
}

/* 1. Top Brand Header (Light Ivory & Gold with Nithyam Logo) */
.top-header-bar {
  background: var(--bg-surface);
  border-bottom: 1.5px solid var(--border-studio);
  padding: max(14px, env(safe-area-inset-top, 14px)) 18px 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top-header-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #F472B6 0%, #F59E0B 33%, #38BDF8 66%, #4ADE80 100%);
  z-index: 101;
}

.brand-standalone-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
  display: block;
}

/* Split Bottom Console Docked at Bottom (50% Left Controls / 50% Right YouTube Video) */
.split-bottom-console {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 540px;
  background: var(--bg-surface);
  border-top: 1.5px solid var(--border-studio);
  display: flex;
  height: 180px;
  z-index: 90;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .split-bottom-console {
    max-width: 860px;
    height: 200px;
  }
}

@media (min-width: 1100px) {
  .split-bottom-console {
    max-width: 1140px;
    height: 220px;
  }
}

.console-controls-half {
  width: 50%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--border-studio);
}

.console-video-half {
  width: 50%;
  height: 100%;
  background: #000000;
  position: relative;
  overflow: hidden;
}

#yt-player-container,
#yt-player-container iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-gold-logo {
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.brand-gold-logo svg {
  width: 22px;
  height: 22px;
  fill: var(--gold-primary);
}

.brand-gold-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

.brand-title-box {
  display: flex;
  flex-direction: column;
}

.brand-main-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-main-title span {
  color: var(--gold-primary);
}

.brand-sub-title {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-studio);
  color: var(--text-secondary);
  height: 36px;
  min-width: 36px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0 10px;
  font-family: inherit;
}

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

.header-btn:hover,
.header-btn:active {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: #FEF3C7;
}

.header-pro-btn {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  border: 1.5px solid #F59E0B;
  color: #0A0C10 !important;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 0 12px;
  gap: 5px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
  white-space: nowrap;
}

.header-pro-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
}

.header-pro-btn .pro-crown {
  font-size: 13px;
  line-height: 1;
}

.header-pro-btn .pro-text {
  font-weight: 900;
  color: #0A0C10;
}

.header-app-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-studio);
  color: var(--text-primary) !important;
  font-weight: 800;
  font-size: 11px;
  padding: 0 10px;
  gap: 5px;
  white-space: nowrap;
}

.header-app-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary) !important;
}

.header-back-btn {
  font-size: 22px;
  font-weight: 900;
  color: var(--gold-primary);
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--gold-primary);
  width: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 50%;
}

.header-theme-btn {
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-studio);
  width: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 50%;
  color: var(--gold-primary);
}

.header-theme-btn:hover,
.header-theme-btn:active {
  border-color: var(--gold-primary);
  background: rgba(245, 158, 11, 0.15);
  transform: rotate(20deg);
}

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

.theme-svg-icon {
  stroke: var(--gold-primary);
  transition: transform 0.3s ease;
}

/* Dark mode hover override */
html[data-theme="dark"] .header-btn:hover,
html[data-theme="dark"] .header-btn:active {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-vibrant);
}

html[data-theme="dark"] .header-app-btn {
  color: #F8FAFC !important;
}

.header-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* 2. Omni-Search Engine Bar (International English / Chords) */
.search-bar-strip {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-studio);
  padding: 10px 18px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-studio);
  border-radius: 14px;
  padding: 8px 14px;
  gap: 10px;
  transition: all 0.2s;
}

.search-input-wrapper:focus-within {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-glow);
  background: #FFFFFF;
}

.search-input-wrapper svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold-primary);
  flex-shrink: 0;
}

.search-live-input {
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  width: 100%;
  outline: none;
  font-family: inherit;
}

.search-live-input::placeholder {
  color: var(--text-muted);
}

.btn-search-voice {
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-studio);
  font-size: 16px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-search-voice:hover {
  border-color: var(--gold-primary);
  transform: scale(1.08);
}

.btn-search-voice.listening {
  background: #FEE2E2;
  border-color: #EF4444;
  animation: pulse-voice 1.2s infinite;
}

@keyframes pulse-voice {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.btn-search-trigger {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFFFFF;
  border: none;
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Current Song Sub-Banner */
.song-now-playing-banner {
  background: #F1F3F6;
  padding: 8px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-studio);
}

.song-now-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}

.song-now-artist {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.song-badge-pill {
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: var(--gold-primary);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* 3. Expanded Instrument Selector Strip (11 Instruments + Dual Deck) */
.instrument-selector-strip {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-studio);
  padding: 8px 14px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.instrument-selector-strip::-webkit-scrollbar {
  display: none;
}

.inst-tab-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-studio);
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
}

.inst-tab-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.inst-tab-btn.active {
  background: #FEF3C7;
  color: #B45309;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.2);
}

html[data-theme="dark"] .inst-tab-btn.active {
  background: rgba(245, 158, 11, 0.22);
  color: #FBBF24;
  border-color: #F59E0B;
}

/* Special Dual Deck (2-in-1) Tab Button */
.inst-tab-btn.inst-tab-dual {
  border: 1.5px solid #F59E0B;
  color: #D97706;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.05));
  font-weight: 900;
}

html[data-theme="dark"] .inst-tab-btn.inst-tab-dual {
  color: #FBBF24;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.1));
}

.inst-tab-btn.inst-tab-dual.active {
  background: linear-gradient(135deg, #F59E0B, #D97706) !important;
  color: #0A0C10 !important;
  border-color: #F59E0B !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45) !important;
}

/* Dual Deck Customizer Row (Active in Dual Mode) */
.dual-deck-selector-row {
  background: var(--bg-surface-elevated);
  border-bottom: 1.5px solid var(--border-studio);
  padding: 8px 14px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  transition: all 0.2s ease;
}

.dual-deck-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-studio);
  border-radius: 10px;
  padding: 4px 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.deck-1-chip {
  border-color: rgba(245, 158, 11, 0.45);
}

.deck-2-chip {
  border-color: rgba(56, 189, 248, 0.45);
}

.dual-deck-tag {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.deck-1-chip .dual-deck-tag {
  color: #F59E0B;
}

.deck-2-chip .dual-deck-tag {
  color: #0284C7;
}

html[data-theme="dark"] .deck-2-chip .dual-deck-tag {
  color: #38BDF8;
}

.dual-deck-select {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-studio);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  outline: none;
  font-family: inherit;
  cursor: pointer;
}

.dual-deck-divider {
  font-size: 10px;
  font-weight: 900;
  color: var(--gold-primary);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* 4. Horizontal Chord Diagram Cards Carousel */
.chord-carousel-section {
  background: var(--bg-app);
  padding: 16px 14px 10px;
  overflow: hidden;
}

.chord-cards-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 16px 10px 16px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.chord-cards-track::-webkit-scrollbar {
  display: none;
}

.chord-card-module {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 185px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  flex-shrink: 0;
}

.chord-card-module.active {
  border-color: var(--gold-primary);
  box-shadow: 0 0 16px var(--gold-glow);
  transform: translateY(-2px);
}

.chord-card-diagram {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 110px;
}

.chord-card-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}

.chord-arrow-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  padding: 2px 6px;
}

.chord-card-name {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.chord-card-audio-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-studio);
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 800;
  color: var(--gold-primary);
  margin-top: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.chord-card-audio-btn:active {
  background: var(--gold-primary);
  color: #FFFFFF;
}

/* 4.5 Chord Style Selector & Strict 4-Beat Meter Bar */
.style-meter-control-bar {
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-studio);
  border-bottom: 1px solid var(--border-studio);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.style-meter-control-bar::-webkit-scrollbar {
  display: none;
}

.beat-meter-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-studio);
  border-radius: 8px;
  padding: 4px 8px;
  flex-shrink: 0;
}

.meter-time-sig {
  font-size: 11px;
  font-weight: 900;
  color: var(--gold-primary);
  letter-spacing: -0.5px;
}

.meter-lights {
  display: flex;
  gap: 3px;
}

.beat-light {
  width: 18px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  border-radius: 4px;
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-studio);
  transition: all 0.08s ease;
}

.beat-light.active {
  background: #4ADE80 !important;
  color: #0F172A !important;
  border-color: #22C55E !important;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.7);
  transform: scale(1.15);
}

.chord-style-pills {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.style-pill {
  background: var(--bg-surface);
  border: 1.2px solid var(--border-studio);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.style-pill:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.style-pill.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #FFFFFF;
  box-shadow: 0 0 10px var(--gold-glow);
}

.sync-nudge-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-studio);
  border-radius: 8px;
  padding: 3px 6px;
  flex-shrink: 0;
}

.nudge-label {
  font-size: 9px;
  font-weight: 900;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.nudge-btn {
  background: transparent;
  border: none;
  color: var(--gold-primary);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
}

.nudge-btn:hover {
  background: var(--bg-surface-elevated);
}

/* 5. The Signature Beat Measure Grid Timeline (Bar lines '|' + 4-beat boxes) */
.measure-grid-section {
  background: var(--bg-surface);
  padding: 8px 12px 16px;
  border-bottom: 1.5px solid var(--border-studio);
}

.measure-grid-track {
  display: flex;
  align-items: flex-end;
  gap: 0;
  overflow-x: auto;
  padding: 8px 4px 14px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.measure-grid-track::-webkit-scrollbar {
  height: 4px;
}

.measure-grid-track::-webkit-scrollbar-thumb {
  background: var(--border-studio);
  border-radius: 4px;
}

/* Measure Bar (Strict 4/4 Container with Multi-Chord Support) */
.measure-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  border-left: 2.5px solid var(--gold-primary); /* Measure divider line '|' in Gold */
  padding-left: 6px;
  padding-right: 6px;
  flex-shrink: 0;
}

.measure-bar:last-child {
  border-right: 2.5px solid var(--gold-primary);
}

.measure-bar-top {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
}

.measure-bar-idx {
  font-size: 9px;
  font-weight: 900;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.measure-chips-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
}

.beat-chord-chip {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-studio);
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
  transition: all 0.12s ease;
}

.beat-chord-chip.active {
  background: #FEF3C7;
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-glow);
  transform: translateY(-2px);
}

html[data-theme="dark"] .beat-chord-chip.active {
  background: rgba(245, 158, 11, 0.25);
  color: var(--gold-vibrant);
}

.measure-beats-group {
  display: flex;
  gap: 4px;
}

/* Beat Squares (Strict 4 per bar: 1, 2, 3, 4) */
.beat-box {
  width: 26px;
  height: 32px;
  border: 1.5px solid var(--border-studio);
  background: var(--bg-surface-elevated);
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
}

.beat-num-sub {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
}

.beat-box.active {
  background: var(--gold-primary) !important;
  border-color: var(--gold-vibrant) !important;
  box-shadow: 0 0 12px var(--gold-glow);
  transform: scale(1.08);
}

.beat-box.active .beat-num-sub {
  color: #FFFFFF !important;
  font-weight: 900;
}

/* 4.2 Real-Time Song Lyrics & Line-by-Line Chord Syncer Bar */
.lyrics-line-syncer-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-studio);
  border-bottom: 1px solid var(--border-studio);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lyrics-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lyrics-section-badge {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #B45309;
  border: 1px solid var(--gold-primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

html[data-theme="dark"] .lyrics-section-badge {
  background: rgba(245, 158, 11, 0.2);
  color: var(--gold-vibrant);
  border-color: var(--gold-primary);
}

.lyrics-next-preview {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: italic;
}

.lyrics-content-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lyrics-main-line {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lyrics-chords-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lyric-chord-chip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-studio);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.lyric-chord-chip.active {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #0A0C10 !important;
  border-color: #F59E0B;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
  transform: scale(1.06);
}

/* 6. Split Bottom Console (Docked - Adaptive Day & Night Studio Mode with Safe Area Padding) */
.split-bottom-console {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 540px;
  height: calc(160px + env(safe-area-inset-bottom, 14px));
  padding-bottom: max(10px, env(safe-area-inset-bottom, 14px));
  background: var(--bg-surface);
  border-top: 1.5px solid var(--border-studio);
  display: flex;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
  z-index: 200;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

html[data-theme="dark"] .split-bottom-console {
  background: #0A0D14;
  border-top: 1.5px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.65);
}

@media (min-width: 768px) {
  .split-bottom-console {
    max-width: 860px;
    height: calc(165px + env(safe-area-inset-bottom, 12px));
  }
}

@media (min-width: 1100px) {
  .split-bottom-console {
    max-width: 1080px;
  }
}

/* Left Half: Transport & Musician Tools */
.console-controls-half {
  flex: 0 0 62%;
  width: 62%;
  padding: 8px 10px calc(6px + env(safe-area-inset-bottom, 10px)) 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border-studio);
}

.console-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-console-circle {
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-studio);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-console-circle:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.btn-console-circle:active {
  transform: scale(0.92);
}

.btn-console-circle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

html[data-theme="dark"] .btn-console-circle {
  background: #141722;
  border-color: rgba(245, 158, 11, 0.3);
  color: #F8FAFC;
}

.btn-play-pause-huge {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  border: none;
  width: 40px;
  height: 36px;
  border-radius: 8px;
  color: #0A0C10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.45);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-play-pause-huge:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.6);
}

.btn-play-pause-huge:active {
  transform: scale(0.92);
}

.btn-play-pause-huge svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.console-transpose-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-studio);
  border-radius: 8px;
  padding: 0 6px;
  height: 36px;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
}

html[data-theme="dark"] .console-transpose-pill {
  background: #141722;
  border-color: rgba(245, 158, 11, 0.3);
  color: #F8FAFC;
}

.console-transpose-btn {
  background: transparent;
  border: none;
  color: var(--gold-primary);
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  padding: 1px 3px;
}

.console-transpose-btn:hover {
  color: var(--gold-vibrant);
}

/* 2x2 Musician Tools Grid (Tactile Dark Buttons with Golden Orange Accents) */
.console-grid-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 6px;
  margin-bottom: 2px;
}

.console-tool-btn {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  text-align: left;
}

.console-tool-btn:hover {
  border-color: var(--gold-primary);
  background: #FEF3C7;
  transform: translateY(-1px);
}

.console-tool-btn:active {
  transform: scale(0.95);
}

/* Dark Mode Tool Button Override */
html[data-theme="dark"] .console-tool-btn {
  background: #141722;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .console-tool-btn:hover {
  background: #1C202E;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.console-tool-btn.active {
  border-color: var(--gold-primary) !important;
  background: #FEF3C7 !important;
}

html[data-theme="dark"] .console-tool-btn.active {
  background: rgba(245, 158, 11, 0.22) !important;
  border-color: #F59E0B !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4) !important;
}

.tool-cell-icon-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-primary);
  margin-bottom: 2px;
}

html[data-theme="dark"] .tool-cell-icon-row {
  color: #F59E0B;
}

.tool-cell-icon-row svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  flex-shrink: 0;
}

.tool-label-primary {
  font-size: 12px;
  font-weight: 900;
  color: #0F172A; /* High-contrast in day mode */
  letter-spacing: -0.2px;
}

html[data-theme="dark"] .tool-label-primary {
  color: #F8FAFC !important; /* High-contrast bright in dark mode */
}

.tool-label-sub {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #D97706; /* Golden orange accent */
}

html[data-theme="dark"] .tool-label-sub {
  color: #F59E0B; /* Vibrant golden orange */
}

/* Right Half: Embedded Mini YouTube Player */
.console-video-half {
  flex: 0 0 38%;
  width: 38%;
  background: #000000;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.console-video-half #yt-player-container,
.console-video-half iframe,
.console-video-half > div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* 7. Live Omni-Search Modal */
.search-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 500;
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding-top: 50px;
  backdrop-filter: blur(8px);
}

.search-modal-card {
  width: 92%;
  max-width: 620px;
  background: #141720;
  border: 1.5px solid var(--border-studio);
  border-radius: 18px;
  padding: 16px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.search-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-studio);
  padding-bottom: 10px;
}

.search-modal-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-modal-title span:last-child {
  color: var(--gold-primary);
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 65vh;
}

.search-result-item {
  flex-shrink: 0;
  min-height: 84px;
  box-sizing: border-box;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-studio);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.search-result-item:hover,
.search-result-item:active {
  border-color: var(--gold-primary);
  background: #222836;
}

.search-result-thumb {
  width: 96px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #000;
}

.search-result-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  flex: 1;
}

.search-result-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main, #111827);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-channel {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.search-result-duration {
  font-size: 10px;
  font-weight: 800;
  color: var(--gold-primary);
  margin-top: 3px;
}

/* ==========================================================================
   Header PRO & APP Action Buttons
   ========================================================================== */
.header-pro-btn {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  padding: 6px 10px !important;
  border-radius: 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  border: 1px solid #FCD34D !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4) !important;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.header-pro-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.7) !important;
}

.header-app-btn {
  background: #1E2433 !important;
  color: #38BDF8 !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  padding: 6px 10px !important;
  border-radius: 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  border: 1px solid #38BDF855 !important;
  cursor: pointer;
  transition: all 0.15s;
}

.header-app-btn:hover {
  background: #252D3D !important;
  border-color: #38BDF8 !important;
}

/* ==========================================================================
   Google Ads / Monetization Banner
   ========================================================================== */
.ad-banner-slot {
  margin: 6px 14px 10px 14px;
  background: linear-gradient(180deg, #161A24 0%, #0F1219 100%);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.ad-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}

.ad-pill {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.ad-remove-link {
  color: #94A3B8;
  font-size: 10px;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s;
}

.ad-remove-link:hover {
  color: #F59E0B;
}

.ad-network-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1A1E29;
  border: 1px solid #283042;
  border-radius: 8px;
  padding: 8px 10px;
}

.ad-network-badge {
  background: #283042;
  color: #F59E0B;
  font-weight: 900;
  font-size: 10px;
  padding: 4px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.ad-network-info {
  flex: 1;
  overflow: hidden;
}

.ad-network-title {
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-network-sub {
  font-size: 9.5px;
  color: #818C9C;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-ad-upgrade {
  background: #F59E0B;
  color: #000000;
  font-weight: 800;
  font-size: 10px;
  padding: 5px 9px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.btn-ad-upgrade:hover {
  background: #FBBF24;
  transform: scale(1.03);
}

/* ==========================================================================
   PRO Subscription & Upgrade Modal (Luxury Black & Gold)
   ========================================================================== */
.pro-modal-overlay,
.app-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pro-modal-card,
.app-modal-card {
  background: #FFFFFF;
  border: 1.5px solid var(--gold-primary);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  padding: 18px;
  gap: 16px;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-primary);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.pro-modal-header,
.app-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-studio);
  padding-bottom: 12px;
}

.pro-modal-title,
.app-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pro-header-crown,
.android-icon-gold {
  font-size: 32px;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

.pro-header-text h2,
.app-modal-title h2 {
  font-size: 16px;
  font-weight: 900;
  color: var(--gold-primary);
  letter-spacing: 0.5px;
}

.pro-header-text p,
.app-modal-title p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* VIP Plans Grid */
.pro-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pro-plan-card {
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-studio);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pro-plan-card:hover {
  border-color: var(--gold-primary);
  background: #FEF3C7;
}

.pro-plan-card.active {
  border-color: var(--gold-primary);
  background: #FFFBEB;
  box-shadow: 0 0 14px rgba(217, 119, 6, 0.25);
}

.plan-badge {
  position: absolute;
  top: -9px;
  background: #374151;
  color: #E2E8F0;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
}

.plan-badge.hot {
  background: #DC2626;
  color: #FFFFFF;
  font-weight: 900;
}

.plan-name {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 6px;
}

.plan-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--gold-primary);
  margin: 4px 0 2px 0;
}

.plan-price span {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-detail {
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Features Highlights */
.pro-features-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-studio);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
}

.feat-check {
  color: #10B981;
  font-weight: 900;
  font-size: 13px;
}

/* Payment Tabs */
.payment-tabs-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-studio);
  padding-bottom: 8px;
}

.pay-tab {
  flex: 1;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-studio);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 11px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.pay-tab.active {
  background: #FEF3C7;
  border-color: var(--gold-primary);
  color: #B45309;
}

/* UPI Payment Styles */
.upi-payment-container {
  display: flex;
  gap: 14px;
  align-items: center;
}

@media (max-width: 480px) {
  .upi-payment-container {
    flex-direction: column;
  }
}

.upi-qr-box {
  background: #FFFFFF;
  padding: 8px;
  border: 1px solid var(--border-studio);
  border-radius: 12px;
  text-align: center;
  flex-shrink: 0;
}

.upi-qr-box img {
  width: 130px;
  height: 130px;
  display: block;
}

.upi-qr-caption {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 4px;
}

.upi-actions-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.upi-quick-apps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-upi-app {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-studio);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-upi-app:hover {
  border-color: var(--gold-primary);
  background: #FEF3C7;
}

.btn-upi-app.gpay { border-left: 4px solid #4285F4; }
.btn-upi-app.phonepe { border-left: 4px solid #5F259F; }
.btn-upi-app.paytm { border-left: 4px solid #00BAF2; }

.upi-app-icon {
  font-weight: 900;
  font-size: 13px;
  color: var(--gold-primary);
}

.upi-id-row {
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-studio);
  border-radius: 6px;
  padding: 4px 8px;
  gap: 6px;
  font-size: 10px;
}

.upi-id-label { color: var(--text-muted); }
.upi-id-val { color: var(--gold-primary); font-weight: 800; flex: 1; }
.btn-copy-upi {
  background: var(--gold-primary);
  color: #FFFFFF;
  border: none;
  font-weight: 800;
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.activation-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.utr-input,
.card-input {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-studio);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 11px;
  padding: 8px 10px;
  outline: none;
}

.utr-input:focus,
.card-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-glow);
  background: #FFFFFF;
}

.btn-activate-vip {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #000000;
  font-weight: 900;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: all 0.15s;
}

.btn-activate-vip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

/* Card Payment Styles */
.card-pay-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 9.5px;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.5px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ==========================================================================
   Android APK & Google Play Download Modal
   ========================================================================== */
.apk-download-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.apk-badge-version {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10B98166;
  color: #10B981;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.btn-direct-apk-download {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 18px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  transition: all 0.2s;
  text-align: left;
}

.btn-direct-apk-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.6);
}

.btn-direct-apk-download .btn-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  display: block;
}

.btn-direct-apk-download .btn-sub {
  font-size: 10px;
  opacity: 0.85;
  display: block;
}

.or-separator {
  position: relative;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid #283042;
  line-height: 0.1em;
  margin: 6px 0;
}

.or-separator span {
  background: #141721;
  padding: 0 10px;
  color: #818C9C;
  font-size: 10px;
  font-weight: 800;
}

.btn-google-play-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #000000;
  border: 1.5px solid #4B5563;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 16px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.15s;
  text-align: left;
}

.btn-google-play-card:hover {
  border-color: #38BDF8;
  background: #0D1117;
}

.play-small {
  font-size: 9px;
  color: #9CA3AF;
  letter-spacing: 0.5px;
  display: block;
}

.play-big {
  font-size: 14px;
  font-weight: 800;
  display: block;
}

.apk-features-summary {
  background: #12151E;
  border: 1px solid #222836;
  border-radius: 10px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.apk-feature-bullet {
  font-size: 11px;
  color: #94A3B8;
}

.apk-feature-bullet strong {
  color: #F59E0B;
}

/* ==========================================================================
   Song AI Identification Modal & Tags (Chords, Notes, Music)
   ========================================================================== */
.identify-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.identify-modal-card {
  background: linear-gradient(180deg, #171B24 0%, #0C0E14 100%);
  border: 2px solid #F59E0B;
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 0 45px rgba(245, 158, 11, 0.45);
  display: flex;
  flex-direction: column;
  padding: 18px;
  gap: 16px;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.identify-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #283042;
  padding-bottom: 12px;
}

.identify-modal-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.identify-ai-badge {
  display: inline-block;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #000000;
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.6px;
  width: fit-content;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.identify-modal-title h2 {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.3px;
}

.identify-modal-title p {
  font-size: 11px;
  color: #94A3B8;
}

.identify-song-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #12151E;
  border: 1px solid #283042;
  border-radius: 12px;
  padding: 10px;
}

.identify-thumb-wrap {
  position: relative;
  width: 110px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}

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

.identify-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(245, 158, 11, 0.9);
  color: #000;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.identify-song-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
  flex: 1;
}

.identify-song-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.identify-song-artist {
  font-size: 11px;
  color: #94A3B8;
}

.identify-song-meta-pill {
  font-size: 10.5px;
  font-weight: 800;
  color: #F59E0B;
  margin-top: 2px;
}

/* Identification Tag Groups */
.identify-tags-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.identify-tag-group {
  background: #11141C;
  border: 1px solid #202634;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tag-group-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #CBD5E1;
  letter-spacing: 0.3px;
}

.tag-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-chord {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.15) 100%);
  border: 1px solid #F59E0B;
  color: #FBBF24;
  font-weight: 900;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.chip-note {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38BDF8;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
}

.chip-note-tag {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #C084FC;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
}

.chip-music {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.chip-inst {
  background: #1A1E29;
  border: 1px solid #283042;
  color: #CBD5E1;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
}

/* Action Buttons Bar */
.identify-actions-bar {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-identify-load {
  flex: 2;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #000000;
  border: none;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.5);
  transition: all 0.15s;
}

.btn-identify-load:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.7);
}

.btn-identify-cancel {
  flex: 1;
  background: #1E2433;
  color: #94A3B8;
  border: 1px solid #283042;
  font-weight: 700;
  font-size: 11px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-identify-cancel:hover {
  color: #FFFFFF;
  border-color: #475569;
}

/* Search Result Tags Styling */
.result-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.badge-chord {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #FBBF24;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.badge-notes {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38BDF8;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.badge-music {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34D399;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.badge-bpm {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #C084FC;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}


