/**
 * ===================================================================
 * NOE MUSIC â€” Stylesheet & Design System
 * File: css/styles.css (Sistem Desain & Gaya Visual)
 * Deskripsi: Desain Apple Dark Mode Monochrome, grid responsive, dan modal.
 * ===================================================================
 */

/* ===== DESIGN TOKENS (APPLE SYSTEM LIGHT/DARK INTERACTIVE MONOCHROME) ===== */
:root {
  --bg: #000000;
  /* Pitch black background */
  --bg2: #09090b;
  /* Dark charcoal */
  --bg-card: #121214;
  /* iOS dark theme card color */
  --bg-card-h: #1c1c1e;
  /* Hover state card */
  --border: rgba(255, 255, 255, 0.08);
  /* Crisp Apple border */
  --border-h: rgba(255, 255, 255, 0.22);
  /* Active white border */
  --t1: #f5f5f7;
  /* Primary text */
  --t2: #86868b;
  /* Secondary gray text */
  --t3: #48484a;
  /* Tertiary dark gray text */
  --blue: #ffffff;
  /* Monochrome accents (pure white) */
  --blue-d: #e8e8ed;
  /* Off-white */
  --blue-l: #ffffff;
  --green: #30d158;
  /* Apple Green */
  --green-glow: rgba(48, 209, 88, 0.1);
  --red: #ff453a;
  /* Apple Red */
  --red-glow: rgba(255, 69, 58, 0.1);
  --gradient: #ffffff;
  /* Solid white fill */
  --glow: none;
  /* No neon glowing */
  --radius: 12px;
  /* Apple standard card corner */
  --radius-full: 9999px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t1);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #2c2c2e;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a3c;
}

/* ===== BACKGROUND ===== */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
}

.bg-glow {
  display: none;
  /* Removed neon glows for Apple minimalism */
}

/* ===== LANDING WRAPPER ===== */
.landing-view {
  position: relative;
  z-index: 1;
}

/* ===== NAVBAR (Supaste Animated Floating Glass Pill) ===== */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 920px;
  background: rgba(16, 16, 20, 0.68);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 6px 8px 6px 16px;
  box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    top 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  will-change: transform, max-width, top;
}

.navbar.scrolled {
  top: 12px;
  max-width: 820px;
  background: rgba(10, 10, 14, 0.88);
  backdrop-filter: blur(24px) saturate(200%);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.nav-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.2s ease;
}

.nav-logo:hover .logo-img {
  border-color: #ffffff;
  transform: scale(1.1) rotate(6deg);
}

.logo-text {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.2px;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.nav-links a:active {
  transform: translateY(0);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
  padding: 3px 8px;
  border-radius: 9999px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
  font-family: var(--font);
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--t1);
  margin: 4px 0;
  transition: var(--ease);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: rgba(15, 15, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 10px 0;
  color: var(--t2);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--ease);
  font-family: var(--font);
}

.btn-primary:hover {
  background: #f5f5f7;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 24px;
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--ease);
  font-family: var(--font);
}

.btn-outline:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline:active {
  transform: translateY(0);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: var(--t2);
  font-weight: 500;
  font-size: 0.88rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--ease);
  font-family: var(--font);
}

.btn-ghost:hover {
  color: var(--t1);
}

.btn-lg {
  padding: 12px 30px;
  font-size: 0.95rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

button:disabled,
.btn-primary:disabled,
.btn-outline:disabled {
  opacity: 0.35;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--t2) !important;
  border: 1px solid var(--border) !important;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 200px 24px 120px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.75) 65%, #000000 100%),
    url('../assets/hero_bg.png') center/cover no-repeat;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
}

