/* DosTime Home Hub — international premium home (RTL-first, theme-aware) */
.homehub { display: flex; flex-direction: column; gap: 14px; padding-bottom: 110px; animation: hhFade .45s ease-out; }
@keyframes hhFade { from { opacity: 0; transform: translateY(10px); } }

/* Hero */
.hh-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 20px 18px; border: 1px solid var(--border); background: var(--bg-card); box-shadow: 0 18px 50px rgba(2,6,23,.18); }
.hh-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 200px at 85% -10%, rgba(124,111,217,.35), transparent 60%),
    radial-gradient(360px 220px at 10% 110%, rgba(20,184,166,.28), transparent 60%),
    radial-gradient(260px 180px at 50% 50%, rgba(14,165,233,.12), transparent 65%); }
.hh-hero-top { position: relative; display: flex; gap: 12px; align-items: center; }
.hh-logo { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; flex: 0 0 auto;
  background: linear-gradient(135deg, #7c6fd9, #14b8a6); box-shadow: 0 10px 24px rgba(124,111,217,.4); }
.hh-logo img { width: 34px; height: 34px; border-radius: 10px; }
.hh-date { font-size: 11px; color: var(--text-tertiary); font-weight: 600; }
.hh-hero-top h2 { font-size: 20px; font-weight: 900; color: var(--text-primary); margin: 2px 0; }
.hh-sub { font-size: 12px; color: var(--text-secondary); }
.hh-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.hh-stat { border-radius: 16px; padding: 10px 6px; text-align: center; background: var(--bg-soft); border: 1px solid var(--border); }
.hh-stat b { display: block; font-size: 18px; font-weight: 900; color: var(--text-primary); }
.hh-stat small { font-size: 10.5px; color: var(--text-secondary); font-weight: 700; }
.hh-cta { position: relative; display: flex; gap: 8px; margin-top: 12px; }
.hh-cta-main { flex: 1; text-align: center; padding: 12px; border-radius: 16px; font-weight: 800; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, #7c6fd9, #14b8a6); box-shadow: 0 12px 26px rgba(124,111,217,.35); }
.hh-cta-ghost { flex: 1; text-align: center; padding: 12px; border-radius: 16px; font-weight: 800; font-size: 13px;
  color: var(--text-primary); border: 1px solid var(--border-strong); background: transparent; }

/* Grid */
.hh-sec-head { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.hh-count { font-size: 11px; font-weight: 800; color: var(--text-tertiary); background: var(--bg-soft);
  border: 1px solid var(--border); padding: 4px 12px; border-radius: 999px; }
.hh-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .hh-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .hh-grid { grid-template-columns: repeat(4, 1fr); } }
.hh-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 14px; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border); text-decoration: none;
  box-shadow: 0 8px 24px rgba(2,6,23,.10); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  animation: hhUp .5s cubic-bezier(.22,.9,.3,1.05) backwards; }
.hh-grid .hh-card:nth-child(1) { animation-delay: .02s; } .hh-grid .hh-card:nth-child(2) { animation-delay: .06s; }
.hh-grid .hh-card:nth-child(3) { animation-delay: .10s; } .hh-grid .hh-card:nth-child(4) { animation-delay: .14s; }
.hh-grid .hh-card:nth-child(5) { animation-delay: .18s; } .hh-grid .hh-card:nth-child(6) { animation-delay: .22s; }
.hh-grid .hh-card:nth-child(7) { animation-delay: .26s; } .hh-grid .hh-card:nth-child(8) { animation-delay: .30s; }
.hh-grid .hh-card:nth-child(9) { animation-delay: .34s; } .hh-grid .hh-card:nth-child(10) { animation-delay: .38s; }
.hh-grid .hh-card:nth-child(11) { animation-delay: .42s; }
@keyframes hhUp { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.hh-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(2,6,23,.20); border-color: var(--border-strong); }
.hh-card:active { transform: scale(.97); }
.hh-featured { grid-column: span 2; flex-direction: row; align-items: center; }
@media (min-width: 720px) { .hh-featured { grid-column: span 2; } }
.hh-ic { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; color: #fff; flex: 0 0 auto;
  box-shadow: 0 10px 22px rgba(2,6,23,.25); }
.hh-featured .hh-ic { width: 60px; height: 60px; }
.hh-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hh-txt b { font-size: 13.5px; font-weight: 900; color: var(--text-primary); line-height: 1.5; }
.hh-txt i { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .4px; color: var(--text-tertiary); text-transform: uppercase; }
.hh-txt small { font-size: 11px; color: var(--text-secondary); line-height: 1.8; }
.hh-badge { position: absolute; top: 10px; left: 10px; font-size: 9.5px; font-weight: 800; color: #fff; padding: 3px 10px;
  border-radius: 999px; background: linear-gradient(135deg, #f59e0b, #ef4444); box-shadow: 0 6px 14px rgba(239,68,68,.35); }
.hh-go { position: absolute; bottom: 12px; left: 12px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text-tertiary); background: var(--bg-soft); border: 1px solid var(--border); }
.hh-featured .hh-go { bottom: auto; top: 50%; transform: translateY(-50%); }

/* Guest banner + foot */
.hh-guest { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 12px 14px;
  background: linear-gradient(135deg, rgba(124,111,217,.14), rgba(20,184,166,.14));
  border: 1px dashed var(--border-strong); font-size: 12px; color: var(--text-secondary); }
.hh-guest a { font-weight: 800; color: var(--primary); white-space: nowrap; }
.hh-foot { text-align: center; font-size: 11px; color: var(--text-tertiary); padding: 6px 0 2px; }
.hh-foot a { color: var(--primary); font-weight: 800; }

/* LTR (English) adjustments */
html[dir="ltr"] .hh-badge { left: auto; right: 10px; }
html[dir="ltr"] .hh-go { left: auto; right: 12px; }
html[dir="ltr"] .hh-txt i { letter-spacing: .6px; }

/* ===== Global LTR (English) mirrors ===== */
html[dir="ltr"] body { text-align: left; }
html[dir="ltr"] .maintx-promo, html[dir="ltr"] .maintx-update, html[dir="ltr"] .maintx-cards figcaption, html[dir="ltr"] .maintx-track figcaption { text-align: left; }
html[dir="ltr"] .drug-card.taken { border-right: none; border-left: 4px solid var(--success); }
html[dir="ltr"] .drug-card.missed { border-right: none; border-left: 4px solid var(--danger); }
html[dir="ltr"] .drug-card.pending { border-right: none; border-left: 4px solid var(--accent); }
html[dir="ltr"] table th, html[dir="ltr"] table td { text-align: left; }
html[dir="ltr"] .page-back-btn svg { transform: scaleX(1); }
