/* ============================================================
   WHITE MODERN DESIGN SYSTEM - CEK GETCONTACT
   Mobile & iOS Safari Optimized
   ============================================================ */

:root {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-input: #ffffff;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  text-rendering: optimizeLegibility;
}

/* NAVBAR */
.navbar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-border);
  flex-shrink: 0;
}

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

.brand-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-outline-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-outline-nav:hover, .btn-outline-nav:active {
  background-color: var(--bg-subtle);
  border-color: var(--text-light);
}

/* MAIN CONTENT */
.main-content {
  flex: 1 0 auto;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* HERO */
.hero-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--primary-border);
  max-width: 100%;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
  animation: pulseAnim 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

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

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.5;
}

/* CARDS */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* SEARCH INPUT */
.search-card {
  border: 1px solid #cbd5e1;
}

.input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.input-group {
  display: flex;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.input-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-subtle);
  padding: 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  border-right: 1px solid var(--border-color);
  user-select: none;
  flex-shrink: 0;
}

.flag-icon {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
}

.input-group input {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-size: 16px; /* Prevents auto-zoom on iOS */
  font-family: inherit;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  background: transparent;
  min-width: 0;
}

.input-group input::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0 22px;
  min-height: 48px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

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

.btn-primary:active {
  transform: scale(0.98);
}

.search-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 8px;
}

.price-tag {
  color: var(--text-muted);
}

.price-tag strong {
  color: var(--text-main);
}

/* LINK BUTTON - NO UNDERLINE */
.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  touch-action: manipulation;
  transition: color 0.2s ease;
}

.link-btn:hover, .link-btn:focus {
  color: var(--primary-hover);
  text-decoration: none !important;
}

.icon-inline {
  vertical-align: middle;
  flex-shrink: 0;
}

/* VOUCHER ACCORDION */
.voucher-box {
  margin-top: 14px;
  padding: 12px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
}

.voucher-input-group {
  display: flex;
  gap: 8px;
}

.voucher-input-group input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px; /* Prevents auto-zoom on iOS */
  text-transform: uppercase;
  font-weight: 700;
  min-width: 0;
}

.voucher-input-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-secondary {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0 16px;
  min-height: 42px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
}