.hero-inner {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.1px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.8px;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.accent-text {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--t2);
  max-width: 620px;
  line-height: 1.65;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== HERO VISUAL ===== */
.hero-visual {
  flex: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mock-card {
  width: 100%;
  max-width: 380px;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-red {
  background: #ff453a;
}

.dot-yellow {
  background: #ff9f0a;
}

.dot-green {
  background: #30d158;
}

.mock-label {
  margin-left: 8px;
  font-size: 0.75rem;
  color: var(--t2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mock-waveform {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
  margin-bottom: 20px;
}

.wbar {
  flex: 1;
  height: var(--h);
  min-height: 6px;
  background: #ffffff;
  border-radius: 1px;
}

.wbar:nth-child(odd) {
  background: #86868b;
}

.wbar:nth-child(3n) {
  background: #48484a;
}

.wbar:nth-child(4n) {
  background: #ffffff;
}

.mock-track {
  margin-bottom: 0;
}

.mock-track-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mock-track-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff;
}

.mock-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--t2);
}

.status-pulse {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
}

.mock-progress-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1px;
  overflow: hidden;
}

.mock-progress-fill {
  height: 100%;
  width: 72%;
  background: #ffffff;
  border-radius: 1px;
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--t1);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 12px;
  color: #fff;
}

.section-desc {
  color: var(--t2);
  font-size: 0.95rem;
  max-width: 440px;
  margin: 0 auto;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--ease);
}

.feature-card:hover {
  background: #1c1c1e;
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.feature-card p {
  color: var(--t2);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.steps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.step-card {
  flex: 1;
  max-width: 300px;
  padding: 36px 28px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--ease);
}

.step-card:hover {
  background: #1c1c1e;
  border-color: rgba(255, 255, 255, 0.15);
}

.step-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.step-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.step-card p {
  color: var(--t2);
  font-size: 0.85rem;
  line-height: 1.6;
}

.step-arrow {
  color: var(--t3);
  flex-shrink: 0;
}

/* Reviews marquee */
.reviews-track {
  display: flex;
  gap: 20px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.reviews-marquee {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  animation: marqueeScroll 35s linear infinite;
}

.reviews-track:hover .reviews-marquee {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.review-card {
  min-width: 300px;
  max-width: 320px;
  padding: 24px;
  background: #121214;
  border: 1px solid var(--border);
  border-radius: 14px;
  flex-shrink: 0;
  transition: var(--ease);
}

.review-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: #1c1c1e;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.review-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2c2c2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  border: 1px solid var(--border);
}

.review-name {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 2px;
  color: #fff;
}

.review-stars {
  display: flex;
  gap: 2px;
  align-items: center;
  font-size: 0.75rem;
  color: #ffb700;
}

.review-text {
  color: var(--t2);
  font-size: 0.82rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
  margin-top: 4px;
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  padding: 40px 28px;
  text-align: center;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--ease);
}

.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: #1c1c1e;
}

.pricing-card.featured {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.pricing-card.featured .plan-label,
.pricing-card.featured .plan-period,
.pricing-card.featured .plan-list li,
.pricing-card.featured .plan-list li strong {
  color: #000000;
}

.pricing-card.featured .plan-list li small {
  color: #48484a;
}

.pricing-card.featured .plan-list li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.save-tag {
  display: inline-block;
  padding: 2px 10px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid var(--border);
}

.plan-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--t2);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-price {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.plan-period {
  font-size: 0.8rem;
  color: var(--t3);
  margin-bottom: 24px;
}

.plan-list {
  margin-bottom: 28px;
  text-align: left;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.82rem;
  color: var(--t2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.plan-list li div {
  display: flex;
  flex-direction: column;
}

.plan-list li strong {
  font-size: 0.82rem;
  color: #fff;
  font-weight: 600;
}

.plan-list li small {
  font-size: 0.72rem;
  color: var(--t3);
  margin-top: 1px;
}

.check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1px solid var(--border);
}

.check::after {
  content: '\2713';
  font-size: 0.6rem;
  color: #ffffff;
  font-weight: 800;
}

.pricing-card.featured .check {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}

.pricing-card.featured .check::after {
  color: #000000;
}

.pricing-card.featured .btn-primary {
  background: #000000;
  color: #ffffff;
}

.pricing-card.featured .btn-primary:hover {
  background: #1c1c1e;
}

/* ===== SECURITY ===== */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.security-card {
  padding: 32px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--ease);
}

.security-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: #1c1c1e;
}

