/* =============================================
   ImagiKEY — All UI Styles
   ============================================= */

/* -----------------------------------------------
   Navbar: Login / Register pill & WOW avatar
   ----------------------------------------------- */
.wow-login-btn {
    display: inline-block;
    border: 2px solid #1b2a4a;
    border-radius: 50px;
    color: #1b2a4a;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 18px;
    text-decoration: none;
    transition:
        background 0.2s,
        color 0.2s;
    white-space: nowrap;
    line-height: 1.4;
}
.wow-login-btn:hover {
    background: #1b2a4a;
    color: #fff;
}

.wow-pass-avatar-btn {
    text-decoration: none;
}
.wow-nav-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a227, #7b5e00);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* -----------------------------------------------
   Profile Page – WOW mini-card (BEM classes from
   profile/edit.blade.php)
   ----------------------------------------------- */
/* ── Profile mini-card (same dark navy style) ── */
.wow-card {
    position: relative;
    border-radius: 18px;
    padding: 22px 24px 20px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    border: 1.5px solid rgba(201, 162, 39, 0.45);
    background: linear-gradient(145deg, #142240 0%, #1c3060 45%, #172848 100%);
}
.wow-card--silver,
.wow-card--standard {
    background: linear-gradient(145deg, #142240 0%, #1c3060 45%, #172848 100%);
}
.wow-card--gold {
    background: linear-gradient(145deg, #1c1400 0%, #2e2000 45%, #1c1400 100%);
}
.wow-card--platinum {
    background: linear-gradient(145deg, #0d1828 0%, #162038 45%, #0d1828 100%);
}

.wow-card::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(100, 140, 255, 0.1) 0%,
        transparent 70%
    );
    pointer-events: none;
}

/* Chip */
.wow-card__chip {
    width: 42px;
    height: 32px;
    background: linear-gradient(
        145deg,
        #e8c84a 0%,
        #c9a227 35%,
        #a07d10 65%,
        #d4af37 100%
    );
    border-radius: 6px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.wow-card__chip::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.15) 1px, transparent 1px);
    background-size: 11px 11px;
}
.wow-card__chip::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    z-index: 1;
}

.wow-card__org {
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
}
.wow-card__title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 14px;
}

.wow-card__avatar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.wow-card__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.15);
    border: 2px solid rgba(201, 162, 39, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    color: #d4af37;
}
.wow-card__member-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.wow-card__credits-label {
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #c9a227;
    text-align: center;
    margin-bottom: 2px;
    font-weight: 600;
}
.wow-card__credits {
    font-size: 32px;
    font-weight: 900;
    text-align: center;
    color: #d4af37;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
}

.wow-card__bottom-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.wow-card__number {
    font-size: 13px;
    letter-spacing: 3px;
    font-family: "Courier New", monospace;
    color: rgba(255, 255, 255, 0.8);
}
.wow-card__tier-badge {
    background: transparent;
    border: 1.5px solid rgba(201, 162, 39, 0.65);
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d4af37;
}

