/* ── Theme-matched overrides for SMM Cart & Checkout ── */
.wsmsm-account {
    --wsmsm-bg:       #04091a;
    --wsmsm-card:     #0a1226;
    --wsmsm-border:   rgba(255,255,255,0.075);
    --wsmsm-accent:   #00d4ff;
    --wsmsm-accent2:  #005eff;
    --wsmsm-text:     #e4eeff;
    --wsmsm-muted:    #6b80a8;
    --wsmsm-green:    #10b981;
    --wsmsm-red:      #ef4444;
    --wsmsm-yellow:   #fbbf24;

    max-width: 100%;
    margin: 2rem 0 5rem;
    padding: 0;
    color: var(--wsmsm-text);
    font-family: inherit;
}

.wsmsm-account * {
    box-sizing: border-box;
}

/* ── Panel ── */
.wsmsm-account__panel {
    background: var(--wsmsm-card);
    border: 1px solid var(--wsmsm-border);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 32px rgba(0,0,0,.35);
}

.wsmsm-account__panel h2 {
    margin: 0 0 1.25rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--wsmsm-text);
    letter-spacing: -.01em;
}

/* ── Notice ── */
.wsmsm-account__notice {
    margin-bottom: 1.25rem;
    border-radius: 10px;
    padding: .8rem 1.1rem;
    font-weight: 600;
    font-size: .9rem;
}

.wsmsm-account__notice--success {
    background: rgba(16,185,129,.1);
    border: 1px solid rgba(16,185,129,.25);
    color: #6ee7b7;
}

.wsmsm-account__notice--error {
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.25);
    color: #fca5a5;
}

/* ── Table ── */
.wsmsm-account__table-wrap {
    overflow-x: auto;
    border: 1px solid var(--wsmsm-border);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
}

.wsmsm-account__table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.wsmsm-account__table th,
.wsmsm-account__table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--wsmsm-border);
    color: var(--wsmsm-text);
    text-align: left;
    vertical-align: middle;
    font-size: .875rem;
}

.wsmsm-account__table th {
    background: rgba(255,255,255,.04);
    font-weight: 700;
    white-space: nowrap;
    color: var(--wsmsm-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.wsmsm-account__table tfoot th {
    background: rgba(0,212,255,.04);
    color: var(--wsmsm-accent);
    font-size: .95rem;
    text-transform: none;
    letter-spacing: 0;
}

.wsmsm-account__table tbody tr:last-child td {
    border-bottom: none;
}

.wsmsm-account__table tbody tr:hover td {
    background: rgba(255,255,255,.02);
}

/* ── Inputs ── */
.wsmsm-account__small-input,
.wsmsm-account__target-input,
.wsmsm-account__copy-input,
.wsmsm-account__payment-input,
.wsmsm-account__form input[type="text"],
.wsmsm-account__form input[type="email"],
.wsmsm-account__form input[type="password"] {
    background: var(--wsmsm-bg);
    border: 1px solid var(--wsmsm-border);
    border-radius: 8px;
    color: var(--wsmsm-text);
    padding: .45rem .75rem;
    font-size: .875rem;
    width: 100%;
    min-height: 38px;
    transition: border-color .18s, box-shadow .18s;
}

.wsmsm-account__small-input {
    width: 90px;
}

.wsmsm-account__target-input {
    min-width: 180px;
}

.wsmsm-account__small-input:focus,
.wsmsm-account__target-input:focus,
.wsmsm-account__copy-input:focus,
.wsmsm-account__payment-input:focus {
    border-color: var(--wsmsm-accent);
    box-shadow: 0 0 0 3px rgba(0,212,255,.15);
    outline: none;
}

.wsmsm-account__copy-input,
.wsmsm-account__payment-input {
    direction: ltr;
    text-align: left;
}

/* ── Checkbox ── */
.wsmsm-account__check {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: var(--wsmsm-muted);
    cursor: pointer;
    font-weight: 500;
}

.wsmsm-account__check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--wsmsm-accent);
    cursor: pointer;
}

