/* ==========================================================================
   MyOTP - Saweria Themed Stylesheet
   Karakteristik: Minimalis, Hangat (Cream/Amber/Charcoal), Garis Tepi Tegas,
   Shadow Offset Neo-brutalist Elegan khas Saweria, 100% Bebas Emoji (Hanya Ikon).
   ========================================================================== */

:root {
  --bg-primary: #fbf8ee;
  --bg-secondary: #f4efe1;
  --bg-card: #ffffff;
  --bg-accent-light: #fef3c7;
  --text-main: #1c1917;
  --text-muted: #57534e;
  --text-light: #78716c;
  --border-color: #1c1917;
  --border-subtle: #e7e2d6;
  --brand-yellow: #facc15;
  --brand-orange: #f97316;
  --brand-amber: #f59e0b;
  --brand-amber-hover: #d97706;
  --color-success: #10b981;
  --color-success-bg: #ecfdf5;
  --color-danger: #ef4444;
  --color-danger-bg: #fef2f2;
  --color-warning: #f59e0b;
  --color-warning-bg: #fffbeb;
  --shadow-saweria: 3px 3px 0px var(--border-color);
  --shadow-saweria-sm: 2px 2px 0px var(--border-color);
  --shadow-saweria-lg: 5px 5px 0px var(--border-color);
  --shadow-saweria-hover: 1px 1px 0px var(--border-color);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(#e5dec9 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Container */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Incognito / Private Warning Banner */
.incognito-banner {
  display: none; /* Muncul jika terdeteksi */
  background-color: #fffbeb;
  border-bottom: 2px solid var(--border-color);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  animation: slideDown 0.3s ease-out;
}

.incognito-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

.incognito-icon-wrapper {
  background: #fef3c7;
  color: #b45309;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.incognito-text {
  flex: 1;
}

.incognito-title {
  font-weight: 700;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.incognito-desc {
  font-size: 12px;
  color: #78350f;
  line-height: 1.4;
}

.incognito-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* Header */
.site-header {
  padding: 20px 0 16px;
  border-bottom: 2px solid var(--border-subtle);
  background-color: var(--bg-primary);
}

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

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-badge {
  background: var(--brand-amber);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-saweria-sm);
  border-radius: var(--radius-md);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: var(--text-main);
}

.brand-info h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tagline {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

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

/* User Balance Pill Saweria Style */
.user-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid var(--border-color);
  background: #fefce8;
  box-shadow: var(--shadow-saweria-sm);
  color: var(--text-main);
}

.balance-label {
  font-size: 11px;
  color: var(--text-muted);
}

.balance-val {
  font-family: var(--font-mono);
  font-weight: 800;
  color: #15803d;
}

.btn-topup-inline {
  background: var(--brand-amber);
  border: 1.5px solid var(--border-color);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  margin-left: 2px;
  transition: transform 0.1s;
}

.btn-topup-inline:hover {
  transform: scale(1.1);
  background: var(--brand-amber-hover);
}

/* Mode Badge */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-saweria-sm);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
}

.status-dot.demo {
  background: var(--brand-amber);
}

.status-pill.status-refunded {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}

.status-pill.status-success {
  background: #dcfce7;
  color: #166534;
  border-color: #22c55e;
}

.status-pill.status-waiting {
  background: #f3f4f6;
  color: #374151;
  border-color: #9ca3af;
}

/* Buttons Saweria Style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-saweria);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.1s ease;
  user-select: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translate(1px, 1px);
  box-shadow: var(--shadow-saweria-hover);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.btn-primary {
  background-color: var(--brand-amber);
}

.btn-primary:hover {
  background-color: var(--brand-amber-hover);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 11px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-saweria-sm);
}

.btn-sm:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.btn-danger {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
}

.btn-danger:hover {
  background-color: #fee2e2;
}

.btn-outline {
  background-color: transparent;
  box-shadow: none;
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--border-color);
  background-color: var(--bg-secondary);
  box-shadow: var(--shadow-saweria-sm);
}

/* Layout Content */
.main-content {
  padding: 24px 0 60px;
}

/* Active Order Box (Saweria Attention Card) */
.active-order-section {
  display: none;
  margin-bottom: 24px;
  animation: fadeIn 0.3s ease-out;
}

.active-order-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-saweria-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* QRIS Payment Card */
.qris-card {
  border: 2px solid var(--border-color);
  background: var(--bg-card);
}

.qris-content-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: center;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

@media (max-width: 680px) {
  .qris-content-wrapper {
    grid-template-columns: 1fr;
  }
}

