.lmc-wrap,
.lmc-wrap * {
    box-sizing: border-box;
}

.lmc-wrap {
    --lmc-bg: #07111f;
    --lmc-surface: rgba(255, 255, 255, 0.08);
    --lmc-border: rgba(255, 255, 255, 0.16);
    --lmc-text: #f8fafc;
    --lmc-muted: #aeb9ca;
    --lmc-accent: #67e8f9;
    width: 100%;
    max-width: 820px;
    margin: 28px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

.lmc-card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    min-height: 330px;
    overflow: hidden;
    color: var(--lmc-text);
    background:
        linear-gradient(135deg, rgba(15, 30, 50, 0.98), rgba(5, 11, 22, 0.98)),
        var(--lmc-bg);
    border: 1px solid var(--lmc-border);
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(3, 10, 20, 0.28);
}

.lmc-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to right, #000, transparent 85%);
}

.lmc-glow {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    filter: blur(10px);
    pointer-events: none;
}

.lmc-glow-one {
    top: -130px;
    left: -80px;
    width: 330px;
    height: 330px;
    background: rgba(21, 94, 117, 0.42);
}

.lmc-glow-two {
    right: 80px;
    bottom: -180px;
    width: 360px;
    height: 360px;
    background: rgba(79, 70, 229, 0.26);
}

.lmc-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px 36px 30px;
}

.lmc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.lmc-brand,
.lmc-card-title,
.lmc-label,
.lmc-name,
.lmc-value,
.lmc-qr-caption,
.lmc-note {
    margin: 0;
}

.lmc-brand {
    font-size: clamp(19px, 2.5vw, 25px);
    font-weight: 780;
    line-height: 1;
    letter-spacing: 0.18em;
}

.lmc-card-title {
    margin-top: 8px;
    color: var(--lmc-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.34em;
}

.lmc-status {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    padding: 7px 11px;
    color: #d1fae5;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.32);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 760;
    letter-spacing: 0.12em;
}

.lmc-status-dot {
    width: 7px;
    height: 7px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}

.lmc-status-suspended,
.lmc-status-inactive {
    color: #fee2e2;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.32);
}

.lmc-status-suspended .lmc-status-dot,
.lmc-status-inactive .lmc-status-dot {
    background: #f87171;
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
}

.lmc-member {
    margin: auto 0 28px;
    padding-top: 42px;
}

.lmc-label {
    color: var(--lmc-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.lmc-name {
    max-width: 100%;
    margin-top: 7px;
    overflow: hidden;
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 650;
    line-height: 1.16;
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lmc-details {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 42px;
}

.lmc-value {
    margin-top: 6px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    letter-spacing: 0.08em;
}

.lmc-qr-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(255, 255, 255, 0.045);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.lmc-qr {
    display: grid;
    place-items: center;
    width: 148px;
    height: 148px;
    padding: 8px;
    overflow: hidden;
    color: #475569;
    background: #fff;
    border-radius: 14px;
    font-size: 10px;
    text-align: center;
}

.lmc-qr img,
.lmc-qr canvas {
    display: block;
    width: 132px !important;
    height: 132px !important;
}

.lmc-qr-caption {
    margin-top: 13px;
    color: var(--lmc-muted);
    font-size: 8px;
    font-weight: 720;
    letter-spacing: 0.2em;
}

.lmc-note {
    margin-top: 11px;
    color: #64748b;
    font-size: 11px;
    text-align: center;
}

.lmc-login-required {
    max-width: 680px;
    margin: 24px auto;
    padding: 30px;
    color: #1f2937;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    text-align: center;
}

.lmc-login-required p {
    margin: 0 0 16px;
}

.lmc-login-button {
    display: inline-flex;
    padding: 11px 22px;
    color: #fff !important;
    background: #0f172a;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none !important;
}

@media (max-width: 700px) {
    .lmc-wrap {
        max-width: 480px;
        margin: 20px auto;
    }

    .lmc-card {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 22px;
    }

    .lmc-main {
        padding: 26px 24px 24px;
    }

    .lmc-member {
        margin: 48px 0 28px;
        padding-top: 0;
    }

    .lmc-details {
        gap: 20px 28px;
    }

    .lmc-qr-panel {
        flex-direction: row;
        gap: 18px;
        padding: 20px 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 0;
    }

    .lmc-qr {
        width: 116px;
        height: 116px;
        padding: 7px;
        border-radius: 12px;
    }

    .lmc-qr img,
    .lmc-qr canvas {
        width: 102px !important;
        height: 102px !important;
    }

    .lmc-qr-caption {
        margin-top: 0;
        font-size: 9px;
    }
}

@media (max-width: 390px) {
    .lmc-main {
        padding-inline: 20px;
    }

    .lmc-status {
        padding: 6px 8px;
        font-size: 9px;
    }

    .lmc-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lmc-wrap *,
    .lmc-wrap *::before,
    .lmc-wrap *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

