﻿/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BODY ===== */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    margin: 0;
}
/* ===== PAGE HEADER ===== */
.page-header {
    margin-bottom: 15px;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: #0b5394;
}

.page-subtitle {
    font-size: 12px;
    color: #666;
}
/* ===== CONTAINER ===== */
.container {
    max-width: 680px;
    margin: 20px auto;
    padding: 10px;
}

/* ===== CARD ===== */
.card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ===== TITLES ===== */
.title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
}

.subtitle {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

/* ===== FORM ===== */
.form-group {
    margin-bottom: 15px;
}

.input-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
}

    .input-box i {
        color: #0b5394;
        margin-right: 10px;
    }

.input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.btn-register {
    width: 100%;
    padding: 10px;
    background: #c4161c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-register:hover {
        background: #a50f14;
    }
/* ===== BUTTON ===== */
.btn-login,
.btn-primary {
    width: 100%;
    padding: 12px;
    background: #0b5394;
    color: #fff;
    border: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
}

    .btn-primary:hover {
        transform: scale(1.03);
    }
/* ===== MESSAGE ===== */
.message-label {
    display: block;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
}

.message-success {
    background: #e6ffed;
    color: #1a7f37;
}

.message-error {
    background: #ffe6e6;
    color: #cc0000;
}

/* ===== NAVBAR (FIXED VERSION - NO SCROLL) ===== */
.member-nav {
    display: flex;
    flex-wrap: wrap; /* 🔥 KEY FIX */
    justify-content: center;
    gap: 10px;
    background: #0b5394;
    padding: 12px;
}

    /* NAV ITEMS */
    .member-nav a {
        text-decoration: none;
        color: #fff;
        font-size: 13px;
        padding: 8px 12px;
        border-radius: 8px;
        background: rgba(255,255,255,0.1);
    }

        /* ACTIVE */
        .member-nav a.active {
            background: #fff;
            color: #0b5394;
            font-weight: 600;
        }

/* ===== DASHBOARD ===== */
.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-highlight {
    color: #0b5394;
    font-weight: 600;
}

.status-badge {
    background: #e6ffed;
    color: #1a7f37;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.card-divider {
    margin: 15px 0;
    border-top: 1px solid #eee;
}

/* DATA */
.data-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.data-label {
    font-size: 13px;
    color: #555;
}

.data-value {
    font-weight: 500;
}

/* WALLET */
.highlight-box {
    background: linear-gradient(135deg, #0b5394, #073763);
    color: #fff;
    padding: 12px;
    border-radius: 10px;
}

.balance {
    font-size: 18px;
    font-weight: bold;
}

/* LINK */
.link-copy-box {
    background: #f5f5f5;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    word-break: break-all;
}
/* ===== TABLE WRAPPER ===== */
.table-wrapper {
    width: 100%;
    overflow-x: auto; /* Enables horizontal scrolling */
    margin-top: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== TABLE STYLING ===== */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 13px;
}

    /* HEADER */
    .table th {
        background: #0b5394;
        color: #fff;
        padding: 12px;
        text-align: left;
        font-weight: 500;
    }

    /* ROW */
    .table td {
        padding: 12px;
        border-bottom: 1px solid #eee;
    }

/* ALTERNATE ROW */
.table-alt-row {
    background: #f9f9f9;
}

/* HOVER EFFECT */
.table tr:hover {
    background: #f1f5f9;
}

/* AMOUNT HIGHLIGHT */
.table td:nth-child(4) {
    color: #1a7f37;
    font-weight: 600;
}
/* ===== MOBILE ===== */
@media (max-width: 600px) {

    .container {
        margin: 10px auto;
    }

    .card {
        padding: 15px;
    }

    .page-title {
        font-size: 18px;
    }

    .page-subtitle {
        font-size: 11px;
    }

    .input {
        padding: 8px;
        font-size: 13px;
    }

    .btn-primary {
        padding: 10px;
    }
    /* GRID MENU (🔥 FINAL FIX) */
    .member-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

        .member-nav a {
            text-align: center;
            font-size: 12px;
            padding: 10px 5px;
        }

    .welcome-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .data-row {
        flex-direction: column;
        gap: 5px;
    }
}
/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .table-wrapper {
        overflow-x: scroll; /* Enables horizontal scroll on small screens */
    }

    .table th, .table td {
        padding: 8px;
        font-size: 12px;
    }

        /* Fix Date Column Overflow */
        .table td:nth-child(5) {
            max-width: none; /* Allow the date to be visible */
            text-overflow: clip;
            overflow: visible;
            white-space: normal; /* Allow date to wrap if necessary */
        }
}

