/* ========================================================
   TIKTOK LIVE PLANNER - RETRO STATIONERY NOTEBOOK STYLE
   Faithfully inspired by the reference image:
   - Vibrant Lime Green Background (#b8e038) with Paper Grain
   - Hot Magenta Spiral Binder with Realistic Oval Loops
   - Clean Graph Paper Grid Canvas
   - Dynamic Likes + Top 1-2-3 Podium Leaderboard
   - Flat Vector Aesthetic (ZERO BLACK SHADOWS, ZERO EMOJIS)
   ======================================================== */

:root {
  /* Exact Colors from Reference */
  --bg-lime: #b8e038;
  --bg-paper: #fffef8;
  --grid-line: rgba(35, 35, 35, 0.08);

  --pink-hot: #ff007f;
  --pink-pastel: #f7a3dc;
  --pink-soft: #ffe6f5;
  
  --ink-black: #18181b;
  --ink-gray: #4b4b54;
  --ink-light: #94949e;

  --accent-red: #ff384e;
  --accent-blue: #4a34f5;
  --accent-yellow: #ffc928;
  --accent-green: #0ecb71;

  --silver: #d4d4dc;
  --bronze: #eab086;

  /* Font: Inter */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-cursive: 'Shantell Sans', cursive, sans-serif;

  /* Clean Solid Vector Outlines (No Box Shadows) */
  --border-thick: 2px solid var(--ink-black);
  --border-thin: 1.5px solid var(--ink-black);
  
  --radius-notebook: 18px;
  --radius-card: 12px;
  --radius-pill: 999px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: var(--bg-lime) !important;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-lime) !important;
  /* Textured Paper Noise Grain Background (Persis Referensi) */
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 80%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.06'/%3E%3C/svg%3E");
  color: var(--ink-black);
  min-height: 100vh;
  padding: 24px 16px;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

.page-wrapper {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ========================================================
   SVG ICON HELPERS
   ======================================================== */
.svg-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.svg-icon-sm {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.svg-icon-xs {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ========================================================
   TOP NAVIGATION BAR
   ======================================================== */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink-hot);
  color: #fff;
  border: var(--border-thick);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 50%;
  animation: pulse-live 1.2s infinite alternate;
}

.live-dot-mini {
  width: 6px;
  height: 6px;
  background-color: var(--pink-hot);
  border-radius: 50%;
  animation: pulse-live 1s infinite alternate;
}

@keyframes pulse-live {
  from { transform: scale(0.8); opacity: 0.5; }
  to { transform: scale(1.2); opacity: 1; }
}

/* TikTok Connect Bar */
.tiktok-connect-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: var(--border-thick);
  padding: 4px 6px;
  border-radius: var(--radius-pill);
}

.connection-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: #f0eee6;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-black);
}

.connection-status-pill.connected {
  background: #d4f7e5;
  color: #056a36;
}

.connection-status-pill.connecting {
  background: #fff3cd;
  color: #856404;
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #888;
}

.connection-status-pill.connected .status-indicator-dot {
  background: var(--accent-green);
}

.connection-status-pill.connecting .status-indicator-dot {
  background: var(--accent-yellow);
}

.connect-input-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.connect-input-group input {
  padding: 6px 10px;
  border: none;
  background: transparent;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  width: 190px;
  color: var(--ink-black);
}

.btn-connect {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--ink-black);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-connect:hover {
  opacity: 0.85;
}

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

.btn-pill-icon {
  width: 38px;
  height: 38px;
  background: var(--bg-paper);
  border: var(--border-thick);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-black);
}

.btn-pill-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-paper);
  border: var(--border-thick);
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-black);
  transition: background-color 0.15s ease;
}

.btn-pill-nav:hover {
  background: #fff;
}

/* Viewer Instruction Banner */
.viewer-instruction-banner {
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}

.tag-announcement {
  background: var(--accent-yellow);
  border: var(--border-thin);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--ink-black);
}

/* ========================================================
   NOTEBOOK PLANNER WRAPPER & CARD
   ======================================================== */
.notebook-wrapper {
  position: relative;
  transform: rotate(-0.5deg);
}