.qris-amount-wrap {
  margin-bottom: 14px;
}

.wallet-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.wallet-pill {
  font-size: 10px;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.qris-image-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-saweria-sm);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qris-badge-top {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #92400e;
  background: var(--bg-accent-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.qris-img-container {
  width: 220px;
  height: 220px;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.qris-image {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.qris-scan-help {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.active-order-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-amber), var(--brand-orange));
}

.active-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.order-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-tag {
  background: var(--bg-accent-light);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.timer-tag {
  background: #f3f4f6;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 5px;
}

.timer-tag.urgent {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  animation: pulse 1s infinite;
}

.phone-display-wrapper {
  background: var(--bg-secondary);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.phone-number-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.phone-number-val {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  color: var(--text-main);
}

/* OTP Code Box */
.otp-display-area {
  background: #fefce8;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
}

.otp-waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e2ded4;
  border-top-color: var(--brand-amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.otp-received-box {
  display: none;
}

.otp-label-received {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-success);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.otp-code-big {
  font-size: 38px;
  font-weight: 900;
  font-family: var(--font-mono);
  letter-spacing: 8px;
  color: #15803d;
  background: var(--color-success-bg);
  border: 2px solid #16a34a;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  display: inline-block;
  margin: 6px 0 12px;
  box-shadow: var(--shadow-saweria-sm);
}

.otp-sms-preview {
  font-size: 12px;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  max-width: 480px;
  margin: 0 auto;
  font-style: italic;
}

.active-order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* Card Section Standard */
.card-section {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-saweria);
  padding: 24px;
  margin-bottom: 24px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-number {
  background: var(--brand-amber);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

/* Search and Filters */
.search-wrapper {
  position: relative;
  margin-bottom: 14px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-primary);
  outline: none;
  transition: all 0.15s ease;
}

.search-input:focus {
  background-color: #ffffff;
  box-shadow: var(--shadow-saweria-sm);
}

.category-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  scrollbar-width: thin;
}

.chip {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  background: var(--bg-primary);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.1s;
}

.chip:hover {
  background: var(--bg-secondary);
}

.chip.active {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--border-color);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding: 2px 4px 6px 2px;
  scrollbar-width: thin;
}

.service-card {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.1s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-saweria-sm);
  position: relative;
}

.service-card:hover {
  background: var(--bg-accent-light);
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--border-color);
}

.service-card.selected {
  background: #fef08a;
  border-color: var(--border-color);
  box-shadow: 2px 2px 0px var(--border-color);
}

.service-icon-box {
  width: 34px;
  height: 34px;
  background: #f4efe1;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-main);
}

.service-card.selected .service-icon-box {
  background: #ffffff;
}

.service-details {
  overflow: hidden;
}

.service-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* Step 2 Selection Form (Country & Operator) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.select-custom {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  outline: none;
  cursor: pointer;
}

.select-custom:focus {
  background: #ffffff;
  box-shadow: var(--shadow-saweria-sm);
}

/* Price Box Highlight */
.price-breakdown-box {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.price-title {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.price-note {
  font-size: 11px;
  color: var(--text-light);
}

.price-final-wrap {
  text-align: right;
}

.price-amount {
  font-size: 22px;
  font-weight: 900;
  color: var(--brand-amber-hover);
  font-family: var(--font-mono);
  letter-spacing: -0.5px;
}

.price-badge-inclusive {
  font-size: 10px;
  font-weight: 700;
  background: var(--bg-accent-light);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

/* Order Action Button */
.btn-order-submit {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 800;
  background: var(--brand-amber);
  color: var(--text-main);
  margin-top: 16px;
  box-shadow: var(--shadow-saweria);
}

.btn-order-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-saweria-sm);
}

/* Information / Features Section (Saweria Minimalist Grid) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

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

.feature-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-saweria-sm);
}

.feature-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-accent-light);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.feature-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 24px 0 40px;
  border-top: 2px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.footer-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(28, 25, 23, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.incognito-modal-card {
  max-width: 480px;
  box-shadow: 6px 6px 0px var(--border-color);
}

.modal-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-saweria-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleUp 0.2s ease-out;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: var(--bg-primary);
}

/* History List inside Modal */
.history-item {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 10px;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.history-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.history-service {
  font-weight: 800;
  font-size: 13px;
}

.history-phone {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.history-otp {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: #15803d;
  background: var(--color-success-bg);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid #86efac;
}

.history-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.history-empty-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  color: var(--text-light);
}

/* Toast Alerts */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999999 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-saweria);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.2s ease-out;
  min-width: 240px;
}

.toast-success {
  border-left: 6px solid var(--color-success);
}

.toast-danger {
  border-left: 6px solid var(--color-danger);
}

.toast-info {
  border-left: 6px solid var(--brand-amber);
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile, Tablet, Desktop)
   ========================================================================== */

/* Tablet & Mobile Layout Enhancements (< 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }

  .site-header {
    padding: 14px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Mobile Devices (< 640px) */
@media (max-width: 640px) {
  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .brand-wrapper {
    justify-content: flex-start;
  }

  .header-nav {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .header-nav .status-pill {
    font-size: 11px;
    padding: 4px 8px;
  }

  .user-balance-pill {
    font-size: 11px;
    padding: 3px 8px;
  }

  .brand-badge {
    width: 38px;
    height: 38px;
  }

  .brand-info h1 {
    font-size: 18px;
  }

  .tagline {
    font-size: 11px;
  }

  /* Catalog Services Grid: 2 clean columns on smartphones */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 250px;
  }

  .service-card {
    padding: 10px 8px;
    gap: 8px;
  }

  .service-icon-box {
    width: 30px;
    height: 30px;
  }

  .service-name {
    font-size: 12px;
  }

  /* Active Order & Phone Display Card */
  .phone-display-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .phone-display-wrapper .btn {
    width: 100%;
    justify-content: center;
  }

  .phone-number-val {
    font-size: 20px;
    word-break: break-all;
  }

  .otp-code-big {
    font-size: 32px;
    letter-spacing: 3px;
  }

  .active-order-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    text-align: center;
  }

  .active-order-footer .btn {
    width: 100%;
    justify-content: center;
  }

  /* Price Breakdown Card */
  .price-breakdown-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .price-final-wrap {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--border-subtle);
    padding-top: 8px;
  }

  .price-amount {
    font-size: 20px;
  }

  /* Modals on Mobile */
  .modal-overlay {
    padding: 12px;
  }

  .modal-card {
    max-width: 100%;
    max-height: 90vh;
  }

  .modal-header {
    padding: 12px 16px;
  }

  .modal-body {
    padding: 14px 16px;
  }

  .modal-footer {
    padding: 12px 16px;
  }

  .toast-container {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .toast {
    min-width: unset;
    width: 100%;
  }
}

