:root {
  --ink: #0f1c1a;
  --forest: #1a3a2e;
  --jade: #2a6b52;
  --emerald: #3a9970;
  --mint: #d4ede5;
  --gold: #b8935a;
  --gold-light: #e8c98a;
  --gold-pale: #f5edd8;
  --parchment: #faf7f2;
  --white: #ffffff;
  --muted: #6b7c78;
  --border: #dce8e3;
  --error: #c0392b;
  --shadow-sm: 0 2px 12px rgba(15,28,26,0.07);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-xs: 6px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--parchment);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 90% -10%, rgba(42,107,82,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at -10% 80%, rgba(184,147,90,0.06) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.page { position: relative; z-index: 1; }

/* ── HEADER ── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 960px; margin: 0 auto;
  padding: 11px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; background: var(--forest);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-mark svg { width: 19px; height: 19px; }
.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px; font-weight: 600; color: var(--forest); letter-spacing: -0.01em; line-height: 1;
}
.logo-tagline { font-size: 9.5px; color: var(--muted); font-weight: 400; letter-spacing: 0.03em; margin-top: 1px; }

.header-nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.hn-link {
  font-size: 12px; font-weight: 500; color: var(--muted);
  text-decoration: none; padding: 6px 12px;
  border-radius: 20px; transition: all 0.2s; white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
}
.hn-link:hover { background: var(--mint); color: var(--jade); }
.hn-link.primary {
  background: var(--forest); color: var(--white);
  font-weight: 600; letter-spacing: 0.02em;
}
.hn-link.primary:hover { background: var(--jade); }
@media (max-width: 480px) {
  .hn-link span { display: none; }
  .hn-link { padding: 6px 8px; }
}

/* ── INTRO STRIP ── */
.intro-strip {
  background: linear-gradient(135deg, var(--forest) 0%, #1f4a38 50%, #2a5a44 100%);
  padding: 24px 20px;
  position: relative; overflow: hidden;
}
.intro-strip::after {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px;
  border: 1px solid rgba(184,147,90,0.12); border-radius: 50%;
  pointer-events: none;
}
.intro-strip::before {
  content: '';
  position: absolute; right: 20px; top: 20px;
  width: 120px; height: 120px;
  border: 1px solid rgba(184,147,90,0.08); border-radius: 50%;
  pointer-events: none;
}
.intro-inner {
  max-width: 960px; margin: 0 auto;
  position: relative; z-index: 1;
}
.intro-kicker {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--gold); font-weight: 700; margin-bottom: 10px;
}
.intro-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 4.5vw, 34px); font-weight: 600;
  color: var(--white); line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.intro-heading em { font-style: italic; color: var(--gold-light); }
.intro-body {
  font-size: 13px; color: rgba(255,255,255,0.68); line-height: 1.7;
  max-width: 700px; margin-bottom: 18px;
}
.intro-body strong { color: rgba(255,255,255,0.92); font-weight: 500; }
.intro-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.itag {
  font-size: 10px; padding: 4px 11px; border-radius: 20px;
  font-weight: 600; letter-spacing: 0.04em; white-space: nowrap;
}
.itag-gold { background: rgba(184,147,90,0.22); color: var(--gold-light); border: 1px solid rgba(184,147,90,0.3); }
.itag-muted { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.12); }

