/* === VARIABLES === */
:root {
  --purple: #8B5CF6;
  --purple-light: #A78BFA;
  --purple-dark: #6D28D9;
  --pink: #F472B6;
  --pink-light: #F9A8D4;
  --blue: #60A5FA;
  --green: #34D399;
  --amber: #FBBF24;
  --red: #F87171;

  --gradient: linear-gradient(135deg, #8B5CF6 0%, #F472B6 100%);
  --gradient-blue: linear-gradient(135deg, #60A5FA 0%, #8B5CF6 100%);
  --gradient-green: linear-gradient(135deg, #34D399 0%, #60A5FA 100%);

  /* True light/dark anchors — do not invert, used for elements that must
     stay literally black-on-white regardless of theme (pill buttons, QR codes) */
  --paper: #ffffff;
  --ink: #0A0A0C;

  /* Page background vs. card/component surface */
  --bg: #000000;
  --white: #131316;

  /* Inverted neutral scale for dark theme: 50 = near-black (subtle bg/borders), 900 = near-white (headings) */
  --gray-50: #16171B;
  --gray-100: #1D1F24;
  --gray-200: #292C33;
  --gray-300: #3A3E47;
  --gray-400: #7D8590;
  --gray-500: #99A1AC;
  --gray-600: #B2B9C3;
  --gray-700: #CBD0D8;
  --gray-800: #E4E7EB;
  --gray-900: #F7F8FA;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 28px;
  --radius-2xl: 40px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  --shadow-md: 0 12px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06);
  --shadow-lg: 0 24px 70px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.07);
  --shadow-purple: 0 8px 32px rgba(139, 92, 246, 0.45);
  --shadow-pink: 0 8px 32px rgba(244, 114, 182, 0.35);

  --transition: all 0.2s ease;
  --transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, textarea, select { font-family: inherit; outline: none; border: none; }

/* === TYPOGRAPHY === */
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--gray-600); }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === LAYOUT === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.text-center { text-align: center; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: middle;
  box-sizing: border-box;
}
.btn > span { display: inline-flex; align-items: center; line-height: 1; }

.btn-gradient {
  background: var(--gradient);
  color: var(--paper);
  box-shadow: var(--shadow-purple);
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}

.btn-gradient:hover::before { left: 100%; }
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(139, 92, 246, 0.45);
}
.btn-gradient:active { transform: translateY(0); }

.btn-white {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline {
  background: transparent;
  color: var(--purple-light);
  border: 2px solid var(--purple);
}
.btn-outline:hover { background: var(--purple); color: var(--paper); }

.btn-ghost {
  background: var(--gray-100);
  color: var(--gray-700);
}
.btn-ghost:hover { background: var(--gray-200); }

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius); }
.btn-icon-sm { width: 32px; height: 32px; padding: 0; border-radius: var(--radius-sm); }

.btn-green { background: var(--green); color: white; }
.btn-green:hover { background: #059669; transform: translateY(-1px); }
.btn-red { background: var(--red); color: white; }
.btn-red:hover { background: #DC2626; transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: white; }
.btn-amber:hover { background: #D97706; transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover { background: #2563EB; transform: translateY(-1px); }
.btn-purple { background: var(--purple); color: white; }
.btn-purple:hover { background: #6D28D9; transform: translateY(-1px); }

.btn-google {
  background: #fff;
  color: #3c4043;
  border: 1.5px solid #dadce0;
  font-weight: 500;
  box-shadow: none;
}
.btn-google:hover { background: #f8f9fa; border-color: #c6c8ca; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transform: translateY(-1px); }
.btn-google:disabled { opacity: 0.65; transform: none; cursor: not-allowed; }

.auth-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 4px;
  color: var(--gray-400);
  font-size: 0.8rem;
}
.auth-or-divider::before,
.auth-or-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }

/* === CARDS === */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 28px;
  transition: var(--transition-slow);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-sm { padding: 20px; border-radius: var(--radius-lg); }

/* === INPUTS === */
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
}
.input-field {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  background: var(--white);
  color: var(--gray-800);
  transition: var(--transition);
}
.input-field:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.input-field::placeholder { color: var(--gray-400); }
textarea.input-field { resize: vertical; min-height: 100px; }

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-purple { background: rgba(139,92,246,0.15); color: var(--purple-light); }
.badge-pink { background: rgba(244,114,182,0.15); color: var(--pink-light); }
.badge-green { background: rgba(52,211,153,0.15); color: #6EE7A0; }
.badge-amber { background: rgba(251,191,36,0.15); color: #FBBF24; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-blue { background: rgba(96,165,250,0.15); color: #60A5FA; }
.badge-red { background: rgba(248,113,113,0.15); color: #F87171; }

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: var(--transition-slow);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.modal-title { font-size: 1.4rem; font-weight: 700; }
.modal-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: var(--gray-100);
  color: var(--gray-500);
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-800); }

/* === TOGGLE === */
.toggle-wrapper { display: flex; align-items: center; gap: 12px; }
.toggle {
  position: relative;
  width: 52px; height: 28px;
  cursor: pointer;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.toggle input:checked + .toggle-track { background: var(--gradient); }
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.toggle input:checked ~ .toggle-thumb { transform: translateX(24px); }

/* === STAT CARDS === */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.85rem; color: var(--gray-500); font-weight: 500; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--gray-900); line-height: 1; }
.stat-sub { font-size: 0.8rem; color: var(--gray-400); }

/* ==================================
   LANDING PAGE
================================== */
/* NAV */
.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--gray-900);
}
.logo-icon {
  width: 38px; height: 38px;
  background: var(--gradient);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gray-600);
  transition: var(--transition);
}
.nav-link:hover { color: var(--purple); background: rgba(139, 92, 246, 0.06); }

