/* ===============================
   ACTIVE CARD + INFO LAYOUT
   =============================== */

.active-card-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.active-card-layout {
    display: grid;
    grid-template-columns: auto 320px;
    gap: 2.5rem;
    align-items: center;
}

/* CARD */
.active-card-real {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    width: 500px;              /* 👈 longer card */
    min-height: 280px;         /* 👈 less tall */
    padding: 1.8rem 2.4rem;

    border-radius: 20px;
    background: linear-gradient(
        135deg,
        #eaf2ff 0%,
        #a1bae4 100%
    );

    box-shadow: 
        0 20px 35px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.6);
}


.card-left {
    max-width: 72%;
}

.org-name {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.15rem;
}

.org-address {
    font-size: 0.72rem;
    color: #cecece;
    line-height: 1.35;
    margin-bottom: 1.3rem;
}

.card-program {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.7rem;
    margin-top: 1.4rem; /* 👈 moves Loyalty / ID / Name lower */
}

.card-id {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.card-name {
    font-size: 0.85rem;
    font-weight: 700;
}

.card-meta {
    margin-top: 1.4rem;
}


/* RIGHT */
.card-right {
    display: flex;
    align-items: flex-start;
}

.card-logo img {
    width: 64px;
    height: auto;
}




.org-name {
    font-weight: 800;
    font-size: .8rem;
    line-height: 1.2;
}


/* INFO PANEL */
.active-card-info {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.8rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.active-card-info h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.active-card-info p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.active-card-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.active-card-info li {
    margin-bottom: .5rem;
}

/* DARK MODE */
.dark .active-card-real {
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

.card-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
}

.active-card-real .card-logo-img {
    mix-blend-mode: lighten;
}

.fi-body.dark .active-card-real .card-logo-img {
    mix-blend-mode: multiply;
}

.dark .active-card-info {
    background: #020617;
    color: #f9fafb;
}

.dark .active-card-info p {
    color: #9ca3af;
}

/* MOBILE */
@media (max-width: 900px) {
    .active-card-layout {
        grid-template-columns: 1fr;
    }
}


/* DARK MODE SUPPORT */
.dark .active-card-info p,
.dark .active-card-info li {
    color: #d1d5db;
}


/* ===============================
   DARK MODE FIX
   =============================== */

.fi-body.dark .active-card-info {
    background: #0f172a;
    color: #f9fafb;
}

.fi-body.dark .active-card-info p {
    color: #9ca3af;
}


/* Wrapper */
.tenant-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* Intro */
.tenant-intro {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
}

/* NO CARD CONTAINER */
.no-card-box {
    max-width: 780px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Layout */
.no-card-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

/* Text */
.no-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: #000000;
}

.no-card-sub {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Benefits */
.no-card-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem 1.5rem;
    margin-bottom: 1.8rem;
    font-size: .95rem;
    color: #000000;
}

.no-card-benefits span {
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* Button */
.no-card-action {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.no-card-action .instant {
    color: #9ca3af;
    font-size: .85rem;
}

/* Visual Card */
.no-card-visual {
    width: 100%;
    height: 170px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    box-shadow: 0 15px 30px rgba(37, 99, 235, .35);
}

/* =========================================
   FORCING BLACK TEXT IN DARK MODE 
   ========================================= */

/* Ensure the container stays white */
.fi-body.dark .no-card-box {
    background-color: #ffffff !important;
}

/* Force the Title to Black */
.fi-body.dark .no-card-title {
    color: #000000 !important;
    --tw-text-opacity: 1 !important;
}

/* Force the Subtitle to a dark slate gray */
.fi-body.dark .no-card-sub {
    color: #1f2937 !important;
    --tw-text-opacity: 1 !important;
}

/* Force the Benefits Spans to Black */
.fi-body.dark .no-card-benefits span {
    color: #000000 !important;
    --tw-text-opacity: 1 !important;
}

/* Force the "Instant Activation" text to gray */
.fi-body.dark .no-card-action .instant {
    color: #4b5563 !important;
    --tw-text-opacity: 1 !important;
}

.loyalty-progress-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: 0.3s ease-in-out;
}

.loyalty-progress-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* HEADER */
.loyalty-progress-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.loyalty-progress-icon {
    width: 42px;
    height: 42px;
    background: #FEF3C7;
    color: #B45309;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
}

.loyalty-progress-title {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
}

/* STATUS BADGE */
.loyalty-progress-status {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 15px;
    background: #FEF3C7;
    color: #92400E;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* DESCRIPTION */
.loyalty-progress-desc {
    color: #4B5563;
    line-height: 1.6;
    font-size: 14px;
}

/* FOOTER */
.loyalty-progress-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    color: #6B7280;
}

/* ===============================
   DARK MODE - FILAMENT FIX
   =============================== */

.dark .loyalty-progress-container {
    background: #020617 !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* Title */
.dark .loyalty-progress-title {
    color: #f1f5f9 !important;
}

/* Description */
.dark .loyalty-progress-desc {
    color: #cbd5e1 !important;
}

/* Footer */
.dark .loyalty-progress-footer {
    border-top: 1px solid #1e293b !important;
    color: #94a3b8 !important;
}

/* Icon */
.dark .loyalty-progress-icon {
    background: rgba(250,204,21,0.15);
    color: #fde68a;
}

/* Default Badge */
.dark .loyalty-progress-status {
    background: rgba(250,204,21,0.15);
    color: #fde68a;
}

/* PAID */
.dark .loyalty-progress-status.paid {
    background: rgba(59,130,246,0.15);
    color: #93c5fd;
}

/* REQUESTED */
.dark .loyalty-progress-status.requested {
    background: rgba(148,163,184,0.15);
    color: #cbd5f5;
}

/* ON_PROGRESS */
.dark .loyalty-progress-status.on_progress {
    background: rgba(250,204,21,0.15);
    color: #fde68a;
}

/* ===============================
   ACTIVE MEMBERSHIP SUCCESS BOX
   =============================== */

.active-card-info.success {
    position: relative;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 16px;
    padding: 1.6rem;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.15);
    transition: .3s ease-in-out;
}

.active-card-info.success:hover {
    transform: translateY(-2px);
}

/* HEADER */
.active-info-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ICON */
.active-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #10b981;
    color: white;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TITLE */
.active-info-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #065f46;
}

/* SUBTEXT */
.active-info-sub {
    font-size: .9rem;
    color: #047857;
}

/* FOOTER */
.active-info-footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #a7f3d0;
    font-size: .8rem;
    color: #065f46;
}

.dark .active-card-info.success {
    background: #022c22;
    border: 1px solid #064e3b;
    box-shadow: 0 12px 25px rgba(16,185,129,0.25);
}

.dark .active-info-title {
    color: #6ee7b7;
}

.dark .active-info-sub {
    color: #34d399;
}

.dark .active-info-footer {
    border-top: 1px solid #064e3b;
    color: #6ee7b7;
}

/* ===============================
   ACTIVE CARD TEXT - DARK MODE
   =============================== */

.fi-body.dark .active-card-real .org-name {
    color: #e2e8f0 !important;
}



.fi-body.dark .active-card-real .card-program {
    color: #f1f5f9 !important;
}

.fi-body.dark .active-card-real .card-id {
    color: #e2e8f0 !important;
}

.fi-body.dark .active-card-real .card-name {
    color: #e2e8f0 !important;
}

/* ===============================
   FILAMENT RUNTIME DARK OVERRIDE
   =============================== */

.fi-body.dark .active-card-real p.org-address {
    color: #94a3b8 !important;
}

.fi-body.dark .active-card-real p.org-name {
    color: #e2e8f0 !important;
}

.fi-body.dark .active-card-real p.card-program {
    color: #f1f5f9 !important;
}

.fi-body.dark .active-card-real p.card-id,
.fi-body.dark .active-card-real p.card-name {
    color: #e2e8f0 !important;
}

/* COLUMN LAYOUT WHEN ACTIVE */
.active-card-wrapper.column {
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
}

/* SUCCESS PANEL ON TOP */
.active-card-info.success.top {
    max-width: 420px;
    width: 100%;
}

/* CARD CENTER */
.active-card-layout.centered {
    display: flex;
    justify-content: center;
}

/* =========================================
   HORIZONTAL MEMBERSHIP ACTIVE (TOP MODE)
   ========================================= */

.active-card-info.success.top {
    max-width: 620px;          /* 👈 make it longer horizontally */
    width: 100%;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(16,185,129,0.12);

    display: flex;             /* 👈 make it horizontal */
    align-items: center;
    justify-content: space-between;
}

/* LEFT SIDE */
.active-card-info.success.top .active-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ICON smaller */
.active-card-info.success.top .active-info-icon {
    width: 26px;
    height: 26px;
    font-size: 11px;
}

/* TEXT */
.active-card-info.success.top .active-info-title {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.active-card-info.success.top .active-info-sub {
    font-size: 0.72rem;
    line-height: 1.2;
}

/* REMOVE vertical divider spacing */
.active-card-info.success.top .active-info-footer {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 0.72rem;
    max-width: 260px;
}

/* ===============================
   PROFESSIONAL CARD STACK
   =============================== */

.active-card-wrapper.professional {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.active-card-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

/* STATUS CHIP UNDER CARD */
.card-status-chip {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 14px;

    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.35);
    color: #047857;

    border-radius: 999px;
}

/* DOT */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

/* DARK MODE */
.fi-body.dark .card-status-chip {
    background: rgba(16, 185, 129, 0.30) !important;
    border: 4px solid #6ee7b7 !important;
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(110, 231, 183, 0.8) !important;
}

.fi-body.dark .card-status-chip .status-dot {
    background: #ffffff !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8) !important;
}


/* ===============================
   FORCE CHIP TEXT VISIBILITY
   =============================== */

.fi-body.dark .card-status-chip {
    background: rgba(16,185,129,0.15) !important;
    border: 1px solid rgba(16,185,129,0.45) !important;
}

/* 👇 THIS is the actual fix */
.fi-body.dark .card-status-chip,
.fi-body.dark .card-status-chip span,
.fi-body.dark .card-status-chip {
    color: #a7f3d0 !important;
}
.fi-body.dark .card-status-chip {
    color: #a7f3d0 !important;
    text-shadow: 0 0 6px rgba(16,185,129,0.35);
}

/* Light mode card */
.active-card-real {
    background: linear-gradient(135deg, #c8d8f0 0%, #a8c0e8 100%);
}

.org-address {
    color: rgba(0, 0, 0, 0.5) !important; /* Force visible in both modes */
}

.org-name {
    color: #1a2744 !important;
}

.card-program,
.card-id,
.card-name {
    color: #1a2744 !important;
}

/* Dark mode override */
@media (prefers-color-scheme: dark) {
    .active-card-real {
        background: linear-gradient(135deg, #1e3a5f 0%, #0f2040 100%);
    }
    .org-address {
        color: rgba(255, 255, 255, 0.5) !important;
    }
    .org-name, .card-program, .card-id, .card-name {
        color: #e8f0ff !important;
    }
}