/* Cleanlink Inspired Luxury Dark Theme
 * Primary Accent: Neon Rose Pink (#e84a86 / #f43f85)
 * Background: Deep Obsidian Slate (#0b0c11) with ambient wine-rose glow & fine grid
 * Typography: Modern bold Pretendard / Apple SD Gothic Neo
 */

:root {
  --clean-pink: #e84a86;
  --clean-pink-hover: #d23672;
  --clean-pink-glow: rgba(232, 74, 134, 0.35);
  --clean-pink-soft: rgba(232, 74, 134, 0.12);
  
  --clean-bg: #0b0c11;
  --clean-card-bg: #14151c;
  --clean-card-hover: #191b24;
  --clean-border: rgba(255, 255, 255, 0.08);
  --clean-border-active: #e84a86;

  --clean-text-primary: #f8fafc;
  --clean-text-secondary: #94a3b8;
  --clean-text-muted: #64748b;

  --clean-radius-card: 20px;
  --clean-radius-btn: 12px;
  --clean-radius-pill: 9999px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
  background-color: var(--clean-bg);
  color: var(--clean-text-primary);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(232, 74, 134, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(232, 74, 134, 0.08) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px, 28px 28px;
}

.toss-container {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  padding: 24px 18px 48px;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.clean-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clean-logo-icon {
  background: var(--clean-pink);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 14px var(--clean-pink-glow);
}

.clean-logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--clean-text-primary);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.clean-logo-text span {
  color: var(--clean-pink);
}

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

/* Language Selector */
.lang-select-wrap {
  position: relative;
}

.lang-select {
  background: #181924;
  border: 1px solid var(--clean-border);
  border-radius: var(--clean-radius-pill);
  color: var(--clean-text-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 8px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.lang-select:focus {
  border-color: var(--clean-pink);
}

.install-pill-btn {
  background: rgba(232, 74, 134, 0.15);
  border: 1px solid var(--clean-pink);
  color: var(--clean-pink);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--clean-radius-pill);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.install-pill-btn:hover, .install-pill-btn:active {
  background: var(--clean-pink);
  color: #ffffff;
  box-shadow: 0 0 10px var(--clean-pink-glow);
}

.reset-btn {
  background: #181922;
  border: 1px solid var(--clean-border);
  color: var(--clean-text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--clean-radius-pill);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.reset-btn:hover, .reset-btn:active {
  border-color: var(--clean-pink);
  color: var(--clean-pink);
}

/* Kicker Tag (Like CLEAN WORK. CLEAR CONNECTION.) */
.kicker-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--clean-pink);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.kicker-tag .dot {
  width: 6px;
  height: 6px;
  background: var(--clean-pink);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--clean-pink);
}

/* Navigation Tabs */
.mode-tabs {
  display: flex;
  background: #12131a;
  border: 1px solid var(--clean-border);
  border-radius: var(--clean-radius-pill);
  padding: 4px;
  margin-bottom: 20px;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mode-tabs::-webkit-scrollbar {
  display: none;
}

.mode-tab {
  flex: 1 0 auto;
  min-width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 8px 10px;
  border-radius: var(--clean-radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--clean-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.mode-tab.active {
  background: var(--clean-pink);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--clean-pink-glow);
}

/* Main Section Titles */
.section-intro {
  margin-bottom: 20px;
}

.main-hero-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--clean-text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.main-hero-title .pink-highlight {
  color: var(--clean-pink);
  display: block;
}

.main-hero-desc {
  font-size: 13.5px;
  color: var(--clean-text-secondary);
  line-height: 1.55;
  font-weight: 400;
}

/* Cards */
.card {
  background: var(--clean-card-bg);
  border: 1px solid var(--clean-border);
  border-radius: var(--clean-radius-card);
  padding: 22px 18px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-3d {
  background: var(--clean-card-bg);
  border: 1px solid var(--clean-border);
  border-radius: var(--clean-radius-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.control-group {
  margin-bottom: 20px;
}

.group-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--clean-text-secondary);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

/* Chips Grid */
.gender-chips, .age-chips, .weather-chips, .tpo-chips, .tpo-chips-extended, .part-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.chip {
  background: #181a24;
  border: 1px solid var(--clean-border);
  border-radius: var(--clean-radius-btn);
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--clean-text-secondary);
  transition: all 0.15s ease;
  user-select: none;
}

.chip:active {
  transform: scale(0.97);
}

.chip .emoji {
  font-size: 16px;
  transition: transform 0.15s;
}

.chip.active {
  background: var(--clean-pink) !important;
  border-color: var(--clean-pink) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px var(--clean-pink-glow) !important;
  transform: translateY(-1px);
}

.chip.active .name {
  color: #ffffff !important;
  font-weight: 800 !important;
}

.chip.active .emoji {
  transform: scale(1.18);
}

/* Beauty Matrix Box */
.beauty-matrix-box {
  background: linear-gradient(145deg, #18141f 0%, #151622 100%);
  border: 1px solid rgba(232, 74, 134, 0.25);
  border-radius: var(--clean-radius-card);
  padding: 18px 16px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.beauty-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.sparkle-icon {
  font-size: 22px;
}

.header-texts .title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.header-texts .hint {
  display: block;
  font-size: 11px;
  color: var(--clean-pink);
  margin-top: 2px;
}

.beauty-row {
  margin-bottom: 12px;
}

.beauty-row:last-child {
  margin-bottom: 0;
}

.beauty-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--clean-text-secondary);
  margin-bottom: 6px;
}

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

.chip-sm {
  background: #1f212c;
  border: 1px solid var(--clean-border);
  border-radius: var(--clean-radius-pill);
  padding: 6px 11px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--clean-text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.chip-sm.active {
  background: var(--clean-pink);
  color: #ffffff;
  border-color: var(--clean-pink);
  box-shadow: 0 4px 12px var(--clean-pink-glow);
}

.texture-toggle {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.pill-btn {
  flex: 1;
  background: #181a24;
  border: 1px solid var(--clean-border);
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--clean-text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.pill-btn.active {
  background: rgba(232, 74, 134, 0.15);
  border-color: var(--clean-pink);
  color: #ffffff;
  font-weight: 700;
}

/* Custom TPO Input */
.custom-tpo-box {
  margin-top: 10px;
}

.toss-input {
  width: 100%;
  background: #161822;
  border: 1px solid var(--clean-border);
  border-radius: var(--clean-radius-btn);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--clean-text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.toss-input:focus {
  border-color: var(--clean-pink);
  background: #1a1c28;
}

/* Compare Grid */
.compare-grid {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.outfit-slot {
  flex: 1;
  background: #161822;
  border: 1px solid var(--clean-border);
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
  transition: all 0.2s;
}

.slot-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--clean-text-muted);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.slot-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 84px;
  justify-content: center;
}

.slot-icon {
  font-size: 32px;
}

.slot-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--clean-text-primary);
  line-height: 1.35;
}

.user-photo-preview {
  width: 100%;
  height: 95px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--clean-border);
}

.slot-btn-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.photo-upload-label {
  display: block;
  background: var(--clean-pink);
  color: #ffffff;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--clean-pink-glow);
  transition: opacity 0.15s;
}

.photo-upload-label:active {
  opacity: 0.85;
}

.hidden-file-input {
  display: none !important;
}

.slot-change-btn {
  background: #202330;
  border: 1px solid var(--clean-border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--clean-text-secondary);
  cursor: pointer;
  width: 100%;
  transition: all 0.15s;
}

.slot-change-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.vs-divider {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  background: var(--clean-pink);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px var(--clean-pink-glow);
}

.photo-guide-hint {
  font-size: 11.5px;
  color: var(--clean-pink);
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
}

/* Social Proof Bar */
.clean-social-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #141620;
  border: 1px solid var(--clean-border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 14px;
}

.avatar-group {
  display: flex;
  align-items: center;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #232634;
  border: 2px solid #141620;
  color: var(--clean-pink);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -6px;
}

.avatar:first-child {
  margin-left: 0;
}

.social-text {
  display: flex;
  flex-direction: column;
}

.social-text strong {
  font-size: 12px;
  color: #ffffff;
  font-weight: 700;
}

.social-text span {
  font-size: 11px;
  color: var(--clean-text-muted);
}

/* Primary Big CTA Button (Cleanlink Rose Pink) */
.primary-btn {
  width: 100%;
  background: var(--clean-pink);
  color: #ffffff;
  border: none;
  border-radius: var(--clean-radius-btn);
  padding: 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--clean-pink-glow);
  transition: all 0.2s;
  letter-spacing: -0.3px;
  margin-top: 12px;
}

.primary-btn:active {
  transform: translateY(2px) scale(0.99);
  opacity: 0.9;
}

.secondary-btn {
  width: 100%;
  background: #181924;
  color: var(--clean-text-primary);
  border: 1px solid var(--clean-border);
  border-radius: var(--clean-radius-btn);
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.secondary-btn:hover {
  border-color: var(--clean-pink);
  color: var(--clean-pink);
}

/* Result Section */
.winner-banner {
  text-align: center;
  padding: 22px 14px 24px;
  background: linear-gradient(180deg, #231322 0%, #171822 100%);
  border-radius: var(--clean-radius-card);
  margin-bottom: 18px;
  border: 1.5px solid rgba(232, 74, 134, 0.4);
  box-shadow: 0 10px 30px rgba(232, 74, 134, 0.15);
}

.winner-trophy {
  font-size: 36px;
  display: block;
  margin-bottom: 6px;
}

.winner-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: var(--clean-pink);
  padding: 4px 10px;
  border-radius: var(--clean-radius-pill);
  margin-bottom: 8px;
  box-shadow: 0 2px 8px var(--clean-pink-glow);
}

.winner-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.winner-score {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--clean-pink);
}

/* Reasons Box */
.reasons-box {
  background: #151722;
  border-radius: 16px;
  padding: 16px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--clean-border);
}

.reasons-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.reasons-list {
  list-style: none;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--clean-text-secondary);
}

.reasons-list li {
  margin-bottom: 10px;
}

.reasons-list li:last-child {
  margin-bottom: 0;
}

.reasons-list strong {
  color: #ffffff;
}

/* Grooming Box */
.grooming-box {
  margin-bottom: 16px;
}

.grooming-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.grooming-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.groom-card {
  background: #181924;
  border: 1px solid var(--clean-border);
  border-radius: 14px;
  padding: 12px;
}

.groom-card .type {
  font-size: 11px;
  font-weight: 700;
  color: var(--clean-pink);
  display: block;
  margin-bottom: 3px;
}

.groom-card .val {
  font-size: 12.5px;
  font-weight: 750;
  color: #ffffff;
  display: block;
  margin-bottom: 2px;
}

.groom-card .sub {
  font-size: 11px;
  color: var(--clean-text-muted);
}

/* Confidence Booster */
.booster-box {
  background: linear-gradient(135deg, #241424 0%, #161722 100%);
  border: 1px solid rgba(232, 74, 134, 0.3);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.booster-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.booster-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #fce7f3;
  margin: 0;
}

/* Daily Tone Cards */
.tone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tone-card {
  background: #181a24;
  border: 1px solid var(--clean-border);
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.tone-card:active {
  border-color: var(--clean-pink);
  box-shadow: 0 4px 16px var(--clean-pink-soft);
}

.tone-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--clean-radius-pill);
  margin-bottom: 8px;
  color: #ffffff;
}

.spring-bg { background: #e07a5f; }
.summer-bg { background: #6b8eb9; }
.autumn-bg { background: #b07d4b; }
.winter-bg { background: #7c3aed; }

.palette-preview {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.palette-preview span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
}

.tone-summary {
  font-size: 11.5px;
  color: var(--clean-text-muted);
}

.link-button {
  background: none;
  border: none;
  color: var(--clean-pink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* Daily Prescription Palette */
.palette-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.palette-item {
  background: #181a24;
  border: 1px solid var(--clean-border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.color-info strong {
  display: block;
  font-size: 12.5px;
  color: #ffffff;
}

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

.accent-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.accent-card {
  background: #181a24;
  border: 1px solid var(--clean-border);
  border-radius: 12px;
  padding: 10px 12px;
}

.accent-type {
  font-size: 11px;
  color: var(--clean-pink);
  font-weight: 700;
  display: block;
}

.accent-card strong {
  font-size: 12.5px;
  color: #ffffff;
  display: block;
}

.accent-sub {
  font-size: 11px;
  color: var(--clean-text-muted);
}

.stylist-note-box {
  background: #161822;
  border: 1px solid var(--clean-border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--clean-text-secondary);
}

.stylist-note-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--clean-pink);
}

.action-btn-group {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-card {
  background: #181924;
  border: 1px solid var(--clean-border);
  border-radius: 22px;
  padding: 22px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

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

.modal-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--clean-text-muted);
}

.q-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--clean-text-primary);
  line-height: 1.4;
}

.quiz-opt {
  width: 100%;
  background: #13141c;
  border: 1px solid var(--clean-border);
  border-radius: 12px;
  padding: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--clean-text-secondary);
  text-align: left;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.quiz-opt:active {
  border-color: var(--clean-pink);
  background: rgba(232, 74, 134, 0.15);
  color: #ffffff;
}

/* Live Neon Billboard Bar */
.live-billboard-bar {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #1f1320 0%, #151624 100%);
  border: 1px solid rgba(232, 74, 134, 0.3);
  border-radius: var(--clean-radius-pill);
  padding: 6px 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(232, 74, 134, 0.15);
}

.billboard-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--clean-pink);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--clean-radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 10px;
  box-shadow: 0 2px 8px var(--clean-pink-glow);
}

.live-dot {
  width: 5px;
  height: 5px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

.billboard-ticker {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.ticker-text {
  display: inline-block;
  font-size: 11.5px;
  color: #fce7f3;
  font-weight: 600;
  animation: tickerSlide 14s linear infinite;
}

@keyframes tickerSlide {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Feed Post Cards */
.feed-card {
  background: #161824;
  border: 1px solid var(--clean-border);
  border-radius: var(--clean-radius-card);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

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

.feed-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.feed-badge {
  background: rgba(232, 74, 134, 0.15);
  border: 1px solid var(--clean-pink);
  color: var(--clean-pink);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--clean-radius-pill);
}

.feed-nick {
  font-size: 12px;
  color: var(--clean-text-muted);
  font-weight: 600;
}

.feed-rating-pill {
  font-size: 11px;
  font-weight: 800;
  color: #facc15;
  background: #25221b;
  border: 1px solid #713f12;
  padding: 3px 8px;
  border-radius: var(--clean-radius-pill);
}

.feed-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.4;
}

.translate-btn {
  background: rgba(232, 74, 134, 0.08);
  border: 1px solid rgba(232, 74, 134, 0.25);
  color: var(--clean-pink);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 8px;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.translate-btn:hover {
  background: rgba(232, 74, 134, 0.2);
}

.translated-badge {
  font-size: 10px;
  color: #9ca3af;
  margin-left: 6px;
  font-weight: normal;
}

.feed-img-box {
  background: #11121a;
  border: 1px solid var(--clean-border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin-bottom: 12px;
}

.feed-mock-img {
  font-size: 13px;
  font-weight: 700;
  color: var(--clean-pink);
}

.shopping-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 8px 10px;
  background: #1b1d2a;
  border-radius: 8px;
}

.tag-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--clean-text-muted);
}

.shop-tag {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: #272a3c;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feed-vote-row {
  display: flex;
  gap: 8px;
}

.vote-btn {
  flex: 1;
  background: #1b1d2a;
  border: 1px solid var(--clean-border);
  border-radius: 10px;
  padding: 9px 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--clean-text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.vote-btn.active {
  background: var(--clean-pink);
  color: #ffffff;
  border-color: var(--clean-pink);
  box-shadow: 0 4px 12px var(--clean-pink-glow);
}

/* Post Barrier Box */
.post-barrier-box {
  background: linear-gradient(135deg, #221422 0%, #151622 100%);
  border: 1px solid rgba(232, 74, 134, 0.3);
  border-radius: 16px;
  padding: 18px 16px;
  margin-top: 20px;
  text-align: center;
}

.barrier-text {
  font-size: 12.5px;
  color: #fce7f3;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Comments & Nested Replies (Everytime Style) */
.comments-container {
  margin-top: 14px;
  border-top: 1px solid var(--clean-border);
  padding-top: 12px;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--clean-pink);
  cursor: pointer;
  margin-bottom: 10px;
}

.toggle-arrow {
  font-size: 10px;
  color: var(--clean-text-muted);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-item {
  background: #11121a;
  border: 1px solid var(--clean-border);
  border-radius: 12px;
  padding: 10px 12px;
}

.comment-item.reply {
  margin-left: 20px;
  background: #1a1622;
  border-left: 2.5px solid var(--clean-pink);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.user-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--clean-radius-pill);
}

.user-badge.anon {
  background: #232635;
  color: var(--clean-text-secondary);
}

.user-badge.author {
  background: var(--clean-pink);
  color: #ffffff;
  box-shadow: 0 2px 6px var(--clean-pink-glow);
}

.comment-time {
  font-size: 10.5px;
  color: var(--clean-text-muted);
}

.comment-text {
  font-size: 12px;
  color: var(--clean-text-primary);
  line-height: 1.45;
  margin: 0;
}

.comment-input-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.comment-input {
  flex: 1;
  background: #161822;
  border: 1px solid var(--clean-border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11.5px;
  color: var(--clean-text-primary);
  outline: none;
}

.comment-input:focus {
  border-color: var(--clean-pink);
}

.comment-submit-btn {
  background: var(--clean-pink);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

/* Modal Ranking */
.modal-ranking {
  max-width: 390px;
}

.ranking-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trophy-emoji {
  font-size: 28px;
}

.ranking-sub {
  font-size: 11px;
  color: var(--clean-text-muted);
  margin-top: 2px;
}

.ranking-age-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #141620;
  border: 1px solid var(--clean-border);
  border-radius: 14px;
  padding: 12px 14px;
  transition: all 0.15s;
}

.rank-item:active {
  border-color: var(--clean-pink);
  background: #1a1624;
}

.rank-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--clean-text-muted);
  width: 44px;
  flex-shrink: 0;
}

.rank-num.gold {
  color: #fbbf24;
  font-size: 13px;
}

.rank-num.silver {
  color: #e2e8f0;
}

.rank-num.bronze {
  color: #d97706;
}

.rank-info {
  display: flex;
  flex-direction: column;
}

.rank-info strong {
  font-size: 12.5px;
  color: #ffffff;
  line-height: 1.35;
}

.rank-info span {
  font-size: 11px;
  color: var(--clean-pink);
  margin-top: 2px;
  font-weight: 600;
}

.live-billboard-bar {
  cursor: pointer;
}

/* ==========================================================================
   Super Admin Backoffice & Data Miner Styles
   ========================================================================== */
.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 12px;
}

.admin-badge {
  display: inline-block;
  background: rgba(232, 74, 134, 0.15);
  border: 1px solid var(--clean-pink);
  color: var(--clean-pink);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--clean-radius-pill);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.admin-main-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.admin-desc {
  font-size: 11.5px;
  color: var(--clean-text-muted);
  margin: 0;
}

.admin-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #152219;
  border: 1px solid #10b981;
  color: #10b981;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--clean-radius-pill);
  flex-shrink: 0;
}

.status-dot-green {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

/* KPI Grid */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.kpi-card {
  background: #13141d;
  border: 1px solid var(--clean-border);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 11px;
  color: var(--clean-text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.kpi-val {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.kpi-val small {
  font-size: 12px;
  font-weight: 600;
  color: var(--clean-text-secondary);
  margin-left: 2px;
}

.kpi-trend {
  font-size: 10.5px;
  color: var(--clean-text-muted);
  margin-top: 6px;
  font-weight: 600;
}

.kpi-trend.up {
  color: var(--clean-pink);
}

/* Admin Box */
.admin-box {
  background: #13141d;
  border: 1px solid var(--clean-border);
  border-radius: var(--clean-radius-card);
  padding: 18px 14px;
  margin-bottom: 18px;
}

.admin-box-header {
  margin-bottom: 14px;
}

.admin-box-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.box-sub {
  font-size: 11px;
  color: var(--clean-text-muted);
}

/* Input Group */
.admin-input-group {
  display: flex;
  gap: 8px;
}

.admin-input {
  flex: 1;
  background: #1a1c26;
  border: 1px solid var(--clean-border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  color: #ffffff;
  outline: none;
}

.admin-input:focus {
  border-color: var(--clean-pink);
}

.sm-btn {
  padding: 10px 16px !important;
  font-size: 12px !important;
  white-space: nowrap;
}

/* Charts & Data Mining */
.chart-container {
  background: #0f1017;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 14px 12px;
  margin-bottom: 14px;
}

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

.chart-header strong {
  font-size: 12.5px;
  color: #ffffff;
}

.chart-meta {
  font-size: 10.5px;
  color: var(--clean-text-muted);
}

.bar-chart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bar-info {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
}

.bar-info span {
  color: var(--clean-text-secondary);
}

.bar-info strong {
  color: var(--clean-pink);
  font-weight: 700;
}

.bar-track {
  width: 100%;
  height: 8px;
  background: #1b1d28;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #e84a86 0%, #ff6b9d 100%);
  border-radius: 4px;
  box-shadow: 0 0 8px var(--clean-pink-glow);
}

/* Subgrid */
.admin-subgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.subgrid-card {
  background: #0f1017;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
}

.subgrid-card strong {
  display: block;
  font-size: 12px;
  color: #ffffff;
  margin-bottom: 8px;
}

.trend-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trend-list li {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.trend-list li span {
  color: var(--clean-text-muted);
}

.trend-list li strong {
  color: var(--clean-text-primary);
  margin-bottom: 0;
  font-size: 11.5px;
}

/* Excel Download Box */
.admin-excel-box {
  background: linear-gradient(135deg, #1b1726 0%, #11121b 100%);
  border: 1px solid rgba(232, 74, 134, 0.35);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}

.excel-info strong {
  display: block;
  font-size: 12.5px;
  color: #ffffff;
  margin-bottom: 4px;
}

.excel-info p {
  font-size: 11px;
  color: var(--clean-text-muted);
  margin: 0 0 12px 0;
}

.excel-download-btn {
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: var(--clean-radius-pill);
  padding: 12px 18px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  width: 100%;
  transition: all 0.2s;
}

.excel-download-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

/* Moderation Post List */
.admin-post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-post-item {
  background: #0f1017;
  border: 1px solid var(--clean-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.post-preview-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.post-id {
  font-size: 10px;
  color: var(--clean-pink);
  font-weight: 700;
}

.post-preview-info strong {
  font-size: 12px;
  color: #ffffff;
  line-height: 1.3;
}

.post-stat {
  font-size: 10.5px;
  color: var(--clean-text-muted);
}

.post-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.badge-status.normal {
  font-size: 10px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-status.blinded {
  font-size: 10px;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-blind {
  background: #25161c;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-blind:active {
  background: #ef4444;
  color: #ffffff;
}

/* Floating PWA Install Banner */
.pwa-install-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  background: #181926;
  border: 1.5px solid var(--clean-pink);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px var(--clean-pink-glow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  animation: slideUpBanner 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpBanner {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pwa-banner-icon {
  font-size: 24px;
}

.pwa-banner-text {
  display: flex;
  flex-direction: column;
}

.pwa-banner-text strong {
  font-size: 12.5px;
  color: #ffffff;
}

.pwa-banner-text span {
  font-size: 10.5px;
  color: var(--clean-text-muted);
}

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

.pwa-banner-btn {
  background: var(--clean-pink);
  color: #ffffff;
  border: none;
  border-radius: var(--clean-radius-pill);
  padding: 8px 14px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--clean-pink-glow);
  white-space: nowrap;
}

.pwa-banner-close {
  background: transparent;
  border: none;
  color: var(--clean-text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

/* Footer */
.app-footer {
  margin-top: auto;
  text-align: center;
  padding-top: 24px;
  font-size: 11px;
  color: var(--clean-text-muted);
}

.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
