/* «ابزارهای من» در حساب کاربری
   رنگ اصلی از قالب (--atour-primary) گرفته می‌شود؛ قالب دیگری می‌تواند --wlm-accent را عوض کند */
.wlm-panel {
    --wlm-accent: var(--atour-primary, #00a99d);
    --wlm-amber: #d97706;
    --wlm-red: #dc2626;
    --wlm-text: #222;
    --wlm-muted: #888;
    --wlm-border: #eceef1;
    direction: rtl;
}

.wlm-panel-title { margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--wlm-border); }

/* تب‌های وضعیت */
.wlm-status-tabs { display: flex; align-items: flex-start; justify-content: center; margin: 20px 0 30px; }
.wlm-tab-item { display: flex; flex-direction: column; align-items: center; min-width: 90px; text-align: center; text-decoration: none; }
.wlm-tab-circle { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 8px; border-radius: 50%; background: #e8e8e8; color: #777; font-weight: 700; font-size: 14px; transition: all .2s ease; }
.wlm-tab-label { font-size: 13px; color: #666; transition: color .2s ease; }
.wlm-tab-item.is-active .wlm-tab-circle { background: var(--wlm-accent); color: #fff; }
.wlm-tab-item.is-active .wlm-tab-label { color: var(--wlm-accent); font-weight: 600; }
.wlm-tab-item:focus-visible { outline: 2px solid var(--wlm-accent); outline-offset: 4px; border-radius: 6px; }
.wlm-tab-connector { flex: 1; max-width: 80px; height: 1px; margin-top: 17px; background: #e0e0e0; }

/* کارت لایسنس */
.wlm-license-cards { display: flex; flex-direction: column; gap: 18px; }
.wlm-license-card { --wlm-status: var(--wlm-accent); display: flex; gap: 18px; padding: 20px; background: #fff; border: 1px solid var(--wlm-border); border-inline-start: 4px solid var(--wlm-status); border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .03); }
.wlm-license-card.is-inactive { --wlm-status: var(--wlm-amber); }
.wlm-license-card.is-expired { --wlm-status: var(--wlm-red); }

.wlm-license-thumb { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 76px; height: 76px; overflow: hidden; border-radius: 8px; background: #f4f5f6; }
.wlm-license-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wlm-license-thumb svg { width: 30px; height: 30px; color: #c7c9cc; }

.wlm-license-body { flex: 1; min-width: 0; }
.wlm-license-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.wlm-license-product-name { font-size: 15px; font-weight: 700; color: var(--wlm-text); }
.wlm-status-pill { display: inline-block; margin-inline-start: 8px; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; vertical-align: middle; color: var(--wlm-status); background: color-mix(in srgb, var(--wlm-status) 12%, #fff); }

.wlm-tutorial-btn { display: inline-flex; flex-shrink: 0; align-items: center; gap: 5px; padding: 5px 14px; border: 1px solid var(--wlm-accent); border-radius: 10px; background: transparent; color: var(--wlm-accent); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.wlm-tutorial-btn:hover, .wlm-tutorial-btn:focus { background: var(--wlm-accent); color: #fff; }
.wlm-tutorial-btn svg { flex-shrink: 0; width: 18px; height: 18px; }

.wlm-license-rows { padding-top: 10px; border-top: 1px dashed #e5e7eb; }
.wlm-license-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-size: 13px; }
.wlm-row-label { color: var(--wlm-muted); }
.wlm-row-value { color: var(--wlm-text); font-weight: 600; text-align: left; }
.wlm-muted { color: #999; font-weight: 400; }

.wlm-license-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #f0f0f0; }
.wlm-license-footer-key { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #777; }

/* کلید لایسنس: دکمه‌ی واقعی تا با کیبورد هم کپی شود */
.wlm-panel .wlm-license-key { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px dashed #cfd4da; border-radius: 6px; background: #f8f9fa; color: var(--wlm-text); font: 700 13px/1.4 Consolas, Monaco, monospace; direction: ltr; cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.wlm-panel .wlm-license-key:hover, .wlm-panel .wlm-license-key:focus-visible { border-color: var(--wlm-accent); color: var(--wlm-accent); outline: none; text-decoration: none; }
.wlm-copy-icon { flex-shrink: 0; width: 15px; height: 15px; }

.wlm-download-indicator-btn, .wlm-renew-license-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 20px; border: none; border-radius: 8px; color: #fff; font-size: 13px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; transition: filter .2s ease; }
.wlm-download-indicator-btn { background: var(--wlm-accent); }
.wlm-renew-license-btn { background: var(--wlm-red); }
.wlm-download-indicator-btn:hover, .wlm-download-indicator-btn:focus,
.wlm-renew-license-btn:hover, .wlm-renew-license-btn:focus { color: #fff; filter: brightness(.92); }
.wlm-download-indicator-btn svg { flex-shrink: 0; width: 16px; height: 16px; }

@media (max-width: 480px) {
    .wlm-tab-connector { max-width: 24px; }
    .wlm-tab-item { min-width: 64px; }
    .wlm-tab-label { font-size: 11px; }
    .wlm-license-card { flex-direction: column; }
    .wlm-license-header-row { flex-direction: column; align-items: flex-start; }
    .wlm-license-footer { flex-direction: column; align-items: stretch; }
    .wlm-download-indicator-btn, .wlm-renew-license-btn { justify-content: center; }
}
