/* member-card.css — account-style member card page */

/* push footer to bottom on short-content pages */
.page-wrapper > .page-body {
    flex: 1 1 auto;
}
.page-wrapper > .page-body:first-child {
    margin-top: 0;
}

/* ─── CARD HERO (QR + Info) ────────────────────────────── */
.mc-card-hero {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #2d2d44 100%);
    border-radius: 12px;
    margin-bottom: 8px;
}
.mc-card-hero-qr {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.mc-qr-frame {
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.mc-qr-frame img {
    display: block;
    width: 140px;
    height: 140px;
    border-radius: 6px;
}
.mc-card-code-inline {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1.5px;
}
.mc-card-hero-info {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}
.mc-card-hero-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

/* ─── META (status + date) ─────────────────────────────── */
.mc-card-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.mc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}
.mc-badge-active {
    background: rgba(47,179,68,0.15);
    color: #2fb344;
}
.mc-badge-blocked {
    background: rgba(214,57,57,0.15);
    color: #d63939;
}
.mc-meta-text {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ─── MINI STATS ───────────────────────────────────────── */
.mc-card-hero-stats {
    display: flex;
    gap: 28px;
}
.mc-mini-stat {
    display: flex;
    flex-direction: column;
}
.mc-mini-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #f5c518;
    line-height: 1;
}
.mc-mini-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ─── BUSINESS MEMBERSHIPS LIST ────────────────────────── */
.mc-biz-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mc-biz-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid #ececf3;
    border-radius: 14px;
    transition: box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
}
.mc-biz-row:hover {
    box-shadow: 0 10px 30px rgba(26, 26, 46, 0.08);
    border-color: #d8dbe8;
    text-decoration: none;
    color: inherit;
}
.mc-biz-main {
    flex: 1;
    min-width: 0;
}
.mc-biz-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.mc-biz-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid #eee;
    flex-shrink: 0;
    background: #fafafa;
}
.mc-biz-logo-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ccc;
    background: #fafafa;
}
.mc-biz-details {
    flex: 1;
    min-width: 0;
}
.mc-biz-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}
.mc-biz-card-type {
    font-size: 12px;
    color: #6c748a;
    margin-top: 3px;
}
.mc-biz-date {
    font-size: 12px;
    color: #7c859f;
}
.mc-biz-submeta {
    display: flex;
    align-items: center;
    gap: 8px 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.mc-biz-soon {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff4df;
    color: #b96b00;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.mc-biz-right-col {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
    flex-direction: column;
}
.mc-biz-points {
    text-align: right;
    padding: 8px 12px;
    border-radius: 12px;
    background: #f6f7fb;
}
.mc-biz-points-value {
    font-size: 16px;
    font-weight: 700;
    color: #f5c518;
    line-height: 1;
}
.mc-biz-points-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.mc-biz-status {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.mc-biz-status-active {
    background: #eefbf0;
    color: #2fb344;
}
.mc-biz-status-expired {
    background: #fff3e0;
    color: #e65100;
}
.mc-biz-status-inactive {
    background: #f0f0f0;
    color: #888;
}
.mc-biz-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.mc-biz-fact {
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, #fcfcfe 0%, #f5f7fb 100%);
    border: 1px solid #eceff6;
    min-width: 0;
}
.mc-biz-fact-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #7c859f;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.mc-biz-fact-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.35;
    word-break: break-word;
}

/* ─── RENEWAL INFO ────────────────────────────────────── */
.mc-biz-row-wrap {
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.mc-biz-row-wrap:hover {
    box-shadow: 0 12px 32px rgba(26, 26, 46, 0.08);
    border-color: #d6dae6;
}
.mc-biz-row-wrap .mc-biz-row {
    border: none;
    border-radius: 0;
}
.mc-biz-row-wrap .mc-biz-row:hover {
    box-shadow: none;
}
.mc-biz-renewal-info {
    padding: 12px 18px 14px;
    background: linear-gradient(180deg, #fbfbfd 0%, #f4f6fa 100%);
    border-top: 1px solid #eceff6;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}
.mc-biz-renewal-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #4d5569;
}
.mc-biz-renewal-row i {
    font-size: 14px;
    color: #7c859f;
}

/* ─── PRICE BREAKDOWN ���────────────────────────────────── */
.mc-price-breakdown {
    padding: 12px 18px;
    background: #f8f9fc;
    border-top: 1px solid #eceff6;
}
.mc-price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #4d5569;
    padding: 3px 0;
}
.mc-price-line-total {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 13px;
    border-top: 1px solid #e0e3ec;
    margin-top: 4px;
    padding-top: 6px;
}
.mc-price-line-ron {
    color: #7c859f;
    font-size: 11px;
}
.mc-price-label {
    color: #7c859f;
}

/* ─── RENEWAL ACTIONS ───────────��─────────────────────── */
.mc-renewal-actions {
    padding: 12px 18px 14px;
    background: linear-gradient(180deg, #f8f9fc 0%, #f2f4f8 100%);
    border-top: 1px solid #eceff6;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.mc-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    white-space: nowrap;
}
.mc-btn-sm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.mc-btn-enable {
    background: #eefbf0;
    color: #2fb344;
    border-color: #c8ecd0;
}
.mc-btn-enable:hover:not(:disabled) {
    background: #d8f5de;
}
.mc-btn-disable {
    background: #fff3e0;
    color: #b96b00;
    border-color: #f0dbb8;
}
.mc-btn-disable:hover:not(:disabled) {
    background: #ffe8c5;
}
.mc-btn-card {
    background: #f0f2f8;
    color: #4d5569;
    border-color: #d8dbe8;
}
.mc-btn-card:hover:not(:disabled) {
    background: #e4e7f0;
}
.mc-btn-add-card {
    background: #fff;
    color: #1a1a2e;
    border-color: #d8dbe8;
}
.mc-btn-add-card:hover:not(:disabled) {
    background: #f5f6fa;
    border-color: #c0c5d8;
}
.mc-card-select {
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #d8dbe8;
    font-size: 12px;
    color: #4d5569;
    background: #fff;
    max-width: 220px;
}
.mc-no-card-hint {
    font-size: 12px;
    color: #b96b00;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ─── EMPTY STATE ────────��─────────────────────────────── */
.mc-empty-box {
    text-align: center;
    padding: 48px 20px;
}
.mc-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5c518;
}
.mc-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}
.mc-empty-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin: 0 0 24px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── REQUEST STATUS BADGES ────────────────────────────── */
.mc-req-status-pending {
    background: #fff3e0;
    color: #e08e00;
}
.mc-req-status-approved {
    background: #eefbf0;
    color: #2fb344;
}
.mc-req-status-rejected {
    background: #fde8e8;
    color: #d63939;
}
.mc-req-reason {
    font-size: 12px;
    color: #d63939;
    margin-top: 4px;
    line-height: 1.4;
}
.mc-req-row {
    cursor: default;
}
.mc-req-row:hover {
    transform: none;
}

/* ─── CREDITS / MODULES SECTION ────────────────────────── */
.mc-credits-section {
    padding: 14px 18px 16px;
    background: #f8f9fc;
    border-top: 1px solid #eceff6;
}
.mc-credits-section-detail {
    border: 1px solid #eceff6;
    border-radius: 12px;
    margin-bottom: 16px;
    border-top: 1px solid #eceff6;
}
.mc-credits-title {
    font-size: 13px;
    font-weight: 700;
    color: #4d5569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}
.mc-credit-row {
    margin-bottom: 8px;
}
.mc-credit-row:last-child {
    margin-bottom: 0;
}
.mc-credit-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.mc-credit-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
}
.mc-credit-count {
    font-size: 12px;
    color: #7c859f;
}
.mc-credit-bar {
    height: 6px;
    background: #e8eaf0;
    border-radius: 3px;
    overflow: hidden;
}
.mc-credit-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}
.mc-module-details-link {
    margin-top: 12px;
    text-align: right;
}
.mc-module-details-link .btn-txm {
    font-size: 12px;
    padding: 5px 14px;
}
.mc-module-details-link .btn-txm i {
    margin-right: 4px;
}

/* ─── MODULE DETAILS PAGE ─────────────────────────────── */
.mc-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #4d5569;
    text-decoration: none;
    margin-bottom: 16px;
}
.mc-back-link:hover {
    color: #1a1a2e;
}
.mc-biz-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid #ececf3;
    border-radius: 14px;
    margin-bottom: 16px;
}
.mc-biz-header-info {
    flex: 1;
    min-width: 0;
}
.mc-history-tabs {
    background: #fff;
    border: 1px solid #ececf3;
    border-radius: 14px;
    overflow: hidden;
}
.mc-history-tabs .nav-tabs {
    border-bottom: 1px solid #eceff6;
    padding: 0 18px;
}
.mc-history-tabs .nav-link {
    font-size: 13px;
    font-weight: 600;
    color: #7c859f;
    border: none;
    padding: 12px 16px;
    border-bottom: 2px solid transparent;
}
.mc-history-tabs .nav-link.active {
    color: #1a1a2e;
    border-bottom-color: #206bc4;
    background: transparent;
}
.mc-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #e8eaf0;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    color: #4d5569;
}
.mc-history-tabs .nav-link.active .mc-tab-count {
    background: #206bc4;
    color: #fff;
}
.mc-history-tabs .tab-content {
    padding: 0;
}
.mc-history-tabs .table {
    margin: 0;
}
.mc-history-tabs .table thead th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7c859f;
    border-bottom: 1px solid #eceff6;
    padding: 10px 18px;
}
.mc-history-tabs .table tbody td {
    font-size: 13px;
    color: #1a1a2e;
    padding: 10px 18px;
    border-bottom: 1px solid #f0f2f6;
}
.mc-history-tabs .table tbody tr:last-child td {
    border-bottom: none;
}
.mc-tab-empty {
    padding: 40px 18px;
    text-align: center;
    color: #7c859f;
    font-size: 14px;
}

