/* ===================================================================
   ATQAN — infaq-frontend/css/infaq-styles.css
   Premium Monochrome Infaq UI — aligned to DESIGN.md governance
   =================================================================== */

/* ─── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--md-bg);
  color: var(--md-text);
  font-family: var(--font-family);
  transition: background-color var(--md-motion-duration-medium) var(--md-motion-easing-standard),
              color var(--md-motion-duration-medium) var(--md-motion-easing-standard);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── HEADER (Floating Card Style) ─────────────────────────────── */
header.form-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background-color: var(--md-surface);
  border: none;
  box-shadow: none;
  border-radius: var(--radius-card);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-decelerate);
}

[data-theme="light"] .logo-light { display: block; }
[data-theme="light"] .logo-dark  { display: none; }
[data-theme="dark"]  .logo-light { display: none; }
[data-theme="dark"]  .logo-dark  { display: block; }

/* Theme Toggle — from DESIGN.md #theme-toggle-btn spec */
.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--md-text-sub);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: var(--md-type-label-medium-size);
  font-weight: 500;
  transition: var(--transition-decelerate);
}

.theme-toggle-btn:hover {
  background-color: var(--md-surface-low);
  transform: scale(1.03);
}

.theme-toggle-btn:active {
  transform: scale(0.96);
}

/* ─── MAIN LAYOUT ──────────────────────────────────────────────── */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 64px;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}

.infaq-split-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  max-width: 1040px;
  width: 100%;
  align-items: start;
}

.infaq-left-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Right col: sticky payment card panel */
.infaq-right-col {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* ─── M3 CARD — DESIGN.md: padding 24px 32px, radius-card ──────── */
.m3-card {
  background-color: var(--md-surface);
  border: none;
  border-radius: var(--radius-card);
  padding: 24px 32px;
  box-shadow: none;
  transition: background-color var(--md-motion-duration-medium) var(--md-motion-easing-emphasized);
}

.m3-card:hover {
  border: none;
  box-shadow: none;
}

/* ─── TYPOGRAPHY ───────────────────────────────────────────────── */
h1 {
  font-size: var(--md-type-headline-small-size);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

h2 {
  margin: 0;
}

.section-subtitle {
  font-size: var(--md-type-body-medium-size);
  color: var(--md-text-sub);
  margin: 0;
  line-height: 1.6;
}

/* ─── PRESET GRID ──────────────────────────────────────────────── */
.infaq-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Preset buttons — aligned to M3 suggestion chip / card geometry */
.infaq-preset-btn {
  font-family: var(--font-family);
  font-size: var(--md-type-label-large-size);
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius-button); /* unified button rounding */
  border: none; /* outline = 0 */
  background-color: var(--md-surface-low);
  color: var(--md-text);
  cursor: pointer;
  text-align: center;
  transition: all var(--md-motion-duration-short) var(--md-motion-easing-emphasized);
  outline: none;
  user-select: none;
}

.infaq-preset-btn:hover {
  background-color: var(--md-surface-high);
  transform: scale(1.03);
}

.infaq-preset-btn:active {
  transform: scale(0.96);
}

.infaq-preset-btn.active {
  background-color: #10B981;
  color: #FFFFFF;
}

.infaq-preset-btn.active:hover {
  background-color: #059669;
  transform: scale(1.03);
}

/* ─── CUSTOM AMOUNT INPUT ──────────────────────────────────────── */
.infaq-custom-amount-wrapper {
  display: flex;
  align-items: center;
  border: none; /* outline = 0 */
  border-radius: var(--md-shape-s);
  padding: 14px 16px;
  position: relative;
  background-color: var(--md-surface-low);
  transition: background-color var(--md-motion-duration-short) var(--md-motion-easing-standard);
}

.infaq-custom-amount-wrapper.focused {
  background-color: var(--md-surface-high);
}

.infaq-input-prefix {
  font-size: var(--md-type-body-large-size);
  color: #10B981;
  margin-right: 8px;
  font-weight: 600;
  flex-shrink: 0;
}

.infaq-custom-amount-input {
  border: none;
  background: transparent;
  outline: none;
  color: #10B981;
  font-family: var(--font-family);
  font-size: var(--md-type-body-large-size);
  width: 100%;
  font-weight: 600;
}

.infaq-custom-amount-wrapper .m3-input-label {
  left: 40px;
}

.infaq-custom-amount-wrapper.focused .m3-input-label,
.infaq-custom-amount-wrapper.has-value .m3-input-label {
  top: 0;
  left: 16px;
  font-size: var(--md-type-label-medium-size);
  color: #10B981;
}

.infaq-hidden {
  display: none !important;
}

/* ─── M3 OUTLINED INPUT ────────────────────────────────────────── */
.m3-outlined-input-wrapper {
  position: relative;
  width: 100%;
}

.m3-outlined-input {
  width: 100%;
  padding: 14px 16px;
  background-color: var(--md-surface-low);
  border: none; /* outline = 0 */
  border-radius: var(--md-shape-s);
  color: var(--md-text);
  font-family: var(--font-family);
  font-size: var(--md-type-body-large-size);
  outline: none;
  transition: background-color var(--md-motion-duration-short) var(--md-motion-easing-standard);
}

.m3-outlined-input:focus {
  background-color: var(--md-surface-high);
}

.m3-input-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--md-surface-low);
  border-radius: 4px;
  padding: 0 6px;
  color: var(--md-text-sub);
  font-size: var(--md-type-body-large-size);
  pointer-events: none;
  transition: all var(--md-motion-duration-short) var(--md-motion-easing-standard);
}