/* HERO */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(1100px circle at 88% -10%, rgba(139,92,246,0.22), transparent 60%),
              radial-gradient(800px circle at 8% 15%, rgba(244,114,182,0.14), transparent 55%),
              var(--bg);
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 20px; }
.hero p { font-size: 1.15rem; margin-bottom: 36px; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Floating notes */
.notes-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.music-note {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0;
  animation: floatNote linear infinite;
  will-change: transform, opacity;
}

@keyframes floatNote {
  0%   { opacity: 0; transform: translateY(0) rotate(0deg) scale(0.8); }
  10%  { opacity: 0.5; }
  80%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-100vh) rotate(45deg) scale(1.2); }
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  width: 280px;
  margin: 0 auto;
  filter: drop-shadow(0 40px 60px rgba(139,92,246,0.25));
}
.phone-shell {
  background: var(--gray-50);
  border-radius: 44px;
  padding: 14px;
  position: relative;
}
.phone-shell::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 28px;
  background: var(--gray-50);
  border-radius: 0 0 20px 20px;
  z-index: 2;
}
.phone-screen {
  background: #0D0D10;
  border-radius: 34px;
  overflow: hidden;
  height: 520px;
  display: flex;
  flex-direction: column;
}
.mock-header {
  background: var(--gradient);
  padding: 40px 20px 20px;
  text-align: center;
  color: white;
}
.mock-header h4 { font-size: 0.75rem; opacity: 0.85; font-weight: 500; }
.mock-header h3 { font-size: 1.1rem; font-weight: 700; }
.mock-form { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mock-input {
  height: 36px;
  background: var(--white);
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  padding: 0 12px;
  font-size: 0.7rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
}
.mock-tips { display: flex; gap: 6px; }
.mock-tip-btn {
  flex: 1;
  height: 30px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
}
.mock-tip-btn.active { background: var(--gradient); color: white; }
.mock-tip-btn:not(.active) { background: var(--white); border: 1.5px solid var(--gray-200); color: var(--gray-500); }
.mock-submit {
  margin-top: 4px;
  height: 40px;
  background: var(--gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}
.mock-label { font-size: 0.65rem; color: var(--gray-400); font-weight: 500; }

/* HOW IT WORKS */
.how-it-works { background: var(--bg); }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.section-tag.purple { background: rgba(139,92,246,0.1); color: var(--purple); }
.section-tag.pink { background: rgba(244,114,182,0.1); color: var(--pink); }
.section-tag.green { background: rgba(16,185,129,0.1); color: var(--green); }
.section-tag.blue { background: rgba(59,130,246,0.1); color: var(--blue); }
.section-tag.amber { background: rgba(245,158,11,0.1); color: var(--amber); }

.step-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-xl);
  position: relative;
  background: var(--white);
  border: 2px solid var(--gray-100);
  transition: var(--transition-slow);
}
.step-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.step-emoji {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}
.step-num {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  background: var(--gradient);
  border-radius: 50%;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { font-size: 0.95rem; }

/* FEATURES */
.features-section { background: var(--gray-50); }
.feature-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: var(--transition-slow);
  border: 2px solid transparent;
}
.feature-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: var(--shadow-purple);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.fi-purple { background: rgba(139,92,246,0.1); }
.fi-pink { background: rgba(244,114,182,0.1); }
.fi-green { background: rgba(16,185,129,0.1); }
.fi-blue { background: rgba(59,130,246,0.1); }
.fi-amber { background: rgba(245,158,11,0.1); }
.fi-red { background: rgba(239,68,68,0.1); }

/* PRICING */
.pricing-section { background: var(--bg); }
.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  background: linear-gradient(135deg, #1A1024, #1F1420);
  border: 2px solid rgba(139,92,246,0.2);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(139,92,246,0.12), transparent 70%);
  border-radius: 50%;
}
.price-tag { font-size: 4rem; font-weight: 900; color: var(--gray-900); line-height: 1; }
.price-tag span { font-size: 1.5rem; font-weight: 600; color: var(--gray-500); }
.pricing-features { text-align: left; margin: 32px 0; display: flex; flex-direction: column; gap: 12px; }
.pricing-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--gray-700);
}
.check-icon {
  width: 22px; height: 22px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* FOOTER */
.footer {
  background: var(--gray-50);
  color: var(--gray-400);
  padding: 60px 0 32px;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo span { font-weight: 700; font-size: 1.2rem; color: white; }
.footer-desc { font-size: 0.9rem; max-width: 260px; }
.footer-col h4 { color: white; font-size: 0.9rem; margin-bottom: 16px; }
.footer-link {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer-link:hover { color: var(--pink-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ==================================
   EVENT PAGE (GUEST)
================================== */
.event-page {
  min-height: 100vh;
  background: radial-gradient(900px circle at 50% -10%, rgba(139,92,246,0.20), transparent 60%), var(--bg);
}

.event-header {
  background: var(--gradient);
  padding: 40px 24px 60px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.event-header::before {
  content: '';
  position: absolute;
  bottom: -30px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-top: 30px solid var(--pink);
  /* replaced by wave */
}
.event-header-wave {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
}
.event-dj-name { font-size: 0.9rem; opacity: 0.85; font-weight: 500; margin-bottom: 4px; }
.event-name { font-size: 1.6rem; font-weight: 800; }
.event-venue { font-size: 0.85rem; opacity: 0.7; margin-top: 4px; }
.event-welcome { margin-top: 12px; font-size: 0.9rem; opacity: 0.9; }

.event-body { max-width: 480px; margin: 0 auto; padding: 0 20px 60px; }

.request-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px;
  margin-top: -30px;
  position: relative;
  z-index: 1;
}
.request-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-stack { display: flex; flex-direction: column; gap: 16px; }

.tip-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 2px solid var(--gray-100);
}
.tip-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-800);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tip-sub { font-size: 0.8rem; color: var(--gray-400); font-weight: 400; }
.tip-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.tip-btn {
  flex: 1;
  min-width: 60px;
  padding: 10px 8px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--gray-100);
  color: var(--gray-600);
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}
.tip-btn.active, .tip-btn:hover {
  background: rgba(139,92,246,0.1);
  border-color: var(--purple);
  color: var(--purple);
}
.custom-tip-wrapper { display: none; }
.custom-tip-wrapper.show { display: block; }

.submit-btn-wrapper { margin-top: 28px; }
.submit-btn-wrapper .btn { width: 100%; padding: 18px; font-size: 1.05rem; border-radius: var(--radius-xl); }

/* Success state */
.success-state {
  display: none;
  text-align: center;
  padding: 40px 20px;
  animation: slideIn 0.4s ease;
}
.success-state.show { display: block; }
.success-icon { font-size: 4rem; margin-bottom: 16px; }
.success-title { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }
.success-sub { color: var(--gray-500); margin-bottom: 24px; }
.success-request-preview {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}
.srp-song { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); }
.srp-artist { font-size: 0.9rem; color: var(--gray-500); }

/* Powered by */
.powered-by {
  text-align: center;
  padding: 20px 0;
  font-size: 0.8rem;
  color: var(--gray-400);
}
.powered-by a { color: var(--purple); font-weight: 600; }

/* ==================================
   DASHBOARD
================================== */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 240px;
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  padding: 0 0 24px;
}
.sidebar-logo-area {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
}
.sidebar-nav { flex: 1; padding: 0 12px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  color: var(--gray-400);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.sidebar-item:hover { background: rgba(255,255,255,0.07); color: white; }
.sidebar-item.active {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(139,92,246,0.4);
}
.sidebar-item-icon { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-bottom {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: auto;
}
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
}
.sidebar-profile:hover { background: rgba(255,255,255,0.07); }
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.avatar-info { flex: 1; overflow: hidden; }
.avatar-name { font-size: 0.85rem; font-weight: 600; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar-role { font-size: 0.72rem; color: var(--gray-500); }

/* MAIN CONTENT */
.dashboard-main {
  flex: 1;
  margin-left: 240px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--gray-50);
}
/* RTL: sidebar flips to the right, main content margin flips to match */
[dir="rtl"] .sidebar { left: auto; right: 0; }
[dir="rtl"] .dashboard-main { margin-left: 0; margin-right: 240px; }
[dir="rtl"] .request-item { border-left: none; border-right: 4px solid transparent; }
[dir="rtl"] .request-item.status-played { border-left-color: transparent; border-right-color: var(--green); }
[dir="rtl"] .request-item.status-favourite { border-left-color: transparent; border-right-color: var(--amber); }
[dir="rtl"] .request-item.status-skipped { border-left-color: transparent; border-right-color: var(--red); }
[dir="rtl"] .success-request-preview { text-align: right; }
[dir="rtl"] .playlist-table th { text-align: right; }
@media (max-width: 768px) {
  [dir="rtl"] .dashboard-main { margin-right: 0; }
}

.dash-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.dash-topbar-title { font-size: 1.15rem; font-weight: 700; color: var(--gray-900); }
.dash-topbar-actions { display: flex; align-items: center; gap: 12px; }

.tab-content { display: none; padding: 32px; flex: 1; }
.tab-content.active { display: block; }

/* EVENTS TAB */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 24px; }