/* ─── DETAIL PAGE CARDS ──────────────────────────────── */
.mc-detail-card {
    background: #fff;
    border: 1px solid #ececf3;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
}
.mc-detail-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #4d5569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}
.mc-detail-description {
    font-size: 14px;
    color: #1a1a2e;
    line-height: 1.7;
}
.mc-detail-description p:last-child {
    margin-bottom: 0;
}
.mc-detail-facts {
    margin-bottom: 16px;
}
.mc-biz-custom-label {
    font-weight: 700;
    color: #1a1a2e;
}

/* ─── MEMBERSHIP DETAIL PAGE (public) ────────────────── */
.mc-detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ececf3;
    border-radius: 14px;
    margin-bottom: 16px;
}
.mc-detail-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.mc-detail-hero-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid #eee;
    flex-shrink: 0;
}
.mc-detail-hero-logo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ccc;
    background: #fafafa;
}
.mc-detail-hero-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}
.mc-detail-hero-right {
    flex-shrink: 0;
    text-align: right;
}
.mc-detail-price {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    padding: 6px 16px;
    background: #f6f7fb;
    border-radius: 10px;
}
.mc-detail-price-free {
    background: #eefbf0;
    color: #2fb344;
}
.mc-detail-validity-text {
    font-size: 14px;
    color: #4d5569;
    line-height: 1.6;
}
.mc-detail-conditions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mc-detail-condition {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4d5569;
}
.mc-detail-condition i {
    font-size: 18px;
    color: #7c859f;
}
/* modules list on public detail page */
.mc-detail-modules-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mc-detail-module-item {
    padding: 12px 14px;
    background: linear-gradient(180deg, #fcfcfe 0%, #f5f7fb 100%);
    border: 1px solid #eceff6;
    border-radius: 10px;
}
.mc-detail-module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.mc-detail-module-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}
.mc-detail-module-qty {
    font-size: 13px;
    font-weight: 700;
    color: #206bc4;
    background: #e8f0fe;
    padding: 2px 10px;
    border-radius: 12px;
    white-space: nowrap;
}
.mc-detail-module-desc {
    font-size: 13px;
    color: #4d5569;
    margin-top: 4px;
    line-height: 1.5;
}
.mc-detail-module-event {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #7c859f;
    margin-top: 6px;
}

.mc-detail-section-divider {
    height: 1px;
    background: #eceff6;
    margin: 16px 0;
}
.mc-detail-card-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
}

/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 768px) {
    .mc-card-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 16px;
    }
    .mc-card-hero-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .mc-card-hero-meta {
        justify-content: center;
    }
    .mc-card-hero-stats {
        justify-content: center;
    }
    .mc-qr-frame img {
        width: 120px;
        height: 120px;
    }
    .mc-card-hero-name {
        font-size: 18px;
    }
    .mc-biz-row {
        flex-wrap: wrap;
    }
    .mc-biz-topline {
        flex-direction: column;
    }
    .mc-biz-right-col {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
    }
    .mc-biz-facts {
        grid-template-columns: 1fr;
    }
    .mc-detail-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .mc-detail-hero-right {
        width: 100%;
        text-align: left;
    }
}