.voucher-msg {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.feature-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.feature-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.feature-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* RESULT SECTION */
.result-card {
  border-top: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* NOTICE BOX */
.notice-box {
  background-color: var(--warning-bg);
  border: 1px solid #fef3c7;
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.notice-icon {
  color: var(--warning);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-content strong {
  color: #92400e;
  font-size: 0.88rem;
  display: block;
  margin-bottom: 4px;
}

.notice-content p {
  font-size: 0.82rem;
  color: #b45309;
  line-height: 1.4;
}

.trx-pill-group {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--warning-border);
  max-width: 100%;
}

.trx-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #78350f;
  word-break: break-all;
}

.btn-copy {
  background: var(--warning-border);
  border: none;
  color: #92400e;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.btn-copy:hover {
  opacity: 0.85;
}

/* PROFILE HEADER */
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.profile-avatar-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-color);
  background-color: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-fallback {
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-details {
  flex: 1;
  min-width: 200px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.profile-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.badge-status {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-safe {
  background-color: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.badge-warn {
  background-color: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.profile-meta {
  display: flex;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-icon {
  color: var(--text-light);
  flex-shrink: 0;
}

.meta-item strong {
  color: var(--text-main);
}

/* SECURITY WARNING BOX */
.security-warning {
  background-color: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.warning-title {
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.warning-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.warn-chip {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
}

/* TAGS SECTION */
.tags-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tags-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.tags-search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  flex: 1;
  max-width: 320px;
  min-width: 180px;
}

.tags-search-input input {
  border: none;
  font-family: inherit;
  font-size: 16px; /* Prevents auto-zoom on iOS */
  color: var(--text-main);
  outline: none;
  width: 100%;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-surface);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-download:hover, .btn-download:active {
  background-color: var(--primary);
  color: #ffffff;
}

/* TAGS GRID / NUMBERED LIST */
.tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  max-height: 440px;
  overflow-y: auto;
  padding: 6px 2px;
  -webkit-overflow-scrolling: touch;
}

.tag-item-row {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 9px 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.15s ease;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.tag-item-row:hover, .tag-item-row:active {
  background-color: #f8fafc;
  border-color: var(--primary-border);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.tag-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.tag-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  background-color: var(--primary-light);
  border: 1px solid var(--primary-border);
  min-width: 26px;
  height: 24px;
  padding: 0 4px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tag-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-tag {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  transition: all 0.15s ease;
  pointer-events: none; /* Klik seluruh card otomatis menyalin */
}

.tag-item-row:hover .btn-copy-tag {
  background-color: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
}

.tag-item-row.is-scam {
  background-color: #fef2f2;
  border-color: #fecaca;
}

.tag-item-row.is-scam .tag-number {
  background-color: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.tag-item-row.is-scam .tag-text {
  color: #991b1b;
  font-weight: 700;
}

.no-tags {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* TAGS PAGINATION (MOBILE & DESKTOP OPTIMIZED) */
.tags-pagination {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
  box-sizing: border-box;
  clear: both;
}

.pagination-info {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
  letter-spacing: -0.01em;
}

.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 440px;
}

.btn-page-nav {
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  height: 38px;
}

.btn-page-nav:hover:not(:disabled), .btn-page-nav:active:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
}

.btn-page-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-page-text {
  display: inline;
}

.pagination-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  padding: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-num-btn {
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.page-num-btn:hover:not(.active) {
  background-color: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
}

.page-num-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  font-weight: 800;
}

.result-footer {
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-outline:hover, .btn-outline:active {
  background-color: var(--bg-subtle);
}

/* MODALS - MOBILE SAFE */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: slideUp 0.25s ease;
}

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

@keyframes slideUp {
  from { transform: translateY(12px) translateZ(0); opacity: 0; } to { transform: translateY(0) translateZ(0); opacity: 1; }
}

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

.modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  touch-action: manipulation;
}

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

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.qris-info-bar {
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}

.qris-info-row {
  display: flex;
  justify-content: space-between;
}

.price-highlight {
  color: var(--primary);
  font-size: 0.95rem;
}

.qris-card-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 2px 10px;
}

.qris-timer-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: #b45309;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.timer-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #92400e;
  letter-spacing: normal;
}

.qris-timer-wrap .timer-clock-icon {
  color: #b45309;
  stroke: #b45309;
  flex-shrink: 0;
}

.qris-timer-wrap.is-urgent {
  color: #dc2626;
  animation: pulseTimer 1s infinite;
}

.qris-timer-wrap.is-urgent .timer-clock-icon {
  color: #dc2626;
  stroke: #dc2626;
}

@keyframes pulseTimer {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}


.qris-download-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 6px 0;
  width: 100%;
}

.btn-download-qr {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #2563eb;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  touch-action: manipulation;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  max-width: 290px;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.btn-download-qr:hover, .btn-download-qr:active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-download-qr:active {
  transform: scale(0.98);
}

.btn-download-qr svg {
  stroke: currentColor;
  flex-shrink: 0;
}

.qris-mobile-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.35;
  padding: 0 8px;
}

.qris-mobile-tip svg {
  color: var(--primary);
  flex-shrink: 0;
}

.qr-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
}

.qr-image {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  pointer-events: auto !important;
  -webkit-touch-callout: default !important;
  -webkit-user-select: auto !important;
  user-select: auto !important;
  cursor: pointer;
}

.qr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.qris-status-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-full);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--warning);
  flex-shrink: 0;
}

.status-indicator.pulse {
  box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.5);
  animation: pulseWarning 1.5s infinite;
}

