:root {
  --bg-black: #05080F;
  --glass-bg: rgba(13, 21, 36, 0.58);
  --glass-input: rgba(7, 12, 22, 0.72);
  --glass-border: rgba(125, 211, 252, 0.22);
  --sky-light: #BAE6FD;
  --sky-main: #38BDF8;
  --sky-vivid: #0EA5E9;
  --holo-indigo: #818CF8;
  --text-white: #F8FAFC;
  --text-muted: #94A3B8;

  /* Dynamic Streak Variables */
  --streak-color: #E935A8;
  --streak-soft-bg: rgba(233, 53, 168, 0.12);
  --streak-border: rgba(233, 53, 168, 0.34);
}

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

html, body {
  min-height: 100%;
  background-color: var(--bg-black);
  background-image:
    radial-gradient(ellipse 75% 45% at 18% 0%, rgba(56, 189, 248, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 65% 40% at 88% 12%, rgba(129, 140, 248, 0.12) 0%, transparent 58%),
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(14, 165, 233, 0.11) 0%, transparent 62%),
    linear-gradient(180deg, #05080F 0%, #080D18 55%, #05080F 100%);
  color: var(--text-white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, textarea {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

/* ==================== MODAL POP-UP GLASSMORPHISM ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 6, 12, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(155deg, rgba(16, 27, 48, 0.9) 0%, rgba(8, 13, 24, 0.95) 100%);
  border-radius: 24px;
  padding: 28px 22px 24px;
  text-align: center;
  border: 1px solid rgba(125, 211, 252, 0.42);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(56, 189, 248, 0.22),
    inset 0 1px 0 rgba(224, 242, 254, 0.25);
  animation: modalFadeUp 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes modalFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-icon-wrap {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(129, 140, 248, 0.18));
  border: 1px solid rgba(125, 211, 252, 0.5);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.28);
  color: #7DD3FC;
}

.modal-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E0F2FE;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.42);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 19px;
  line-height: 1.3;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.modal-text {
  font-size: 12.8px;
  line-height: 1.65;
  color: #CBD5E1;
  margin-bottom: 22px;
}

.modal-highlight {
  color: #7DD3FC;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 13.5px;
  color: #04101D;
  background: linear-gradient(115deg, #BAE6FD 0%, #38BDF8 45%, #22D3EE 75%, #818CF8 100%);
  border: 1px solid rgba(224, 242, 254, 0.55);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.34);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-wa:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.5);
}

.btn-modal-close {
  width: 100%;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #E2E8F0;
  font-size: 13px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-modal-close:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(125, 211, 252, 0.48);
  color: #FFFFFF;
}

/* ==================== MAIN CONTAINER & HEADER ==================== */
.app-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 15px 44px;
}

.site-header {
  position: relative;
  text-align: center;
  padding: 22px 16px 24px;
  margin-bottom: 22px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(17, 29, 52, 0.62) 0%, rgba(8, 13, 24, 0.72) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(125, 211, 252, 0.28);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(224, 242, 254, 0.22);
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #BAE6FD, #38BDF8, #818CF8, transparent);
  opacity: 0.9;
}

.sparkle {
  position: absolute;
  pointer-events: none;
  opacity: 0.8;
}

.sparkle-1 { top: 16px; left: 18px; color: #E0F2FE; }
.sparkle-2 { top: 20px; right: 20px; color: #38BDF8; }
.sparkle-3 { bottom: 14px; left: 12%; color: #38BDF8; }
.sparkle-4 { bottom: 16px; right: 11%; color: #A5B4FC; }

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E0F2FE;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(125, 211, 252, 0.36);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.site-title {
  font-size: clamp(23px, 5.8vw, 37px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #FFFFFF 0%, #BAE6FD 32%, #38BDF8 64%, #A5B4FC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.38));
}

.site-subtitle {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==================== WORKSPACE GRID ==================== */
.workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 900px) {
  .workspace {
    grid-template-columns: 1fr 410px;
    gap: 26px;
  }
}

/* ==================== GLASS CONTROL PANEL ==================== */
.panel-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 20px;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(224, 242, 254, 0.14);
  transition: border-color 0.2s ease;
}

.panel-card:hover {
  border-color: rgba(125, 211, 252, 0.38);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.panel-heading-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: #FFFFFF;
}

.panel-heading-title svg {
  color: #38BDF8;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #BAE6FD;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 8px #38BDF8;
}

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

.control-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #E2E8F0;
  margin-bottom: 8px;
}

.control-label svg {
  color: #38BDF8;
  flex-shrink: 0;
}

/* Upload Profile Box */
.upload-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--glass-input);
  border: 1px dashed rgba(56, 189, 248, 0.45);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-box:hover {
  border-color: #7DD3FC;
  background: rgba(14, 24, 42, 0.85);
}

.upload-thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #38BDF8;
  flex-shrink: 0;
  background: #0F172A;
}

.upload-info {
  flex: 1;
  min-width: 0;
}

.upload-file-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(115deg, #7DD3FC 0%, #38BDF8 55%, #0EA5E9 100%);
  color: #04101D;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.upload-file-label:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.45);
}

.upload-filename {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-reset-avatar {
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #CBD5E1;
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.btn-reset-avatar:hover {
  border-color: #38BDF8;
  color: #FFFFFF;
}

.hidden-input {
  display: none;
}

/* Text Inputs */
.text-input, .text-area {
  width: 100%;
  background: var(--glass-input);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 13px;
  padding: 12px 14px;
  color: #FFFFFF;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.text-area {
  resize: vertical;
  min-height: 78px;
  line-height: 1.48;
}

.text-input:focus, .text-area:focus {
  border-color: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

/* Sub-cards */
.sub-card {
  background: rgba(7, 12, 22, 0.6);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 16px;
  padding: 14px;
  margin-top: 14px;
}

.sub-card-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toggle-info {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.toggle-title {
  font-size: 13px;
  color: #F8FAFC;
}

.toggle-status {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  color: #7DD3FC;
  border: 1px solid rgba(56, 189, 248, 0.42);
}

.toggle-status.is-off {
  background: rgba(148, 163, 184, 0.1);
  color: #94A3B8;
  border-color: rgba(148, 163, 184, 0.22);
}

/* Modern Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 25px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #1E293B;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  transition: 0.22s ease;
}

.slider::before {
  content: "";
  position: absolute;
  height: 17px;
  width: 17px;
  left: 3px;
  top: 3px;
  background-color: #FFFFFF;
  border-radius: 50%;
  transition: 0.22s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.switch input:checked + .slider {
  background: linear-gradient(120deg, #38BDF8 0%, #0EA5E9 55%, #6366F1 100%);
  border-color: rgba(186, 230, 253, 0.55);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.42);
}

.switch input:checked + .slider::before {
  transform: translateX(21px);
}

.streak-subpanel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.streak-subpanel.is-hidden {
  display: none;
}

/* Tier Preset Buttons */
.color-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.color-preset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 8px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(148, 163, 184, 0.18);
  color: #CBD5E1;
  font-size: 11.5px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.color-preset:hover {
  border-color: rgba(125, 211, 252, 0.5);
  color: #FFFFFF;
}

.color-preset.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: #7DD3FC;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.swatch-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.custom-color-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(148, 163, 184, 0.18);
  font-size: 11.5px;
  color: #CBD5E1;
  cursor: pointer;
}

.custom-color-wrap input[type="color"] {
  width: 18px;
  height: 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.mini-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 12px;
  color: #E2E8F0;
  gap: 10px;
}

/* Download Button */
.btn-download {
  margin-top: 18px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 15px;
  border: 1px solid rgba(224, 242, 254, 0.55);
  background: linear-gradient(110deg, #BAE6FD 0%, #38BDF8 42%, #0EA5E9 72%, #818CF8 100%);
  color: #04101D;
  font-size: 14.5px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.34);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn-download:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(56, 189, 248, 0.48);
}

.btn-download:disabled {
  opacity: 0.72;
  cursor: wait;
}

.spinner-svg {
  animation: spinLoader 0.85s linear infinite;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

/* ==================== PREVIEW GLASS SHELL ==================== */
.preview-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-frame-shell {
  width: 100%;
  max-width: 400px;
  padding: 14px;
  border-radius: 26px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(224, 242, 254, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-label-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.preview-label-tag {
  color: #7DD3FC;
  font-size: 11px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 9px;
  border-radius: 999px;
}

.preview-viewport {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
}

/* ===================================================================
   TIKTOK DM CANVAS (ACCURATE NATIVE UI • ZERO BACKDROP-FILTER INSIDE)
==================================================================== */
.tt-canvas {
  position: relative;
  width: 360px;
  height: 676px;
  flex-shrink: 0;
  background-color: #FAF8FA;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: #161823;
  user-select: none;
}

/* Blurred Background Chat Layer */
.tt-bg-chat-layer {
  position: absolute;
  inset: 60px 0 98px 0;
  padding: 14px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  filter: blur(6px);
  opacity: 0.65;
  z-index: 1;
  pointer-events: none;
}

.tt-bg-time {
  text-align: center;
  font-size: 11px;
  color: #8A8B91;
  margin: 4px 0;
}

.tt-bg-row-left {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 78%;
}

.tt-bg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.tt-bg-bubble-in {
  background: #FFFFFF;
  color: #161823;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tt-bg-row-right {
  display: flex;
  justify-content: flex-end;
}

.tt-bg-bubble-out {
  background: #E6DCFF;
  color: #161823;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.35;
  max-width: 76%;
}

.tt-bg-veil {
  position: absolute;
  inset: 60px 0 98px 0;
  background: rgba(250, 248, 250, 0.36);
  z-index: 2;
  pointer-events: none;
}

/* Sharp Top Header */
.tt-header {
  position: relative;
  z-index: 5;
  height: 60px;
  padding: 0 13px;
  background: #FAF8FA;
  border-bottom: 1px solid rgba(22, 24, 35, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tt-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.tt-header-back {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #161823;
  flex-shrink: 0;
}

.tt-avatar-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.tt-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(22, 24, 35, 0.07);
  display: block;
}

.tt-online-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22C55E;
  border: 2px solid #FAF8FA;
}

.tt-online-dot.is-hidden {
  display: none;
}

.tt-user-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

/* ALIGNMENT FIX: Nama, Ikon Api, & Angka Streak sejajar presisi */
.tt-user-top-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  height: 21px;
}

.tt-username {
  font-size: 15.5px;
  font-weight: 700;
  color: #111318;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 132px;
  letter-spacing: -0.015em;
  line-height: 21px;
  display: inline-block;
}

.tt-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 21px;
  color: var(--streak-color);
  flex-shrink: 0;
}

.tt-streak-badge svg {
  display: block;
  width: 16.5px;
  height: 16.5px;
  flex-shrink: 0;
}

.tt-streak-days {
  font-size: 15px;
  font-weight: 700;
  line-height: 21px;
  letter-spacing: -0.02em;
  display: inline-block;
  padding-top: 1px;
}

.tt-streak-badge.is-hidden {
  display: none;
}

.tt-active-text {
  font-size: 11.5px;
  font-weight: 500;
  color: #767882;
  line-height: 1.25;
  margin-top: 1px;
}

.tt-active-text.is-hidden {
  display: none;
}

.tt-header-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
  color: #111318;
}

.tt-header-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tt-header-flag.is-hidden {
  display: none;
}

.tt-header-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Focused Middle Stage */
.tt-focus-stage {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 14px 12px;
}

.tt-emoji-bar {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #FFFFFF;
  border-radius: 999px;
  padding: 7px 14px;
  margin-left: 34px;
  margin-bottom: 8px;
  align-self: flex-start;
  box-shadow: 0 4px 16px rgba(22, 24, 35, 0.1);
}

.tt-emoji-item {
  font-size: 21px;
  line-height: 1.15;
}

.tt-main-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 9px;
}

.tt-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.tt-main-bubble {
  background: #FFFFFF;
  color: #161823;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.38;
  max-width: 256px;
  word-break: break-word;
  white-space: pre-wrap;
  box-shadow: 0 3px 14px rgba(22, 24, 35, 0.08);
}

/* TikTok Context Menu Card */
.tt-context-menu {
  margin-left: 36px;
  width: 222px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 5px 0;
  box-shadow: 0 8px 26px rgba(22, 24, 35, 0.12);
}

.tt-menu-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: #161823;
}

.tt-menu-row + .tt-menu-row {
  border-top: 1px solid rgba(22, 24, 35, 0.045);
}

.tt-menu-row.is-danger {
  color: #FE2C55;
}

.tt-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Sharp Bottom Bar + Circular Emoji Chips (TikTok Terbaru) */
.tt-bottom-bar {
  position: relative;
  z-index: 5;
  background: #FAF8FA;
  padding: 6px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tt-quick-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 1px;
}

.tt-quick-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}

/* Masing-masing emoji di dalam kolom bulat putih bersih khas TikTok */
.tt-quick-chip {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid rgba(22, 24, 35, 0.07);
  box-shadow: 0 1px 3px rgba(22, 24, 35, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16.5px;
  line-height: 1;
  flex-shrink: 0;
}

.tt-streak-pet-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: #FFFFFF;
  border: 1px solid var(--streak-border);
  box-shadow: 0 1px 3px rgba(22, 24, 35, 0.06);
  color: var(--streak-color);
  white-space: nowrap;
  flex-shrink: 0;
}

.tt-streak-pet-pill.is-hidden {
  display: none;
}

.tt-purple-sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid rgba(139, 92, 246, 0.18);
  box-shadow: 0 1px 3px rgba(22, 24, 35, 0.06);
  flex-shrink: 0;
}

.tt-input-pill {
  height: 42px;
  background: #F1F1F2;
  border-radius: 999px;
  padding: 0 12px 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tt-input-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.tt-cam-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #20D5EC;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tt-input-placeholder {
  font-size: 14px;
  color: #8A8B91;
  white-space: nowrap;
}

.tt-input-right {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #161823;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  margin-top: 26px;
  text-align: center;
  font-size: 11.5px;
  color: #64748B;
}

.site-footer span {
  color: #38BDF8;
}