.notebook-card {
  background: var(--bg-paper);
  border: var(--border-thick);
  border-radius: var(--radius-notebook);
  overflow: hidden;
  position: relative;
}

/* Spiral Binder Header */
.spiral-header {
  background: var(--pink-hot);
  padding: 26px 20px 20px 20px;
  position: relative;
  border-bottom: var(--border-thick);
}

.spiral-rings-track {
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  pointer-events: none;
}

.binder-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.binder-ring {
  width: 16px;
  height: 32px;
  background: var(--pink-pastel);
  border: var(--border-thick);
  border-radius: 999px;
  position: relative;
  z-index: 2;
}

.binder-hole {
  width: 8px;
  height: 8px;
  background: var(--ink-black);
  border-radius: 50%;
  position: absolute;
  top: 14px;
  z-index: 1;
}

/* Notebook Body with Clean Graph Paper Grid */
.notebook-body {
  padding: 34px 28px;
  position: relative;
  background-color: var(--bg-paper);
  background-image: 
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 38px 38px;
}

/* Decorative Stars */
.deco-vector-star {
  position: absolute;
  color: var(--pink-hot);
  pointer-events: none;
  user-select: none;
}
.star-solid-1 { top: 38px; left: 45px; width: 22px; height: 22px; }
.star-solid-2 { top: 44px; right: 85px; width: 24px; height: 24px; }
.star-solid-3 { bottom: 44px; left: 95px; width: 20px; height: 20px; color: var(--accent-red); }

/* Hollow Star Sticker (Bottom Left) */
.hollow-star-badge {
  position: absolute;
  bottom: 30px;
  left: 28px;
  width: 36px;
  height: 36px;
  color: var(--pink-hot);
  transform: rotate(-15deg);
  pointer-events: none;
}

/* Pencil Sticker Badge (Top Right) */
.pencil-badge-sticker {
  position: absolute;
  top: 90px;
  right: 32px;
  width: 34px;
  height: 34px;
  background: var(--accent-blue);
  color: #fff;
  border: var(--border-thin);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(12deg);
  pointer-events: none;
}

.pencil-badge-sticker svg {
  width: 20px;
  height: 20px;
}

/* ========================================================
   HERO STICKER TITLE
   ======================================================== */
.hero-sticker-title {
  text-align: center;
  margin-bottom: 26px;
  position: relative;
}

.main-sticker-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink-black);
  background: #fff;
  padding: 8px 26px;
  border-radius: 20px;
  border: var(--border-thick);
}

.curly-highlight {
  font-family: var(--font-cursive);
  color: var(--pink-hot);
  font-style: italic;
  font-size: 2.4rem;
  text-decoration: underline wavy var(--accent-yellow) 3px;
}

/* ========================================================
   2 COLUMN PLANNER GRID
   ======================================================== */
.planner-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  position: relative;
  z-index: 1;
}

@media (max-width: 860px) {
  .planner-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   LEFT COLUMN: AUTO QUEUE SYSTEM
   ======================================================== */
.column-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Active Serving: Sticky Note Card */
.memo-card-active {
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 18px;
  position: relative;
}

/* Tape on top */
.memo-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: rgba(255, 201, 40, 0.9);
  border: 1px dashed rgba(0, 0, 0, 0.35);
  border-radius: 3px;
}

.memo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  margin-bottom: 12px;
}

.memo-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pink-soft);
  color: var(--pink-hot);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: var(--border-thin);
}

.memo-timer-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--ink-black);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.timer-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-yellow);
}

.timer-clock {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 700;
}

/* Serving Profile Content */
.empty-memo-state {
  text-align: center;
  padding: 22px 12px;
  background: #fbf9f2;
  border: 1.5px dashed var(--ink-light);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.empty-vector-icon {
  width: 32px;
  height: 32px;
  color: var(--ink-gray);
  margin-bottom: 6px;
}

.empty-memo-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-black);
  margin-bottom: 4px;
}

.empty-memo-sub {
  font-size: 0.8rem;
  color: var(--ink-gray);
}

.serving-profile {
  background: #fbf9f2;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 12px;
}

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

.profile-avatar {
  width: 44px;
  height: 44px;
  background: var(--pink-hot);
  color: #fff;
  border: var(--border-thick);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}

