*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
img  { max-width: 100%; height: auto; }

/* Postcode lookup */
.poskod-wrap { display: flex; align-items: center; gap: 8px; }
.poskod-wrap .ant-input { flex: 1; }
.poskod-status { flex-shrink: 0; width: 18px; text-align: center; line-height: 1; }
.poskod-ok  { color: #52c41a; font-size: 14px; }
.poskod-err { color: #ff4d4f; font-size: 14px; }
.poskod-spin { color: #1677ff; font-size: 13px; }
@keyframes autofillFlash {
  0%   { background: #e6f4ff; }
  100% { background: transparent; }
}
.autofilled { animation: autofillFlash 1s ease; }

:root {
  --primary: #1677ff;
  --primary-dark: #0958d9;
  --primary-light: #e6f4ff;
  --danger: #ff4d4f;
  --success: #52c41a;
  --warning: #faad14;
  --text-primary: #000000d9;
  --text-secondary: #00000073;
  --text-disabled: #00000040;
  --border: #d9d9d9;
  --border-radius: 0px;
  --bg: #ffffff;
  --bg-layout: #f5f5f5;
  --header-height: 64px;
  --font: 'Noto Sans', 'Noto Sans Malay', sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.12);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5715;
}

/* LOGO SECTION */
.logo-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.logo-img {
  max-width: 200px;
  height: auto;
  display: block;
}

/* TOP BAR */
.topbar {
  background: #001529;
  color: rgba(255,255,255,0.65);
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid #002040;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: rgba(255,255,255,0.65); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-left span, .topbar-right span { display: flex; align-items: center; gap: 6px; }
.topbar-right .lang-dropdown { position: relative; cursor: pointer; }
.topbar-right .lang-dropdown .lang-menu {
  display: none; position: absolute; top: 24px; right: 0;
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-md); min-width: 120px; z-index: 100;
}
.lang-dropdown:hover .lang-menu { display: block; }
.lang-menu a { display: block; padding: 8px 12px; color: var(--text-primary); font-size: 13px; }
.lang-menu a:hover { background: var(--primary-light); color: var(--primary); }

/* HEADER */
.header {
  background: #fff;
  border-bottom: 2px solid var(--primary);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 8px rgba(22,119,255,0.1);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 32px;
}
.logo img { height: 44px; }
.logo-text { font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }

/* NAV */
nav { display: flex; align-items: center; gap: 0; flex: 1; justify-content: center; }
.nav-item { position: relative; }
.nav-item > a {
  display: flex; align-items: center; gap: 5px;
  padding: 0 16px; height: 64px; color: var(--text-primary);
  text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.2s; white-space: nowrap;
}
.nav-item > a:hover { color: var(--primary); }
.nav-item > a .fa-chevron-down { font-size: 10px; color: var(--text-secondary); }
.nav-item:hover > .dropdown { display: block; }
.dropdown {
  display: none; position: absolute; top: 64px; left: 0;
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); min-width: 200px; z-index: 300;
}
.dropdown a {
  display: block; padding: 10px 16px;
  color: var(--text-primary); text-decoration: none; font-size: 13px;
}
.dropdown a:hover { background: var(--primary-light); color: var(--primary); }

/* CTA BUTTON */
.btn-calc {
  position: relative; display: flex; align-items: center; gap: 5px;
  background: var(--primary); color: #fff; padding: 0 18px;
  height: 40px; font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; white-space: nowrap;
}
.btn-calc:hover { background: var(--primary-dark); }
.btn-calc .fa-chevron-down { font-size: 10px; }
.btn-calc-wrapper { position: relative; }
.btn-calc-wrapper:hover .calc-dropdown { display: block; }
.calc-dropdown {
  display: none; position: absolute; top: 40px; right: 0;
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); min-width: 200px; z-index: 300;
}
.calc-dropdown a {
  display: block; padding: 10px 16px;
  color: var(--text-primary); text-decoration: none; font-size: 13px;
}
.calc-dropdown a:hover { background: var(--primary-light); color: var(--primary); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #001529 0%, #003a6e 60%, #0958d9 100%);
  padding: 28px 0 0;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: url('https://images.unsplash.com/photo-1609599006353-e629aaabfeae?w=1400&q=80') center/cover;
  opacity: 0.08;
}
.hero .container { position: relative; z-index: 1; }
.hero-left { padding-bottom: 28px; color: #fff; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(22,119,255,0.3); border: 1px solid rgba(22,119,255,0.6);
  padding: 4px 12px; font-size: 12px; color: #91caff; margin-bottom: 20px;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.hero-logo-img {
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  background: #fff;
  border-radius: 10px;
  padding: 12px 20px;
}
.hero h1 { font-size: 38px; font-weight: 800; line-height: 1.15; margin-bottom: 12px; letter-spacing: -1px; }
.hero h1 span { color: #1677ff; }
.hero h2 { font-size: 18px; font-weight: 500; color: rgba(255,255,255,0.75); margin-bottom: 20px; }
.hero-desc { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 28px; line-height: 1.7; }
.hero-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.hero-meta span {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); padding: 8px 16px;
  color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 500;
  border-left: 3px solid var(--primary);
}
.hero-meta span i { color: var(--primary); }

/* FORM SECTION */
.form-section {
  background: #f5f5f5;
  padding: 40px 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* FORM CARD */
.form-card {
  width: 100%;
  max-width: 640px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  position: relative;
}
.form-card-header {
  background: var(--primary); color: #fff;
  padding: 16px 24px;
  display: flex; align-items: center; gap: 12px;
}
.form-card-header i { font-size: 18px; }
.form-card-header h3 { font-size: 16px; font-weight: 700; }
.form-card-header p { font-size: 12px; opacity: 0.8; margin-top: 2px; }
.form-body { padding: 24px; }

/* SECTION HEADER IN FORM */
.section-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; color: var(--primary);
  letter-spacing: 1px; text-transform: uppercase;
  margin: 20px 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}
.section-label:first-child { margin-top: 0; }
.section-label i { font-size: 14px; }

/* ANT DESIGN FORM */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text-primary); margin-bottom: 6px;
}
.form-group label .required { color: var(--danger); margin-left: 2px; }
.form-hint { font-size: 11px; color: var(--text-secondary); margin-top: 4px; display: block; }

