:root {
  --bg-main: #f4f6f8;
  --bg-card: #ffffff;
  --bg-card-sub: #f1f5f9;
  --border: #e2e8f0;
  --border-focus: #00a550;
  --text-main: #1a1d20;
  --text-muted: #64748b;
  --primary: #00a550;
  --primary-hover: #008b43;
  --primary-light: #e8f5e9;
  --success: #10b981;
  --success-bg: #e8f5e9;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --terminal-bg: #0b0f19;
  --terminal-text: #e2e8f0;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --ballbot-glow: rgba(0, 165, 80, 0.18);
  --ballbot-shell: #00a550;
  --ballbot-visor: #0f172a;
  --ballbot-mouth: #1e293b;
  --ballbot-eye: #00e676;
}

[data-theme="dark"] {
  --bg-main: #121212;
  --bg-card: #1e1e1e;
  --bg-card-sub: #2d3748;
  --border: #2d3748;
  --border-focus: #00e676;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --primary: #00c853;
  --primary-hover: #00e676;
  --primary-light: rgba(0, 200, 83, 0.15);
  --terminal-bg: #030712;
  --terminal-text: #f3f4f6;
  --ballbot-glow: rgba(0, 230, 118, 0.25);
  --ballbot-shell: #f8fafc;
  --ballbot-visor: #090d16;
  --ballbot-mouth: #1e293b;
  --ballbot-eye: #00e676;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  transition: background 0.2s ease, color 0.2s ease;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 80px 16px;
}

/* Header & Topbar */
.jb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.jb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jb-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.jb-brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.jb-logo-icon:hover .jb-brand-logo-img {
  transform: scale(1.08);
}

.jb-brand-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.jb-brand-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.jb-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
}

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

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-active {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-trial {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-expired {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  text-decoration: none;
}

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

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover {
  opacity: 0.9;
}

.btn-warning {
  background: var(--warning);
  color: white;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-main);
}
.btn-outline:hover {
  background: var(--bg-card-sub);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.8rem;
}

.btns {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Interactive Hints */
.hint-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 6px;
}

.hint-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.hint-btn:hover,
.hint-btn:focus {
  color: var(--primary);
  background: var(--bg-card-sub);
}

.hint-btn svg,
.hint-btn i {
  width: 15px;
  height: 15px;
  display: block;
}

.hint-popover {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
  width: max-content;
  max-width: 260px;
  z-index: 1000;
  text-align: left;
  white-space: normal;
  pointer-events: auto;
}

.hint-popover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--border) transparent transparent transparent;
}

.hint-popover.active {
  display: block;
}

/* Spin Animation */
@keyframes jb-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin {
  animation: jb-spin 1s linear infinite;
}

/* Nav Tabs */
.jb-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.jb-nav-tabs::-webkit-scrollbar {
  display: none;
}

.jb-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.jb-tab-btn:hover {
  color: var(--primary);
}

.jb-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 20px;
}

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

.card-title h2 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Connection Method Switcher & Panels */
.connection-method-switcher {
  display: flex;
  gap: 8px;
  background: var(--bg-card-sub);
  padding: 5px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border);
}

.method-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.method-pill:hover {
  color: var(--text-main);
}

.method-pill.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.method-pill.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.method-pill.disabled:hover {
  color: var(--text-muted);
  background: transparent;
}

.connection-box-container {
  max-width: 520px;
  margin: 0 auto;
}

.connection-panel {
  animation: jb-fade 0.25s ease-in-out;
}

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

.qr-box-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-sub);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  min-height: 340px;
  box-shadow: var(--shadow-sm);
}

.qr-canvas-box img,
.qr-canvas-box canvas {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 260px;
  max-height: 260px;
  background: white;
  padding: 10px;
}

.phone-pair-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 360px;
  margin: 14px 0 10px 0;
}

.phone-pair-form input {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.phone-pair-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 165, 80, 0.15);
}

.code-boxes {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0 8px 0;
}