/* MOBILE VIEW - STACKED TABLE */
@media (max-width: 600px) {
    .table thead {
        display: none; /* Hides the table headers */
    }

    .table th {
        background: #0b5394;
        color: #fff;
        padding: 16px;
        text-align: left;
        font-weight: 500;
    }

    .table, .table tbody, .table tr, .table td {
        display: block;
        width: 100%;
    }

        .table tr {
            margin-bottom: 12px;
            background: #fff;
            border-radius: 8px;
            padding: 8px;
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        }

        .table td {
            text-align: right;
            padding-left: 50%;
            position: relative;
        }

            .table td::before {
                content: attr(data-label);
                position: absolute;
                left: 10px;
                font-weight: 600;
                color: #555;
                text-align: left;
            }

            /* Fix Date Column */
            .table td:nth-child(5) {
                max-width: 100% !important;
                white-space: normal !important;
                overflow: visible !important;
                text-overflow: initial !important;
            }
}


/* ===== CARD WRAPPER ===== */
.card-wrapper {
    width: 100%;
    max-width: 400px; /* Controls the maximum width of the card */
    margin: 20px auto; /* Centers the card on the page */
    perspective: 1000px; /* Enables 3D effects if needed */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== ID CARD ===== */
.id-card {
    width: 100%;
    max-width: 400px; /* Keeps the card at a fixed width */
    height: 280px; /* Defines the height of the card */
    background: white; /* Card background color */
    border-radius: 12px; /* Rounded corners for a soft look */
    border: 2px solid #0a3a6b; /* Border color */
    box-shadow: 0 8px 25px rgba(0,0,0,0.2); /* Soft shadow for a raised effect */
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ===== HEADER ===== */
.card-header {
    background: #0a3a6b;
    color: white;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    height: 60px; /* Fixed height for the header */
    box-sizing: border-box;
}

.logo {
    width: 38px;
    height: 38px;
    background: white;
    padding: 2px;
    border-radius: 4px;
    object-fit: contain;
}

.title-section {
    margin-left: 12px;
    text-align: left;
}

.title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.subtitle {
    font-size: 10px;
    opacity: 0.85;
    margin: 0;
}

/* ===== BODY ===== */
.card-body {
    display: flex;
    align-items: flex-start;
    padding: 12px 15px;
    flex: 1;
    background: linear-gradient(to bottom right, #ffffff, #f9fafb);
}

.photo-section {
    margin-right: 12px;
}

.member-photo {
    width: 70px;
    height: 85px;
    border: 1px solid #ddd;
    border-radius: 5px;
    object-fit: cover;
}

.member-details {
    flex: 1;
    text-align: left;
    font-size: 11px;
    color: #333;
    line-height: 1.4;
}

    .member-details p {
        margin: 2px 0;
    }

.qr-section {
    margin-left: 5px;
}

.qr {
    width: 55px;
    height: 55px;
    padding: 2px;
    border: 1px solid #eee;
    background: #fff;
}

/* ===== FOOTER ===== */
.card-footer {
    background: #f5f7fa;
    padding: 5px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    border-top: 1px solid #eee;
    height: 35px;
}

.valid {
    color: #28a745;
    font-weight: 700;
    text-transform: uppercase;
}

.authority {
    color: #555;
    font-style: italic;
    font-weight: 600;
}

/* ===== DOWNLOAD BUTTON ===== */
.btn-download {
    margin-top: 25px;
    width: 90%;
    max-width: 400px;
    padding: 15px;
    background: #0a7c3a;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}
/* Member Info Bar Styling */
.member-info-bar {
    display: flex;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #4CAF50; /* Accent color */
}

.info-label {
    font-size: 12px;
    color: #666;
    display: block;
    text-transform: uppercase;
}

.info-value {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}
/* ===== MOBILE FIX ===== */
@media (max-width: 420px) {
    .id-card {
        transform: scale(0.85); /* Shrinks the card for mobile */
        margin-bottom: -40px;
    }
}

@media (max-width: 360px) {
    .id-card {
        transform: scale(0.78);
        margin-bottom: -60px;
    }
}

/* PRINT OPTIMIZATION */
@media print {
    body {
        background: none;
        padding: 0;
    }

    .btn-download, .member-nav {
        display: none !important;
    }

    .card-wrapper {
        margin: 0;
        width: 400px;
    }

    .id-card {
        transform: scale(1);
        border: 1px solid #0a3a6b;
    }
}

/* ==========================================
   PREMIUM MEMBERSHIP HEADER DESIGN
   ========================================== */

.register-container {
    max-width: 550px;
    margin: 80px auto;
    padding: 0 20px;
}

.register-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #f0f0f0;
}

.register-title {
    text-align: center;
    color: #0b5394;
    margin-bottom: 25px;
}

.premium-header-banner {
    background: linear-gradient(135deg, #0a3a6b 0%, #1e4e8c 100%);
    margin: -40px -40px 30px -40px; /* Aligns with card edges */
    padding: 40px 20px;
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

    /* Decorative background circle */
    .premium-header-banner::after {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 150px;
        height: 150px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
    }

.badge-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-icon-circle {
    font-size: 24px;
    margin-bottom: 10px;
}

.membership-h2 {
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.membership-p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
    max-width: 280px;
    margin: 0 auto !important;
    line-height: 1.4;
}

/* Refined Price Badge */
.price-badge-container {
    margin-top: -55px; /* Pulls it up into the blue banner */
    position: relative;
    z-index: 2;
}

.price-badge {
    background: #ffffff !important;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    padding: 12px 25px !important;
    color: #0a3a6b !important;
}

    .price-badge .currency {
        font-size: 18px;
        vertical-align: top;
        margin-right: 2px;
    }

    .price-badge .duration {
        color: #888 !important;
        font-size: 13px !important;
    }

/* Premium Button Look */
.btn-primary-premium {
    display: block;
    background: #c4161c;
    color: white !important;
    text-decoration: none;
    padding: 18px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 22, 28, 0.3);
    margin-top: 20px;
}

    .btn-primary-premium:hover {
        background: #a50f14;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(196, 22, 28, 0.4);
    }

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    text-align: left;
}

    .features-list li {
        padding: 12px 0;
        border-bottom: 1px solid #f9f9f9;
        color: #444;
        display: flex;
        align-items: center;
        font-size: 16px;
    }

        .features-list li:last-child {
            border-bottom: none;
        }

    .features-list .icon {
        background: #e7f4e9;
        color: #2e7d32;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
        font-size: 12px;
        font-weight: bold;
    }

.secure-text {
    margin-top: 20px;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Mobile Tweak */
@media (max-width: 600px) {
    .premium-header-banner {
        margin: -20px -20px 30px -20px;
        padding: 30px 15px;
    }

    .membership-h2 {
        font-size: 22px !important;
    }
}

.seo-content {
    max-width: 95%;
    margin: 10px auto;
    padding: 10px 10px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

    /* Headings */
    .seo-content h1 {
        font-size: 28px;
        color: #1f2937;
        margin-bottom: 15px;
        border-left: 5px solid #2563eb; /* Blue accent */
        padding-left: 12px;
    }

    .seo-content h2 {
        font-size: 22px;
        color: #111827;
        margin-top: 10px;
        margin-bottom: 12px;
    }

    /* Paragraph text */
    .seo-content p {
        font-size: 16px;
        line-height: 1.75;
        color: #374151;
        margin-bottom: 14px;
    }

/* Highlight keywords */
.seo-highlight {
    color: #2563eb;
    font-weight: 600;
}
/* ===== INTRO SECTION (Using Your Existing Style) ===== */
.banking-intro {
    background: #fafafa;
    border-left: 4px solid #b11226;
    padding: 10px;
    margin: 20px auto;
    border-radius: 12px;
    max-width: 95%;
}

    .banking-intro p {
        font-size: 15.5px;
        line-height: 1.7;
        color: #333;
    }