/* ── Button ── */
.wsmsm-account__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 40px;
    border: none;
    border-radius: 10px;
    padding: 0 1.25rem;
    background: linear-gradient(135deg, var(--wsmsm-accent2), var(--wsmsm-accent));
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: .875rem;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .18s, transform .12s;
}

.wsmsm-account__button:hover,
.wsmsm-account__button:focus {
    opacity: .88;
    color: #fff;
    transform: translateY(-1px);
}

.wsmsm-account__button--secondary {
    background: transparent;
    border: 1px solid var(--wsmsm-border);
    color: var(--wsmsm-text);
}

.wsmsm-account__button--secondary:hover {
    border-color: var(--wsmsm-accent);
    color: var(--wsmsm-accent);
    opacity: 1;
}

/* ── Actions row ── */
.wsmsm-account__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1.25rem;
}

/* ── Cart loader ── */
.wsmsm-account__cart-loader {
    display: none;
    align-items: center;
    gap: .5rem;
    margin-inline-end: auto;
    color: var(--wsmsm-muted);
    font-size: .85rem;
    font-weight: 600;
}

.wsmsm-account__cart-loader-dot {
    width: 14px;
    height: 14px;
    border: 2px solid var(--wsmsm-accent);
    border-top-color: transparent;
    border-radius: 50%;
    animation: wsmsm-spin .7s linear infinite;
}

.wsmsm-cart-form--loading .wsmsm-account__cart-loader {
    display: inline-flex;
}

.wsmsm-cart-form--loading .wsmsm-account__table-wrap {
    opacity: .45;
    pointer-events: none;
}

.wsmsm-cart-form--loading .wsmsm-account__button {
    opacity: .55;
    pointer-events: none;
}

/* ── Money ── */
.wsmsm-account__money {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    font-weight: 700;
    color: var(--wsmsm-accent);
}

/* ── Wallet note ── */
.wsmsm-account__wallet-note {
    margin: 1.25rem 0 1rem;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--wsmsm-border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.wsmsm-account__wallet-note strong {
    display: block;
    margin-bottom: .35rem;
    color: var(--wsmsm-text);
    font-weight: 700;
    font-size: .95rem;
}

.wsmsm-account__wallet-note p {
    margin: 0;
    color: var(--wsmsm-muted);
    font-size: .875rem;
    line-height: 1.7;
}

/* ── Wallet box ── */
.wsmsm-account__wallet-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--wsmsm-border);
    border-radius: 12px;
    padding: 1.25rem;
}

.wsmsm-account__wallet-qr img {
    display: block;
    width: 148px;
    height: 148px;
    border-radius: 10px;
    border: 1px solid var(--wsmsm-border);
    object-fit: contain;
    background: #fff;
    padding: 4px;
}

/* ── Wallet details ── */
.wsmsm-account__wallet-details {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: .75rem 1rem;
    margin: 0;
    align-content: start;
}

.wsmsm-account__wallet-details dt {
    color: var(--wsmsm-muted);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
}

.wsmsm-account__wallet-details dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--wsmsm-text);
    font-size: .875rem;
}

/* ── Copy row ── */
.wsmsm-account__copy-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: .5rem;
}

.wsmsm-account__copy-button {
    min-height: 38px;
    border: 1px solid var(--wsmsm-border);
    border-radius: 8px;
    padding: 0 .9rem;
    background: rgba(255,255,255,.05);
    color: var(--wsmsm-text);
    cursor: pointer;
    font-weight: 700;
    font-size: .8rem;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}

.wsmsm-account__copy-button:hover,
.wsmsm-account__copy-button:focus {
    border-color: var(--wsmsm-accent);
    background: rgba(0,212,255,.1);
    color: var(--wsmsm-accent);
    outline: none;
}

/* ── Checkout form ── */
.wsmsm-account__checkout-form {
    margin-top: 1.25rem;
}