.event-dash-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition-slow);
  border: 2px solid transparent;
}
.event-dash-card:hover { border-color: rgba(139,92,246,0.2); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.event-dash-card-header {
  background: var(--gradient);
  padding: 20px 24px;
  color: white;
  position: relative;
}
.event-dash-card-header h3 { font-size: 1.05rem; }
.event-dash-card-header .date { font-size: 0.8rem; opacity: 0.8; margin-top: 2px; }
.event-dash-card-body { padding: 20px 24px; }
.event-stats { display: flex; gap: 20px; margin-bottom: 16px; }
.event-stat { text-align: center; }
.event-stat .val { font-size: 1.3rem; font-weight: 800; color: var(--gray-900); }
.event-stat .lbl { font-size: 0.72rem; color: var(--gray-400); font-weight: 500; }
.share-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  margin-bottom: 14px;
}
.share-link-text { font-size: 0.78rem; color: var(--gray-600); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-wrapper { width: 80px; height: 80px; border-radius: var(--radius); overflow: hidden; background: var(--paper); padding: 4px; border: 1px solid var(--gray-200); }
.qr-wrapper canvas, .qr-wrapper img { width: 100% !important; height: 100% !important; }
.event-card-actions { display: flex; gap: 8px; }

/* REQUESTS TAB */
.requests-toolbar {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.filter-tab.active { background: var(--gradient); color: white; }
.filter-tab:hover:not(.active) { background: var(--gray-200); }
.search-input {
  flex: 1;
  min-width: 200px;
  padding: 9px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  transition: var(--transition);
}
.search-input:focus { border-color: var(--purple); }
.event-selector {
  padding: 9px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  background: var(--white);
  color: var(--gray-700);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.event-selector:focus { border-color: var(--purple); }

.requests-list { display: flex; flex-direction: column; gap: 12px; }

.request-item {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition-slow);
  border-left: 4px solid transparent;
  animation: slideIn 0.3s ease;
}
.request-item.new { animation: slideInBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.request-item.status-played { border-left-color: var(--green); opacity: 0.75; }
.request-item.status-favourite { border-left-color: var(--amber); }
.request-item.status-skipped { border-left-color: var(--red); opacity: 0.6; }
.request-item:hover { box-shadow: var(--shadow-md); }
.request-rank {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-500);
  flex-shrink: 0;
}
.request-info { flex: 1; min-width: 0; }
.request-song { font-size: 1rem; font-weight: 700; color: var(--gray-900); }
.request-artist { font-size: 0.85rem; color: var(--gray-500); }
.request-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.request-meta-item { font-size: 0.78rem; color: var(--gray-400); display: flex; align-items: center; gap: 4px; }
.request-note { margin-top: 8px; font-size: 0.83rem; color: var(--gray-500); background: var(--gray-50); border-radius: var(--radius-sm); padding: 8px 12px; font-style: italic; }
.request-actions { display: flex; gap: 6px; flex-shrink: 0; }
.request-tip-badge {
  background: var(--gradient);
  color: white;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

/* TIPS TAB */
.tips-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.tips-list { background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow); overflow: hidden; }
.tips-list-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-100); }
.tip-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-50);
  transition: var(--transition);
}
.tip-row:last-child { border-bottom: none; }
.tip-row:hover { background: var(--gray-50); }
.tip-row-icon { font-size: 1.2rem; }
.tip-row-info { flex: 1; }
.tip-row-name { font-size: 0.9rem; font-weight: 600; color: var(--gray-800); }
.tip-row-event { font-size: 0.78rem; color: var(--gray-400); }
.tip-row-amount { font-size: 1rem; font-weight: 800; color: var(--green); }

