/* ==========================================================================
   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-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    padding: 0 0.85rem;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.68rem 1rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    color: #1e293b;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    cursor: pointer;
}

.btn-google:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.btn-google svg,
.btn-google img {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

.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 Dropdown & Submenu */
.sidebar-dropdown {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sidebar-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: 0.5rem;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: inherit;
}

.sidebar-dropdown-btn .dropdown-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-dropdown-btn .dropdown-label i {
    width: 18px;
    text-align: center;
}

.sidebar-dropdown-btn .dropdown-arrow {
    font-size: 0.75rem;
    color: #94a3b8;
    transition: transform 0.25s ease;
}

.sidebar-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.sidebar-dropdown-btn.active {
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.15);
}

.sidebar-dropdown.open .sidebar-dropdown-btn .dropdown-arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0.25rem 0 0.35rem 0.75rem;
    padding-left: 0.65rem;
    border-left: 2px solid rgba(255, 255, 255, 0.12);
}

.sidebar-dropdown.open .sidebar-submenu {
    display: flex;
}

.sidebar-submenu a {
    padding: 0.52rem 0.75rem;
    font-size: 0.84rem;
    color: #94a3b8;
    border-radius: 0.45rem;
    font-weight: 500;
    gap: 0.65rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-submenu a i {
    width: 16px;
    font-size: 0.82rem;
    text-align: center;
}

.sidebar-submenu a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.sidebar-submenu a.active {
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}


.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;
}

.sidebar-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.5rem 0.25rem;
}

.sidebar-logout-form {
    margin: 0;
    width: 100%;
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: 0.5rem;
    width: 100%;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: inherit;
}

.sidebar-logout-btn i {
    width: 18px;
    text-align: center;
}

.sidebar-logout-btn:hover {
    background: rgba(239, 68, 68, 0.14);
    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;
}

/* Fix for giant/broken Laravel pagination SVG icons */
.pagination-wrap svg,
nav[role="navigation"] svg,
svg.w-5 {
    width: 1.25rem !important;
    height: 1.25rem !important;
    max-width: 20px !important;
    max-height: 20px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.w-5 { width: 1.25rem !important; }
.h-5 { height: 1.25rem !important; }

nav[role="navigation"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #475569;
}

nav[role="navigation"] > div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

nav[role="navigation"] .relative.z-0 {
    display: inline-flex;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

nav[role="navigation"] .relative.z-0 > span,
nav[role="navigation"] .relative.z-0 > a,
nav[role="navigation"] .relative.z-0 > span > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.15s ease;
}

nav[role="navigation"] .relative.z-0 > *:last-child,
nav[role="navigation"] .relative.z-0 > *:last-child > span {
    border-right: none;
}

nav[role="navigation"] .relative.z-0 > a:hover {
    background-color: #f8fafc;
    color: #1e293b;
}

nav[role="navigation"] span[aria-current="page"] > span,
nav[role="navigation"] [aria-current="page"] {
    background-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

nav[role="navigation"] [aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    background-color: #f8fafc;
}

nav[role="navigation"] p {
    margin: 0;
    font-size: 0.84rem;
    color: #64748b;
}

nav[role="navigation"] p span {
    font-weight: 600;
    color: #0f172a;
}

.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 tables have minimum width on mobile so columns don't get squashed */
.data-table,
.admin-gp-table,
.membership-table {
    min-width: 650px;
}

/* 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;
}

/* Admin Container Defaults */
.admin-gp-container,
.emergency-admin-container,
.settings-container,
.slider-admin-container,
.announcement-admin-container,
.membership-page-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    /* Admin Section Headers */
    .admin-gp-header,
    .announcement-card-header,
    .slider-card-header,
    .country-card-header,
    .settings-card-header {
        padding: 1rem 1.15rem;
    }

    .admin-gp-header h1 {
        font-size: 1.3rem;
    }

    /* Admin Cards */
    .admin-gp-table-card,
    .settings-section-card,
    .country-setting-card,
    .announcement-card,
    .slider-card {
        border-radius: 0.65rem;
        margin-bottom: 1.25rem;
    }

    .settings-card-body,
    .country-card-body,
    .announcement-card-body,
    .slider-card-body {
        padding: 1.15rem;
    }

    /* Grids inside Admin forms */
    .settings-grid-2,
    .form-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    /* Filter Form in Memberships */
    .filters-form .filter-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
        gap: 0.75rem;
    }
}