.wsmsm-account__payment-field {
    display: grid;
    gap: .45rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: .875rem;
    color: var(--wsmsm-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── Empty state ── */
.wsmsm-account__empty {
    color: var(--wsmsm-muted);
    text-align: center;
    padding: 2rem 0;
    font-size: .95rem;
}

/* ── Order message row ── */
.wsmsm-account__message-row td {
    padding-top: 0;
    background: transparent;
}

.wsmsm-account__order-message {
    border: 1px solid rgba(251,191,36,.2);
    border-radius: 8px;
    padding: .75rem 1rem;
    background: rgba(251,191,36,.06);
    color: var(--wsmsm-text);
    font-size: .85rem;
}

.wsmsm-account__order-message strong {
    display: block;
    margin-bottom: .35rem;
    color: var(--wsmsm-yellow);
    font-weight: 700;
}

.wsmsm-account__order-message p {
    margin: 0;
    color: var(--wsmsm-muted);
    line-height: 1.7;
}

/* ── Spin animation ── */
@keyframes wsmsm-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 680px) {
    .wsmsm-account__panel {
        padding: 1.25rem 1rem;
    }

    .wsmsm-account__wallet-box,
    .wsmsm-account__wallet-details,
    .wsmsm-account__copy-row {
        grid-template-columns: 1fr;
    }

    .wsmsm-account__wallet-qr img {
        width: 100%;
        height: auto;
    }

    .wsmsm-account__small-input {
        width: 70px;
    }

    .wsmsm-account__target-input {
        min-width: 130px;
    }
}

/* Retry payment action */
.wsmsm-account__retry-form {
    margin: 0;
}

.wsmsm-account__button--small {
    min-height: 32px;
    padding: 0 .85rem;
    border-radius: 8px;
    font-size: .78rem;
}

.wsmsm-account__muted {
    color: var(--wsmsm-muted);
}

/* Wallet Pro additions */
.wsmsm-account__button--secondary{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;margin-left:8px;background:#eef2ff;color:#1d4ed8}.wsmsm-account__notice--warning{background:#fff7ed;border-color:#fdba74;color:#9a3412}.wsmsm-account__wallet-details dd{font-weight:800}.wsmsm-wallet-shortcode input[name="coupon_code"]{text-transform:uppercase}


/* Gamification frontend panel */
.wsmsm-gamification-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .08) 0%, rgba(14, 165, 233, .08) 100%);
}

