/* Modern Member Portal Styles */

        /*
         * Normalize rem to 16px so our portal's rem values render consistently.
         * The Red theme sets body { font-size: 15pt } (≈20px) using em units;
         * without this, 1rem resolves to whatever the browser default is and
         * our portal text ends up noticeably smaller than the surrounding site.
         */
        html { font-size: 16px; }

        :root {
            --primary:        #3a597a;  /* theme blue accent */
            --primary-dark:   #293034;  /* theme dark bg */
            --success:        #28a745;
            --warning:        #ffc107;
            --danger:         #dc3545;
            --light:          #f8f9fa;
            --dark:           #333131;  /* theme heading/text color */
            --text-secondary: #6c757d;  /* secondary / meta text */
            --border:         #dee2e6;
            --shadow-sm:      0 2px 4px rgba(0,0,0,0.04);
            --shadow:         0 4px 12px rgba(0,0,0,0.08);
            --shadow-lg:      0 8px 24px rgba(0,0,0,0.12);
            --radius:         12px;
            --radius-sm:      8px;
        }



        /* Main Layout */
        .member-portal {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem;
            font-size: 1rem;        /* explicit base so portal doesn't inherit 15pt body */
            font-weight: 400;
            line-height: 1.6;
            color: var(--dark);
        }

        .member-portal-header {
            background: white;
            padding: 1.5rem 2rem;
            border-radius: var(--radius);
            box-shadow: var(--shadow-sm);
            margin-bottom: 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .member-portal-header h1 {
            margin: 0;
            font-size: 1.75rem;
            font-weight: 600;
            color: var(--dark);
        }

        .member-portal-header .member-info {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .member-portal-header .member-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 1rem;
        }

        .member-portal-header .member-name {
            font-weight: 500;
            color: var(--dark);
        }

        /* Two Column Layout — grid-areas so need-help can live in its own cell */
        .member-portal-layout {
            display: grid;
            grid-template-columns: 1fr 280px;
            grid-template-areas:
                "content sidebar"
                "content need-help";
            gap: 2rem;
            align-items: start;
        }

        /* Main Content Area */
        .member-portal-content {
            grid-area: content;
            background: white;
            padding: 1rem;
            padding-top: 0 !important;
            border-radius: var(--radius);
            box-shadow: var(--shadow-sm);
            min-height: 400px;
            font-size: 0.9375rem; /* 15px — sets inherited base for all portal body text */
            line-height: 1.6;
            box-sizing: border-box;
            overflow-x: hidden;
            width: 100%;
        }

        /* Tablet and up: increase padding */
        @media (min-width: 768px) {
            .member-portal-content {
                padding: 1.5rem;
            }
        }

        /* Desktop: full padding */
        @media (min-width: 992px) {
            .member-portal-content {
                padding: 2rem;
            }
        }

        /* Sidebar Navigation */
        .member-portal-sidebar {
            grid-area: sidebar;
        }

        /* Need Help cell — right column, below sidebar */
        .member-need-help-cell {
            grid-area: need-help;
            align-self: start;
        }

        .member-nav {
            background: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow-sm);
            overflow: hidden;
        }

        .member-nav-header {
            padding: 1.25rem 1.5rem;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            font-weight: 600;
            font-size: 0.875rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .member-nav-list {
            list-style: none;
            margin: 0;
            padding: 0!important;
        }

        .member-nav-item {
            margin: 0;
            padding-left:0px!important;
        }

        .member-nav-link {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.875rem 1.5rem;
            color: var(--dark);
            text-decoration: none;
            transition: all 0.2s ease;
            border-left: 3px solid transparent;
            font-size: 0.9375rem;
        }

        .member-nav-link:hover {
            background: #f8f9fa;
            color: var(--primary);
            border-left-color: var(--primary);
        }

        .member-nav-link.active {
            background: #e7f3ff;
            color: var(--primary);
            border-left-color: var(--primary);
            font-weight: 500;
        }

        .member-nav-link i {
            width: 20px;
            text-align: center;
            font-size: 1.1rem;
        }

        .member-nav-divider {
            height: 1px;
            background: var(--border);
            margin: 0.5rem 0;
        }

        /* Card Styles (Less Blocky) */
        .card {
            background: white;
            border-radius: var(--radius-sm);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            border: 1px solid #e9ecef;
            transition: all 0.2s ease;
        }

        .card:hover {
            box-shadow: var(--shadow);
            border-color: #dee2e6;
        }

        .card-header {
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--dark);
            margin: 0 0 1rem 0;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid #f8f9fa;
        }

        /* Alert Styles (Modern) */
        .alert {
            padding: 1rem 1.25rem;
            border-radius: var(--radius-sm);
            margin-bottom: 1.5rem;
            display: flex;
            gap: 1rem;
            align-items: start;
        }

        .alert-icon {
            font-size: 1.25rem;
        }

        .alert-info {
            background: #e7f3ff;

            color: #084298;
        }

        .alert-success {
            background: #d1e7dd;
            color: #0f5132;
        }

        .alert-warning {
            background: #fff3cd;
            color: #856404;
        }

        .alert-danger {
            background: #f8d7da;
            color: #721c24;
        }

        /* Button Styles (Modern) */
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.625rem 1.25rem;
            border-radius: var(--radius-sm);
            font-weight: 500;
            font-size: 0.9375rem;
            text-decoration: none;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-primary {
            background: var(--primary);
            color: white!important;
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            box-shadow: var(--shadow);
            transform: translateY(-1px);
        }

        .btn-outline {
            background: white;
            color: var(--primary);
            border: 1px solid var(--primary);
        }

        .btn-outline:hover {
            background: var(--primary);
            color: white;
        }

        /* Form Styles */
        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: var(--dark);
            font-size: 0.9375rem;
        }

        .form-control {
            width: 100%;
            padding: 0.625rem 0.875rem;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 0.9375rem;
            transition: all 0.2s ease;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
        }

        /* ── Mobile collapse nav (hidden on desktop) ─────────────────────── */
        .member-mobile-nav-wrap {
            display: none;
            margin-bottom: 1rem;
        }

        .member-mobile-nav-toggle {
            width: 100%;
            text-align: left;
            background: white;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            box-shadow: var(--shadow-sm);
            padding: 0.8rem 1.1rem;
            font-size: 0.9375rem;
            font-weight: 600;
            color: var(--dark);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }

        .member-mobile-nav-toggle .toggle-chevron {
            margin-left: auto;
            color: #adb5bd;
            transition: transform 0.2s ease;
        }

        .member-mobile-nav-toggle[aria-expanded="true"] .toggle-chevron {
            transform: rotate(180deg);
        }

        .member-mobile-nav-collapse {
            display: none;
            background: white;
            border: 1px solid var(--border);
            border-top: none;
            border-radius: 0 0 var(--radius-sm) var(--radius-sm);
            box-shadow: var(--shadow-sm);
            overflow: hidden;
        }

        .member-mobile-nav-collapse.is-open {
            display: block;
        }

        /* collapse nav links inherit the same sidebar link styles */
        .member-mobile-nav-collapse .member-nav-link {
            border-radius: 0;
        }

        .member-mobile-nav-collapse .member-nav-divider {
            height: 1px;
            background: var(--border);
        }

        /* ── Responsive ──────────────────────────────────────────────────── */
        @media (max-width: 991px) {
            .member-portal {
                padding: 1rem;
            }

            /* Show the Bootstrap collapse nav, hide the sidebar entirely */
            .member-mobile-nav-wrap {
                display: block;
            }

            .member-portal-sidebar {
                display: none;
            }

            /* Single-column; need-help falls naturally after content */
            .member-portal-layout {
                grid-template-columns: 1fr;
                grid-template-areas:
                    "content"
                    "need-help";
            }

            .member-portal-content {
                padding: 1.25rem;
            }
        }

        @media (max-width: 576px) {
            .member-portal {
                padding: 0.5rem;
            }

            .member-portal-header {
                padding: 1rem;
                margin-bottom: 1rem;
            }

            .member-portal-header h1 {
                font-size: 1.375rem;
            }

            .member-portal-content {
                padding: 1rem;
            }
        }

        /* Status Badge */
        .status-badge {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 12px;
            font-size: 0.8125rem;
            font-weight: 500;
        }

        .status-active {
            background: #d1e7dd;
            color: #0f5132;
        }

        .status-pending {
            background: #fff3cd;
            color: #856404;
        }

        .status-expired {
            background: #f8d7da;
            color: #721c24;
        }

        /* Need Help Section */
        .need-help {
            background: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow-sm);
            padding: 1.5rem;
            margin-top: 1.5rem;
        }

        .need-help h3 {
            margin: 0 0 0.75rem 0;
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--dark);
        }

        .need-help p {
            margin: 0 0 1rem 0;
            color: var(--text-secondary);
            font-size: 0.9375rem;
            line-height: 1.5;
        }

        .need-help .btn {
            width: 100%;
            justify-content: center;
        }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.vieth-pr-wrap {
    display: flex;
    min-height: calc(100vh - 80px);
    margin: 0px -15px 0;
}

/* ── Left hero panel ────────────────────────────────────────────────────── */
.vieth-pr-hero {
    flex: 0 0 55%;
    position: relative;
    overflow: hidden;
    background-color: #1b2a4a;
    background-image: url('/application/files/wcrc-security-bg.jpg'); /* ← swap with your preferred image */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vieth-pr-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        145deg,
        rgba(15, 25, 55, 0.82) 0%,
        rgba(30, 60, 110, 0.65) 100%
    );
}

.vieth-pr-hero-inner {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    padding: 3rem 3.5rem;
    max-width: 520px;
}