.profile-avatar img,
.podium-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-text {
  flex: 1;
}

.profile-handle {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink-black);
}

.profile-tag {
  display: inline-block;
  background: var(--accent-yellow);
  color: var(--ink-black);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink-black);
  margin-top: 2px;
}

.profile-quote {
  background: #fff;
  border-left: 3px solid var(--pink-hot);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--ink-black);
  font-style: italic;
  word-break: break-word;
}

/* URL Action Bar in Serving Card */
.url-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f0f7ff;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  margin-top: 8px;
}

.url-badge-link {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: var(--accent-blue);
  font-size: 0.78rem;
  font-weight: 700;
  flex: 1;
}

.url-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.url-action-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-copy-link,
.btn-open-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1.5px solid var(--ink-black);
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.btn-copy-link {
  background: #fff;
  color: var(--ink-black);
}

.btn-copy-link:hover {
  background: var(--pink-soft);
  color: var(--pink-hot);
}

.btn-open-link {
  background: var(--accent-yellow);
  color: var(--ink-black);
}

.btn-open-link:hover {
  opacity: 0.88;
}

.btn-item-action.btn-copy-item {
  background: #eef4ff;
  color: var(--accent-blue);
}

.btn-item-action.btn-copy-item:hover {
  background: var(--accent-blue);
  color: #fff;
}

/* Action Buttons */
.memo-action-buttons {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.btn-sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border: var(--border-thick);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-sticker:hover:not(:disabled) {
  opacity: 0.88;
}

.btn-sticker:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-complete {
  flex: 2;
  background: var(--accent-green);
  color: #fff;
}

.btn-skip {
  flex: 1;
  background: #fff;
  color: var(--ink-black);
}

/* ========================================================
   WAITING LIST
   ======================================================== */
.waiting-box {
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 16px;
}

.waiting-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px dashed var(--ink-light);
}

.waiting-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.waiting-title h3 {
  font-size: 0.95rem;
  font-weight: 800;
}

.pill-counter {
  background: var(--bg-paper);
  border: var(--border-thin);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.pink-counter {
  background: var(--pink-soft);
  color: var(--pink-hot);
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 310px;
  overflow-y: auto;
  padding-right: 6px;
  scroll-behavior: smooth;
}

/* Custom retro notebook scrollbar */
.checklist-items::-webkit-scrollbar {
  width: 6px;
}

.checklist-items::-webkit-scrollbar-track {
  background: #f0eee6;
  border-radius: 999px;
}

.checklist-items::-webkit-scrollbar-thumb {
  background: var(--ink-black);
  border-radius: 999px;
}

.checklist-items::-webkit-scrollbar-thumb:hover {
  background: var(--pink-hot);
}

.queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: #fbf9f2;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease;
}

.queue-item:hover {
  background: #fff;
}

.queue-item.vip-item {
  background: #fff9e6;
  border-left: 4px solid var(--accent-yellow);
}

.queue-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.queue-number {
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
  background: var(--ink-black);
  padding: 2px 6px;
  border-radius: 4px;
}

.queue-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: var(--border-thin);
  overflow: hidden;
  flex-shrink: 0;
  background: #eae8df;
}

.queue-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.queue-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-black);
  display: flex;
  align-items: center;
  gap: 6px;
}

.vip-star {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #d88900;
  font-size: 0.75rem;
  font-weight: 800;
}

.queue-type-text {
  font-size: 0.75rem;
  color: var(--ink-gray);
}

.queue-item-actions {
  display: flex;
  gap: 6px;
}