@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;
    }

    /* Admin Government Portal Header & Filter Bar */
    .admin-gp-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.85rem;
    }

    .admin-gp-header h1 {
        font-size: 1.2rem;
    }

    .btn-add-portal {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1rem;
    }

    .admin-gp-filter-bar {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
        padding: 0.85rem 1rem;
    }

    .admin-gp-filter-bar > div {
        width: 100%;
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.5rem !important;
    }

    .admin-gp-filter-bar select {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Government Portal Modals */
    .admin-modal-backdrop {
        padding: 0.5rem;
    }

    .admin-modal-dialog {
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0.75rem;
    }

    .admin-modal-header {
        padding: 0.85rem 1rem;
    }

    .admin-modal-header h3 {
        font-size: 1.05rem;
    }

    .admin-modal-body {
        padding: 1rem;
        max-height: calc(85vh - 120px);
    }

    .admin-modal-footer {
        flex-direction: column-reverse;
        align-items: stretch !important;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .admin-modal-footer button {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
    }

    /* Emergency Settings */
    .country-card-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    .btn-save-country {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
    }

    /* Website Settings */
    .settings-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch !important;
    }

    .btn-save-settings {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    .brand-preview-frame {
        padding: 0.75rem;
        min-height: 80px;
    }

    /* Slider Settings */
    .guide-box {
        flex-direction: column;
        gap: 0.65rem;
        padding: 0.85rem 1rem;
    }

    .guide-icon {
        font-size: 1.5rem;
    }

    .thumb-container {
        width: 90px;
        height: 48px;
    }

    .slider-modal {
        padding: 0.5rem;
    }

    .slider-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0.75rem;
    }

    /* Membership Cards Management */
    .filters-form .filter-grid {
        grid-template-columns: 1fr !important;
    }

    .filters-form > div[style*="display: flex"] {
        flex-direction: column;
        width: 100%;
    }

    .filters-form .btn-primary,
    .filters-form .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Flex-between helper on mobile */
    .flex-between {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    /* Mobile Pagination styling */
    nav[role="navigation"] {
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.75rem;
        text-align: center;
    }

    nav[role="navigation"] > div {
        justify-content: center !important;
        width: 100%;
    }

    nav[role="navigation"] .relative.z-0 {
        max-width: 100%;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .app-topbar {
        padding: 0.6rem 0.75rem;
    }

    .topbar-left {
        gap: 0.4rem;
    }

    .topbar-right {
        gap: 0.45rem;
    }

    .admin-indicator {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }

    .lang-switcher .lang-btn {
        padding: 0.2rem 0.45rem;
        font-size: 0.75rem;
    }

    .app-content {
        padding: 0.85rem 0.65rem;
    }

    .panel {
        padding: 0.85rem;
    }

    .page-title {
        font-size: 1.2rem;
    }

    .trx-badge {
        font-size: 0.75rem;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}


/* ==========================================================================
   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;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-btn:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.footer-social-facebook:hover { background: #1877f2; border-color: #1877f2; }
.footer-social-instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); border-color: #d6249f; }
.footer-social-twitter:hover { background: #000000; border-color: #ffffff; }
.footer-social-linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.footer-social-youtube:hover { background: #ff0000; border-color: #ff0000; }
.footer-social-tiktok:hover { background: #000000; border-color: #25f4ee; }

.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 & Passport Photo Styling */
.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;
}

.passport-photo-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    margin-bottom: 1.5rem;
}

.passport-photo-frame {
    width: 120px;
    height: 154px; /* Standard 35mm x 45mm ratio (~1:1.285) */
    border: 2px dashed #94a3b8;
    border-radius: 8px;
    background: #f8fafc;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.passport-photo-frame:hover {
    border-color: #2563eb;
}

.passport-photo-frame.has-photo {
    border-style: solid;
    border-color: #cbd5e1;
}

.passport-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.passport-empty-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: #94a3b8;
    text-align: center;
    padding: 8px 4px;
}

