/* Phono Sapiens Spotify Design System Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
  --bg-base: #121212;
  --bg-surface: #181818;
  --bg-mid: #1f1f1f;
  --bg-card: #252525;
  --bg-card-hover: #2d2d2d;
  
  --brand-green: #1ed760;
  --brand-green-hover: #1db954;
  
  --text-base: #ffffff;
  --text-muted: #b3b3b3;
  --text-bright: #fdfdfd;
  
  --color-red: #f3727f;
  --color-orange: #ffa42b;
  --color-blue: #539df5;
  
  --border-gray: #4d4d4d;
  --border-light: #7c7c7c;
  
  --shadow-heavy: rgba(0, 0, 0, 0.6) 0px 8px 24px;
  --shadow-medium: rgba(0, 0, 0, 0.4) 0px 8px 8px;
  
  --font-ui: 'Outfit', 'Noto Sans KR', sans-serif;
  --transition-normal: 0.25s ease;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-base);
  color: var(--text-base);
  font-family: var(--font-ui);
  font-size: 14px;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========================================== */
/* Utility Elements & SVG Styling             */
/* ========================================== */
.hidden {
  display: none !important;
}

/* SVG Icon Base */
.svg-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.menu-svg-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-right: 12px;
  color: var(--text-muted);
  transition: color var(--transition-normal);
}

.menu-item.active .menu-svg-icon {
  color: var(--brand-green);
}

.m-icon-svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-svg {
  width: 24px;
  height: 24px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feat-svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Pill Buttons */
.pill-btn {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 10px 24px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s, background-color var(--transition-normal);
  outline: none;
}

.pill-btn:active {
  transform: scale(0.96);
}

.green-btn {
  background-color: var(--brand-green);
  color: #000000;
}

.green-btn:hover {
  background-color: #1fdf64;
  transform: scale(1.04);
}

.dark-btn {
  background-color: var(--bg-mid);
  color: var(--text-base);
  border: 1px solid var(--border-light);
}

.dark-btn:hover {
  border-color: #ffffff;
  background-color: #272727;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 10.5px;
  letter-spacing: 1px;
}

.full-width {
  width: 100%;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: #555555;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #888888;
}

/* ========================================== */
/* 1. B2C Public Landing Page                 */
/* ========================================== */
.b2c-portal {
  height: 100vh;
  overflow-y: auto;
  padding-bottom: 90px; /* Space for bottom player */
  box-sizing: border-box;
}

.b2c-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  padding: 0 40px;
  background-color: var(--bg-base);
  border-bottom: 1px solid rgba(255,255,255,0.02);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.logo-text span {
  font-size: 10px;
  color: var(--brand-green);
  font-weight: 700;
  letter-spacing: 2.5px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  transition: color var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

/* Hero Section (2-Column Grid on Desktop) */
.hero-section {
  padding: 64px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  background-color: var(--bg-mid);
  color: var(--brand-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 24px;
  border: 1px solid rgba(30, 215, 96, 0.2);
}

.hero-content h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 20px 0;
  color: #ffffff;
}

.hero-content p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 32px 0;
}

.b2c-search-box {
  display: flex;
  background-color: var(--bg-surface);
  border-radius: 9999px;
  padding: 6px 6px 6px 16px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: var(--shadow-heavy);
}

.search-icon-inside {
  color: var(--text-muted);
  margin-right: 10px;
}

.b2c-search-box input {
  flex: 1;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 13.5px;
  outline: none;
}

.b2c-search-box input::placeholder {
  color: #555555;
}

.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-banner-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-heavy);
  border: 1px solid rgba(255,255,255,0.05);
  object-fit: cover;
  aspect-ratio: 1; /* Square cover style */
}

/* Features Section */
.features-section {
  padding: 64px 40px;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px 0;
}

.section-header p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background-color: var(--bg-surface);
  border-radius: 8px;
  padding: 32px 24px;
  transition: background-color var(--transition-normal);
}

.feature-card:hover {
  background-color: var(--bg-mid);
}

.feat-icon-container {
  width: 52px;
  height: 52px;
  background-color: var(--bg-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--brand-green);
  box-shadow: var(--shadow-medium);
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px 0;
}

.feature-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Marketing Teaser box */
.teaser-action-section {
  padding: 64px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.teaser-card-box {
  background: radial-gradient(circle at top right, rgba(30, 215, 96, 0.1), transparent), var(--bg-surface);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: var(--shadow-heavy);
}

.teaser-card-box h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px 0;
}