/* Update label background when input is active */
.m3-outlined-input:focus ~ .m3-input-label,
.m3-outlined-input:not(:placeholder-shown) ~ .m3-input-label {
  top: 0;
  background-color: var(--md-surface-high);
  font-size: var(--md-type-label-medium-size);
  color: var(--md-primary);
}

/* ─── BUTTONS — aligned to DESIGN.md m3-filled-button spec ─────── */
/* padding: 12px 24px; border-radius: var(--radius-button); gap: 8px */
.m3-filled-button,
.m3-filled-btn {
  width: 100%;
  padding: 12px 24px;
  font-family: var(--font-family);
  font-size: var(--md-type-label-large-size);
  font-weight: 600;
  border-radius: var(--radius-button);
  border: none;
  background-color: var(--md-primary);
  color: var(--md-on-primary);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: var(--transition-decelerate);
  letter-spacing: 0.1px;
}

.m3-filled-button:hover,
.m3-filled-btn:hover {
  filter: brightness(1.08);
  transform: scale(1.03);
}

.m3-filled-button:active,
.m3-filled-btn:active {
  transform: scale(0.96);
}

.m3-outlined-button,
.m3-outlined-btn {
  width: 100%;
  padding: 12px 24px;
  font-family: var(--font-family);
  font-size: var(--md-type-label-large-size);
  font-weight: 600;
  border-radius: var(--radius-button);
  border: none;
  background-color: var(--md-surface-low);
  color: var(--md-primary);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: var(--transition-decelerate);
}

.m3-outlined-button:hover,
.m3-outlined-btn:hover {
  background-color: var(--md-surface-high);
  transform: scale(1.03);
}

.m3-outlined-button:active,
.m3-outlined-btn:active {
  transform: scale(0.96);
}

/* ─── SUCCESS STATE ────────────────────────────────────────────── */
.success-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.success-icon-container {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background-color: rgba(16, 185, 129, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #10B981;
  margin-bottom: 16px;
  animation: scale-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scale-up {
  0%   { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

.success-icon-svg {
  width: 40px;
  height: 40px;
}

.success-title {
  font-size: var(--md-type-headline-small-size);
  font-weight: 700;
  margin: 0 0 8px;
}

.success-text {
  font-size: var(--md-type-body-medium-size);
  color: var(--md-text-sub);
  line-height: 1.6;
  margin: 0 0 20px;
}



/* ─── LOADING SCREEN ───────────────────────────────────────────── */
.initial-loading-view {
  position: fixed;
  inset: 0;
  background-color: #022c22;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.2, 0, 0, 1);
  will-change: opacity;
}

.initial-loading-view.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-brand-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loading-pulse 1.8s ease-in-out infinite;
}

.loading-brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

@keyframes loading-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.97); }
  50%       { opacity: 1;   transform: scale(1.03); }
}

/* ─── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 960px) {
  .m3-card {
    padding: 16px 20px;
  }
}

@media (max-width: 900px) {
  .infaq-split-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .infaq-left-col {
    order: 2;
  }

  .infaq-right-col {
    order: 1;
    position: static;
  }
}

@media (max-width: 600px) {
  main {
    padding: 20px 16px 48px;
  }

  .m3-card {
    padding: 16px 20px;
  }

  .infaq-presets-grid {
    grid-template-columns: 1fr 1fr;
  }

  .flip-card-container {
    max-width: 100%;
  }

  .payment-tabs {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   PAYMENT SECTION: TABS + 3D FLIP CARD
   ═══════════════════════════════════════════════════════════════════ */

