/* =============================================
   downloadhub.uk.com — Mega888 Malaysia
   Stylesheet v2.0
   — font-display:swap via preconnect in <head>
   — content-visibility for off-screen sections
   — prefers-reduced-motion support
   — improved focus-visible / a11y
   — polished visual details
   ============================================= */

/* Google Fonts — use display=swap to avoid FOIT */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #0f172a;
  --primary-mid:  #1e293b;
  --accent:       #22c55e;
  --accent-dk:    #16a34a;
  --accent-glow:  rgba(34,197,94,.3);
  --bg:           #f8fafc;
  --surface:      #ffffff;
  --border:       #e2e8f0;
  --border-soft:  #f1f5f9;
  --muted:        #64748b;
  --text:         #1e293b;
  --text-light:   #334155;
  --radius:       10px;
  --radius-lg:    14px;
  --shadow:       0 1px 4px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.06);
  --shadow-md:    0 4px 12px rgba(15,23,42,.08), 0 12px 32px rgba(15,23,42,.1);
  --shadow-green: 0 4px 14px rgba(34,197,94,.35);
  --shadow-green-hover: 0 6px 22px rgba(34,197,94,.48);
  --transition:   .18s ease;
}

/* ── Scrollbar (Webkit) ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Selection colour ── */
::selection { background: rgba(34,197,94,.18); color: var(--primary); }

/* ── Smooth scroll (respects prefers-reduced-motion) ── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent-dk);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { text-decoration: underline; }

/* Accessible focus rings — only on keyboard nav */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */
header {
  background: var(--primary);
  padding: 13px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; opacity: .9; }

/* ── Logo image (replaces text logo) ── */
.logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* ── Content images ── */
.content-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  margin: 24px 0;
  box-shadow: var(--shadow-md);
}

.footer-logo-img {
  display: block;
  height: 28px;
  width: auto;
  margin-bottom: 12px;
  opacity: .85;
}

header nav { display: flex; gap: 22px; align-items: center; }

header nav a {
  color: #94a3b8;
  font-size: .875rem;
  font-weight: 500;
  transition: color var(--transition);
  white-space: nowrap;
}
header nav a:hover,
header nav a.active {
  color: #fff;
  text-decoration: none;
}
header nav a.active { color: var(--accent); }

/* ── Hero ── */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 68px 0 60px;
  position: relative;
  overflow: hidden;
}

/* Layered ambient glows */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}
.hero::before {
  top: -100px; right: -60px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(34,197,94,.14) 0%, transparent 65%);
}
.hero::after {
  bottom: -80px; left: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(34,197,94,.07) 0%, transparent 70%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,.12);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(34,197,94,.28);
  margin-bottom: 20px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 20px;
  letter-spacing: -0.6px;
}
.hero h1 span { color: var(--accent); }

.hero-lead {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 620px;
  margin-bottom: 34px;
  line-height: 1.8;
}

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .1px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.btn:hover { text-decoration: none; }

@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); }
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-green);
}
.btn-primary:hover {
  background: var(--accent-dk);
  box-shadow: var(--shadow-green-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: rgba(255,255,255,.9);
  border: 1.5px solid rgba(255,255,255,.28);
}
.btn-outline:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.55);
  color: #fff;
}

/* Green outline variant — used outside hero */
.btn-outline-green {
  background: transparent;
  color: var(--accent-dk);
  border: 1.5px solid var(--accent);
}
.btn-outline-green:hover {
  background: rgba(34,197,94,.06);
  border-color: var(--accent-dk);
}

.btn-lg {
  padding: 14px 30px;
  font-size: .95rem;
  border-radius: 10px;
}

/* ── Table of Contents ── */
.toc-block {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.toc-block .section-label { margin-bottom: 12px; }

.toc-block ol {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 24px;
  margin: 0;
}

.toc-block ol li {
  break-inside: avoid;
  counter-increment: toc-counter;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-soft);
}
.toc-block ol li:last-child { border-bottom: none; }

/* Custom number badge */
.toc-block ol li::before {
  content: counter(toc-counter);
  counter-reset: none;
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: .68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 1px;
}

.toc-block ol {
  counter-reset: toc-counter;
}

.toc-block ol a {
  color: var(--primary);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
  transition: color var(--transition);
  display: block;
}
.toc-block ol a:hover {
  color: var(--accent-dk);
  text-decoration: none;
}

/* ── Sections ── */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--border); }

/* content-visibility speeds up paint for off-screen sections */
main section {
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--accent-dk);
  margin-bottom: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 14px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.35px;
  line-height: 1.28;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

p { margin-bottom: 16px; color: var(--text-light); }
p:last-child { margin-bottom: 0; }