.ant-input, .ant-select, .ant-input-file {
  width: 100%; padding: 7px 11px;
  border: 1px solid var(--border); border-radius: 0;
  font-size: 14px; font-family: var(--font); color: var(--text-primary);
  background: #fff; outline: none; appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  height: 34px;
}
.ant-input:focus, .ant-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(22,119,255,0.1);
}
.ant-input::placeholder { color: var(--text-disabled); }
.ant-select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
.ant-row { display: flex; gap: 12px; flex-wrap: wrap; }
.ant-row .form-group { flex: 1; min-width: 140px; }

.file-upload-area {
  border: 2px dashed var(--border); padding: 16px;
  text-align: center; cursor: pointer; transition: border-color 0.2s;
  background: #fafafa; margin-top: 6px;
}
.file-upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.file-upload-area i { font-size: 24px; color: var(--text-secondary); margin-bottom: 8px; display: block; }
.file-upload-area p { font-size: 12px; color: var(--text-secondary); }
.file-upload-area input { display: none; }

.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

.bank-info {
  background: #fffbe6; border: 1px solid var(--warning);
  padding: 12px 14px; font-size: 12px; line-height: 1.8; margin-bottom: 16px;
  border-left: 4px solid var(--warning);
}
.bank-info strong { display: block; margin-bottom: 6px; color: #d48806; font-size: 13px; }
.bank-info .warning-note { color: #d48806; margin-top: 8px; font-weight: 500; }

.payment-method-group { margin-bottom: 16px; }
.payment-option {
  border: 1px solid var(--border); padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; margin-bottom: 8px; transition: border-color 0.2s;
  font-size: 13px;
}
.payment-option:hover { border-color: var(--primary); }
.payment-option input[type=radio] { accent-color: var(--primary); }
.payment-option.active { border-color: var(--primary); background: var(--primary-light); }
.payment-option i { color: var(--primary); font-size: 16px; }

.lafaz-box {
  background: var(--primary-light); border-left: 4px solid var(--primary);
  padding: 12px 14px; font-size: 12px; line-height: 1.9;
  color: #004db3; margin: 12px 0; font-style: italic;
}
.lafaz-box strong { font-style: normal; }
.lafaz-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary); margin-bottom: 6px; display: block; }

.btn-submit {
  width: 100%; padding: 12px;
  background: var(--primary); color: #fff;
  border: none; font-size: 16px; font-weight: 700;
  cursor: pointer; letter-spacing: 0.5px;
  transition: background 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-submit:hover { background: var(--primary-dark); }

/* PHONE INPUT WITH COUNTRY SELECTOR */
.phone-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}

.country-selector {
  position: relative;
  flex-shrink: 0;
}

.country-selector-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 7px 10px;
  height: 34px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 0;
  transition: border-color 0.2s;
  white-space: nowrap;
}

.country-selector-btn:hover {
  border-color: var(--primary);
}

.country-flag {
  font-size: 16px;
}

.country-code {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 35px;
}

.country-selector-btn i {
  font-size: 10px;
  color: var(--text-secondary);
}

.country-dropdown {
  position: fixed;
  top: auto;
  left: 16px;
  right: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  min-width: 240px;
  max-width: calc(100vw - 32px);
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.country-search {
  padding: 8px 12px;
  border: none;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  sticky: 0;
}

.country-search:focus {
  background: var(--primary-light);
  color: var(--primary);
}

.country-list {
  overflow-y: auto;
}

.country-item {
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.country-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.country-item.hidden {
  display: none;
}

.phone-input-wrapper .ant-input {
  flex: 1;
}

/* WHY SECTION */
.why-section { padding: 64px 0; background: #fff; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 28px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.section-title p { font-size: 15px; color: var(--text-secondary); }
.section-title .title-bar {
  width: 60px; height: 3px; background: var(--primary); margin: 12px auto 0;
}

.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); }
.why-img { overflow: hidden; }
.why-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.why-content { padding: 40px 40px; }
.why-content h3 { font-size: 22px; font-weight: 800; margin-bottom: 16px; color: var(--text-primary); }
.why-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; }
.award-list { list-style: none; }
.award-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.award-list li:last-child { border-bottom: none; }
.award-list i { color: var(--warning); margin-top: 2px; flex-shrink: 0; }

