/* Members Area Styles */

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, #031550 0%, #0a2a80 100%);
    padding: 40px 0 30px;
    margin-top: 0;
}

.page-banner-content h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.page-banner-content .current {
    color: #ffb712;
    font-size: 14px;
    font-weight: 500;
}

/* Login Area */
.members-login-area {
    padding: 80px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 400px);
}

.login-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.login-header {
    margin-bottom: 30px;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffb712 0%, #e5a510 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.login-icon i {
    font-size: 32px;
    color: #fff;
}

.login-header h3 {
    color: #031550;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-header p {
    color: #505050;
    font-size: 15px;
    margin: 0;
}

/* Register Card (extends login styles) */
.register-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.register-header {
    margin-bottom: 30px;
}

.register-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffb712 0%, #e5a510 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.register-icon i {
    font-size: 32px;
    color: #fff;
}

.register-header h3 {
    color: #031550;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.register-header p {
    color: #505050;
    font-size: 15px;
    margin: 0;
}

/* Live voting spotlight on the dashboard */
.dashboard-voting-spotlight {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #041a5c 0%, #0b3aa0 60%, #0b62c4 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(3, 21, 80, 0.22);
    transition: transform 0.15s, box-shadow 0.15s;
}

.dashboard-voting-spotlight:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(3, 21, 80, 0.28);
}

.dashboard-voting-spotlight-pulse {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffb712;
    animation: dashboardVotingPulse 1.6s ease-in-out infinite;
}

@keyframes dashboardVotingPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 183, 18, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(255, 183, 18, 0); }
}

.dashboard-voting-spotlight-body { flex: 1 1 auto; min-width: 0; }
.dashboard-voting-spotlight-body strong { display: block; font-size: 1.05rem; font-weight: 800; }
.dashboard-voting-spotlight-body span { font-size: 0.88rem; color: rgba(255, 255, 255, 0.85); }
.dashboard-voting-spotlight-cta {
    flex: 0 0 auto;
    background: #ffb712;
    color: #031550;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 9px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

@media (max-width: 575px) {
    .dashboard-voting-spotlight { flex-wrap: wrap; }
    .dashboard-voting-spotlight-cta { width: 100%; text-align: center; }
}

/* Danger zone — account deletion on the account page */
.account-danger-zone {
    margin-top: 24px;
    border: 1px solid #f3c2c2;
    border-left: 4px solid #dc2626;
    background: #fffafa;
}

.account-danger-zone .dashboard-mini-header i,
.account-danger-zone .dashboard-mini-header h5 {
    color: #b91c1c;
}

.account-danger-list {
    margin: 0 0 16px;
    padding-left: 18px;
    font-size: 0.86rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Accuracy notice + attestation on the registration form */
.register-accuracy-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f7f9ff;
    border: 1px solid #dbe2f5;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
}

.register-accuracy-notice i {
    color: #031550;
    margin-top: 2px;
}

.register-accuracy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
    cursor: pointer;
    margin: 0;
}

.register-accuracy-check input {
    margin-top: 3px;
    flex: 0 0 auto;
}

/* Disabled State for Login/Register Icons */
.login-icon.disabled,
.register-icon.disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

.disabled-notice {
    border-top: 1px solid #e5e5e5;
    margin-top: 20px;
    padding-top: 20px;
}

/* Form Styles */
.login-form .form-label {
    font-weight: 600;
    color: #031550;
    font-size: 14px;
    margin-bottom: 8px;
}

.login-form .input-group-text {
    background: #f8f9fa;
    border: 2px solid #e5e5e5;
    border-right: none;
    color: #ffb712;
    padding: 12px 15px;
}

.login-form .form-control {
    border: 2px solid #e5e5e5;
    border-left: none;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: #ffb712;
    box-shadow: none;
}

.login-form .input-group:focus-within .input-group-text {
    border-color: #ffb712;
}

.login-form .form-control::placeholder {
    color: #aaa;
}

.login-form .form-control.is-invalid {
    border-color: #dc3545;
}

.login-form .form-control.is-invalid + .input-group-text {
    border-color: #dc3545;
}

/* Checkbox */
.login-form .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 2px solid #e5e5e5;
}

.login-form .form-check-input:checked {
    background-color: #ffb712;
    border-color: #ffb712;
}

.login-form .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 183, 18, 0.25);
}

.login-form .form-check-label {
    font-size: 14px;
    color: #505050;
    margin-left: 5px;
}

/* Forgot Password Link */
.forgot-link {
    font-size: 14px;
    color: #ffb712;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #031550;
}

/* Submit Button */
.login-form .custom-btn {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Alert Styles */
.login-card .alert {
    border-radius: 8px;
    margin-bottom: 25px;
    padding: 15px 20px;
    font-size: 14px;
}

.login-card .alert ul {
    margin: 0;
    padding-left: 20px;
}

.login-card .alert ul li {
    margin: 3px 0;
}

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

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

/* Login Divider */
.login-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

.login-divider span {
    padding: 0 15px;
    color: #999;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Social Login */
.social-login {
    margin-bottom: 10px;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-google:hover {
    border-color: #4285F4;
    background: #f8f9fa;
    color: #333;
}

.btn-google svg {
    flex-shrink: 0;
}

.btn-apple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #000;
    border: 2px solid #000;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-apple:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

.btn-apple svg {
    flex-shrink: 0;
}

/* Login Footer */
.login-footer {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.back-link {
    color: #505050;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #ffb712;
}

/* Dashboard Area (for future use) */
.members-dashboard-area {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 400px);
}

.dashboard-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.dashboard-card-header .card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffb712 0%, #e5a510 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.dashboard-card-header .card-icon i {
    font-size: 20px;
    color: #fff;
}

.dashboard-card-header h4 {
    margin: 0;
    color: #031550;
    font-size: 18px;
    font-weight: 600;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, #031550 0%, #0a2a80 100%);
    border-radius: 15px;
    padding: 40px;
    color: #fff;
    margin-bottom: 30px;
}

.welcome-section h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 10px;
}

.welcome-section p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 16px;
}

.welcome-section .highlight {
    color: #ffb712;
}

/* Dashboard Card Body */
.dashboard-card-body p {
    color: #505050;
    margin-bottom: 10px;
    font-size: 15px;
}

.dashboard-card-body p:last-child {
    margin-bottom: 0;
}

.dashboard-card-body p strong {
    color: #031550;
}

/* Dashboard Card Footer */
.dashboard-card-footer {
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #eee;
}

.profile-action-link {
    color: #ffb712;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.profile-action-link:hover {
    color: #031550;
}

/* Quick Links List */
.quick-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links-list li {
    margin-bottom: 12px;
}

.quick-links-list li:last-child {
    margin-bottom: 0;
}

.quick-links-list li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #031550;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-links-list li a:hover {
    background: #ffb712;
    color: #fff;
}

.quick-links-list li a i {
    color: #ffb712;
    transition: color 0.3s ease;
}

.quick-links-list li a:hover i {
    color: #fff;
}

/* Footer Widget Link Styles */
.footer-widget .btn-link {
    color: inherit;
    text-decoration: none;
    font-size: inherit;
}

.footer-widget .btn-link:hover {
    color: #ffb712;
}

/* Fix for footer social icons centering */
.footer-social a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
}

.footer-social a i {
    font-size: 16px;
}

/* Keep the slim footer pinned to the bottom of the viewport on short pages. */
.members-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.members-body #main-content {
    flex: 1 0 auto;
}

.members-body .members-footer {
    flex-shrink: 0;
}

/*
 * Slim members-area footer. A single compact bar (copyright · links · social)
 * replacing the tall 3-column marketing footer. members-area.css is loaded
 * only inside the members area, so this never touches the public site.
 */
.members-footer {
    background: #031550;
    padding: 14px 0;
    margin-top: 40px;
}

.members-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.members-footer-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
}

.members-footer-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.members-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.15s;
}

.members-footer-links a:hover {
    color: #ffb712;
}