.passport-empty-box i {
    font-size: 2.25rem;
    margin-bottom: 0.35rem;
    color: #cbd5e1;
}

.passport-placeholder-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.passport-placeholder-dim {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 2px;
}

.passport-frame-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    padding: 3px 2px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    z-index: 2;
}

.passport-photo-info {
    flex: 1;
    min-width: 260px;
}

.passport-photo-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.passport-photo-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.passport-spec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.passport-spec-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #334155;
}

.passport-spec-pill i {
    color: #2563eb;
    font-size: 0.75rem;
}

.passport-file-input {
    font-size: 0.85rem !important;
    padding: 0.45rem 0.6rem !important;
    background: #ffffff;
}

.passport-file-input::file-selector-button {
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    margin-right: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.15s;
}

.passport-file-input::file-selector-button:hover {
    background: #cbd5e1;
}

@media (max-width: 640px) {
    .passport-photo-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.25rem !important;
        padding: 1rem !important;
    }

    .passport-photo-info {
        width: 100% !important;
        min-width: 0 !important;
    }

    .passport-photo-title {
        justify-content: center !important;
    }

    .passport-spec-tags {
        justify-content: center !important;
    }
}

/* 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;
    }
}

/* ==========================================================================
   Language Switcher Component (Dual Language EN / BN)
   ========================================================================== */
html[lang="bn"],
body.lang-bn {
    font-family: 'Hind Siliguri', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    padding: 3px;
    gap: 3px;
    user-select: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 11px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.18s ease-in-out;
    line-height: 1.2;
}

.lang-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.lang-btn.active {
    color: #ffffff;
    background: #10B981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* Light variant for App / Admin Topbar */
.lang-switcher-light {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.lang-switcher-light .lang-btn {
    color: #64748b;
}

.lang-switcher-light .lang-btn:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.06);
}

.lang-switcher-light .lang-btn.active {
    color: #ffffff;
    background: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* Mobile language switcher row */
.mobile-lang-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.25rem 0.5rem;
    margin-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-lang-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 901px) {
    .mobile-lang-wrap {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .site-nav>.lang-switcher {
        display: none !important;
    }

    .mobile-lang-wrap {
        display: flex !important;
    }
}

/* ==========================================================================
   Sticky Floating Social Chat Buttons (WhatsApp, IMO, Messenger)
   ========================================================================== */
.sticky-chat-stack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 999;
}

.sticky-chat-stack .whatsapp-sticky-btn {
    position: relative;
    bottom: auto;
    right: auto;
}

.chat-sticky-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background-color 0.2s ease, filter 0.2s ease;
    color: #ffffff !important;
}

.chat-sticky-btn:hover {
    transform: translateY(-3px) scale(1.08);
    color: #ffffff !important;
}

.chat-sticky-btn:active {
    transform: translateY(0) scale(0.96);
}

.whatsapp-sticky-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    background-color: #25D366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.42), 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background-color 0.2s ease;
}

.whatsapp-sticky-btn:hover {
    transform: translateY(-3px) scale(1.08);
    background-color: #20BA56;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.55), 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff !important;
}

.whatsapp-sticky-btn:active {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
}