/* STEPS SECTION */
.steps-section { background: var(--bg-layout); padding: 64px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); background: var(--border); }
.step-card {
  background: #fff; padding: 32px 24px; text-align: center;
  position: relative;
}
.step-num {
  position: absolute; top: -1px; left: -1px;
  width: 32px; height: 32px; background: var(--primary); color: #fff;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-icon {
  width: 72px; height: 72px; border-radius: 0;
  border: 2px solid var(--border); overflow: hidden; margin: 0 auto 20px;
}
.step-icon img { width: 100%; height: 100%; object-fit: cover; }
.step-icon-placeholder {
  width: 72px; height: 72px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--primary); margin: 0 auto 20px;
}
.step-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--text-secondary); }

/* FAQ */
.faq-section { padding: 64px 0; background: #fff; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); margin-bottom: -1px; }
.faq-question {
  padding: 16px 20px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-primary);
  transition: background 0.2s; gap: 12px;
}
.faq-question:hover { background: var(--primary-light); color: var(--primary); }
.faq-question i { flex-shrink: 0; color: var(--primary); transition: transform 0.2s; }
.faq-answer {
  display: none; padding: 0 20px 16px; font-size: 13px;
  color: var(--text-secondary); line-height: 1.8;
  border-top: 1px solid var(--border); background: #fafafa;
}
.faq-answer.open { display: block; padding-top: 14px; }
.faq-question.open i { transform: rotate(180deg); }
.faq-question.open { background: var(--primary-light); color: var(--primary); }