/* ── TOOL SWITCHER ── */
.tool-switcher-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 57px; z-index: 150;
  box-shadow: 0 2px 8px rgba(15,28,26,0.04);
}
.tool-switcher { max-width: 960px; margin: 0 auto; padding: 0 20px; display: flex; }
.tool-btn {
  flex: 1; padding: 13px 10px 11px;
  border: none; background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px; font-weight: 500;
  color: var(--muted); cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.22s ease;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.tool-btn:hover { color: var(--jade); }
.tool-btn.active { color: var(--forest); border-bottom-color: var(--jade); font-weight: 600; }
.tool-btn .tb-icon { font-size: 16px; }
.tool-section { display: none; }
.tool-section.active { display: block; }

/* ── MAIN LAYOUT ── */
.main {
  max-width: 960px; margin: 20px auto;
  padding: 0 20px;
  display: grid; grid-template-columns: 1fr 252px;
  gap: 18px; align-items: start;
}
@media (max-width: 700px) { .main { grid-template-columns: 1fr; } }

/* ── CARD ── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.card-header {
  background: linear-gradient(135deg, var(--forest) 0%, #2a5a44 100%);
  padding: 18px 22px 16px; position: relative; overflow: hidden;
}
.card-header::after {
  content: ''; position: absolute; right: -28px; top: -28px;
  width: 120px; height: 120px; border: 1px solid rgba(255,255,255,0.07); border-radius: 50%;
}
.card-header::before {
  content: ''; position: absolute; right: 14px; top: 14px;
  width: 65px; height: 65px; border: 1px solid rgba(255,255,255,0.07); border-radius: 50%;
}
.card-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 600; color: var(--white);
  letter-spacing: -0.01em; margin-bottom: 2px; position: relative;
}
.card-header p { font-size: 11.5px; color: rgba(255,255,255,0.5); position: relative; }
.card-body { padding: 20px; }

/* ── FORM ELEMENTS ── */
.section-label {
  font-size: 9.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--gold); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.form-group { margin-bottom: 11px; }
label {
  display: block; font-size: 11.5px; font-weight: 500;
  color: var(--ink); margin-bottom: 5px;
}
.input-wrap { position: relative; }
.input-wrap .ii {
  position: absolute; left: 11px; top: 50%;
  transform: translateY(-50%); font-size: 12.5px;
  color: var(--muted); pointer-events: none; font-style: normal;
}
input, select {
  width: 100%; height: 43px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--parchment);
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; appearance: none; -webkit-appearance: none;
}
/* Restore date picker appearance */
input[type="date"] {
  appearance: menulist-button;
  -webkit-appearance: menulist-button;
}
/* Prevent direct typing on date inputs - allow picker only */
input[type="date"].date-input {
  cursor: pointer;
}
input { padding: 0 13px; }
input.hi { padding-left: 33px; }
select {
  padding: 0 32px 0 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7c78' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; cursor: pointer;
}
input:focus, select:focus {
  border-color: var(--jade); box-shadow: 0 0 0 3px rgba(42,107,82,0.1); background: var(--white);
}

/* ── HIDE NUMBER INPUT SPINNERS ── */
input[type="number"] {
  -moz-appearance: textfield !important;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  margin: 0 !important;
  display: none !important;
}
input[type="number"]:hover::-webkit-outer-spin-button,
input[type="number"]:hover::-webkit-inner-spin-button {
  display: none !important;
}
input[type="number"]:focus::-webkit-outer-spin-button,
input[type="number"]:focus::-webkit-inner-spin-button {
  display: none !important;
}

.date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
@media (max-width: 380px) { .date-row, .two-col { grid-template-columns: 1fr; } }

