/* ==========================================================================
   Go Management Software — UI রিফ্রেশ (go-ui.css)
   আগের রং (মেরুন --brand, থিম ভ্যারিয়েবল) অপরিবর্তিত রেখে নতুন টপবার, হিরো,
   পরিসংখ্যান টাইল, ফান্ড কার্ড, সাইডবার ছোট/বড়, ফ্লোটিং মেনু ও লগইন পাতা।
   সব রং var(--brand) থেকে নেওয়া — তাই সবুজ/নীল/ডার্ক থিমেও ঠিকঠাক দেখাবে।
   ========================================================================== */
:root {
  --gold: #c9a24b;
  --gold-light: #e9cf8c;
  --gold-soft: #fbf4e3;
  --go-radius: 18px;
  --go-shadow: 0 10px 30px rgba(38, 18, 28, .07);
  --go-shadow-hover: 0 18px 40px rgba(38, 18, 28, .13);
  --go-pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23870038' stroke-opacity='.055' stroke-width='1'%3E%3Cpath d='M28 6l6.2 15.8L50 28l-15.8 6.2L28 50l-6.2-15.8L6 28l15.8-6.2z'/%3E%3Crect x='14' y='14' width='28' height='28'/%3E%3Crect x='14' y='14' width='28' height='28' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E");
  --go-pattern-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.075' stroke-width='1'%3E%3Cpath d='M28 6l6.2 15.8L50 28l-15.8 6.2L28 50l-6.2-15.8L6 28l15.8-6.2z'/%3E%3Crect x='14' y='14' width='28' height='28'/%3E%3Crect x='14' y='14' width='28' height='28' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E");
}
body.app-authenticated { background: #f5f3f1 var(--go-pattern-light) fixed; }

/* ---------------- টপবার (সব পাতায়) ---------------- */
.go-topbar {
  position: sticky; top: 10px; z-index: 25;
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; margin: -12px 0 20px; padding: 10px 14px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(225, 215, 220, .8);
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(40, 18, 28, .07);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
}
.go-topbar-menu { display: none; width: 40px; height: 40px; padding: 0; border-radius: 12px; background: var(--brand-soft); color: var(--brand); flex: 0 0 auto; }
.go-topbar-menu:hover { background: var(--brand); color: #fff; transform: none; }
.go-topbar-title { display: flex; align-items: center; gap: 10px; min-width: 0; color: #232833; text-decoration: none; }
.go-topbar-title:hover { color: var(--brand-dark); }
.go-topbar-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; overflow: hidden; border-radius: 13px; background: #fff; border: 1px solid #efe6ea; box-shadow: 0 3px 10px rgba(40,18,28,.08); }
.go-topbar-mark img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.go-topbar-name { display: grid; min-width: 0; line-height: 1.25; }
.go-topbar-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; letter-spacing: .01em; }
.go-topbar-name small { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .03em; }
.go-topbar-search { position: relative; display: flex; align-items: center; gap: 8px; flex: 1 1 260px; max-width: 420px; height: 42px; margin: 0 auto 0 14px; padding: 0 10px 0 14px; border-radius: 13px; background: #f3f1f2; border: 1px solid transparent; color: #7a8390; transition: border-color .15s, background .15s, box-shadow .15s; }
.go-topbar-search:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.go-topbar-search input { flex: 1; min-width: 0; min-height: 0; padding: 6px 0; border: 0; background: transparent; box-shadow: none !important; font-size: 13px; }
.go-topbar-search kbd { padding: 2px 7px; border-radius: 6px; background: #fff; border: 1px solid #e3dde0; color: #8b939e; font: 600 11px/1.4 system-ui, sans-serif; }
.go-topbar .topbar-actions { margin-left: auto; }
.go-topbar .topbar-icon-btn, .go-topbar .topbar-role-badge { background: #f4f1f2; transition: background .15s, color .15s, transform .15s; }
.go-topbar .topbar-icon-btn:hover { transform: translateY(-1px); }

/* Go AI বাটন */
.topbar-ai { position: relative; gap: 8px; padding: 0 14px 0 5px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--gold))); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 32%, transparent); border: 0; overflow: hidden; }
.topbar-ai::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); animation: go-shine 4.5s ease-in-out infinite; pointer-events: none; }
.topbar-ai:hover { transform: translateY(-1px); filter: brightness(1.06); }
.topbar-ai-logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--brand); font: 800 12px/1 system-ui, sans-serif; letter-spacing: -.02em; }
.topbar-ai-label { font-weight: 800; letter-spacing: .02em; }
.topbar-ai-spark { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 3px rgba(255,255,255,.25); animation: go-pulse 2s ease-in-out infinite; }
@keyframes go-shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes go-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------------- সাইডবার ---------------- */
.sidebar { background-image: var(--go-pattern-dark), linear-gradient(180deg, var(--brand), var(--brand-dark)) !important; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; transition: width .22s ease, padding .22s ease; }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 6px; }
.sidebar::before { content: ""; position: sticky; top: -18px; display: block; height: 3px; margin: -18px -12px 15px; background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold)); flex: 0 0 auto; }
[data-theme="dark"] .sidebar { background-image: var(--go-pattern-dark), linear-gradient(180deg, #1b1f27, #12151b) !important; }
.sidebar-brand-logo, .brand-mark { box-shadow: 0 0 0 2px rgba(233, 207, 140, .55); }
.side-links a.active, .side-sub a.active { position: relative; box-shadow: inset 3px 0 0 var(--gold); }
.side-links > a:hover, .side-group > summary:hover { transform: translateX(2px); }
.side-links > a, .side-group > summary { transition: background .15s, color .15s, transform .15s; }
.sidebar-collapse-btn { position: absolute; top: 18px; right: 12px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; transition: transform .22s, background .15s; }
.sidebar-collapse-btn:hover { background: rgba(255,255,255,.28); transform: none; }

/* সাইডবার ছোট করা অবস্থা (শুধু বড় স্ক্রিনে) — হোভার করলে পুরোটা খুলে যায় */
@media (min-width: 901px) {
  html.sb-collapsed .sidebar:not(:hover) { width: 78px; padding-left: 10px; padding-right: 10px; overflow-x: hidden; }
  html.sb-collapsed .sidebar:hover { width: 254px; box-shadow: 14px 0 40px rgba(30, 0, 14, .28); z-index: 35; }
  html.sb-collapsed body.app-authenticated .wrap { margin-left: 102px; }
  html.sb-collapsed .sidebar-collapse-btn { transform: rotate(180deg); }
  html.sb-collapsed .sidebar:not(:hover) .sidebar-collapse-btn { position: static; margin: 0 auto 10px; }
  html.sb-collapsed .sidebar:not(:hover) .sidebar-back-btn { display: none; }
  html.sb-collapsed .sidebar:not(:hover) .sidebar-brand { justify-content: center; padding: 6px 0 16px; }
  html.sb-collapsed .sidebar:not(:hover) .sidebar-brand > span:last-child,
  html.sb-collapsed .sidebar:not(:hover) .side-group > summary a,
  html.sb-collapsed .sidebar:not(:hover) .grp-chevron,
  html.sb-collapsed .sidebar:not(:hover) .side-sub,
  html.sb-collapsed .sidebar:not(:hover) .user-info,
  html.sb-collapsed .sidebar:not(:hover) .sidebar-user form { display: none; }
  html.sb-collapsed .sidebar:not(:hover) .side-links > a { justify-content: center; gap: 0; font-size: 0; padding: 11px 0; }
  html.sb-collapsed .sidebar:not(:hover) .side-group > summary { justify-content: center; padding: 11px 0; }
  html.sb-collapsed .sidebar:not(:hover) .sidebar-user { justify-content: center; }
  html.sb-collapsed[dir="rtl"] body.app-authenticated .wrap { margin-left: 24px; margin-right: 102px; }
}
@media (max-width: 900px) { .sidebar-collapse-btn { display: none; } }
[dir="rtl"] .sidebar-collapse-btn { right: auto; left: 12px; transform: scaleX(-1); }

/* ---------------- হিরো ব্যানার ---------------- */
.go-hero {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 22px;
  min-height: 132px; margin: 0 0 16px; padding: 24px 26px; overflow: hidden;
  color: #fff; border: 0 !important; border-radius: 20px !important;
  background-color: var(--brand-dark);
  background-image: var(--go-pattern-dark), radial-gradient(ellipse at 88% -20%, rgba(233,207,140,.28), transparent 45%), linear-gradient(115deg, color-mix(in srgb, var(--brand-dark) 82%, #000) 0%, var(--brand) 58%, color-mix(in srgb, var(--brand-dark) 70%, #000) 100%);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--brand) 26%, transparent) !important;
}
.go-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold-light), var(--gold), var(--gold-light), transparent); }
.go-hero::after { content: ""; position: absolute; right: 0; bottom: 0; width: 46%; height: 100%; background: url('dashboard-mosque.svg') no-repeat right bottom / contain; opacity: .16; pointer-events: none; }
.go-hero .dashboard-cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; mix-blend-mode: luminosity; }
.go-hero-main { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; min-width: 0; }
.go-hero-moon { display: grid; place-items: center; width: 62px; height: 62px; flex: 0 0 62px; border-radius: 50%; color: var(--gold-light); background: rgba(255,255,255,.08); border: 2px solid rgba(233,207,140,.6); box-shadow: 0 0 0 6px rgba(255,255,255,.05), inset 0 0 18px rgba(233,207,140,.18); }
.go-hero small { color: rgba(255,255,255,.75); font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.go-hero h1 { margin: 4px 0 6px !important; color: #fff !important; font-size: clamp(1.25rem, 2.3vw, 1.85rem); letter-spacing: .01em; text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.go-hero-note { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0 0 0 0; color: rgba(255,255,255,.82); font-size: 12.5px; }
.go-hero-note::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--gold); }
.go-support-box { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; max-width: 560px; padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.go-support-phone { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; padding-right: 16px; border-right: 1px solid rgba(255,255,255,.2); }
.go-support-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--brand); box-shadow: 0 4px 12px rgba(0,0,0,.18); animation: go-ring 3.2s ease-in-out infinite; }
@keyframes go-ring { 0%, 86%, 100% { transform: rotate(0); } 88% { transform: rotate(-14deg); } 92% { transform: rotate(14deg); } 96% { transform: rotate(-8deg); } }
.go-support-phone small { display: block; color: rgba(255,255,255,.7); font-size: 11px; }
.go-support-phone a { color: #fff; text-decoration: none; }
.go-support-phone strong { display: block; font-size: 18px; letter-spacing: .02em; }
.go-support-copy strong { display: block; margin-bottom: 3px; color: var(--gold-light); font-size: 13px; }
.go-support-copy p { margin: 0 0 8px; color: rgba(255,255,255,.8); font-size: 11.5px; line-height: 1.6; }
.go-wa-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: #25d366; color: #fff !important; font-size: 11.5px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 12px rgba(37,211,102,.35); transition: transform .15s, filter .15s; }
.go-wa-chip:hover { transform: translateY(-1px); filter: brightness(1.05); color: #fff; }
.go-hero-compact { min-height: 110px; }

/* সময়কাল ফিল্টার + লাইসেন্স */
.go-period { border-radius: 16px !important; padding: 10px 14px !important; }
.go-period .period-filter-label { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-dark); }
.go-period .period-chip { background: #fff; border: 1px solid #ebe4e7; transition: all .15s; }
.go-period .period-chip.active { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); border-color: transparent; box-shadow: 0 6px 14px color-mix(in srgb, var(--brand) 28%, transparent); }
.go-period .license-badge { gap: 7px; padding: 8px 14px; background: linear-gradient(135deg, #edf8f1, #f6fbf8); border: 1px solid #cfead9; }
.go-period .license-badge b { font-size: 14px; }
.go-period .license-badge small { color: #4f7f63; font-weight: 600; }
.go-period .license-badge-warn { background: linear-gradient(135deg, #fff2e2, #fff8ef); border-color: #f4d7b2; }
.go-key { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.08); }

/* সেকশন শিরোনাম (সোনালি দাগ) */
.go-sec-title { display: flex; align-items: center; gap: 12px; margin: 22px 0 12px !important; font-size: 1.02rem !important; color: #2a2f38; }
.go-sec-title > span { position: relative; padding-left: 12px; white-space: nowrap; }
.go-sec-title > span::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 18px; transform: translateY(-50%); border-radius: 3px; background: linear-gradient(180deg, var(--brand), var(--gold)); }
.go-sec-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); opacity: .7; order: 1; }
.go-sec-title .go-sec-link { order: 2; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ---------------- পরিসংখ্যান টাইল ও ফান্ড কার্ড ---------------- */
.go-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 0 0 6px; }
.go-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  min-height: 150px; padding: 18px 12px 16px; overflow: hidden; text-align: center; text-decoration: none; color: #2a2f38;
  background: #fffdfb var(--go-pattern-light); border: 1px solid #efe6e2; border-radius: var(--go-radius);
  box-shadow: var(--go-shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.go-tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--gold), var(--brand)); }
.go-tile:hover { transform: translateY(-4px); box-shadow: var(--go-shadow-hover); border-color: color-mix(in srgb, var(--gold) 55%, #fff); color: #2a2f38; }
.go-tile-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; color: #fff; background: linear-gradient(140deg, var(--brand), var(--brand-dark)); box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 30%, transparent), inset 0 0 0 2px rgba(255,255,255,.12); transition: transform .2s; }
.go-tile:hover .go-tile-icon { transform: rotate(-6deg) scale(1.06); }
.go-tile-label { font-size: 12.5px; font-weight: 600; color: #5b6470; line-height: 1.35; }
.go-tile-value { position: relative; width: 100%; padding-top: 8px; white-space: nowrap; font-size: clamp(.95rem, 1.22vw, 1.35rem); font-weight: 800; color: #20242c; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.go-tile-value::before { content: ""; position: absolute; top: 0; left: 18%; right: 18%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light), transparent); }
.go-tile-sub { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.go-tile.is-neg .go-tile-value { color: #c0392b; }
.go-tile-2 .go-tile-icon { background: linear-gradient(140deg, #0d8a55, #076a40); box-shadow: 0 8px 18px rgba(13,138,85,.28); }
.go-tile-3 .go-tile-icon { background: linear-gradient(140deg, #c2410c, #9a3412); box-shadow: 0 8px 18px rgba(194,65,12,.26); }
.go-tile-4 .go-tile-icon { background: linear-gradient(140deg, #b8892b, #8c6516); box-shadow: 0 8px 18px rgba(184,137,43,.3); }
.go-tile-5 .go-tile-icon { background: linear-gradient(140deg, #1d4ed8, #1e3a8a); box-shadow: 0 8px 18px rgba(29,78,216,.25); }
.go-tile-6 .go-tile-icon { background: linear-gradient(140deg, #64748b, #475569); box-shadow: 0 8px 18px rgba(71,85,105,.25); }
.go-funds .go-tile { min-height: 158px; }
.go-fund-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--gold-soft); color: #8a6516; border: 1px solid #efdcae; font-size: 10.5px; font-weight: 700; }
.go-empty-funds { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.go-empty-funds > div { flex: 1; min-width: 200px; }
.go-empty-funds p { margin: 4px 0 0; font-size: 13px; }

/* পুরোনো অংশগুলোতে হালকা ঘষামাজা */
.go-dashboard .dashboard-quick, .go-dashboard .insight-card, .go-dashboard .dashboard-list { border-radius: var(--go-radius) !important; box-shadow: var(--go-shadow) !important; }
.go-dashboard .quick-action { border-radius: 14px; min-height: 86px; box-shadow: 0 8px 18px rgba(30,20,25,.12); }
.go-dashboard .quick-action:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(30,20,25,.18); }
.go-dashboard .quick-maroon { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #fff)); }

/* ---------------- ফ্লোটিং প্লাস মেনু (হোয়াটসঅ্যাপসহ) ---------------- */
.fab-toggle { background: linear-gradient(140deg, var(--brand), var(--brand-dark)); box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 40%, transparent), 0 0 0 4px rgba(255,255,255,.65); }
.fab-toggle svg { transition: transform .2s; }
.fab-toggle.open { transform: none; }
.fab-toggle.open svg { transform: rotate(45deg); }
.go-fab-stack .fab-item { position: relative; border: 2px solid #fff; }
.go-fab-stack .fab-item::after { content: attr(data-fab-label); position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(6px); padding: 6px 11px; border-radius: 9px; background: #1f2430; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.go-fab-stack.open .fab-item:hover::after, .go-fab-stack.open .fab-item:focus-visible::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.go-fab-stack .fab-item:hover { transform: scale(1.08); }
.fab-whatsapp { background: linear-gradient(135deg, #25d366, #128c4a); }
.fab-sms { background: linear-gradient(135deg, #0ea5a4, #0f766e); }
.go-fab-stack.open .fab-item:nth-child(5) { transition-delay: .11s; }
.go-fab-stack .fab-whatsapp { width: 52px; height: 52px; }
.go-fab-stack.open .fab-whatsapp { animation: go-wa-pop .5s ease .15s; }
@keyframes go-wa-pop { 50% { transform: scale(1.12); } }
[dir="rtl"] .go-fab-stack .fab-item::after { right: auto; left: calc(100% + 12px); }

/* ---------------- Go AI প্যানেল ---------------- */
.go-ai-orb { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 50%; color: #fff; font: 800 20px/1 system-ui, sans-serif; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--brand) 55%, #fff), var(--brand) 55%, var(--brand-dark)); box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 35%, transparent), 0 0 0 6px var(--brand-soft); }
.ai-chat-cta { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.ai-chat-panel { border-radius: 20px 0 0 20px; }
[dir="rtl"] .ai-chat-panel { border-radius: 0 20px 20px 0; }

/* ---------------- লগইন পাতা ---------------- */
body.go-login-page { min-height: 100vh; margin: 0; background: var(--brand-dark); }
body.go-login-page .print-control { display: none; }
.go-login { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 32px 16px; box-sizing: border-box; overflow: hidden; }
.go-login-bg { position: fixed; inset: 0; z-index: 0; background-color: var(--brand-dark); background-image: var(--go-pattern-dark), radial-gradient(ellipse at 50% 0%, rgba(233,207,140,.22), transparent 55%), radial-gradient(ellipse at 50% 120%, rgba(0,0,0,.45), transparent 60%), linear-gradient(160deg, color-mix(in srgb, var(--brand) 85%, #000), var(--brand-dark) 60%, color-mix(in srgb, var(--brand-dark) 60%, #000)); }
.go-login-bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46vh; background: url('dashboard-mosque.svg') no-repeat center bottom / auto 100%; opacity: .18; }
.go-login-card { position: relative; z-index: 1; width: min(420px, 100%); padding: 30px 30px 24px; box-sizing: border-box; text-align: center; background: rgba(255, 255, 255, .96); border-radius: 26px; box-shadow: 0 30px 70px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.4); animation: go-rise .5s ease both; }
.go-login-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 26px 26px 0 0; background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold)); }
@keyframes go-rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.go-login-logo { display: grid; place-items: center; width: 86px; height: 86px; margin: 4px auto 10px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); box-shadow: 0 0 0 6px var(--gold-soft), 0 10px 24px rgba(0,0,0,.12); overflow: hidden; }
.go-login-logo img { width: 78%; height: 78%; object-fit: contain; }
.go-bismillah { margin: 0 0 4px; color: var(--brand-dark); font-family: 'Amiri', 'Scheherazade New', 'Traditional Arabic', 'Noto Naskh Arabic', serif; font-size: 25px; line-height: 1.7; }
.go-login-name { margin: 0 !important; color: #1f242c !important; font-size: 1.22rem !important; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.go-login-tag { margin: 3px 0 14px; color: var(--muted); font-size: 12.5px; }
.go-login-license { margin: 0 0 16px; }
.go-login-license p { margin: 0 0 8px; color: #5b6470; font-size: 12.5px; line-height: 1.7; }
.go-login-license b { color: #1f242c; }
.go-login-license .go-days { color: #0d8a55; font-size: 14px; }
.go-license-bar { height: 7px; border-radius: 7px; background: #efeae6; overflow: hidden; }
.go-license-bar i { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.go-login-license.is-warn .go-days { color: #c2410c; }
.go-login-license.is-warn .go-license-bar i { background: linear-gradient(90deg, #ea580c, #fb923c); }
.go-login-form { display: grid; gap: 11px; text-align: left; }
.go-field { position: relative; display: block; margin: 0; }
.go-field-ico { position: absolute; left: 14px; top: 50%; z-index: 1; display: grid; transform: translateY(-50%); color: var(--brand); pointer-events: none; }
.go-field input { width: 100%; height: 48px; min-height: 0; padding: 0 44px 0 42px; box-sizing: border-box; border: 1px solid #e4dfe1; border-radius: 13px; background: #f8f7f6; font-size: 14px; transition: border-color .15s, background .15s, box-shadow .15s; }
.go-field input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.go-field .password-wrap { display: block; }
/* দেশ বাছাই (নতুন প্রতিষ্ঠান খোলা) — ইনপুটের মতো একই চেহারা */
.go-field select { width: 100%; height: 48px; min-height: 0; padding: 0 14px 0 42px; box-sizing: border-box; border: 1px solid #e4dfe1; border-radius: 13px; background-color: #f8f7f6; font-size: 14px; color: inherit; }
.go-field select:focus { background-color: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); outline: none; }
.go-login-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; }
.go-login-row a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.go-login-submit { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 50px; margin-top: 4px; border-radius: 14px; font-size: 15px; font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); box-shadow: 0 12px 24px color-mix(in srgb, var(--brand) 35%, transparent); }
.go-login-submit:hover { filter: brightness(1.07); }
.go-login-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--muted); font-size: 12px; }
.go-login-or::before, .go-login-or::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #ddd5d8); }
.go-login-or::after { background: linear-gradient(90deg, #ddd5d8, transparent); }
.go-login-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.go-login-alt > * { display: flex; align-items: center; justify-content: center; gap: 7px; height: 44px; border-radius: 13px; font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.go-login-alt > *:hover { transform: translateY(-2px); }
.go-alt-app { background: #eef9f2; color: #0d7a4a; border: 1px solid #bfe5cf; }
.go-alt-app:hover { background: #e2f5ea; color: #0d7a4a; box-shadow: 0 8px 18px rgba(13,138,85,.15); }
.go-alt-guardian { background: var(--gold-soft); color: #8a6516; border: 1px solid #ecd59c; }
.go-alt-guardian:hover { color: #7a5810; box-shadow: 0 8px 18px rgba(184,137,43,.18); }
.go-install-hint { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: #f4f6f8; color: #5b6470; font-size: 11.5px; }
.go-login-support { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px dashed #e6e0e2; color: #5b6470; font-size: 12px; }
.go-login-foot { position: relative; z-index: 1; margin: 16px 0 0; color: rgba(255,255,255,.6); font-size: 11.5px; letter-spacing: .03em; }
.go-login .notice, .go-login .good { margin: 0 0 12px; font-size: 12.5px; text-align: left; }

/* ---------------- থিম ---------------- */
[data-theme="dark"] body.app-authenticated { background: #0f1115 none; }
[data-theme="dark"] .go-topbar { background: rgba(23,26,33,.9); border-color: #2b2f38; }
[data-theme="dark"] .go-topbar-title, [data-theme="dark"] .go-sec-title { color: #eef0f3; }
[data-theme="dark"] .go-topbar-search { background: #12141a; }
[data-theme="dark"] .go-topbar-search kbd, [data-theme="dark"] .go-topbar-mark { background: #1d212a; border-color: #2b2f38; }
[data-theme="dark"] .go-topbar .topbar-icon-btn, [data-theme="dark"] .go-topbar .topbar-role-badge { background: #22262f; color: #e4e6ea; }
[data-theme="dark"] .go-tile { background: #171a21 none; border-color: #2b2f38; color: #e4e6ea; }
[data-theme="dark"] .go-tile-value { color: #f3f4f6; }
[data-theme="dark"] .go-tile-label { color: #aab1bc; }
[data-theme="dark"] .go-period .period-chip { background: #22262f; border-color: #2b2f38; color: #e4e6ea; }
[data-theme="dark"] .go-period .period-chip.active { color: #fff; }
[data-theme="dark"] .go-fund-tag { background: #2a2416; color: #e9cf8c; border-color: #4a3d1e; }

/* ---------------- রেসপন্সিভ ---------------- */
@media (max-width: 1280px) { .go-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .go-support-box { max-width: 420px; } .go-topbar-search { display: none; } .go-topbar .topbar-actions { margin-left: auto; } }
@media (max-width: 980px) { .go-hero { flex-direction: column; align-items: stretch; } .go-support-box { max-width: none; } }
@media (max-width: 700px) {
  .go-topbar { top: 0; margin: -12px -10px 14px; padding: 8px 10px; border-radius: 0 0 16px 16px; gap: 8px; }
  .go-topbar-menu { display: grid; place-items: center; }
  .go-topbar-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; }
  .go-topbar-name small { display: none; }
  .go-topbar-name strong { font-size: 13px; max-width: 34vw; }
  .topbar-ai .topbar-ai-label, .topbar-ai .topbar-ai-spark { display: none; }
  .topbar-ai { width: 40px; padding: 0; justify-content: center; }
  .topbar-ai .topbar-ai-logo { display: grid !important; }
  .go-hero { padding: 18px 16px; border-radius: 16px !important; }
  .go-hero-moon { width: 48px; height: 48px; flex-basis: 48px; }
  .go-support-box { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 14px; }
  .go-support-phone { border-right: 0; padding-right: 0; }
  .go-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .go-tile { min-height: 128px; padding: 14px 8px; border-radius: 15px; }
  .go-tile-icon { width: 42px; height: 42px; border-radius: 13px; }
  .go-login-card { padding: 26px 20px 20px; border-radius: 22px; }
  .go-bismillah { font-size: 22px; }
}
@media (max-width: 900px) { .topbar-ai .topbar-ai-logo { display: grid !important; } }
@media (max-width: 420px) { .go-topbar .topbar-role-badge { display: none; } }
@media print { .go-topbar, .sidebar-collapse-btn, .fab-stack, .fab-toggle { display: none !important; } body.app-authenticated { background: #fff; } }
@media (prefers-reduced-motion: reduce) { .topbar-ai::after, .topbar-ai-spark, .go-support-ico, .go-login-card { animation: none !important; } }

/* লগআউট বাটন ও প্রিন্ট বাটন */
.go-topbar .topbar-logout-btn:hover { background: #fdecec; color: #c0392b; }
.topbar-svg { flex: none; }
.go-dashboard ~ .print-control, body.app-authenticated .print-control { border-radius: 999px; }

/* ==========================================================================
   বাংলা ফন্ট: সুলাইমান লিপি (SolaimanLipi) — সব বাংলা লেখায় ডিফল্ট
   ফাইল: public/assets/fonts/SolaimanLipi-Thin.ttf / -Normal.ttf / -Bold.ttf
   unicode-range শুধু বাংলা অক্ষর — তাই ইংরেজি/সংখ্যা/আরবি আগের ফন্টেই থাকবে।
   ========================================================================== */
@font-face { font-family: 'GoSolaimanLipi'; src: url('fonts/SolaimanLipi-Thin.ttf') format('truetype'); font-weight: 100 300; font-style: normal; font-display: swap; unicode-range: U+0964-0965, U+0980-09FF, U+200C-200D, U+25CC; }
@font-face { font-family: 'GoSolaimanLipi'; src: url('fonts/SolaimanLipi-Normal.ttf') format('truetype'); font-weight: 400 500; font-style: normal; font-display: swap; unicode-range: U+0964-0965, U+0980-09FF, U+200C-200D, U+25CC; }
@font-face { font-family: 'GoSolaimanLipi'; src: url('fonts/SolaimanLipi-Bold.ttf') format('truetype'); font-weight: 600 900; font-style: normal; font-display: swap; unicode-range: U+0964-0965, U+0980-09FF, U+200C-200D, U+25CC; }
:root { --go-font: 'GoSolaimanLipi', 'Noto Sans Bengali', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif; }
body, input, select, textarea, button, .button, table, th, td,
[data-bn-font="sulaimanlipi"] body, [data-bn-font="sulaimanlipi"] input, [data-bn-font="sulaimanlipi"] textarea, [data-bn-font="sulaimanlipi"] select, [data-bn-font="sulaimanlipi"] button { font-family: var(--go-font); }
/* কালপুরুষ বেছে নিলে সেটিই চলবে */
[data-bn-font="kalpurush"] body, [data-bn-font="kalpurush"] input, [data-bn-font="kalpurush"] textarea, [data-bn-font="kalpurush"] select, [data-bn-font="kalpurush"] button { font-family: 'Kalpurush', var(--go-font); }
/* সুলাইমান লিপি একটু ছোট দেখায় — সামান্য বড় ও পরিষ্কার করা */
body { font-size-adjust: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media print { body, table, th, td { font-family: var(--go-font) !important; } }

/* সাইডবার: মাউস রাখলে (hover) লেখা যেন পড়া যায় — হালকা স্বচ্ছ রঙ, লেখা সাদা; আগে গ্রুপের নাম সাদা ঘরে সাদা লেখা হয়ে হারিয়ে যেত */
.sidebar .side-group > summary:hover,
.sidebar .side-group > summary:focus-within { background: rgba(255,255,255,.22) !important; color: #fff !important; }
.sidebar .side-group > summary a,
.sidebar .side-group > summary a:hover,
.sidebar .side-group > summary a:focus-visible { background: transparent !important; color: #fff !important; }
.sidebar .side-group > summary:hover .grp-icon,
.sidebar .side-group > summary:hover .grp-chevron { color: #fff !important; }
.sidebar .side-links > a:hover,
.sidebar .side-links > a:focus-visible,
.sidebar .side-sub a:hover { background: rgba(255,255,255,.92) !important; color: #6b002b !important; }
.sidebar .side-links > a:hover span,
.sidebar .side-links > a:hover .ui-ico { color: var(--brand, #85003b) !important; }

/* ভাষা অনুযায়ী ফন্ট: হিন্দী (দেবনাগরী), উর্দূ (নাস্তালীক), আরবী (নাসখ) — বাংলা অংশ আগের মতো সুলাইমান লিপিতেই থাকবে */
html[lang="hi"] { --go-font: 'GoSolaimanLipi', 'Nirmala UI', 'Mangal', 'Noto Sans Devanagari', 'Kokila', 'FreeSans', system-ui, 'Segoe UI', sans-serif; }
html[lang="ur"] { --go-font: 'GoSolaimanLipi', 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Urdu Typesetting', 'Noto Naskh Arabic', 'Segoe UI', Tahoma, 'FreeSerif', sans-serif; }
html[lang="ar"] { --go-font: 'GoSolaimanLipi', 'Noto Naskh Arabic', 'Traditional Arabic', 'Segoe UI', Tahoma, 'FreeSerif', sans-serif; }
html[lang="ur"] body { line-height: 1.75; }
html[lang="ur"] .side-link, html[lang="ur"] .side-group > summary { line-height: 1.9; }
/* লগইন পাতায় ভাষা বাছাই (ছোট, মাঝখানে) */
.go-login-lang { position: relative; z-index: 2; display: flex; justify-content: center; margin: 14px 0 0; }
.go-login-lang label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.85); }
.go-login-lang select { width: auto; min-width: 120px; height: auto; padding: 5px 12px; border-radius: 18px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; font-size: 13px; }
.go-login-lang select option { color: #222; background: #fff; }
/* পাতার ভেতরে আলাদা ভাষার কাগজ (রিপোর্ট/হাজিরা খাতা) — সেই ভাষার ফন্ট */
[data-doc-lang="hi"] { font-family: 'GoSolaimanLipi', 'Nirmala UI', 'Mangal', 'Noto Sans Devanagari', 'Kokila', 'FreeSans', system-ui, 'Segoe UI', sans-serif; }
[data-doc-lang="ur"] { font-family: 'GoSolaimanLipi', 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Urdu Typesetting', 'Noto Naskh Arabic', 'Segoe UI', Tahoma, 'FreeSerif', sans-serif; }
[data-doc-lang="ar"] { font-family: 'GoSolaimanLipi', 'Noto Naskh Arabic', 'Traditional Arabic', 'Segoe UI', Tahoma, 'FreeSerif', sans-serif; }
[data-doc-lang] table, [data-doc-lang] th, [data-doc-lang] td { font-family: inherit; }

/* ===== থিম: সবুজ/নীল/ডার্ক বাছাই করলে ভেতরের সব পাতাও সেই রঙে (ইসলামিক/মেরুন ডিফল্ট অপরিবর্তিত) ===== */
html[data-theme="green"] { --go-pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23176b58' stroke-opacity='.055' stroke-width='1'%3E%3Cpath d='M28 6l6.2 15.8L50 28l-15.8 6.2L28 50l-6.2-15.8L6 28l15.8-6.2z'/%3E%3Crect x='14' y='14' width='28' height='28'/%3E%3Crect x='14' y='14' width='28' height='28' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E"); }
html[data-theme="blue"] { --go-pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%231672d5' stroke-opacity='.055' stroke-width='1'%3E%3Cpath d='M28 6l6.2 15.8L50 28l-15.8 6.2L28 50l-6.2-15.8L6 28l15.8-6.2z'/%3E%3Crect x='14' y='14' width='28' height='28'/%3E%3Crect x='14' y='14' width='28' height='28' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E"); }
html[data-theme] .section-banner { background: linear-gradient(105deg, color-mix(in srgb, var(--brand-dark) 88%, #000) 0%, var(--brand) 55%, color-mix(in srgb, var(--brand-dark) 70%, #000) 100%); }
html[data-theme] .win-titlebar { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand-dark) 80%, #000)); }
html[data-theme] .print-control { background: var(--brand); }
html[data-theme] .sidebar .side-sub a:hover { color: var(--brand-dark) !important; }
html[data-theme] .stat-icon { background: var(--brand-soft); color: var(--brand); }
html[data-theme] .class-bar-row i { background: linear-gradient(90deg, var(--brand), var(--accent)); }
html[data-theme] .student-photo-preview, html[data-theme] .student-photo-placeholder { background: var(--brand-soft); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 25%, #fff); }
html[data-theme="green"] .topbar-icon-btn, html[data-theme="green"] .topbar-role-badge, html[data-theme="green"] .dashboard-topbar .sidebar-toggle:hover,
html[data-theme="blue"] .topbar-icon-btn, html[data-theme="blue"] .topbar-role-badge, html[data-theme="blue"] .dashboard-topbar .sidebar-toggle:hover { background: var(--brand-soft); }

/* ===== মোবাইল (৫৬০px পর্যন্ত): টপবার দুই সারিতে — উপরে লোগো ও নাম, নিচে সব বাটন (ভাষা, থিম, ফন্ট, অ্যাপ সহ) ===== */
@media (max-width: 560px) {
  .go-topbar { flex-wrap: wrap; row-gap: 8px; }
  .go-topbar .topbar-actions { order: 5; flex: 1 1 100%; width: 100%; margin: 0 !important; justify-content: space-between; gap: 4px; }
  .go-topbar-name strong { max-width: 62vw; }
  .go-topbar .topbar-icon-btn, .go-topbar .topbar-ai { width: 38px; height: 38px; flex: 0 0 38px; }
  .go-topbar .topbar-lang { display: inline-flex !important; width: 38px; padding: 0; justify-content: center; }
  .go-topbar .topbar-lang span:not([aria-hidden]), .go-topbar .topbar-lang .topbar-svg + span, .go-topbar .topbar-lang svg:last-child { display: none; }
  .go-topbar .topbar-lang svg:first-child { display: block; }
  .go-topbar .topbar-logout-form .topbar-icon-btn { width: 38px; }
  .go-topbar .topbar-dropdown { position: fixed; left: 10px; right: 10px; width: auto !important; top: 112px; max-height: calc(100vh - 124px); overflow: auto; }
}
/* মোবাইলে পাতা পাশে সরে যাওয়া/ছোট হয়ে যাওয়া বন্ধ (বিশেষত আরবি/উর্দুতে লুকানো সাইডবারের কারণে) */
@media (max-width: 700px) {
  html, body.app-authenticated { overflow-x: clip; }
  .dashboard-lower { min-width: 0; }
  .dashboard-lower > .card, .dashboard-list { min-width: 0; max-width: 100%; overflow-x: auto; }
}
/* আরবি/উর্দু (ডান থেকে বাম): ছোট পর্দায় পাতার পাশের ফাঁকা জায়গা ঠিক করা — আগে মোবাইলে পাতা সংকুচিত হয়ে যেত */
@media (max-width: 900px) { [dir="rtl"] body.app-authenticated .wrap { margin-left: 12px; margin-right: 238px; } }
@media (max-width: 650px) { [dir="rtl"] body.app-authenticated .wrap { margin: 0; } }