.members-footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.members-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    transition: background 0.15s, color 0.15s;
}

.members-footer-social a:hover {
    background: #ffb712;
    color: #031550;
}

@media (max-width: 575px) {
    .members-footer-inner {
        justify-content: center;
        text-align: center;
    }
}

/* Responsive */
@media (max-width: 767px) {
    .page-banner {
        padding: 30px 0 20px;
    }

    .page-banner-content h2 {
        font-size: 22px;
    }

    .members-login-area {
        padding: 50px 0;
    }

    .login-card {
        padding: 30px 20px;
    }

    .login-icon {
        width: 60px;
        height: 60px;
    }

    .login-icon i {
        font-size: 24px;
    }

    .login-header h3 {
        font-size: 20px;
    }

    .register-card {
        padding: 30px 20px;
    }

    .register-icon {
        width: 60px;
        height: 60px;
    }

    .register-icon i {
        font-size: 24px;
    }

    .register-header h3 {
        font-size: 20px;
    }

    .welcome-section {
        padding: 25px;
    }

    .welcome-section h2 {
        font-size: 22px;
    }
}

/* =============================================
   MEMBERSHIP STYLES
   ============================================= */

/* Membership Status Card on Dashboard */
.membership-card {
    border-radius: 15px;
    overflow: hidden;
}

.membership-card.active {
    background: linear-gradient(135deg, #031550 0%, #0a2a80 100%);
    border: 2px solid #ffb712;
}

.membership-card.inactive {
    background: #fff;
    border: 2px dashed #e5e5e5;
}

.membership-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.membership-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.membership-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffb712 0%, #e5a510 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.membership-badge.inactive {
    background: #e5e5e5;
}

.membership-badge i {
    font-size: 24px;
    color: #fff;
}

.membership-badge.inactive i {
    color: #999;
}

.membership-details h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
}

.membership-card.active .membership-details h4 {
    color: #fff;
}

.membership-card.inactive .membership-details h4 {
    color: #031550;
}

.membership-details p {
    margin: 0;
    font-size: 14px;
}

.membership-card.active .membership-details p {
    color: rgba(255, 255, 255, 0.8);
}

.membership-card.inactive .membership-details p {
    color: #505050;
}

/* Expired Membership Card */
.membership-card.expired {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 2px solid #e74c3c;
}

.membership-badge.expired {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.membership-badge.expired i {
    color: #fff;
}

.membership-card.expired .membership-details h4 {
    color: #c0392b;
}

.membership-card.expired .membership-details p {
    color: #666;
}

/* Membership Expired Banner */
.membership-expired-banner {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border: 1px solid #e74c3c;
    border-radius: 12px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.membership-expired-banner .expired-icon {
    width: 50px;
    height: 50px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.membership-expired-banner .expired-icon i {
    font-size: 24px;
    color: #fff;
}

.membership-expired-banner .expired-content h4 {
    color: #c0392b;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.membership-expired-banner .expired-content p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

@media (max-width: 576px) {
    .membership-expired-banner {
        flex-direction: column;
        text-align: center;
    }
}

.membership-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-badge.active {
    background: #28a745;
    color: #fff;
}

.days-remaining {
    color: #ffb712;
    font-size: 14px;
    font-weight: 500;
}

/* Membership Page Styles */
.members-membership-area {
    padding: 80px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 400px);
}

.membership-intro h3 {
    color: #031550;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.membership-intro p {
    color: #505050;
    font-size: 16px;
    line-height: 1.7;
}

/* Membership Package Card */
.membership-package-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.membership-package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ffb712 0%, #e5a510 100%);
}

.package-header {
    text-align: center;
    padding: 40px 30px 20px;
    background: linear-gradient(135deg, #031550 0%, #0a2a80 100%);
    color: #fff;
}

.package-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffb712 0%, #e5a510 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.package-badge i {
    font-size: 32px;
    color: #fff;
}

.package-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.package-subtitle {
    font-size: 15px;
    opacity: 0.9;
    margin: 0;
}

.package-price {
    text-align: center;
    padding: 30px;
    background: #fdfaf5;
    border-bottom: 1px solid #eee;
}

.package-price .currency {
    font-size: 24px;
    font-weight: 700;
    color: #031550;
    vertical-align: top;
}

.package-price .amount {
    font-size: 64px;
    font-weight: 700;
    color: #031550;
    line-height: 1;
}

.package-price .period {
    font-size: 16px;
    color: #505050;
    margin-left: 5px;
}

.package-benefits {
    padding: 30px;
}

.package-benefits h4 {
    font-size: 16px;
    font-weight: 700;
    color: #031550;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-benefits ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.package-benefits ul li:last-child {
    border-bottom: none;
}

.package-benefits ul li i {
    color: #28a745;
    font-size: 16px;
    margin-top: 2px;
}

.package-benefits ul li span {
    color: #505050;
    font-size: 15px;
    line-height: 1.5;
}

.package-action {
    padding: 0 30px 30px;
    text-align: center;
}

.package-action .custom-btn {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
}

.secure-note {
    margin-top: 15px;
    font-size: 13px;
    color: #999;
}

.secure-note i {
    color: #28a745;
}

/* Active Membership Status Card */
.membership-status-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.membership-status-card.active {
    border-left: 5px solid #28a745;
}

.membership-status-card .status-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.membership-status-card .status-icon i {
    font-size: 32px;
    color: #fff;
}

.membership-status-card .status-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #031550;
    margin: 0 0 5px 0;
}

.membership-status-card .status-content p {
    font-size: 15px;
    color: #505050;
    margin: 0;
}

.membership-status-card .status-badge {
    margin-left: auto;
}

.badge-active {
    background: #28a745;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Membership Renewal Banner */
.membership-renewal-banner {
    background: linear-gradient(135deg, #fff8e6 0%, #fff3cd 100%);
    border-radius: 15px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 5px solid #ffb712;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.membership-renewal-banner .renewal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffb712 0%, #e5a510 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.membership-renewal-banner .renewal-icon i {
    font-size: 24px;
    color: #fff;
}

.membership-renewal-banner .renewal-content {
    flex: 1;
}

.membership-renewal-banner .renewal-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: #856404;
    margin: 0 0 5px 0;
}

.membership-renewal-banner .renewal-content p {
    font-size: 14px;
    color: #856404;
    margin: 0;
}

.membership-renewal-banner .renewal-action .custom-btn {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .membership-renewal-banner {
        flex-direction: column;
        text-align: center;
    }

    .membership-renewal-banner .renewal-action {
        width: 100%;
    }

    .membership-renewal-banner .renewal-action .custom-btn {
        width: 100%;
    }
}

/* Membership Benefits Card */
.membership-benefits-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.membership-benefits-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #031550;
    margin-bottom: 20px;
}

.membership-benefits-card h4 i {
    color: #ffb712;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.benefit-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffb712 0%, #e5a510 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.benefit-item span {
    font-size: 14px;
    color: #505050;
    font-weight: 500;
}

/* Membership FAQ */
.membership-faq h4 {
    color: #031550;
    font-size: 22px;
    font-weight: 700;
}

.membership-faq .accordion-item {
    border: 1px solid #e5e5e5;
    border-radius: 10px !important;
    margin-bottom: 15px;
    overflow: hidden;
}

.membership-faq .accordion-button {
    font-weight: 600;
    color: #031550;
    background: #fff;
    padding: 18px 20px;
}

.membership-faq .accordion-button:not(.collapsed) {
    background: #fdfaf5;
    color: #031550;
    box-shadow: none;
}

.membership-faq .accordion-button:focus {
    box-shadow: none;
    border-color: #e5e5e5;
}

.membership-faq .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffb712'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.membership-faq .accordion-body {
    padding: 20px;
    color: #505050;
    line-height: 1.7;
}

