/* ── EARobot FX — Main Stylesheet ──────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');
@import url('tokens.css');

:root {
  --bg:        #080c10;
  --bg2:       #0d1219;
  --bg3:       #111820;
  --card:      #131b24;
  --border:    #1e2d3d;
  --gold:      #f0a500;
  --gold2:     #ffc740;
  --gold-dim:  rgba(240,165,0,.12);
  --green:     #00d68f;
  --red:       #ff4d6d;
  --text:      #e8edf2;
  --muted:     #7a8fa6;
  --font-head: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 8px 32px rgba(0,0,0,.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold2); }

img { max-width: 100%; display: block; }

/* -- Table scroll: jadual lebar boleh digulung mendatar pada telefon -- */
.table-scroll,
.table-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll > table,
.table-wrapper > table { min-width: 520px; }

/* ── Layout ── */
.container { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(8,12,16,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}
.navbar-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px; height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 22px; font-weight: 700;
  color: var(--text); letter-spacing: .5px;
}
.nav-logo span { color: var(--gold); }
.nav-logo img { height: 36px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 6px 14px; border-radius: 6px;
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg3); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px 0;
  transition: all .25s;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: all .2s; letter-spacing: .3px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #e8940a);
  color: #000; box-shadow: 0 4px 18px rgba(240,165,0,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(240,165,0,.5); color: #000; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: var(--bg3); color: var(--text); }