.code-box {
  width: 38px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Terminal Logs */
.terminal-window {
  background: var(--terminal-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-body {
  padding: 16px;
  height: 400px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--terminal-text);
  line-height: 1.6;
}

.log-entry {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  word-break: break-all;
}

.log-ts {
  color: #64748b;
  flex-shrink: 0;
}

.log-info { color: #34d399; }
.log-success { color: #34d399; }
.log-error { color: #f87171; }
.log-warn { color: #fbbf24; }

/* Features Toolbar & Filter */
.features-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.features-search-wrap {
  flex: 1;
  min-width: 240px;
  position: relative;
  display: flex;
  align-items: center;
}

.features-search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.features-search-wrap input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.features-search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 165, 80, 0.12);
}

#featureCategoryFilter {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

#featureCategoryFilter:focus {
  border-color: var(--primary);
}

.features-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 0 4px;
}

.features-save-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.features-save-status.active {
  opacity: 1;
}

/* Features Table */
.features-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.features-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.features-table th {
  background: var(--bg-card-sub);
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.features-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.features-table tr:last-child td {
  border-bottom: none;
}

.features-table tr:hover td {
  background: rgba(0, 165, 80, 0.02);
}

.feature-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  font-size: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-card-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.cmd-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-sub);
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-left: 6px;
}

/* Pagination Controls */
.features-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Switch Component */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.25s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

input:checked + .slider {
  background-color: var(--primary);
}

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

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 460px;
  width: 90%;
  padding: 24px;
  text-align: center;
}

/* Login Page Split Showcase Layout */

.login-page-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 24px 0;
}

@media (max-width: 960px) {
  .login-page-wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
  }
}

/* Left: Hero Showcase */
.login-hero-showcase {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(0, 165, 80, 0.25);
  border-radius: 9999px;
  width: fit-content;
}

.hero-headline {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

@media (max-width: 640px) {
  .hero-headline {
    font-size: 1.65rem;
  }
}

.hero-subtext {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Mascot Stage & Aura */
.hero-illustration-stage {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}

.hero-mascot-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--ballbot-glow) 0%, rgba(0, 165, 80, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(28px);
  z-index: 1;
}

.hero-mascot-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.12));
  animation: floatMascot 4.5s ease-in-out infinite;
  transition: transform 0.3s ease;
}

@keyframes floatMascot {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Floating feature chips */
.floating-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9999px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  animation: floatChip 5s ease-in-out infinite;
  white-space: nowrap;
}

.chip-left {
  top: 15%;
  left: -8px;
  animation-delay: 0.5s;
}

.chip-right {
  bottom: 18%;
  right: -8px;
  animation-delay: 1.5s;
}

@media (max-width: 580px) {
  .floating-chip {
    display: none;
  }
}

@keyframes floatChip {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.floating-chip i {
  color: var(--primary);
  width: 16px;
  height: 16px;
}

/* Feature checklist */
.hero-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 4px;
}

.hero-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-main);
}

.hero-benefit-item i {
  color: var(--success);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Right: Auth Card */
.login-auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  overflow: hidden;
}

.login-auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00a550, #10b981, #6ee7b7);
}

.auth-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-card-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-card-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.auth-card-brand-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.auth-card-header h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.auth-card-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Google Login Button */
.btn-google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-google-login:hover {
  background: var(--bg-card-sub);
  border-color: var(--border-focus);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-google-login:active {
  transform: translateY(0);
}

.google-icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Security notice */
.auth-security-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card-sub);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.auth-security-notice i {
  color: var(--success);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Fallback for legacy classes */
.login-hero {
  max-width: 480px;
  margin: 60px auto;
  text-align: center;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 28px;
}

/* Template Menu & WhatsApp Chat Simulator */

.menu-template-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .menu-template-layout {
    grid-template-columns: 1fr;
  }
}

.template-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.template-card {
  border: 2px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.template-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

.template-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary);
}

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

.tpl-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--text-main);
}

.template-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.template-badge-subtle {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-card-sub);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.tpl-card-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Form Inputs & Textareas */
.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 165, 80, 0.15);
}

.form-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Sub-Navigation Segmented in Template Tab */
.template-nav-segmented {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.template-seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.template-seg-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.template-seg-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 165, 80, 0.25);
}

/* Variable Chips for Command Templates */
.cmd-var-guide-box {
  background: var(--bg-card-sub);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 16px;
}

.cmd-var-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.cmd-var-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  color: var(--primary);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-family: monospace;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.cmd-var-chip:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 165, 80, 0.2);
}

.cmd-var-chip:active {
  transform: translateY(0);
}

/* WhatsApp Simulator */
.wa-preview-card {
  position: sticky;
  top: 20px;
}

.wa-chat-screen {
  background: #e5ddd5;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .wa-chat-screen {
  background: #0b141a;
  border-color: var(--border);
}