/* Responsive Membership Styles */
@media (max-width: 991px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .members-membership-area {
        padding: 50px 0;
    }

    .membership-intro h3 {
        font-size: 24px;
    }

    .package-header {
        padding: 30px 20px 15px;
    }

    .package-badge {
        width: 60px;
        height: 60px;
    }

    .package-badge i {
        font-size: 24px;
    }

    .package-header h3 {
        font-size: 20px;
    }

    .package-price {
        padding: 20px;
    }

    .package-price .amount {
        font-size: 48px;
    }

    .package-benefits,
    .package-action {
        padding: 20px;
    }

    .membership-card-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }

    .membership-info {
        flex-direction: column;
        width: 100%;
    }

    .membership-action {
        width: 100%;
    }

    .membership-action .custom-btn {
        width: 100%;
    }

    .membership-status-card {
        flex-direction: column;
        text-align: center;
    }

    .membership-status-card .status-badge {
        margin-left: 0;
    }
}

/* =============================================
   PAYMENT HISTORY STYLES
   ============================================= */

.members-payments-area {
    padding: 80px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 400px);
}

/* Payment Summary Cards */
.payment-summary-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.summary-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #031550 0%, #0a2a80 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-icon.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.summary-icon.primary {
    background: linear-gradient(135deg, #ffb712 0%, #e5a510 100%);
}

.summary-icon i {
    font-size: 22px;
    color: #fff;
}

.summary-content {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 13px;
    color: #505050;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #031550;
}

/* Payments Card */
.payments-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.payments-card-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

.payments-card-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #031550;
}

.payments-card-header h4 i {
    color: #ffb712;
}

.payments-card-body {
    padding: 0;
}

/* Payments Table */
.payments-table {
    width: 100%;
    border-collapse: collapse;
}

.payments-table thead {
    background: #f8f9fa;
}

.payments-table th {
    padding: 15px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #031550;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #eee;
}

.payments-table td {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.payments-table tbody tr:hover {
    background: #fdfaf5;
}

.payments-table tbody tr:last-child td {
    border-bottom: none;
}

.payment-id {
    font-family: monospace;
    font-size: 13px;
    color: #505050;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
}

.payment-date {
    font-size: 14px;
    color: #505050;
}

.payment-date i {
    color: #ffb712;
}

.payment-description {
    font-size: 15px;
    color: #031550;
    font-weight: 500;
}

.payment-amount {
    font-size: 16px;
    font-weight: 700;
    color: #031550;
}

.payment-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.payment-status.completed {
    background: #d4edda;
    color: #155724;
}

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

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

.payment-status.success {
    background: #cce5ff;
    color: #004085;
}

.btn-receipt {
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 8px;
    color: #505050;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-receipt:hover {
    background: #ffb712;
    color: #fff;
}

/* Empty State */
.payments-empty {
    padding: 60px 30px;
    text-align: center;
}

.payments-empty .empty-icon {
    width: 100px;
    height: 100px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.payments-empty .empty-icon i {
    font-size: 40px;
    color: #ccc;
}

.payments-empty h4 {
    font-size: 20px;
    font-weight: 700;
    color: #031550;
    margin-bottom: 10px;
}

.payments-empty p {
    font-size: 15px;
    color: #505050;
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Payment Methods Info */
.payment-methods-info {
    background: #fff;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.payment-methods-info p {
    font-size: 14px;
    color: #505050;
}

.payment-methods-info .accepted-cards {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.payment-methods-info .accepted-cards i {
    font-size: 32px;
    color: #999;
}

.payment-methods-info .accepted-cards .viva-icon {
    height: 24px;
    width: auto;
    align-self: center;
}

/* Responsive Payment History */
@media (max-width: 991px) {
    .payment-summary-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 767px) {
    .members-payments-area {
        padding: 50px 0;
    }

    .payment-summary-card {
        padding: 20px;
    }

    .summary-value {
        font-size: 20px;
    }

    .payments-card-header {
        padding: 20px;
    }

    .payments-table th,
    .payments-table td {
        padding: 15px;
    }

    .payments-table th:nth-child(5),
    .payments-table td:nth-child(5),
    .payments-table th:nth-child(6),
    .payments-table td:nth-child(6) {
        display: none;
    }

    .payment-methods-info {
        text-align: center;
    }

    .payment-methods-info .accepted-cards {
        justify-content: center;
        margin-top: 15px;
    }
}

/* =============================================
   Change Password Page Styles
============================================= */
.members-password-area {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 400px);
}

.password-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.password-card-header {
    text-align: center;
    margin-bottom: 30px;
}

.password-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffb712 0%, #e5a510 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.password-icon i {
    font-size: 32px;
    color: #fff;
}

.password-card-header h3 {
    color: #031550;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.password-card-header p {
    color: #505050;
    font-size: 15px;
    margin: 0;
}

.password-form .form-label {
    font-weight: 600;
    color: #031550;
    font-size: 14px;
    margin-bottom: 8px;
}

.password-form .input-group-text {
    background: #f8f9fa;
    border: 2px solid #e5e5e5;
    border-right: none;
    color: #ffb712;
    padding: 12px 15px;
}

.password-form .form-control {
    border: 2px solid #e5e5e5;
    border-left: none;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.password-form .form-control:focus {
    border-color: #ffb712;
    box-shadow: none;
}

.password-form .input-group:focus-within .input-group-text {
    border-color: #ffb712;
}

.password-form .form-text {
    font-size: 12px;
    margin-top: 8px;
}

.password-footer {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* =============================================
   Edit Profile Page Styles
============================================= */
.members-profile-area {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 400px);
}

.profile-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.profile-card-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffb712 0%, #e5a510 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.profile-icon i {
    font-size: 32px;
    color: #fff;
}

.profile-card-header h3 {
    color: #031550;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.profile-card-header p {
    color: #505050;
    font-size: 15px;
    margin: 0;
}

.form-section-title {
    color: #031550;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.form-section-title i {
    color: #ffb712;
}

.profile-form .form-label {
    font-weight: 600;
    color: #031550;
    font-size: 14px;
    margin-bottom: 8px;
}

.profile-form .form-control {
    border: 2px solid #e5e5e5;
    padding: 12px 15px;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.profile-form .form-control:focus {
    border-color: #ffb712;
    box-shadow: none;
}

.profile-form .form-control:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.profile-form .form-text {
    font-size: 12px;
    margin-top: 5px;
}

/* Email Verification Banner */
.email-verification-banner {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    padding: 12px 0;
    color: #fff;
}

.email-verification-banner .verification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.email-verification-banner i {
    font-size: 18px;
}

.email-verification-banner span {
    font-size: 14px;
    font-weight: 500;
}

.email-verification-banner .resend-link {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-verification-banner .resend-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Stronger, unmistakable state when verification actually blocks participation. */
.email-verification-banner.is-blocking {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(192, 57, 43, 0.35);
}

.email-verification-banner.is-blocking span {
    font-weight: 700;
}

/* Prominent dashboard call-out */
.dashboard-verify-callout {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #fff8ec;
    border: 1px solid #f5d9a6;
    border-left: 5px solid #e67e22;
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 22px;
}

.dashboard-verify-callout.is-blocking {
    background: #fdecea;
    border-color: #f5c2bd;
    border-left-color: #c0392b;
}

.dashboard-verify-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: #e67e22;
}

.dashboard-verify-callout.is-blocking .dashboard-verify-icon {
    background: #c0392b;
}

.dashboard-verify-body {
    min-width: 0;
}

.dashboard-verify-body h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--headings-color, #031550);
}

.dashboard-verify-body p {
    margin: 0 0 8px;
    font-size: 0.92rem;
    color: #4b5563;
    line-height: 1.5;
}

.dashboard-verify-sent {
    font-weight: 600;
    color: #031550 !important;
}

.dashboard-verify-body .custom-btn {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    width: auto;
    padding: 8px 18px;
    font-size: 0.85rem;
    line-height: 1.2;
}

.dashboard-verify-hint {
    margin: 10px 0 0 !important;
    font-size: 0.8rem !important;
    color: #9ca3af !important;
}

/* Top Bar Overrides for Members Area */
.header-top .account-info {
    max-width: none;
    height: 100%;
    min-height: 32px;
}

.header-top .row {
    align-items: center;
}

/* User Name Display in Top Bar */
.user-name-display {
    color: #fff;
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 32px;
    height: 32px;
    vertical-align: middle;
}

.user-name-display i {
    font-size: 12px;
    color: #ffb712;
}

/* Language Dropdown */
.lang-dropdown {
    margin-left: 5px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    padding-top: 0 !important;
}

.lang-dropdown .dropdown-toggle {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 0 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    gap: 6px;
    line-height: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
}

.lang-dropdown .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-dropdown .dropdown-toggle::after {
    margin-left: 5px;
    vertical-align: middle;
}

.lang-dropdown .dropdown-toggle i {
    font-size: 14px;
}

.lang-dropdown .dropdown-menu {
    min-width: 140px;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
}

.lang-dropdown .dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.lang-dropdown .dropdown-item:hover {
    background: #f8f9fa;
    color: #031550;
}

.lang-dropdown .dropdown-item.active {
    background: #ffb712;
    color: #fff;
}

@media (max-width: 767px) {
    .user-name-display {
        display: none;
    }

    .lang-dropdown .dropdown-toggle span {
        display: none;
    }

    .lang-dropdown .dropdown-toggle i {
        margin-right: 0;
    }
}

/* =============================================
   Announcements Page Styles
============================================= */
.members-announcements-area {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 400px);
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.announcement-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.announcement-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.announcement-card.important {
    border-left-color: #ffb712;
    background: linear-gradient(135deg, #fffef5 0%, #fff 100%);
}

.announcement-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #ffb712 0%, #e5a510 100%);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.announcement-badge i {
    margin-right: 4px;
}

.announcement-header {
    margin-bottom: 15px;
}

.announcement-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.announcement-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.announcement-category.news {
    background: #e3f2fd;
    color: #1976d2;
}

.announcement-category.event {
    background: #f3e5f5;
    color: #7b1fa2;
}

.announcement-category.benefits {
    background: #e8f5e9;
    color: #388e3c;
}

.announcement-category.notice {
    background: #fff3e0;
    color: #f57c00;
}

.announcement-date {
    color: #999;
    font-size: 13px;
}

.announcement-date i {
    margin-right: 5px;
}

.announcement-content {
    margin-bottom: 15px;
}

.announcement-title {
    color: #031550;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.announcement-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.announcement-footer {
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.btn-read-more {
    background: none;
    border: none;
    color: #ffb712;
    font-size: 14px;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    color: #031550;
}

.btn-read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(3px);
}

/* Announcements Modal */
.announcement-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding: 20px 25px;
}

/* Quick Links Disabled State */
.quick-links-list a.disabled {
    opacity: 0.6;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.quick-links-list a.disabled:hover {
    color: inherit;
}

/* Membership Required Modal */
.membership-required-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.membership-required-icon i {
    font-size: 32px;
    color: #ffb712;
}

#membershipRequiredModal .modal-body h4 {
    color: #031550;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

#membershipRequiredModal .modal-footer {
    border-top: 1px solid #eee;
}

.announcement-modal .modal-footer {
    border-top: 1px solid #eee;
    padding: 15px 25px;
    justify-content: flex-end;
}

.announcement-modal .modal-title {
    color: #031550;
    font-size: 20px;
    font-weight: 600;
    margin-top: 5px;
}

.announcement-modal .modal-body {
    padding: 25px;
    color: #555;
    line-height: 1.7;
}

/* Announcements Empty State */
.announcements-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.announcements-empty .empty-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.announcements-empty .empty-icon i {
    font-size: 40px;
    color: #adb5bd;
}

.announcements-empty h4 {
    color: #031550;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.announcements-empty p {
    color: #666;
    font-size: 15px;
    margin: 0;
}

/* Responsive Announcements */
@media (max-width: 767px) {
    .members-announcements-area {
        padding: 50px 0;
    }

    .announcement-card {
        padding: 20px;
    }

    .announcement-title {
        font-size: 16px;
    }

    .announcement-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* =============================================
   Toast Notification Styles
   ============================================= */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
    max-width: 400px;
}

.toast-notification.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
}