/* FOOTER */
footer { background: #001529; color: rgba(255,255,255,0.65); padding: 48px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 48px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-brand-name { color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.8; margin-bottom: 16px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer-contact a { color: rgba(255,255,255,0.65); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.footer-contact a:hover { color: #fff; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.5px; text-transform: uppercase; border-bottom: 2px solid var(--primary); padding-bottom: 8px; display: inline-block; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-col ul li a i { font-size: 10px; }
.footer-bottom { padding: 16px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-bottom span { color: rgba(255,255,255,0.5); }

/* ADDRESS TAG */
.address-block { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; margin-top: 8px; }
.address-block i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }

/* MOBILE */
@media (max-width: 900px) {
  .hero .container { flex-direction: column; }
  .form-card { width: 100%; }
  .why-grid, .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav { display: none; }
  .hero h1 { font-size: 26px; }
  .form-body { padding: 16px; }
  .why-content { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 22px; letter-spacing: -0.5px; }
  .hero h2 { font-size: 15px; }
  .form-card-header { padding: 14px 16px; }
  .form-body { padding: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps-section { padding: 40px 0; }
  .faq-section  { padding: 40px 0; }
  .why-section  { padding: 40px 0; }
  .container { padding: 0 14px; }
  .section-label { font-size: 11px; }
  .phone-input-wrapper { gap: 6px; }
  .country-selector-btn { padding: 7px 8px; }
}

/* SCROLLBAR */
.form-body::-webkit-scrollbar { width: 4px; }
.form-body::-webkit-scrollbar-track { background: #f5f5f5; }
.form-body::-webkit-scrollbar-thumb { background: var(--primary); }

/* HIDDEN ID SECTIONS */
.id-field { display: none; }
.id-field.active { display: block; }

/* ════════════════════════════════════════════════
   SHARED CALCULATOR PAGE STYLES
   Used by all kalkulator-zakat-*.html pages
════════════════════════════════════════════════ */

/* Hero */
.calc-hero { background: linear-gradient(135deg,#001529 0%,#003a6e 60%,#0958d9 100%); padding: 56px 0 72px; color: #fff; text-align: center; position: relative; overflow: hidden; }
.calc-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='%23ffffff' 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"); }
.calc-hero .hero-inner { position:relative; z-index:1; }
.calc-hero-badge { display:inline-flex; align-items:center; gap:6px; background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.2); border-radius:20px; padding:5px 14px; font-size:12px; font-weight:600; letter-spacing:0.5px; text-transform:uppercase; margin-bottom:16px; }
.calc-hero h1 { font-size:clamp(22px,4vw,36px); font-weight:800; margin-bottom:10px; letter-spacing:-0.5px; }
.calc-hero p { font-size:15px; opacity:0.8; max-width:520px; margin:0 auto; }

/* Page wrap */
.calc-page-wrap { max-width:1160px; margin:-32px auto 56px; padding:0 16px; position:relative; z-index:1; }

/* Info bar */
.info-bar { background:#e6f4ff; border-left:4px solid var(--primary); border-radius:0 8px 8px 0; padding:11px 16px; font-size:13px; color:#0958d9; display:flex; gap:10px; align-items:flex-start; margin-bottom:0; }
.info-bar i { margin-top:2px; flex-shrink:0; }

/* Two-column layout */
.calc-layout { display:grid; grid-template-columns:1fr 340px; gap:16px; align-items:start; }
@media (max-width:840px) { .calc-layout { grid-template-columns:1fr; } }

/* Form card */
.calc-form-card { background:#fff; border-radius:0 0 12px 12px; box-shadow:0 2px 12px rgba(0,0,0,0.07); padding:26px 28px; }
@media (max-width:600px) { .calc-form-card { padding:18px 16px; } }

/* Tabs (hub page) */
.calc-tabs-wrap { background:#fff; border-radius:12px 12px 0 0; box-shadow:0 2px 12px rgba(0,0,0,0.08); overflow:hidden; border-bottom:2px solid #e6f4ff; margin-top:12px; }
.calc-tabs { display:flex; overflow-x:auto; scrollbar-width:none; }
.calc-tabs::-webkit-scrollbar { display:none; }
.calc-tab { flex-shrink:0; padding:16px 22px; font-size:13px; font-weight:600; color:#6b7280; border:none; background:none; cursor:pointer; display:flex; align-items:center; gap:7px; border-bottom:3px solid transparent; transition:all 0.15s; font-family:var(--font); white-space:nowrap; text-decoration:none; }
.calc-tab:hover { color:var(--primary); background:#f8faff; }
.calc-tab.active { color:var(--primary); border-bottom-color:var(--primary); background:#f0f7ff; }
.calc-tab i { font-size:14px; }
.tab-panel { display:none; }
.tab-panel.active { display:block; }

/* Section label */
.sect-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:#6b7280; margin:22px 0 12px; display:flex; align-items:center; gap:6px; }
.sect-label:first-child { margin-top:0; }

/* Field grid */
.fgrid { display:grid; grid-template-columns:1fr 1fr; gap:14px 20px; }
@media (max-width:540px) { .fgrid { grid-template-columns:1fr; } }
.fgrid-full { grid-column:1 / -1; }
.fgroup { display:flex; flex-direction:column; gap:5px; }
.flabel { font-size:13px; font-weight:600; color:#333; }
.flabel .fhint { font-weight:400; color:#9ca3af; font-size:11px; }

/* Input wrap */
.fwrap { position:relative; display:flex; align-items:center; }
.fprefix { position:absolute; left:11px; font-weight:600; color:#9ca3af; font-size:13px; pointer-events:none; }
.funit { position:absolute; right:11px; font-size:12px; font-weight:600; color:#9ca3af; pointer-events:none; }
.finput { width:100%; border:1.5px solid #e0e0e0; border-radius:8px; padding:9px 11px 9px 36px; font-size:14px; font-family:var(--font); color:#1a1a2e; background:#fafafa; transition:border-color 0.15s,box-shadow 0.15s; outline:none; }
.finput:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(22,119,255,0.1); background:#fff; }
.finput.no-prefix { padding-left:11px; padding-right:36px; }
.finput[readonly] { background:#f0f4ff; color:#0958d9; font-weight:700; cursor:default; }
.fselect { width:100%; border:1.5px solid #e0e0e0; border-radius:8px; padding:9px 32px 9px 11px; font-size:14px; font-family:var(--font); color:#1a1a2e; background:#fafafa url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center; appearance:none; outline:none; cursor:pointer; transition:border-color 0.15s; }
.fselect:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(22,119,255,0.1); }
.fdivider { height:1px; background:#f0f0f0; margin:20px 0; }

/* Toggle switch */
.toggle-row { display:flex; align-items:center; gap:10px; padding:10px 14px; background:#f8faff; border-radius:8px; border:1px solid #e0eaff; margin-bottom:14px; }
.tswitch { position:relative; width:42px; height:22px; flex-shrink:0; }
.tswitch input { display:none; }
.ttrack { position:absolute; inset:0; background:#d1d5db; border-radius:11px; cursor:pointer; transition:background 0.2s; }
.tthumb { position:absolute; top:3px; left:3px; width:16px; height:16px; background:#fff; border-radius:50%; transition:transform 0.2s; pointer-events:none; }
.tswitch input:checked + .ttrack { background:var(--primary); }
.tswitch input:checked ~ .tthumb { transform:translateX(20px); }
.toggle-label { font-size:13px; font-weight:600; color:#444; }

/* Counter */
.counter-row { display:flex; align-items:flex-start; gap:20px; flex-wrap:wrap; }
.counter-item { display:flex; flex-direction:column; gap:7px; }
.clabel { font-size:12px; font-weight:600; color:#555; }
.counter-btns { display:flex; align-items:center; gap:8px; }
.cbtn { width:32px; height:32px; border-radius:8px; border:1.5px solid #e0e0e0; background:#fff; font-size:16px; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; color:var(--primary); transition:all 0.1s; }
.cbtn:hover { border-color:var(--primary); background:#e6f4ff; }
.cval { width:40px; text-align:center; font-size:18px; font-weight:700; }

/* Type toggle (emas/perak) */
.type-toggle { display:flex; gap:8px; margin-bottom:18px; }
.type-btn { flex:1; padding:11px; border:2px solid #e0e0e0; border-radius:8px; background:#fff; font-size:13px; font-weight:600; color:#6b7280; cursor:pointer; text-align:center; transition:all 0.15s; font-family:var(--font); display:flex; align-items:center; justify-content:center; gap:7px; }
.type-btn.active { border-color:var(--primary); background:#e6f4ff; color:var(--primary); }

/* Formula box */
.fformula { background:#f8faff; border:1px solid #c7d9ff; border-radius:8px; padding:13px 16px; font-size:12.5px; color:#0958d9; margin-bottom:20px; }
.fformula-title { font-weight:700; color:#0a3880; margin-bottom:5px; font-size:11px; text-transform:uppercase; letter-spacing:0.5px; }
.fformula-eq { font-family:monospace; font-size:13px; background:#e8eeff; border-radius:5px; padding:7px 10px; color:#0a3880; margin-top:5px; }

/* Info box */
.finfo { background:#e6f4ff; border-left:4px solid var(--primary); border-radius:0 8px 8px 0; padding:10px 14px; font-size:12.5px; color:#0958d9; display:flex; gap:9px; align-items:flex-start; margin-bottom:18px; }
.finfo i { margin-top:2px; flex-shrink:0; }

/* Result column */
.result-col { position:sticky; top:80px; }
@media (max-width:840px) { .result-col { position:static; } }
.result-card { background:#fff; border-radius:12px; box-shadow:0 2px 12px rgba(0,0,0,0.08); overflow:hidden; margin-top:16px; }
.result-header { background:linear-gradient(135deg,#001529,#1a3a6b); color:#fff; padding:18px 20px; }
.result-header h3 { font-size:15px; font-weight:700; }
.result-header p { font-size:11px; opacity:0.7; margin-top:3px; }
.result-body { padding:18px 20px; }
.result-row { display:flex; justify-content:space-between; align-items:center; padding:9px 0; border-bottom:1px dashed #f0f0f0; font-size:13px; gap:10px; }
.result-row:last-child { border-bottom:none; }
.rlab { color:#6b7280; display:flex; align-items:center; gap:5px; }
.rval { font-weight:700; color:#1a1a2e; text-align:right; }
.rval.deduct { color:#ff4d4f; }
.rval.net { color:#0958d9; font-size:15px; }
.nisab-status { border-radius:8px; padding:10px 14px; display:flex; align-items:center; gap:8px; font-size:12px; font-weight:600; margin:14px 0 10px; }
.nisab-status.wajib { background:#f6ffed; border:1px solid #b7eb8f; color:#389e0d; }
.nisab-status.tidak { background:#fffbe6; border:1px solid #ffe58f; color:#875500; }
.zakat-highlight { background:linear-gradient(135deg,#f6ffed,#e6ffe0); border:2px solid #95de64; border-radius:10px; padding:18px 20px; text-align:center; margin-bottom:4px; }
.zh-label { font-size:12px; color:#389e0d; font-weight:600; margin-bottom:4px; }
.zh-amount { font-size:42px; font-weight:800; color:#237804; letter-spacing:-1px; line-height:1.1; }
.zh-amount span { font-size:20px; font-weight:600; margin-right:3px; }
.zh-sub { font-size:11px; color:#52c41a; margin-top:4px; }
.zakat-empty { background:#fafafa; border:2px dashed #e0e0e0; border-radius:10px; padding:24px; text-align:center; margin-bottom:4px; }
.zakat-empty i { font-size:28px; color:#d1d5db; display:block; margin-bottom:8px; }
.zakat-empty p { font-size:13px; color:#9ca3af; line-height:1.5; }
.btn-pay { width:100%; background:linear-gradient(135deg,var(--primary),#0958d9); color:#fff; border:none; border-radius:10px; padding:14px; font-size:15px; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:9px; text-decoration:none; transition:opacity 0.2s; margin-top:10px; font-family:var(--font); }
.btn-pay:hover { opacity:0.9; }
.btn-pay:disabled { opacity:0.4; cursor:not-allowed; }
.btn-reset { width:100%; background:#fff; color:#9ca3af; border:1.5px solid #e0e0e0; border-radius:10px; padding:11px; font-size:13px; font-weight:600; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:7px; transition:all 0.15s; margin-top:8px; font-family:var(--font); }
.btn-reset:hover { border-color:#ff4d4f; color:#ff4d4f; }
.nisab-ref { font-size:11px; color:#9ca3af; text-align:center; margin-top:10px; padding:6px; background:#f9fafb; border-radius:6px; line-height:1.6; }

/* Hub page card grid */
.calc-hub-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; margin-top:24px; }
.calc-hub-card { background:#fff; border-radius:12px; box-shadow:0 2px 12px rgba(0,0,0,0.07); padding:22px 20px; display:flex; flex-direction:column; gap:12px; text-decoration:none; color:inherit; transition:box-shadow 0.2s,transform 0.2s; border:2px solid transparent; }
.calc-hub-card:hover { box-shadow:0 6px 24px rgba(22,119,255,0.15); transform:translateY(-2px); border-color:#91caff; }
.calc-hub-icon { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:20px; }
.calc-hub-icon.blue { background:#e6f4ff; color:#1677ff; }
.calc-hub-icon.gold { background:#fffbe6; color:#d48806; }
.calc-hub-icon.green { background:#f6ffed; color:#389e0d; }
.calc-hub-icon.teal { background:#e6fffb; color:#08979c; }
.calc-hub-icon.purple { background:#f9f0ff; color:#722ed1; }
.calc-hub-icon.orange { background:#fff7e6; color:#d46b08; }
.calc-hub-title { font-size:14px; font-weight:700; color:#1a1a2e; }
.calc-hub-desc { font-size:12px; color:#9ca3af; line-height:1.5; flex:1; }
.calc-hub-cta { font-size:12px; font-weight:600; color:var(--primary); display:flex; align-items:center; gap:5px; }

/* Other calcs sidebar */
.other-calcs { background:#fff; border-radius:12px; box-shadow:0 2px 12px rgba(0,0,0,0.07); padding:16px 18px; margin-top:14px; }
.other-calcs-title { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:#888; margin-bottom:10px; }
.other-calcs a { display:flex; align-items:center; gap:8px; padding:7px 0; font-size:13px; color:#444; text-decoration:none; border-bottom:1px dashed #f0f0f0; transition:color 0.15s; }
.other-calcs a:last-child { border-bottom:none; }
.other-calcs a:hover { color:var(--primary); }
.other-calcs a i { width:16px; text-align:center; font-size:13px; }

/* ===== BAHAGIAN SECTION CARDS ===== */
.bah-card{border:1.5px solid #e2e8f0;border-radius:12px;margin-bottom:16px;overflow:hidden;background:#fff}
.bah-header{display:flex;align-items:center;gap:10px;padding:10px 16px;background:#f8fafc;border-bottom:1.5px solid #e2e8f0}
.bah-badge{min-width:28px;height:28px;border-radius:7px;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;flex-shrink:0}
.bah-badge.d{background:#ea580c}.bah-badge.e{background:#d97706}
.bah-head-inner{flex:1;min-width:0}
.bah-head-title{font-weight:700;font-size:14px;color:#1e293b;line-height:1.2}
.bah-head-sub{font-size:11px;color:#94a3b8;margin-top:1px}
.bah-j{font-size:12px;font-weight:700;color:var(--primary);background:var(--primary-light);padding:3px 10px;border-radius:6px;white-space:nowrap;flex-shrink:0}
.bah-body{padding:0}
.bah-row{display:flex;align-items:flex-start;gap:8px;padding:10px 16px;border-bottom:1px solid #f1f5f9}
.bah-row:last-child{border-bottom:none}
.bah-lbl{flex:1;min-width:0}
.bah-lbl-main{font-size:13.5px;color:#374151;font-weight:500;line-height:1.4}
.bah-lbl-note{font-size:11px;color:#94a3b8;margin-top:2px;line-height:1.3;font-style:italic}
.bah-inp{display:flex;align-items:center;gap:4px;flex-shrink:0}
.bah-pfx{font-size:13px;font-weight:600;color:#64748b}
.bah-inp .finput{width:148px;text-align:right;font-size:13.5px;padding:9px 11px}
.bah-sub{background:#f0fdf4;border-top:2px solid #bbf7d0}
.bah-sub .bah-lbl-main{font-weight:800;color:#15803d;font-size:14px}
.bah-sub-val{font-weight:800;color:#15803d;font-size:14px;white-space:nowrap;min-width:148px;text-align:right;flex-shrink:0}
.bah-dsub{background:#fff7ed;border-top:2px solid #fed7aa}
.bah-dsub .bah-lbl-main{font-weight:800;color:#c2410c;font-size:14px}
.bah-dsub-val{font-weight:800;color:#c2410c;font-size:14px;white-space:nowrap;min-width:148px;text-align:right;flex-shrink:0}
.bah-esub{background:#fffbeb;border-top:2px solid #fde68a}
.bah-esub .bah-lbl-main{font-weight:800;color:#b45309;font-size:14px}
.bah-esub-val{font-weight:800;color:#b45309;font-size:14px;white-space:nowrap;min-width:148px;text-align:right;flex-shrink:0}
.ctr{display:flex;align-items:center;gap:6px;flex-shrink:0}
.ctr-btn{width:26px;height:26px;border-radius:6px;border:1.5px solid #e2e8f0;background:#fff;cursor:pointer;font-size:15px;display:flex;align-items:center;justify-content:center;font-weight:700;color:#374151;transition:all .15s;user-select:none;line-height:1}
.ctr-btn:hover{background:var(--primary);color:#fff;border-color:var(--primary)}
.ctr-n{width:34px;text-align:center;font-size:15px;font-weight:700;color:#1e293b}
.ctr-rm{font-size:12px;color:#64748b;white-space:nowrap;min-width:148px;text-align:right;align-self:center}
.bah-fixed{font-size:13.5px;font-weight:600;color:#374151;white-space:nowrap;min-width:148px;text-align:right;flex-shrink:0}
.bah-result-row{display:flex;align-items:center;justify-content:space-between;padding:7px 0;border-bottom:1px solid #f1f5f9;font-size:13px}
.bah-result-row:last-child{border-bottom:none}
.bah-result-label{color:#64748b}
.bah-result-val{font-weight:600;color:#1e293b;text-align:right}

/* ===================================================================
   CALCULATOR PAGES — RESPONSIVE OVERRIDES & MISSING CLASSES
   =================================================================== */

/* --- HERO --- */
.calc-hero{padding:40px 0 48px;text-align:left}
.calc-hero .container{position:relative;z-index:1}
.calc-hero-inner{display:flex;align-items:center;gap:32px}
.calc-hero-text{flex:1;min-width:0}
.breadcrumb{display:flex;align-items:center;gap:6px;font-size:12px;color:rgba(255,255,255,.6);margin-bottom:12px;flex-wrap:wrap}
.breadcrumb a{color:rgba(255,255,255,.6);text-decoration:none;transition:color .15s}
.breadcrumb a:hover{color:#fff}
.breadcrumb i{font-size:8px;opacity:.7}
.calc-hero h1{font-size:clamp(20px,3.5vw,32px);font-weight:800;margin-bottom:10px;line-height:1.2;letter-spacing:-.4px}
.calc-hero p{font-size:14px;opacity:.85;line-height:1.7;margin-bottom:14px;max-width:560px}
.hero-badges{display:flex;flex-wrap:wrap;gap:7px}
.hero-badge{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.25);border-radius:20px;padding:5px 12px;font-size:12px;font-weight:600;color:#fff;white-space:nowrap}
.hero-badge i{font-size:10px;opacity:.8}
.calc-hero-icon{font-size:80px;opacity:.15;flex-shrink:0;color:#fff;line-height:1;pointer-events:none}
@media(max-width:600px){.calc-hero-icon{display:none}.calc-hero{padding:28px 0 34px}}

/* --- INFO BAR --- */
.info-bar{background:#fff;border-bottom:2px solid #e2e8f0;padding:0;display:block;border-left:none;border-radius:0}
.info-bar .container{padding:0 16px}
.info-bar-inner{display:grid;grid-template-columns:repeat(4,1fr);border-left:4px solid var(--primary)}
.info-item{padding:11px 16px;border-right:1px solid #f1f5f9}
.info-item:last-child{border-right:none}
.info-label{font-size:10px;color:#94a3b8;font-weight:600;text-transform:uppercase;letter-spacing:.5px;margin-bottom:2px}
.info-value{font-size:15px;font-weight:700;color:#1e293b}
@media(max-width:660px){
  .info-bar-inner{grid-template-columns:1fr 1fr;border-left:none;border-top:4px solid var(--primary)}
  .info-item{border-right:1px solid #f1f5f9;border-bottom:1px solid #f1f5f9}
  .info-item:nth-child(2n){border-right:none}
  .info-item:nth-last-child(-n+2){border-bottom:none}
}

/* --- CALC LAYOUT & FORM CARD --- */
.calc-layout{display:grid;grid-template-columns:1fr 360px;gap:20px;align-items:start;padding:24px 0 56px}
@media(max-width:900px){.calc-layout{grid-template-columns:1fr}}
.calc-form-card{background:#fff;border-radius:14px;box-shadow:0 2px 16px rgba(0,0,0,.07);padding:24px;overflow:hidden}
@media(max-width:600px){.calc-form-card{padding:16px 14px;border-radius:10px}}
.form-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:10px;flex-wrap:wrap}
.form-title{font-size:15px;font-weight:700;color:#1e293b;display:flex;align-items:center;gap:8px;flex:1;min-width:0}
.form-title i{font-size:15px;flex-shrink:0}
.form-title-row .btn-reset{width:auto;margin-top:0;padding:7px 14px;font-size:12px;flex-shrink:0;border-radius:8px}

/* --- RESULT PANEL --- */
.result-panel{position:sticky;top:80px}
@media(max-width:900px){.result-panel{position:static}}
.result-card{background:#fff;border-radius:14px;box-shadow:0 2px 16px rgba(0,0,0,.08);overflow:hidden}
.result-header{display:flex;align-items:center;gap:10px;padding:15px 18px;background:linear-gradient(135deg,#1e293b 0%,#1a3a6b 100%);color:#fff;font-size:14px;font-weight:700}
.result-header i{font-size:15px;opacity:.75;flex-shrink:0}
.result-body{padding:16px 18px}
.result-empty{background:#f8fafc;border:2px dashed #e2e8f0;border-radius:10px;padding:22px 16px;text-align:center;margin:10px 0}
.result-empty i{font-size:28px;color:#cbd5e1;display:block;margin-bottom:8px}
.result-empty p{font-size:12.5px;color:#94a3b8;line-height:1.5}
.result-highlight{background:linear-gradient(135deg,#f0fdf4,#dcfce7);border:2px solid #86efac;border-radius:10px;padding:16px 14px;text-align:center;margin:10px 0}
.highlight-label{font-size:11px;color:#15803d;font-weight:600;text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}
.highlight-amount{font-size:34px;font-weight:800;color:#166534;letter-spacing:-1px;line-height:1.1}
.highlight-sub{font-size:11px;color:#16a34a;margin-top:4px}

/* --- NISAB STATUS --- */
.nisab-status{border-radius:8px;padding:10px 12px;display:flex;align-items:flex-start;gap:8px;font-size:12.5px;font-weight:600;line-height:1.4}
.nisab-status.wajib{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534}
.nisab-status.tidak{background:#fffbeb;border:1px solid #fde68a;color:#92400e}
.nisab-status i{margin-top:1px;flex-shrink:0}

/* --- BUTTONS --- */
.btn-pay{width:100%;background:linear-gradient(135deg,var(--primary),#0958d9);color:#fff;border:none;border-radius:10px;padding:13px;font-size:14px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;transition:opacity .2s;margin-top:8px;font-family:var(--font)}
.btn-pay:hover:not(:disabled){opacity:.88}
.btn-pay:disabled{opacity:.4;cursor:not-allowed}
.btn-reset{background:#fff;color:#94a3b8;border:1.5px solid #e2e8f0;border-radius:10px;padding:11px;font-size:13px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:7px;transition:all .15s;font-family:var(--font);width:100%;margin-top:8px}
.btn-reset:hover{border-color:#ef4444;color:#ef4444}
.nisab-ref{font-size:11px;color:#94a3b8;text-align:center;margin-top:10px;padding:8px 10px;background:#f8fafc;border-radius:8px;line-height:1.6}

/* --- SELECT INSIDE FORM --- */
.bah-inp select.finput{width:148px;padding:8px 28px 8px 8px;font-size:13px;cursor:pointer;background:#fafafa url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center;appearance:none}

/* --- OTHER CALCS SIDEBAR --- */
.other-calcs{background:#fff;border-radius:14px;box-shadow:0 2px 12px rgba(0,0,0,.07);padding:16px 18px;margin-top:14px}
.other-calcs-title{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#94a3b8;margin-bottom:10px}
.other-calcs a{display:flex;align-items:center;gap:8px;padding:8px 0;font-size:13px;color:#374151;text-decoration:none;border-bottom:1px solid #f1f5f9;transition:color .15s}
.other-calcs a:last-child{border-bottom:none}
.other-calcs a:hover{color:var(--primary)}
.other-calcs a i{width:18px;text-align:center;font-size:13px;color:var(--primary);flex-shrink:0}

/* ===== MOBILE: BAH-ROW RESPONSIVE ===== */
@media(max-width:580px){
  /* Wrap layout: label takes full width, input/counter fills next line */
  .bah-row{flex-wrap:wrap;padding:12px 14px;gap:8px 6px}
  .bah-lbl{flex:1 0 100%}
  /* Input: fill remaining width */
  .bah-inp{flex:1;min-width:0}
  .bah-inp .finput{flex:1;min-width:0;width:auto;text-align:left;font-size:16px;padding:10px 11px}
  .bah-inp select.finput{flex:1;min-width:0;width:auto;font-size:16px}
  /* Subtotals: fill line */
  .bah-sub-val,.bah-dsub-val,.bah-esub-val{min-width:0;flex:1;text-align:right}
  .bah-fixed{min-width:0;flex:1;text-align:left}
  /* Counter RM: fill remaining space beside counter buttons */
  .ctr-rm{min-width:0;flex:1;text-align:right}
  /* Header tweaks */
  .bah-header{flex-wrap:wrap;row-gap:6px}
  .bah-head-inner{min-width:0;flex:1}
  .bah-j{font-size:11px}
  /* Result table */
  .bah-result-row{font-size:12px}
  .bah-result-val{font-size:12px}
}
@media(max-width:400px){
  .bah-inp .finput,.bah-inp select.finput{font-size:15px;padding:9px 11px}
  .highlight-amount{font-size:28px}
  .calc-form-card{padding:14px 12px}
}

/* ===== MOBILE: TOPBAR & TOUCH ===== */
@media(max-width:720px){
  .topbar{display:none}
  /* Larger touch targets for counter buttons */
  .ctr-btn{width:36px;height:36px;font-size:18px}
  .ctr-n{width:44px;font-size:16px}
}