.company-search { position: relative; }
.company-search-input { padding-right: 13px; }
.company-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  max-height: 320px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}
.company-dropdown.visible { display: block; }
.company-option {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.company-option:last-child { border-bottom: none; }
.company-option:hover { background: var(--mint); }
.company-option-name { font-size: 12.5px; font-weight: 600; color: var(--forest); }
.company-option-sub { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.company-option-note { font-size: 10px; color: var(--error); margin-top: 4px; }
.company-option.empty {
  cursor: default;
  color: var(--muted);
  font-size: 12px;
}

/* ── INFO NOTE ── */
.info-note {
  background: var(--mint); border: 1px solid rgba(42,107,82,0.18);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 11px; color: var(--jade); line-height: 1.6;
  margin-bottom: 14px; display: flex; gap: 8px;
}
.info-note .ni { font-size: 13px; flex-shrink: 0; margin-top: 1px; }

/* ── ASSET ACCORDION ── */
.asset-group {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; margin-bottom: 8px; transition: border-color 0.2s;
}
.asset-group.has-value { border-color: var(--jade); }
.asset-group-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; cursor: pointer; background: var(--white);
  transition: background 0.2s; user-select: none;
}
.asset-group-header:hover { background: var(--parchment); }
.asset-group.open .asset-group-header { background: var(--parchment); }
.asset-group.disabled { border-style: dashed; }
.asset-group.disabled .asset-group-header {
  cursor: not-allowed;
  background: #f7f4ef;
  opacity: 0.8;
}
.asset-group.disabled .ag-total { color: var(--muted); }
.agl { display: flex; align-items: center; gap: 10px; }
.ae { font-size: 17px; }
.agt { font-size: 13px; font-weight: 600; color: var(--forest); }
.ags { font-size: 10px; color: var(--muted); margin-top: 1px; }
.agr { display: flex; align-items: center; gap: 9px; }
.ag-total {
  font-size: 12.5px; font-weight: 700; color: var(--jade);
  font-family: 'Cormorant Garamond', serif; min-width: 65px; text-align: right;
}
.ag-chevron { font-size: 10px; color: var(--muted); transition: transform 0.25s; display: inline-block; }
.asset-group.open .ag-chevron { transform: rotate(180deg); }
.asset-group-body {
  padding: 13px 14px 14px; border-top: 1px solid var(--border);
  display: none; background: #fcfcfa;
}
.asset-group.open .asset-group-body { display: block; }
.asset-group.disabled .asset-group-body { display: block; }
.disabled-note {
  font-size: 12px;
  color: var(--muted);
  background: var(--parchment);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.af { margin-bottom: 9px; }
.af:last-child { margin-bottom: 0; }
.af label { font-size: 11px; color: var(--muted); margin-bottom: 4px; font-weight: 400; }
.af label strong { color: var(--ink); font-weight: 500; }
.madhab-flag {
  font-size: 10px; color: var(--gold); font-style: italic; margin-top: 3px;
  padding: 2px 7px; background: var(--gold-pale); border-radius: 4px; display: inline-block;
}

/* ── HOLDING ROW ── */
.holding-row {
  background: var(--parchment); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px; margin-bottom: 9px;
  position: relative; animation: slideIn 0.2s ease;
}
@keyframes slideIn { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:translateY(0); } }
.holding-row .rm-btn {
  position: absolute; top: 9px; right: 9px;
  width: 21px; height: 21px; border: none;
  background: rgba(192,57,43,0.1); color: var(--error);
  border-radius: 50%; cursor: pointer; font-size: 11px;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.holding-row .rm-btn:hover { background: rgba(192,57,43,0.2); }
.holding-num { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--jade); margin-bottom: 9px; }
.add-row-btn {
  width: 100%; height: 38px; border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm); background: transparent;
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500;
  color: var(--muted); cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.add-row-btn:hover { border-color: var(--jade); color: var(--jade); background: var(--mint); }

/* ── BUTTONS ── */
.calc-btn {
  width: 100%; height: 50px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--jade) 100%);
  color: var(--white); border: none; border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(26,58,46,0.35);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  letter-spacing: 0.02em; margin-top: 16px;
}
.calc-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,58,46,0.45); }
.calc-btn:active { transform: translateY(0); }
.calc-btn:disabled { opacity: 0.42; cursor: not-allowed; transform: none; }
.calc-btn-row {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
}
.calc-btn-row .calc-btn {
  flex: 4; margin-top: 0;
}
.reset-btn {
  background: none; border: 1.5px solid var(--border);
  color: var(--muted); font-family: 'DM Sans', sans-serif;
  font-size: 11.5px; padding: 0 10px; height: 50px;
  border-radius: var(--radius-xs); cursor: pointer;
  white-space: nowrap; transition: all 0.2s;
  flex: 1;
}
.reset-btn:hover { border-color: var(--error); color: var(--error); }