.teaser-card-box p {
  max-width: 650px;
  margin: 0 auto;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========================================== */
/* 2. Sub-Pages Style Layout                  */
/* ========================================== */
.sub-hero-section {
  text-align: center;
  padding: 64px 24px 32px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.sub-hero-section h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 16px 0;
}

.lead-text {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Technology / Assurance details */
.info-details-section {
  padding: 48px 40px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.info-grid-row {
  display: flex;
  align-items: center;
  gap: 48px;
}

.info-grid-row.reverse {
  flex-direction: row-reverse;
}

.info-text-col {
  flex: 1.2;
}

.step-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-green);
  background-color: rgba(30, 215, 96, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}

.info-text-col h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px 0;
}

.info-text-col p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.caution-badge {
  background-color: rgba(243, 114, 127, 0.08);
  border: 1px dashed var(--color-red);
  color: var(--color-red);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
}

.info-card-col {
  flex: 1;
}

.visual-accent-card {
  background-color: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.03);
  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-medium);
}

.visual-accent-card h3 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px 0;
}

.risk-bar-container {
  height: 6px;
  background-color: #333;
  border-radius: 10px;
  overflow: hidden;
}

.risk-bar-fill {
  height: 100%;
}

.doc-preview-box {
  background-color: rgba(0,0,0,0.3);
  border: 1px dashed var(--border-light);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
}

/* Guide workflow page */
.guide-steps-section {
  padding: 48px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.guide-card {
  background-color: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 32px 24px;
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-direction: column;
}

.guide-badge {
  background-color: var(--bg-mid);
  color: var(--brand-green);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 20px;
  border: 1px solid rgba(30, 215, 96, 0.1);
  align-self: flex-start;
  letter-spacing: 0.5px;
}

.guide-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px 0;
}

.guide-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.tip-box {
  margin-top: 16px;
  background-color: rgba(255, 255, 255, 0.01);
  border-left: 3px solid var(--brand-green);
  padding: 10px 12px;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
  border-radius: 0 4px 4px 0;
}

.visual-callout-section {
  padding: 64px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.callout-container {
  background-color: var(--bg-surface);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.03);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-heavy);
}

.callout-text h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px 0;
}

.callout-text p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.callout-visual {
  display: flex;
  justify-content: center;
}

.mock-premiere-panel {
  background-color: #2b2b2b;
  border: 1px solid #404040;
  border-radius: 6px;
  width: 280px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
}

.panel-header {
  background-color: #1e1e1e;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid #333;
}

/* ========================================== */
/* 3. B2B ROI Calculator & Pricing            */
/* ========================================== */
.calculator-section {
  padding: 32px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.calculator-card {
  background-color: var(--bg-surface);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.03);
  padding: 32px;
  box-shadow: var(--shadow-heavy);
}

.calculator-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px 0;
}

.calc-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 13px;
}

.slider-labels label {
  color: var(--text-muted);
}

.slider-val {
  color: var(--brand-green);
  font-weight: 700;
}

.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  background: #333;
  height: 6px;
  border-radius: 4px;
  outline: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-green);
  cursor: pointer;
  transition: transform 0.1s;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.calc-outputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.output-box {
  background-color: var(--bg-mid);
  border: 1px solid rgba(255,255,255,0.02);
  border-radius: 6px;
  padding: 20px;
  box-shadow: var(--shadow-medium);
}

.glow-box {
  border-color: rgba(30, 215, 96, 0.15);
  box-shadow: 0 0 15px rgba(30, 215, 96, 0.05);
}

.out-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  display: block;
}

.out-value {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 6px 0;
}

.out-value-green {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-green);
  margin: 6px 0;
  text-shadow: 0 0 10px rgba(30, 215, 96, 0.15);
}

.output-box p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Pricing Grid */
.pricing-table-section {
  padding: 64px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.price-card {
  background-color: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 32px 24px;
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s;
}

.price-card:hover {
  transform: translateY(-2px);
}

.price-card.popular {
  border-color: var(--brand-green);
  box-shadow: 0 0 20px rgba(30, 215, 96, 0.1);
}

.pop-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--brand-green);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.price-tier {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-green);
  margin-bottom: 12px;
}