.wa-chat-header {
  background: #075e54;
  color: #ffffff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

[data-theme="dark"] .wa-chat-header {
  background: #1f2c34;
}

.wa-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-chat-info {
  line-height: 1.25;
}

.wa-chat-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.wa-chat-status {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
}

.wa-chat-body {
  padding: 16px;
  min-height: 320px;
  max-height: 540px;
  overflow-y: auto;
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 16px 16px;
}

[data-theme="dark"] .wa-chat-body {
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.wa-bubble-received {
  background: #ffffff;
  color: #111b21;
  border-radius: 8px 8px 8px 2px;
  padding: 10px 14px;
  max-width: 100%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
  display: inline-block;
  word-break: break-word;
}

[data-theme="dark"] .wa-bubble-received {
  background: #202c33;
  color: #e9edef;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.wa-bubble-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.77rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  color: inherit;
}

.wa-bubble-meta {
  text-align: right;
  margin-top: 4px;
}

.wa-time {
  font-size: 0.65rem;
  color: #667781;
}

[data-theme="dark"] .wa-time {
  color: #8696a0;
}

/* Responsive Mobile Optimization (Tablet & Phone Screens <= 640px & <= 480px) */

@media (max-width: 640px) {
  .wrap {
    padding: 12px 10px 60px 10px;
  }

  /* Topbar Mobile */
  .jb-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
  }

  .jb-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .jb-logo-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 18px;
  }

  .jb-brand-text {
    flex: 1;
    min-width: 0;
  }

  .jb-brand-text h1 {
    font-size: 0.98rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
  }

  .jb-brand-text p {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
  }

  .jb-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }

  .user-badge {
    max-width: 140px;
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  .user-badge span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    max-width: 100px;
  }

  /* Nav Tabs Horizontal Scroll Mobile */
  .jb-nav-tabs {
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
  }

  .jb-nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .jb-tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 0.82rem;
    gap: 6px;
  }

  /* Cards Mobile */
  .card {
    padding: 16px 12px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
  }

  .card-title {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
  }

  .card-title h2 {
    font-size: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .card-title .btns {
    width: 100%;
    display: flex;
    gap: 6px;
  }

  .card-title .btns .btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 8px 6px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  /* Connection Method Switcher Mobile */
  .connection-method-switcher {
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    padding: 6px;
    margin-bottom: 16px;
  }

  .method-pill {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  /* QR Canvas & Phone Pair Mobile */
  .qr-box-wrap {
    padding: 12px 6px;
  }

  .qr-canvas-box {
    padding: 12px;
    min-height: 180px;
  }

  .qr-canvas-box canvas,
  .qr-canvas-box img {
    max-width: 100% !important;
    height: auto !important;
  }

  .phone-pair-form {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 100%;
  }

  .phone-pair-form input {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .phone-pair-form .btn {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }

  .code-boxes {
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .code-box {
    width: 32px;
    height: 40px;
    font-size: 1.1rem;
  }

  /* Features Toolbar & Table Mobile */
  .features-toolbar {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .features-search-wrap {
    width: 100%;
  }

  #featureCategoryFilter {
    width: 100%;
  }

  .features-summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .features-table th,
  .features-table td {
    padding: 10px 6px;
  }

  .features-table th:nth-child(2),
  .features-table td:nth-child(2) {
    display: none; /* Sembunyikan kolom Kategori di layar mobile sempit agar kolom perintah leluasa */
  }

  .feature-info {
    gap: 8px;
  }

  .feature-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }

  .cmd-badge {
    font-size: 0.68rem;
    padding: 1px 4px;
  }

  .features-pagination {
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .page-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
    min-width: 32px;
    height: 32px;
  }

  /* Menu Template Form & Live Preview Mobile */
  .template-card-grid {
    grid-template-columns: 1fr;
  }

  .form-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .form-actions-bar .btn {
    width: 100%;
    justify-content: center;
  }

  .wa-preview-card {
    position: static;
    margin-top: 14px;
  }

  .wa-chat-body {
    padding: 10px;
    min-height: 260px;
    max-height: 400px;
  }

  .wa-bubble-received {
    padding: 8px 10px;
  }

  .wa-bubble-text {
    font-size: 0.72rem;
  }

  /* Billing & Modal Mobile */
  .billing-summary-box {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px 16px !important;
  }

  .billing-summary-box > div:last-child {
    text-align: left !important;
  }

  .modal-card {
    width: 95%;
    padding: 18px 14px;
  }

  #modalQrisBox img,
  #modalQrisBox canvas {
    max-width: 220px !important;
    max-height: 220px !important;
  }

  .global-toast {
    bottom: 16px;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.82rem;
    max-width: calc(100vw - 32px);
  }
}

@media (max-width: 380px) {
  .wrap {
    padding: 10px 6px 50px 6px;
  }

  .card {
    padding: 14px 10px;
  }

  .card-title .btns .btn {
    padding: 7px 4px;
    font-size: 0.75rem;
  }

  .jb-tab-btn {
    padding: 7px 10px;
    font-size: 0.78rem;
  }
}

/* 
   Subscription Plans Grid & Billing Enhancements
 */

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.plan-card {
  border: 2px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}

.plan-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--primary-light), var(--bg-card));
  box-shadow: 0 4px 14px rgba(0, 165, 80, 0.15);
}