/* ── RESULT PANEL ── */
.result-panel {
  margin-top: 16px;
  background: linear-gradient(135deg, #0f2820 0%, var(--forest) 100%);
  border-radius: var(--radius-sm); padding: 18px;
  display: none; animation: fadeUp 0.3s ease;
}
.result-panel.visible { display: block; }
@keyframes fadeUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.result-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.42); font-weight: 600; margin-bottom: 6px; }
.result-amount { font-family: 'Cormorant Garamond', serif; font-size: 38px; font-weight: 600; color: var(--gold-light); line-height: 1; margin-bottom: 4px; }
.result-currency { font-size: 16px; vertical-align: super; font-family: 'DM Sans', sans-serif; margin-right: 3px; }
.result-breakdown { margin-top: 11px; display: grid; gap: 4px; }
.bdi { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; }
.bdi .bdl { color: rgba(255,255,255,0.48); }
.bdi .bdv { color: rgba(255,255,255,0.88); font-weight: 600; }
.bdi .bdv.red { color: #ff9898; }
.res-sub { font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.3); font-weight: 600; margin: 9px 0 4px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,0.08); }
.res-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 9px 0; }
.result-note { font-size: 11px; color: rgba(255,255,255,0.42); line-height: 1.55; margin-top: 11px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.1); }

/* ═══════════════════════════════
   ZAKAT SPECIFIC
═══════════════════════════════ */
.madhab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 14px; }
.madhab-btn {
  padding: 10px 8px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--parchment);
  font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all 0.2s; text-align: center;
}
.madhab-btn.active { border-color: var(--jade); background: var(--mint); box-shadow: 0 0 0 3px rgba(42,107,82,0.1); }
.madhab-name { font-size: 13.5px; font-weight: 600; color: var(--forest); margin-bottom: 1px; }
.madhab-btn.active .madhab-name { color: var(--jade); }
.madhab-sub { font-size: 9.5px; color: var(--muted); line-height: 1.3; }

.nisab-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.nisab-card {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--parchment); cursor: pointer; transition: all 0.2s; overflow: hidden;
}
.nisab-card:hover { border-color: var(--jade); background: var(--mint); }
.nisab-card.active { border-color: var(--gold); background: var(--gold-pale); }
.nisab-card-top { padding: 12px 12px 8px; }
.nisab-metal { font-size: 18px; margin-bottom: 3px; }
.nisab-title { font-size: 12px; font-weight: 700; color: var(--forest); }
.nisab-card.active .nisab-title { color: var(--gold); }
.nisab-detail { font-size: 9.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.nisab-threshold { font-size: 14px; font-weight: 700; color: var(--jade); margin-top: 6px; }
.nisab-card.active .nisab-threshold { color: var(--gold); }
.nisab-price-embed { padding: 8px 12px 12px; border-top: 1px solid rgba(0,0,0,0.06); background: rgba(0,0,0,0.02); }
.nisab-price-embed label { font-size: 10px; color: var(--muted); margin-bottom: 4px; font-weight: 500; }

.hawl-wrap {
  background: var(--parchment); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 14px; margin-bottom: 14px; transition: all 0.2s;
}
.hawl-wrap.confirmed { border-color: var(--jade); background: var(--mint); }
.hawl-inner { display: flex; align-items: flex-start; gap: 13px; }
.hawl-switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.hawl-switch input { opacity: 0; width: 0; height: 0; }
.hawl-slider { position: absolute; cursor: pointer; inset: 0; background: #ccc; border-radius: 24px; transition: 0.3s; }
.hawl-slider:before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s; }
.hawl-switch input:checked + .hawl-slider { background: var(--jade); }
.hawl-switch input:checked + .hawl-slider:before { transform: translateX(18px); }
.hawl-text { flex: 1; }
.hawl-title { font-size: 12.5px; font-weight: 600; color: var(--forest); margin-bottom: 2px; }
.hawl-wrap.confirmed .hawl-title { color: var(--jade); }
.hawl-desc { font-size: 10.5px; color: var(--muted); line-height: 1.5; }
.hawl-tag {
  display: inline-block; font-size: 9px; font-weight: 700; padding: 2px 8px;
  border-radius: 10px; margin-top: 5px; text-transform: uppercase; letter-spacing: 0.06em;
}
.hawl-tag.pending { background: rgba(192,57,43,0.1); color: var(--error); }
.hawl-tag.done { background: rgba(42,107,82,0.15); color: var(--jade); }

.liab-box {
  background: #fff5f5; border: 1.5px solid rgba(192,57,43,0.15);
  border-radius: var(--radius-sm); padding: 13px 14px; margin-top: 3px;
}
.liab-title {
  font-size: 9.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--error); margin-bottom: 9px;
  display: flex; align-items: center; gap: 7px;
}
.liab-title::after { content: ''; flex: 1; height: 1px; background: rgba(192,57,43,0.15); }