.security-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin: 0 auto 20px;
}

.security-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.security-card p {
  color: var(--t2);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-container {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--ease);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  outline: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 0 24px;
}

.faq-answer-inner {
  padding-bottom: 18px;
  color: var(--t2);
  font-size: 0.85rem;
  line-height: 1.6;
}

.faq-icon {
  color: var(--t2);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.expanded .faq-icon {
  transform: rotate(180deg);
  color: #fff;
}

.faq-item.expanded {
  background: #121214;
  border-color: rgba(255, 255, 255, 0.18);
}

.faq-item.expanded .faq-answer {
  max-height: 300px;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.footer-brand p {
  color: var(--t2);
  font-size: 0.82rem;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--t2);
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--t3);
  font-size: 0.75rem;
}


/* =========================================
   ===== DASHBOARD LAYOUT & COMPONENTS =====
   ========================================= */

.dashboard-view {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 2;
  background: #000000;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 250px;
  background: #000000;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  transition: var(--ease);
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.sidebar-logo-text {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.1px;
}

.sidebar-nav {
  padding: 20px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #a1a1a6;
  font-size: 0.86rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  user-select: none;
}

.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sidebar-nav-item.active {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.sidebar-nav-item svg {
  flex-shrink: 0;
  stroke: currentColor;
}

.sidebar-footer {
  padding: 20px 12px;
  border-top: 1px solid var(--border);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  margin-left: 250px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  transition: var(--ease);
}

.dashboard-header {
  height: 64px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  z-index: 80;
}

.header-title-wrap h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: var(--ease);
}

.user-profile-menu:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

.user-plan-badge {
  font-size: 0.65rem;
  color: #ff9f0a;
  font-weight: 700;
  text-transform: uppercase;
}

.user-plan-badge.free {
  color: var(--t2);
}

.dashboard-body {
  padding: 32px;
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.dashboard-tab {
  display: none;
  animation: fadeUp 0.3s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.dashboard-tab.active {
  display: block;
}

/* ===== TAB COMPONENTS ===== */

/* 1. Overview Grid */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--t2);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid var(--border);
}

.overview-banner {
  background: linear-gradient(180deg, #121214 0%, #000000 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}

.banner-content {
  max-width: 65%;
}

.banner-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.banner-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.banner-subtitle {
  color: var(--t2);
  font-size: 0.85rem;
  line-height: 1.5;
}

.banner-visual {
  flex-shrink: 0;
  color: #ffffff;
}

/* Grid splits for cards */
.dashboard-grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

/* General Layout Card */
.layout-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
  color: #fff;
}

.card-title small {
  font-size: 0.75rem;
  color: var(--t2);
  font-weight: 500;
}

/* Audio Studio UI */
.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.uploader-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.input-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--t2);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon svg {
  position: absolute;
  left: 14px;
  color: var(--t2);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.input-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #a1a1a6;
}

.input-control {
  width: 100%;
  padding: 10px 14px;
  padding-left: 40px;
  background: #0d0d0f;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.85rem;
  outline: none;
  transition: var(--ease);
}

.input-control:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.input-control.no-icon {
  padding-left: 14px;
}

select.input-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

select.input-control option {
  background-color: #141416;
  color: #ffffff;
  padding: 8px;
}

.dropzone {
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  background: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: var(--ease);
}

.dropzone:hover,
.dropzone.dragover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.01);
}

.dropzone-icon {
  color: var(--t2);
}

.dropzone:hover .dropzone-icon {
  color: #ffffff;
}

.dropzone-text {
  font-size: 0.82rem;
  color: var(--t2);
}