/* Segment-style tabs */
.payment-tabs {
  display: flex;
  background-color: var(--md-surface-low);
  border-radius: var(--radius-full);
  padding: 4px;
  width: 100%;
  max-width: 380px;
  border: none;
}

.payment-tab {
  flex: 1;
  border: none;
  background: none;
  font-family: var(--font-family);
  font-size: var(--md-type-label-large-size);
  font-weight: 600;
  padding: 9px 12px;
  border-radius: var(--radius-full);
  color: var(--md-text-sub);
  cursor: pointer;
  transition: all var(--md-motion-duration-short) var(--md-motion-easing-emphasized);
  white-space: nowrap;
}

.payment-tab.active {
  background-color: var(--md-surface);
  color: var(--md-text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* ─── 3D FLIP CONTAINER ────────────────────────────────────────── */
/*
  THE CRITICAL FIX FOR "FALLING CARD" BUG:
  The flip container MUST have an explicit height, and both faces MUST use
  position:absolute + top:0 + left:0 to layer correctly inside preserve-3d.
  The .physical-card-style class must NOT override position — faces stay absolute.
*/
.flip-card-container {
  perspective: 1200px;
  width: 100%;
  max-width: 380px;
  /* Fixed height — both card faces fill this exactly */
  height: 440px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card-container.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* Both faces: absolutely positioned, filling the container */
.flip-card-front,
.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 18px; /* elegant bank card rounding */
  overflow: hidden; /* clip child content to card corners */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px; /* increased padding for elegant layout spacing */
  border: none;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card-front:hover,
.flip-card-back:hover {
  border: none;
  box-shadow: none;
}

/* Glossy PVC Sheen Reflection Sweep */
.flip-card-front::after,
.flip-card-back::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -150%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  z-index: 5;
}

/* Run sweep on hover of card container */
.flip-card-container:hover .flip-card-front::after,
.flip-card-container:hover .flip-card-back::after {
  animation: pvc-sheen-sweep 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes pvc-sheen-sweep {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}

/* Back face is pre-flipped */
.flip-card-back {
  transform: rotateY(180deg);
}

/* ─── QRIS CARD (Front) ─────────────────────────────────────────── */
.qris-card-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Flat soft-gray for QRIS */
[data-theme="light"] .qris-card-theme {
  background-color: var(--md-surface-low);
  color: #212529;
  border: none;
  box-shadow: none;
}

[data-theme="dark"] .qris-card-theme {
  background-color: var(--md-surface-low);
  color: #e2e4e9;
  border: none;
  box-shadow: none;
}

/* ─── BSI CARD (Back) ───────────────────────────────────────────── */
/* Flat elegant BSI brand green */
.bsi-card-theme {
  background-color: #006a54;
  color: #ffffff;
  border: none;
  box-shadow: none;
}

/* ─── CARD CHIP (Minimalist) ────────────────────────────────────── */
.card-chip {
  width: 36px;
  height: 26px;
  border-radius: 4px;
  position: relative;
  background-color: #cbd5e1; /* flat silver chip */
  border: none;
  flex-shrink: 0;
}

.card-chip::after {
  content: "";
  position: absolute;
  top: 0;
  left: 44%;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.10);
}

.card-chip.gold-chip {
  background-color: #eab308; /* flat gold chip */
}

/* ─── CARD ROW LAYOUT ───────────────────────────────────────────── */
.card-top-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
}

.card-middle-row {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 0; /* prevent flex overflow */
}

.card-bottom-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 8px;
}

/* ─── QRIS BRAND LOGO IN CARD ───────────────────────────────────── */
.qris-brand-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.qris-text-logo {
  font-size: 18px;
  font-weight: 900;
  color: #10B981;
  letter-spacing: -0.5px;
  line-height: 1;
}

.qris-national-label {
  font-size: 8px;
  font-weight: 800;
  border: 1px solid currentColor;
  padding: 1px 4px;
  border-radius: 3px;
  margin-top: 3px;
  letter-spacing: 0.5px;
  line-height: 1;
}

/* ─── QRIS QR CODE AREA ─────────────────────────────────────────── */
.qris-qr-wrapper {
  width: min(180px, 100%);
  aspect-ratio: 1;
  background-color: #FFFFFF;
  border-radius: var(--md-shape-s);
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.qris-qr-inner {
  width: 100%;
  height: 100%;
  color: #1A1C1E;
  position: relative;
}

.qris-qr-svg {
  width: 100%;
  height: 100%;
}

.qris-scanner-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #BA1A1A;
  box-shadow: 0 0 6px #BA1A1A;
  animation: qris-scan 3s infinite linear;
  transition: background-color var(--md-motion-duration-short) var(--md-motion-easing-standard),
              box-shadow var(--md-motion-duration-short) var(--md-motion-easing-standard);
}