.zakat-live-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); position: sticky; top: 68px;
}
.zlc-head { background: linear-gradient(135deg, #0f2820, var(--forest)); padding: 14px 16px; }
.zlc-hl { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.4); font-weight: 600; margin-bottom: 3px; }
.zlc-badge { font-size: 10.5px; padding: 2px 8px; border-radius: 10px; font-weight: 600; display: inline-block; margin-bottom: 7px; }
.zlc-badge.below { background: rgba(192,57,43,0.25); color: #ff9a9a; }
.zlc-badge.above { background: rgba(58,153,112,0.3); color: #7de0b5; }
.zlc-total { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 600; color: var(--gold-light); line-height: 1; }
.zlc-body { padding: 11px 14px; }
.zlc-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 11px; }
.zlc-row:last-child { border-bottom: none; }
.zlc-rl { color: var(--muted); }
.zlc-rv { font-weight: 600; color: var(--ink); }
.zlc-rv.red { color: var(--error); }
.zlc-due-row { background: var(--mint); border-radius: var(--radius-xs); padding: 9px 12px; margin-top: 8px; display: flex; justify-content: space-between; align-items: center; }
.zlc-due-lbl { font-size: 10px; font-weight: 700; color: var(--jade); text-transform: uppercase; letter-spacing: 0.07em; }
.zlc-due-val { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; color: var(--jade); }
.zlc-foot { font-size: 10px; color: var(--muted); margin-top: 5px; text-align: center; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 13px; }
.ad-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.ad-head { background: var(--parchment); border-bottom: 1px solid var(--border); padding: 6px 13px; display: flex; align-items: center; justify-content: space-between; }
.ad-tag { font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; }
.ad-badge { font-size: 8px; background: var(--mint); color: var(--jade); padding: 2px 6px; border-radius: 10px; font-weight: 700; }
.ad-body-p { padding: 13px; }
.ad-filled {
  border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(135deg, #1a2f2a, #2a5040);
  padding: 14px; min-height: 140px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.adf-name { font-family: 'Cormorant Garamond', serif; font-size: 16px; color: var(--white); font-weight: 600; margin-bottom: 1px; }
.adf-sub { font-size: 9px; color: rgba(255,255,255,0.42); text-transform: uppercase; letter-spacing: 0.1em; }
.adf-ret { font-family: 'Cormorant Garamond', serif; font-size: 24px; color: var(--gold-light); font-weight: 600; }
.adf-ret-l { font-size: 9px; color: rgba(255,255,255,0.38); }
.ad-cta { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); color: var(--white); padding: 5px 12px; border-radius: var(--radius-xs); font-size: 10px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: background 0.2s; letter-spacing: 0.04em; align-self: flex-start; }
.ad-cta:hover { background: rgba(255,255,255,0.2); }
.ad-slot { border: 1.5px dashed var(--border); border-radius: var(--radius-sm); min-height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 5px; color: var(--muted); cursor: pointer; transition: all 0.2s; padding: 12px; }
.ad-slot:hover { border-color: var(--jade); background: var(--mint); color: var(--jade); }
.ad-slot-icon { font-size: 22px; opacity: 0.4; }
.ad-slot-lbl { font-size: 10.5px; font-weight: 600; }
.ad-slot-sub { font-size: 9.5px; opacity: 0.65; line-height: 1.4; }
.info-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); }
.info-widget h3 { font-family: 'Cormorant Garamond', serif; font-size: 15px; color: var(--forest); font-weight: 600; margin-bottom: 10px; }
.info-step { display: flex; gap: 9px; margin-bottom: 9px; }
.sn { width: 21px; height: 21px; background: var(--mint); color: var(--jade); border-radius: 50%; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.st { font-size: 11.5px; color: var(--muted); line-height: 1.5; padding-top: 2px; }
.st strong { color: var(--ink); font-weight: 500; }
.formula-box { background: var(--forest); border-radius: var(--radius-xs); padding: 11px 13px; margin-top: 11px; }
.formula-title { font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.35); font-weight: 600; margin-bottom: 5px; }
.formula { font-family: 'Cormorant Garamond', serif; font-size: 13px; color: var(--gold-light); font-style: italic; line-height: 1.65; }

.mobile-ad { display: none; max-width: 960px; margin: 0 auto 13px; padding: 0 20px; }
@media (max-width: 700px) { .mobile-ad { display: block; } }
.mob-ad-inner {
  background: linear-gradient(135deg, #1a2f2a, #2a5040); border-radius: var(--radius);
  padding: 13px 15px; display: flex; align-items: center; gap: 11px;
  overflow: hidden; position: relative;
}
.mob-ad-inner::after { content: 'Shariah ✓'; position: absolute; top: 7px; right: -19px; background: var(--gold); color: #000; font-size: 7px; font-weight: 800; padding: 2px 26px; transform: rotate(35deg); letter-spacing: 0.05em; }
.mob-ad-text { flex: 1; }
.mob-ad-name { font-family: 'Cormorant Garamond', serif; font-size: 15px; color: var(--white); font-weight: 600; }
.mob-ad-sub { font-size: 9px; color: rgba(255,255,255,0.42); margin-bottom: 3px; }
.mob-ad-ret { font-size: 18px; font-family: 'Cormorant Garamond', serif; color: var(--gold-light); font-weight: 600; }

/* ── FOOTER ── */
footer { background: var(--forest); color: rgba(255,255,255,0.6); text-align: center; padding: 24px 20px; margin-top: 40px; }
.footer-grant { font-size: 12px; line-height: 1.75; max-width: 560px; margin: 0 auto 14px; }
.footer-grant strong { color: var(--gold-light); font-weight: 500; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 13px; flex-wrap: wrap; font-size: 11px; }
.footer-links a { color: rgba(255,255,255,0.38); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-light); }
.fdiv { width: 1px; height: 10px; background: rgba(255,255,255,0.15); }
.footer-copy { font-size: 10px; color: rgba(255,255,255,0.2); margin-top: 11px; }

/* ── ENDORSEMENT BAR ── */
.endorsement-bar {
  background: var(--parchment);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
}
.endorsement-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.endorsement-label {
  font-size: 11.5px; color: var(--muted); font-weight: 500;
  white-space: nowrap;
}
.shariahcap-logo {
  display: inline-flex; align-items: center;
  text-decoration: none; padding: 5px 10px;
  border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--white); transition: all 0.2s;
}
.shariahcap-logo:hover { border-color: var(--jade); box-shadow: 0 2px 8px rgba(42,107,82,0.1); }
.sc-mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: linear-gradient(135deg, var(--forest), var(--jade));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sc-mark svg { width: 16px; height: 16px; }
.sc-text-block { line-height: 1.1; }
.sc-name { font-size: 13px; font-weight: 700; color: var(--forest); letter-spacing: -0.01em; }
.sc-sub { font-size: 8.5px; color: var(--gold); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.disclaimer { max-width: 960px; margin: 0 auto; padding: 0 20px 18px; font-size: 10.5px; color: var(--muted); line-height: 1.6; text-align: center; }