.dropzone-text strong {
  color: #ffffff;
}

.dropzone-hint {
  font-size: 0.68rem;
  color: var(--t3);
}

.selected-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #1c1c1e;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 8px;
  font-size: 0.78rem;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-remove-btn {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 0.75rem;
}

/* Audio Slider Controls */
.controls-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #000000;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--t2);
}

.slider-val {
  color: #ffffff;
  font-weight: 700;
}

.custom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #1c1c1e;
  outline: none;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  border: 1px solid #000000;
}

/* ====== ADVANCED SETTINGS ACCORDION ====== */
.adv-settings-card {
  background: #0d0d0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 10px;
}

.adv-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  background: rgba(255, 255, 255, 0.02);
}

.adv-settings-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.adv-settings-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f5f5f7;
}

.adv-settings-summary {
  font-size: 0.72rem;
  color: #86868b;
  margin-left: 6px;
}

.adv-chevron {
  color: #86868b;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.adv-settings-card.open .adv-chevron {
  transform: rotate(180deg);
}

.adv-settings-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.3s;
  padding: 0 16px;
}

.adv-settings-card.open .adv-settings-body {
  max-height: 1200px;
  padding: 14px 16px 18px;
}

.adv-section-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #86868b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Preset buttons (monochrome white active) */
.adv-presets-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.adv-preset-btn {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #b0b0b4;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  white-space: nowrap;
}

.adv-preset-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.adv-preset-btn.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #000;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

/* Slider groups */
.adv-slider-group {
  margin-bottom: 14px;
}

.adv-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.adv-slider-header span:first-child {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e0e0e4;
}

.adv-slider-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* Monochrome white range slider */
.adv-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(to right, #ffffff var(--fill, 50%), #1c1c1e var(--fill, 50%));
  outline: none;
  transition: background 0.15s;
}

.adv-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
  transition: transform 0.15s;
}

.adv-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.adv-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
}

.adv-range::-moz-range-track {
  height: 5px;
  border-radius: 4px;
  background: #1c1c1e;
}