.toast-notification.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
}

.toast-notification i {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-notification span {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.toast-notification .toast-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    margin-left: 10px;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.toast-notification .toast-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .toast-notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* =============================================
   MEMBER CARD COMING SOON PAGE
   ============================================= */
.member-card-coming-soon {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 400px);
}

.member-card-content {
    background: #fff;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
}

/* Phone Mockup */
.card-mockup-wrapper {
    margin-bottom: 35px;
}

.phone-mockup {
    width: 220px;
    height: 450px;
    background: #1c1c1e;
    border-radius: 36px;
    padding: 10px;
    margin: 0 auto;
    box-shadow:
        0 30px 80px rgba(3, 21, 80, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 0 1px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Side buttons */
.phone-side-btn {
    position: absolute;
    background: #2c2c2e;
    border-radius: 2px;
}

.phone-side-btn--silent {
    width: 3px;
    height: 18px;
    left: -3px;
    top: 80px;
}

.phone-side-btn--vol-up {
    width: 3px;
    height: 30px;
    left: -3px;
    top: 115px;
}

.phone-side-btn--vol-down {
    width: 3px;
    height: 30px;
    left: -3px;
    top: 155px;
}

.phone-side-btn--power {
    width: 3px;
    height: 40px;
    right: -3px;
    top: 120px;
}

.phone-screen {
    background: #000;
    border-radius: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Status Bar */
.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px 0;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.status-time {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
}

.status-island {
    width: 56px;
    height: 16px;
    background: #000;
    border-radius: 10px;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.status-icons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.status-icons i {
    font-size: 7px;
    color: #fff;
}

/* Wallet App Header */
.phone-wallet-header {
    padding: 14px 16px 8px;
    flex-shrink: 0;
}

.wallet-app-label {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

/* Wallet Card */
.wallet-card {
    margin: 0 10px 10px;
    border-radius: 14px;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.wallet-card-accent {
    height: 5px;
    background: linear-gradient(90deg, #ffb712 0%, #e5a510 60%, #ffb712 100%);
    flex-shrink: 0;
}

.wallet-card-inner {
    background: linear-gradient(160deg, #041a62 0%, #031550 40%, #020e38 100%);
    padding: 14px 14px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.wallet-card-inner::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -25px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 183, 18, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.wallet-card-inner::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 183, 18, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.wallet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.wallet-card-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-logo-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ffb712 0%, #e5a510 100%);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-logo-icon i {
    font-size: 12px;
    color: #fff;
}

.wallet-logo-text {
    display: flex;
    flex-direction: column;
}

.wallet-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #fff;
}

.wallet-sublabel {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    margin-top: 1px;
}

.wallet-crown {
    color: #ffb712;
    font-size: 14px;
    opacity: 0.8;
}

/* Card body */
.wallet-card-body {
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.wallet-field-label {
    display: block;
    font-size: 6px;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 3px;
    text-transform: uppercase;
}

.wallet-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card footer fields */
.wallet-card-footer {
    margin-bottom: auto;
    position: relative;
    z-index: 1;
}

.wallet-footer-fields {
    display: flex;
    gap: 20px;
}

.wallet-field {
    display: flex;
    flex-direction: column;
}

.wallet-field-value {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
}

.wallet-field-active {
    color: #4cd964;
}

/* QR Code */
.wallet-card-qr {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.qr-code {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 6px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code svg {
    width: 100%;
    height: 100%;
    display: block;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 1px;
    width: 100%;
    height: 100%;
}

.qr-grid span {
    border-radius: 0.5px;
}

.qr-grid span:nth-child(odd) {
    background: #031550;
}

.qr-grid span:nth-child(even) {
    background: transparent;
}

.qr-grid span:nth-child(3n+1) {
    background: #031550;
}

.qr-grid span:nth-child(4n) {
    background: transparent;
}

.qr-grid span:nth-child(7n+2) {
    background: #031550;
}

/* Corner markers for QR */
.qr-grid span:nth-child(1),
.qr-grid span:nth-child(2),
.qr-grid span:nth-child(3),
.qr-grid span:nth-child(10),
.qr-grid span:nth-child(12),
.qr-grid span:nth-child(19),
.qr-grid span:nth-child(20),
.qr-grid span:nth-child(21) {
    background: #031550;
}

.qr-grid span:nth-child(7),
.qr-grid span:nth-child(8),
.qr-grid span:nth-child(9),
.qr-grid span:nth-child(16),
.qr-grid span:nth-child(18),
.qr-grid span:nth-child(25),
.qr-grid span:nth-child(26),
.qr-grid span:nth-child(27) {
    background: #031550;
}

.qr-grid span:nth-child(55),
.qr-grid span:nth-child(56),
.qr-grid span:nth-child(57),
.qr-grid span:nth-child(64),
.qr-grid span:nth-child(66),
.qr-grid span:nth-child(73),
.qr-grid span:nth-child(74),
.qr-grid span:nth-child(75) {
    background: #031550;
}

/* Coming Soon Badge */
.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ffb712 0%, #e5a510 100%);
    color: #fff;
    padding: 8px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Title & Description */
.member-card-title {
    color: #031550;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.member-card-description {
    color: #505050;
    font-size: 16px;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 40px;
}

/* Feature Highlights */
.member-card-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.member-card-features .feature-item {
    text-align: center;
    padding: 25px 15px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.member-card-features .feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.member-card-features .feature-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #031550 0%, #0a2a80 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.member-card-features .feature-icon i {
    font-size: 20px;
    color: #ffb712;
}

.member-card-features .feature-text h5 {
    color: #031550;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.member-card-features .feature-text p {
    color: #505050;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Back to Dashboard */
.member-card-back {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.member-card-back .back-link {
    color: #505050;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.member-card-back .back-link:hover {
    color: #ffb712;
}

/* Responsive Member Card */
@media (max-width: 767px) {
    .member-card-coming-soon {
        padding: 40px 0;
    }

    .member-card-content {
        padding: 35px 20px;
    }

    .phone-mockup {
        width: 190px;
        height: 390px;
    }

    .member-card-title {
        font-size: 22px;
    }

    .member-card-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Wallet Buttons */
.wallet-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.wallet-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.wallet-btn--google {
    background: transparent;
    padding: 0;
}

.wallet-btn--google:hover {
    opacity: 0.85;
}

.wallet-btn--apple {
    background: transparent;
    padding: 0;
}

.wallet-btn--apple:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.wallet-buttons-notice {
    text-align: center;
    margin: 30px 0;
    padding: 16px 24px;
    background: #fff8e1;
    border-radius: 8px;
    color: #6d5c00;
    font-size: 15px;
}

@media (max-width: 480px) {
    .wallet-buttons {
        flex-direction: column;
        align-items: center;
    }

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

/* ============================================================ */
/* Compact dashboard layout — replaces page-banner + welcome-    */
/* section + standalone membership card with a single hero band. */
/* ============================================================ */

.members-dashboard-area-compact {
    padding: 28px 0 60px;
    background: #f8f9fa;
    min-height: calc(100vh - 400px);
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #031550 0%, #0a2a80 100%);
    border-radius: 16px;
    padding: 16px 22px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(3, 21, 80, 0.12);
    color: #fff;
}

.dashboard-hero-welcome {
    flex: 1 1 200px;
    min-width: 0;
    max-width: 320px;
    padding: 4px 0;
}

.dashboard-hero-eyebrow {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffb712;
}

.dashboard-hero-name {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: anywhere;
    /* Auto-shrink long names; clamp to keep the row compact */
    font-size: clamp(16px, 2vw + 6px, 22px);
}

/* Standalone membership status card — its own container above the main grid */
.dashboard-membership-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #ffb712;
}

.dashboard-membership-card.is-active {
    border-left-color: #16a34a;
}

.dashboard-membership-card.is-expired {
    border-left-color: #dc2626;
    background: #fffafa;
}

.dashboard-membership-card.is-inactive {
    border-left-color: #ffb712;
    background: #fffdf5;
}

.dashboard-membership-card-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    background: linear-gradient(135deg, #ffb712 0%, #e5a510 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.dashboard-membership-card.is-active .dashboard-membership-card-icon {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.dashboard-membership-card.is-expired .dashboard-membership-card-icon {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.dashboard-membership-card-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.dashboard-membership-card-text strong {
    font-size: 15px;
    font-weight: 700;
    color: #031550;
}

.dashboard-membership-card-text span {
    font-size: 13px;
    color: #6b7280;
}

.dashboard-membership-card-warning {
    flex: 0 0 auto;
    padding: 6px 12px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.dashboard-membership-card-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #031550;
    color: #ffb712;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dashboard-membership-card-cta:hover {
    background: #ffb712;
    color: #031550;
}

.dashboard-hero-logout-form {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin: 0;
}

.dashboard-hero-logout-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dashboard-hero-logout-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* ============ Main grid ============ */

.dashboard-grid {
    margin: 0 -12px;
}

.dashboard-grid > [class*="col-"] {
    padding: 0 12px;
}

.dashboard-card-events {
    margin-bottom: 24px;
}

.dashboard-card-header-slim {
    margin-bottom: 16px;
    padding-bottom: 12px;
}

.dashboard-card-header-slim .card-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    margin-right: 12px;
}

.dashboard-card-header-slim .card-icon i {
    font-size: 16px;
}

.dashboard-card-header-slim h4 {
    font-size: 16px;
}

.dashboard-empty {
    text-align: center;
    padding: 30px 16px;
    color: #9ca3af;
}

.dashboard-empty i {
    font-size: 36px;
    margin-bottom: 10px;
    color: #d1d5db;
}

.dashboard-empty p {
    margin: 0;
    font-size: 14px;
}

/* ============ Sidebar (compact cards) ============ */

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-card-compact {
    padding: 20px;
    margin-bottom: 0;
}

.dashboard-mini-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.dashboard-mini-header i {
    color: #ffb712;
    font-size: 14px;
}

.dashboard-mini-header h5 {
    margin: 0;
    color: #031550;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-mini-line {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    font-size: 13px;
}

.dashboard-mini-line span {
    color: #9ca3af;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 2px;
}

.dashboard-mini-line strong {
    color: #031550;
    font-weight: 600;
    word-break: break-word;
}

.dashboard-google-linked {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 0;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 8px;
    cursor: help;
}

.dashboard-google-linked > svg {
    flex: 0 0 auto;
}

.dashboard-google-linked-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.dashboard-google-linked-text strong {
    font-size: 12px;
    font-weight: 700;
    color: #075985;
}

.dashboard-google-linked-text span {
    font-size: 11px;
    color: #0369a1;
}

.dashboard-google-linked-check {
    color: #16a34a;
    font-size: 14px;
    flex: 0 0 auto;
}

.dashboard-mini-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.dashboard-mini-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    background: #f8f9fa;
    color: #031550;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dashboard-mini-action:hover {
    background: #ffb712;
    color: #031550;
}

.dashboard-mini-action i {
    font-size: 11px;
}

/* ============ Quick links grid ============ */

.dashboard-quicklinks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dashboard-quicklink {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 8px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #031550;
    transition: all 0.2s ease;
    position: relative;
    min-height: 80px;
    text-align: center;
}

.dashboard-quicklink:hover {
    background: linear-gradient(135deg, #031550 0%, #0a2a80 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 21, 80, 0.15);
}

.dashboard-quicklink i:first-child {
    font-size: 20px;
    color: #ffb712;
    transition: transform 0.2s ease;
}

.dashboard-quicklink:hover i:first-child {
    transform: scale(1.1);
}

.dashboard-quicklink span {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.dashboard-quicklink-wide {
    grid-column: 1 / -1;
    flex-direction: row;
    min-height: 50px;
    padding: 12px 16px;
    justify-content: flex-start;
    gap: 12px;
}

.dashboard-quicklink-wide i:first-child {
    font-size: 16px;
}

.dashboard-quicklink.is-locked {
    opacity: 0.65;
}

.dashboard-quicklink-lock {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 10px !important;
    color: #9ca3af !important;
}

/* ============ Responsive ============ */

@media (max-width: 575px) {
    .members-dashboard-area-compact {
        padding: 16px 0 40px;
    }

    .dashboard-hero {
        padding: 14px 18px;
    }

    .dashboard-hero-welcome {
        max-width: none;
    }

    .dashboard-membership-card {
        flex-wrap: wrap;
        padding: 14px 16px;
        gap: 12px;
    }

    .dashboard-membership-card-warning,
    .dashboard-membership-card-cta {
        margin-left: 62px;
    }
}

/* ============================================================ */
/* Unified account settings page (profile + password)            */
/* ============================================================ */

.account-form .form-control {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    font-size: 14px;
}

.account-form .form-control:focus {
    border-color: #ffb712;
    box-shadow: 0 0 0 3px rgba(255, 183, 18, 0.15);
    outline: none;
}

.account-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #031550;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.account-required {
    color: #dc2626;
}

.account-readonly {
    background: #f8f9fa !important;
    color: #6b7280;
    cursor: not-allowed;
}

.account-hint {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #9ca3af;
}

.account-field {
    margin-bottom: 14px;
}

.account-form-actions {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
}

.account-flash i {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 14px;
}

.account-flash-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.account-flash-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.account-flash-error ul {
    margin: 0;
    padding-left: 16px;
}

.account-flash-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.account-flash-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* A disabled wing/candidate option (e.g. self-vote is blocked). */
.th-wing-disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Email preferences (account page) — selectable cards grid */
.email-prefs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.email-pref-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 16px 18px;
    border: 2px solid #e7e9ef;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

.email-pref-card:hover {
    border-color: #cdd2df;
}

.email-pref-card:active {
    transform: scale(.99);
}

/* Visually-hidden native checkbox (kept for form submit + keyboard focus). */
.email-pref-card-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.email-pref-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.email-pref-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f3f8;
    color: #64748b;
    font-size: 15px;
    transition: background-color .15s ease, color .15s ease;
}

.email-pref-card-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #031550;
    color: #fff;
    font-size: 11px;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .15s ease, transform .15s ease;
}

.email-pref-card-name {
    font-weight: 700;
    color: var(--headings-color, #031550);
}

.email-pref-card-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;
}

.email-pref-card-status {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
}

.email-pref-card-status .on,
.email-pref-card-status .off {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.email-pref-card-status .on {
    display: none;
    color: #166534;
}

.email-pref-card-status .off {
    color: #9ca3af;
}

/* Selected state — driven by both the .is-selected class (JS) and :has() (CSS-only). */
.email-pref-card.is-selected,
.email-pref-card:has(.email-pref-card-input:checked) {
    border-color: #031550;
    background: #f7f9ff;
    box-shadow: 0 4px 14px rgba(3, 21, 80, 0.08);
}

.email-pref-card.is-selected .email-pref-card-icon,
.email-pref-card:has(.email-pref-card-input:checked) .email-pref-card-icon {
    background: #031550;
    color: #ffb712;
}

.email-pref-card.is-selected .email-pref-card-tick,
.email-pref-card:has(.email-pref-card-input:checked) .email-pref-card-tick {
    opacity: 1;
    transform: scale(1);
}

.email-pref-card.is-selected .email-pref-card-status .on,
.email-pref-card:has(.email-pref-card-input:checked) .email-pref-card-status .on {
    display: inline-flex;
}

.email-pref-card.is-selected .email-pref-card-status .off,
.email-pref-card:has(.email-pref-card-input:checked) .email-pref-card-status .off {
    display: none;
}

/* Keyboard focus ring on the card when the hidden checkbox is focused. */
.email-pref-card:focus-within {
    border-color: #031550;
    box-shadow: 0 0 0 0.2rem rgba(3, 21, 80, 0.15);
}

/* ============================================================
   Debate Town Hall — apply page + formation view
   Shared design language (navy #031550 / gold #ffb712).
   ============================================================ */
.th-wrap { --th-navy:#031550; --th-gold:#ffb712; --th-line:#e7e9ef; }

/* Hero */
.th-hero {
    position:relative; overflow:hidden; border-radius:22px; padding:34px 34px 30px;
    background:radial-gradient(1200px 400px at 90% -20%, rgba(255,183,18,.18), transparent 60%), linear-gradient(135deg,#031550 0%,#0a2a86 100%);
    color:#fff; margin-bottom:22px; box-shadow:0 18px 44px rgba(3,21,80,.20);
}
.th-hero-eyebrow { display:inline-flex; align-items:center; gap:8px; font-size:.78rem; font-weight:700; letter-spacing:1.4px; text-transform:uppercase; color:var(--th-gold); margin:0 0 10px; }
.th-hero-title { font-weight:900; font-size:2rem; line-height:1.1; margin:0 0 8px; color:#fff; }
.th-hero-sub { color:rgba(255,255,255,.82); max-width:60ch; margin:0; line-height:1.55; }
.th-hero-back { position:absolute; top:22px; right:22px; width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.14); color:#fff; transition:background .18s; }
.th-hero-back:hover { background:rgba(255,255,255,.26); color:#fff; }

/* Status-quo callout inside hero */
.th-hero-sq { margin-top:18px; padding:14px 16px; border-radius:14px; background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.18); }
.th-hero-sq-label { display:flex; align-items:center; gap:8px; font-size:.72rem; font-weight:800; letter-spacing:1px; text-transform:uppercase; color:var(--th-gold); margin:0 0 6px; }
.th-hero-sq-body { color:#fff; line-height:1.55; }
.th-hero-sq-body :last-child { margin-bottom:0; }

/* Step ribbon (cosmetic progress) */
.th-steps { display:flex; gap:10px; margin:0 0 22px; flex-wrap:wrap; }
.th-step { flex:1 1 0; min-width:130px; display:flex; align-items:center; gap:10px; padding:12px 14px; border:1px solid var(--th-line); border-radius:12px; background:#fff; color:#6b7280; font-weight:700; font-size:.9rem; transition:border-color .18s,color .18s,background .18s; }
.th-step .th-step-n { flex:0 0 26px; width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:#eef1fb; color:var(--th-navy); font-size:.8rem; font-weight:800; }
.th-step.is-active { border-color:var(--th-navy); color:var(--th-navy); background:linear-gradient(180deg,#f7f9ff,#fff); }
.th-step.is-active .th-step-n { background:var(--th-navy); color:var(--th-gold); }
.th-steps.is-wizard .th-step { cursor:pointer; }
.th-step.is-done { border-color:#b7ebc6; color:#12833f; }
.th-step.is-done .th-step-n { background:#12833f; color:#fff; }

/* Wizard step panels + nav */
.th-step-panel[hidden] { display:none; }
.th-wizard-nav { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:2px 0 8px; }
.th-back { display:inline-flex; align-items:center; background:#fff; border:1px solid var(--th-line); color:var(--th-navy); border-radius:999px; padding:12px 22px; font-weight:700; font-size:.95rem; cursor:pointer; transition:background .18s, border-color .18s; }
.th-back:hover { background:#f7f9ff; border-color:#c3cade; }

/* Info blocks (about / programme / wings) */
.th-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:22px; }
@media (max-width:820px){ .th-info-grid { grid-template-columns:1fr; } }
.th-info { border:1px solid var(--th-line); border-radius:16px; padding:20px 22px; background:#fff; }
.th-info h3 { display:flex; align-items:center; gap:9px; font-size:1rem; font-weight:800; color:var(--th-navy); margin:0 0 12px; }
.th-info h3 i { color:var(--th-gold); }
.th-info p { color:#4b5563; line-height:1.6; margin:0 0 10px; }
.th-info-sq { margin-top:8px; padding:12px 14px; border-radius:12px; background:#fafbfe; border:1px solid var(--th-line); color:#374151; line-height:1.55; }
.th-info-sq :last-child { margin-bottom:0; }

/* Programme timeline */
.th-timeline { list-style:none; margin:0; padding:0; position:relative; }
/* Continuous vertical line living in the left gutter (never crosses the text). */
.th-timeline::before { content:""; position:absolute; left:6px; top:10px; bottom:10px; width:2px; background:var(--th-line); }
.th-timeline li { position:relative; display:grid; grid-template-columns:78px 1fr; gap:12px; padding:9px 0 9px 26px; }
/* Node dot on the line, aligned with each row. */
.th-timeline li::before { content:""; position:absolute; left:0; top:13px; width:14px; height:14px; border-radius:50%; background:#fff; border:3px solid var(--th-gold); box-sizing:border-box; }
.th-timeline .th-time { font-family:"SF Mono","Courier New",monospace; font-size:.8rem; font-weight:700; color:var(--th-navy); white-space:nowrap; }
.th-timeline .th-what { color:#4b5563; font-size:.9rem; line-height:1.4; }
.th-timeline-total { margin-top:12px; font-size:.82rem; color:#6b7280; font-style:italic; }

/* Wings / camps diagram */
.th-camps { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.th-camp { border-radius:14px; padding:12px; }
.th-camp.is-pro { background:linear-gradient(180deg,#ecfdf3,#fff); border:1px solid #b7ebc6; }
.th-camp.is-against { background:linear-gradient(180deg,#fef2f2,#fff); border:1px solid #f5c2c2; }
.th-camp-title { font-size:.72rem; font-weight:800; letter-spacing:.6px; text-transform:uppercase; margin:0 0 8px; }
.th-camp.is-pro .th-camp-title { color:#12833f; }
.th-camp.is-against .th-camp-title { color:#c0392b; }
.th-wing-chip { display:flex; align-items:center; gap:8px; padding:7px 10px; border-radius:9px; background:#fff; border:1px solid var(--th-line); font-size:.84rem; font-weight:600; color:#374151; margin-bottom:6px; }
.th-wing-chip:last-child { margin-bottom:0; }
.th-wing-chip .th-dot { width:9px; height:9px; border-radius:50%; flex-shrink:0; }

/* Role picker */
.th-card { border:1px solid var(--th-line); border-radius:18px; padding:22px 24px; background:#fff; margin-bottom:18px; box-shadow:0 6px 18px rgba(3,21,80,.05); }
.th-card-head { display:flex; align-items:center; gap:10px; font-weight:800; color:var(--th-navy); font-size:1.02rem; margin:0 0 16px; }
.th-card-head i { color:var(--th-gold); }
.th-roles { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; }
.th-role { position:relative; display:flex; flex-direction:column; border:2px solid var(--th-line); border-radius:16px; padding:18px 18px 16px; cursor:pointer; background:#fff; transition:border-color .18s,background-color .18s,box-shadow .18s,transform .18s; }
.th-role:hover { border-color:#c3cade; transform:translateY(-2px); }
.th-role input { position:absolute; opacity:0; pointer-events:none; }
.th-role:has(input:checked) { border-color:var(--th-navy); background:linear-gradient(180deg,#f7f9ff,#fff); box-shadow:0 10px 26px rgba(3,21,80,.12); }
.th-role.is-disabled { opacity:.62; }
.th-role-top { display:flex; align-items:flex-start; gap:13px; }
.th-role-icon { flex:0 0 44px; width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:#eef1fb; color:var(--th-navy); font-size:1.1rem; transition:background .18s,color .18s; }
.th-role:has(input:checked) .th-role-icon { background:var(--th-navy); color:var(--th-gold); }
.th-role-name { display:flex; align-items:center; gap:8px; font-weight:800; color:var(--th-navy); }
.th-role-tick { opacity:0; color:var(--th-navy); transition:opacity .18s; margin-left:auto; }
.th-role:has(input:checked) .th-role-tick { opacity:1; }
.th-role-help { font-size:.86rem; color:#6b7280; margin-top:5px; line-height:1.45; }
.th-role-detail { margin-top:14px; padding-top:12px; border-top:1px dashed var(--th-line); display:none; }
.th-role:has(input:checked) .th-role-detail { display:block; animation:thFade .25s ease; }
.th-ro-block + .th-ro-block { margin-top:12px; }
.th-ro-title { font-size:.72rem; font-weight:800; letter-spacing:.5px; text-transform:uppercase; color:var(--th-navy); margin:0 0 6px; }
.th-ro-list { list-style:none; margin:0; padding:0; }
.th-ro-list li { position:relative; padding-left:20px; font-size:.83rem; color:#4b5563; line-height:1.45; margin-bottom:4px; }
.th-ro-list.is-rights li::before { content:"\f00c"; font-family:"Font Awesome 6 Free"; font-weight:900; color:#12833f; position:absolute; left:0; top:1px; font-size:.7rem; }
.th-ro-list.is-oblig li::before { content:"\f0a4"; font-family:"Font Awesome 6 Free"; font-weight:900; color:var(--th-gold); position:absolute; left:0; top:1px; font-size:.7rem; }

/* Progressive-disclosure detail blocks */
.th-detail-block { margin-top:2px; }
.th-detail-block[hidden] { display:none; }

/* Wing picker (speaker step) */
.th-wingpick { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:640px){ .th-wingpick { grid-template-columns:1fr; } }
.th-wing { position:relative; display:flex; align-items:flex-start; gap:11px; border:2px solid var(--th-line); border-radius:14px; padding:14px 15px; cursor:pointer; background:#fff; transition:border-color .18s,box-shadow .18s,transform .18s; }
.th-wing:hover { transform:translateY(-1px); border-color:#c3cade; }
.th-wing input { position:absolute; opacity:0; pointer-events:none; }
.th-wing:has(input:checked) { border-color:var(--th-navy); box-shadow:0 8px 20px rgba(3,21,80,.10); }
.th-wing .th-dot { width:12px; height:12px; border-radius:50%; margin-top:4px; flex-shrink:0; }
.th-wing-name { font-weight:700; color:var(--th-navy); font-size:.92rem; }
.th-wing-camp { font-size:.74rem; color:#6b7280; margin-top:2px; }

/* Wing mode radios */
.th-mode { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:640px){ .th-mode { grid-template-columns:1fr; } }
.th-mode-opt { position:relative; border:2px solid var(--th-line); border-radius:14px; padding:14px 16px; cursor:pointer; background:#fff; transition:border-color .18s; }
.th-mode-opt input { position:absolute; opacity:0; pointer-events:none; }
.th-mode-opt:has(input:checked) { border-color:var(--th-navy); background:linear-gradient(180deg,#f7f9ff,#fff); }
.th-mode-name { font-weight:700; color:var(--th-navy); }
.th-mode-help { font-size:.82rem; color:#6b7280; margin-top:4px; line-height:1.4; }

/* Leadership toggle + journalist gate + terms */
.th-leadership { display:flex; align-items:flex-start; gap:11px; margin-top:16px; padding:14px 16px; border:1px solid var(--th-line); border-radius:12px; background:#f7f9ff; }
.th-leadership input { margin-top:3px; }
.th-leadership-label { font-weight:700; color:var(--th-navy); font-size:.9rem; }
.th-leadership-help { font-size:.82rem; color:#6b7280; margin-top:3px; line-height:1.4; }
.th-gate { display:flex; gap:14px; align-items:flex-start; padding:18px 20px; border-radius:14px; border:1px solid #f5c2c2; background:linear-gradient(180deg,#fef7f7,#fff); }
.th-gate.is-ready { border-color:#b7ebc6; background:linear-gradient(180deg,#f0fdf5,#fff); }
.th-gate-icon { flex:0 0 42px; width:42px; height:42px; border-radius:11px; display:flex; align-items:center; justify-content:center; background:#c0392b; color:#fff; font-size:1.05rem; }
.th-gate.is-ready .th-gate-icon { background:#12833f; }
.th-gate h4 { font-size:.98rem; font-weight:800; color:var(--th-navy); margin:0 0 5px; }
.th-gate p { color:#4b5563; font-size:.88rem; line-height:1.5; margin:0 0 10px; }
.th-questions { margin-top:16px; padding-top:12px; border-top:1px dashed var(--th-line); animation:thFade .25s ease; }
@keyframes thFade { from { opacity:0; transform:translateY(-4px);} to { opacity:1; transform:none;} }
.th-section-label { font-weight:700; color:var(--th-navy); font-size:.95rem; margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.th-section-label i { color:var(--th-gold); }
.th-terms-box { max-height:200px; overflow-y:auto; border:1px solid var(--th-line); border-radius:12px; padding:16px 18px; background:#fafbfe; font-size:.9rem; color:#374151; line-height:1.6; }
.th-terms-check { display:flex; align-items:flex-start; gap:10px; margin-top:14px; padding:12px 14px; background:#f7f9ff; border:1px solid var(--th-line); border-radius:10px; }
.th-terms-check input { margin-top:2px; }

/* Status panel */
.th-status-role { font-size:.85rem; color:#6b7280; margin-bottom:10px; }
.th-ticket-box { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:14px; padding:16px 18px; border:1px solid var(--th-line); border-radius:14px; background:linear-gradient(135deg,#f7f9ff 0%,#fff 100%); }
.th-ticket-info { display:flex; align-items:center; gap:14px; }
.th-ticket-info > i { width:42px; height:42px; border-radius:11px; background:#031550; color:#ffb712; display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex-shrink:0; }
.th-ticket-info strong { display:block; color:#031550; font-weight:800; }
.th-ticket-info span { display:block; font-size:.85rem; color:#6b7280; }
.th-ticket-ref { font-family:"SF Mono","Courier New",monospace; letter-spacing:1px; }

/* Formation reveal (public) */
.th-formation-side { margin-bottom:22px; }
.th-formation-side-label { display:flex; align-items:center; gap:8px; font-size:.75rem; font-weight:800; letter-spacing:1px; text-transform:uppercase; color:var(--th-navy); margin:0 0 12px; }
.th-formation-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:720px){ .th-formation-grid { grid-template-columns:1fr; } }
.th-formation-card { position:relative; overflow:hidden; border-radius:18px; padding:20px 22px; background:#fff; border:1px solid var(--th-line); box-shadow:0 8px 22px rgba(3,21,80,.06); }
.th-formation-card::before { content:""; position:absolute; inset:0 auto 0 0; width:6px; background:var(--th-role-color,#031550); }
.th-formation-role { font-size:.72rem; font-weight:800; letter-spacing:.6px; text-transform:uppercase; color:var(--th-role-color,#031550); margin:0 0 2px; padding-left:10px; }
.th-formation-wing { font-size:1.05rem; font-weight:800; color:var(--th-navy); margin:0 0 12px; padding-left:10px; }
.th-formation-count { position:absolute; top:16px; right:20px; font-size:1.6rem; font-weight:900; color:var(--th-navy); opacity:.15; }
.th-formation-leader { display:flex; align-items:center; gap:10px; padding:10px 12px; margin:0 0 12px 10px; border-radius:12px; background:linear-gradient(135deg,#fff9e8,#fff); border:1px solid #ffe08a; }
.th-formation-leader i { color:var(--th-gold); }
.th-formation-leader strong { color:var(--th-navy); }
.th-formation-leader span { font-size:.82rem; color:#6b7280; display:block; }
.th-seats { display:flex; flex-wrap:wrap; gap:6px; padding-left:10px; }
.th-seat { display:inline-flex; align-items:center; gap:6px; padding:5px 9px; border-radius:8px; background:#f4f6fb; border:1px solid var(--th-line); font-size:.8rem; color:#374151; }
.th-seat .th-seat-n { font-family:"SF Mono","Courier New",monospace; font-weight:700; color:var(--th-navy); }
.th-formation-pending { text-align:center; padding:44px 24px; border:1px dashed var(--th-line); border-radius:18px; background:#fafbfe; }
.th-formation-pending i { font-size:2rem; color:var(--th-gold); margin-bottom:12px; }
.th-formation-pending h3 { font-weight:800; color:var(--th-navy); margin:0 0 6px; }
.th-formation-pending p { color:#6b7280; margin:0; }

/* Subject-details accordion (townhall apply) */
.th-accordion { margin-bottom:18px; border:1px solid var(--th-line, #e7e9ef); border-radius:12px; overflow:hidden; }
.th-accordion-item { border-top:1px solid var(--th-line, #e7e9ef); }
.th-accordion-item:first-child { border-top:0; }
.th-accordion-item > summary { cursor:pointer; padding:13px 16px; font-weight:700; color:#031550; background:#fafbfe; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.th-accordion-item > summary::-webkit-details-marker { display:none; }
.th-accordion-item > summary::after { content:"\f078"; font-family:"Font Awesome 6 Free"; font-weight:900; font-size:.72rem; color:#9ca3af; transition:transform .18s; }
.th-accordion-item[open] > summary::after { transform:rotate(180deg); }
.th-accordion-item[open] > summary { color:#031550; background:#f2f5fd; }
.th-accordion-body { padding:14px 16px; color:#4b5563; line-height:1.65; font-size:.92rem; }
.th-accordion-body :last-child { margin-bottom:0; }
.th-accordion-body img { max-width:100%; height:auto; border-radius:8px; }

/* Profile social links */
.social-link-row { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.social-link-icon { flex:0 0 38px; width:38px; height:38px; border-radius:9px; background:#eef1fb; color:#031550; display:flex; align-items:center; justify-content:center; font-size:1rem; }
.social-link-row .form-control { flex:1 1 auto; min-width:0; }
.social-link-public { flex:0 0 auto; display:inline-flex; align-items:center; gap:6px; font-size:.8rem; font-weight:600; color:#6b7280; white-space:nowrap; cursor:pointer; margin:0; user-select:none; }
.social-link-public input { margin:0; }
.social-link-public i { color:#9ca3af; }
.social-link-row.has-error .social-link-icon { background:#fde8e8; color:#c0392b; }
@media (max-width:560px){ .social-link-public span { display:none; } }

/* ── Townhall apply: required markers, validation feedback + mobile polish ── */
.th-req { color:#c0392b; margin-left:3px; font-weight:700; }
.th-required-legend { font-size:.82rem; color:#6b7280; margin:0 0 14px; }
.th-required-legend .th-req { margin-left:0; margin-right:4px; }

.th-step-error {
    display:flex; align-items:center; gap:.5rem;
    background:#fdecea; color:#b02a1a; border:1px solid #f3b7ac;
    border-radius:10px; padding:10px 14px; font-size:.88rem; margin:4px 0 14px;
}
.th-step-error i { flex:0 0 auto; }

input.is-invalid, textarea.is-invalid, select.is-invalid {
    border-color:#c0392b !important; box-shadow:0 0 0 3px rgba(192,57,43,.12) !important;
}
.th-wingpick.is-invalid, .th-mode.is-invalid, .th-terms-check.is-invalid, label.is-invalid {
    outline:2px solid rgba(192,57,43,.55); outline-offset:3px; border-radius:12px;
}

@media (max-width:575px) {
    .th-wizard-nav { flex-direction:column-reverse; align-items:stretch; gap:10px; }
    .th-wizard-nav .custom-btn, .th-wizard-nav .th-back { width:100%; text-align:center; justify-content:center; display:inline-flex; align-items:center; }
    .th-wizard-nav > span { display:none; }
    .th-card { padding:16px; }
}