@keyframes pulseWarning {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(217, 119, 6, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

.supported-apps {
  text-align: center;
}

.apps-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.apps-icons {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.badge-app {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.qris-help-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.modal-footer {
  padding: 14px 20px;
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* HISTORY MODAL */
.history-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.history-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.history-input-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 16px; /* Prevents auto-zoom on iOS */
  font-weight: 600;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.history-input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.history-input-group .btn-primary {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  justify-content: center;
  border-radius: var(--radius-md);
}

.history-msg {
  font-size: 0.82rem;
  margin-top: 6px;
}

@media (min-width: 641px) {
  .history-input-group {
    flex-direction: row;
    gap: 8px;
  }
  .history-input-group input {
    flex: 1;
    min-width: 0;
  }
  .history-input-group .btn-primary {
    width: auto;
    white-space: nowrap;
  }
}

/* REFUND MODAL SPECIFIC STYLING */
.modal-refund {
  max-width: 480px;
}

.refund-header {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.refund-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.refund-alert-box {
  display: flex;
  gap: 12px;
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.refund-alert-icon {
  color: #d97706;
  flex-shrink: 0;
  margin-top: 2px;
}

.refund-alert-text strong {
  display: block;
  font-size: 0.88rem;
  color: #92400e;
  margin-bottom: 3px;
  line-height: 1.35;
}

.refund-alert-text p {
  font-size: 0.82rem;
  color: #b45309;
  line-height: 1.45;
}

.refund-voucher-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 2px dashed #93c5fd;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.v-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1e40af;
}

.v-val-chip {
  font-size: 0.76rem;
  color: #1e3a8a;
  background: #dbeafe;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.voucher-card-body {
  display: flex;
  gap: 8px;
}

.refund-code-input {
  flex: 1;
  background-color: #ffffff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px; /* Prevents auto-zoom on iOS */
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  user-select: all;
  -webkit-user-select: all;
  min-width: 0;
}

.refund-code-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-copy-refund {
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  touch-action: manipulation;
  white-space: nowrap;
  transition: background-color 0.15s ease;
  flex-shrink: 0;
}

.btn-copy-refund:hover, .btn-copy-refund:active {
  background-color: #1d4ed8;
}

.voucher-card-foot {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.74rem;
  color: #1e40af;
  line-height: 1.4;
}

.voucher-card-foot svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.refund-instructions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 2px;
}

.instruction-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.step-desc code {
  background: var(--bg-subtle);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--primary);
  font-weight: 700;
}

/* SPINNER & GLOBAL LOADING */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner.large {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

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

.global-loading {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.loading-box {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  max-width: 340px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-xl);
}

.loading-box h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.loading-box p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background-color: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 70;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* RESPONSIVE & MOBILE / IOS TWEAKS */
@media (max-width: 640px) {
  .main-content {
    padding: 24px 14px 40px;
    gap: 20px;
  }

  .nav-container {
    padding: 10px 14px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .btn-outline-nav {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .hero-title {
    font-size: 1.55rem;
  }

  .hero-desc {
    font-size: 0.88rem;
  }

  .card {
    padding: 18px 14px;
  }

  .input-group {
    flex-direction: column;
  }

  .input-prefix {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 14px;
  }

  .input-group input {
    padding: 12px 14px;
  }

  .btn-primary {
    padding: 14px;
    width: 100%;
    justify-content: center;
  }

  .search-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

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

  .feature-item {
    padding: 14px;
  }

  .tags-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .tags-search-input {
    max-width: 100%;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
  }

  .tags-grid {
    grid-template-columns: 1fr;
    max-height: 380px;
  }

  .tags-pagination {
    width: 100% !important;
    margin-top: 14px;
    padding-top: 12px;
    gap: 10px;
  }

  .pagination-info {
    font-size: 0.78rem;
    text-align: center;
    width: 100%;
  }

  .pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: nowrap;
    width: 100%;
  }

  .btn-page-nav {
    padding: 6px 10px;
    font-size: 0.8rem;
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .btn-page-text {
    display: none;
  }

  .pagination-numbers {
    gap: 4px;
  }

  .page-num-btn {
    min-width: 34px;
    height: 36px;
    font-size: 0.84rem;
    padding: 0 4px;
    border-radius: 8px;
  }

  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .profile-meta {
    flex-direction: column;
    gap: 6px;
  }

  .modal-overlay {
    padding: 12px;
    align-items: flex-start;
    padding-top: calc(env(safe-area-inset-top, 15px) + 20px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-card {
    max-height: 86vh;
    margin: 0 auto;
  }

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

  .modal-body {
    padding: 16px;
  }

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

  .modal-footer button {
    width: 100%;
    justify-content: center;
  }

  .qris-download-wrap {
    width: 100%;
  }

  .btn-download-qr {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 380px) {
  .brand-subtitle {
    display: none;
  }

  .hero-title {
    font-size: 1.35rem;
  }
}