.wow-btn-gold {
    display: inline-block;
    background: linear-gradient(135deg, #7b5e00, #c9a227);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.wow-btn-gold:hover {
    opacity: 0.88;
    color: #fff;
}

/* -----------------------------------------------
   Membership Dashboard (membership/index.blade.php)
   ----------------------------------------------- */
.wow-dashboard {
    padding: 50px 0 60px;
}

/* ---- ImagiKEY Card wrapper ---- */
.wow-card-wrap {
    max-width: 500px;
    margin: 0 auto 48px;
}

/* ================================================
   ImagiKEY Card — Exact Reference Design
   Uses CSS Grid rows so content always fits the
   credit-card aspect ratio without clipping.
   Grid: [top-row] [avatar-row] [credits 1fr] [number] [meta]
   ================================================ */

/* .wow-pass-card {
    aspect-ratio: 1.586 / 1;
    border-radius: 18px;
    border: 1.5px solid rgba(201,162,39,.50);
    box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 4px 16px rgba(0,0,0,.3);
    color: #fff;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    padding: 18px 24px 16px;
    row-gap: 8px;
}

.wow-pass-card.tier-standard,
.wow-pass-card.tier-silver {
    background: linear-gradient(150deg, #0f1e3c 0%, #1a2f58 50%, #142444 100%);
}
.wow-pass-card.tier-gold {
    background: linear-gradient(150deg, #1a1200 0%, #2e2000 50%, #1a1200 100%);
}
.wow-pass-card.tier-platinum {
    background: linear-gradient(150deg, #0a1422 0%, #142030 50%, #0a1422 100%);
}

.wow-pass-card::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 315'%3E%3Ccircle cx='490' cy='-55' r='240' fill='%23213672' stroke='%2328406a' stroke-width='1'/%3E%3Ccircle cx='-45' cy='380' r='240' fill='%23213672' stroke='%2328406a' stroke-width='1'/%3E%3Ccircle cx='640' cy='157' r='120' fill='none' stroke='white' stroke-width='0.7' stroke-opacity='0.12'/%3E%3Ccircle cx='640' cy='157' r='150' fill='none' stroke='white' stroke-width='0.7' stroke-opacity='0.11'/%3E%3Ccircle cx='640' cy='157' r='180' fill='none' stroke='white' stroke-width='0.7' stroke-opacity='0.10'/%3E%3Ccircle cx='640' cy='157' r='210' fill='none' stroke='white' stroke-width='0.7' stroke-opacity='0.08'/%3E%3Ccircle cx='640' cy='157' r='240' fill='none' stroke='white' stroke-width='0.7' stroke-opacity='0.07'/%3E%3Ccircle cx='640' cy='157' r='270' fill='none' stroke='white' stroke-width='0.6' stroke-opacity='0.06'/%3E%3Ccircle cx='640' cy='157' r='300' fill='none' stroke='white' stroke-width='0.6' stroke-opacity='0.05'/%3E%3Ccircle cx='640' cy='157' r='330' fill='none' stroke='white' stroke-width='0.6' stroke-opacity='0.04'/%3E%3Ccircle cx='640' cy='157' r='360' fill='none' stroke='white' stroke-width='0.5' stroke-opacity='0.03'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 0;
}
.wow-pass-card::after { content: none; } */

/* ── Row 1: Chip + Org/Title ── */
.card-top-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.card-chip {
    width: 46px;
    height: 35px;
    flex-shrink: 0;
    background: linear-gradient(
        145deg,
        #f0d060 0%,
        #c9a227 30%,
        #9a7510 65%,
        #d4af37 100%
    );
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
}
.card-chip::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.2) 1px, transparent 1px);
    background-size: 11px 11px;
}
.card-chip::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    z-index: 1;
}

.card-org-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.card-org {
    font-size: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 3px;
    font-weight: 400;
}
.card-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
    margin: 0;
}

/* ── Row 2: Avatar + Member Name ── */
.card-avatar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.card-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid #c9a227;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    color: #c9a227;
    letter-spacing: 1px;
}
.card-member-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

/* ── Row 3: WOW Credits (fills remaining 1fr space) ── */
.card-credits-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.card-credits-label {
    font-size: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c9a227;
    font-weight: 600;
    margin-bottom: 1px;
}
.card-credits {
    font-size: 50px;
    font-weight: 900;
    line-height: 1;
    color: #c9a227;
    letter-spacing: 1px;
    text-shadow: 0 2px 16px rgba(201, 162, 39, 0.45);
}
.card-credits-sub {
    font-size: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

/* ── Row 4: Card Number ── */
/* .card-number {
    font-family: 'Courier New', monospace;
    font-size: 17px; letter-spacing: 1px; word-spacing: 20px;
    color: rgba(255,255,255,.90);
    text-align: center; font-weight: 400;
    position: relative; z-index: 1;
} */

/* ── Row 5: Valid Thru + Tier Badge ── */
.card-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}
.card-meta-label {
    font-size: 7px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #c9a227;
    margin-bottom: 2px;
}
.card-meta-value {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}
.card-tier-badge {
    background: transparent;
    border: 1.5px solid rgba(201, 162, 39, 0.7);
    border-radius: 30px;
    padding: 4px 14px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d4af37;
}

/* Card action buttons below the card */
.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.card-action-btn {
    flex: 1;
    min-width: 90px;
    background: #1b2a4a;
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 9px 12px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.card-action-btn:hover {
    background: #263d6e;
    color: #fff;
}
.card-action-btn i {
    font-size: 14px;
}

/* ---- Section headings ---- */
.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1b2a4a;
    margin-bottom: 6px;
}
.section-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* ---- Tier comparison table ---- */
.tier-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.tier-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}
.tier-table th,
.tier-table td {
    padding: 13px 18px;
    text-align: center;
    border: 1px solid #e0e0e0;
    font-size: 14px;
}
.tier-table thead th:first-child {
    text-align: left;
}
.tier-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    background: #f9f9f9;
    color: #333;
}