.vieth-pr-hero-inner .hero-badge {
    display: inline-block;
    border: 2px solid rgba(255,255,255,0.45);
    border-radius: 50px;
    padding: 5px 18px;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.8rem;
}

.vieth-pr-hero-inner h1 {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1.2rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.vieth-pr-hero-inner p {
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.82);
    margin: 0 0 2.4rem;
}

.vieth-pr-divider {
    width: 48px;
    height: 3px;
    background: rgba(147, 197, 253, 0.6);
    border-radius: 2px;
    margin: 0 auto 2.4rem;
}

/* large lock icon above heading */
.vieth-pr-lock-icon {
    font-size: 3rem;
    color: rgba(147, 197, 253, 0.85);
    margin-bottom: 1.4rem;
    display: block;
}

/* password tips list */
.vieth-pr-tips {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 1.6rem;
}

.vieth-pr-tips li {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    padding: 5px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}

.vieth-pr-tips li i {
    color: #93c5fd;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.vieth-pr-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.vieth-pr-steps li {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vieth-pr-steps li i {
    font-size: 1rem;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.vieth-pr-steps li.step-active {
    color: #fff;
    font-weight: 600;
}

.vieth-pr-steps li.step-active i {
    color: #93c5fd;
}

.vieth-pr-steps li.step-done i {
    color: #93c5fd;
}

.vieth-pr-steps li.step-pending i {
    color: rgba(255,255,255,0.35);
}

.vieth-pr-steps li.step-pending {
    color: rgba(255,255,255,0.45);
}

/* ── Right form panel ───────────────────────────────────────────────────── */
.vieth-pr-form-panel {
    flex: 0 0 45%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.vieth-pr-form-inner {
    width: 100%;
    max-width: 380px;
}

.vieth-pr-form-inner .form-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.vieth-pr-form-inner .logo-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1a6b3c;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0;
}

.vieth-pr-form-inner h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.4rem;
    text-align: center;
}

.vieth-pr-form-inner .form-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 2rem;
}

.vieth-pr-form-inner .vieth-form-group {
    margin-bottom: 1.1rem;
}

.vieth-pr-form-inner .vieth-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.vieth-pr-form-inner .vieth-form-group input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    color: #1a1a1a;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.vieth-pr-form-inner .vieth-form-group input:focus {
    outline: none;
    border-color: #1a6b3c;
    box-shadow: 0 0 0 3px rgba(26, 107, 60, 0.12);
}

.vieth-form-helper {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0.3rem 0 0;
}
#page-wrapper .vieth-btn-primary,
.vieth-btn-primary {
    width: 100%;
    padding: 0.8rem;
    background: #1a6b3c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.6rem;
    transition: background 0.15s;
}

.vieth-btn-primary:hover {
    background: #155730;
}

.vieth-pr-links {
    text-align: center;
    margin-top: 1.6rem;
    font-size: 0.88rem;
    color: #6c757d;
}

.vieth-pr-links a {
    color: #1a6b3c;
    text-decoration: none;
    font-weight: 500;
}

.vieth-pr-links a:hover {
    text-decoration: underline;
}

/* alerts */
.vieth-pr-alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1.4rem;
    border-radius: 6px;
    font-size: 0.9rem;
    border-left: 4px solid;
}

.vieth-pr-alert-danger {
    background: #fef2f2;
    border-color: #dc3545;
    color: #7f1d1d;
}

.vieth-pr-alert-info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e3a5f;
}

.vieth-pr-alert-success {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #14532d;
}

/* step 3 success state */
.vieth-pr-success {
    text-align: center;
    padding: 1rem 0;
}

.vieth-pr-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f0fdf4;
    border: 2px solid #86efac;
    margin-bottom: 1.5rem;
}

.vieth-pr-success-icon i {
    font-size: 2rem;
    color: #16a34a;
}

.vieth-pr-success h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.6rem;
}

.vieth-pr-success p {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0 0 2rem;
    line-height: 1.6;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .vieth-pr-wrap {
        flex-direction: column;
        margin: -20px -15px 0;
    }

    .vieth-pr-hero {
        flex: 0 0 auto;
        min-height: 200px;
    }

    .vieth-pr-hero-inner {
        padding: 1.5rem;
    }

    .vieth-pr-hero-inner h1 {
        font-size: 1.8rem;
    }

    .vieth-pr-steps {
        display: none;
    }

    .vieth-pr-form-panel {
        flex: 1;
        padding: 2rem 1.5rem;
    }
}

/* -----------------------------------------------
   LOGIN PAGE
   ----------------------------------------------- */

.vieth-login-wrap {
    display: flex;
    min-height: calc(100vh - 80px);
    margin: 0px -15px 0;
}

.vieth-login-hero {
    flex: 0 0 55%;
    position: relative;
    overflow: hidden;
    background-color: #1a3a2a;
    background-image: url('/application/files/wcrc-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vieth-login-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 40, 20, 0.72) 0%, rgba(0, 80, 40, 0.55) 100%);
}

.vieth-login-hero-inner {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    padding: 3rem 3.5rem;
    max-width: 520px;
}

.vieth-login-hero-inner .hero-badge {
    display: inline-block;
    border: 2px solid rgba(255,255,255,0.45);
    border-radius: 50px;
    padding: 5px 18px;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.8rem;
}

.vieth-login-hero-inner h1 {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1.2rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.vieth-login-hero-inner p {
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.82);
    margin: 0 0 2.4rem;
}

.hero-divider {
    width: 48px;
    height: 3px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    margin: 0 auto 2.4rem;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.hero-features li {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-features li i {
    color: #7ed4a4;
    font-size: 1rem;
    flex-shrink: 0;
}

.vieth-login-form-panel {
    flex: 0 0 45%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.vieth-login-form-inner {
    width: 100%;
    max-width: 380px;
}

.vieth-login-form-inner .form-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.vieth-login-form-inner .form-logo .logo-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1a6b3c;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.vieth-login-form-inner h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.4rem;
    text-align: center;
}

.vieth-login-form-inner .form-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0 0 2rem;
}

.vieth-login-form-inner .vieth-form-group {
    margin-bottom: 1.1rem;
}

.vieth-login-form-inner .vieth-form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.vieth-login-form-inner .vieth-form-group input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    color: #1a1a1a;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.vieth-login-form-inner .vieth-form-group input:focus {
    outline: none;
    border-color: #1a6b3c;
    box-shadow: 0 0 0 3px rgba(26, 107, 60, 0.12);
}

.vieth-btn-login {
    width: 100%;
    padding: 0.8rem;
    background: #1a6b3c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.6rem;
    transition: background 0.15s;
}

.vieth-btn-login:hover {
    background: #155730;
}

.vieth-login-links {
    text-align: center;
    margin-top: 1.6rem;
    font-size: 0.95rem;
    color: #6c757d;
}

.vieth-login-links a {
    color: #1a6b3c;
    text-decoration: none;
    font-weight: 500;
}

.vieth-login-links a:hover {
    text-decoration: underline;
}

.vieth-login-links .link-row {
    margin-bottom: 0.5rem;
}

.vieth-login-alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.4rem;
    border-radius: 6px;
    background: #fef2f2;
    border-left: 4px solid #dc3545;
    color: #7f1d1d;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .vieth-login-wrap {
        flex-direction: column;
        margin: -20px -15px 0;
    }
    .vieth-login-hero {
        flex: 0 0 auto;
        min-height: 220px;
        padding: 2rem 1.5rem;
    }
    .vieth-login-hero-inner {
        padding: 1.5rem;
    }
    .vieth-login-hero-inner h1 {
        font-size: 1.8rem;
    }
    .hero-features {
        display: none;
    }
    .vieth-login-form-panel {
        flex: 1;
        padding: 2rem 1.5rem;
    }
}

/* -----------------------------------------------
   SIGNUP PAGE
   ----------------------------------------------- */

.su-wrap {
    max-width: 75%;
    margin: 2rem auto;
    padding: 0 1rem;
    color: #212529;
}

@media (max-width: 900px) {
    .su-wrap { max-width: 100%; }
}

.su-header {
    text-align: center;
    margin-bottom: 2rem;
}

.su-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.375rem;
}

.su-header p { color: #6c757d; margin: 0; }

.su-alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid;
    font-size: 1rem;
}

.su-alert-danger  { background:#f8d7da; border-color:#dc3545; color:#721c24; }
.su-alert-success { background:#d4edda; border-color:#28a745; color:#155724; }
.su-alert-info    { background:#f5faf7; border-color:#617a60; color:#1a4d2e; }

.su-alert h4 { margin: 0 0 0.5rem; font-size: 1.1rem; font-weight: 600; }
.su-alert p:last-child { margin-bottom: 0; }

.su-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 720px) {
    .su-grid { grid-template-columns: 1fr; }
}

.su-card {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 1.25rem;
}

.su-card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    color: #495057;
    letter-spacing: 0.01em;
}

.su-card-header i { margin-right: 0.5rem; color: #617a60; }
.su-card-body { padding: 1.25rem; }

.su-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    margin-bottom: 0.875rem;
}

@media (max-width: 480px) { .su-row { grid-template-columns: 1fr; } }

.su-group { margin-bottom: 0.875rem; }
.su-group:last-child { margin-bottom: 0; }

.su-label {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 0.3rem;
}

.su-label .req { color: #dc3545; margin-left: 2px; }

.su-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
    color: #212529;
}

.su-input:focus {
    outline: none;
    border-color: #617a60;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
}

.su-hint {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.2rem;
}

.su-plan-list { display: flex; flex-direction: column; gap: 0.625rem; }

.su-plan-opt {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    border: 2px solid #dee2e6;
    border-radius: 7px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.su-plan-opt:has(input:checked) {
    border-color: #617a60;
    background: #f5faf7;
}

.su-plan-opt input[type="radio"] {
    width: auto;
    flex-shrink: 0;
    accent-color: #617a60;
    margin: 0;
}

.su-plan-info { flex: 1; min-width: 0; }

.su-plan-name {
    font-weight: 600;
    font-size: 1rem;
    color: #212529;
    display: block;
}

.su-plan-desc {
    font-size: 0.9rem;
    color: #6c757d;
    display: block;
}

.su-plan-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: #617a60;
    flex-shrink: 0;
}

.su-pay-list { display: flex; flex-direction: column; gap: 0.625rem; }

.su-pay-opt {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    border: 2px solid #dee2e6;
    border-radius: 7px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.su-pay-opt:has(input:checked) {
    border-color: #617a60;
    background: #f5faf7;
}

.su-pay-opt input[type="radio"] {
    width: auto;
    flex-shrink: 0;
    accent-color: #617a60;
    margin: 0;
}

.su-pay-info { flex: 1; }

.su-pay-name {
    font-weight: 600;
    font-size: 1rem;
    color: #212529;
    display: block;
}

.su-pay-desc {
    font-size: 0.9rem;
    color: #6c757d;
    display: block;
}

#su-check-info {
    display: none;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: #fffbec;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #664d03;
}

#su-check-info ol { margin: 0.375rem 0 0.5rem; padding-left: 1.25rem; }
#su-check-info li { margin-bottom: 0.2rem; }

.su-family-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #d4edda;
    border: 1px solid #28a745;
    border-radius: 6px;
    color: #155724;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.su-footer {
    margin-top: 0.25rem;
}