/* IMO Floating Button */
.imo-sticky-btn {
    background: #ffffff;
    color: #0073b7;
    box-shadow: 0 4px 14px rgba(0, 115, 183, 0.35), 0 2px 6px rgba(0, 0, 0, 0.12);
    border: 1.5px solid rgba(0, 115, 183, 0.25);
}

.imo-sticky-btn:hover {
    background: #ffffff;
    color: #005f96;
    box-shadow: 0 8px 22px rgba(0, 115, 183, 0.55), 0 4px 10px rgba(0, 0, 0, 0.18);
    transform: translateY(-3px) scale(1.08);
}

.imo-svg-icon {
    width: 36px;
    height: 36px;
    display: block;
    transition: transform 0.2s ease;
}

.imo-sticky-btn:hover .imo-svg-icon {
    transform: scale(1.05);
}

.imo-badge-text {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 900;
    font-size: 19px;
    letter-spacing: -0.5px;
    color: #0073b7;
    line-height: 1;
    text-transform: lowercase;
}

/* Facebook Messenger Floating Button */
.messenger-sticky-btn {
    background: linear-gradient(135deg, #00B2FF 0%, #006AFF 50%, #7B3FE4 100%);
    font-size: 26px;
    box-shadow: 0 4px 14px rgba(0, 106, 255, 0.42), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.messenger-sticky-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 8px 22px rgba(0, 106, 255, 0.58), 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Tooltips */
.chat-sticky-btn .chat-tooltip,
.whatsapp-sticky-btn .whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: #0f172a;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.chat-sticky-btn .chat-tooltip::after,
.whatsapp-sticky-btn .whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px 0 5px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #0f172a;
}

.chat-sticky-btn:hover .chat-tooltip,
.whatsapp-sticky-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.whatsapp-sticky-btn::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.6);
    opacity: 0;
    animation: whatsappPulse 2.8s infinite;
    pointer-events: none;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.22);
        opacity: 0;
    }

    100% {
        transform: scale(1.26);
        opacity: 0;
    }
}

@media (max-width: 640px) {
    .sticky-chat-stack {
        bottom: 18px;
        right: 18px;
        gap: 9px;
    }

    .chat-sticky-btn,
    .whatsapp-sticky-btn {
        width: 44px;
        height: 44px;
        font-size: 23px;
    }

    .imo-badge-text {
        font-size: 16px;
    }

    .chat-sticky-btn .chat-tooltip,
    .whatsapp-sticky-btn .whatsapp-tooltip {
        display: none;
    }
}

/* ==========================================================================
   MEMBERSHIP ID CARD SYSTEM (Front & Back Side-by-Side)
   ========================================================================== */

.membership-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.membership-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    background: #ffffff;
    padding: 1.5rem 1.75rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.membership-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.membership-page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
}

.membership-page-desc {
    color: #64748b;
    font-size: 0.92rem;
    margin: 0;
}

.membership-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-download-pdf {
    background: linear-gradient(135deg, #1e40af, #2563eb) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.btn-download-pdf:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35) !important;
}

.membership-status-ribbon {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.85rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: #334155;
}

.status-label {
    color: #64748b;
    font-weight: 600;
}

.status-pill.status-active {
    background: #dcfce7;
    color: #15803d;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.serial-tag {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    color: #1e293b;
    background: #e2e8f0;
    padding: 0.15rem 0.5rem;
    border-radius: 0.35rem;
}

/* SIDE-BY-SIDE ID CARD WRAPPER */
.id-cards-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2.25rem;
    margin: 0 auto 2.5rem;
    flex-wrap: wrap;
}

.id-card-holder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    max-width: 480px;
}

.card-side-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Scaler container to fluidly scale ID card on mobile devices */
.id-card-scaler {
    position: relative;
    width: calc(480px * var(--card-scale, 1));
    height: calc(310px * var(--card-scale, 1));
    max-width: 100%;
    margin: 0 auto;
    overflow: visible;
}

