/* ============================================================
   Almubarak Digital Hub — design tokens
   Palette: dark green + white, with a restrained gold echo
   from the logo used only for the tiniest highlight details.
   Type: Poppins throughout (bold for display, regular for body).
   ============================================================ */

:root {
  --ink: #0B3D2B;           /* deep green — headings, dark panels */
  --brand: #146C43;         /* primary green — buttons, links, icons */
  --brand-deep: #0A4A31;    /* darker green — hover states, gradients */
  --brand-tint: #E4F3EC;    /* pale green — icon chip backgrounds */
  --paper: #F5FAF7;         /* app background, faint green cast */
  --paper-raised: #FFFFFF;  /* cards, inputs */
  --line: #DCEAE2;
  --text: #142720;
  --text-muted: #5B6960;
  --accent: #146C43;        /* alias so accent-styled elements read as brand green */
  --accent-deep: #0A4A31;
  --accent-ink: #FFFFFF;
  --success: #1FAA59;
  --success-bg: #E7F7EE;
  --danger: #E5484D;
  --danger-bg: #FDEBEC;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow: 0 8px 30px rgba(11, 61, 43, 0.12);
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.4em 0;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em 0; color: var(--text-muted); max-width: 62ch; }

a { color: inherit; }

button, input, select { font-family: inherit; font-size: inherit; }

img, svg { display: block; max-width: 100%; }

.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(11, 61, 43, 0.3); }

.btn-accent { background: var(--brand); color: #fff; }
.btn-accent:hover { box-shadow: 0 6px 18px rgba(20, 108, 67, 0.35); }

.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); }

.btn-danger { background: var(--danger-bg); color: var(--danger); }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---- Forms ---- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper-raised);
  color: var(--text);
}
.field input:focus, .field select:focus { border-color: var(--brand); }
.field-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ---- Cards ---- */
.card {
  background: var(--paper-raised);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 24px;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-neutral { background: #EDF3F0; color: var(--text-muted); }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  max-width: 320px;
  font-size: 0.9rem;
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }

/* ---- Reusable icon chip ---- */
.icon-chip {
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--brand-tint);
  color: var(--brand);
  flex-shrink: 0;
}

/* ============================================================
   Marketing site (index.html)
   ============================================================ */
.site-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper-raised);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.brand-mark-full { display: none; height: 34px; width: auto; border-radius: 6px; object-fit: contain; flex-shrink: 0; }
.header-logo { height: 38px; width: auto; object-fit: contain; display: block; }

@media (max-width: 640px) {
  .brand-text { display: none; }
  .brand-mark { display: none; }
  .brand-mark-full { display: block; }
  .header-logo { height: 30px; }
}

/* Dashboard/admin always show the icon-only mark, never the full wordmark
   logo — this overrides the generic mobile swap above via specificity. */
.sidebar .brand-mark,
.mobile-appbar .brand-mark {
  display: block !important;
}

.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.92rem; }
.nav-links a:hover { color: var(--ink); }
.nav-auth { display: flex; align-items: center; gap: 12px; }

.hamburger-btn {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  color: var(--ink); flex-shrink: 0;
}
.hamburger-btn:hover { background: var(--brand-tint); }

.user-menu { position: relative; }
.user-menu-trigger {
  display: flex; align-items: center; gap: 6px;
  background: var(--brand-tint); border: none; cursor: pointer;
  padding: 6px 10px 6px 6px; border-radius: 999px;
}
.user-avatar-circle {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.user-menu-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow);
  min-width: 180px; padding: 8px; display: none; z-index: 60;
}
.user-menu-dropdown.open { display: block; }
.user-menu-dropdown a, .user-menu-dropdown button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: none; border: none; text-align: left; cursor: pointer;
  font-size: 0.9rem; color: var(--text); text-decoration: none;
}
.user-menu-dropdown a:hover, .user-menu-dropdown button:hover { background: var(--brand-tint); }