.su-btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.15s, transform 0.1s;
    text-decoration: none;
}

.su-btn:active { transform: translateY(1px); }

.su-btn-primary  { background: #617a60; color: #fff; }
.su-btn-primary:hover  { background: #4f6350; }

.reg-btn-primary  { background: #617a60; color: #fff; }
.reg-btn-primary:hover  { background: #4f6350; }


.su-btn-success  { background: #28a745; color: #fff; }
.su-btn-success:hover  { background: #218838; }

.su-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.su-pay-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5faf7;
    border: 1px solid #d4e5d9;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.su-pay-summary-label { color: #495057; font-size: 1rem; }
.su-pay-summary-label strong { display: block; font-size: 1.1rem; }
.su-pay-summary-label small { color: #6c757d; font-size: 0.9rem; }

.su-pay-summary-amount { font-size: 1.6rem; font-weight: 700; color: #617a60; }

#stripe-element-container {
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: #fff;
}

#stripe-errors {
    color: #dc3545;
    font-size: 0.95rem;
    min-height: 1.25rem;
    margin-bottom: 0.5rem;
}

.su-stripe-badge {
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.75rem;
}

.su-back-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #6c757d;
    text-decoration: underline;
    cursor: pointer;
}

.su-login-prompt {
    text-align: center;
    margin-top: 1.5rem;
    color: #6c757d;
    font-size: 0.95rem;
}

.su-login-prompt a { color: #617a60; }

.su-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: su-spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes su-spin { to { transform: rotate(360deg); } }

.su-single { max-width: 520px; margin: 0 auto; }

/* -----------------------------------------------
   DASHBOARD PAGE
   ----------------------------------------------- */

.db-greeting {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333131;
    margin: 0 0 1.5rem;
}

.db-greeting span { color: var(--primary); }

.db-trial-banner {
    background: linear-gradient(135deg, #fff8e6 0%, #fffbf0 100%);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.db-trial-banner-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: 1rem;
    color: #856404;
    margin-bottom: 0.75rem;
}

.db-trial-banner-header i { font-size: 1.1rem; }

.db-trial-progress {
    height: 6px;
    background: #ffe69c;
    border-radius: 3px;
    margin: 0.75rem 0;
    overflow: hidden;
    margin-top: 0.75rem;
}

.db-trial-progress-bar {
    height: 100%;
    background: #ffc107;
    border-radius: 3px;
    transition: width 0.3s;
}

.db-trial-steps {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.db-trial-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 1rem;
    color: #664d03;
}

.db-trial-steps li i {
    color: #ffc107;
    margin-top: 2px;
    flex-shrink: 0;
}

.db-trial-address {
    background: #fff;
    border: 1px solid #ffe69c;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    font-size: 1rem;
    color: #495057;
}

.db-trial-address strong { display: block; color: #212529; margin-bottom: 0.375rem; }

.db-trial-info-text {
    margin: 0;
    font-size: 1rem;
    color: #664d03;
}

.db-trial-info-text.with-bottom-margin {
    margin: 0 0 0.5rem;
}

.db-trial-completion-text {
    font-size: 0.9rem;
    color: #92400e;
    margin: 0.5rem 0 0;
}

.db-trial-completion-text.with-bottom-margin {
    margin: 0 0 0.75rem;
}

.db-check-toggle-btn {
    background: #fff;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    color: #856404;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.db-check-toggle-btn:hover { background: #fffbeb !important; }

#check-instructions-content {
    display: none;
    margin-top: 1rem;
}

.db-check-instructions-header {
    font-size: 0.95rem;
    color: #664d03;
    display: block;
    margin-bottom: 0.5rem;
}

.db-renewal-banner {
    border-radius: 8px;
    padding: 1.125rem 1.375rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.db-renewal-banner.expired  { background: #fff0f0; }
.db-renewal-banner.warning  { background: #fff8e6;  }

.db-renewal-banner i { font-size: 1.25rem; margin-top: 1px; }
.db-renewal-banner.expired i { color: #dc3545; }
.db-renewal-banner.warning i { color: #ffc107; }

.db-renewal-banner strong { display: block; font-size: 1rem; margin-bottom: 0.25rem; }
.db-renewal-banner p { margin: 0; font-size: 1rem; color: #6c757d; }

/* -----------------------------------------------
   RENEW PAGE
   ----------------------------------------------- */

.renew-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 0px !important;
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.page-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #212529;
}

.alert {
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.section {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.section h2 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #212529;
}

.current-status {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.current-status table {
    width: 100%;
}

/* -----------------------------------------------
   EVENTS PAGE
   ----------------------------------------------- */

.ev-page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333131;
    margin: 0 0 1.25rem;
}

.ev-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1.5rem;
    gap: 0;
}

.ev-tab {
    padding: 0.6rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.12s, border-color 0.12s;
    white-space: nowrap;
}

.ev-tab:hover  { color: var(--primary); }
.ev-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.ev-tab-pane        { display: none; }
.ev-tab-pane.active { display: block; }

.ev-tab-badge {
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 0.75rem;
    margin-left: 4px;
}

.ev-tab-badge--green { background: #d1fae5; color: #065f46; }
.ev-tab-badge--blue  { background: #e8f0fe; color: var(--primary); }

.ev-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.ev-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    transition: box-shadow 0.15s;
}

.ev-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.ev-card.past  { opacity: 0.85; }

.ev-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333131;
    margin: 0;
}

.ev-card-desc {
    font-size: 0.9375rem;
    color: #6c757d;
    margin: 0;
    flex: 1;
}

.ev-card-meta {
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ev-card-meta span { display: flex; align-items: center; gap: 0.4rem; }
.ev-card-price     { font-weight: 700; font-size: 0.95rem; color: #212529; }

.ev-card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.ev-card-attendee-count { font-size: 0.95rem; color: #6c757d; }
.ev-card-footer         { display: flex; flex-direction: column; gap: 0.5rem; }

.ev-btn {
    display: block;
    text-align: center;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    width: 100%;
    box-sizing: border-box;
}

#page-wrapper .ev-btn-primary  { background: #617a60; color: #fff; }
#page-wrapper .ev-btn-primary:hover { background: #1558b0; color: #fff; text-decoration: none; }
#page-wrapper .ev-btn-outline  { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
#page-wrapper .ev-btn-outline:hover { background: #e8f0fe; text-decoration: none; }
#page-wrapper .ev-btn-disabled { background: #e9ecef; color: #6c757d; cursor: not-allowed; }
#page-wrapper .ev-btn-others   { background: #fff; color: #1a6e3c; border: 1px solid #1a6e3c; font-size: 0.95rem; }
#page-wrapper .ev-btn-others:hover { background: #e8f5ee; text-decoration: none; color: #1a6e3c; }

.ev-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.ev-badge-registered { background: #d1fae5; color: #065f46; }
.ev-badge-paid       { background: #dbeafe; color: #1e40af; }
.ev-badge-attended   { background: #e5e7eb; color: #374151; }

.ev-flash-error,
.ev-flash-success,
.ev-flash-claimed {
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    font-size: 0.95rem;
}

.ev-flash-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.ev-flash-success {
    background: #d1e7dd;
    border: 1px solid #a3cfbb;
    border-left: 4px solid #28a745;
    color: #0f5132;
}

.ev-flash-claimed {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-left: 4px solid #059669;
    color: #065f46;
}

.ev-flash-icon { margin-top: 2px; flex-shrink: 0; }

.ev-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
}

/* -----------------------------------------------
   PAYMENT METHODS PAGE
   ----------------------------------------------- */

.payment-methods-page {
    max-width: 900px;
    margin: 0 auto;
}

.payment-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.payment-section h2 {
    margin: 0 0 20px 0;
    font-size: 1.4rem;
    color: #293034;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-section h2 i {
    color: #617a60;
}

.payment-methods-list {
    margin-top: 20px;
}

.payment-method-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.payment-method-card:hover {
    border-color: #617a60;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.payment-method-card.default {
    border-color: #28a745;
    background: #f0f9f4;
}

.payment-method-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-methods-page {
    max-width: 900px;
    margin: 0 auto;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.payment-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.payment-section h2 {
    margin: 0 0 20px 0;
    font-size: 1.4rem;
    color: #293034;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-section h2 i {
    color: #617a60;
}

.payment-methods-list {
    margin-top: 20px;
}

.payment-method-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.payment-method-card:hover {
    border-color: #617a60;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.payment-method-card.default {
    border-color: #28a745;
    background: #f0f9f4;
}

.payment-method-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-icon {
    font-size: 32px;
    color: #617a60;
}

.card-details h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #293034;
}

.card-details p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9375rem;
}

.default-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-left: 10px;
}

.payment-method-actions {
    display: flex;
    gap: 10px;
}
.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #6c757d;        /* Gray border */
    border-radius: 4px;                /* Slightly rounded corners */
    cursor: pointer;
    appearance: none;                  /* Remove default styling */
    background-color: white;
    transition: all 0.2s;
}
.member-portal-content .alert a{
	position:relative;
	top:5px;
}
.checkbox-group input[type="checkbox"]:hover {
    border-color: #617a60;            /* Blue border on hover */
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #617a60;        /* Blue background when checked */
    border-color: #617a60;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';                      /* White checkmark */
    color: white;
  top: -5px;
  position: relative;
  left: 2px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9375rem;
}

.btn-primary {
    background: #617a60;
    color: white;
}

.btn-primary:hover {
    background: #293034;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.add-payment-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

#card-element {
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    background: white;
    margin: 15px 0;
}

#card-element.StripeElement--focus {
    border-color: #617a60;
}

#card-errors {
    color: #dc3545;
    margin-top: 10px;
    font-size: 0.9375rem;
}

.auto-renewal-section {
    margin-top: 30px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #28a745;
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.auto-renewal-options {
    margin-top: 20px;
    padding: 20px;
    background: #e7f3ff;
    border-radius: 8px;
    border: 1px solid #b8d4f5;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #293034;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #617a60;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    margin-top: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    display: none;
}

.pm-inline-form {
    display: inline;
}

.pm-section-h3 {
    margin-top: 0;
}

.pm-submit-btn {
    margin-top: 1rem;
}

.pm-toggle-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pm-info-text {
    margin: 0 0 15px 0;
    color: #084298;
}

.pm-save-btn {
    margin-top: 1.25rem;
}

@media (max-width: 768px) {
    .payment-method-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .payment-method-actions {
        width: 100%;
        justify-content: flex-end;
    }
}


/* ── Dashboard layout ───────────────────────────────────────── */
.db-greeting {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333131;
    margin: 0 0 1.5rem;
}
.db-greeting span { color: var(--primary); }

/* ── Trial banner ───────────────────────────────────────────── */
.db-trial-banner {
    background: linear-gradient(135deg, #fff8e6 0%, #fffbf0 100%);

    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.db-trial-banner-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: 1rem;
    color: #856404;
    margin-bottom: 0.75rem;
}
.db-trial-banner-header i { font-size: 1.1rem; }
.db-trial-progress {
    height: 6px;
    background: #ffe69c;
    border-radius: 3px;
    margin: 0.75rem 0;
    overflow: hidden;
    margin-top: 0.75rem;
}
.db-trial-progress-bar {
    height: 100%;
    background: #ffc107;
    border-radius: 3px;
    transition: width 0.3s;
}
.db-trial-steps {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.db-trial-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9rem;
    color: #664d03;
}
.db-trial-steps li i {
    color: #ffc107;
    margin-top: 2px;
    flex-shrink: 0;
}
.db-trial-address {
    background: #fff;
    border: 1px solid #ffe69c;
    border-radius: 6px;
    padding: 0.875rem 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #495057;
}
.db-trial-address strong { display: block; color: #212529; margin-bottom: 0.375rem; }

/* ── Trial banner inline style replacements ─────────────────── */
.db-trial-info-text {
    margin: 0;
    font-size: 0.9rem;
    color: #664d03;
}
.db-trial-info-text.with-bottom-margin {
    margin: 0 0 0.5rem;
}
.db-trial-completion-text {
    font-size: 0.8125rem;
    color: #92400e;
    margin: 0.5rem 0 0;
}
.db-trial-completion-text.with-bottom-margin {
    margin: 0 0 0.75rem;
}
.db-check-toggle-btn {
    background: #fff;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 0.5rem 0.875rem;
    color: #856404;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}
.db-check-toggle-btn:hover { background: #fffbeb !important; }
#check-instructions-content {
    display: none;
    margin-top: 1rem;
}
.db-check-instructions-header {
    font-size: 0.85rem;
    color: #664d03;
    display: block;
    margin-bottom: 0.5rem;
}

/* ── Renewal alert ──────────────────────────────────────────── */
.db-renewal-banner {
    border-radius: 8px;
    padding: 1.125rem 1.375rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.db-renewal-banner.expired  { background: #fff0f0;  }
.db-renewal-banner.warning  { background: #fff8e6;  }
.db-renewal-banner i { font-size: 1.25rem; margin-top: 1px; }
.db-renewal-banner.expired i { color: #dc3545; }
.db-renewal-banner.warning i { color: #ffc107; }
.db-renewal-banner strong { display: block; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.db-renewal-banner p { margin: 0; font-size: 0.9375rem; color: #6c757d; }
.db-renew-link {
    display: inline-block;
    margin-top: 0.625rem;
    padding: 0.4rem 0.875rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}
#page-wrapper .db-renew-link.expired,
.db-renew-link.expired { background: #dc3545; color: #fff; }
#page-wrapper .db-renew-link.warning ,
.db-renew-link.warning { background: #ffc107; color: #212529; }

/* ── Stats strip ────────────────────────────────────────────── */
.db-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: #e9ecef;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.db-stat {
    background: #fff;
    padding: 1.125rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.db-stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
}
.db-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
}
.db-stat-value.text-danger  { color: #dc3545; }
.db-stat-value.text-success { color: #28a745; }
.db-stat-value.text-warning { color: #856404; }
.db-stat-sub {
    font-size: 0.9375rem;
    color: #6c757d;
}

/* ── Status pill ────────────────────────────────────────────── */
.db-status-pill {
    display: inline-block;
    padding: 0.2rem 0.625rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}
.db-status-active   { background: #d1fae5; color: #065f46; }
.db-status-succeeded { background: #d1fae5; color: #065f46; }
.db-status-completed { background: #d1fae5; color: #065f46; }
.db-status-pending  { background: #fef3c7; color: #92400e; }
.db-status-dropped  { background: #fee2e2; color: #991b1b; }
.db-status-denied   { background: #e5e7eb; color: #374151; }
.db-status-failed   { background: #fee2e2; color: #991b1b; }
.db-status-canceled { background: #e5e7eb; color: #374151; }

/* ── Section ────────────────────────────────────────────────── */
.db-section { margin-bottom: 1.5rem; }
.db-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin: 0 0 0.75rem;
}
.member-portal-content{
	width:100%;
	max-width:100%;
}
/* ── Info rows ──────────────────────────────────────────────── */
.db-info-list { list-style: none; padding: 0!important; margin: 0; }
.db-info-list li {
    display: flex;
    /*justify-content: space-between;*/
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9375rem;
}
.db-info-list li:last-child { border-bottom: none; }
.db-info-list .label { color: #6c757d;width:200px;max-width:100%; }
.db-info-list .value { font-weight: 500; color: #212529; text-align: left; }
.db-info-list .value.mono { font-family: monospace; font-size: 0.85rem; }
.db-info-icon { width: 16px; }
.db-info-value-right { text-align: right; max-width: 55%; }

/* ── Transaction table ──────────────────────────────────────── */
.db-transactions-wrap {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}
.db-transactions-table {
    width: 100%;
    border-collapse: collapse;
}
.db-transactions-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}
.db-transactions-table th {
    padding: 0.625rem 0.875rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    text-align: left;
    white-space: nowrap;
}
.db-transactions-table td {
    padding: 0.6rem 0.875rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}
.db-transactions-table tbody tr:last-child td {
    border-bottom: none;
}
.db-transactions-table tbody tr:hover {
    background: #f8f9fa;
}
.db-tx-date {
    color: #495057;
    font-size: 0.85rem;
    white-space: nowrap;
    line-height: 1.3;
}
.db-tx-time {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 1px;
}
.db-tx-history-label{
	margin-top:10px;
	margin-bottom:10px;
}
.db-tx-details {
    width: 100%;
}
.db-tx-type {
    font-weight: 600;
    color: #212529;
    font-size: 0.875rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}
.db-tx-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}
.db-tx-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #f1f3f5;
    color: #495057;
    font-size: 0.73rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    white-space: nowrap;
}
.db-tx-pill i {
    font-size: 0.65rem;
    opacity: 0.7;
}
.db-tx-pill-renewal {
    background: #e8f0fe;
    color: #1a56db;
}
.db-tx-pill-muted {
    background: #f8f9fa;
    color: #6c757d;
    font-weight: 400;
}
.db-tx-amount {
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: right;
}
.db-tx-status-col {
    white-space: nowrap;
}
.db-transactions-empty {
    padding: 3rem 2rem;
    text-align: center;
    color: #6c757d;
}
.db-transactions-empty i {
    font-size: 3rem;
    color: #d1d5db;
    display: block;
    margin-bottom: 1rem;
}
.db-transactions-empty p {
    margin: 0;
    font-size: 0.9rem;
}

.bfo-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--primary, #3a597a);
    text-decoration: none;
    margin-bottom: 1.25rem;
}
.bfo-back:hover { text-decoration: underline; }

.bfo-page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333131;
    margin: 0 0 1.5rem;
}

.bfo-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.bfo-card-label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9ca3af;
    margin: 0 0 0.875rem;
}
.bfo-dl { margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.bfo-dt { font-size: 0.8125rem; color: #6c757d; font-weight: 500; margin: 0; }
.bfo-dd { font-size: 0.9rem; color: #212529; font-weight: 500; margin: 0; }

.bfo-two-col {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 1.5rem;
    align-items: start;
}

.bfo-form-group { margin-bottom: 1rem; }
.bfo-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.4rem;
}

.bfo-qty-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.bfo-qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #f8f9fa;
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    flex-shrink: 0;
}
.bfo-qty-btn:hover { background: #e9ecef; }
.bfo-qty-display {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    min-width: 2rem;
    text-align: center;
}

/* Saved payment method styles — mirrors register.php */
.pm-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.625rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.pm-option:hover { border-color: var(--primary, #3a597a); background: #f8f9fa; }
.pm-option.pm-selected { border-color: var(--primary, #3a597a); background: #e8f0f8; }
.pm-option label { display: flex; align-items: center; gap: 0.75rem; margin: 0; cursor: pointer; width: 100%; }
.pm-option input[type="radio"] { width: 17px; height: 17px; margin: 0; flex-shrink: 0; cursor: pointer; accent-color: var(--primary, #3a597a); }
.pm-label-text { flex: 1; font-size: 0.9rem; color: #212529; }
.pm-label-text i { margin-right: 0.4rem; font-size: 1rem; }
.pm-badge-default { background: #28a745; color: #fff; padding: 1px 7px; border-radius: 3px; font-size: 0.8125rem; font-weight: 700; margin-left: 6px; }
.pm-divider { height: 1px; background: #e9ecef; margin: 0.75rem 0; }
#bfo-new-card-section { margin-top: 0.75rem; }
#bfo-card-element { border: 1px solid #ced4da; border-radius: 6px; padding: 0.6rem 0.75rem; background: #fff; margin-top: 0.4rem; }
#bfo-card-errors { font-size: 0.875rem; color: #dc3545; margin-top: 0.375rem; min-height: 1.2em; }

.bfo-btn {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    margin-bottom: 0.625rem;
    text-decoration: none;
    box-sizing: border-box;
}
#page-wrapper .bfo-btn-primary   { background: var(--primary, #3a597a); color: #fff; }
#page-wrapper .bfo-btn-primary:hover { background: var(--primary-dark, #293034); color: #fff; text-decoration: none; }
#page-wrapper .bfo-btn-secondary { background: #fff; color: #374151; border: 1px solid #ced4da; }
#page-wrapper .bfo-btn-secondary:hover { background: #f8f9fa; text-decoration: none; color: #374151; }
#page-wrapper .bfo-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.bfo-total-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.125rem;
    text-align: center;
}
.bfo-total-label  { font-size: 0.8125rem; color: #6c757d; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.375rem; }
.bfo-total-amount { font-size: 1.75rem; font-weight: 700; color: var(--primary, #3a597a); margin: 0; }
.bfo-total-detail { font-size: 0.875rem; color: #6c757d; margin: 0.25rem 0 0; }
.bfo-secure { font-size: 0.875rem; color: #6c757d; display: flex; align-items: center; gap: 0.4rem; margin-top: 0.875rem; }

/* Success step */
.bfo-success-wrap { max-width: 560px; margin: 0 auto; text-align: center; }
.bfo-success-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: #d1e7dd; color: #0f5132; font-size: 1.75rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
}
.bfo-success-title { font-size: 1.5rem; font-weight: 700; color: #333131; margin: 0 0 0.5rem; }
.bfo-success-lead  { color: #6c757d; font-size: 0.9375rem; margin: 0 0 1.5rem; }

.bfo-url-box {
    background: #fff8e1;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    text-align: left;
}
.bfo-url-label { font-size: 0.8125rem; font-weight: 700; color: #92400e; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.75rem; }
.bfo-url-text {
    background: #fff;
    border: 1px solid #fbbf24;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-family: monospace;
    font-size: 13px;
    word-break: break-all;
    color: #1a6e3c;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.bfo-copy-btn {
    display: inline-block;
    background: #f59e0b;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.bfo-copy-btn:hover { background: #d97706; }

@media (max-width: 640px) {
    .bfo-two-col { grid-template-columns: 1fr; }
}


/* ── Shared step styles ───────────────────────────────────────── */
.reg-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--primary, #617a60);
    text-decoration: none;
    margin-bottom: 0.625rem;
}
.reg-back:hover { text-decoration: underline; }

.reg-page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333131;
    margin: 0 0 0.875rem;
}

.reg-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 0.875rem 1rem;
    margin-bottom: 0.875rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.reg-card-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9ca3af;
    margin: 0 0 0.5rem;
}

.reg-dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    row-gap: 0.375rem;
    align-items: baseline;
}
.reg-dt { font-size: 0.9375rem; color: #6c757d; font-weight: 500; margin: 0; white-space: nowrap; }
.reg-dd { font-size: 0.9375rem; color: #212529; font-weight: 500; margin: 0; }
.reg-desc { font-size: 0.9375rem; color: #374151; line-height: 1.5; margin: 0.5rem 0 0; }

.reg-two-col {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 1.5rem;
    align-items: start;
}

.reg-form-group { margin-bottom: 1rem; }
.reg-form-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.4rem;
}

.reg-check-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: #374151;
}
.reg-check-wrap input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--primary, #617a60);
}
.reg-check-wrap span{
  position:relative;
  top:-5px;
}
.reg-textarea {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #212529;
    resize: vertical;
    box-sizing: border-box;
}
.reg-textarea:focus { outline: none; border-color: var(--primary, #617a60); }

.reg-btn {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    margin-bottom: 0.625rem;
    text-decoration: none;
    box-sizing: border-box;
}
#page-wrapper .reg-btn-primary   { background: var(--primary, #617a60); color: #fff; }
#page-wrapper .reg-btn-primary:hover { background: var(--primary-dark, #293034); color: #fff; text-decoration: none; }
#page-wrapper .reg-btn-secondary { background: #fff; color: #374151; border: 1px solid #ced4da; }
#page-wrapper .reg-btn-secondary:hover { background: #f8f9fa; text-decoration: none; color: #374151; }
#page-wrapper .reg-btn:disabled  { opacity: 0.6; cursor: not-allowed; }

.reg-capacity {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.125rem;
}
.reg-progress {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin: 0.75rem 0;
}
.reg-progress-bar {
    height: 100%;
    background: var(--primary, #617a60);
    border-radius: 3px;
}

/* ── Extra spots stepper (form step) ──────────────────────────── */
.reg-extras-section {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.reg-extras-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #f8f9fa;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}
.reg-extras-header:hover { background: #edf0f3; }
.reg-extras-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e8f0f8;
    color: var(--primary, #617a60);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}
.reg-extras-header-text { flex: 1; }
.reg-extras-header-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 0.125rem;
}
.reg-extras-header-sub {
    font-size: 0.8125rem;
    color: #6c757d;
    margin: 0;
}
.reg-extras-chevron {
    font-size: 0.875rem;
    color: #9ca3af;
    transition: transform 0.2s;
}
.reg-extras-chevron.open { transform: rotate(180deg); }

.reg-extras-body {
    padding: 1rem;
    background: #fff;
    border-top: 1px solid #e9ecef;
}
.reg-extras-body p {
    font-size: 0.9375rem;
    color: #6c757d;
    margin: 0 0 0.875rem;
    line-height: 1.5;
}

/* Stepper */
.reg-stepper-row {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.75rem;
}
.reg-stepper-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    flex: 1;
}
.reg-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ced4da;
    border-radius: 6px;
    overflow: hidden;
}
.reg-stepper-btn {
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    border: none;
    color: #374151;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s;
}
.reg-stepper-btn:hover:not(:disabled) { background: #e9ecef; }
.reg-stepper-btn:disabled { color: #ced4da; cursor: default; }
.reg-stepper-val {
    width: 40px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    border-left: 1px solid #ced4da;
    border-right: 1px solid #ced4da;
    line-height: 36px;
}

.reg-extras-total {
    background: #e8f0f8;
    border-radius: 6px;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: var(--primary, #617a60);
    font-weight: 600;
    display: none;
    margin-top: 0.25rem;
}

/* ── Success step ─────────────────────────────────────────────── */
.reg-success-wrap { max-width: 520px; margin: 0 auto; text-align: center; }
.reg-success-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: #d1e7dd; color: #0f5132; font-size: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.625rem;
}
.reg-success-title { font-size: 1.25rem; font-weight: 700; color: #333131; margin: 0 0 0.25rem; }
.reg-success-lead  { color: #6c757d; font-size: 1rem; margin: 0 0 0.75rem; }
.reg-btn-others-cta {
    background: #fff;
    color: #1a6e3c;
    border: 2px solid #1a6e3c;
    font-weight: 600;
}
.reg-btn-others-cta:hover { background: #e8f5ee; text-decoration: none; color: #1a6e3c; }

/* Token share card on success step */
.reg-token-card {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 10px;
    padding: 1rem 1.125rem;
    margin-bottom: 1rem;
    text-align: left;
}
.reg-token-card-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #065f46;
    margin: 0 0 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.reg-token-card-sub {
    font-size: 0.9375rem;
    color: #047857;
    margin: 0 0 0.75rem;
    line-height: 1.4;
}
.reg-token-url-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.625rem;
}
.reg-token-url {
    flex: 1;
    font-family: monospace;
    font-size: 0.875rem;
    color: #065f46;
    word-break: break-all;
    margin: 0;
}
.reg-token-copy-btn {
    flex-shrink: 0;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 5px;
    padding: 0.3rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #065f46;
    cursor: pointer;
    white-space: nowrap;
}
.reg-token-copy-btn:hover { background: #a7f3d0; }

.reg-buy-others-banner {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 10px;
    padding: 1rem 1.125rem;
    margin-bottom: 1rem;
    text-align: left;
}
.reg-buy-others-banner p {
    font-size: 1rem;
    color: #065f46;
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.reg-success-next {
    background: #d1e7dd;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    text-align: left;
    margin-bottom: 0.75rem;
}
.reg-success-next h3 { font-size: 0.9375rem; font-weight: 700; color: #0f5132; margin: 0 0 0.375rem; }
.reg-success-next ul { margin: 0; padding-left: 1.25rem; font-size: 0.9375rem; color: #0f5132; line-height: 1.6; }
.reg-success-actions { display: flex; gap: 0.625rem; margin-top: 0.25rem; }
.reg-success-actions .reg-btn { flex: 1; margin-bottom: 0; }

/* ── Closed step ──────────────────────────────────────────────── */
.reg-closed-wrap { max-width: 520px; margin: 0 auto; text-align: center; }
.reg-closed-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: #fff3cd; color: #856404; font-size: 1.75rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
}
.reg-closed-title { font-size: 1.5rem; font-weight: 700; color: #333131; margin: 0 0 0.5rem; }
.reg-closed-lead  { color: #6c757d; font-size: 0.9375rem; margin: 0 0 1.5rem; }
.reg-closed-reason {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 0.9rem;
    color: #664d03;
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
}

/* ── Payment step ─────────────────────────────────────────────── */
#card-element {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    background: #fff;
    margin-top: 0.4rem;
}
#card-errors { font-size: 0.875rem; color: #dc3545; margin-top: 0.375rem; min-height: 1.2em; }

.reg-secure  { font-size: 0.875rem; color: #6c757d; display: flex; align-items: center; gap: 0.4rem; margin-top: 0.875rem; }

/* Payment step: extra spots summary */
.reg-payment-extras-note {
    background: #e8f0f8;
    border-radius: 6px;
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
    color: var(--primary, #617a60);
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Saved payment method options ─────────────────────────────── */
.pm-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.625rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.pm-option:hover { border-color: var(--primary, #617a60); background: #f8f9fa; }
.pm-option.pm-selected { border-color: var(--primary, #617a60); background: #e8f0f8; }
.pm-option label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    cursor: pointer;
    width: 100%;
}
.pm-option input[type="radio"] {
    width: 17px;
    height: 17px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--primary, #617a60);
}
.pm-label-text { flex: 1; font-size: 0.9rem; color: #212529; }
.pm-label-text i { margin-right: 0.4rem; font-size: 1rem; }
.pm-badge-default {
    background: #28a745; color: #fff;
    padding: 1px 7px; border-radius: 3px;
    font-size: 0.75rem; font-weight: 700;
    margin-left: 6px;
}
.pm-divider { height: 1px; background: #e9ecef; margin: 0.75rem 0; }
#new-card-section { margin-top: 0.75rem; }

.reg-total-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.125rem;
    text-align: center;
}
.reg-total-label  { font-size: 0.8125rem; color: #6c757d; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.375rem; }
.reg-total-amount { font-size: 1.75rem; font-weight: 700; color: var(--primary, #617a60); margin: 0; }
.reg-total-breakdown { font-size: 0.8125rem; color: #9ca3af; margin: 0.375rem 0 0; }

/* ── Price hero ───────────────────────────────────────────────── */
.reg-price-hero {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.5rem 0 0.625rem;
    margin-bottom: 0.625rem;
    border-bottom: 1px solid #e9ecef;
}
.reg-price-hero-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary, #617a60);
    line-height: 1;
}
.reg-price-hero-label { font-size: 0.875rem; color: #9ca3af; font-weight: 500; }

/* ── Grouped checkboxes ───────────────────────────────────────── */
.reg-checks-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

/* ── Family member selection ──────────────────────────────────── */
.reg-extras-sublabel {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9ca3af;
    margin: 0 0 0.5rem;
}
.reg-family-check {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.475rem 0.625rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 0.375rem;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
    font-size: 0.875rem;
    color: #212529;
}
.reg-family-check:hover { background: #f8f9fa; border-color: #ced4da; }
.reg-family-check.selected { background: #e8f0f8; border-color: var(--primary, #617a60); }
.reg-family-check input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
    width: 16px; height: 16px; margin: 0; flex-shrink: 0;
    cursor: pointer; accent-color: var(--primary, #617a60);
}
.reg-extras-divider { border: none; border-top: 1px solid #e9ecef; margin: 0.875rem 0; }

@media (max-width: 640px) {
    .reg-two-col { grid-template-columns: 1fr; }
}

/* ── Utility / modifier classes ───────────────────────────────── */
.reg-alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    font-size: 0.95rem;
    color: #721c24;
}
.reg-alert-icon { margin-top: 2px; flex-shrink: 0; }
.reg-dd--pre { white-space: pre-line; }
.reg-optional-label { font-weight: 400; color: #9ca3af; }


.card-icon {
    font-size: 32px;
    color: #617a60;
}

.card-details h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #293034;
}

.card-details p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9375rem;
}

.default-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-left: 10px;
}

.payment-method-actions {
    display: flex;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #6c757d;
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    background-color: white;
    transition: all 0.2s;
}

.checkbox-group input[type="checkbox"]:hover {
    border-color: #617a60;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #617a60;
    border-color: #617a60;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9375rem;
}

.btn-primary {
    background: #617a60;
    color: white;
}

.btn-primary:hover {
    background: #293034;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-secondary {
    background: #e9ecef;
    color: #495057;
}

.btn-secondary:hover {
    background: #dee2e6;
    color: #212529;
}
.renew-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    padding-top:0px!important;
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.page-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #212529;
}

.alert {
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.section {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.section h2 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #212529;
}

.current-status {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.current-status table {
    width: 100%;
}

.current-status td {
    padding: 8px 0;
}

.current-status td:first-child {
    color: #6c757d;
    width: 180px;
}

.current-status td:last-child {
    font-weight: 600;
    color: #212529;
}

.plan-option {
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-option:hover {
    border-color: var(--primary-dark);
    background: #f8f9fa;
}

.plan-option.selected {
    border-color: var(--primary-dark);
    background: #e7f3ff;
}

.plan-option input[type="radio"] {
    margin-right: 12px;
}

.plan-option label {
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
    width: 100%;
}

.plan-info {
    flex: 1;
}

.plan-name {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
}

.plan-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.plan-term {
    font-size: 14px;
    color: #6c757d;
}

.plan-description {
    font-size: 14px;
    color: #495057;
    margin-top: 8px;
}

.payment-method-option {
    border: 2px solid #dee2e6;
    border-radius: 6px;

    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.payment-method-option label{
 padding: 14px 16px;}

.payment-method-option:hover {
    border-color: var(--primary);
    background-color: #f8f9fa;
}

.payment-method-option:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background-color: #e7f3ff;
}

.payment-method-option label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    cursor: pointer;
    width: 100%;
}

.payment-method-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.payment-method-option input[type="radio"]:checked + .payment-method-info {
    color: var(--primary);
    font-weight: 600;
}

.payment-method-info {
    flex: 1;
}

.payment-method-info i {
    margin-right: 8px;
    font-size: 18px;
}

.payment-method-info strong {
    font-size: 16px;
}

.badge-default {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.family-warning-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.family-warning-box h4 {
    color: #856404;
    margin: 0 0 12px 0;
}

.family-warning-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.family-warning-box li {
    color: #856404;
    margin: 5px 0;
}

.confirmation-checkbox {
    background: white;
    border: 2px solid #ffc107;
    border-radius: 4px;
    padding: 12px;
    margin-top: 15px;
}

.confirmation-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #856404;
    cursor: pointer;
    margin: 0;
}

.confirmation-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid #856404;
    border-radius: 3px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: white;
    position: relative;
}

.confirmation-checkbox input[type="checkbox"]:checked {
    background: #28a745;
    border-color: #28a745;
}

.confirmation-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 3px;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.confirmation-checkbox input[type="checkbox"]:checked + span {
    color: #155724;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-secondary {
    background: #6c757d;
    color: white!important;
}

.btn-secondary:hover {
    background: #545b62!important;
}

#card-element {
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    background: white;
    margin: 15px 0;
}

#card-errors {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #dee2e6;
}

@media (max-width: 768px) {
    .renew-page {
        padding: 10px;
    }

    .plan-option label {
        flex-direction: column;
        align-items: flex-start;
    }

    .plan-option label > div:last-child {
        width: 100%;
        text-align: left !important;
        margin-top: 10px;
    }
}

.fm-page-title { margin: 0 0 1.5rem; font-size: 1.5rem; font-weight: 600; color: #333131; }
.fm-info-box-text { margin: 0.5rem 0 0; font-size: 0.9375rem; color: #6c757d; }
.fm-card { margin-bottom: 1.5rem; }
.fm-card-header { display: flex; justify-content: space-between; align-items: center; }
.fm-member-grid { display: grid; gap: 0.75rem; }
.fm-member-row { display: flex; gap: 0.875rem; padding: 0.75rem 0; border-bottom: 1px solid #f3f4f6; align-items: center; }
.fm-placeholder-row { display: flex; gap: 0.875rem; padding: 0.75rem 0; border-bottom: 1px solid #f3f4f6; align-items: center; background: #fafafa; }
.fm-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; font-size: 1rem; flex-shrink: 0; }
.fm-avatar--placeholder { background: linear-gradient(135deg, #9ca3af, #6b7280); }
.fm-member-details { flex: 1; }
.fm-member-name { font-weight: 600; font-size: 1rem; color: #333131; }
.fm-member-meta { color: #6c757d; font-size: 0.875rem; }
.fm-member-meta + .fm-member-meta { margin-top: 0.25rem; }
.fm-remove-form { margin: 0; }
.fm-remove-btn { padding: 0.25rem 0.625rem; font-size: 0.875rem; }
.fm-pending-badge { display: inline-block; background: #fff3cd; color: #856404; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
/* Add card section */
.fm-add-card { margin-bottom: 1.5rem; }
.fm-tab-bar { display: flex; border-bottom: 2px solid #e9ecef; margin-bottom: 1.25rem; }
.fm-tab-btn { padding: 0.625rem 1.25rem; border: none; background: transparent; cursor: pointer; font-size: 0.9375rem; font-weight: 500; color: #6c757d; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color 0.15s, border-color 0.15s; }
.fm-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.fm-tab-btn:hover:not(.active) { color: #333131; }
/* Share link */
.fm-share-url-wrap { display: flex; gap: 0.625rem; align-items: center; background: #f8f9fa; padding: 0.625rem 0.875rem; border-radius: 6px; border: 1px solid #dee2e6; }
.fm-share-url-input { flex: 1; padding: 0; border: none; border-radius: 0; font-family: monospace; font-size: 0.875rem; background: transparent; }
.fm-token-details { margin-top: 0.875rem; padding: 0.75rem; background: #e8f0f8; border: 1px solid #c7d9ed; border-radius: 6px; font-size: 0.875rem; }
.fm-token-details-row { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.fm-token-detail-item { display: flex; align-items: center; gap: 0.375rem; white-space: nowrap; color: #374151; }
/* How-it-works / info box */
.fm-info-section { margin-top: 1rem; padding: 0.875rem 1rem; background: #f0f6ff; border-radius: 8px; }
.fm-info-section-title { font-weight: 600; color: var(--primary); margin-bottom: 0.5rem; }
.fm-info-list-text { margin: 0; padding-left: 1.25rem; color: #374151; font-size: 0.9375rem; }
.fm-warning-section { background: #fff3cd; padding: 0.875rem 1rem; border-radius: 8px; border-left: 3px solid #ffc107; margin-bottom: 1rem; }
.fm-warning-title { font-weight: 600; color: #856404; margin-bottom: 0.5rem; }
/* Name form */
.fm-name-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; margin-bottom: 0.875rem; }
.fm-form-label { display: block; font-size: 0.9375rem; font-weight: 500; margin-bottom: 0.375rem; color: #333131; }
.fm-form-input { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid #ced4da; border-radius: 6px; font-size: 0.9375rem; box-sizing: border-box; }
.fm-form-hint { background: #fff8e6; padding: 0.625rem 0.875rem; border-radius: 6px; margin-bottom: 0.75rem; font-size: 0.875rem; color: #664d03; }
.fm-form-actions { display: flex; justify-content: flex-end; }
/* Token history table */
.fm-table-wrap { overflow-x: auto; }
.fm-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.fm-table thead tr { background: #f8f9fa; border-bottom: 2px solid #e9ecef; }
.fm-table th { padding: 0.625rem 0.75rem; text-align: left; font-weight: 600; color: #495057; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; }
.fm-table td { padding: 0.625rem 0.75rem; }
.fm-table tbody tr { border-bottom: 1px solid #f3f4f6; }
.fm-table-mono { font-family: monospace; font-size: 0.875rem; }
.fm-status-active { background: #d1fae5; color: #065f46; padding: 2px 8px; border-radius: 4px; font-size: 0.8125rem; font-weight: 600; }
.fm-status-used { background: #e5e7eb; color: #374151; padding: 2px 8px; border-radius: 4px; font-size: 0.8125rem; font-weight: 600; }
.fm-status-expired { background: #fee2e2; color: #991b1b; padding: 2px 8px; border-radius: 4px; font-size: 0.8125rem; font-weight: 600; }

ul.ccm-system-errors.ccm-error {
    position: fixed;
    right: 0;
    width: 30%;
    background: rgba(0,0,0,0.4);
    color: #fff;
    list-style: none !important;
    top: 9em;
    padding: 5px !important;
    z-index: 9;
}
ul.ccm-system-errors.ccm-error li {
    margin-bottom: 5px;
    background: rgba(0,0,0,0.1);
    padding: 10px !important;
    font-weight: bold;
}
ul.ccm-system-errors.ccm-error li:last-child {
    margin-bottom: 0;
}
.checkbox input {
    width: 20px;
    height: 20px;
    display: inline-block;
    -moz-appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
    -ms-appearance: checkbox !important;
    appearance: checkbox !important;
}
.checkbox {
    margin: 10px 0 20px;
}
.checkbox input {
    margin-right: 10px;
}
.checkbox label {
    display: flex;
    align-items: center !important;
}
#WCRCLogin form > a, #WCRCLogin form > hr {
}
/* ── Page chrome ────────────────────────────────────────────── */
.ev-page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333131;
    margin: 0 0 1.25rem;
}

/* ── Top-level tabs ─────────────────────────────────────────── */
.ev-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1.5rem;
    gap: 0;
}
.ev-tab {
    padding: 0.6rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.12s, border-color 0.12s;
    white-space: nowrap;
}
.ev-tab:hover  { color: var(--primary); }
.ev-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.ev-tab-pane        { display: none; }
.ev-tab-pane.active { display: block; }

/* ── Tab count badges ───────────────────────────────────────── */
.ev-tab-badge {
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 0.75rem;
    margin-left: 4px;
}
.ev-tab-badge--green { background: #d1fae5; color: #065f46; }
.ev-tab-badge--blue  { background: #e8f0fe; color: var(--primary); }

/* ── Event card grid ────────────────────────────────────────── */
.ev-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.ev-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    transition: box-shadow 0.15s;
}
.ev-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.ev-card.past  { opacity: 0.85; }
.ev-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333131;
    margin: 0;
}
.ev-card-desc {
    font-size: 0.9375rem;
    color: #6c757d;
    margin: 0;
    flex: 1;
}
.ev-card-meta {
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.ev-card-meta span { display: flex; align-items: center; gap: 0.4rem; }
.ev-card-price     { font-weight: 700; font-size: 0.95rem; color: #212529; }

/* ── Event card footer row ──────────────────────────────────── */
.ev-card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.ev-card-attendee-count { font-size: 0.875rem; color: #6c757d; }
.ev-card-footer         { display: flex; flex-direction: column; gap: 0.5rem; }

/* ── Event card buttons ─────────────────────────────────────── */
.ev-btn {
    display: block;
    text-align: center;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    width: 100%;
    box-sizing: border-box;
}
#page-wrapper .ev-btn-primary  { background: #617a60; color: #fff; }
#page-wrapper .ev-btn-primary:hover { background: #1558b0; color: #fff; text-decoration: none; }
#page-wrapper .ev-btn-outline  { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
#page-wrapper .ev-btn-outline:hover { background: #e8f0fe; text-decoration: none; }
#page-wrapper .ev-btn-disabled { background: #e9ecef; color: #6c757d; cursor: not-allowed; }
#page-wrapper .ev-btn-others   { background: #fff; color: #1a6e3c; border: 1px solid #1a6e3c; font-size: 0.875rem; }
#page-wrapper .ev-btn-others:hover { background: #e8f5ee; text-decoration: none; color: #1a6e3c; }

/* ── Badges ─────────────────────────────────────────────────── */
.ev-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
}
.ev-badge-registered { background: #d1fae5; color: #065f46; }
.ev-badge-paid       { background: #dbeafe; color: #1e40af; }
.ev-badge-attended   { background: #e5e7eb; color: #374151; }

/* ── Flash messages ─────────────────────────────────────────── */
.ev-flash-error,
.ev-flash-success,
.ev-flash-claimed {
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    font-size: 0.95rem;
}
.ev-flash-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    color: #721c24;
}
.ev-flash-success {
    background: #d1e7dd;
    border: 1px solid #a3cfbb;
    border-left: 4px solid #28a745;
    color: #0f5132;
}
.ev-flash-claimed {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-left: 4px solid #059669;
    color: #065f46;
}
.ev-flash-icon { margin-top: 2px; flex-shrink: 0; }

/* ── Empty state ────────────────────────────────────────────── */
.ev-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
}
.ev-empty-icon  { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.4; }
.ev-empty-title { font-weight: 600; margin: 0 0 0.375rem; }
.ev-empty-text  { font-size: 0.9375rem; margin: 0; }
.ev-link-primary { color: var(--primary); }

/* ── My Events sub-tabs ─────────────────────────────────────── */
.my-ev-subtabs {
    display: flex;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1.125rem;
}
.my-ev-subtab {
    padding: 0.45rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.12s, border-color 0.12s;
}
.my-ev-subtab:hover  { color: var(--primary); }
.my-ev-subtab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.my-ev-subpane        { display: none; }
.my-ev-subpane.active { display: block; }

.claim-wrap { max-width: 560px; margin: 0 auto; }

.claim-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.claim-card-label {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9ca3af;
    margin: 0 0 0.875rem;
}
.claim-dl { margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.claim-dt { font-size: 0.8125rem; color: #6c757d; font-weight: 500; margin: 0; }
.claim-dd { font-size: 0.9rem; color: #212529; font-weight: 500; margin: 0; }
.claim-btn,
#page-wrapper a.claim-btn,
#page-wrapper button.claim-btn {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    margin-bottom: 0.625rem;
    text-decoration: none;
    box-sizing: border-box;
}
.claim-btn-primary,
#page-wrapper button.claim-btn-primary,
#page-wrapper a.claim-btn-primary   { background: #1a6e3c; color: #fff; }
.claim-btn-primary:hover,
#page-wrapper button.claim-btn-primary:hover,
#page-wrapper a.claim-btn-primary:hover { background: #155730; color: #fff; text-decoration: none; }
.claim-btn-secondary,
#page-wrapper a.claim-btn-secondary,
#page-wrapper button.claim-btn-secondary  { background: #fff; color: #374151; border: 1px solid #ced4da; }
.claim-btn-secondary:hover,
#page-wrapper a.claim-btn-secondary:hover,
#page-wrapper button.claim-btn-secondary:hover { background: #f8f9fa; text-decoration: none; color: #374151; }
.claim-btn:disabled,
#page-wrapper button.claim-btn:disabled,
#page-wrapper a.claim-btn:disabled  { opacity: 0.6; cursor: not-allowed; }

.claim-icon {
    width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
}
.claim-icon-green  { background: #d1fae5; color: #065f46; }
.claim-icon-yellow { background: #fff3cd; color: #856404; }
.claim-icon-red    { background: #f8d7da; color: #842029; }

.claim-title { font-size: 1.5rem; font-weight: 700; color: #333131; margin: 0 0 0.5rem; text-align: center; }
.claim-lead  { color: #6c757d; font-size: 0.9375rem; margin: 0 0 1.5rem; text-align: center; }

.claim-slots-badge {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    padding: 0.3rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

/* ── My Events registration cards ───────────────────────────── */
.my-reg-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.my-reg-card.past  { opacity: 0.8; }
.my-reg-card-title { font-size: 0.95rem; font-weight: 700; color: #333131; margin: 0; }
.my-reg-meta {
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.my-reg-meta span { display: flex; align-items: center; gap: 0.4rem; }
.my-reg-badges    { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.my-reg-actions   { margin-top: 0.25rem; }
.my-reg-cancel-btn {
    background: none;
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 5px;
    padding: 0.3rem 0.75rem;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 0.12s;
}
.my-reg-cancel-btn:hover { background: #f8d7da; }

/* ── Purchased tokens section ───────────────────────────────── */
.ev-tokens-section {
    margin-top: 2rem;
    border-top: 2px solid #e9ecef;
    padding-top: 1.5rem;
}
.ev-tokens-title { font-size: 1rem; font-weight: 700; color: #333131; margin: 0 0 1rem; }
.ev-token-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem 1.125rem;
    margin-bottom: 0.875rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.ev-token-event { font-size: 0.9375rem; font-weight: 700; color: #333131; margin: 0 0 0.25rem; }
.ev-token-date  { font-size: 0.875rem; color: #6c757d; margin: 0 0 0.625rem; }
.ev-token-status-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.ev-token-status-text { font-size: 0.875rem; color: #374151; }
.ev-token-expired-text { font-size: 0.875rem; color: #6c757d; margin: 0; }
.ev-token-url-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.ev-token-url {
    font-family: monospace;
    font-size: 0.8125rem;
    color: #1a6e3c;
    background: #e8f5ee;
    border: 1px solid #b2dfca;
    border-radius: 4px;
    padding: 3px 8px;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}
.ev-token-copy-btn {
    background: #1a6e3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.ev-token-copy-btn:hover { background: #155730; }
.ev-token-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.ev-token-badge-active  { background: #d1fae5; color: #065f46; }
.ev-token-badge-expired { background: #e5e7eb; color: #374151; }
.ev-token-badge-full    { background: #dbeafe; color: #1e40af; }
/* ── Email list ─────────────────────────────────────────────── */
.be-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.be-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333131;
    margin: 0;
}
.be-count {
    font-size: 0.875rem;
    color: #6c757d;
}

/* ── Email table ────────────────────────────────────────────── */
.be-table-wrap {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}
.be-table {
    width: 100%;
    border-collapse: collapse;
}
.be-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}
.be-table th {
    padding: 0.875rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    text-align: left;
    white-space: nowrap;
}
.be-table td {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}
.be-table tbody tr:last-child td { border-bottom: none; }
.be-table tbody tr:hover { background: #f8f9fa; }
.be-subject {
    font-weight: 500;
    color: #212529;
}
.be-date {
    color: #6c757d;
    white-space: nowrap;
    font-size: 0.875rem;
}
.be-empty {
    padding: 3rem 2rem;
    text-align: center;
    color: #6c757d;
}
.be-empty i {
    font-size: 3rem;
    color: #d1d5db;
    display: block;
    margin-bottom: 1rem;
}

/* ── Pagination ─────────────────────────────────────────────── */
.be-pagination {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.be-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: #495057;
    border: 1px solid #dee2e6;
    background: #fff;
    transition: all 0.15s;
}
.be-page-link:hover { background: #f8f9fa; border-color: #adb5bd; color: #212529; }
.be-page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Single email view ──────────────────────────────────────── */
.be-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 1.25rem;
}
.be-back:hover { text-decoration: underline; }
.be-email-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}
.be-email-card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
}
.be-email-subject {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 0.25rem;
}
.be-email-meta {
    font-size: 0.875rem;
    color: #6c757d;
}
.be-email-body {
    padding: 1.5rem 1.25rem;
    line-height: 1.7;
    font-size: 0.9375rem;
    color: #212529;
}

/* -----------------------------------------------
   LOGIN PAGE — audience notice + password reset notice
   ----------------------------------------------- */

/* Hero-panel notice on /member/login — mirrors the .wcrc-login-notice
   boxes on /login (translucent fill, 4px left border, icon + copy) but
   tuned for the dark photo overlay it sits on. The theme forces
   `strong` to dark grey / normal weight and `#page-wrapper a` to a muted
   green, so those two are overridden here at matching specificity. */
#page-wrapper .vieth-login-hero-inner .vieth-hero-notice,
.vieth-login-hero-inner .vieth-hero-notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-align: left;
    padding: 16px 18px;
    margin: 0 0 1.4rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-left: 4px solid #7ed4a4;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
#page-wrapper .vieth-login-hero-inner .vieth-hero-notice > i.fa,
.vieth-login-hero-inner .vieth-hero-notice > i.fa {
    font-size: 1.3em;
    margin-top: 3px;
    flex-shrink: 0;
    color: #7ed4a4;
}
#page-wrapper .vieth-login-hero-inner .vieth-hero-notice p,
.vieth-login-hero-inner .vieth-hero-notice p {
    margin: 0 0 0.5em;
    font-size: inherit;
    line-height: inherit;
    color: rgba(255, 255, 255, 0.9);
}
#page-wrapper .vieth-login-hero-inner .vieth-hero-notice p:last-child,
.vieth-login-hero-inner .vieth-hero-notice p:last-child {
    margin-bottom: 0;
}
#page-wrapper .vieth-login-hero-inner .vieth-hero-notice strong,
.vieth-login-hero-inner .vieth-hero-notice strong {
    display: block;
    margin-bottom: 0.15em;
    font-weight: 700;
    color: #fff;
}
#page-wrapper .vieth-login-hero-inner .vieth-hero-notice a,
.vieth-login-hero-inner .vieth-hero-notice a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
#page-wrapper .vieth-login-hero-inner .vieth-hero-notice a:hover,
.vieth-login-hero-inner .vieth-hero-notice a:hover {
    color: #7ed4a4;
}

.vieth-login-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.1rem;
    border-radius: 6px;
    background: #eef3f8;
    border-left: 4px solid #3a597a;
    color: #1f2f3f;
    font-size: 0.9rem;
    line-height: 1.5;
}
.vieth-login-notice.vieth-login-notice-warning {
    background: #fff8e6;
    border-left-color: #e0a800;
    color: #5c4300;
}
.vieth-login-notice > i.fa {
    font-size: 1.15rem;
    margin-top: 2px;
    flex-shrink: 0;
    color: #3a597a;
}
.vieth-login-notice.vieth-login-notice-warning > i.fa {
    color: #b58500;
}
.vieth-login-notice strong {
    display: block;
    margin-bottom: 0.15rem;
}
.vieth-login-notice .vieth-login-notice-cta {
    display: block;
    margin-top: 0.4rem;
}
.vieth-login-notice a {
    color: #1a6b3c;
    font-weight: 600;
    text-decoration: none;
}
.vieth-login-notice a:hover {
    text-decoration: underline;
}

/* -----------------------------------------------
   DASHBOARD — WCRC Leagues call to action
   ----------------------------------------------- */

.db-league-cta {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.125rem 1.375rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #eef3f8 0%, #f8f9fa 100%);
    border: 1px solid #dee2e6;
    border-left: 4px solid #3a597a;
}
.db-league-cta-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3a597a;
    color: #fff;
    font-size: 1.25rem;
}
.db-league-cta-body strong {
    display: block;
    font-size: 1rem;
    color: #212529;
    margin-bottom: 0.25rem;
}
.db-league-cta-body p {
    margin: 0;
    font-size: 0.95rem;
    color: #6c757d;
}
#page-wrapper .db-league-cta-link,
.db-league-cta-link {
    display: inline-block;
    margin-top: 0.625rem;
    padding: 0.4rem 0.875rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    background: #3a597a;
    color: #fff;
}
#page-wrapper .db-league-cta-link:hover,
.db-league-cta-link:hover {
    background: #293034;
    color: #fff;
    text-decoration: none;
}

/* ── Native checkboxes inside signup cards ────────────────────────
   The red theme resets every field in the page wrapper with
   `#page-wrapper input, #page-wrapper select, #page-wrapper textarea
   { appearance: none }` (themes/red/assets/css/main.css:62). On a
   checkbox that strips the control's intrinsic box and it lays out at
   0x0 — present and toggleable, but invisible, which is what happened
   to the e-newsletter opt-in on /member/signup.

   Scoped to .su-card-body rather than #page-wrapper so it cannot reach
   the deliberately custom-drawn .checkbox-group boxes further up this
   file, which set appearance:none on purpose. The ID keeps it ahead of
   the theme rule (1,2,1 vs 1,0,1) without needing !important. */
#page-wrapper .su-card-body input[type="checkbox"],
#page-wrapper .su-card-body input[type="radio"] {
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
    width: 1rem;
    height: 1rem;
}
