:root {
  --card: #fff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --ease: cubic-bezier(.175, .885, .32, 1.275);
}
.small { font-size: 12px !important; }
.size-3rem { width: 3rem !important; height: 3rem !important; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes slideIn {
  from { transform: translateY(6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes BubblePop {
  0% { opacity: 0; transform: translateY(20px) scale(0.85); }
  60% { opacity: 1; transform: translateY(-5px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes messageBubblePop {
  0% { opacity: 0; transform: translateY(20px) scale(0.85); }
  60% { opacity: 1; transform: translateY(-5px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes verifikasi-line-end-appear {
  to { opacity: 0.9; }
}
@keyframes floatIn {
  0% { opacity: 0; transform: translateY(20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

body {
  background: #f8f3ed url('/assets/images/bgc.png') repeat !important;
  background-size: 200px !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100vh !important;
  display: block !important;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.bl-container,
.privacy-container,
.refund-container,
.tos-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.bl-header,
.privacy-header,
.refund-header,
.tos-header {
  background: var(--card);
  border-radius: 28px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-bubble {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.back-bubble:hover {
  background: #e4e6e9;
  transform: scale(1.05);
  color: #1e293b;
}

.bl-title,
.privacy-title,
.refund-title,
.tos-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #1e293b, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bl-card,
.privacy-card,
.refund-card,
.tos-card {
  background: var(--card);
  border-radius: 28px;
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.03);
  line-height: 1.75;
  color: #334155;
}

.bl-card h1,
.privacy-card h1,
.refund-card h1,
.tos-card h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
}

.privacy-card h2,
.tos-card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #334155;
  margin-top: 24px;
  margin-bottom: 12px;
}

.privacy-card p,
.tos-card p {
  margin-bottom: 14px;
}

.privacy-card p:last-child,
.tos-card p:last-child {
  margin-bottom: 0;
}

.brand {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.brand:hover {
  color: #1d4ed8;
}

.bl-card .brand,
.privacy-card .brand,
.refund-card .brand,
.tos-card .brand {
  color: #2563eb;
  font-weight: 600;
}

.bl-card .brand:hover,
.privacy-card .brand:hover,
.refund-card .brand:hover,
.tos-card .brand:hover {
  color: #1d4ed8;
}

.bl-list,
.privacy-list,
.refund-list,
.tos-list {
  margin: 12px 0 0 0;
  padding-left: 20px;
}

.bl-list li {
  margin-bottom: 12px;
}

.privacy-list li {
  margin-bottom: 8px;
}

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

.tos-list li {
  margin-bottom: 6px;
}

.contact-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.contact-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.bl-meta,
.tos-meta {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 24px;
}

.tos-meta {
  margin-top: 20px;
}

.verif-highlight {
  font-weight: 600;
}
.halaman-lihat-juga {
  margin-top: 24px;
  padding-top: 16px;
  color: #64748b;
  font-size: 0.8rem;
}
.verif-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  animation: fadeIn 0.5s ease;
}

.verif-header {
  background: var(--card);
  border-radius: 28px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.03);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.verif-header::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 30px;
  width: 16px;
  height: 16px;
  background: var(--card);
  transform: rotate(45deg);
  border-radius: 0 0 4px 0;
}

.verif-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #1e293b, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.message-thread {
  position: relative;
  margin-left: 32px;
  padding-left: 8px;
  margin-top: -4px;
}

.verifikasi-reply-flow {
  position: relative;
}

.verifikasi-akun-wrap {
  position: relative;
}

.verifikasi-line {
  position: absolute;
  left: 24px;
  top: 100%;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, #c7baab 0%, #d1d6e0 100%);
  border-radius: 2px;
  opacity: 0.7;
  z-index: 0;
  transform-origin: top;
  transition: height 1.2s ease-out;
}

.verifikasi-line::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateY(50%);
  width: 20px;
  height: 3px;
  background: #c7baab;
  border-radius: 2px;
  opacity: 0;
  animation: verifikasi-line-end-appear 0.3s ease 1.6s forwards;
}

.verifikasi-reply-flow .reply-curves {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.verifikasi-reply-flow .reply-curves path {
  display: none;
}

.verifikasi-reply-flow .verifikasi-akun-wrap,
.verifikasi-reply-flow .message-thread {
  position: relative;
  z-index: 1;
}

.reply-bubble {
  position: relative;
  background: var(--card);
  border-radius: 28px !important;
  border: none !important;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  animation: messageBubblePop 0.35s ease-out;
  overflow: visible;
}

.reply-bubble::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 24px;
  width: 18px;
  height: 18px;
  background: var(--card);
  transform: rotate(45deg);
  border-radius: 0 0 0 4px;
  z-index: 2;
}

.bubble-card {
  background: var(--card);
  border-radius: 28px !important;
  border: none !important;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  animation: messageBubblePop 0.35s ease-out;
  overflow: hidden;
}

.bubble-card-header {
  padding: 18px 24px 8px 24px;
}

.bubble-card-header h5 {
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bubble-card-body {
  padding: 18px 24px 24px 24px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 6px;
}

.status-badge.verified {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.pending {
  background: #fff3cd;
  color: #856404;
}

.status-badge.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.instruction-steps {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin: 0;
}

.instruction-steps li {
  counter-increment: step-counter;
  position: relative;
  padding: 12px 16px 12px 56px;
  margin-bottom: 12px;
  background: #f8fafc;
  border-radius: 20px;
  font-size: 0.95rem;
  border: 1px solid #edf2f7;
  transition: all 0.2s ease;
}

.instruction-steps li:hover {
  transform: translateX(4px);
  background: #f1f5f9;
}

.instruction-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: #3b82f6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.bubble-alert {
  border-radius: 20px !important;
  border: none !important;
  padding: 16px 20px !important;
  margin-bottom: 20px !important;
  animation: slideIn 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.upload-area {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-area:hover {
  border-color: #3b82f6;
  background: #f1f5f9;
}

.upload-area i {
  font-size: 2rem;
  color: #64748b;
  margin-bottom: 8px;
}

.form-control-chat {
  border: 2px solid #e9eef7 !important;
  border-radius: 40px !important;
  padding: 12px 20px !important;
  background: #fff !important;
  transition: all 0.2s ease !important;
}

.form-control-chat:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
}

.btn-bubble {
  border-radius: 40px !important;
  padding: 12px 28px !important;
  font-weight: 600 !important;
  transition: all 0.25s var(--ease) !important;
  border: none !important;
}

.btn-bubble-primary {
  background: linear-gradient(145deg, #3b82f6, #2563eb) !important;
  color: white !important;
  box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.3) !important;
}

.btn-bubble-primary:hover {
  box-shadow: 0 12px 20px -4px rgba(37, 99, 235, 0.4) !important;
}

.btn-bubble-outline {
  background: transparent !important;
  border: 2px solid #e2e8f0 !important;
  color: #1e293b !important;
}

.btn-bubble-outline:hover {
  border-color: #3b82f6 !important;
  background: #f8fafc !important;
}

.progress-bubble {
  height: 8px;
  border-radius: 40px;
  background: #e9eef7;
  overflow: hidden;
}

.progress-bubble-bar {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 40px;
  transition: width 0.3s ease;
}

.file-info {
  display: inline-block;
  background: #e9eef7;
  border-radius: 40px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.float-in {
  animation: floatIn 0.4s var(--ease) forwards;
}

.reply-connector {
  position: relative;
}

.upgrade-pro-box {
  position: relative;
}

.upgrade-pro-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(255 255 255 / 92%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  z-index: 5;
  pointer-events: auto;
}

.upgrade-pro-coming-soon {
  font-size: 1.5rem;
  font-weight: 700;
  color: #495057;
  letter-spacing: 0.1em;
}

.kyc-filled-by-ocr {
  background-color: #ffbf0017 !important;
}

.kyc-filled-manual {
  background-color: #8ef79817 !important;
}

@media (max-width: 576px) {
  .bubble-card-header,
  .bubble-card-body,
  .reply-bubble .bubble-card-header,
  .reply-bubble .bubble-card-body {
    padding: 16px 20px;
  }

  .instruction-steps li {
    padding: 10px 12px 10px 48px;
    font-size: 0.85rem;
  }

  .instruction-steps li::before {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    left: 12px;
  }

  .message-thread {
    margin-left: 24px;
  }

  .verifikasi-line {
    left: 16px;
  }
}