/* ── CTA Box ── */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  color: #fff;
  margin: 8px 0 32px;
  position: relative;
  overflow: hidden;
}
.cta-box::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.cta-box p { color: #94a3b8; margin-bottom: 24px; }

/* ── Steps ── */
.steps { list-style: none; counter-reset: step-counter; margin: 20px 0; }

.steps li {
  counter-increment: step-counter;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
  transition: background var(--transition);
}
.steps li:last-child { border-bottom: none; }

.step-num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(34,197,94,.35);
}
.step-num::before { content: counter(step-counter); }

.step-body strong {
  display: block;
  font-size: .93rem;
  color: var(--primary);
  margin-bottom: 4px;
  font-weight: 600;
}
.step-body p { font-size: .875rem; color: var(--muted); margin: 0; line-height: 1.65; }

/* ── Cards Grid ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  will-change: transform;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(34,197,94,.3);
  transform: translateY(-4px);
}

.card-icon {
  width: 44px; height: 44px;
  background: rgba(34,197,94,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.25rem;
  border: 1px solid rgba(34,197,94,.18);
}

.card h3 { font-size: .95rem; margin-bottom: 7px; }
.card p  { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.6; }

/* ── Bank Grid ── */
.bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.bank-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: .875rem;
  color: var(--primary);
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.bank-item:hover {
  border-color: rgba(34,197,94,.35);
  box-shadow: 0 4px 14px rgba(34,197,94,.12);
}

.bank-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 5px rgba(34,197,94,.5);
}

/* ── Problem / Troubleshoot List ── */
.problem-list { list-style: none; margin: 20px 0; }

.problem-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
  margin-bottom: 10px;
  transition: border-left-width var(--transition), box-shadow var(--transition);
}
.problem-list li:hover {
  border-left-width: 5px;
  box-shadow: var(--shadow);
}

.problem-list li strong {
  display: block;
  color: var(--primary);
  margin-bottom: 6px;
  font-size: .93rem;
  font-weight: 600;
}
.problem-list li span { font-size: .86rem; color: var(--muted); line-height: 1.65; }

/* ── FAQ ── */
.faq { margin-top: 20px; }

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
details:hover { box-shadow: var(--shadow); }
details[open] {
  border-color: rgba(34,197,94,.25);
  box-shadow: 0 0 0 3px rgba(34,197,94,.06);
}

summary {
  padding: 17px 20px;
  font-weight: 600;
  font-size: .925rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary);
  user-select: none;
  transition: background var(--transition);
  gap: 12px;
}
summary:hover { background: var(--bg); }
summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .2s ease;
  font-weight: 400;
}
details[open] summary::after { transform: rotate(45deg); }
details[open] summary { background: var(--bg); }

.faq-body {
  padding: 16px 20px 18px;
  font-size: .875rem;
  color: #475569;
  line-height: 1.75;
  border-top: 1px solid var(--border);
}
.faq-body a { color: var(--accent-dk); }

/* ── Requirements Table ── */
.req-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: .875rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.req-table th {
  background: var(--primary);
  color: #fff;
  padding: 13px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.req-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-light);
  transition: background var(--transition);
}
.req-table tr:last-child td { border-bottom: none; }
.req-table tbody tr:nth-child(even) td { background: #f8fafc; }
.req-table tbody tr:hover td { background: rgba(34,197,94,.04); }

/* ── Info Box ── */
.info-box {
  background: rgba(34,197,94,.06);
  border: 1px solid rgba(34,197,94,.22);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  font-size: .875rem;
  color: #166534;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0;
  line-height: 1.65;
}
.info-box::before {
  content: '✓';
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent);
}

/* ── Warning Box ── */
.warn-box {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-left: 3px solid #f97316;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  font-size: .875rem;
  color: #7c2d12;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0;
  line-height: 1.65;
}
.warn-box::before { content: '⚠'; flex-shrink: 0; color: #f97316; }

/* ── Footer ── */
footer {
  background: var(--primary);
  color: #94a3b8;
  padding: 44px 0 28px;
  margin-top: 16px;
  border-top: 1px solid rgba(34,197,94,.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-col h4 {
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -.1px;
}

.footer-col p { font-size: .84rem; color: #64748b; line-height: 1.8; margin: 0; }

.footer-col a {
  display: inline-block;
  font-size: .84rem;
  color: #64748b;
  line-height: 2;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 20px;
  font-size: .78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #475569;
}
.footer-bottom a { color: #475569; transition: color var(--transition); }
.footer-bottom a:hover { color: var(--accent); }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 13px 0;
  font-size: .8rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent-dk); text-decoration: none; }
.breadcrumb span { color: var(--primary); font-weight: 500; }

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  header nav { display: none; }     /* hide header nav only, NOT the TOC nav */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-box { padding: 28px 22px; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }
  .toc-block ol { columns: 1; }
  .toc-block { padding: 24px 0; }
}

/* ── Small mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .hero { padding: 44px 0 40px; }
  .hero h1 { letter-spacing: -.4px; }
  section { padding: 40px 0; }
  .cards { grid-template-columns: 1fr; }
  .bank-grid { grid-template-columns: repeat(2, 1fr); }
  .req-table { font-size: .8rem; }
  .req-table th, .req-table td { padding: 10px 12px; }
}

/* ══════════════════════════════════════════════
   Free Test ID Section — id-box & copy-box
   Mobile-optimised credential display
   ══════════════════════════════════════════════ */

/* Wrapper: side-by-side on desktop, stacked on mobile */
.id-box-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

/* Individual credential card */
.id-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.id-box:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(34,197,94,.3);
}
/* Green accent top bar */
.id-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dk));
}

