/* ---------- Profile & loyalty ---------- */
.pstack { display: flex; flex-direction: column; gap: 24px; }
.p-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; align-items: center; }
.p-id { display: flex; gap: 16px; align-items: center; min-width: 0; }
.avatar72 { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: #EDE9DC; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; flex-shrink: 0; }
.p-id h2 { font-size: 24px; font-weight: 700; line-height: 1.334; }
.p-id p { font-size: 14px; color: var(--muted); }
.mdiv { border: 0; border-top: 1px solid var(--divider); margin: 0; }
.p-sec h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
.span2 { grid-column: span 2; }
.tf { position: relative; }
.tf input { height: 56px; width: 100%; border: 1px solid rgba(0,0,0,.23); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--primary); background: #fff; outline: none; text-overflow: ellipsis; }
.tf label { position: absolute; left: 10px; top: -9px; font-size: 12px; color: var(--muted); background: #fff; padding: 0 4px; line-height: 1.4; }
.p-cap { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.lang-btn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid #E4DFCF; border-radius: 999px; background: #fff; font: inherit; font-size: 14px; color: var(--primary); cursor: pointer; }
.lang-btn:hover { border-color: var(--pl); }
.flag { border-radius: 2px; overflow: hidden; flex-shrink: 0; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.lang-pop { position: fixed; z-index: 60; width: 240px; background: #fff; border-radius: 12px; border: 1px solid #E4DFCF; box-shadow: 0 12px 30px rgba(31,59,57,.16); padding: 8px; animation: pop .12s ease-out; }
.lang-pop input { width: 100%; height: 36px; border: 1px solid #E4DFCF; border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13px; outline: none; margin-bottom: 6px; }
.lang-opt { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; font: inherit; font-size: 14px; color: var(--primary); padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: left; }
.lang-opt:hover, .lang-opt.on { background: rgba(164,224,220,.3); }
.p-save { display: flex; justify-content: flex-end; }

.lsc { background: rgba(164,224,220,.18); border: 1px solid rgba(164,224,220,.45); border-radius: 16px; padding: 24px; display: flex; gap: 24px; }
.lsc-main { flex: 1; min-width: 0; }
.lsc-top { display: flex; gap: 12px; align-items: center; }
.medal64 { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); }
.lv-cap { font-size: 14px; font-weight: 500; color: var(--muted); }
.lv-name { font-size: 34px; font-weight: 700; color: var(--accent); line-height: 1.235; margin-bottom: 12px; }
.lsc-top .lv-name { margin-bottom: 0; }
.lv-prog { display: flex; align-items: center; gap: 12px; margin: 12px 0 8px; }
.lv-bar { flex: 1; height: 8px; border-radius: 999px; background: #E4E7E7; overflow: hidden; }
.lv-bar span { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width .8s ease; }
.lv-prog b { font-size: 14px; font-weight: 600; }
.lv-desc { font-size: 14px; color: var(--muted); }
.lsc-side { width: 220px; flex-shrink: 0; padding-left: 16px; border-left: 1px solid var(--divider); display: flex; flex-direction: column; gap: 8px; }
.lsc-side h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.benefit { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.benefit .ic { color: var(--pl); }
.lv-link { margin-top: auto; background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--primary); cursor: pointer; text-align: left; display: inline-flex; align-items: center; gap: 4px; }
.lv-link:hover { text-decoration: underline; }

.dlg-levels { background: #fff; border-radius: 12px; max-width: 1200px; width: calc(100% - 64px); padding: 32px; box-shadow: 0 11px 15px -7px rgba(0,0,0,.2), 0 24px 38px 3px rgba(0,0,0,.14), 0 9px 46px 8px rgba(0,0,0,.12); }
.lvd-close { display: flex; justify-content: flex-end; margin: -16px -16px 0 0; }
.lvd-sum { background: rgba(164,224,220,.18); border: 1px solid rgba(164,224,220,.45); border-radius: 36px; padding: 24px; margin-bottom: 32px; display: flex; gap: 24px; align-items: center; }
.lvd-sum .l { flex: 2; min-width: 0; }
.lvd-sum .vd { align-self: stretch; width: 1px; background: var(--divider); }
.lvd-sum .r { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lvd-sum .r img { width: 48px; height: auto; }
.lvd-sum .r b { font-size: 16px; font-weight: 700; }
.lvd-sum .r p { font-size: 14px; color: var(--muted); }
.lvd-sum .sub { font-size: 14px; color: var(--muted); }
.lvd-sum .lv-bar { background: #AAB5B4; border-radius: 0; }
.lvd-sum .lv-bar span { border-radius: 0; }
.lvd-h h2 { font-size: 24px; font-weight: 700; }
.lvd-h p { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.lvd-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tile { padding: 20px; border-radius: 36px; border: 1px solid var(--divider); display: flex; flex-direction: column; position: relative; }
.tile.cur { border-color: var(--accent); background: rgba(164,224,220,.12); }
.tile .ttop { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; color: var(--accent); }
.tile-chip { height: 24px; border-radius: 16px; background: rgba(164,224,220,.35); font-size: 13px; font-weight: 600; padding: 0 10px; display: inline-flex; align-items: center; color: var(--primary); white-space: nowrap; }
.tile h3 { font-size: 16px; font-weight: 700; margin-top: 12px; }
.tile p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.tile .th { margin-top: auto; padding: 12px; border-radius: 24px; background: rgba(31,59,57,.04); }
.tile .th small { display: block; font-size: 12px; color: var(--muted); }
.tile .th b { font-size: 20px; font-weight: 700; }
.tile .th span { font-size: 14px; color: var(--muted); margin-left: 4px; }