.plan-badge-top {
  position: absolute;
  top: -10px;
  right: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.plan-badge-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 165, 80, 0.3);
}

.plan-badge-subtle {
  background: var(--bg-card-sub);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.plan-badge-green {
  background: var(--success);
  color: #fff;
}

.plan-card-header {
  margin-bottom: 12px;
}

.plan-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.plan-card-duration {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-price-wrap {
  margin: 12px 0 10px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.plan-price {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.plan-original-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.plan-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 14px;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.plan-feature-item {
  font-size: 0.77rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.35;
}

.plan-feature-item i,
.plan-feature-item svg {
  width: 14px;
  height: 14px;
  color: var(--success);
  flex-shrink: 0;
}

.plan-btn {
  width: 100%;
  justify-content: center;
  padding: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: auto;
}

/* Feature Highlights Grid */
.billing-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.billing-feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--bg-card-sub);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.bf-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bf-icon i,
.bf-icon svg {
  width: 18px;
  height: 18px;
}

.bf-text h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.bf-text p {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Floating Global Toast Notification */
.global-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 90vw;
  box-sizing: border-box;
}

.global-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.global-toast.toast-success {
  border-color: rgba(16, 185, 129, 0.3);
}

.global-toast.toast-error {
  border-color: rgba(239, 68, 68, 0.3);
}

/* Save Button Success State */
.btn-save-success {
  background: var(--success) !important;
  border-color: var(--success) !important;
  color: #fff !important;
}

/* Subscription Inactive Alert */
.sub-inactive-alert {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.sub-inactive-alert-content {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 600px;
}

/* ==========================================================================
   Custom Global Alert Modal System (Single Unified Modern Alert)
   ========================================================================== */

.global-alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px;
}

.global-alert-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.global-alert-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.3), 0 10px 15px -5px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 400px;
  padding: 28px 22px 22px 22px;
  text-align: center;
  transform: scale(0.92) translateY(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-alert-overlay.active .global-alert-card {
  transform: scale(1) translateY(0);
}

.global-alert-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.global-alert-close-btn:hover {
  background: var(--bg-card-sub);
  color: var(--text-main);
  border-color: var(--border);
}

.global-alert-close-btn i,
.global-alert-close-btn svg {
  width: 16px;
  height: 16px;
}

.global-alert-icon-wrapper {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.global-alert-icon-wrapper i,
.global-alert-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

/* Alert Type Themes */
.global-alert-icon-wrapper.alert-type-error,
.global-alert-icon-wrapper.alert-type-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.15);
}

.global-alert-icon-wrapper.alert-type-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
}

.global-alert-icon-wrapper.alert-type-success {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(0, 165, 80, 0.25);
  box-shadow: 0 4px 14px rgba(0, 165, 80, 0.15);
}

.global-alert-icon-wrapper.alert-type-info {
  background: #eff6ff;
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .global-alert-icon-wrapper.alert-type-error,
[data-theme="dark"] .global-alert-icon-wrapper.alert-type-danger {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.35);
}

[data-theme="dark"] .global-alert-icon-wrapper.alert-type-warning {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.35);
}

[data-theme="dark"] .global-alert-icon-wrapper.alert-type-success {
  background: rgba(0, 200, 83, 0.16);
  border-color: rgba(0, 200, 83, 0.35);
}

[data-theme="dark"] .global-alert-icon-wrapper.alert-type-info {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.35);
}

.global-alert-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.35;
}

.global-alert-message {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 22px;
  word-break: break-word;
  white-space: pre-line;
}

.global-alert-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.global-alert-btn {
  width: 100%;
  height: 42px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  justify-content: center;
}

/* ==========================================================================
   QRIS Payment Error Inline Hint
   ========================================================================== */

.qr-error-hint-card {
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card-sub);
  border: 1px dashed rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-md);
  margin: 10px 0;
  width: 100%;
}

.qr-error-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.qr-error-icon i,
.qr-error-icon svg {
  width: 24px;
  height: 24px;
}

.qr-error-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.qr-error-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 320px;
  margin-bottom: 16px;
  word-break: break-word;
}

.qr-error-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}