.price-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.4;
  height: 36px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  font-size: 12.5px;
  line-height: 2;
  color: var(--text-muted);
  flex-grow: 1;
}

.price-features li {
  margin-bottom: 4px;
}

/* FAQ Section */
.faq-section {
  padding: 64px 40px;
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

.faq-item h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px 0;
}

.faq-item p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ========================================== */
/* 4. Login Modal Overlay                     */
/* ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  backdrop-filter: blur(10px);
}

.modal-card {
  background-color: var(--bg-surface);
  border-radius: 8px;
  padding: 40px;
  width: 400px;
  position: relative;
  box-shadow: var(--shadow-heavy);
  box-sizing: border-box;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.modal-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto 12px auto;
  display: block;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: #fff;
}

.modal-header p {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-muted);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-field label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.input-field input {
  background-color: var(--bg-mid);
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  color: #fff;
  padding: 10px 14px;
  outline: none;
  font-family: var(--font-ui);
  font-size: 13px;
  transition: border-color var(--transition-normal);
}

.input-field input:focus {
  border-color: var(--brand-green);
}

.test-account-tip {
  margin-top: 10px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-gray);
  padding: 10px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.test-account-tip code {
  color: var(--brand-green);
}

/* ========================================== */
/* 5. B2B Workspace Console (Logged In)       */
/* ========================================== */
.b2b-console {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Sidebar navigation */
.sidebar {
  width: 240px;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.sidebar-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.sidebar-header h2 {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.5px;
}

.sidebar-header span {
  font-size: 9.5px;
  color: var(--brand-green);
  font-weight: 700;
  letter-spacing: 2px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.menu-item {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  letter-spacing: 1.2px;
  transition: color var(--transition-normal), background-color var(--transition-normal);
}

.menu-item:hover {
  color: #ffffff;
}

.menu-item.active {
  background-color: rgba(255,255,255,0.04);
  color: #ffffff;
}

.sidebar-footer {
  border-top: 1px solid var(--border-gray);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.avatar {
  width: 32px;
  height: 32px;
  background-color: #333333;
  color: var(--text-base);
  border-radius: 50%;
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logout-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  transition: color var(--transition-normal);
}

.logout-link:hover {
  color: var(--color-red);
}

/* Console Main Content */
.console-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.console-top-bar {
  height: 64px;
  background-color: #121212;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.console-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.console-body {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  box-sizing: border-box;
  padding-bottom: 110px; /* Space for sticky player */
}

/* Tab sections */
.tab-section {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.tab-section.active {
  display: block;
}

/* ========================================== */
/* 4. Dashboard (Logged In View)              */
/* ========================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background-color: var(--bg-surface);
  border-radius: 6px;
  padding: 20px;
  box-sizing: border-box;
  box-shadow: var(--shadow-medium);
  display: flex;
  gap: 16px;
}

.card-icon-container {
  background-color: rgba(255, 255, 255, 0.02);
  width: 44px;
  height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-content {
  flex: 1;
}

.card-content h3 {
  margin: 0 0 6px 0;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.progress-bar-container {
  height: 4px;
  background-color: #333333;
  border-radius: 20px;
  margin: 10px 0;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--brand-green);
  transition: width 0.6s ease-out;
}

.stat-card p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.dashboard-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.details-card {
  background-color: var(--bg-surface);
  border-radius: 6px;
  padding: 24px;
  box-sizing: border-box;
  box-shadow: var(--shadow-medium);
}

.details-card h3 {
  margin: 0 0 16px 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.data-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-gray);
}

.data-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.02);
  color: var(--text-base);
}

.data-table tr:hover td {
  background-color: rgba(255,255,255,0.01);
}

/* ========================================== */
/* 5. AI Search Tab & Custom Grid             */
/* ========================================== */
.search-hero {
  background-color: var(--bg-surface);
  border-radius: 8px;
  padding: 24px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-medium);
}

.search-hero h2 {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 700;
}

.search-hero p {
  margin: 0 0 20px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.search-box {
  display: flex;
  background-color: var(--bg-mid);
  border-radius: 9999px;
  padding: 4px 4px 4px 16px;
  align-items: center;
  border: 1px solid var(--border-gray);
  box-shadow: var(--shadow-medium);
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  outline: none;
  font-family: var(--font-ui);
  font-size: 13.5px;
}

.search-box input::placeholder {
  color: #666;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.results-header h3 {
  margin: 0;
  font-size: 13px;
}

.search-filters {
  display: flex;
  gap: 8px;
}

.filter-pill {
  background-color: var(--bg-mid);
  color: var(--text-muted);
  border: 1px solid var(--border-gray);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.filter-pill:hover, .filter-pill.active {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.tracks-list-container {
  background-color: var(--bg-surface);
  border-radius: 6px;
  overflow-x: auto;
  box-shadow: var(--shadow-medium);
}

.tracks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.tracks-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-gray);
}

.tracks-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.tracks-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

.tag {
  background-color: var(--bg-mid);
  border: 1px solid var(--border-gray);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 10.5px;
  color: var(--text-muted);
}

.safe-badge {
  font-size: 9px;
  background-color: rgba(30, 215, 96, 0.1);
  border: 1px solid var(--brand-green);
  color: var(--brand-green);
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 700;
}

.score-badge {
  color: var(--brand-green);
  font-weight: 700;
}

.play-sm-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  outline: none;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-sm-btn:hover {
  color: var(--brand-green);
  transform: scale(1.1);
}

.play-sm-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ========================================== */
/* 6. Q-Sheet Builder & Inputs                */
/* ========================================== */
.parser-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
}

.parser-control-card, .parser-result-card {
  background-color: var(--bg-surface);
  border-radius: 6px;
  padding: 24px;
  box-sizing: border-box;
  box-shadow: var(--shadow-medium);
}

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

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.input-group input, .input-group select {
  background-color: var(--bg-mid);
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  color: #fff;
  padding: 8px 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  outline: none;
}

.input-group input:focus, .input-group select:focus {
  border-color: var(--brand-green);
}

.timeline-editor-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

#web-edl-input {
  height: 140px;
  background-color: var(--bg-mid);
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  color: #fff;
  padding: 10px;
  font-family: monospace;
  font-size: 10.5px;
  resize: none;
  outline: none;
}

#web-edl-input:focus {
  border-color: var(--brand-green);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.status-msg {
  font-size: 11.5px;
  margin-bottom: 10px;
}

.status-msg.working { color: var(--color-blue); }
.status-msg.success { color: var(--brand-green); }
.status-msg.error { color: var(--color-red); }

.result-table-container {
  overflow-y: auto;
  max-height: 400px;
  border: 1px solid var(--border-gray);
  border-radius: 4px;
}

/* ========================================== */
/* 7. Safety Archive                          */
/* ========================================== */
.registry-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.registry-header-row h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.search-box-sm {
  display: flex;
  gap: 6px;
  background-color: var(--bg-mid);
  border-radius: 9999px;
  padding: 3px 3px 3px 12px;
  border: 1px solid var(--border-gray);
  align-items: center;
}

.search-box-sm input {
  background: none;
  border: none;
  color: #fff;
  font-size: 11.5px;
  outline: none;
}

.registry-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.registry-card {
  background-color: var(--bg-surface);
  border-radius: 6px;
  padding: 20px;
  box-sizing: border-box;
  box-shadow: var(--shadow-medium);
}

.registry-card h4 {
  margin: 0 0 10px 0;
  font-size: 13.5px;
  font-weight: 700;
}

.registry-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.02);
  padding-bottom: 6px;
}

.registry-log {
  background-color: rgba(0,0,0,0.25);
  border-radius: 4px;
  padding: 10px;
  font-size: 11px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.log-item {
  margin-bottom: 6px;
  word-break: break-all;
}

.log-item strong {
  color: var(--brand-green);
}

.verif-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.verif-status {
  font-size: 9px;
  font-weight: 700;
  background-color: rgba(30, 215, 96, 0.1);
  color: var(--brand-green);
  border: 1px solid var(--brand-green);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ========================================== */
/* 8. Global Spotify Now Playing Bar         */
/* ========================================== */
.web-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background-color: #181818;
  border-top: 1px solid #282828;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  box-sizing: border-box;
  z-index: 2000;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.4);
}

.web-player-left {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 280px;
}

.web-play-btn {
  background-color: #ffffff;
  color: #000;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s;
  outline: none;
}

.web-play-btn:hover {
  transform: scale(1.06);
}

.web-play-btn svg {
  width: 14px;
  height: 14px;
  fill: #000000;
}

.web-player-info h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

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

.web-player-mid {
  flex: 1;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.web-player-waveform {
  flex: 1;
  height: 24px;
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  padding: 2px;
}

.web-waveform-bar {
  flex: 1;
  background-color: #404040;
  height: 100%;
  border-radius: 1px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.web-waveform-bar.passed {
  background-color: var(--brand-green);
}

.web-player-time {
  font-size: 11px;
  color: var(--text-muted);
  width: 80px;
  text-align: right;
}

.web-player-right {
  width: 100px;
  display: flex;
  justify-content: flex-end;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.close-btn:hover {
  color: #ffffff;
}

/* ========================================== */
/* B2C Footer Layout                          */
/* ========================================== */
.b2c-footer {
  background-color: #000000;
  border-top: 1px solid rgba(255,255,255,0.02);
  padding: 48px 40px 24px 40px;
  margin-top: 64px;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.footer-left {
  max-width: 320px;
}

.footer-left p {
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 12px;
  line-height: 1.5;
}

.footer-right {
  display: flex;
  gap: 64px;
}

.footer-links-col h4 {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  letter-spacing: 0.5px;
}

.footer-links-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12.5px;
  margin-bottom: 10px;
  transition: color var(--transition-normal);
}

.footer-links-col a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.02);
  margin-top: 32px;
  padding-top: 16px;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ========================================== */
/* Mobile/Tablet Adaptive Responsiveness       */
/* ========================================== */
.mobile-nav {
  display: none; /* Desktop hidden */
}

@media (max-width: 896px) {
  /* Sidebar collapsing strategy */
  .sidebar {
    display: none !important; /* Hide sidebar */
  }

  /* Console Main body offsets */
  .console-main {
    height: calc(100vh - 56px); /* Space for mobile nav */
  }

  .console-body {
    padding: 16px;
    padding-bottom: 160px; /* Space for both mobile nav & player */
  }

  /* Mobile Bottom Navigation Bar */
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: #0f0f0f;
    border-top: 1px solid #202020;
    justify-content: space-around;
    align-items: center;
    z-index: 2100;
  }

  .mobile-menu-item {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 8.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-ui);
  }

  .mobile-menu-item .m-icon-svg {
    width: 18px;
    height: 18px;
  }

  .mobile-menu-item.active {
    color: var(--brand-green);
  }

  /* Sticky player adapts to bottom nav */
  .web-player {
    bottom: 56px; /* Push above mobile bottom nav */
    height: 72px;
    padding: 0 12px;
  }

  .web-player-left {
    width: 200px;
    gap: 10px;
  }

  .web-player-mid {
    max-width: none;
  }

  .web-player-time {
    display: none; /* Hide time on small screens */
  }

  .web-player-right {
    width: 30px;
  }

  /* Public landing padding */
  .b2c-nav {
    padding: 0 20px;
  }
  .nav-links {
    display: none; /* Hide navigation links on mobile */
  }
  
  /* Hero Banner stacks */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content h1 {
    font-size: 28px;
  }
  
  .hero-content p {
    font-size: 13.5px;
  }

  .b2c-search-box {
    padding: 4px 4px 4px 14px;
  }
  .b2c-search-box input {
    font-size: 12.5px;
  }
  .b2c-search-box button {
    padding: 8px 16px;
    font-size: 11px;
  }

  .hero-image-container {
    max-width: 400px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: 1fr; /* Stack feature cards */
  }

  /* Grid tables become scrollable */
  .stats-grid {
    grid-template-columns: 1fr 1fr; /* 2x2 on mobile/tablet */
  }

  .dashboard-details {
    grid-template-columns: 1fr; /* Stack charts */
  }

  .parser-layout {
    grid-template-columns: 1fr; /* Stack info input and results table */
  }

  .registry-grid {
    grid-template-columns: 1fr; /* Stack cards */
  }

  .modal-card {
    width: 90%;
    padding: 30px 20px;
  }

  /* Sub-page layouts adapt */
  .sub-hero-section h1 {
    font-size: 24px;
  }

  .info-grid-row, .info-grid-row.reverse {
    flex-direction: column;
    gap: 24px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .callout-container {
    grid-template-columns: 1fr;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-container {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr; /* Stack cards on very small screens */
  }
  
  .web-player-mid {
    display: none; /* Hide waveform completely on small phones to fit text info */
  }
}

/* Base keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