/* SETTINGS TAB */
.settings-card { background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 32px; max-width: 560px; margin-bottom: 20px; }
.settings-card h3 { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-100); }
.settings-form { display: flex; flex-direction: column; gap: 20px; }
.profile-avatar-upload { display: flex; align-items: center; gap: 20px; margin-bottom: 8px; }
.avatar-large {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

/* BOTTOM NAV (mobile) */
.bottom-nav { display: none; }

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; color: var(--gray-700); }
.empty-state p { color: var(--gray-400); margin-bottom: 24px; }

/* Language toggle pill — shared across all pages */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  padding: 3px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 0;
  flex-shrink: 0;
}
.lang-toggle-btn span {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  color: var(--gray-500);
  transition: all 0.18s ease;
  line-height: 1;
  white-space: nowrap;
}
.lang-toggle-btn span.active {
  background: var(--gradient);
  color: var(--paper);
}
.lang-toggle-btn.on-dark {
  background: rgba(255,255,255,0.1);
}
.lang-toggle-btn.on-dark span:not(.active) {
  color: rgba(255,255,255,0.7);
}

/* Live indicator */
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
}
.live-dot::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.5s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--gray-50);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ==================================
   ANIMATIONS
================================== */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInBounce {
  from { opacity: 0; transform: translateY(-20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ==================================
   RESPONSIVE
================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .tips-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .phone-mockup { display: none; }
  .hero { padding: 110px 0 60px; text-align: center; }
  .hero p { margin: 0 auto 36px; }
  .hero-cta { justify-content: center; }
  .nav-links .btn-outline { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* Dashboard mobile */
  .sidebar { display: none; }
  .dashboard-main { margin-left: 0; padding-bottom: 80px; }
  .tab-content { padding: 16px; }
  .dash-topbar { padding: 0 16px; }
  .tips-stats { grid-template-columns: 1fr; }
  .requests-toolbar { flex-direction: column; align-items: stretch; }
  .request-item { flex-wrap: wrap; }
  .request-actions { width: 100%; justify-content: flex-end; }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    z-index: 100;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  }
  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-400);
    font-size: 0.65rem;
    font-weight: 600;
    border: none;
    background: none;
    font-family: inherit;
  }
  .bottom-nav-item .bnav-icon { font-size: 1.1rem; }
  .bottom-nav-item.active { color: var(--purple); }
  .events-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .modal { padding: 24px; }
  .request-card { padding: 24px 20px; }
}

/* ==================================
   SMART PLAYLIST FEATURE
================================== */

/* ---- Upload Modal Tabs ---- */
.upload-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: var(--gray-100);
  padding: 5px;
  border-radius: var(--radius-lg);
}
.upload-tab {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  background: transparent;
  color: var(--gray-500);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.upload-tab.active {
  background: var(--white);
  color: var(--purple);
  box-shadow: var(--shadow-sm);
}
.upload-panel { display: none; }
.upload-panel.active { display: block; }

/* ---- Drop Zone ---- */
.drop-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-50);
  position: relative;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--purple);
  background: rgba(139,92,246,0.04);
}
.drop-zone-icon { font-size: 2.5rem; margin-bottom: 12px; }
.drop-zone p { font-size: 0.95rem; color: var(--gray-600); font-weight: 500; }
.drop-zone .sub { font-size: 0.8rem; color: var(--gray-400); margin-top: 4px; font-weight: 400; }
.drop-zone-btn {
  display: inline-flex;
  margin-top: 14px;
  padding: 9px 20px;
  background: var(--gradient);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.drop-zone-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ---- File list ---- */
.file-list { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; max-height: 160px; overflow-y: auto; }
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  font-size: 0.82rem;
}
.file-item-icon { font-size: 1rem; }
.file-item-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gray-700); }
.file-item-remove { cursor: pointer; color: var(--gray-400); font-size: 1rem; transition: var(--transition); }
.file-item-remove:hover { color: var(--red); }

/* ---- DJ software export help ---- */
.dj-export-help {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}
.dj-export-help-title { font-size: 0.78rem; font-weight: 700; color: var(--gray-600); margin-bottom: 6px; }
.dj-export-help p { font-size: 0.78rem; color: var(--gray-500); line-height: 1.6; }
.dj-export-help p strong { color: var(--gray-700); }

/* ---- API key row ---- */
.api-key-row {
  margin-top: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(244,114,182,0.04));
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.api-key-label { font-size: 0.82rem; font-weight: 600; color: var(--purple); white-space: nowrap; }
.api-key-input {
  flex: 1;
  min-width: 180px;
  padding: 8px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-family: 'Courier New', monospace;
  background: var(--white);
  color: var(--gray-800);
}
.api-key-input:focus { border-color: var(--purple); outline: none; }
.api-key-link { font-size: 0.78rem; color: var(--blue); font-weight: 500; white-space: nowrap; }

/* ---- Progress bar ---- */
.progress-wrapper {
  padding: 32px 0;
  text-align: center;
}
.progress-bar-track {
  height: 10px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 20px 0 12px;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.4s ease;
}
.progress-label { font-size: 0.9rem; font-weight: 600; color: var(--gray-700); }
.progress-sub { font-size: 0.82rem; color: var(--gray-400); margin-top: 4px; }
.progress-spinner { font-size: 2rem; animation: spin 1.5s linear infinite; display: inline-block; margin-bottom: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Result stats ---- */
.result-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.result-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}
.result-stat-total { background: rgba(139,92,246,0.1); color: var(--purple); }
.result-stat-ok { background: rgba(16,185,129,0.1); color: var(--green); }
.result-stat-warn { background: rgba(251,191,36,0.15); color: #FBBF24; }

/* ---- Playlist table ---- */
.playlist-table-wrapper {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-y: auto;
  max-height: 360px;
}
.playlist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.playlist-table thead {
  background: var(--gray-50);
  position: sticky;
  top: 0;
  z-index: 1;
}
.playlist-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--gray-200);
}
.playlist-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.playlist-table tr:last-child td { border-bottom: none; }
.playlist-table tr:hover td { background: var(--gray-50); }
.playlist-table .col-artist { font-weight: 600; color: var(--gray-900); }
.playlist-table .col-title { }
.playlist-table .col-action { width: 60px; text-align: center; }
.playlist-table .original-tag { font-size: 0.7rem; color: var(--gray-400); }
.playlist-row-warn td { background: rgba(245,158,11,0.04); }
.pl-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.pl-remove-btn:hover { background: rgba(239,68,68,0.1); color: var(--red); }
.pl-highlight { background: rgba(139,92,246,0.15); border-radius: 2px; padding: 0 1px; }