.qris-card-container:hover .qris-scanner-line {
  animation: qris-scan 1.5s infinite linear;
  background-color: #10B981;
  box-shadow: 0 0 10px #10B981;
}

@keyframes qris-scan {
  0%   { top: 0%; }
  50%  { top: 100%; }
  100% { top: 0%; }
}

/* ─── CARD AMOUNT & HOLDER INFO ─────────────────────────────────── */
.card-holder-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-holder-label {
  font-size: 7px;
  font-weight: 600;
  color: var(--md-text-sub);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.bsi-card-theme .card-holder-label {
  color: rgba(255, 255, 255, 0.55);
}

.card-holder-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.bsi-card-theme .card-holder-name {
  color: #ffffff;
}

.card-amount-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
}

.card-amount-label {
  font-size: 7px;
  font-weight: 600;
  color: var(--md-text-sub);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.bsi-card-theme .card-amount-label {
  color: rgba(255, 255, 255, 0.55);
}

.card-amount-value {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

/* Emerald green for QRIS amount display */
.qris-amount-value {
  color: #10B981;
}

/* Mint emerald for BSI amount */
.bsi-amount-value {
  color: #6ee7b7;
}

/* ─── E-WALLET BADGES ───────────────────────────────────────────── */
.qris-wallets-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .qris-wallets-row {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.wallet-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--md-text-sub);
  border: 1px solid var(--md-outline-variant);
  padding: 3px 8px;
  border-radius: var(--md-shape-xs);
  letter-spacing: 0.6px;
  background-color: var(--md-surface-low);
  transition: all var(--md-motion-duration-short) var(--md-motion-easing-emphasized);
  user-select: none;
}

.wallet-badge:hover {
  color: var(--md-text);
  border-color: var(--md-outline);
  background-color: var(--md-surface-high);
}

/* ─── BSI CARD CONTENT ──────────────────────────────────────────── */
.bsi-brand-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.bsi-card-title {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1;
}

.bsi-card-subtitle {
  font-size: 7px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
  line-height: 1;
}

/* BSI middle body — left-aligned VA info */
.bsi-card-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center; /* center the VA block vertically */
  align-items: flex-start; /* override card-middle-row center */
  text-align: left;
}

.bsi-va-container,
.bsi-account-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bsi-va-label,
.bsi-account-label {
  font-size: 7px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.bsi-va-display-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.15);
  padding: 8px 10px;
  border-radius: var(--md-shape-s);
  border: 1px solid rgba(255, 255, 255, 0.06);
  gap: 8px;
}

.bsi-va-number {
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  line-height: 1;
  flex: 1;
  min-width: 0; /* allow text to shrink */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* Embossed credit card feel */
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8), -1px -1px 1px rgba(255, 255, 255, 0.2);
}

.bsi-copy-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: var(--md-shape-s);
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--md-motion-duration-short) var(--md-motion-easing-emphasized);
}

.bsi-copy-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.03);
}

.bsi-copy-btn:active {
  transform: scale(0.95);
}

.bsi-account-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.bsi-card-instructions {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  text-align: left;
}

/* ─── ALLOCATION LIST ───────────────────────────────────────────── */
.infaq-allocation-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.allocation-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: transparent;
  text-align: center;
  transition: opacity var(--md-motion-duration-short) var(--md-motion-easing-standard);
}

.allocation-item:hover {
  opacity: 0.85;
}

.allocation-item .material-symbols-rounded {
  color: var(--md-text-sub);
  font-size: 24px;
}

.allocation-item span:not(.material-symbols-rounded) {
  font-size: 12px;
  font-weight: 500;
  color: var(--md-text-sub);
}

/* Centered & Focused Home Button */
.infaq-home-btn-wrapper {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.infaq-home-btn {
  max-width: none !important;
  width: auto !important;
  padding: 8px 24px !important;
  font-size: 13px !important;
  background-color: var(--md-surface-low) !important;
  color: var(--md-text) !important;
  border-radius: var(--radius-button) !important;
  transition: all var(--md-motion-duration-short) var(--md-motion-easing-emphasized) !important;
}

.infaq-home-btn:hover {
  background-color: var(--md-surface-high) !important;
  color: #10B981 !important;
  transform: scale(1.03) !important;
}