.btn-item-action {
  width: 26px;
  height: 26px;
  background: #fff;
  border: 1.5px solid var(--ink-black);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-item-action.btn-call {
  background: var(--accent-green);
  color: #fff;
}

.btn-item-action.btn-del {
  background: #ffe6e6;
  color: var(--accent-red);
}

.empty-checklist {
  text-align: center;
  padding: 20px;
  font-size: 0.82rem;
  color: var(--ink-gray);
  border: 1.5px dashed var(--ink-light);
  border-radius: var(--radius-sm);
  background: #fbf9f2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ========================================================
   RIGHT COLUMN: DYNAMIC LIKES & TOP 1-2-3 PODIUM
   ======================================================== */
.column-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.goal-box,
.gift-box {
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 16px;
}

.goal-header,
.gift-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.goal-label-wrap,
.gift-label-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-bubble {
  width: 36px;
  height: 36px;
  border: var(--border-thin);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heart-bubble {
  background: var(--pink-soft);
  color: var(--pink-hot);
}

.gift-bubble {
  background: #e9f0ff;
  color: var(--accent-blue);
}

.goal-header h4,
.gift-header h4 {
  font-size: 0.95rem;
  font-weight: 800;
}

.goal-sub,
.gift-sub {
  font-size: 0.72rem;
  color: var(--ink-gray);
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: var(--border-thin);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--pink-hot);
}

/* Dynamic Live Like Display */
.dynamic-like-display {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.like-counter-large {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.num-current {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--ink-black);
  letter-spacing: -0.02em;
}

.like-unit {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--pink-hot);
}

.dynamic-milestone-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--pink-soft);
  color: var(--pink-hot);
  border: var(--border-thin);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
}

.progress-track {
  width: 100%;
  height: 12px;
  background: #f0eee6;
  border: var(--border-thin);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 0;
}

.progress-fill {
  height: 100%;
  background: var(--pink-hot);
  border-radius: var(--radius-pill);
  transition: width 0.35s ease;
}

/* ========================================================
   TOP 1, 2, 3 LEADERBOARD PODIUM
   ======================================================== */
.podium-wrapper {
  margin-top: 10px;
  margin-bottom: 12px;
}

.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.podium-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.podium-crown-icon {
  margin-bottom: 2px;
  animation: crown-float 2s ease-in-out infinite alternate;
}

@keyframes crown-float {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}

.podium-user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 6px;
}

.podium-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 4px;
}

.podium-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f0eee6;
  border: var(--border-thin);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink-black);
  overflow: hidden;
}

.silver-avatar {
  background: #e8e8ef;
}

.gold-avatar {
  width: 44px;
  height: 44px;
  background: var(--pink-hot);
  color: #fff;
  border: var(--border-thick);
  font-size: 1.1rem;
}

.bronze-avatar {
  background: #f5dfcc;
}

.podium-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 900;
}

.silver-badge {
  background: var(--silver);
  color: var(--ink-black);
}

.gold-badge {
  background: var(--accent-yellow);
  color: var(--ink-black);
}

.bronze-badge {
  background: var(--bronze);
  color: var(--ink-black);
}

.podium-username {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-black);
  width: 100%;
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
}

.gold-user {
  font-size: 0.85rem;
  color: var(--pink-hot);
}

.podium-score-pill {
  font-size: 0.7rem;
  font-weight: 800;
  background: #f0eee6;
  border: 1px solid var(--ink-black);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-top: 2px;
  color: var(--ink-gray);
  white-space: nowrap;
}

.gold-score {
  background: #fff3c4;
  color: var(--ink-black);
  font-weight: 900;
}

/* Staggered Pedestal Stands */
.podium-pedestal {
  width: 100%;
  border: var(--border-thick);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pedestal-rank-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--ink-black);
  opacity: 0.85;
}

.pedestal-1 {
  height: 84px;
  background: #ffdf6d;
}

.pedestal-1 .pedestal-rank-number {
  font-size: 2.2rem;
  opacity: 0.95;
}

.pedestal-2 {
  height: 60px;
  background: #d8d8e2;
}

.pedestal-3 {
  height: 42px;
  background: #eab086;
}

/* Runner Up Rows (#4 & #5) */
.runner-up-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px dashed var(--ink-light);
  padding-top: 8px;
  max-height: 94px;
  overflow-y: auto;
}

.runner-up-list::-webkit-scrollbar {
  width: 5px;
}

.runner-up-list::-webkit-scrollbar-track {
  background: #f0eee6;
  border-radius: 999px;
}

.runner-up-list::-webkit-scrollbar-thumb {
  background: var(--ink-black);
  border-radius: 999px;
}