.wsmsm-gamification-level-badge {
    min-width: 180px;
    padding: 16px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

.wsmsm-gamification-level-badge span {
    display: block;
    font-size: 42px;
    line-height: 1;
}

.wsmsm-gamification-level-badge strong,
.wsmsm-gamification-level-badge em {
    display: block;
    margin-top: 8px;
}

.wsmsm-gamification-level-badge em {
    color: #64748b;
    font-style: normal;
}

.wsmsm-gamification-progress {
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5edf8;
}

.wsmsm-gamification-progress > div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.wsmsm-gamification-guide,
.wsmsm-gamification-levels {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.wsmsm-gamification-guide > div,
.wsmsm-gamification-levels > div {
    padding: 14px;
    border: 1px solid #dbe6f3;
    border-radius: 16px;
    background: #fff;
}

.wsmsm-gamification-guide strong,
.wsmsm-gamification-levels strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.wsmsm-gamification-guide span,
.wsmsm-gamification-levels em {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-style: normal;
    line-height: 1.6;
}

.wsmsm-gamification-levels span {
    display: block;
    margin-bottom: 6px;
    font-size: 30px;
}

.wsmsm-gamification-levels .is-current {
    border-color: #2563eb;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .12);
}

.wsmsm-account__inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.wsmsm-account__inline-form input {
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0 12px;
}

.wsmsm-account__coupon-form {
    margin: 16px 0;
}

@media (max-width: 760px) {
    .wsmsm-gamification-hero,
    .wsmsm-account__inline-form {
        grid-template-columns: 1fr;
        display: grid;
    }

    .wsmsm-gamification-guide,
    .wsmsm-gamification-levels {
        grid-template-columns: 1fr;
    }
}

/* Gamification missions, badges, leaderboard v0.3.7 */
.wsmsm-gamification-benefit-box {
    display: grid;
    gap: 6px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(37, 99, 235, .16);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(6,182,212,.06));
}
.wsmsm-gamification-benefit-box strong { color: #0f172a; font-weight: 900; }
.wsmsm-gamification-benefit-box span { color: #475569; line-height: 1.7; }
.wsmsm-gamification-benefit-box em { color: #0f766e; font-style: normal; font-weight: 900; }
.wsmsm-gamification-achievement-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.wsmsm-gamification-achievement-card {
    position: relative;
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid #dbe6f3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}
.wsmsm-gamification-achievement-card.is-locked { opacity: .72; filter: grayscale(.15); }
.wsmsm-gamification-achievement-card.is-unlocked { border-color: rgba(34, 197, 94, .42); box-shadow: 0 12px 26px rgba(34,197,94,.10); }
.wsmsm-gamification-achievement-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #eff6ff;
    font-size: 25px;
}
.wsmsm-gamification-achievement-card__body strong,
.wsmsm-gamification-achievement-card__body span,
.wsmsm-gamification-achievement-card__body em {
    display: block;
}
.wsmsm-gamification-achievement-card__body strong { color: #0f172a; font-weight: 900; }
.wsmsm-gamification-achievement-card__body span { margin-top: 4px; color: #64748b; }
.wsmsm-gamification-achievement-card__body em { margin-top: 6px; color: #2563eb; font-size: 12px; font-style: normal; font-weight: 900; }
.wsmsm-gamification-achievement-card__reward {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 900;
}
.wsmsm-gamification-progress--small {
    height: 8px;
    margin-top: 8px;
}
.wsmsm-gamification-leaderboards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.wsmsm-gamification-leaderboard-card {
    padding: 14px;
    border: 1px solid #dbe6f3;
    border-radius: 18px;
    background: #fff;
}
.wsmsm-gamification-leaderboard-card h4 { margin: 0 0 12px; color: #0f172a; }
.wsmsm-gamification-leaderboard-card ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wsmsm-gamification-leaderboard-card li {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    border-radius: 12px;
    background: #f8fafc;
}
.wsmsm-gamification-leaderboard-card .rank { color: #2563eb; font-weight: 900; }
.wsmsm-gamification-leaderboard-card strong { color: #0f172a; }
.wsmsm-gamification-leaderboard-card em { grid-column: 2; color: #64748b; font-size: 12px; font-style: normal; }
.wsmsm-gamification-leaderboard-card b { grid-row: 1 / span 2; grid-column: 3; color: #0f766e; }
@media (max-width: 960px) {
    .wsmsm-gamification-achievement-grid,
    .wsmsm-gamification-leaderboards { grid-template-columns: 1fr; }
    .wsmsm-gamification-achievement-card { grid-template-columns: 48px 1fr; }
    .wsmsm-gamification-achievement-card__reward { grid-column: 1 / -1; }
}

/* Gamification points notifications v0.3.9 */
.wsmsm-gamification-notification-list {
    display: grid;
    gap: 10px;
}
.wsmsm-gamification-notification-item {
    display: grid;
    gap: 5px;
    padding: 13px 14px;
    border: 1px solid #dbe6f3;
    border-radius: 14px;
    background: #fff;
}
.wsmsm-gamification-notification-item.is-unread {
    border-color: rgba(37,99,235,.34);
    background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(6,182,212,.04));
}
.wsmsm-gamification-notification-item strong {
    color: #0f172a;
    font-weight: 900;
}
.wsmsm-gamification-notification-item span {
    color: #475569;
    line-height: 1.6;
}
.wsmsm-gamification-notification-item em {
    color: #64748b;
    font-size: 12px;
    font-style: normal;
}
