.egc-my-empty {
    padding: 1.5rem;
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    color: #666;
}

.egc-my-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.egc-my-card-row {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 1rem 1.1rem 1.1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
}

.egc-my-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .9rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #f1f1f1;
}

.egc-my-card-code {
    font-family: "SFMono-Regular", Menlo, Consolas, "Courier New", Courier, monospace;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 2px;
    color: #1d2327;
}

.egc-my-card-status {
    display: inline-block;
    padding: .2rem .65rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.egc-my-card-status.egc-status-active   { background: #e8f5e9; color: #1b5e20; }
.egc-my-card-status.egc-status-used     { background: #f0f0f0; color: #555; }
.egc-my-card-status.egc-status-disabled { background: #fbe9e9; color: #c62828; }
.egc-my-card-status.egc-status-expired  { background: #fff3cd; color: #8d6708; }

.egc-my-card-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    margin-bottom: .75rem;
}
.egc-my-card-summary > div {
    background: #fafafa;
    border-radius: 8px;
    padding: .65rem;
    text-align: center;
}
.egc-my-card-label {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #888;
    margin-bottom: .25rem;
}
.egc-my-card-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1d2327;
}
.egc-my-card-remaining { background: #e8f5e9; }
.egc-my-card-remaining .egc-my-card-value { color: #1b5e20; }

.egc-my-card-meta {
    list-style: none;
    margin: 0 0 .5rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    font-size: .85rem;
    color: #666;
}
.egc-my-card-meta li { margin: 0; }

.egc-my-card-history {
    margin-top: .75rem;
    border-top: 1px solid #f1f1f1;
    padding-top: .75rem;
}
.egc-my-card-history summary {
    cursor: pointer;
    font-size: .9rem;
    color: #2271b1;
    user-select: none;
}
.egc-my-card-history summary:hover { color: #135e96; }

.egc-my-card-history .egc-tx-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: .75rem;
    font-size: .88rem;
}
.egc-my-card-history .egc-tx-table th,
.egc-my-card-history .egc-tx-table td {
    padding: .45rem .5rem;
    text-align: left;
    border-bottom: 1px solid #f3f3f3;
}
.egc-my-card-history .egc-tx-table th {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #777;
    font-weight: 600;
}
.egc-my-card-history .egc-amount-col { text-align: right; white-space: nowrap; }
.egc-my-card-history .egc-tx-row.egc-tx-redeem .egc-amount-col { color: #c62828; }
.egc-my-card-history .egc-tx-row.egc-tx-issue  .egc-amount-col,
.egc-my-card-history .egc-tx-row.egc-tx-refund .egc-amount-col { color: #1b5e20; }

@media (max-width: 540px) {
    .egc-my-card-summary { grid-template-columns: 1fr; }
    .egc-my-card-code { font-size: .95rem; letter-spacing: 1.5px; }
}