.btn-ghost:hover { background: var(--border); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: rgba(240,165,0,.3); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-body { padding: 20px; }

/* ── Product Card ── */
.product-card { position: relative; }
.product-card .badge-featured {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: #000;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  letter-spacing: .5px; z-index: 2;
}
.product-card .badge-promo {
  position: absolute; top: 12px; right: 12px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  letter-spacing: .5px; z-index: 2;
}
.product-image { position: relative; overflow: hidden; aspect-ratio: 16/9; background: var(--bg2); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-info { padding: 18px; }
.product-name {
  font-family: var(--font-head); font-size: 18px; font-weight: 700;
  color: var(--text); margin-bottom: 8px; line-height: 1.3;
}
.product-desc { color: var(--muted); font-size: 13px; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.price-current { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--gold); }
.price-regular { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 12px; color: var(--muted); }
.sold-badge { display: flex; align-items: center; gap: 4px; }
.sold-badge::before { content: '●'; color: var(--green); font-size: 8px; }
.variant-select {
  width: 100%; padding: 9px 12px; margin-bottom: 12px;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; font-size: 14px; cursor: pointer;
}
.variant-select:focus { outline: none; border-color: var(--gold); }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 0 80px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(240,165,0,.08) 0%, transparent 70%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f0a500' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-dim); border: 1px solid rgba(240,165,0,.3);
  color: var(--gold); font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 24px;
  letter-spacing: .5px; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(38px, 6vw, 64px);
  font-weight: 700; line-height: 1.1; margin-bottom: 20px;
  color: var(--text);
}
.hero h1 .accent { color: var(--gold); }
.hero p { font-size: 17px; color: var(--muted); margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 56px;
  padding-top: 40px; border-top: 1px solid var(--border);
}
.hero-stat .num {
  font-family: var(--font-head); font-size: 32px; font-weight: 700; color: var(--gold);
}
.hero-stat .label { font-size: 13px; color: var(--muted); }

/* ── Section headers ── */
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 {
  font-family: var(--font-head); font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; margin-bottom: 12px;
}
.section-head h2 .accent { color: var(--gold); }
.section-head p { color: var(--muted); max-width: 500px; margin: 0 auto; }
.section-line {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 14px auto 0;
}

/* ── Grid ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Reviews ── */
.review-card { padding: 22px; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; background: var(--bg3);
  border: 2px solid var(--border);
}
.review-avatar-placeholder {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold-dim); border: 2px solid rgba(240,165,0,.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; color: var(--gold); font-size: 16px;
}
.review-name { font-weight: 600; font-size: 14px; }
.review-date { font-size: 12px; color: var(--muted); }
.stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; margin-bottom: 10px; }
.review-text { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ── Recent Orders Ticker ── */
.orders-ticker {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.ticker-label {
  background: var(--gold); color: #000;
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  padding: 6px 16px; text-transform: uppercase;
  display: inline-block;
}
.ticker-track { display: flex; gap: 0; overflow: hidden; }
.ticker-inner {
  display: flex; gap: 0;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
}
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; font-size: 13px; color: var(--muted);
  border-right: 1px solid var(--border);
}
.ticker-item .name { color: var(--text); font-weight: 500; }
.ticker-item .product { color: var(--gold); }
.ticker-dot { color: var(--green); font-size: 8px; }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Old "Social proof popup" (.social-proof) rules removed — replaced by .sp-popup below,
   now the single shared implementation used on every page via includes/footer.php. */

/* ── Photo Reviews Gallery ── */
.photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.photo-item {
  border-radius: 8px; overflow: hidden;
  aspect-ratio: 1; cursor: pointer;
  border: 1px solid var(--border);
  transition: transform .2s, border-color .2s;
}
.photo-item:hover { transform: scale(1.03); border-color: var(--gold); }
.photo-item img, .photo-item video { width: 100%; height: 100%; object-fit: cover; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 14px;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; font-size: 14px;
  font-family: var(--font-body); transition: border-color .2s;
}
.form-control:focus { outline: none; border-color: var(--gold); background: var(--bg3); }
.form-control::placeholder { color: var(--muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-error { color: var(--red); font-size: 12px; margin-top: 4px; }
.form-hint { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* ── Stars Input ── */
.star-input { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { display: none; }
.star-input label { font-size: 24px; color: var(--border); cursor: pointer; transition: color .15s; }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: var(--gold); }

/* ── Trust badges ── */
.trust-badges { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; padding: 40px 0; }
.trust-badge { text-align: center; }
.trust-badge-icon { font-size: 32px; margin-bottom: 8px; }
.trust-badge-text { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ── Video embed ── */
.video-wrapper {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ── Blog card ── */
.blog-card .blog-image { aspect-ratio: 16/9; overflow: hidden; background: var(--bg2); }
.blog-card .blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-image img { transform: scale(1.05); }
.blog-card .blog-body { padding: 18px; }
.blog-card .blog-cat { font-size: 11px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; }
.blog-card .blog-title { font-family: var(--font-head); font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.blog-card .blog-excerpt { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Quote form ── */
.quote-section {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; padding: 48px;
}
.quote-section h3 { font-family: var(--font-head); font-size: 28px; font-weight: 700; margin-bottom: 8px; }

/* ── Auth pages ── */
.auth-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(240,165,0,.06) 0%, transparent 60%);
}
.auth-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px; width: 100%; max-width: 440px;
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo h2 { font-family: var(--font-head); font-size: 28px; font-weight: 700; }
.auth-logo h2 span { color: var(--gold); }
.auth-title { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.google-btn {
  width: 100%; padding: 11px; border-radius: var(--radius);
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; transition: all .2s;
}
.google-btn:hover { border-color: var(--gold); }
.google-btn svg { width: 18px; height: 18px; }

/* ── Checkout ── */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.checkout-items-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.checkout-item {
  display: flex; gap: 14px; align-items: center;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px;
}
.checkout-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.checkout-item-info { flex: 1; }
.checkout-item-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.checkout-item-variant { font-size: 13px; color: var(--muted); }
.checkout-item-price { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--gold); }
.order-summary { position: sticky; top: 80px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.summary-row:last-child { border-bottom: none; }
.summary-total { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--gold); }
.coupon-row { display: flex; gap: 8px; }
.payment-options { display: grid; gap: 8px; margin-bottom: 20px; }
.payment-option { display: none; }
.payment-option + label {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; transition: all .2s; font-size: 14px;
}
.payment-option:checked + label { border-color: var(--gold); background: var(--gold-dim); }
.payment-option + label .pay-icon { font-size: 22px; }

/* ── Order view ── */
.order-view-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.license-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px; margin-top: 12px;
}
.license-key {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--green); word-break: break-all;
  background: var(--bg); padding: 10px 14px; border-radius: 6px;
  border: 1px solid rgba(0,214,143,.2);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.copy-btn { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 16px; padding: 2px; transition: color .2s; }
.copy-btn:hover { color: var(--gold); }
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.status-paid, .status-completed { background: rgba(0,214,143,.15); color: var(--green); }
.status-pending { background: rgba(240,165,0,.15); color: var(--gold); }
.status-failed, .status-cancelled { background: rgba(255,77,109,.15); color: var(--red); }
.status-processing { background: rgba(99,179,237,.15); color: #63b3ed; }

/* ── Footer ── */
.footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { max-width: 280px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin: 12px 0 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 16px; transition: all .2s;
}
.footer-social-btn:hover { border-color: var(--gold); color: var(--gold); }
.footer-social-btn i { font-size: 18px; line-height: 1; }
.footer-col h4 { font-family: var(--font-head); font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
}

/* ── Alert / Toast ── */
.alert {
  padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.alert-success { background: rgba(0,214,143,.1); border: 1px solid rgba(0,214,143,.3); color: var(--green); }
.alert-error { background: rgba(255,77,109,.1); border: 1px solid rgba(255,77,109,.3); color: var(--red); }
.alert-info { background: var(--gold-dim); border: 1px solid rgba(240,165,0,.3); color: var(--gold); }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--border); }

/* ── Modal ── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; max-width: 540px; width: 100%;
  transform: scale(.95); transition: transform .2s;
}
.modal-backdrop.open .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-header h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; padding: 4px; }
.modal-close:hover { color: var(--text); }

/* ── Pagination ── */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 32px; }
.page-btn {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-size: 13px; cursor: pointer; transition: all .2s;
}
.page-btn:hover, .page-btn.active { background: var(--gold); color: #000; border-color: var(--gold); }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92);
  z-index: 3000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img, .lightbox video { max-width: 90vw; max-height: 88vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: #fff; font-size: 32px; cursor: pointer;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .checkout-grid, .order-view-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 50px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .nav-links { display: none; position: fixed; inset: 64px 0 0; background: var(--bg); flex-direction: column; padding: 24px; gap: 8px; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 16px; padding: 12px 16px; }
  .nav-burger { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { max-width: 100%; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .quote-section { padding: 28px 20px; }
  .hero-actions { flex-direction: column; }
  .trust-badges { gap: 20px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ── Utility ── */
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; } .gap-16 { gap: 16px; }
.hidden { display: none !important; }
.fw-7 { font-weight: 700; }
.font-head { font-family: var(--font-head); }
/* ==== SOCIAL PROOF POPUP (shared across all pages via footer.php) ==== */
.sp-popup { position:fixed; bottom:24px; left:20px; z-index:9100; width:310px; max-width:calc(100vw - 32px); background:#0f1923; border:1px solid rgba(245,166,35,.22); border-radius:14px; box-shadow:0 8px 40px rgba(0,0,0,.7),0 0 0 1px rgba(245,166,35,.06); display:flex; align-items:center; gap:11px; padding:11px 13px 13px; cursor:pointer; opacity:0; transform:translateY(20px) scale(.97); transition:opacity .42s cubic-bezier(.4,0,.2,1), transform .42s cubic-bezier(.4,0,.2,1), box-shadow .2s; pointer-events:none; will-change:transform,opacity; overflow:hidden; }
[data-theme="light"] .sp-popup { background:#fff; border-color:rgba(196,127,0,.2); box-shadow:0 8px 32px rgba(0,0,0,.12),0 0 0 1px rgba(196,127,0,.07); }
.sp-popup.sp-show { opacity:1; transform:translateY(0) scale(1); pointer-events:all; }
.sp-popup:hover { box-shadow:0 12px 50px rgba(0,0,0,.8),0 0 0 1px rgba(245,166,35,.2); border-color:rgba(245,166,35,.4); }
.sp-thumb { width:52px; height:52px; border-radius:10px; overflow:hidden; flex-shrink:0; background:#07111a; border:1px solid rgba(245,166,35,.18); display:flex; align-items:center; justify-content:center; font-size:22px; }
[data-theme="light"] .sp-thumb { background:#f0ebe0; }
.sp-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.sp-body { flex:1; min-width:0; }
.sp-name { font-family:'Rajdhani','Segoe UI',sans-serif; font-size:12.5px; font-weight:700; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:2px; }
[data-theme="light"] .sp-name { color:#1a0f00; }
.sp-action { font-size:11.5px; color:#4e6a80; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:5px; }
[data-theme="light"] .sp-action { color:#8a7a60; }
.sp-action strong { color:#f0a500; font-weight:600; }
[data-theme="light"] .sp-action strong { color:#c47f00; }
.sp-footer { display:flex; align-items:center; gap:5px; font-size:10px; color:#3a5568; flex-wrap:wrap; }
[data-theme="light"] .sp-footer { color:#8a7a60; }
.sp-dot-live { width:6px; height:6px; border-radius:50%; background:#1fd47e; animation:spPulse 2s ease infinite; flex-shrink:0; }
@keyframes spPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.75)} }
.sp-verified { display:inline-flex; align-items:center; gap:3px; color:#1fd47e; font-weight:600; }
[data-theme="light"] .sp-verified { color:#0a8a4a; }
.sp-close { position:absolute; top:8px; right:9px; width:18px; height:18px; border-radius:50%; background:rgba(255,255,255,.07); border:none; color:#4e6a80; font-size:9px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .15s, color .15s; flex-shrink:0; z-index:2; }
.sp-close:hover { background:rgba(255,69,96,.2); color:#ff4560; }
.sp-progress { position:absolute; bottom:0; left:0; height:2px; width:100%; background:linear-gradient(90deg,#f0a500,#ffc740); transform-origin:left; transform:scaleX(1); }
.sp-popup.sp-show .sp-progress { animation:spBar var(--sp-dur,6000ms) linear forwards; }
@keyframes spBar { from{transform:scaleX(1)} to{transform:scaleX(0)} }
@media (max-width:480px) { .sp-popup { bottom:12px; left:12px; width:min(284px, calc(100vw - 92px)); } }

/* Ikon SVG sebaris (includes/admin_icons.php) - ikut currentColor & font-size */
.ico { width:1em; height:1em; vertical-align:-.125em; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }


/* ═══ MOBILE PATCH v1 — jaring keselamatan halaman awam (≤768px sahaja) ═══ */
@media (max-width: 768px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  img, video { max-width: 100%; height: auto; }
  /* iOS Safari zoom masuk automatik bila fon input < 16px */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  select, textarea { font-size: 16px; }
  .table-scroll, .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
}

/* ═══ MOBILE PATCH v2 — borang, tap target, pre (≤768px) ═══ */
@media (max-width: 768px) {
  .container { padding-left: 16px; padding-right: 16px; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
  select, textarea { font-size: 16px !important; }
  pre { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .footer-col ul li { margin-bottom: 2px; }
  .footer-col ul li a { display: inline-block; padding: 8px 0; }
  .sp-close::after { content: ''; position: absolute; inset: -10px; }
  .nb-drawer .dr-toggle-btn { min-height: 40px; }
}

/* ═══ MOBILE PATCH v3 — exclude the "Select Variant" dropdowns from the forced 16px (≤768px) ═══
   Patch v2 forces every <select> to 16px !important (to stop iOS zoom) — that is why the variant text looked big.
   Specificity select.class > select, so this wins even though both are !important. */
@media (max-width: 768px) {
  select.hx-pcard-var-select   { font-size: 12px !important; }  /* index.php (kad produk) */
  select.p-card-variant-select { font-size: 12px !important; }  /* shop.php (kad produk) */
  select.modal-variant-select  { font-size: 14px !important; }  /* shop.php (modal produk) */
}

/* ═══ MT4 / MT5 platform tabs — kad produk (index/shop), modal & checkout ═══ */
/* Subtle segmented control: no solid gold fill, so it never competes with the Buy Now button */
.plat-tabs { display:flex; gap:2px; padding:2px; border-radius:8px; background:transparent; border:1px solid rgba(127,127,127,.28); margin:2px 0 8px; max-width:100%; }
.plat-tab {
  flex:1 1 0; border:0; background:transparent; color:inherit; opacity:.55;
  padding:4px 8px; border-radius:6px; cursor:pointer; box-shadow:none;
  font:600 10.5px/1.2 'Inter','Segoe UI',sans-serif; letter-spacing:.08em;
  transition:background .15s, color .15s, opacity .15s;
}
.plat-tab:hover { opacity:.9; }
.plat-tab.active {
  background:rgba(127,127,127,.2); color:inherit; opacity:1;
  box-shadow:inset 0 -2px 0 #f0a500;   /* thin gold underline marks the selection */
}
.plat-tabs-lg { margin:0; }
.plat-tabs-lg .plat-tab { padding:8px 14px; font-size:12px; }