/* Label above the value */
.id-box-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.id-box-label::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 5px rgba(34,197,94,.4);
  flex-shrink: 0;
}

/* The actual ID / password value */
.id-box-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .5px;
  word-break: break-all;
  margin-bottom: 16px;
  font-family: 'Courier New', Courier, monospace;
  line-height: 1.4;
}

/* Copy row — value + button in one row */
.copy-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  cursor: default;
  /* ✅ Kunci utama: cegah stretch keluar container */
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.copy-box:focus-within,
.copy-box:hover {
  border-color: rgba(34,197,94,.45);
  background: rgba(34,197,94,.04);
  box-shadow: 0 0 0 3px rgba(34,197,94,.08);
}

/* Text span inside copy-box */
.copy-box span,
.copy-box .copy-value {
  /* ✅ flex: 1 1 0 supaya shrink betul, bukan flex:1 yang expand tak terhad */
  flex: 1 1 0;
  min-width: 0;          /* wajib untuk flex child boleh shrink */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  font-family: 'Courier New', Courier, monospace;
}

/* Copy button */
.copy-box button,
.copy-box .copy-btn,
.copy-btn {
  flex-shrink: 0;        /* button jangan shrink */
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .3px;
  white-space: nowrap;
  line-height: 1;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.copy-box button:hover,
.copy-box .copy-btn:hover,
.copy-btn:hover {
  background: var(--accent-dk);
  box-shadow: var(--shadow-green);
  transform: translateY(-1px);
}
.copy-box button:active,
.copy-box .copy-btn:active,
.copy-btn:active {
  transform: translateY(0);
}

/* ── Tablet (≤ 700px): stack ID boxes ── */
@media (max-width: 700px) {
  .id-box-wrapper {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
  }

  /* Pastikan id-box tak overflow container pada tablet */
  .id-box {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

/* ── Mobile (≤ 480px): button jadi full-width di bawah teks ── */
@media (max-width: 480px) {
  .id-box {
    padding: 18px 16px 14px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .id-box-value {
    font-size: .95rem;
    letter-spacing: .2px;
    margin-bottom: 12px;
    word-break: break-all;
  }

  .copy-box {
    /* Stack: teks atas, button bawah */
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
  }

  .copy-box span,
  .copy-box .copy-value {
    white-space: normal;   /* wrap teks ID panjang */
    word-break: break-all;
    text-overflow: unset;
    overflow: visible;
    font-size: .8rem;
    width: 100%;
  }

  .copy-box button,
  .copy-box .copy-btn,
  .copy-btn {
    width: 100%;
    padding: 11px;
    font-size: .82rem;
    border-radius: 8px;
    text-align: center;
  }
}

/* ══ Test ID Section ══ */
.testid-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.testid-box {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 18px 20px;
  min-width: 0; /* penting supaya flex child boleh shrink */
  box-sizing: border-box;
}

.testid-label {
  color: #64748b;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.testid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.testid-value {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .5px;
  font-family: monospace;
  /* kunci: text tak overflow keluar box */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 0;
}

.testid-copy-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(34,197,94,.4);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.testid-copy-btn:hover { background: rgba(34,197,94,.1); }

/* Tablet ke bawah — stack jadi 1 kolom */
@media (max-width: 600px) {
  .testid-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .testid-box {
    padding: 16px;
  }

  /* Pada mobile: teks wrap, button full-width di bawah */
  .testid-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .testid-value {
    font-size: 1rem;
    white-space: normal;
    word-break: break-all;
    overflow: visible;
    text-overflow: unset;
  }

  .testid-copy-btn {
    width: 100%;
    padding: 10px;
    font-size: .82rem;
    border-radius: 8px;
    text-align: center;
  }
}

/* ── Reduced-motion: strip all transitions/animations ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}