.wm-card {
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94));
    border: 1px solid var(--wm-border);
    border-radius: var(--wm-radius);
    box-shadow: var(--wm-shadow);
    padding: 24px;
}
.wm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.wm-btn:hover { transform: translateY(-1px); }
.wm-btn--primary {
    background: linear-gradient(135deg, var(--wm-primary), var(--wm-secondary));
    color: #fff;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
}
.wm-btn--trade-buy {
    background: linear-gradient(135deg, var(--wm-primary), var(--wm-secondary));
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
}
.wm-btn--trade-supply {
    background: linear-gradient(135deg, var(--wm-accent-teal), #14b8a6);
    box-shadow: 0 16px 32px rgba(15, 118, 110, 0.22);
}
.wm-btn--ghost {
    background: linear-gradient(180deg, rgba(253, 230, 138, 0.92), rgba(255, 251, 235, 0.98));
    color: var(--wm-accent-amber);
    border: 1px solid rgba(180, 83, 9, 0.28);
    box-shadow: 0 10px 24px rgba(180, 83, 9, 0.12);
}
.wm-input {
    width: 100%;
    border: 1px solid var(--wm-border);
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.wm-input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}
.wm-page-header { margin-bottom: 20px; }
.wm-page-header h1 { margin-bottom: 10px; font-size: 34px; letter-spacing: -0.03em; }
.wm-page-header p { color: var(--wm-muted); max-width: 760px; line-height: 1.85; }
.wm-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.9), #ffffff);
    border: 1px solid var(--wm-border);
    color: var(--wm-primary-dark);
    font-size: 13px;
    font-weight: 700;
}
.wm-hero {
    position: relative;
    overflow: hidden;
    padding: 36px;
    border-radius: 28px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb 48%, #60a5fa 70%, #bfdbfe);
    color: #fff;
    box-shadow: var(--wm-shadow-lg);
}
.wm-hero:before,
.wm-hero:after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}
.wm-hero:before {
    width: 280px;
    height: 280px;
    top: -80px;
    right: -40px;
}
.wm-hero:after {
    width: 180px;
    height: 180px;
    bottom: -50px;
    right: 180px;
}
.wm-hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.wm-stat {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    padding: 18px;
    backdrop-filter: blur(8px);
}
.wm-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 6px 10px;
    background: linear-gradient(180deg, rgba(253, 230, 138, 0.96), rgba(255, 247, 237, 0.98));
    color: var(--wm-accent-amber);
    border: 1px solid rgba(180, 83, 9, 0.18);
    font-size: 12px;
    font-weight: 700;
}
.wm-text-muted { color: var(--wm-muted); }
.wm-good-card__head, .wm-good-card__footer, .wm-filter-bar, .wm-auth-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.wm-good-card__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; color: var(--wm-muted); font-size: 14px; }
.wm-good-card {
    position: relative;
    overflow: hidden;
}
.wm-good-card:before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--wm-primary), #60a5fa);
}
.wm-good-card__title { font-size: 20px; font-weight: 700; color: var(--wm-accent); line-height: 1.45; }
.wm-good-card__meta, .wm-article-card__meta { margin-top: 8px; color: var(--wm-muted); font-size: 13px; }
.wm-good-card__price { font-size: 20px; font-weight: 700; color: var(--wm-primary-dark); text-align: right; }
.wm-article-card {
    position: relative;
    padding-left: 28px;
}
.wm-article-card:before {
    content: "";
    position: absolute;
    left: 0;
    top: 30px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--wm-primary);
    box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.10);
}
.wm-article-card__title { font-size: 18px; font-weight: 700; color: var(--wm-accent); line-height: 1.5; }
.wm-article-card__desc { margin-bottom: 0; color: var(--wm-muted); line-height: 1.8; }
.wm-filter-bar {
    margin-bottom: 24px;
    flex-wrap: wrap;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(239,246,255,.95));
}
.wm-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wm-side-list { list-style: none; margin: 0; padding: 0; }
.wm-side-list li { padding: 12px 0; border-bottom: 1px solid #e5eefc; }
.wm-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 18px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--wm-border);
    color: var(--wm-muted);
    font-size: 13px;
}
.wm-prose { line-height: 1.9; font-size: 16px; }
.wm-article-detail__title { font-size: 38px; margin-bottom: 12px; letter-spacing: -0.03em; }
.wm-article-detail__meta { color: var(--wm-muted); margin-bottom: 24px; }
.wm-pay-tip { border: 1px solid #fecaca; background: #fff1f2; border-radius: 16px; padding: 20px; }
.wm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.wm-auth-shell { max-width: 540px; margin: 42px auto; }
.wm-auth-form { display: grid; gap: 14px; }
.wm-auth-split { display: grid; gap: 14px; grid-template-columns: 1fr 140px; }
.wm-member-shell { display: grid; gap: 24px; grid-template-columns: 280px minmax(0, 1fr); }
.wm-member-nav { display: grid; gap: 10px; }
.wm-member-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, #eff6ff, #ffffff);
    color: var(--wm-primary-dark);
    border: 1px solid var(--wm-border);
    font-weight: 700;
}
.wm-member-nav a.is-active { background: linear-gradient(135deg, var(--wm-primary), var(--wm-secondary)); color: #fff; box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18); }
.wm-plan { display: grid; gap: 12px; }
.wm-plan__item { border: 1px solid var(--wm-border); border-radius: 16px; padding: 18px; }
.wm-empty { padding: 32px; text-align: center; color: var(--wm-muted); }
.wm-choice-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.wm-choice-item {
    display: block;
    border: 1px solid var(--wm-border);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #eff6ff);
    padding: 18px;
}
.wm-choice-item input { margin-right: 8px; }
.wm-choice-item strong { color: var(--wm-accent); }
.wm-table-wrap { overflow-x: auto; }
.wm-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}
.wm-table th,
.wm-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5eefc;
    text-align: left;
    vertical-align: top;
}
.wm-table th {
    color: var(--wm-secondary);
    font-size: 13px;
    font-weight: 700;
    background: #f8fbff;
}
.wm-category-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.wm-category-group {
    border: 1px solid var(--wm-border);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #eff6ff);
    overflow: hidden;
}
.wm-category-group__head {
    padding: 14px 16px;
    background: rgba(219, 234, 254, 0.55);
    border-bottom: 1px solid var(--wm-border);
    font-weight: 700;
}
.wm-category-group__body { padding: 14px 16px; display: grid; gap: 10px; }
.wm-category-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.wm-inline-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.wm-inline-form .wm-input { width: auto; min-width: 180px; }
.wm-modal__mask { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 9998; }
.wm-modal__dialog img { margin: 16px auto; max-width: 240px; }
.wm-readlevel-modal__dialog #wm-readlevel-qr { width: 280px; height: 280px; max-width: 100%; border: 1px solid #e2e8f0; padding: 8px; background: #fff; border-radius: 10px; box-sizing: border-box; }
.wm-pay-modal__dialog { position: fixed; left: 50%; top: 50%; z-index: 9999; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 32px); transform: translate(-50%, -50%); padding: 24px 22px 20px; text-align: center; overflow-y: auto; box-sizing: border-box; }
.wm-pay-modal__dialog h3 { margin: 0 0 2px; color: #16202e; font-size: 19px; }
.wm-pay-modal__summary { background: #f8fbff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; margin: 12px 0 4px; }
.wm-pay-modal__summary p { margin: 2px 0; color: #475569; font-size: 13px; word-break: break-all; }
.wm-pay-modal__price { color: #dc2626; font-weight: 800; font-size: 19px; }
.wm-pay-modal__dialog img { width: 200px; height: 200px; margin: 14px auto 4px; border: 1px solid #e2e8f0; padding: 8px; background: #fff; border-radius: 10px; }
.wm-pay-modal__status { margin-top: 10px; color: #0f172a; font-size: 13px; }
.wm-pay-modal__close { position: absolute; right: 14px; top: 12px; border: 0; background: transparent; font-size: 22px; line-height: 1; color: #94a3b8; cursor: pointer; }
.wm-readlevel-modal__dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 9999;
    width: min(460px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    transform: translate(-50%, -50%);
    padding: 26px 22px 22px;
    overflow-y: auto;
    text-align: left;
    box-sizing: border-box;
}
.wm-readlevel-modal__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: -2px 0 14px;
    text-align: center;
}
.wm-readlevel-modal__badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d4ed8, #38bdf8);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}
.wm-readlevel-modal__head h3 { margin: 2px 0 0; color: #16202e; font-size: 21px; }
.wm-readlevel-modal__head p { margin: 2px 0 0; color: #64748b; font-size: 13px; line-height: 1.6; }
.wm-readlevel-modal__benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0 0 14px;
}
.wm-readlevel-modal__benefits span {
    padding: 4px 10px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 11px;
    font-weight: 600;
}
.wm-readlevel-modal__plans { display: grid; gap: 8px; }
.wm-readlevel-modal__plan {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.wm-readlevel-modal__plan.is-selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.wm-readlevel-modal__plan input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.wm-readlevel-modal__plan-check {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
}
.wm-readlevel-modal__plan-check::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ffffff;
}
.wm-readlevel-modal__plan.is-selected .wm-readlevel-modal__plan-check {
    border-color: #2563eb;
    background: #2563eb;
}
.wm-readlevel-modal__plan-main { display: grid; gap: 2px; min-width: 0; }
.wm-readlevel-modal__plan-name { color: #16202e; font-size: 14px; font-weight: 700; }
.wm-readlevel-modal__plan-desc {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    text-overflow: ellipsis;
}
.wm-readlevel-modal__plan-price { text-align: right; white-space: nowrap; }
.wm-readlevel-modal__plan-price em { color: #dc2626; font-size: 13px; font-style: normal; font-weight: 800; }
.wm-readlevel-modal__plan-price strong { color: #dc2626; font-size: 20px; font-weight: 800; }
.wm-readlevel-modal__plan-price small { display: block; color: #94a3b8; font-size: 11px; }
.wm-readlevel-modal__amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}
.wm-readlevel-modal__amount > span { color: #334155; font-size: 13px; font-weight: 600; }
.wm-readlevel-modal__stepper {
    display: grid;
    grid-template-columns: 34px 58px 34px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
}
.wm-readlevel-modal__stepper button {
    height: 34px;
    border: 0;
    background: #f1f5f9;
    color: #334155;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}
.wm-readlevel-modal__stepper button:hover { background: #e2e8f0; color: #1d4ed8; }
.wm-readlevel-modal__stepper input {
    width: 58px;
    height: 34px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    font-weight: 800;
    font-size: 14px;
}
.wm-readlevel-modal__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #f0fdfa);
}
.wm-readlevel-modal__total > span { color: #475569; font-size: 13px; font-weight: 600; }
.wm-readlevel-modal__total strong { color: #dc2626; font-size: 22px; font-weight: 800; }
.wm-readlevel-modal__total em { font-size: 14px; font-style: normal; }
.wm-readlevel-modal__pay-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    padding: 10px 12px;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 13px;
}
.wm-readlevel-modal__pay-summary strong {
    color: #dc2626;
    font-size: 18px;
    font-weight: 800;
}
.wm-readlevel-modal__submit { width: 100%; margin-top: 14px; }
.wm-readlevel-modal__dialog .wm-pay-modal__status { text-align: center; }
.wm-info-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.wm-info-chip {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #eff6ff);
    border: 1px solid var(--wm-border);
    box-shadow: inset 0 4px 0 rgba(37, 99, 235, 0.14);
}
.wm-info-chip:nth-child(2) {
    background: linear-gradient(180deg, rgba(253, 230, 138, 0.72), rgba(255, 251, 235, 0.98));
    border-color: rgba(180, 83, 9, 0.24);
    box-shadow: inset 0 4px 0 rgba(180, 83, 9, 0.34), 0 10px 22px rgba(180, 83, 9, 0.08);
}
.wm-info-chip:nth-child(2) strong {
    color: var(--wm-accent-amber);
}
.wm-info-chip:nth-child(3) {
    background: linear-gradient(180deg, rgba(153, 246, 228, 0.78), rgba(240, 253, 250, 0.98));
    border-color: rgba(15, 118, 110, 0.22);
    box-shadow: inset 0 4px 0 rgba(15, 118, 110, 0.34), 0 10px 22px rgba(15, 118, 110, 0.08);
}
.wm-info-chip:nth-child(3) strong {
    color: var(--wm-accent-teal);
}
@media (max-width: 1024px) {
    .wm-good-card__grid, .wm-filter-grid, .wm-member-shell, .wm-info-strip { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .wm-hero, .wm-card { padding: 16px; }
    .wm-hero__stats { grid-template-columns: 1fr; }
    .wm-auth-split { grid-template-columns: 1fr; }
    .wm-page-header h1, .wm-article-detail__title { font-size: 26px; }
    .wm-good-card__head, .wm-good-card__footer { flex-direction: column; align-items: flex-start; }
    .wm-search { padding: 0; border: 0; background: transparent; box-shadow: none; }
    .wm-table { min-width: 0; }
    .wm-inline-form .wm-input { width: 100%; min-width: 0; }
}