/* Extra Small Screens (< 380px, e.g. iPhone SE / Galaxy Mini) */
@media (max-width: 380px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .header-nav {
    gap: 6px;
  }

  .user-balance-pill {
    padding: 3px 6px;
  }
}

/* ==========================================================================
   ACTIVITY BUTTON & ACTIVITY DRAWER
   ========================================================================== */
.btn-activity-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  user-select: none;
}

.btn-activity-nav:hover {
  border-color: var(--brand-amber);
  color: var(--brand-amber-hover);
  background: #fffbeb;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.15);
}

.btn-activity-nav:active {
  transform: translateY(0);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1040;
  animation: fadeIn 0.2s ease-out;
}

.activity-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 430px;
  max-width: 100%;
  background: var(--bg-primary);
  z-index: 1045;
  box-shadow: -8px 0 32px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.activity-drawer.show {
  transform: translateX(0);
}

.activity-drawer-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--border-color);
  background: var(--bg-card);
}

.activity-drawer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.btn-icon-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-icon-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.activity-tabs {
  display: flex;
  padding: 10px 16px;
  gap: 8px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.activity-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.activity-tab:hover {
  color: var(--text-primary);
}

.activity-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.activity-tab-content {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.activity-tab-content.active {
  display: block;
}

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

.activity-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: all 0.2s ease;
  position: relative;
}

.activity-card.clickable {
  cursor: pointer;
}

.activity-card.clickable:hover {
  border-color: var(--brand-amber);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
  transform: translateY(-1px);
}

.activity-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.activity-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.activity-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.activity-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.activity-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}