.runner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: #fbf9f2;
  border: var(--border-thin);
  border-radius: 4px;
  font-size: 0.75rem;
}

.runner-rank {
  font-weight: 800;
  color: var(--ink-gray);
  margin-right: 6px;
}

.runner-name {
  font-weight: 700;
  color: var(--ink-black);
}

.runner-score {
  font-weight: 800;
  color: var(--pink-hot);
}

/* Bottom Stamp */
.notebook-footer-stamp {
  position: absolute;
  bottom: 16px;
  right: 18px;
}

.stamp-circle {
  width: 48px;
  height: 48px;
  background: var(--pink-hot);
  border: var(--border-thick);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-10deg);
}

.stamp-svg {
  width: 36px;
  height: 36px;
}

/* ========================================================
   TOAST NOTIFICATIONS (FLAT CLEAN)
   ======================================================== */
.toast-stream-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
  pointer-events: none;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-pill);
  color: var(--ink-black);
  font-weight: 700;
  font-size: 0.82rem;
  animation: toast-slide 0.25s ease, toast-fade 0.25s ease 3.6s forwards;
}

@keyframes toast-slide {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toast-fade {
  to { transform: translateY(-12px); opacity: 0; }
}

/* ========================================================
   COMPACT WIDGET MODE FOR TIKTOK LIVE STUDIO CAPTURE
   ======================================================== */
body.overlay-mode {
  padding: 4px;
}

body.overlay-mode .top-nav,
body.overlay-mode .viewer-instruction-banner,
body.overlay-mode .like-buttons-row,
body.overlay-mode .queue-item-actions {
  display: none !important;
}

body.overlay-mode .notebook-wrapper {
  transform: none;
}

body.overlay-mode .notebook-body {
  padding: 16px;
}

body.overlay-mode .hero-sticker-title {
  margin-bottom: 14px;
}

body.overlay-mode .main-sticker-heading {
  font-size: 1.6rem;
}

body.overlay-mode .curly-highlight {
  font-size: 1.8rem;
}

/* ========================================================
   SLIDER MODE SWITCHER: REVIEW vs TASK & LIKE
   ======================================================== */
.mode-slider-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2px;
}

.mode-slider-track {
  position: relative;
  display: inline-flex;
  background: #f0ede3;
  padding: 4px;
  border-radius: var(--radius-pill);
  border: var(--border-thick);
  user-select: none;
  width: 100%;
}

.mode-slider-btn {
  position: relative;
  z-index: 2;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink-gray);
  cursor: pointer;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.mode-slider-btn svg {
  transition: transform 0.2s ease;
}

.mode-slider-btn:hover svg {
  transform: scale(1.15);
}

.mode-slider-btn.active {
  color: var(--ink-black);
}

.mode-slider-glider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--accent-yellow);
  border: var(--border-thin);
  border-radius: var(--radius-pill);
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

.mode-slider-track[data-active="leaderboard"] .mode-slider-glider,
.mode-slider-track[data-active="tasks"] .mode-slider-glider {
  transform: translateX(100%);
  background: var(--accent-yellow);
}

.view-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: opacity 0.25s ease;
}

.view-panel.hidden {
  display: none !important;
}

/* ========================================================
   TOP VIEWERS CARD STYLES
   ======================================================== */
.tape-gold {
  background: rgba(255, 201, 40, 0.95); /* Golden Tape */
}

.viewer-status-badge {
  background: #fef3c7;
  color: #b45309;
}

.gold-counter {
  background: #fef3c7;
  color: #b45309;
}

.viewer-podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.viewer-podium-card {
  background: #fbf9f2;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.15s ease;
}

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

.viewer-podium-card.rank-1 {
  background: #fffdf0;
  border-color: #f59e0b;
}

.viewer-avatar-wrap {
  position: relative;
  margin-bottom: 6px;
}

.viewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: var(--border-thin);
  overflow: hidden;
  background: #f0ede3;
}

.viewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.viewer-podium-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-black);
  font-size: 0.65rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-username {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--ink-black);
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.viewer-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.viewer-list-items {
  max-height: 124px;
  overflow-y: auto;
}

.viewer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #fbf9f2;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.viewer-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.viewer-rank-pill {
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--ink-gray);
  min-width: 18px;
}