.tier-table th.tier-h {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.tier-table th.active-tier {
    outline: 3px solid #c9a227;
    outline-offset: -3px;
}
.tier-table th {
    background: #1b2a4a;
    color: #fff;
}

.tier-current-badge {
    display: block;
    font-size: 10px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 2px 8px;
    margin-top: 4px;
    letter-spacing: 1px;
}

/* ---- Full features table ---- */
.features-section {
    margin-bottom: 40px;
}

.features-accordion .accordion-button {
    font-weight: 700;
    color: #1b2a4a;
    background: #f4f6fb;
    font-size: 15px;
}
.features-accordion .accordion-button:not(.collapsed) {
    background: #1b2a4a;
    color: #fff;
    box-shadow: none;
}
.features-accordion .accordion-button::after {
    filter: none;
}
.features-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.features-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}
.features-table th,
.features-table td {
    padding: 11px 16px;
    text-align: center;
    border: 1px solid #e8e8e8;
    font-size: 13px;
}
.features-table thead th {
    background: #1b2a4a;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.features-table tbody tr:nth-child(even) td {
    background: #f9f9f9;
}
.features-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: #333;
}

/* ---- Programs ---- */
.programs-section {
    margin-bottom: 40px;
}

.program-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.22s,
        box-shadow 0.22s;
}
.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

.program-card-img {
    width: 100%;
    height: 79px;
    object-fit: contain;
    padding: 14px;
}
.program-card-img-placeholder {
    width: 100%;
    height: 170px;
    background: linear-gradient(135deg, #1b2a4a, #4a4e69);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
}

.program-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.program-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1b2a4a;
    margin-bottom: 8px;
}
.program-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.55;
    flex: 1;
    margin-bottom: 12px;
}

.program-points {
    display: inline-block;
    background: #fff8e1;
    color: #7b5e00;
    border: 1px solid #ffe082;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 12px;
    margin-bottom: 12px;
}

.btn-book-now {
    display: inline-block;
    background: linear-gradient(135deg, #7b5e00, #c9a227);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
    align-self: flex-start;
}
.btn-book-now:hover {
    opacity: 0.88;
}

.btn-book-soon {
    display: inline-block;
    background: #f5f5f5;
    color: #888;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600;
    align-self: flex-start;
}

/* ---- Recent transactions ---- */
.recent-tx {
    margin-bottom: 40px;
}

.tx-table {
    width: 100%;
    border-collapse: collapse;
}
.tx-table th,
.tx-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}
.tx-table th {
    background: #f4f6fb;
    font-weight: 700;
    color: #1b2a4a;
}
.tx-amount-pos {
    color: #2e7d32;
    font-weight: 600;
}
.tx-amount-neg {
    color: #c62828;
    font-weight: 600;
}

/* ---- Booking modal iframe ---- */
.booking-modal-iframe {
    width: 100%;
    height: 580px;
    border: none;
    border-radius: 6px;
}

/* -----------------------------------------------
   Auth page: combined Login / Register
   ----------------------------------------------- */
.wow-auth-wrap {
    max-width: 520px;
    margin: 60px auto;
    padding: 0 16px;
}

.wow-auth-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: #555;
    font-weight: 600;
    padding: 14px 24px;
    background: #f8f8f8;
}
.wow-auth-tabs .nav-link.active {
    border-bottom-color: #1b2a4a;
    color: #1b2a4a;
    background: #fff;
}

/* -----------------------------------------------
   Responsive
   ----------------------------------------------- */
@media (max-width: 560px) {
    .wow-card-wrap {
        max-width: 100%;
    }
    .wow-pass-card {
        padding: 13px 16px 12px;
        border-radius: 14px;
        row-gap: 5px;
    }
    .card-title {
        font-size: 17px;
        letter-spacing: 2px;
    }
    .card-credits {
        font-size: 34px;
    }
    /* .card-number     { font-size: 12px; letter-spacing: 0; word-spacing: 10px; } */
    .card-avatar {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }
    .card-chip {
        width: 36px;
        height: 28px;
    }
    .card-member-name {
        font-size: 12px;
    }
    .wow-card__credits {
        font-size: 24px;
    }
    .tier-table th,
    .tier-table td,
    .features-table th,
    .features-table td {
        padding: 9px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .card-actions {
        flex-direction: column;
    }
    .card-action-btn {
        min-width: unset;
    }
}