/* Toggle chips */
.adv-toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #86868b;
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.adv-toggle-chip input {
  accent-color: #ffffff;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.adv-toggle-chip:has(input:checked) {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Roblox script box */
.adv-roblox-script-box {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
}

.adv-copy-btn {
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.adv-copy-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.adv-code-block {
  margin: 0;
  padding: 10px;
  background: #0a0a0c;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 0.73rem;
  color: #a9b7c6;
  overflow-x: auto;
  line-height: 1.5;
}

.adv-code-block #codeSpeedVal {
  color: #ffffff;
  font-weight: 700;
}

  /* Presets Toggle buttons */
  .presets-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
  }

  .preset-btn {
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--t2);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ease);
  }

  .preset-btn:hover {
    border-color: #ffffff;
    color: #ffffff;
  }

  .preset-btn.active {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
  }

  /* Switches */
  .switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .switch-info {
    display: flex;
    flex-direction: column;
  }

  .switch-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
  }

  .switch-desc {
    font-size: 0.68rem;
    color: var(--t2);
  }

  .switch-toggle {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
    cursor: pointer;
  }

  .switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1c1c1e;
    transition: .2s;
    border-radius: 34px;
    border: 1px solid var(--border);
  }

  .slider-round:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: #86868b;
    transition: .2s;
    border-radius: 50%;
  }

  input:checked+.slider-round {
    background-color: #ffffff;
    border-color: #ffffff;
  }

  input:checked+.slider-round:before {
    transform: translateX(18px);
    background-color: #000000;
  }

  /* Console Logger Box */
  .console-box {
    background: #000000;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    font-family: Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem;
    color: #ffffff;
    height: 160px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .console-title-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--t2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
    margin-bottom: 6px;
    text-transform: uppercase;
    font-weight: 700;
  }

  .console-line {
    line-height: 1.35;
  }

  .console-line.info {
    color: var(--t2);
  }

  .console-line.success {
    color: var(--green);
  }

  .console-line.warning {
    color: #ff9f0a;
  }

  .console-line.error {
    color: var(--red);
  }

  .console-progress {
    height: 2px;
    background: #1c1c1e;
    border-radius: 1px;
    overflow: hidden;
    margin-top: 8px;
  }

  .console-progress-fill {
    height: 100%;
    width: 0%;
    background: #ffffff;
    transition: width 0.3s;
  }

  /* History / Table Component */
  .table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #000000;
  }

  .custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.82rem;
  }

  .custom-table th {
    padding: 12px 16px;
    font-weight: 700;
    color: var(--t2);
    background: #09090b;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.5px;
  }

  .custom-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--t2);
  }

  .custom-table tr:last-child td {
    border-bottom: none;
  }

  .custom-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
    color: #ffffff;
  }

  .track-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .track-img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #1c1c1e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    border: 1px solid var(--border);
  }

  .track-meta-title {
    font-weight: 600;
    color: #ffffff;
  }

  .track-meta-sub {
    font-size: 0.68rem;
    color: var(--t3);
  }

  /* Badges */
  .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid transparent;
  }

  .status-badge.approved {
    background: var(--green-glow);
    color: var(--green);
    border-color: rgba(48, 209, 88, 0.2);
  }

  .status-badge.reviewing {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    border-color: var(--border);
  }

  .status-badge.moderated {
    background: var(--red-glow);
    color: var(--red);
    border-color: rgba(255, 69, 58, 0.2);
  }

  /* Action Icon Button */
  .action-btn-group {
    display: flex;
    gap: 4px;
  }

  .icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--t2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--ease);
  }

  .icon-btn:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
  }

  .icon-btn.danger:hover {
    background: var(--red-glow);
    border-color: var(--red);
    color: var(--red);
  }

  /* API Keys List */
  .api-keys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
  }

  .key-card {
    background: #000000;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .key-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .key-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
  }

  .creator-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    background: #1c1c1e;
    color: var(--t2);
    border: 1px solid var(--border);
  }

  .creator-badge.group {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }

  .key-value-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #09090b;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
  }

  .key-masked {
    font-family: monospace;
    font-size: 0.72rem;
    color: var(--t2);
  }

  /* Empty placeholder */
  .empty-placeholder {
    text-align: center;
    padding: 40px;
    color: var(--t3);
    font-size: 0.82rem;
  }

  .empty-placeholder svg {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.06);
  }

  /* ===== MODAL & OVERLAYS ===== */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    padding: 16px;
    overflow: hidden;
  }

  .modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .modal-box {
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    background: #0d0d0f;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
    transform: scale(0.95);
    transition: transform 0.2s ease;
  }

  .modal-overlay.open .modal-box {
    transform: scale(1);
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
  }

  .modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
  }

  .modal-close {
    background: none;
    border: none;
    color: var(--t2);
    cursor: pointer;
  }

  .modal-close:hover {
    color: #fff;
  }

  /* QRIS / Checkout Modal Simulation */
  .qris-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .qris-qr-frame {
    padding: 12px;
    background: #fff;
    border-radius: 8px;
  }

  .qris-qr-frame img {
    width: 180px;
    height: 180px;
  }

  .qris-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
  }

  /* Toast Notifications */
  .toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .toast {
    min-width: 260px;
    background: #121214;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.8rem;
    animation: toastSlideIn 0.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  }

  @keyframes toastSlideIn {
    from {
      transform: translateY(-20px);
      opacity: 0;
    }

    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .toast.success {
    border-left: 3px solid var(--green);
  }

  .toast.error {
    border-left: 3px solid var(--red);
  }

  .toast.warning {
    border-left: 3px solid #ff9f0a;
  }

  .toast-close {
    background: none;
    border: none;
    color: var(--t2);
    cursor: pointer;
  }

  .toast-close:hover {
    color: #ffffff;
  }

  /* Profile summary card inside pricing section */
  .billing-status-card {
    background: #121214;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .billing-plan-info {
    display: flex;
    flex-direction: column;
  }

  .billing-plan-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
  }

  .billing-plan-sub {
    font-size: 0.75rem;
    color: var(--t2);
  }

  /* Mobile Sidebar Overrides */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 85;
  }

  @media(max-width: 968px) {
    .sidebar {
      transform: translateX(-100%);
    }

    .sidebar.open {
      transform: translateX(0);
    }

    .sidebar-overlay.open {
      display: block;
    }

    .main-content {
      margin-left: 0;
    }
  }

  @media(max-width: 768px) {
    .studio-grid {
      grid-template-columns: 1fr;
    }

    .dashboard-grid-2 {
      grid-template-columns: 1fr;
    }

    .dashboard-header {
      padding: 0 16px;
    }

    .dashboard-body {
      padding: 16px;
    }
  }

  @media(max-width: 768px) {
    .nav-links {
      display: none;
    }

    .mobile-menu-btn {
      display: block;
    }

    .discord-extra {
      display: none;
    }

    .navbar {
      width: calc(100% - 24px);
      top: 12px;
      padding: 6px 12px;
    }
  }

  /* WaveSurfer Container & Interactive Player Styles */
  #waveformContainer {
    position: relative;
    width: 100%;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4) !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
  }

  #waveformContainer wave {
    border-radius: 6px;
  }

  /* Moderation & Operation Status Animations */
  .status-pulse {
    animation: pulseGlow 1.5s infinite ease-in-out;
  }

  @keyframes pulseGlow {
    0% {
      opacity: 0.4;
      transform: scale(0.9);
    }

    50% {
      opacity: 1;
      transform: scale(1.1);
    }

    100% {
      opacity: 0.4;
      transform: scale(0.9);
    }
  }

  /* Publish-Ready QRIS Card Styles */
  .qris-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 10px 0;
    width: 100%;
  }

  .qris-card {
    background: #ffffff;
    color: #000000;
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    font-family: var(--font);
    position: relative;
    text-align: center;
    box-sizing: border-box;
  }

  .qris-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    margin-bottom: 12px;
  }

  .qris-logo-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 900;
    font-size: 1.1rem;
    color: #ed1c24;
    letter-spacing: 0.5px;
  }

  .qris-merchant-info {
    margin-bottom: 10px;
  }

  .qris-merchant-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .qris-merchant-sub {
    font-size: 0.72rem;
    color: #6b7280;
    margin-top: 2px;
  }

  .qris-image-container {
    background: #ffffff;
    padding: 10px;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
    min-height: 200px;
  }

  .qris-image-container img {
    max-width: 220px;
    max-height: 220px;
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
  }

  .qris-supported-apps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 10px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #4b5563;
    flex-wrap: wrap;
  }

  .qris-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
    text-align: left;
  }

  .qris-detail-box {
    background: #f3f4f6;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
  }

  .qris-detail-label {
    font-size: 0.65rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 700;
  }

  .qris-detail-value {
    font-size: 0.9rem;
    font-weight: 800;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
  }

  .qris-copy-btn {
    background: #e5e7eb;
    border: none;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .qris-copy-btn:hover {
    background: #d1d5db;
  }

  .qris-timer-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 6px;
    border-radius: 8px;
    margin-top: 10px;
  }

  .qris-instruction-accordion {
    margin-top: 12px;
    text-align: left;
  }

  .qris-instruction-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--t2);
    margin-bottom: 6px;
  }

  .qris-steps-list {
    font-size: 0.78rem;
    color: var(--t3);
    padding-left: 18px;
    line-height: 1.5;
    margin: 0;
  }

  .qris-steps-list li {
    margin-bottom: 4px;
  }

  .qris-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #30d158;
    letter-spacing: -0.5px;
  }