.badge-success { background: #dcfce7; color: #15803d; }
.badge-pending { background: #fef9c3; color: #a16207; }
.badge-refunded, .badge-canceled { background: #fee2e2; color: #b91c1c; }
.badge-waiting { background: #e0f2fe; color: #0369a1; }

.activity-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ==========================================================================
   OFFCANVAS INVOICE (NOTA TRANSAKSI TEMA SAWERIA MYOTP)
   ========================================================================== */
.offcanvas-backdrop-custom {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1060;
  animation: fadeIn 0.2s ease-out;
}

.offcanvas {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 1070;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  color: var(--text-primary, #1c1917);
  background-color: var(--bg-primary, #fcf9f2);
  background-clip: padding-box;
  outline: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 36px rgba(28, 25, 23, 0.28);
}

.offcanvas-start {
  left: 0;
  width: 440px;
  transform: translateX(-100%);
}

.offcanvas-start.show {
  transform: translateX(0);
}

.offcanvas-header-saweria {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px 20px;
  background: var(--bg-primary, #fcf9f2);
}

.saweria-receipt-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  color: #92400e;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill, 9999px);
}

.offcanvas-body {
  flex-grow: 1;
  padding: 0;
  overflow-y: auto;
}

#offcanvas-invoice .card {
  background: var(--bg-card, #ffffff) !important;
  border: 2px solid var(--border-color, #1c1917) !important;
  border-radius: var(--radius-lg, 16px) !important;
  box-shadow: 4px 4px 0px var(--border-color, #1c1917) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#offcanvas-invoice .card:hover {
  transform: translateY(-1px);
  box-shadow: 5px 5px 0px var(--border-color, #1c1917) !important;
}

.rounded-4 { border-radius: var(--radius-lg, 16px) !important; }
.d-flex { display: flex !important; }
.d-none { display: none !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.gap-2 { gap: 0.5rem !important; }
.p-0 { padding: 0 !important; }
.p-2 { padding: 0.5rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.15rem !important; }
.p-6 { padding: 1.5rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.mx-4 { margin-left: 1.15rem !important; margin-right: 1.15rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.my-3 { margin-top: 0.75rem !important; margin-bottom: 0.75rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-12 { margin-top: 1.25rem !important; }
.mb-12 { margin-bottom: 1.15rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-3 { margin-bottom: 0.65rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-4 { margin-right: 1rem !important; }
.text-center { text-align: center !important; }
.px-4 { padding-left: 1.15rem !important; padding-right: 1.15rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 0.95rem !important; }
.fs-7 { font-size: 0.82rem !important; }
.fs-tiny { font-size: 0.72rem !important; }
.fw-bold { font-weight: 800 !important; }
.fw-semibold { font-weight: 700 !important; }
.text-solid-theme { color: var(--text-primary, #1c1917) !important; }
.text-secondary { color: var(--text-secondary, #78716c) !important; }
.text-muted { color: #a8a29e !important; }

#offcanvas-invoice-title {
  text-align: center !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: var(--text-primary, #1c1917) !important;
  margin-top: 6px !important;
  margin-bottom: 2px !important;
  display: block !important;
  width: 100% !important;
}

#offcanvas-invoice-info {
  text-align: center !important;
  font-size: 0.85rem !important;
  color: var(--text-secondary, #78716c) !important;
  margin-bottom: 14px !important;
  display: block !important;
  width: 100% !important;
  line-height: 1.4 !important;
}

#offcanvas-invoice .bg-label-secondary {
  background-color: #fffbeb !important;
  border: 1.5px solid var(--border-color, #1c1917) !important;
  border-radius: 10px !important;
  box-shadow: 1.5px 1.5px 0px var(--border-color, #1c1917);
}

.bg-tailwind-success {
  background-color: #dcfce7 !important;
  color: #166534 !important;
  border: 1.5px solid var(--border-color, #1c1917) !important;
  border-radius: var(--radius-pill, 9999px) !important;
  padding: 3px 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  box-shadow: 1.5px 1.5px 0px var(--border-color, #1c1917) !important;
}

.badge-saweria-pending {
  background-color: #fef3c7 !important;
  color: #92400e !important;
  border: 1.5px solid var(--border-color, #1c1917) !important;
  border-radius: var(--radius-pill, 9999px) !important;
  padding: 3px 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  box-shadow: 1.5px 1.5px 0px var(--border-color, #1c1917) !important;
}

.badge-saweria-failed {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
  border: 1.5px solid var(--border-color, #1c1917) !important;
  border-radius: var(--radius-pill, 9999px) !important;
  padding: 3px 10px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  box-shadow: 1.5px 1.5px 0px var(--border-color, #1c1917) !important;
}

#offcanvas-invoice hr {
  border: 0 !important;
  border-top: 1.5px dashed #d6d3d1 !important;
  margin: 8px 0 !important;
  opacity: 1 !important;
}

#offcanvas-invoice-total {
  color: var(--brand-amber-hover, #b45309) !important;
  font-size: 1.15rem !important;
  font-weight: 900 !important;
}

.saweria-gateway-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fffbeb;
  border: 1.5px solid var(--border-color, #1c1917);
  border-radius: var(--radius-pill, 9999px);
  padding: 3px 12px;
  box-shadow: 2px 2px 0px var(--border-color, #1c1917);
}

.offcanvas-footer {
  padding: 16px 20px !important;
  background: var(--bg-card, #ffffff) !important;
  border-top: 2px solid var(--border-color, #1c1917) !important;
}

.btn-saweria-done {
  height: 48px;
  background: var(--brand-amber, #f59e0b) !important;
  color: #1c1917 !important;
  border: 2px solid var(--border-color, #1c1917) !important;
  border-radius: var(--radius-md, 12px) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  box-shadow: 3px 3px 0px var(--border-color, #1c1917) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.btn-saweria-done:hover {
  background: var(--brand-amber-hover, #d97706) !important;
  color: #1c1917 !important;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--border-color, #1c1917) !important;
}

.btn-saweria-done:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--border-color, #1c1917) !important;
}

@media (max-width: 480px) {
  .activity-drawer {
    width: 100%;
  }
  .offcanvas-start {
    width: 100%;
  }
}

/* ==========================================================================
   LINK ACCOUNT & MULTI-DEVICE MODAL (SAWERIA STYLE)
   ========================================================================== */
.btn-link-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  user-select: none;
}

.btn-link-nav:hover {
  border-color: var(--brand-amber);
  color: var(--brand-amber-hover);
  background: #fffbeb;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.15);
}

.btn-link-nav:active {
  transform: translateY(0);
}

.link-account-card {
  max-width: 480px;
  width: 100%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-saweria-lg);
  overflow: hidden;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-modal-icon-badge {
  width: 38px;
  height: 38px;
  background: #fffbeb;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-amber-hover);
  flex-shrink: 0;
  box-shadow: var(--shadow-saweria-xs);
}

.link-tabs-nav {
  display: flex;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 6px;
  margin-bottom: 16px;
}

.link-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.link-tab-btn:hover {
  color: var(--text-main);
}

.link-tab-btn.active {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
  box-shadow: var(--shadow-saweria-xs);
}

.link-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.link-qr-box {
  padding: 16px;
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-saweria-sm);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 230px;
  min-height: 230px;
}

.link-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: #fef3c7;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  display: inline-block;
  animation: pulseDot 1.4s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

.link-code-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  gap: 10px;
}

.link-code-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  overflow: hidden;
}

.link-code-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.link-code-val {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--brand-amber);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  box-shadow: var(--shadow-saweria-xs);
}

.btn-copy-link:hover {
  background: var(--brand-amber-hover);
  color: #ffffff;
}

.link-tip-card {
  width: 100%;
  background: #fffbeb;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-main);
  display: flex;
  gap: 8px;
  text-align: left;
}

.camera-scanner-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.camera-scanner-box {
  width: 100%;
  min-height: 280px;
  height: 320px;
  background: #090d16;
  border: 2.5px solid var(--border-color);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-saweria-sm);
}

#cameraQrReader {
  width: 100% !important;
  height: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#cameraQrReader video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: inherit !important;
}

.camera-scanner-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.scanner-reticle {
  width: 230px;
  height: 230px;
  max-width: 82%;
  max-height: 82%;
  border: 3px dashed #f59e0b;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
}

.scanner-laser {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, #f59e0b, #fbbf24, #f59e0b, transparent);
  box-shadow: 0 0 10px #f59e0b;
  animation: scanLaser 2.2s infinite ease-in-out;
}

@keyframes scanLaser {
  0%, 100% { top: 10%; }
  50% { top: 88%; }
}

.camera-status-msg {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.camera-action-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.link-divider {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: center;
  margin: 6px 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.link-divider::before,
.link-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1.5px dashed var(--border-color);
}

.link-divider span {
  padding: 0 10px;
}

.manual-input-group {
  width: 100%;
  display: flex;
  gap: 8px;
}

.link-success-box {
  text-align: center;
  padding: 12px 6px;
}

.link-success-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  background: #dcfce7;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-saweria-sm);
}

.merged-breakdown-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 16px 0;
  text-align: left;
}

.merged-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text-main);
}

.merged-row.total {
  font-size: 15px;
  font-weight: 800;
  margin-top: 8px;
  margin-bottom: 0;
}

.merged-divider {
  border-bottom: 1.5px dashed var(--border-color);
  margin: 8px 0;
}



