/* ==========================================================================
   Expatriate Profile & Document Management Portal — shared stylesheet
   (Blade + traditional Laravel MVC; no build step, no scoped CSS —
   all styles are namespaced by page-level classes instead.)
   ========================================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #0f172a;
    background: #f8fafc;
    line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; }

/* ---------- Buttons ---------- */
.btn-solid-lg, .btn-outline-lg, .btn-primary, .btn-secondary, .btn-danger {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-weight: 700; font-size: 0.95rem; text-decoration: none;
    border-radius: 0.6rem; cursor: pointer; border: none;
    font-family: inherit;
}
.btn-solid-lg { background: #2563eb; color: #fff; padding: 0.85rem 1.5rem; }
.btn-solid-lg:hover { background: #1d4ed8; }
.btn-outline-lg { background: transparent; color: #fff; padding: 0.85rem 1.5rem; border: 1.5px solid rgba(255,255,255,0.35); }
.btn-outline-lg:hover { background: rgba(255,255,255,0.08); }
.btn-primary {
    background: #2563eb; color: #fff; border-radius: 0.5rem; padding: 0.7rem 1.4rem;
    font-size: 0.95rem; justify-content: center;
}
.btn-primary:hover:not(:disabled) { background: #1d4ed8; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary { background: #f1f5f9; color: #334155; border-radius: 0.5rem; padding: 0.55rem 1.25rem; }
.btn-secondary:hover { background: #e2e8f0; }
.btn-danger { background: #dc2626; color: #fff; border-radius: 0.5rem; padding: 0.55rem 1.25rem; }
.btn-danger:hover { background: #b91c1c; }
.btn-danger:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Public Layout: Header ---------- */
.site-header { background: #0f172a; color: #fff; position: sticky; top: 0; z-index: 40; }
.site-header-inner { max-width: 1180px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.site-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: #fff; font-weight: 800; font-size: 1.05rem; }
.site-brand i { color: #60a5fa; font-size: 1.3rem; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a { text-decoration: none; color: #cbd5e1; font-size: 0.92rem; font-weight: 600; }
.site-nav a:hover, .site-nav a.active { color: #fff; }
.site-nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.site-nav-cta a { text-decoration: none; }
.link-login { color: #cbd5e1; font-weight: 600; font-size: 0.92rem; padding: 0.5rem 0.9rem; }
.link-login:hover { color: #fff; }
.btn-register {
    background: #2563eb; color: #fff; padding: 0.55rem 1.15rem; border-radius: 0.5rem;
    font-weight: 700; font-size: 0.9rem;
}
.btn-register:hover { background: #1d4ed8; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; }
@media (max-width: 900px) {
    .site-nav { display: none; }
    .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #0f172a; padding: 1rem 1.5rem 1.5rem; gap: 1rem; }
    .menu-toggle { display: block; }
}

/* ---------- Public Layout: Footer ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 3rem 1.5rem 1.5rem; margin-top: auto; }
.site-footer-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; color: #fff; font-weight: 800; margin-bottom: 0.75rem; }
.footer-brand i { color: #60a5fa; }
.footer-desc { font-size: 0.85rem; color: #94a3b8; line-height: 1.65; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { text-decoration: none; color: #94a3b8; font-size: 0.88rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1180px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; font-size: 0.8rem; color: #64748b; }
@media (max-width: 860px) { .site-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer-inner { grid-template-columns: 1fr; } }

/* ---------- Hero / page-hero ---------- */
.hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0f172a 100%); color: #fff; }
.hero-inner { max-width: 1180px; margin: 0 auto; padding: 4.5rem 1.5rem 5rem; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #93c5fd; margin-bottom: 1rem; }
.hero-copy h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.1rem; }
.hero-copy p { font-size: 1.02rem; color: #cbd5e1; line-height: 1.7; margin-bottom: 1.75rem; max-width: 560px; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.hero-trust { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.85rem; color: #93c5fd; }
.hero-trust i { margin-right: 0.4rem; }
.hero-art { display: flex; flex-direction: column; gap: 1rem; }
.art-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 0.9rem; padding: 1.5rem; display: flex; align-items: center; gap: 1rem; }
.art-card i { font-size: 1.6rem; color: #60a5fa; }
.art-card p { font-weight: 700; font-size: 0.95rem; margin: 0; }
.art-card-alt { margin-left: 2rem; }

.page-hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0f172a 100%); color: #fff; padding: 3.5rem 1.5rem; }
.page-hero-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.page-hero h1 { font-size: 2rem; font-weight: 800; line-height: 1.3; margin-bottom: 0.75rem; }
.page-hero p { color: #cbd5e1; font-size: 1rem; }

/* ---------- Sections ---------- */
.section { padding: 4rem 1.5rem; }
.section-alt { background: #f8fafc; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.section-inner.narrow { max-width: 860px; }
.section-title { font-size: 1.75rem; font-weight: 800; color: #0f172a; text-align: center; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: #64748b; margin-bottom: 2.5rem; }
.section-cta { text-align: center; margin-top: 2.5rem; }
.section-cta .btn-outline-lg { color: #1d4ed8; border-color: #bfdbfe; }
.section-cta .btn-outline-lg:hover { background: #eff6ff; }

.steps-grid, .feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step-card, .feature-card { background: #fff; border-radius: 0.9rem; padding: 1.75rem 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.step-num { width: 38px; height: 38px; border-radius: 999px; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 1rem; }
.step-card h3, .feature-card h3 { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: 0.5rem; }
.step-card p, .feature-card p { font-size: 0.88rem; color: #64748b; line-height: 1.6; }
.feature-icon { width: 48px; height: 48px; border-radius: 0.7rem; background: #eff6ff; color: #2563eb; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem; }

.cta-banner { background: #2563eb; color: #fff; text-align: center; padding: 3.5rem 1.5rem; }
.cta-banner-inner { max-width: 640px; margin: 0 auto; }
.cta-banner h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.6rem; }
.cta-banner p { color: #dbeafe; margin-bottom: 1.75rem; }
.cta-banner .btn-solid-lg { background: #fff; color: #1d4ed8; }
.cta-banner .btn-solid-lg:hover { background: #f1f5f9; }
.cta-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.content-block { margin-bottom: 2.5rem; }
.content-block h2 { font-size: 1.4rem; font-weight: 800; color: #0f172a; margin-bottom: 0.85rem; }
.content-block p { color: #475569; line-height: 1.75; margin-bottom: 0.9rem; font-size: 0.98rem; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2rem; }
.value-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 0.9rem; padding: 1.5rem 1.25rem; }
.value-icon { width: 44px; height: 44px; border-radius: 0.65rem; background: #eff6ff; color: #2563eb; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; margin-bottom: 0.9rem; }
.value-card h3 { font-size: 0.98rem; font-weight: 700; color: #0f172a; margin-bottom: 0.4rem; }
.value-card p { font-size: 0.85rem; color: #64748b; line-height: 1.55; }

.service-list { display: flex; flex-direction: column; gap: 1.25rem; }
.service-row { display: flex; gap: 1.25rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 0.9rem; padding: 1.5rem; }
.service-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 0.75rem; background: #eff6ff; color: #2563eb; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; }
.service-copy h2 { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin-bottom: 0.4rem; }
.service-copy p { font-size: 0.9rem; color: #64748b; line-height: 1.65; }

.section-inner.contact-grid { max-width: 1080px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact-info h2, .contact-form-card h2 { font-size: 1.3rem; font-weight: 800; color: #0f172a; margin-bottom: 0.75rem; }
.contact-lead { color: #64748b; line-height: 1.65; margin-bottom: 1.75rem; font-size: 0.92rem; }
.info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.info-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 0.65rem; background: #eff6ff; color: #2563eb; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.info-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: #94a3b8; font-weight: 700; margin-bottom: 0.15rem; }
.info-value { font-size: 0.95rem; color: #0f172a; font-weight: 600; }
.contact-form-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 0.75rem; overflow: hidden; }
.faq-item.open { border-color: #bfdbfe; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.35rem; background: none; border: none; cursor: pointer; text-align: left; font-size: 0.98rem; font-weight: 700; color: #0f172a; }
.faq-question i { color: #2563eb; font-size: 0.85rem; flex-shrink: 0; margin-left: 1rem; }
.faq-answer { padding: 0 1.35rem 1.25rem; display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { color: #64748b; font-size: 0.9rem; line-height: 1.7; margin: 0; }
.faq-cta { text-align: center; margin-top: 3rem; }
.faq-cta p { color: #64748b; margin-bottom: 1rem; font-size: 0.95rem; }

.legal-block { margin-bottom: 2rem; }
.legal-block h2 { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin-bottom: 0.6rem; }
.legal-block p { color: #475569; line-height: 1.75; font-size: 0.92rem; margin-bottom: 0.6rem; }
.legal-block ul { margin: 0.5rem 0 0.6rem 1.25rem; color: #475569; }
.legal-block li { line-height: 1.75; font-size: 0.92rem; margin-bottom: 0.3rem; }
.legal-block a { color: #2563eb; font-weight: 600; text-decoration: none; }
.legal-block a:hover { text-decoration: underline; }
.legal-block strong { color: #0f172a; }

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
    .hero-art { flex-direction: row; overflow-x: auto; }
    .art-card-alt { margin-left: 0; }
    .steps-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .section-inner.contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 560px) {
    .hero-copy h1, .page-hero h1 { font-size: 1.85rem; }
    .steps-grid, .feature-grid { grid-template-columns: 1fr; }
    .service-row { flex-direction: column; }
}
@media (max-width: 520px) {
    .values-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* ---------- Forms (shared: contact, auth, profile) ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.1rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: #334155; }
.form-group input, .form-group select, .form-group textarea {
    border: 1px solid #cbd5e1; border-radius: 0.5rem; padding: 0.6rem 0.75rem; font-size: 0.95rem;
    outline: none; transition: border-color 0.15s; font-family: inherit; resize: vertical; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.form-error { color: #dc2626; font-size: 0.85rem; background: #fef2f2; padding: 0.5rem 0.75rem; border-radius: 0.5rem; margin-bottom: 1rem; }
.form-error ul { margin: 0; padding-left: 1.1rem; }
.field-error { color: #dc2626; font-size: 0.8rem; margin-top: 0.25rem; }
.form-success { color: #16a34a; font-size: 0.95rem; background: #f0fdf4; padding: 1rem; border-radius: 0.5rem; margin-bottom: 1rem; }

/* ---------- Profile edit form (fieldsets) ---------- */
.form-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.form-grid fieldset { border: 1px solid #e2e8f0; border-radius: 0.6rem; padding: 1rem 1.25rem 1.25rem; margin: 0; }
.form-grid legend { font-weight: 700; font-size: 0.9rem; color: #1e293b; padding: 0 0.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem 1.25rem; margin-top: 0.5rem; }
.grid-2 .form-group { margin-bottom: 0; }

/* ---------- Auth pages ---------- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0f172a 100%); padding: 2rem 1rem; }
.auth-card { background: #fff; border-radius: 1rem; padding: 2.5rem; max-width: 440px; width: 100%; box-shadow: 0 20px 45px rgba(0,0,0,0.25); }
.auth-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: #0f172a; font-weight: 800; font-size: 1.1rem; margin-bottom: 1.5rem; justify-content: center; }
.auth-brand i { color: #2563eb; font-size: 1.4rem; }
.auth-card h1 { font-size: 1.4rem; font-weight: 800; text-align: center; margin-bottom: 0.4rem; }
.auth-subtitle { text-align: center; color: #64748b; font-size: 0.9rem; margin-bottom: 1.75rem; }
.auth-demo-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 0.6rem; padding: 0.85rem 1rem; font-size: 0.8rem; color: #1e40af; margin-bottom: 1.5rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: #64748b; }
.auth-footer a { color: #2563eb; font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ---------- Authenticated App Layout: Sidebar/Topbar ---------- */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
    width: 250px; flex-shrink: 0; background: #0f172a; color: #cbd5e1;
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar-brand { display: flex; align-items: center; gap: 0.6rem; padding: 1.5rem 1.25rem; text-decoration: none; color: #fff; font-weight: 800; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar-brand i { color: #60a5fa; font-size: 1.3rem; }
.sidebar-nav { flex: 1; padding: 1.25rem 0.85rem; display: flex; flex-direction: column; gap: 0.25rem; overflow-y: auto; }
.sidebar-nav a { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.9rem; border-radius: 0.5rem; text-decoration: none; color: #cbd5e1; font-size: 0.9rem; font-weight: 600; }
.sidebar-nav a i { width: 18px; text-align: center; }
.sidebar-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar-nav a.active { background: #2563eb; color: #fff; }
.sidebar-section-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; padding: 1rem 0.9rem 0.4rem; font-weight: 700; }
.sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,0.08); }
.sidebar-logout { display: flex; align-items: center; gap: 0.6rem; width: 100%; background: none; border: none; color: #cbd5e1; font-size: 0.88rem; font-weight: 600; cursor: pointer; padding: 0.5rem 0; }
.sidebar-logout:hover { color: #fca5a5; }

.app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.app-topbar { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 0.85rem 1.5rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; }
.topbar-toggle { display: none; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #334155; }
.topbar-right { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.notif-bell { position: relative; color: #64748b; text-decoration: none; font-size: 1.15rem; }
.notif-badge { position: absolute; top: -6px; right: -8px; background: #dc2626; color: #fff; font-size: 0.65rem; font-weight: 700; border-radius: 999px; padding: 0.05rem 0.35rem; min-width: 16px; text-align: center; }
.topbar-user { display: flex; align-items: center; gap: 0.6rem; }
.user-avatar { width: 36px; height: 36px; border-radius: 999px; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; overflow: hidden; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-meta p { margin: 0; line-height: 1.3; }
.user-name { font-size: 0.85rem; font-weight: 700; color: #0f172a; }
.user-role { font-size: 0.72rem; color: #94a3b8; text-transform: capitalize; }
.app-content { padding: 1.75rem; flex: 1; }

/* Mobile sidebar styles handled in responsive section */

/* ---------- Dashboard / cards / tables (shared user + admin) ---------- */
.page-title { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin: 0 0 0.25rem; }
.page-subtitle { color: #64748b; margin: 0 0 1.25rem; font-size: 0.9rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.stat-card { background: #fff; border-radius: 0.75rem; padding: 1.25rem 1.4rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); border-left: 4px solid #cbd5e1; }
.stat-card.blue { border-left-color: #2563eb; }
.stat-card.green { border-left-color: #16a34a; }
.stat-card.amber { border-left-color: #d97706; }
.stat-card.red { border-left-color: #dc2626; }
.stat-card.gray { border-left-color: #94a3b8; }
.stat-value { font-size: 1.4rem; font-weight: 800; color: #0f172a; margin: 0; }
.stat-label { font-size: 0.82rem; color: #64748b; margin: 0.2rem 0 0; }

.panel { background: #fff; border-radius: 0.75rem; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); margin-bottom: 1.5rem; }
.panel h2 { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin: 0 0 1rem; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; color: #94a3b8; padding: 0.5rem 0.75rem; border-bottom: 1px solid #e2e8f0; }
.data-table td { padding: 0.7rem 0.75rem; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; color: #334155; vertical-align: top; }
.capitalize { text-transform: capitalize; }
.muted { color: #94a3b8; font-size: 0.78rem; }
.empty-state { color: #94a3b8; font-size: 0.9rem; padding: 1rem 0; }

.filter-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.filter-bar input, .filter-bar select { border: 1px solid #cbd5e1; border-radius: 0.45rem; padding: 0.5rem 0.75rem; font-size: 0.9rem; }
.tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.tabs a { background: #fff; border: 1px solid #e2e8f0; border-radius: 0.5rem; padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 600; color: #64748b; cursor: pointer; text-decoration: none; }
.tabs a.active { background: #2563eb; color: #fff; border-color: #2563eb; }

.actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.icon-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 0.4rem; background: #f1f5f9; color: #475569; cursor: pointer; border: none; text-decoration: none; }
.icon-btn:hover { background: #e2e8f0; }
.icon-btn.success:hover { background: #dcfce7; color: #166534; }
.icon-btn.danger:hover { background: #fee2e2; color: #991b1b; }

.pagination-wrap { margin-top: 1rem; }
.pagination-wrap nav { display: flex; justify-content: center; }
.pagination-wrap ul { display: flex; list-style: none; gap: 0.35rem; padding: 0; margin: 0; }
.pagination-wrap a, .pagination-wrap span { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; border-radius: 0.4rem; background: #f1f5f9; color: #475569; text-decoration: none; font-size: 0.85rem; padding: 0 0.5rem; }
.pagination-wrap .active span { background: #2563eb; color: #fff; }
.pagination-wrap .disabled span { opacity: 0.4; }

/* ---------- Status badge ---------- */
.status-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: capitalize; }
.status-badge.amber { background: #fef3c7; color: #92400e; }
.status-badge.green { background: #dcfce7; color: #166534; }
.status-badge.red { background: #fee2e2; color: #991b1b; }
.status-badge.blue { background: #dbeafe; color: #1e40af; }
.status-badge.gray { background: #f1f5f9; color: #475569; }

/* ---------- Document upload dropzone ---------- */
.upload-form { display: flex; flex-direction: column; gap: 1rem; }
.upload-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.dropzone { border: 2px dashed #cbd5e1; border-radius: 0.6rem; padding: 1.5rem; text-align: center; color: #64748b; font-size: 0.9rem; }
.dropzone i { font-size: 1.5rem; color: #94a3b8; display: block; margin-bottom: 0.5rem; }

/* ---------- Modal (reject reason, edit, popup, etc.) ---------- */
.modal-backdrop { 
    position: fixed; 
    inset: 0; 
    background: rgba(15, 23, 42, 0.65); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 1050; 
    padding: 1.25rem; 
}
.modal, .modal-card { 
    background: #ffffff !important; 
    border-radius: 1rem; 
    padding: 1.75rem; 
    max-width: 480px; 
    width: 100%; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08); 
    border: 1px solid #e2e8f0;
    color: #0f172a;
    position: relative;
    box-sizing: border-box;
    animation: modalPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.85rem;
    margin-bottom: 1.15rem;
}
.modal h3, .modal-card h3 { 
    font-size: 1.15rem; 
    font-weight: 700; 
    color: #0f172a; 
    margin: 0; 
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.35rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.35rem;
    transition: all 0.15s ease;
}
.modal-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}
.modal-note { font-size: 0.85rem; color: #64748b; margin-bottom: 0.75rem; }
.btn-row { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 1rem; }

/* ---------- Receipt ---------- */
.receipt-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.5rem; margin: 1rem 0; }
.receipt-dl dt { font-size: 0.75rem; text-transform: uppercase; color: #94a3b8; font-weight: 700; margin: 0; }
.receipt-dl dd { font-size: 0.95rem; color: #0f172a; font-weight: 600; margin: 0.15rem 0 0; }

/* ---------- Notifications list ---------- */
.notif-list { display: flex; flex-direction: column; gap: 0.6rem; }
.notif-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 0.65rem; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.notif-item.unread { border-left: 4px solid #2563eb; background: #f8fbff; }
.notif-title { font-weight: 700; font-size: 0.95rem; color: #0f172a; margin: 0 0 0.25rem; }
.notif-message { font-size: 0.88rem; color: #64748b; margin: 0; }
.notif-time { font-size: 0.75rem; color: #94a3b8; margin-top: 0.4rem; }

/* Utility */
.flex-between { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Fee & Payment Panel ---------- */
.fee-panel { display: flex; flex-direction: column; gap: 1.1rem; }
.fee-info { display: flex; align-items: center; gap: 1rem; }
.fee-icon {
    width: 52px; height: 52px; border-radius: 0.7rem; background: #eff6ff; color: #2563eb;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0;
}
.fee-label { font-size: 0.85rem; color: #64748b; margin: 0; }
.fee-amount { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin: 0; }
.pending-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.pending-note { font-size: 0.9rem; color: #92400e; background: #fef3c7; padding: 0.6rem 0.9rem; border-radius: 0.5rem; margin: 0; }
.paid-note { color: #166534; background: #dcfce7; padding: 0.6rem 0.9rem; border-radius: 0.5rem; font-size: 0.9rem; align-self: flex-start; margin: 0; }
.gateway-note { font-size: 0.78rem; color: #94a3b8; margin: 0; }
.link-btn { background: none; border: none; color: #2563eb; font-weight: 600; font-size: 0.85rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Admin Dashboard Quick Links & Sections ---------- */
.admin-section { margin-bottom: 1.75rem; }
.admin-section h2 { font-size: 0.95rem; font-weight: 700; color: #334155; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.02em; }
.quick-links { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.quick-link {
    display: flex; align-items: center; gap: 0.6rem; background: #fff; border-radius: 0.6rem;
    padding: 0.75rem 1.25rem; font-size: 0.9rem; font-weight: 600; color: #2563eb; text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06); border: 1px solid #e2e8f0; transition: all 0.15s ease;
}
.quick-link:hover { background: #eff6ff; border-color: #93c5fd; transform: translateY(-1px); }

/* ---------- Document Verification & Modal textarea ---------- */
.expiry-warning { margin-left: 0.4rem; font-size: 0.75rem; color: #d97706; background: #fef3c7; padding: 0.15rem 0.45rem; border-radius: 0.25rem; font-weight: 700; display: inline-block; }
.modal textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 0.5rem; padding: 0.6rem 0.75rem; font-size: 0.9rem; resize: vertical; box-sizing: border-box; }
.modal textarea:focus { outline: none; border-color: #2563eb; }

/* ==========================================================================
   HOMEPAGE DESIGN STRATEGY (Figma ExPat DocVault Style)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --color-navy: #0E2A4E;
    --color-navy-light: #163865;
    --color-navy-dark: #081D36;
    --color-emerald: #10B981;
    --color-emerald-dark: #059669;
    --color-slate-soft: #F1F4F8;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

/* Base utilities for Homepage Strategy */
.font-display { font-family: var(--font-display); }
.text-emerald { color: #10B981 !important; }
.bg-emerald { background-color: #10B981 !important; }
.text-navy { color: #0E2A4E !important; }
.bg-navy { background-color: #0E2A4E !important; }
.bg-slate-soft { background-color: #F1F4F8 !important; }

/* Buttons */
.btn-emerald-lg {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    background: #10B981; color: #fff !important; font-weight: 700; font-size: 1rem;
    padding: 0.9rem 2rem; border-radius: 0.75rem; text-decoration: none;
    box-shadow: 0 8px 24px rgba(16,185,129,0.35); transition: all 0.2s ease;
    border: none; cursor: pointer;
}
.btn-emerald-lg:hover {
    background: #059669; transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(16,185,129,0.45);
}
.btn-ghost-lg {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    background: transparent; color: rgba(255,255,255,0.85) !important;
    font-weight: 600; font-size: 1rem; padding: 0.9rem 2rem; border-radius: 0.75rem;
    text-decoration: none; border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.2s ease; cursor: pointer;
}
.btn-ghost-lg:hover {
    background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5);
    color: #fff !important; transform: translateY(-2px);
}

/* Hero Section */
.fg-hero {
    position: relative; background: #0E2A4E; color: #fff;
    min-height: calc(100vh - 72px); display: flex; align-items: center;
    overflow: hidden; padding: 5rem 1.5rem 6.5rem;
}
.fg-hero-grid-bg {
    position: absolute; inset: 0; opacity: 0.04; pointer-events: none;
    background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
    background-size: 48px 48px;
}
.fg-hero-gradient-accent {
    position: absolute; top: 0; right: 0; width: 55%; height: 100%;
    opacity: 0.12; pointer-events: none;
    background: linear-gradient(135deg, transparent 40%, #10B981 100%);
}
.fg-hero-inner {
    position: relative; max-width: 1240px; margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: center;
}
.fg-pill-badge {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.85rem;
    border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; background: rgba(16,185,129,0.15); color: #10B981;
    border: 1px solid rgba(16,185,129,0.25); margin-bottom: 1.75rem;
}
.fg-pulse-dot {
    width: 7px; height: 7px; border-radius: 999px; background: #10B981;
    box-shadow: 0 0 0 0 rgba(16,185,129,0.7);
    animation: fgPulse 2s infinite;
}
@keyframes fgPulse {
    0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.fg-hero h1 {
    font-family: var(--font-display); font-size: 3.4rem; font-weight: 700;
    line-height: 1.15; color: #fff; margin: 0 0 1.25rem;
}
.fg-hero-sub {
    font-size: 1.12rem; color: rgba(255,255,255,0.7); line-height: 1.7;
    margin: 0 0 2.25rem; max-width: 540px;
}
.fg-hero-actions {
    display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.75rem;
}
.fg-trust-row {
    display: flex; gap: 1.75rem; flex-wrap: wrap; color: rgba(255,255,255,0.55); font-size: 0.82rem; font-weight: 500;
}
.fg-trust-row span { display: inline-flex; align-items: center; gap: 0.45rem; }
.fg-trust-row i { color: #10B981; font-size: 0.95rem; }

/* Hero Dashboard Mockup Card */
.fg-mockup-wrap { position: relative; width: 100%; }
.fg-mockup-card {
    border-radius: 1.25rem; overflow: hidden;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.fg-mockup-topbar {
    padding: 0.85rem 1.25rem; display: flex; align-items: center; gap: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03);
}
.fg-traffic-lights { display: flex; gap: 0.4rem; }
.fg-dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.fg-mockup-url { color: rgba(255,255,255,0.4); font-size: 0.72rem; font-family: monospace; }
.fg-mockup-body { padding: 1.5rem; }
.fg-user-head {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.fg-user-photo {
    width: 52px; height: 52px; border-radius: 999px; object-fit: cover;
    border: 2px solid #10B981;
}
.fg-user-name { color: #fff; font-weight: 700; font-size: 0.95rem; margin: 0; }
.fg-user-sub { color: rgba(255,255,255,0.55); font-size: 0.78rem; margin: 0.15rem 0 0.35rem; }
.fg-user-verified {
    display: inline-flex; align-items: center; gap: 0.35rem;
    color: #10B981; font-size: 0.75rem; font-weight: 600;
}
.fg-doc-list { display: flex; flex-direction: column; gap: 0.65rem; }
.fg-doc-row {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 0.75rem; padding: 0.75rem 1rem; transition: background 0.2s ease;
}
.fg-doc-row:hover { background: rgba(255,255,255,0.08); }
.fg-doc-left { display: flex; align-items: center; gap: 0.75rem; }
.fg-doc-icon {
    width: 32px; height: 32px; border-radius: 0.5rem; background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); font-size: 0.85rem;
}
.fg-doc-title { color: #fff; font-size: 0.82rem; font-weight: 600; margin: 0; }
.fg-doc-num { color: rgba(255,255,255,0.45); font-size: 0.72rem; font-family: monospace; margin: 0.1rem 0 0; }
.fg-doc-status { font-size: 0.75rem; font-weight: 700; text-align: right; }
.fg-doc-days { color: rgba(255,255,255,0.4); font-size: 0.7rem; text-align: right; margin-top: 0.15rem; }

/* Floating Expiry Card */
.fg-floating-badge {
    position: absolute; -bottom: 1.25rem; -left: 1.5rem;
    background: #163865; border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0.85rem; padding: 0.75rem 1.1rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.35); display: flex; align-items: center; gap: 0.75rem;
    animation: fgFloat 4s ease-in-out infinite alternate;
}
@keyframes fgFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}
.fg-float-icon {
    width: 32px; height: 32px; border-radius: 999px; background: rgba(245,158,11,0.2);
    color: #f59e0b; display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.fg-float-title { color: #fff; font-size: 0.82rem; font-weight: 700; margin: 0; }
.fg-float-sub { color: rgba(255,255,255,0.55); font-size: 0.7rem; margin: 0.1rem 0 0; }

/* Wave Separator */
.fg-wave {
    position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; width: 100%;
}
.fg-wave svg { display: block; width: 100%; height: 50px; }

/* Services / How it Works Section */
.fg-services-sec {
    background: #F1F4F8; padding: 6.5rem 1.5rem;
}
.fg-services-inner { max-width: 1240px; margin: 0 auto; }
.fg-sec-header { text-align: center; margin-bottom: 4.5rem; }
.fg-sec-pill {
    display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em;
    text-transform: uppercase; padding: 0.4rem 0.95rem; border-radius: 999px;
    background: rgba(14,42,78,0.08); color: #0E2A4E; margin-bottom: 1rem;
}
.fg-sec-title {
    font-family: var(--font-display); font-size: 2.75rem; font-weight: 700;
    color: #0f172a; margin: 0 0 1rem; line-height: 1.2;
}
.fg-sec-subtitle {
    font-size: 1.1rem; color: #64748b; max-width: 580px; margin: 0 auto; line-height: 1.65;
}
.fg-cards-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.fg-service-card {
    background: #fff; border: 1px solid #E2E8F0; border-radius: 1.25rem;
    padding: 2rem 1.75rem; box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    position: relative; overflow: hidden; transition: all 0.3s ease;
    display: flex; flex-direction: column;
}
.fg-service-card:hover {
    transform: translateY(-5px); box-shadow: 0 16px 32px rgba(14,42,78,0.08);
    border-color: #cbd5e1;
}
.fg-card-icon {
    width: 56px; height: 56px; border-radius: 0.85rem; background: rgba(14,42,78,0.06);
    color: #0E2A4E; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.5rem; transition: transform 0.3s ease;
}
.fg-service-card:hover .fg-card-icon { transform: scale(1.1); background: rgba(16,185,129,0.12); color: #10B981; }
.fg-card-title {
    font-size: 1.15rem; font-weight: 700; color: #0f172a; margin: 0 0 0.65rem;
}
.fg-card-desc {
    font-size: 0.88rem; color: #64748b; line-height: 1.6; margin: 0 0 1.25rem; flex-grow: 1;
}
.fg-card-detail {
    font-size: 0.78rem; color: #94a3b8; line-height: 1.6; border-top: 1px solid #f1f5f9;
    padding-top: 1rem; margin: 0;
}
.fg-step-num {
    position: absolute; top: 1.5rem; right: 1.5rem; font-family: var(--font-display);
    font-size: 2.25rem; font-weight: 800; color: rgba(14,42,78,0.07); line-height: 1;
}

/* Security Section */
.fg-security-sec {
    background: #ffffff; padding: 6.5rem 1.5rem;
}
.fg-security-inner {
    max-width: 1240px; margin: 0 auto; display: grid;
    grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center;
}
.fg-security-art { position: relative; }
.fg-security-img-wrap {
    border-radius: 1.5rem; overflow: hidden; position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); aspect-ratio: 4/3;
}
.fg-security-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.fg-security-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(14,42,78,0.65) 0%, transparent 60%);
}
.fg-security-badges-bar {
    position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
}
.fg-badge-box {
    background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
    border-radius: 0.85rem; padding: 0.85rem 0.5rem; text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.fg-badge-box i { font-size: 1.25rem; color: #10B981; margin-bottom: 0.35rem; display: block; }
.fg-badge-box span { font-size: 0.72rem; font-weight: 800; color: #1e293b; letter-spacing: 0.04em; text-transform: uppercase; }
.fg-uptime-card {
    position: absolute; -top: 1.25rem; -right: 1.25rem;
    background: #0E2A4E; color: #fff; padding: 1.1rem 1.75rem; border-radius: 1.1rem;
    box-shadow: 0 15px 35px rgba(14,42,78,0.25); text-align: center;
}
.fg-uptime-val { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.fg-uptime-lbl { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 0.3rem; }

.fg-security-copy h2 {
    font-family: var(--font-display); font-size: 2.75rem; font-weight: 700;
    color: #0f172a; line-height: 1.2; margin: 0 0 1.25rem;
}
.fg-security-copy p.lead {
    font-size: 1.08rem; color: #64748b; line-height: 1.7; margin: 0 0 2rem;
}
.fg-sec-features { display: flex; flex-direction: column; gap: 1.25rem; }
.fg-sec-item { display: flex; align-items: flex-start; gap: 1rem; }
.fg-check-circle {
    width: 26px; height: 26px; border-radius: 999px; background: rgba(16,185,129,0.15);
    color: #10B981; display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; flex-shrink: 0; margin-top: 0.15rem;
}
.fg-sec-item-title { font-size: 0.95rem; font-weight: 700; color: #0f172a; margin: 0; }
.fg-sec-item-desc { font-size: 0.88rem; color: #64748b; line-height: 1.5; margin: 0.15rem 0 0; }

/* Stats Banner */
.fg-stats-sec {
    background: #F1F4F8; border-top: 1px solid #E2E8F0; border-bottom: 1px solid #E2E8F0;
    padding: 4.5rem 1.5rem;
}
.fg-stats-grid {
    max-width: 1080px; margin: 0 auto; display: grid;
    grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center;
}
.fg-stat-num {
    font-family: var(--font-display); font-size: 2.75rem; font-weight: 700;
    color: #0E2A4E; line-height: 1.1; margin-bottom: 0.4rem;
}
.fg-stat-text { font-size: 0.9rem; color: #64748b; font-weight: 500; }

/* CTA Banner */
.fg-cta-sec {
    position: relative; background: #0E2A4E; color: #fff;
    padding: 7rem 1.5rem; overflow: hidden; text-align: center;
}
.fg-cta-glow-1 {
    position: absolute; -top: 8rem; -right: 8rem; width: 28rem; height: 28rem;
    border-radius: 999px; background: radial-gradient(circle, #10B981, transparent);
    opacity: 0.12; pointer-events: none;
}
.fg-cta-glow-2 {
    position: absolute; -bottom: 8rem; -left: 8rem; width: 28rem; height: 28rem;
    border-radius: 999px; background: radial-gradient(circle, #10B981, transparent);
    opacity: 0.12; pointer-events: none;
}
.fg-cta-inner {
    position: relative; max-width: 760px; margin: 0 auto;
}
.fg-cta-sec h2 {
    font-family: var(--font-display); font-size: 3rem; font-weight: 700;
    line-height: 1.2; color: #fff; margin: 0 0 1.25rem;
}
.fg-cta-sec p {
    font-size: 1.15rem; color: rgba(255,255,255,0.65); line-height: 1.7;
    margin: 0 auto 2.5rem; max-width: 620px;
}
.fg-cta-btns {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .fg-hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .fg-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .fg-security-inner { grid-template-columns: 1fr; gap: 3.5rem; }
    .fg-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}
@media (max-width: 640px) {
    .fg-hero h1 { font-size: 2.4rem; }
    .fg-sec-title, .fg-security-copy h2, .fg-cta-sec h2 { font-size: 2.1rem; }
    .fg-cards-grid { grid-template-columns: 1fr; }
    .fg-stats-grid { grid-template-columns: 1fr; gap: 2rem; }
    .fg-security-badges-bar { grid-template-columns: 1fr; }
    .fg-floating-badge { display: none; }
}

/* ---------- Topbar User Dropdown Menu ---------- */
.topbar-user-menu { position: relative; }
.topbar-user-btn {
    display: flex; align-items: center; gap: 0.65rem; background: none; border: none;
    cursor: pointer; padding: 0.35rem 0.6rem; border-radius: 0.6rem;
    transition: background 0.15s ease; text-align: left;
}
.topbar-user-btn:hover { background: #f1f5f9; }
.user-dropdown-menu {
    position: absolute; top: calc(100% + 0.5rem); right: 0; width: 220px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    padding: 0.5rem 0; display: none; z-index: 100;
}
.user-dropdown-menu.show { display: block; animation: dropdownFadeIn 0.15s ease; }
@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown-header { padding: 0.6rem 1rem 0.75rem; border-bottom: 1px solid #f1f5f9; }
.dropdown-user-name { font-size: 0.88rem; font-weight: 700; color: #0f172a; margin: 0; }
.dropdown-user-email { font-size: 0.75rem; color: #64748b; margin: 0.15rem 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropdown-item {
    display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 1rem;
    font-size: 0.86rem; font-weight: 600; color: #334155; text-decoration: none;
    background: none; border: none; width: 100%; cursor: pointer; text-align: left;
    transition: background 0.15s ease, color 0.15s ease; box-sizing: border-box;
}
.dropdown-item:hover { background: #f8fafc; color: #2563eb; }
.dropdown-item.active { background: #eff6ff; color: #2563eb; }
.dropdown-item.danger:hover { background: #fee2e2; color: #dc2626; }
.dropdown-divider { height: 1px; background: #f1f5f9; margin: 0.4rem 0; }


/* ==========================================================================
   MOBILE RESPONSIVENESS (Admin Panel & App Shell)
   ========================================================================== */

/* Table responsive wrapper with touch momentum scroll */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0.5rem;
}
.table-responsive::-webkit-scrollbar {
    height: 6px;
}
.table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Ensure data-table has minimum width on mobile so data doesn't get squashed */
.data-table {
    min-width: 620px;
}

/* Sidebar Header & Close Button */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-header .sidebar-brand {
    border-bottom: none;
    flex: 1;
}
.sidebar-close-btn {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #cbd5e1;
    width: 36px;
    height: 36px;
    border-radius: 0.45rem;
    cursor: pointer;
    font-size: 1.1rem;
    margin-right: 0.85rem;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* Sidebar Backdrop Overlay */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.sidebar-backdrop.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Topbar Mobile Left & Indicator */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.topbar-mobile-title {
    display: none;
}
.admin-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.topbar-chevron {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-left: 0.25rem;
}

/* Responsive Grid Helper for User Profile */
.admin-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 275px;
        z-index: 60;
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
        box-shadow: none;
    }
    .app-sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.5);
    }
    .topbar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 0.5rem;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        color: #334155;
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.15s ease;
    }
    .topbar-toggle:hover {
        background: #f1f5f9;
        color: #0f172a;
    }
    .sidebar-close-btn {
        display: inline-flex;
    }
    .topbar-mobile-title {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .app-topbar {
        padding: 0.65rem 1rem;
    }
    .app-content {
        padding: 1rem 0.85rem;
    }
    .page-title {
        font-size: 1.3rem;
    }
    .page-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    .panel {
        padding: 1rem;
        border-radius: 0.65rem;
        margin-bottom: 1rem;
    }
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }
    .stat-card {
        padding: 0.9rem 1rem;
    }
    .stat-value {
        font-size: 1.25rem;
    }
    .user-role {
        display: none;
    }
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding-bottom: 0.35rem;
    }
    .tabs a {
        flex-shrink: 0;
        font-size: 0.82rem;
        padding: 0.45rem 0.85rem;
    }
    .user-dropdown-menu {
        right: 0;
        max-width: min(260px, calc(100vw - 2rem));
    }
    .admin-details-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

@media (max-width: 576px) {
    .user-name {
        max-width: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .topbar-right {
        gap: 0.75rem;
    }
    .topbar-user-btn {
        padding: 0.25rem 0.4rem;
        gap: 0.45rem;
    }
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .topbar-chevron {
        font-size: 0.65rem;
    }
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .filter-bar input,
    .filter-bar select,
    .filter-bar button,
    .filter-bar a {
        width: 100% !important;
        min-width: 0 !important;
        text-align: center;
        justify-content: center;
        box-sizing: border-box;
    }
    .quick-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    .quick-link {
        padding: 0.65rem 0.85rem;
        font-size: 0.82rem;
        justify-content: center;
        text-align: center;
    }
    .receipt-dl {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .form-grid-3 {
        grid-template-columns: 1fr !important;
    }
    .modal-card, .modal {
        padding: 1.15rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    .preview-toolbar {
        padding: 0.5rem 0.75rem;
        gap: 0.4rem;
    }
    .preview-viewer-area {
        min-height: 300px;
        padding: 0.75rem;
    }
    .preview-modal-card {
        width: 98%;
        max-height: 95vh;
        border-radius: 0.75rem;
    }
}

@media (max-width: 380px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
    .quick-links {
        grid-template-columns: 1fr;
    }
    .user-meta {
        display: none;
    }
}

/* Additional Admin Mobile Polishing */
.admin-user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}
@media (max-width: 640px) {
    .admin-user-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem !important;
    }
    .admin-user-header .actions {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .admin-user-header .actions form,
    .admin-user-header .actions button,
    .admin-user-header .actions a {
        width: 100% !important;
        justify-content: center;
    }
    .fee-mgmt-card {
        padding: 1rem !important;
    }
    .fee-mgmt-card .flex-between {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.85rem !important;
    }
    .fee-mgmt-form {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.6rem !important;
        width: 100%;
    }
    .fee-mgmt-form > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .fee-mgmt-form input,
    .fee-mgmt-form select,
    .fee-mgmt-form button {
        width: 100% !important;
        text-align: center;
        justify-content: center;
    }
    .preview-meta {
        max-width: 100%;
    }
    #previewTitle {
        max-width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .preview-controls {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}


/* ==========================================================================
   MOBILE RESPONSIVENESS (Public Views & Public Layout)
   ========================================================================== */

/* Public Header & Brand */
.site-header {
    background: #0E2A4E;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 60;
}
.site-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.site-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    background: #10B981;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
}
.site-brand-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.1;
    letter-spacing: 0.02em;
}
.site-brand-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.1;
}

/* Public Nav Links */
.site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.site-nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s ease;
}
.site-nav a:hover,
.site-nav a.active {
    color: #ffffff;
    font-weight: 600;
}
.site-nav-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 0.5rem;
}
.pub-link-login {
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.5rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pub-link-login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}
.pub-btn-register {
    background: #10B981;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.55rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pub-btn-register:hover {
    background: #059669;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

/* Mobile Nav Toggle & Backdrop */
.public-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.public-nav-backdrop.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}
.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    font-size: 1.15rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Public Footer Styles */
.site-footer {
    background: #081D36;
    color: rgba(255, 255, 255, 0.6);
    padding-top: 4.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}
.site-footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem 3.5rem;
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
    gap: 3rem;
}
.footer-col-links h4,
.footer-col-contact h4 {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 1.25rem;
}
.footer-col-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-col-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}
.footer-col-links a:hover {
    color: #ffffff;
}
.footer-col-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
}
.footer-col-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    line-height: 1.4;
}
.footer-col-contact li i {
    color: #10B981;
    margin-top: 0.2rem;
    flex-shrink: 0;
}
.site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 1.5rem;
}
.site-footer-bottom-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}
.footer-trust-badges {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-trust-badges i {
    color: #10B981;
}

/* ==========================================================================
   PUBLIC MEDIA QUERIES
   ========================================================================== */

@media (max-width: 900px) {
    .menu-toggle {
        display: inline-flex;
    }
    .site-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0E2A4E;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 25px 40px rgba(0, 0, 0, 0.45);
        padding: 1.25rem 1.5rem 1.75rem;
        gap: 0.35rem;
        z-index: 70;
        animation: navSlideDown 0.2s ease-out;
    }
    .site-nav.open {
        display: flex;
    }
    @keyframes navSlideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .site-nav a {
        padding: 0.75rem 0.5rem;
        font-size: 0.98rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: block;
    }
    .site-nav-cta {
        margin-left: 0;
        margin-top: 1rem;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    .site-nav-cta a {
        width: 100%;
        text-align: center;
        justify-content: center;
        box-sizing: border-box;
        border-bottom: none;
        padding: 0.75rem 1rem;
    }
    .site-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .fg-hero {
        padding: 3.5rem 1.25rem 5rem;
        min-height: auto;
    }
    .fg-hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .fg-services-sec {
        padding: 4rem 1.25rem;
    }
    .fg-sec-header {
        margin-bottom: 2.5rem;
    }
    .fg-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .fg-security-sec {
        padding: 4rem 1.25rem;
    }
    .fg-security-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .fg-stats-sec {
        padding: 3.5rem 1.25rem;
    }
    .fg-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .fg-cta-sec {
        padding: 4rem 1.25rem;
    }
    .page-hero {
        padding: 2.75rem 1.25rem;
    }
    .page-hero h1 {
        font-size: 1.7rem;
    }
    .section {
        padding: 2.75rem 1.25rem;
    }
    .section-inner.contact-grid {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .site-header-inner {
        padding: 0.75rem 1rem;
    }
    .fg-hero {
        padding: 2.5rem 1rem 4.5rem;
    }
    .fg-hero h1 {
        font-size: 1.95rem;
        line-height: 1.22;
        margin-bottom: 0.85rem;
    }
    .fg-hero-sub {
        font-size: 0.92rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    .fg-hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    .fg-hero-actions a {
        width: 100%;
        text-align: center;
        justify-content: center;
        box-sizing: border-box;
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }
    .fg-trust-row {
        gap: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }
    .fg-mockup-card {
        border-radius: 1rem;
    }
    .fg-mockup-body {
        padding: 1rem;
    }
    .fg-user-head {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    .fg-user-photo {
        width: 44px;
        height: 44px;
    }
    .fg-user-name {
        font-size: 0.9rem;
    }
    .fg-doc-row {
        padding: 0.6rem 0.75rem;
    }
    .fg-doc-title {
        font-size: 0.8rem;
    }
    .fg-doc-num {
        font-size: 0.7rem;
    }
    .fg-floating-badge {
        display: none;
    }
    .fg-sec-title {
        font-size: 1.85rem;
    }
    .fg-sec-subtitle {
        font-size: 0.95rem;
    }
    .fg-service-card {
        padding: 1.5rem 1.25rem;
    }
    .fg-step-num {
        font-size: 1.75rem;
        top: 1.25rem;
        right: 1.25rem;
    }
    .fg-security-art .fg-security-img-wrap {
        border-radius: 1rem;
        aspect-ratio: 16/10;
    }
    .fg-security-badges-bar {
        position: static;
        margin-top: 1rem;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    .fg-badge-box {
        padding: 0.65rem 0.35rem;
        font-size: 0.75rem;
    }
    .fg-badge-box i {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }
    .fg-uptime-card {
        display: none;
    }
    .fg-security-copy h2 {
        font-size: 1.85rem;
    }
    .fg-stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .fg-stat-num {
        font-size: 2.25rem;
    }
    .fg-cta-sec h2 {
        font-size: 1.85rem;
    }
    .fg-cta-sec p {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
    }
    .fg-cta-btns {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    .fg-cta-btns a {
        width: 100%;
        text-align: center;
        justify-content: center;
        box-sizing: border-box;
    }
    .page-hero {
        padding: 2.25rem 1rem;
    }
    .page-hero h1 {
        font-size: 1.55rem;
        line-height: 1.3;
    }
    .section {
        padding: 2.25rem 1rem;
    }
    .values-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .value-card {
        padding: 1.25rem 1rem;
    }
    .service-row {
        flex-direction: column;
        gap: 0.85rem;
        padding: 1.15rem 1rem;
    }
    .service-icon {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }
    .contact-form-card {
        padding: 1.25rem 1rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-form button[type="submit"] {
        width: 100%;
        justify-content: center;
    }
    .site-footer {
        padding-top: 3rem;
    }
    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem 2.5rem;
    }
    .site-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    .footer-trust-badges {
        justify-content: center;
    }
    .faq-question {
        padding: 0.95rem 1rem;
        font-size: 0.92rem;
    }
    .faq-answer {
        padding: 0 1rem 1rem;
    }
    .faq-cta .btn-outline-lg,
    .cta-banner .btn-solid-lg {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

@media (max-width: 380px) {
    .fg-hero h1 {
        font-size: 1.65rem;
    }
    .fg-security-badges-bar {
        grid-template-columns: 1fr;
    }
    .site-brand-title {
        font-size: 0.88rem;
    }
}


/* ==========================================================================
   MOBILE RESPONSIVENESS (User Dashboard & Expatriate Portal Views)
   ========================================================================== */

/* User Dashboard Quick Links */
.user-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}
.user-quick-action-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.15rem;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.user-quick-action-card:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    transform: translateY(-1px);
}
.user-qa-icon {
    width: 42px;
    height: 42px;
    border-radius: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.user-qa-title {
    font-weight: 700;
    font-size: 0.92rem;
    margin: 0;
    color: #0f172a;
}
.user-qa-desc {
    font-size: 0.76rem;
    color: #64748b;
    margin: 0.15rem 0 0;
}

/* User Profile Photo Row */
.profile-photo-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.profile-photo-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1;
}

/* Invoice details grid helper */
.invoice-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .pay-card {
        padding: 1.15rem !important;
        border-radius: 0.85rem !important;
    }
    .pay-fee-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
    }
    .pay-fee-amount {
        font-size: 1.4rem !important;
    }
    .pay-gateways-grid {
        grid-template-columns: 1fr !important;
        gap: 0.65rem !important;
    }
    .pay-number-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        padding: 0.85rem 1rem !important;
    }
    .pay-number-display {
        font-size: 1.2rem !important;
        text-align: center !important;
    }
    .btn-copy {
        justify-content: center !important;
        width: 100% !important;
    }
    .pay-actions-row {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.65rem !important;
    }
    .pay-actions-row button,
    .pay-actions-row a {
        width: 100% !important;
        justify-content: center !important;
    }
    .profile-photo-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .profile-photo-form {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .profile-photo-form button {
        width: 100%;
        justify-content: center;
    }
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }
    .upload-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }
    .upload-form button[type="submit"] {
        width: 100% !important;
        justify-content: center !important;
        align-self: stretch !important;
    }
    .user-quick-actions {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }
    .invoice-details-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .invoice-details-grid > div:last-child {
        text-align: left !important;
    }
    #printable-invoice {
        padding: 1.25rem !important;
    }
}

@media (max-width: 440px) {
    .user-quick-actions {
        grid-template-columns: 1fr;
    }
    .user-quick-action-card {
        padding: 0.85rem 1rem;
    }
}