.id-card-scaler:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* Standard CR80 Card Dimensions (~85.6mm x ~54mm -> 480px x 310px) */
.id-card {
    width: 480px;
    height: 310px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.06);
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
    transform: scale(var(--card-scale, 1));
    box-sizing: border-box;
    overflow: hidden;
    user-select: none;
    transition: box-shadow 0.2s ease;
}

.id-card:hover {
    box-shadow: 0 25px 35px -10px rgba(15, 23, 42, 0.24), 0 0 0 1px rgba(15, 23, 42, 0.08);
}

/* Outer acrylic transparent protector simulation */
.card-acrylic-rim {
    width: 100%;
    height: 100%;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
}

/* Background Watermark */
.card-watermark {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 250px;
    height: 250px;
    pointer-events: none;
    z-index: 1;
}

.watermark-svg {
    width: 100%;
    height: 100%;
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem 0.25rem;
    z-index: 2;
    flex-shrink: 0;
}

.brand-badge-box {
    width: 32px;
    height: 32px;
    background: #1d4ed8;
    color: #ffffff;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 4px rgba(29, 78, 216, 0.3);
    flex-shrink: 0;
}

.brand-titles {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.brand-subtitle {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
    line-height: 1.1;
}

/* Front Card Body */
.card-body-grid {
    display: flex;
    padding: 0.25rem 1.25rem 0.35rem;
    gap: 1.15rem;
    flex: 1;
    z-index: 2;
}

.col-left {
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding-top: 0.2rem;
    padding-bottom: 0.15rem;
}

.photo-frame {
    width: 112px;
    height: 136px;
    border: 1.5px solid #64748b;
    border-radius: 4px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.08);
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-photo-placeholder {
    font-size: 3.5rem;
    color: #94a3b8;
}

.photo-sub-meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.35rem;
}

.member-serial-chip {
    font-size: 7.8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    color: #1e3a8a;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 1px 6px;
    border-radius: 3px;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.member-sign-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.2rem;
}

.sign-line {
    width: 88%;
    height: 1px;
    border-bottom: 1px dotted #94a3b8;
    margin-bottom: 2px;
}

.sign-text {
    font-size: 6.8px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.2px;
    text-align: center;
}

.col-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}

/* Hologram Seal (Front) */
.hologram-seal {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 46px;
    height: 50px;
    border-radius: 8px;
    background: radial-gradient(circle at 35% 35%, #f8fafc, #94a3b8, #64748b, #cbd5e1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), inset 0 0 6px rgba(255, 255, 255, 0.7);
    border: 1.5px solid #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0.88;
}

.hologram-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #0f172a;
    text-align: center;
}

.hologram-stars {
    font-size: 7px;
    color: #1e3a8a;
    letter-spacing: 1px;
}

.hologram-shield {
    font-size: 17px;
    color: #1e40af;
    margin: 1px 0;
}

.hologram-text {
    font-size: 6px;
    font-weight: 800;
    color: #0f172a;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: calc(100% - 68px);
    z-index: 2;
    padding-top: 0.15rem;
}

.info-row {
    font-size: 0.83rem;
    line-height: 1.35;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.info-label {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.8rem;
    min-width: 78px;
    flex-shrink: 0;
}

.info-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-value.name-highlight {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.92rem;
}

.info-value.passport-highlight {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    color: #1d4ed8;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.info-value.blood-group-highlight {
    color: #0f172a;
    font-weight: 700;
}

.info-value.email-value {
    word-break: break-all;
    font-size: 0.78rem;
}

/* Front Footer Row filling the bottom area */
.front-footer-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.3rem;
    z-index: 2;
}

.front-meta-pills {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    flex: 1;
}

.meta-pill {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 7.6px;
    line-height: 1.25;
}

.meta-pill .pill-label {
    font-weight: 700;
    color: #475569;
    flex-shrink: 0;
}