.mobile-menu-panel {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper-raised); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 12px 24px 20px;
}
.mobile-menu-panel.open { display: block; }
.mobile-menu-panel a, .mobile-menu-panel button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 13px 4px; border-bottom: 1px solid var(--line);
  background: none; border-left: none; border-right: none; border-top: none;
  text-align: left; font-size: 0.96rem; color: var(--text); text-decoration: none; cursor: pointer;
}
.mobile-menu-panel .mobile-menu-ctas { display: flex; gap: 10px; padding-top: 14px; }
.mobile-menu-panel .mobile-menu-ctas .btn { flex: 1; }

/* Download App link (sidebar + mobile menu): matches .nav-item, no background */
.mobile-download-app {
  background: none !important;
  border: none !important;
  border-radius: var(--radius-sm);
  margin-bottom: 0;
  padding: 11px 12px !important;
  gap: 10px !important;
  color: var(--text-muted);
  text-decoration: none;
}
.mobile-download-app:hover { background: var(--brand-tint) !important; }
.mobile-download-app-icon { width: 20px; height: 20px; flex-shrink: 0; color: #3DDC84; }
.mobile-download-app span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mobile-download-app strong { font-size: 0.92rem; font-weight: 500; color: var(--text-muted); line-height: 1.25; }
.mobile-download-app small { font-size: 0.72rem; color: var(--text-muted); opacity: 0.8; line-height: 1.25; }
.mobile-download-app:hover strong { color: var(--ink); }

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .hamburger-btn { display: flex; }
}

.hero {
  padding: 96px 0 88px;
  background: var(--paper);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); max-width: 14ch; }
.hero .lede { font-size: 1.1rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

.hero-visual { position: relative; max-width: 420px; margin: 0 auto; }
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero-float-card {
  position: absolute;
  left: -18px;
  bottom: -22px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 230px;
}
.hero-float-card .icon-chip { width: 42px; height: 42px; }
.hero-float-label { font-size: 0.72rem; color: var(--text-muted); }
.hero-float-amount { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.05rem; }

.hero-badge-top {
  position: absolute;
  top: 18px;
  right: -14px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow);
}