/* ---- Playlist tab (dashboard) ---- */
.playlist-tab-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.playlist-onboarding-card {
  max-width: 500px;
  margin: 40px auto;
  background: linear-gradient(135deg, #1A1024, #1F1420);
  border: 2px solid rgba(139,92,246,0.2);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
}
.playlist-onboarding-icon { font-size: 3.5rem; margin-bottom: 16px; }
.playlist-onboarding-card h3 { margin-bottom: 10px; }
.playlist-onboarding-card p { margin-bottom: 24px; }
.playlist-onboarding-actions { display: flex; gap: 12px; justify-content: center; }

.playlist-stats-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 16px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.pl-stat { display: flex; flex-direction: column; gap: 2px; }
.pl-stat-val { font-size: 1.3rem; font-weight: 800; color: var(--gray-900); }
.pl-stat-lbl { font-size: 0.72rem; color: var(--gray-400); font-weight: 500; }
.pl-divider { width: 1px; height: 36px; background: var(--gray-200); }
.pl-mode-toggle { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pl-mode-label { font-size: 0.88rem; font-weight: 600; color: var(--gray-700); }

.playlist-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.playlist-search { flex: 1; min-width: 200px; }
.playlist-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* ---- Event card playlist badge ---- */
.event-playlist-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: white;
  margin-top: 6px;
}

/* ---- Request in-playlist badges ---- */
.badge-in-playlist { background: rgba(52,211,153,0.15); color: #6EE7A0; }
.badge-not-playlist { background: rgba(251,191,36,0.15); color: #FBBF24; }

/* ---- Autocomplete dropdown (event page) ---- */
.autocomplete-wrapper { position: relative; }
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--white);
  border: 2px solid var(--purple);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  overflow: hidden;
  animation: slideIn 0.15s ease;
}
.autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-50);
  transition: background 0.12s;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover, .autocomplete-item.focused {
  background: rgba(139,92,246,0.06);
}
.ac-title { font-size: 0.95rem; font-weight: 700; color: var(--gray-900); }
.ac-artist { font-size: 0.8rem; color: var(--gray-400); }
.ac-no-results {
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--gray-400);
  text-align: center;
}

/* ---- Playlist mode badge (guest) ---- */
.playlist-mode-badge {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(139,92,246,0.08);
  border-radius: var(--radius-lg);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 12px;
}
.playlist-mode-badge.visible { display: flex; }

/* ---- Not-in-playlist prompt ---- */
.not-in-playlist-prompt {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(245,158,11,0.08);
  border: 1.5px solid rgba(245,158,11,0.3);
  border-radius: var(--radius-lg);
  margin-top: 8px;
  animation: slideIn 0.2s ease;
}
.not-in-playlist-prompt.visible { display: flex; }
.not-in-playlist-text { flex: 1; font-size: 0.85rem; color: var(--gray-700); }
.not-in-playlist-text strong { color: var(--gray-900); }
.not-in-playlist-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

/* ---- Selected song indicator ---- */
.song-selected-indicator {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(52,211,153,0.12);
  border: 1.5px solid rgba(52,211,153,0.35);
  border-radius: var(--radius-lg);
  font-size: 0.82rem;
  color: #6EE7A0;
  font-weight: 600;
  margin-top: 6px;
}
.song-selected-indicator.visible { display: flex; }

/* ---- Manual textarea ---- */
.manual-textarea {
  width: 100%;
  min-height: 180px;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  font-family: 'Poppins', monospace;
  resize: vertical;
  color: var(--gray-800);
  transition: var(--transition);
  line-height: 1.7;
}
.manual-textarea:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 4px rgba(139,92,246,0.1); }
.manual-textarea::placeholder { color: var(--gray-400); }

/* ---- Hebrew RTL support ---- */
.input-field[dir="rtl"] { text-align: right; }
.manual-textarea[dir="rtl"] { text-align: right; }

/* ---- Modal wider variant ---- */
.modal-wide { max-width: 660px; }
.modal-footer {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
}

/* ---- Playlist search in modal ---- */
.playlist-modal-search {
  padding: 9px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  width: 100%;
  margin-bottom: 12px;
  transition: var(--transition);
}
.playlist-modal-search:focus { border-color: var(--purple); outline: none; }

/* ---- API key settings card ---- */
.api-key-settings-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(244,114,182,0.04));
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: var(--radius-lg);
}
.api-key-settings-input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-family: 'Courier New', monospace;
}
.api-key-settings-input:focus { border-color: var(--purple); outline: none; }

/* ---- Playlist last updated ---- */
.playlist-updated { font-size: 0.78rem; color: var(--gray-400); margin-top: 4px; }

@media (max-width: 768px) {
  .playlist-tab-header { flex-direction: column; }
  .playlist-stats-bar { gap: 12px; }
  .pl-divider { display: none; }
  .pl-mode-toggle { margin-left: 0; }
  .playlist-toolbar { flex-direction: column; align-items: stretch; }
  .result-stats { gap: 8px; }
  .upload-tabs { flex-direction: column; }
  .api-key-row { flex-direction: column; align-items: flex-start; }
}

/* Stripe placeholder badge */
.stripe-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #635BFF;
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ============================================================
   PAYMENT SYSTEM STYLES
   ============================================================ */