.meta-pill .pill-val {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta-pill .pill-val.pill-lifetime {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 0.05rem 0.35rem;
    border-radius: 3px;
    font-size: 7.2px;
}

/* Compact QR Code Box on Front Bottom-Right */
.qr-code-box {
    position: relative;
    width: 62px;
    height: 62px;
    background: #ffffff;
    padding: 2px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.qr-canvas-holder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-canvas-holder img,
.qr-canvas-holder canvas {
    max-width: 100% !important;
    max-height: 100% !important;
    display: block;
}

/* Bottom Navy Notch Banner */
.card-bottom-banner {
    height: 24px;
    background: #0f233a;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: auto;
    flex-shrink: 0;
    z-index: 5;
}

.banner-notch {
    position: absolute;
    top: -9px;
    background: #ffffff;
    height: 18px;
    padding: 0 14px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -2px 4px rgba(15, 35, 58, 0.08);
    z-index: 6;
}

.notch-title {
    font-size: 10.5px;
    font-weight: 800;
    color: #0f233a;
    letter-spacing: 0.02em;
    line-height: 1;
}

/* ==========================================================================
   BACK CARD STYLES
   ========================================================================== */

.back-body-content {
    padding: 0.2rem 1.25rem 0.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.back-top-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.back-security-seal {
    width: 56px;
    height: 58px;
    border-radius: 8px;
    background: radial-gradient(circle at 30% 30%, #f1f5f9, #94a3b8, #475569);
    border: 1.5px solid #94a3b8;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.18), inset 0 0 6px rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seal-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #ffffff;
}

.seal-stars {
    font-size: 7px;
    letter-spacing: 1.5px;
    color: #e2e8f0;
}

.seal-center-icon {
    font-size: 20px;
    color: #f8fafc;
    margin: 1px 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.seal-banner {
    font-size: 5px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.55);
    padding: 1px 3px;
    border-radius: 2px;
}

.back-terms-col {
    flex: 1;
}

.terms-text-en {
    font-size: 7.2px;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.25;
}

.terms-text-bn {
    font-size: 6.8px;
    color: #475569;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 1px;
}

/* Address & Blood Group Block - Line by line layout (No card wrapper) */
.back-details-block {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.15rem 0.2rem;
    margin: 0.2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.back-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8px;
    padding-bottom: 0.18rem;
    border-bottom: 1px dashed #cbd5e1;
}

.back-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.blood-group-badge {
    font-weight: 800;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 0.05rem 0.4rem;
    border-radius: 3px;
    font-size: 7.8px;
    letter-spacing: 0.5px;
}

.back-addr-row {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 7.8px;
    line-height: 1.3;
    padding-bottom: 0.18rem;
    border-bottom: 1px dashed #cbd5e1;
}

.back-addr-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.back-lbl {
    font-weight: 700;
    color: #0f172a;
    flex-shrink: 0;
}

.back-val {
    font-weight: 600;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.serial-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    color: #1d4ed8;
}

/* Barcode + Bangladesh Map + QR row */
.back-barcode-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding-bottom: 0.15rem;
}

.barcode-wrapper {
    flex: 1;
    min-width: 0;
}

.svg-barcode-box {
    width: 100%;
    max-width: 250px;
    height: 32px;
}

.barcode-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.barcode-serial-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 7.2px;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.5px;
    margin-top: 1px;
}

.bd-map-centerpiece {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 52px;
    flex-shrink: 0;
    margin: 0 4px;
    user-select: none;
    pointer-events: none;
}

.bd-map-mini-svg {
    width: 36px;
    height: 42px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(5, 150, 105, 0.2));
}

.bd-map-caption {
    font-size: 6.5px;
    font-weight: 800;
    color: #047857;
    letter-spacing: 0.3px;
    line-height: 1;
    margin-top: 1px;
    opacity: 0.85;
}

.back-qr-code-box {
    width: 52px;
    height: 52px;
    padding: 2px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.membership-guide-card {
    display: flex;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.membership-guide-card .guide-icon {
    font-size: 1.75rem;
    color: #2563eb;
    flex-shrink: 0;
}

.membership-guide-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.4rem 0;
}

.membership-guide-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   Mobile Responsiveness for Membership Card Page (Admin & User)
   ========================================================================== */

:root {
    --card-scale: 1;
}

@media (max-width: 1060px) {
    .id-cards-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .membership-page-container {
        padding-bottom: 2rem;
    }

    .membership-header-bar {
        padding: 1.25rem 1rem;
        gap: 1rem;
        border-radius: 0.75rem;
    }

    .membership-page-title {
        font-size: 1.35rem;
    }

    .membership-page-desc {
        font-size: 0.88rem;
    }

    .membership-status-ribbon {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem 1rem;
        padding: 0.85rem 1rem;
        border-radius: 0.65rem;
        margin-bottom: 1.5rem;
    }

    .membership-status-ribbon .status-item {
        font-size: 0.82rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .membership-status-ribbon .status-label {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .membership-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 0.65rem;
        width: 100%;
    }

    .membership-actions .btn,
    .membership-actions a,
    .membership-actions button {
        justify-content: center;
        width: 100%;
        text-align: center;
        padding: 0.6rem 0.85rem;
        font-size: 0.88rem;
    }

    .membership-actions #downloadDropdownWrap {
        width: 100%;
    }

    .membership-actions #downloadDropdownWrap button {
        width: 100%;
    }

    #downloadMenu {
        right: 0 !important;
        left: 0 !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .membership-guide-card {
        flex-direction: column;
        padding: 1.25rem 1rem;
        gap: 0.75rem;
        border-radius: 0.75rem;
    }

    .id-cards-wrapper {
        gap: 1.75rem;
        margin-bottom: 1.75rem;
    }
}

@media (max-width: 480px) {
    .membership-header-bar {
        padding: 1rem 0.85rem;
    }

    .membership-page-title {
        font-size: 1.2rem;
    }

    .membership-page-desc {
        font-size: 0.82rem;
    }

    .membership-status-ribbon {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
        padding: 0.75rem;
    }

    .membership-actions {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .membership-actions .btn {
        padding: 0.55rem 0.5rem;
        font-size: 0.82rem;
        gap: 0.35rem;
    }

    .card-side-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .membership-actions {
        grid-template-columns: 1fr;
    }

    .membership-status-ribbon {
        grid-template-columns: 1fr;
    }
}

/* Fallback media query scales for different mobile widths - larger and clearer */
@media (max-width: 530px) {
    :root {
        --card-scale: 0.96;
    }
}

@media (max-width: 490px) {
    :root {
        --card-scale: 0.90;
    }
}

@media (max-width: 440px) {
    :root {
        --card-scale: 0.84;
    }
}

@media (max-width: 400px) {
    :root {
        --card-scale: 0.78;
    }
}

@media (max-width: 365px) {
    :root {
        --card-scale: 0.72;
    }
}

@media (max-width: 330px) {
    :root {
        --card-scale: 0.66;
    }
}

/* Print Rules */
@media print {
    body {
        background: #ffffff !important;
    }

    .app-sidebar,
    .app-topbar,
    .membership-header-bar,
    .membership-status-ribbon,
    .membership-guide-card,
    .app-footer {
        display: none !important;
    }

    .membership-page-container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
    }

    .id-cards-wrapper {
        gap: 1.5cm !important;
        flex-direction: row !important;
        justify-content: center !important;
        margin-top: 1.5cm !important;
    }

    .id-card-scaler {
        width: 480px !important;
        height: 310px !important;
        transform: none !important;
    }

    .id-card {
        box-shadow: none !important;
        border: 1px solid #cbd5e1 !important;
        page-break-inside: avoid;
        transform: none !important;
        position: relative !important;
    }
}