.trust-row {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line);
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-muted); font-weight: 600; }
.trust-item .check {
  width: 22px; height: 22px; border-radius: 50%; background: var(--success-bg); color: var(--success);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.trust-item .check .icon { width: 13px; height: 13px; stroke-width: 3; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.step-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--brand); margin-bottom: 10px; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 12px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   Auth pages (login/register)
   ============================================================ */
.auth-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid var(--line); background: var(--paper-raised);
}
.home-float-btn {
  position: fixed; top: 20px; right: 20px; z-index: 200;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper-raised); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); box-shadow: var(--shadow); text-decoration: none;
}
.home-float-btn:hover { background: var(--brand-tint); border-color: var(--brand); }
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-visual {
  position: relative;
  background-image: linear-gradient(160deg, rgba(10,46,34,0.92), rgba(11,61,43,0.88)), var(--auth-bg-image);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-visual .quote { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; max-width: 22ch; }
.auth-visual .brand-mark { background: #fff; padding: 3px; }
.auth-visual .header-logo { background: #fff; padding: 8px 14px; border-radius: var(--radius-sm); height: 34px; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--paper-raised); }
.auth-box { width: 100%; max-width: 400px; }
.auth-box .switch-link { text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--text-muted); }

@media (max-width: 780px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}

/* ============================================================
   App shell (dashboard.html / admin.html)
   ============================================================ */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px;
  background: var(--paper-raised);
  color: var(--ink);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
}
.sidebar .brand { color: var(--ink); padding: 0 8px; margin-bottom: 20px; }

.sidebar-profile {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 10px; margin-bottom: 14px;
  border-radius: var(--radius-md);
  background: var(--brand-tint);
}
.sidebar-profile .user-avatar-circle { width: 42px; height: 42px; font-size: 1.05rem; }
.sidebar-profile-text { min-width: 0; }
.sidebar-profile-name { font-weight: 700; color: var(--ink); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-profile-balance { font-family: var(--font-display); font-weight: 700; color: var(--brand); font-size: 0.85rem; margin-top: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: var(--radius-sm);
  color: var(--text-muted); text-decoration: none; cursor: pointer;
  font-size: 0.92rem; font-weight: 500; border: none; background: none; width: 100%; text-align: left;
}
.nav-item .icon { width: 18px; height: 18px; }
.nav-item:hover { background: var(--brand-tint); color: var(--ink); }
.nav-item.active { background: var(--brand); color: #fff; font-weight: 700; }
.sidebar-footer { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }

.main-area { flex: 1; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; border-bottom: 1px solid var(--line); background: var(--paper-raised);
}
.wallet-pill {
  background: var(--brand-tint); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-family: var(--font-display); color: var(--ink);
}
.wallet-pill .label { font-family: var(--font-body); font-weight: 500; font-size: 0.75rem; color: var(--text-muted); }

.topbar-profile { display: flex; align-items: center; gap: 12px; }
.topbar-profile .user-avatar-circle { width: 40px; height: 40px; font-size: 1rem; }
.topbar-profile-text { text-align: right; }
.topbar-profile-name { font-weight: 700; color: var(--ink); font-size: 0.88rem; }
.topbar-profile-balance { font-family: var(--font-display); font-weight: 700; color: var(--brand); font-size: 0.95rem; margin-top: 2px; }

.view-body { padding: 28px 32px; max-width: 980px; }
.view { display: none; }
.view.active { display: block; }

.grid-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 20px 0 30px; }
.tile-btn {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px 14px; text-align: left; cursor: pointer; transition: border-color 0.12s;
}
.tile-btn:hover { border-color: var(--brand); }
.tile-icon { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 12px; }
.tile-icon .icon { width: 20px; height: 20px; }
.tile-btn .tile-title { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.tile-btn .tile-sub { font-size: 0.78rem; color: var(--text-muted); }

table.tx-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.tx-table th { text-align: left; color: var(--text-muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.tx-table td { padding: 12px; border-bottom: 1px solid var(--line); }
table.tx-table tr:last-child td { border-bottom: none; }

.form-card { max-width: 480px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card .stat-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.stat-card .stat-value { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--ink); }

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }

.mobile-appbar { display: none; }
.mobile-appbar .hamburger-btn { display: flex; }
.sidebar-backdrop { display: none; }

@media (max-width: 900px) {
  .app-shell { flex-direction: column; }

  .mobile-appbar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 14px 18px; background: var(--paper-raised);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(11,61,43,0.06);
    position: sticky; top: 0; z-index: 80;
  }
  .mobile-appbar .brand { font-size: 1.02rem; }
  .mobile-appbar .brand-mark { width: 28px; height: 28px; }

  .sidebar {
    position: fixed; top: 0; right: 0; left: auto; height: 100%; width: 84%; max-width: 300px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 100;
    box-shadow: var(--shadow);
    overflow-y: auto;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar .brand { display: flex; }

  .sidebar-backdrop {
    display: block;
    position: fixed; inset: 0; background: rgba(11,23,17,0.5);
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
    z-index: 99;
  }
  .sidebar-backdrop.open { opacity: 1; pointer-events: auto; }

  .topbar { display: none; }
  .sidebar-footer { margin-top: auto; }
  .view-body { padding: 18px; }
  .two-col { grid-template-columns: 1fr; }
  .grid-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Expanded marketing sections
   ============================================================ */
.section { padding: 88px 0; }
.section-tint { background: var(--brand-tint); }
.section-green {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: rgba(255,255,255,0.92);
}
.section-green h2, .section-green h3 { color: #fff; }
.section-green p { color: rgba(255,255,255,0.8); }
.section-green .eyebrow { color: #fff; opacity: 0.85; }
.section-green .step-num { color: #fff; background: rgba(255,255,255,0.15); width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.section-head { max-width: 640px; margin-bottom: 16px; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; }
.feature-card { padding: 26px 24px; }
.feature-card .icon-chip { width: 44px; height: 44px; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.02rem; }
.feature-card p { font-size: 0.88rem; margin-bottom: 0; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; margin-top: 44px; }
.service-card { display: flex; gap: 16px; align-items: flex-start; }
.service-card .icon-chip { width: 48px; height: 48px; border-radius: 12px; }
.service-card h3 { font-size: 1rem; margin-bottom: 5px; }
.service-card p { font-size: 0.86rem; margin-bottom: 0; }

.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item summary {
  cursor: pointer; font-family: var(--font-display); font-weight: 600; color: var(--ink);
  font-size: 1rem; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--brand); transition: transform 0.15s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; font-size: 0.92rem; }

.testimonial-placeholder {
  border: 1.5px dashed var(--line); border-radius: var(--radius-md); padding: 44px 36px;
  text-align: center; color: var(--text-muted); background: var(--paper-raised);
}
.testimonial-placeholder .icon-chip { margin: 0 auto 16px; width: 44px; height: 44px; }

.cta-band {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0 auto 26px; }
.cta-band .hero-ctas { justify-content: center; }
.cta-band .btn-accent { background: #fff; color: var(--ink); }

.site-footer-big { background: var(--ink); color: rgba(255,255,255,0.75); padding: 72px 0 28px; margin-top: 0; }
.site-footer-big .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer-big .brand { color: #fff; margin-bottom: 12px; }
.site-footer-big p { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.site-footer-big h4 { color: #fff; font-family: var(--font-body); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.site-footer-big ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer-big a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; }
.site-footer-big a:hover { color: #fff; }
.site-footer-big .footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; }

.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background 0.15s;
}
.social-links a:hover { background: var(--brand); }
.social-links svg { width: 17px; height: 17px; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .site-footer-big .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 56px; }
  .cta-band { padding: 48px 28px; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .site-footer-big .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .container { padding: 0 20px; }
  .site-footer-big .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ============================================================
   Floating WhatsApp support button
   ============================================================ */
.whatsapp-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.whatsapp-float-btn:hover { transform: scale(1.08); }
.whatsapp-float-btn svg { width: 28px; height: 28px; }

@media (max-width: 640px) {
  .whatsapp-float-btn { bottom: 18px; right: 18px; width: 50px; height: 50px; }
  .whatsapp-float-btn svg { width: 24px; height: 24px; }
}

/* ============================================================
   Mobile profile banner (dashboard home view)
   ============================================================ */
.mobile-profile-banner { display: none; }

@media (max-width: 900px) {
  .mobile-profile-banner {
    display: block;
    background: linear-gradient(135deg, var(--brand-deep), var(--brand));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    margin-bottom: 24px;
  }
  .mobile-profile-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
  .mobile-profile-top .user-avatar-circle { background: rgba(255,255,255,0.2); color: #fff; width: 44px; height: 44px; font-size: 1.1rem; }
  .mobile-profile-name { font-weight: 700; font-size: 1.05rem; }
  .mobile-profile-sub { font-size: 0.78rem; opacity: 0.75; margin-top: 2px; }
  .mobile-profile-balance-label { font-size: 0.75rem; opacity: 0.8; margin-bottom: 4px; }
  .mobile-profile-balance { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; margin-bottom: 18px; }
  .mobile-profile-banner .btn-accent { background: #fff; color: var(--ink); }
}

/* ============================================================
   Global loading overlay (shown during any API request)
   ============================================================ */
.global-loader {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(245, 250, 247, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
}
.global-loader.active { display: flex; }
.global-loader .spinner {
  width: 46px;
  height: 46px;
  border: 4px solid var(--brand-tint);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: almubarak-spin 0.7s linear infinite;
}
@keyframes almubarak-spin {
  to { transform: rotate(360deg); }
}