.viewer-mini-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--ink-black);
  overflow: hidden;
  background: #eae8df;
}

.viewer-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.viewer-row-name {
  font-weight: 700;
  color: var(--ink-black);
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viewer-row-score {
  font-size: 0.72rem;
  font-weight: 800;
  color: #92400e;
  background: #fef3c7;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

/* ========================================================
   INTERACTION SUB-TABS (LIKE vs SHARE)
   ======================================================== */
.interact-leaderboard-box {
  background: #fff;
}

.sub-tab-track {
  position: relative;
  display: inline-flex;
  background: #f0ede3;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: var(--border-thin);
  user-select: none;
}

.sub-tab-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ink-gray);
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.sub-tab-btn.active {
  color: var(--ink-black);
}

.sub-tab-glider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: #fff;
  border: 1.5px solid var(--ink-black);
  border-radius: var(--radius-pill);
  z-index: 1;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sub-tab-track[data-active="share"] .sub-tab-glider {
  transform: translateX(100%);
}

.sub-tab-panel {
  display: flex;
  flex-direction: column;
}

.sub-tab-panel.hidden {
  display: none !important;
}

/* ========================================================
   TOP SHARERS STYLES
   ======================================================== */
.sharer-podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.sharer-podium-card {
  background: #fbf9f2;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.15s ease;
}

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

.sharer-podium-card.rank-1 {
  background: #f0f7ff;
  border-color: #3b82f6;
}

.sharer-avatar-wrap {
  position: relative;
  margin-bottom: 6px;
}

.sharer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: var(--border-thin);
  overflow: hidden;
  background: #f0ede3;
}

.sharer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sharer-podium-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-black);
  font-size: 0.65rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-blue { background: #60a5fa; color: #fff; }

.sharer-username {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--ink-black);
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.sharer-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.sharer-list-items {
  max-height: 124px;
  overflow-y: auto;
}

.sharer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #fbf9f2;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.sharer-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sharer-rank-pill {
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--ink-gray);
  min-width: 18px;
}

.sharer-mini-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--ink-black);
  overflow: hidden;
  background: #eae8df;
}

.sharer-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sharer-row-name {
  font-weight: 700;
  color: var(--ink-black);
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sharer-row-score {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0369a1;
  background: #e0f2fe;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.share-icon-blue {
  color: #0284c7;
}



/* ========================================================
   LIKE LEADERBOARD (TOP LIKERS) STYLES
   ======================================================== */
.like-leaderboard-box {
  background: #fff;
}

.heart-bubble-mini {
  width: 26px;
  height: 26px;
  background: var(--pink-soft);
  color: var(--pink-hot);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--pink-hot);
}

.red-counter {
  background: #ffe4e6;
  color: #e11d48;
}

.liker-podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.liker-podium-card {
  background: #fbf9f2;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.15s ease;
}

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

.liker-podium-card.rank-1 {
  background: #fffdf0;
  border-color: #f59e0b;
}

.liker-avatar-wrap {
  position: relative;
  margin-bottom: 6px;
}

.liker-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: var(--border-thin);
  overflow: hidden;
  background: #f0ede3;
}

.liker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.liker-podium-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-black);
  font-size: 0.65rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-gold { background: #ffc928; color: #18181b; }
.badge-silver { background: #d8d8e2; color: #18181b; }
.badge-bronze { background: #eab086; color: #18181b; }

.liker-username {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--ink-black);
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.liker-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #ffe4e6;
  color: #e11d48;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.liker-list-items {
  max-height: 124px;
  overflow-y: auto;
}

.liker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #fbf9f2;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.liker-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.liker-rank-pill {
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--ink-gray);
  min-width: 18px;
}

.liker-mini-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--ink-black);
  overflow: hidden;
  background: #eae8df;
}

.liker-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.liker-row-name {
  font-weight: 700;
  color: var(--ink-black);
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.liker-row-score {
  font-size: 0.72rem;
  font-weight: 800;
  color: #e11d48;
  background: #ffe4e6;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.heart-icon-pink {
  color: var(--pink-hot);
}

.hidden {
  display: none !important;
}

