/* The main menu drawer, Settings, Contact Us and the notifications ("Events") screen — measured from the
   original's screens. The default menu header is the original's purple one (55px, #382A63). */

.pnl > .panel-head:not(.pnl-head-close) { flex-basis: 55px; height: 55px; background: #382a63; color: #fff; }
.pnl > .panel-head:not(.pnl-head-close) .panel-title { font-size: 18px; }

/* ── the ☰ drawer ── */
.md-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(10, 4, 25, .45); }
/* it opens on the menu's side: from the left in English, from the right in Arabic */
.md { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(371px, 100%); display: flex; flex-direction: column; background: #303033; color: #fff; font-family: Montserrat, Cairo, sans-serif; box-shadow: 8px 0 30px rgba(0, 0, 0, .4); animation: mdIn .18s ease-out; }
[dir="rtl"] .md { animation-name: mdInR; box-shadow: -8px 0 30px rgba(0, 0, 0, .4); }
@keyframes mdIn { from { transform: translateX(-40px); opacity: 0; } }
@keyframes mdInR { from { transform: translateX(40px); opacity: 0; } }
.md-top { flex: 0 0 auto; padding: 10px; }
.md-profile { position: relative; display: flex; gap: 6px; min-height: 137px; }
.md-photo { flex: 0 0 81px; height: 99px; margin-top: 19px; border-radius: 8px; background: #3a3a3a; display: grid; place-items: center; padding: 0; }
.md-photo span { width: 65px; height: 83px; border-radius: 6px; background: #555 center / cover no-repeat; }
.md-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-inline-end: 30px; }
.md-name { font-size: 22px; font-weight: 700; line-height: 27px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-court { height: 58px; border-radius: 10px; background: #808080; display: flex; align-items: center; gap: 6px; padding: 4px; color: #fff; font-size: 12px; font-weight: 500; text-align: start; margin-inline-end: -30px; }
.md-court-ico, .md-court-ava { flex: 0 0 40px; height: 50px; border-radius: 6px; background: #3a3a3a center / cover no-repeat; display: grid; place-items: center; font-size: 22px; }
.md-cv { display: flex; gap: 6px; margin-inline-end: -30px; }
.md-coins { flex: 0 0 128px; height: 40px; border-radius: 10px; border: 2px solid #fed230; background: rgba(0, 0, 0, .15); color: #fff; display: flex; align-items: center; gap: 8px; padding: 0 8px; }
.md-coins b { flex: 1; text-align: start; font-size: 16px; }
.md-plus { width: 20px; height: 20px; border-radius: 30px; background: #51cf66; display: grid; place-items: center; font-weight: 900; font-size: 14px; line-height: 1; }
.md-vip { flex: 1; height: 40px; border-radius: 10px; background: linear-gradient(218deg, #ffd646, #ffa800); display: grid; place-items: center; font-size: 22px; }
.md-close { position: absolute; top: 0; inset-inline-end: 0; width: 26px; height: 26px; color: #fff; font-size: 20px; background: none; }
.md-resources { margin-top: 10px; height: 53px; border-radius: 10px; background: #3a3a3a; display: flex; justify-content: space-around; align-items: center; }
.md-res { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.md-res span { font-size: 18px; line-height: 24px; }
.md-res b { font-size: 12px; font-weight: 700; }
.md-items { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px; }
.md-item { width: 100%; height: 36px; margin-bottom: 8px; padding: 0 16px; display: flex; align-items: center; gap: 8px; background: none; color: #fff; border-radius: 8px; }
.md-item:hover { background: rgba(255, 255, 255, .06); }
.md-ico { width: 28px; text-align: center; font-size: 20px; }
.md-label { flex: 1; text-align: start; font-size: 16px; font-weight: 700; }
.md-badge { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 100px; background: linear-gradient(#f13232, #c81d1d); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.md-badge[hidden] { display: none; }
.md-sep { height: 2px; margin: 0 0 8px; border-radius: 2px; background: rgba(255, 255, 255, .2); }
.md-bottom { flex: 0 0 55px; display: flex; background: #404040; }
.md-bb { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: none; color: #fff; }
.md-bb span { font-size: 20px; line-height: 24px; }
.md-bb b { font-size: 14px; }

/* ── Settings / Contact Us ── */
.set-screen .pnl > .panel-body { background: linear-gradient(#ece5f7, #f5f2fb); padding: 18px 16px 24px; }
.st6 { display: flex; flex-direction: column; gap: 14px; color: #392d60; }
.st6-card { background: #fff; border-radius: 18px; padding: 6px 16px; border: 1px solid #e9e1f3; box-shadow: 0 3px 10px rgba(57, 45, 96, .035); display: flex; flex-direction: column; }
.st6-cap { padding: 10px 0 2px; font-size: 12px; font-weight: 700; color: #7957b2; }
.st6-vip { align-self: flex-start; margin: 10px 0 0; padding: 4px 10px; border-radius: 8px; background: #fae5b5; color: #a16b21; font-size: 12px; font-weight: 700; }
.st6-card.locked { background: #fffaf0; }
.st6-row { display: flex; align-items: center; gap: 10px; height: 50px; }
.st6-ico { width: 20px; text-align: center; }
.st6-label { flex: 1; font-size: 14px; font-weight: 500; text-align: start; }
.st6-note { color: #8b84a3; font-size: 11px; padding-bottom: 8px; }
.st6-switch { position: relative; flex: 0 0 35px; width: 35px; height: 20px; background: none; padding: 0; }
.st6-switch::before { content: ''; position: absolute; left: 0; right: 0; top: 3px; height: 14px; border-radius: 100px; background: #959595; }
/* the knob starts on the reading side: off at the start, on at the end (mirrored in Arabic) */
.st6-switch i { position: absolute; top: 0; inset-inline-start: 0; width: 20px; height: 20px; border-radius: 50%; background: #c6c6c6; transition: inset-inline-start .15s; }
.st6-switch.on::before { background: #b8a3e3; }
.st6-switch.on i { inset-inline-start: 15px; background: #7957b2; }
.st6-lang { display: flex; align-items: center; gap: 8px; height: 56px; background: none; font-size: 14px; font-weight: 500; color: inherit; text-align: start; }
.st6-lang span { flex: 1; }
.st6-lang b { font-size: 13px; font-weight: 500; }
.st6-lang i, .st6-black i { font-style: normal; font-size: 22px; color: #7957b2; }
.st6-black { flex-direction: row; align-items: center; gap: 10px; height: 56px; text-align: start; color: inherit; }
.st6-logout { height: 46px; border-radius: 100px; border: 2px solid #7957b2; background: transparent; color: #7957b2; font-size: 16px; font-weight: 700; }
.st6-links { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.st6-links a { color: #392d60; font-size: 11px; font-weight: 600; text-decoration: underline; }
.st6-copy { align-self: center; background: none; color: #7957b2; font-size: 14px; font-weight: 600; text-decoration: underline; }
.st6-info { margin: 0; font: 500 13px/1.8 Montserrat, sans-serif; color: #392d60; white-space: pre-wrap; word-break: break-all; }
.ct6 { gap: 8px; padding: 14px 16px; }
.ct6 label { font-size: 12px; font-weight: 700; color: #7957b2; }
.ct6-hint { margin: 0 0 4px; font-size: 13px; }
.ct6-in { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid #e0d6f0; font: 500 14px Montserrat, Cairo, sans-serif; background: #fbf9ff; }
.ct6-msg { resize: vertical; min-height: 120px; }
.ct6-send { background: #7957b2; color: #fff; border-color: #7957b2; }

/* ── "Events": notifications ── */
.nt-screen .pnl > .panel-body { padding: 0 0 16px; }
.nt-tabs { display: flex; background: #382a63; padding: 0 8px; }
.nt-tabs button { position: relative; flex: 1; height: 40px; border-radius: 12px 12px 0 0; color: #fff; font-size: 16px; font-weight: 700; background: none; }
.nt-tabs button.on { background: #fff; color: #382a63; }
.nt-dot { position: absolute; top: 4px; margin-inline-start: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: #f13232; color: #fff; font-size: 10px; font-style: normal; display: inline-grid; place-items: center; padding: 0 4px; }
.nt-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; }
.nt-head b { font-size: 14px; }
.nt-settings { background: none; color: #4f369c; font-weight: 700; font-size: 14px; }
.nt-sub { padding: 8px 16px; font-size: 13px; font-weight: 700; color: #04050f; }
.nt-sub b { margin-inline-start: 6px; padding: 0 8px; border-radius: 8px; background: #efe9fb; color: #4f369c; }
.nt-row { display: flex; align-items: center; gap: 10px; margin: 0 7px 10px; padding: 6px; min-height: 70px; border-radius: 8px; background: #fbf3ff; }
.nt-left { flex: 0 0 58px; height: 58px; position: relative; }
.nt-icon { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 28px; }
.nt-photo { display: block; width: 58px; height: 58px; border-radius: 50%; background: #ccc center / cover no-repeat; }
.nt-photo i { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: #e18c44; font-style: normal; font-size: 13px; display: grid; place-items: center; }
.nt-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nt-text { font-size: 14px; line-height: 16px; color: #252529; }
.nt-date { font-size: 13px; color: #b7b7b9; }
.nt-view { flex: 0 0 58px; height: 58px; border-radius: 12px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #7957b2; }
.nt-view span { font-size: 18px; }
.nt-view b { font-size: 10px; }
/* settings → account: Google linked, or Google's button to link it */
.st6-account .st6-note { display: block; margin: 4px 0 8px; }
.st6-google { display: flex; justify-content: center; min-height: 44px; }
.st6-ok { color: #2f9e44; }
/* a gift received: its picture in the icon's circle, the size of the icon */
.nt-icon.nt-gift { overflow: hidden; }
.nt-icon.nt-gift .nt-gift-pic { width: 44px; height: 44px; object-fit: contain; }
.nt-icon.nt-gift .nt-gift-emoji { font-size: 30px; line-height: 1; }
.nt-reply b { color: #7957b2; }
/* the Events list's filters: All, then an icon for each group (its unseen count on it) */
.nt-cats { display: flex; gap: 6px; padding: 8px 12px 2px; overflow-x: auto; }
.nt-cat { position: relative; flex: none; min-width: 44px; height: 32px; padding: 0 12px; border-radius: 16px; display: grid; place-items: center; background: #f1ebfb; color: #6b4fa0; font-size: 12px; }
.nt-cat.on { background: #7957b2; color: #fff; box-shadow: 0 2px 8px rgba(121, 87, 178, .35); }
.nt-cat-ico { font-size: 17px; line-height: 1; }
.nt-cat-dot { position: absolute; top: -4px; inset-inline-end: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #ff3d4f; color: #fff; font-style: normal; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; }
/* an achievement notice: the achievement's own picture on its View button */
.nt-ach .nt-ach-pic { width: 26px; height: 26px; object-fit: contain; }

/* Settings → Delete account (deleteaccount.js): the red card and its form */
.st6-delete { color: #d6264f; border-color: #ffd0da; background: #fff5f7; }
.st6-delete .st6-label { font-weight: 800; }
.st6-delete i { color: #d6264f; }
.del6 { display: flex; flex-direction: column; gap: 12px; }
.del-warn { background: #fff1f3; border: 1.5px solid #ffb3c2; border-radius: 18px; padding: 14px 16px; color: #5b1426; line-height: 1.6; font-size: 14px; }
.del-warn b { display: block; color: #c01d45; font-size: 15.5px; margin-bottom: 6px; }
.del-warn p { margin: 0 0 8px; }
.del-warn .del-kept { color: #6b4a55; font-size: 13px; }
.del-warn a { color: #c01d45; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.del-q { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; color: #392d60; }
.del-sum { width: 110px; height: 44px; border-radius: 12px; border: 2px solid #e1d6f0; padding: 0 12px; font: inherit; font-size: 18px; font-weight: 800; text-align: center; }
.del-sum:focus, .del-notes:focus { outline: none; border-color: #d6264f; }
.del-notes { border-radius: 12px; border: 2px solid #e1d6f0; padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical; min-height: 70px; }
.del-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.55; color: #392d60; cursor: pointer; }
.del-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #d6264f; }
.del-check a { color: #7957b2; font-weight: 700; }
.del-go { height: 50px; border: 0; border-radius: 100px; background: #d6264f; color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(214, 38, 79, .3); }
.del-go:disabled { background: #e9b7c3; box-shadow: none; cursor: default; }

/* my VIP across the menu (menu.js vipBar): one line — what is left and "Extend" */
.md-vipbar { width: 100%; height: 40px; margin: 8px 0 0; padding: 0 12px; border: 0; border-radius: 12px; display: flex; align-items: center; gap: 8px; background: linear-gradient(90deg, rgba(255, 214, 70, .18), rgba(255, 168, 0, .08)); box-shadow: inset 0 0 0 1.5px rgba(255, 214, 70, .6); color: #fff; font-size: 13px; cursor: pointer; text-align: start; }
.md-vipbar:hover { background: linear-gradient(90deg, rgba(255, 214, 70, .26), rgba(255, 168, 0, .12)); }
.md-vb-crown { font-size: 18px; line-height: 1; }
.md-vb-vip { color: #ffd646; font-weight: 800; }
.md-vb-left { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.md-vb-renew { flex: none; padding: 3px 10px; border-radius: 10px; background: linear-gradient(218deg, #ffd646, #ffa800); color: #3b2468; font-size: 11px; font-weight: 800; }

/* the chat language list (settings): a search, then every language in its own words and in mine */
.ls-wrap { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 16px; background: rgba(14, 8, 30, .45); animation: mmFade .18s ease-out; }
.ls-box { display: flex; flex-direction: column; gap: 10px; width: min(420px, 100%); max-height: min(640px, 86vh); padding: 14px; border-radius: 20px; background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.ls-grab { display: none; }
.ls-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ls-head b { font-size: 16px; }
.ls-x { width: 32px; height: 32px; border-radius: 50%; background: #f1ecfa; color: #5d4b85; font-size: 14px; }
.ls-search { width: 100%; box-sizing: border-box; height: 42px; padding: 0 14px; border: 1.5px solid #e4dcf3; border-radius: 12px; background: #faf8fd; font: inherit; font-size: 15px; }
.ls-search:focus { outline: none; border-color: #7957b2; }
.ls-list { display: grid; gap: 2px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.ls-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: none; text-align: start; }
.ls-item:hover, .ls-item:focus-visible { background: #f6f2fc; outline: none; }
.ls-item.on { background: #efe8fb; }
.ls-names { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.ls-names b { font-size: 15px; color: #241a3d; }
.ls-names small { font-size: 12px; color: #8a7ea6; }
.ls-code { font-size: 11px; font-weight: 800; color: #a194bf; text-transform: uppercase; direction: ltr; }
.ls-check { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #7957b2; color: #fff; font-size: 12px; font-weight: 800; }
@media (max-width: 950px), (pointer: coarse) {
  .ls-wrap { place-items: end stretch; padding: 0; }
  .ls-box { width: 100%; max-height: 82vh; border-radius: 22px 22px 0 0; padding: 8px 14px calc(14px + env(safe-area-inset-bottom)); animation: mmUp .22s cubic-bezier(.2, .9, .3, 1); }
  .ls-grab { display: block; align-self: center; width: 40px; height: 5px; border-radius: 3px; background: #ddd5ec; }
  .ls-item { padding: 12px; }
}
/* both names on the same side (a name in another script keeps its own direction, not its own side) */
.ls-names b, .ls-names small { text-align: start; }
[dir="rtl"] .ls-names b { text-align: right; }