/* --- Payment Connect Card --- */
.payment-connect-card {
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 0;
  border: 2px solid transparent;
}
.stripe-card        { background: linear-gradient(135deg,#635BFF12,#7C3AED08); border-color: #635BFF30; }
.stripe-needs-action { background: linear-gradient(135deg,#FEF3C712,#FDE68A08); border-color: #D9770640; }
.pcc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.pcc-logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; color: white;
  flex-shrink: 0;
}
.stripe-logo  { background: #635BFF; }
.payplus-logo { background: #0059A3; font-size: 0.85rem; }
.pcc-title { font-weight: 700; font-size: 0.95rem; color: var(--gray-800); }
.pcc-sub   { font-size: 0.78rem; color: var(--gray-500); margin-top: 2px; }
.pcc-connected-badge {
  margin-left: auto;
  background: rgba(52,211,153,0.15); color: #6EE7A0;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
}
.pcc-body { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.pcc-feature { font-size: 0.85rem; color: var(--gray-600); }
.pcc-feature-success { color: #6EE7A0; font-weight: 600; }
.pcc-feature-warn    { color: #FBBF24; }
.pcc-badge-amber { margin-left: auto; background: rgba(251,191,36,0.15); color: #FBBF24; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.pcc-manage-row  { margin: 4px 0 8px; }
.pcc-manage-note { font-size: 0.82rem; color: var(--gray-500); cursor: default; }
.pcc-note { font-size: 0.75rem; color: var(--gray-400); text-align: center; margin-top: 12px; }

/* --- Payment Method Buttons --- */
.payment-methods-row {
  display: flex;
  gap: 8px;
  margin: 14px 0 10px;
}
.pay-btn {
  flex: 1;
  height: 50px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.01em;
}
.pay-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.apple-pay-btn { background: #000; color: #fff; }
.apple-pay-btn:hover { background: #111; }
.google-pay-btn { background: #fff; color: #000; border-color: #dadce0; }
.google-pay-btn:hover { background: #f8f8f8; }
.card-pay-btn  { background: var(--gradient); color: white; }
.g-logo { color: #4285F4; font-weight: 900; font-size: 1rem; }

/* --- Payment Loading Overlay --- */
.payment-loading-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9000;
}
.payment-loading-overlay.show { display: flex; }
.payment-loading-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
  animation: slideInBounce 0.3s ease;
}
.payment-loading-spinner {
  font-size: 2.4rem;
  animation: spin 1.4s linear infinite;
  display: inline-block;
  margin-bottom: 16px;
}
.payment-loading-text { font-weight: 700; font-size: 1.05rem; color: var(--gray-800); }
.payment-loading-sub  { font-size: 0.83rem; color: var(--gray-400); margin-top: 4px; }

/* --- Guest Tip Card --- */
.guest-tip-card {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(139,92,246,0.10), rgba(244,114,182,0.06));
  border: 2px solid rgba(139,92,246,0.3);
  border-radius: var(--radius-xl);
  transition: opacity 0.3s, transform 0.3s;
}
.tip-payment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.tip-payment-emoji { font-size: 2rem; }
.tip-payment-title { font-weight: 700; font-size: 1rem; color: var(--gray-800); }
.tip-payment-sub   { font-size: 0.8rem; color: var(--gray-500); margin-top: 2px; }
.tip-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.tip-amount-btn {
  padding: 10px 4px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}
.tip-amount-btn:hover  { border-color: var(--purple); color: var(--purple); }
.tip-amount-btn.active {
  border-color: var(--purple);
  background: rgba(139,92,246,0.14);
  color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.tip-custom-btn { font-size: 0.78rem; }
.tip-breakdown {
  font-size: 0.82rem;
  color: var(--gray-500);
  text-align: center;
  margin: 8px 0;
}
.custom-tip-row {
  margin-bottom: 10px;
}
.tip-currency-sym {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gray-700);
  min-width: 24px;
}
.tip-payment-success {
  text-align: center;
  padding: 20px 0 8px;
  animation: slideInBounce 0.4s ease;
}
.tip-sent-icon   { font-size: 2.6rem; margin-bottom: 8px; }
.tip-sent-title  { font-weight: 700; font-size: 1.05rem; color: var(--gray-800); }
.tip-sent-amount { font-size: 0.88rem; color: var(--gray-500); margin-top: 6px; }
.skip-tip-btn {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 0.82rem;
  cursor: pointer;
  display: block;
  margin: 10px auto 0;
  font-family: 'Poppins', sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.skip-tip-btn:hover { color: var(--gray-600); }

/* --- Setup Checklist --- */
.checklist-container { margin-bottom: 20px; }
.checklist-card {
  background: var(--white);
  border: 2px solid rgba(139,92,246,0.3);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(139,92,246,0.07);
}
.checklist-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.checklist-title { font-weight: 700; font-size: 1rem; color: var(--gray-800); }
.checklist-sub   { font-size: 0.8rem; color: var(--gray-400); margin-top: 2px; }
.checklist-dismiss {
  background: none; border: none; cursor: pointer;
  font-size: 0.9rem; color: var(--gray-500);
  padding: 2px 6px;
}
.checklist-progress-track {
  height: 6px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}
.checklist-progress-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.checklist-items { display: flex; flex-direction: column; gap: 2px; }
.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
}
.checklist-item:not(.done):hover { background: rgba(139,92,246,0.08); }
.checklist-item.done  { opacity: 0.55; cursor: default; }
.ci-check { font-size: 1rem; flex-shrink: 0; }
.ci-icon  { font-size: 1.05rem; flex-shrink: 0; }
.ci-label { font-size: 0.88rem; color: var(--gray-700); font-weight: 500; flex: 1; }
.ci-arrow { font-size: 0.85rem; color: var(--purple); font-weight: 700; flex-shrink: 0; }

/* --- Rich Tips Tab --- */
.earnings-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.earnings-stat-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  text-align: center;
}
.es-icon  { font-size: 1.6rem; margin-bottom: 6px; }
.es-label { font-size: 0.78rem; color: var(--gray-500); font-weight: 500; margin-bottom: 4px; }
.es-value { font-size: 1.5rem; font-weight: 800; color: var(--gray-800); }
.es-sub   { font-size: 0.72rem; color: var(--gray-400); margin-top: 3px; }
.payout-section {
  background: linear-gradient(135deg, rgba(52,211,153,0.12), rgba(52,211,153,0.05));
  border: 1.5px solid rgba(52,211,153,0.35);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.payout-icon  { font-size: 1.8rem; }
.payout-info  { flex: 1; }
.payout-title { font-weight: 700; font-size: 0.95rem; color: #6EE7A0; }
.payout-sub   { font-size: 0.82rem; color: #6EE7A0; margin-top: 2px; }
.tip-link-card {
  background: rgba(139,92,246,0.08);
  border: 1.5px solid rgba(139,92,246,0.25);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  margin-bottom: 24px;
}
.tip-link-header { font-weight: 700; font-size: 0.95rem; color: var(--gray-800); margin-bottom: 6px; }
.tip-link-sub    { font-size: 0.82rem; color: var(--gray-500); margin-bottom: 14px; }
.tip-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 8px 12px;
  margin-bottom: 10px;
}
.tip-link-url {
  flex: 1;
  font-size: 0.8rem;
  color: var(--purple);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tip-link-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.rich-tip-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.rich-tip-row:last-child { border-bottom: none; }
.rich-tip-avatar {
  width: 38px; height: 38px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.9rem;
  flex-shrink: 0;
}
.rich-tip-info { flex: 1; min-width: 0; }
.rich-tip-name { font-weight: 600; font-size: 0.9rem; color: var(--gray-800); }
.rich-tip-meta { font-size: 0.78rem; color: var(--gray-400); margin-top: 2px; }
.rich-tip-right { text-align: right; flex-shrink: 0; }
.rich-tip-amount { font-weight: 800; font-size: 1rem; color: var(--gray-800); }
.rich-tip-processor { font-size: 0.7rem; color: var(--gray-400); margin-top: 3px; }
.tip-proc-stripe  { color: #635BFF; }
.tip-proc-payplus { color: #0059A3; }

/* --- Country Selector --- */
.country-select-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
}
.country-select-label { font-size: 0.88rem; font-weight: 600; color: var(--gray-700); flex-shrink: 0; }
.country-select-el {
  flex: 1;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 8px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  color: var(--gray-800);
  background: var(--white);
  cursor: pointer;
}
.payment-connect-container { margin-top: 0; }

/* --- Tip Page --- */
.tip-page-layout {
  min-height: 100vh;
  background: radial-gradient(900px circle at 50% -10%, rgba(139,92,246,0.20), transparent 60%), var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px 60px;
  position: relative;
  overflow: hidden;
}
.tip-notes-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.tip-page-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
}
.tip-dj-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.tip-dj-avatar {
  width: 80px; height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 900; color: white;
  margin-bottom: 12px;
  border: 4px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 24px rgba(139,92,246,0.4);
}
.tip-dj-name {
  font-size: 1.4rem; font-weight: 800;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.tip-dj-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}
.tip-page-heading {
  font-weight: 800; font-size: 1.2rem;
  color: var(--gray-800);
  text-align: center;
  margin-bottom: 6px;
}
.tip-page-powered {
  position: relative; z-index: 1;
  margin-top: 20px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}
.tip-page-powered a { color: rgba(255,255,255,0.6); }

/* --- Responsive: earnings grid --- */
@media (max-width: 600px) {
  .earnings-stat-grid { grid-template-columns: 1fr 1fr; }
  .tip-amount-grid    { grid-template-columns: repeat(2, 1fr); }
  .payment-methods-row { flex-direction: column; }
  .pay-btn { height: 46px; }
}

/* ==================================================================
   PRINTABLE A4 QR SIGN
   Deliberately light/high-contrast regardless of the site's dark theme —
   printed signs read best under variable venue lighting as bold dark
   text on white paper, and it saves ink vs. printing a black background.
================================================================== */
.print-sign-overlay {
  display: none;
}
.print-sign-page {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  background: #ffffff;
  color: #0A0A0C;
  padding: 20mm 18mm;
  box-sizing: border-box;
  font-family: 'Geist', 'Rubik', -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.print-sign-accent-bar {
  width: 100%;
  height: 10mm;
  background: linear-gradient(90deg, #8B5CF6, #F472B6);
  border-radius: 6mm;
  margin-bottom: 12mm;
  flex-shrink: 0;
}
.print-sign-dj {
  font-size: 16pt;
  font-weight: 600;
  color: #52525B;
  margin-bottom: 2mm;
}
.print-sign-event {
  font-size: 20pt;
  font-weight: 700;
  color: #0A0A0C;
  margin-bottom: 10mm;
}
.print-sign-headline {
  font-size: 44pt;
  font-weight: 800;
  line-height: 1.15;
  color: #0A0A0C;
  margin-bottom: 14mm;
  max-width: 150mm;
}
.print-sign-qr-wrap {
  background: #ffffff;
  padding: 8mm;
  border-radius: 6mm;
  border: 2mm solid #0A0A0C;
  margin-bottom: 10mm;
}
.print-sign-qr-wrap canvas,
.print-sign-qr-wrap img {
  display: block;
  width: 85mm !important;
  height: 85mm !important;
}
.print-sign-instructions {
  font-size: 18pt;
  font-weight: 600;
  color: #27272A;
  margin-bottom: auto;
  max-width: 160mm;
}
.print-sign-pay-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6mm;
  flex-wrap: wrap;
  margin-top: 14mm;
  padding-top: 8mm;
  border-top: 0.5mm solid #E4E4E7;
  width: 100%;
}
.print-sign-pay-label {
  font-size: 11pt;
  font-weight: 600;
  color: #71717A;
  width: 100%;
  margin-bottom: 3mm;
}
.print-sign-pay-pill {
  display: inline-flex;
  align-items: center;
  padding: 3mm 6mm;
  border: 0.4mm solid #D4D4D8;
  border-radius: 999px;
  font-size: 12pt;
  font-weight: 600;
  color: #27272A;
}
.print-sign-footer {
  margin-top: 8mm;
  font-size: 10pt;
  color: #A1A1AA;
  font-weight: 500;
}
[dir="rtl"] .print-sign-page { direction: rtl; }

@media print {
  @page { size: A4 portrait; margin: 0; }
  body * { visibility: hidden; }
  .print-sign-overlay, .print-sign-overlay * { visibility: visible; }
  .print-sign-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #ffffff;
  }
}


/* ==================================
   2026 REDESIGN — BOOTH REQUESTS VIEW
   Requests ranked by tip, big touch actions,
   built to sit next to Serato / Rekordbox
================================== */
.request-item {
  padding: 22px 24px;
  align-items: center;
  border-radius: 18px;
}
.request-item.has-tip.status-pending {
  border-left-color: var(--green);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25), var(--shadow);
}
[dir="rtl"] .request-item.has-tip.status-pending {
  border-right-color: var(--green);
}
.request-song-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.request-song { font-size: 1.25rem; line-height: 1.25; }
.request-artist { font-size: 0.95rem; margin-top: 2px; }
.request-tip-big {
  background: linear-gradient(90deg, #059669, #10B981);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
  white-space: nowrap;
}
.request-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.req-btn {
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  white-space: nowrap;
}
.req-btn:active { transform: scale(0.96); }
.req-btn-copy {
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple, #8B5CF6);
  border: 1px solid rgba(139, 92, 246, 0.4);
}
.req-btn-copy:hover { background: rgba(139, 92, 246, 0.22); }
.req-btn-play {
  background: linear-gradient(90deg, #059669, #10B981);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.req-btn-play:hover { filter: brightness(1.1); }
.req-btn-fave {
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.req-btn-fave:hover { background: rgba(245, 158, 11, 0.22); }
.req-btn-skip {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.req-btn-skip:hover { background: rgba(239, 68, 68, 0.2); }

/* Phones: request card stacks, actions become a full-width grid */
@media (max-width: 640px) {
  .request-item { flex-direction: column; align-items: stretch; }
  .request-rank { display: none; }
  .request-song { font-size: 1.15rem; }
  .request-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    margin-top: 12px;
  }
  .req-btn { width: 100%; text-align: center; padding: 13px 8px; font-size: 0.95rem; }
}

/* ==================================
   2026 REDESIGN — GENERAL DASHBOARD POLISH
================================== */
.stat-card { transition: var(--transition); }
.stat-card:hover { transform: translateY(-2px); }
.stat-value {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.event-card { transition: var(--transition-slow); }
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg, var(--shadow-md)); }

/* ==================================
   2026 REDESIGN — TIP CARD
   Official-style pay buttons + popular chip
================================== */
.pay-btn-v2 {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 12px;
  padding: 13px 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: -apple-system, 'Segoe UI', Roboto, inherit;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  min-height: 48px;
}
.pay-btn-v2:active { transform: scale(0.97); }
.pay-apple  { background: #000; color: #fff; }
.pay-apple:hover { background: #1a1a1a; }
.pay-google { background: #fff; color: #3c4043; border: 1px solid #dadce0; }
.pay-google:hover { background: #f8f9fa; }
.pay-card {
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple, #8B5CF6);
  border: 1px solid rgba(139, 92, 246, 0.45);
}
.pay-card:hover { background: rgba(139, 92, 246, 0.22); }

.tip-amount-btn { position: relative; overflow: visible; }
.tip-amount-btn.tip-popular {
  border-color: var(--purple, #8B5CF6);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}
.tip-popular-chip {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #8B5CF6, #EC4899);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* ==================================
   2026 REDESIGN — INLINE TIP PICKER (request form)
================================== */
.form-tip-picker {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(139, 92, 246, 0.07);
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.form-tip-header { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.form-tip-title  { font-weight: 700; font-size: 0.95rem; }
.form-tip-sub    { font-size: 0.8rem; color: var(--gray-400); }
.form-tip-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.form-tip-btn {
  position: relative;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  border-radius: 12px;
  padding: 12px 6px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.form-tip-btn:hover { border-color: rgba(139, 92, 246, 0.6); }
.form-tip-btn.active {
  border-color: var(--purple, #8B5CF6);
  background: rgba(139, 92, 246, 0.18);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}
.form-tip-none { font-size: 0.8rem; font-weight: 600; color: var(--gray-400); }
@media (max-width: 420px) {
  .form-tip-amounts { grid-template-columns: repeat(2, 1fr); }
}

/* ==================================
   2026 REDESIGN — TIP DIAL
================================== */
.tip-dial { display: flex; justify-content: center; margin: 14px 0 6px; }
.tip-dial-wrap {
  position: relative;
  width: 220px; height: 220px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.tip-dial-wrap:active { cursor: grabbing; }
.tip-dial-ticks { position: absolute; inset: 0; width: 100%; height: 100%; }
.tip-dial-knob {
  position: absolute;
  top: 50%; left: 50%;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.65), 0 2px 6px rgba(0,0,0,0.4);
  transform: rotate(-165deg) translateY(-88px);
  will-change: transform;
  pointer-events: none;
}
.tip-dial-center {
  position: absolute;
  inset: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.tip-dial-value-wrap { text-align: center; min-width: 64px; }
.tip-dial-value {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.15s ease;
}
.tip-dial-symbol { font-size: 0.95rem; color: var(--gray-400); font-weight: 700; margin-top: 2px; }
/* "no tip" state on the request form: dial dims until touched */
.tip-dial-off { opacity: 0.45; filter: saturate(0.4); transition: opacity 0.25s, filter 0.25s; }
.form-tip-none-btn {
  display: block;
  margin: 4px auto 0;
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-tip-none-btn.active { color: var(--gray-300); font-weight: 700; }

/* ==================================
   2026 REDESIGN — REQUEST & PAY STACK
================================== */
.request-pay-stack { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.request-pay-note {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-300);
  margin-bottom: 2px;
}
.rp-btn {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: -apple-system, 'Segoe UI', Roboto, inherit;
  cursor: pointer;
  transition: var(--transition);
}
.rp-btn:active { transform: scale(0.98); }
.rp-apple  { background: #000; color: #fff; }
.rp-apple:hover { background: #1a1a1a; }
.rp-google { background: #fff; color: #3c4043; border: 1px solid #dadce0; }
.rp-google:hover { background: #f8f9fa; }
.rp-row { display: flex; gap: 10px; }
.rp-row .rp-btn { flex: 1; }
.rp-card {
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple, #8B5CF6);
  border: 1px solid rgba(139, 92, 246, 0.45);
}
.rp-card:hover { background: rgba(139, 92, 246, 0.22); }
.rp-bit { background: #00A3E0; color: #fff; }
.rp-bit:hover { background: #0090c7; }
.rp-bit-logo { font-weight: 800; font-style: italic; font-size: 1.2rem; letter-spacing: 0.5px; }

/* ==================================
   2026 REDESIGN — OFFICIAL BRAND MARKS
================================== */
.payment-methods-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-btn-v2 svg, .rp-btn svg { display: inline-block; vertical-align: middle; }
.pay-card, .rp-card { background: #fff !important; border: 1px solid #dadce0 !important; }
.pay-card:hover, .rp-card:hover { background: #f8f9fa !important; }
.rp-card span { color: #3c4043; font-weight: 600; }
.pay-bit, .rp-bit {
  background: #00353B !important;   /* official bit dark teal */
  color: #39EDF6 !important;
  border: none !important;
}
.pay-bit:hover, .rp-bit:hover { filter: brightness(1.15); }
.bit-logo-img { height: 20px; display: inline-block; vertical-align: middle; }
