/* EZP Client Portal — RTL Persian UI. Brand: navy #1F2B5C, orange #E8823C */
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --navy: #1F2B5C; --navy-2: #2B3A73; --navy-soft: #E9ECF5;
  --orange: #E8823C; --orange-soft: #FDF0E6; --orange-dark: #C96A28;
  --bg: #F4F5F9; --card: #FFFFFF; --line: #E3E6EE; --line-2: #EEF0F5;
  --text: #1C2033; --muted: #6B7185; --faint: #9AA0B2;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20,28,60,.05), 0 4px 16px rgba(20,28,60,.05);
  /* status tones */
  --gray: #6B7185; --gray-bg: #EEF0F4;
  --amber: #A76400; --amber-bg: #FFF3DC;
  --red: #C0352B; --red-bg: #FDE9E7;
  --green: #1F8A4C; --green-bg: #E3F5EA;
  --blue: #2D5BD0; --blue-bg: #E6EDFD;
  --teal: #0E7C74; --teal-bg: #DDF3F1;
  --slate: #4B5168; --slate-bg: #E4E6EE;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Vazirmatn", Tahoma, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.75; direction: rtl; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: 1.45rem; font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .8em; }
img { max-width: 100%; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* ------------------------------------------------ layout */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--navy); color: #fff; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 20px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.05rem; }
.brand:hover { color: #fff; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--orange); display: grid; place-items: center; font-weight: 900; font-size: .8rem; letter-spacing: .5px; color: #fff; direction: ltr; }
.brand small { display: block; font-weight: 400; font-size: .72rem; opacity: .75; margin-top: -4px; }
.topbar .spacer { flex: 1; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: rgba(255,255,255,.08); border: 0; cursor: pointer; }
.icon-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .dot { position: absolute; top: -4px; left: -4px; box-shadow: 0 0 0 2px var(--navy); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--orange); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.user-chip { display: flex; align-items: center; gap: 8px; color: #fff; padding: 4px 6px 4px 12px; border-radius: 12px; background: rgba(255,255,255,.08); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.user-chip form { margin: 0; }
.link-btn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; opacity: .8; font-size: .85rem; }
.link-btn:hover { opacity: 1; }

.shell { display: grid; grid-template-columns: 250px 1fr; gap: 24px; max-width: 1280px; margin: 0 auto; padding: 24px 20px 60px; }
.sidenav { position: sticky; top: 84px; align-self: start; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }
.sidenav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 500; }
.sidenav a:hover { background: var(--navy-soft); color: var(--navy); }
.sidenav a.active { background: var(--navy); color: #fff; }
.sidenav a.active svg { color: var(--orange); }
.sidenav svg { width: 20px; height: 20px; flex: none; color: var(--navy-2); }
.sidenav .sep { height: 1px; background: var(--line); margin: 6px 8px; }
.sidenav .badge-mini { margin-inline-start: auto; background: var(--orange); color: #fff; border-radius: 9px; font-size: .7rem; padding: 0 7px; }
main { min-width: 0; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }

/* ------------------------------------------------ cards / grid */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.welcome { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; position: relative; overflow: hidden; }
.welcome::after { content: ""; position: absolute; left: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(232,130,60,.25); }
.welcome h1 { color: #fff; margin-bottom: 4px; }
.welcome p { margin: 0; opacity: .85; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 16px; position: relative; z-index: 1; }
.stat { background: rgba(255,255,255,.1); border-radius: 12px; padding: 10px 14px; color: #fff; }
.stat b { display: block; font-size: 1.35rem; font-weight: 800; }
.stat span { font-size: .8rem; opacity: .85; }
a.stat:hover { background: rgba(255,255,255,.18); color: #fff; }

.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.service-card { display: flex; flex-direction: column; gap: 10px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; color: var(--text); border: 1px solid transparent; transition: transform .12s, border-color .12s; min-height: 150px; }
.service-card:hover { transform: translateY(-2px); border-color: var(--orange); color: var(--text); }
.service-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; }
.service-card .ico svg { width: 24px; height: 24px; }
.service-card h3 { margin: 0; font-size: 1rem; }
.service-card .meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; font-size: .8rem; color: var(--muted); }

/* ------------------------------------------------ tabs */
.tabs { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 10px 16px; border-radius: 10px 10px 0 0; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a:hover { color: var(--navy); background: var(--navy-soft); }
.tabs a.active { color: var(--navy); border-bottom-color: var(--orange); background: var(--card); }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 14px; }
.pills::-webkit-scrollbar { display: none; }
.pills a { flex: none; padding: 6px 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-size: .88rem; white-space: nowrap; }
.pills a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pills a .count { opacity: .7; font-size: .78rem; }

/* ------------------------------------------------ badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tone-gray { color: var(--gray); background: var(--gray-bg); }
.tone-amber { color: var(--amber); background: var(--amber-bg); }
.tone-red { color: var(--red); background: var(--red-bg); }
.tone-green { color: var(--green); background: var(--green-bg); }
.tone-blue { color: var(--blue); background: var(--blue-bg); }
.tone-teal { color: var(--teal); background: var(--teal-bg); }
.tone-slate { color: var(--slate); background: var(--slate-bg); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }

/* ------------------------------------------------ alerts */
.alert { border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; border: 1px solid; font-size: .92rem; }
.alert-info { background: var(--blue-bg); border-color: #C8D6FA; color: #1E3E8F; }
.alert-success { background: var(--green-bg); border-color: #BFE5CD; color: #145C33; }
.alert-error { background: var(--red-bg); border-color: #F6C6C1; color: #8E231B; }
.alert-warn { background: var(--amber-bg); border-color: #F5DDA8; color: #7A4A00; }
.alert b { font-weight: 700; }
.testcode { background: #FFF8E1; border: 1px dashed #E0B44C; color: #6F4E00; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: .88rem; }
.testcode b { font-size: 1.2rem; letter-spacing: 3px; direction: ltr; display: inline-block; }

/* ------------------------------------------------ forms */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.field { margin-bottom: 14px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.field .err { font-size: .82rem; color: var(--red); margin-top: 4px; }
input:not([type]), input[type=text], input[type=tel], input[type=datetime-local], input[type=email], input[type=number], input[type=date], input[type=url], input[type=password], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; outline: none; transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus, textarea:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(43,58,115,.12); }
input.is-invalid, select.is-invalid, textarea.is-invalid { border-color: var(--red); }
input[dir=ltr], .ltr-input { direction: ltr; text-align: left; }
textarea { min-height: 110px; resize: vertical; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--text); }
.checkbox input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--orange); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.input-prefix { display: flex; align-items: stretch; direction: ltr; }
.input-prefix span { display: grid; place-items: center; padding: 0 12px; background: var(--navy-soft); border: 1.5px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; color: var(--navy); font-weight: 700; }
.input-prefix input { border-radius: 0 10px 10px 0; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 4px; margin: 0 0 14px; }
legend { padding: 0 6px; font-weight: 700; color: var(--navy); font-size: .92rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: .92rem; border-radius: 10px; padding: 9px 18px; border: 1.5px solid transparent; cursor: pointer; background: var(--navy); color: #fff; white-space: nowrap; }
.btn:hover { background: var(--navy-2); color: #fff; }
.btn-orange { background: var(--orange); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--navy-soft); color: var(--navy); }
.btn-danger { background: #fff; color: var(--red); border-color: #F2C2BD; }
.btn-danger:hover { background: var(--red-bg); color: var(--red); }
.btn-success { background: var(--green); }
.btn-success:hover { background: #17703d; }
.btn-sm { padding: 5px 12px; font-size: .82rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------ file slots */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.slot { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.slot-head { padding: 12px 14px 8px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.slot-head h4 { margin: 0; font-size: .92rem; color: var(--navy); }
.slot-head .sub { font-size: .76rem; color: var(--muted); }
.thumb { position: relative; display: block; height: 170px; background: var(--line-2) center/cover no-repeat; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.thumb .kind { position: absolute; bottom: 8px; left: 8px; background: rgba(31,43,92,.85); color: #fff; border-radius: 6px; font-size: .7rem; padding: 1px 8px; }
.thumb.empty { display: grid; place-items: center; color: #9C8A66; background: #F9F5EC; border-top-style: dashed; border-bottom-style: dashed; border-color: #E9DFC9; font-size: .85rem; text-align: center; padding: 10px; }
.thumb.empty svg { width: 34px; height: 34px; display: block; margin: 0 auto 4px; }
.thumb.textprev { background: #FBFBFD; padding: 10px 12px; font-size: .78rem; white-space: pre-wrap; overflow: hidden; direction: auto; text-align: start; font-family: ui-monospace, Menlo, Consolas, "Vazirmatn", monospace; color: #333; }
.slot-body { padding: 10px 14px 12px; font-size: .8rem; color: var(--muted); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.slot-body .fname { color: var(--text); font-weight: 600; word-break: break-all; font-size: .82rem; }
.slot-body .note { background: var(--red-bg); color: var(--red); border-radius: 8px; padding: 6px 10px; font-size: .8rem; }
.slot-actions { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.upload-form { display: flex; flex-direction: column; gap: 6px; }
.file-input { position: relative; }
.file-input input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-input .btn { width: 100%; }
.file-chosen { font-size: .76rem; color: var(--navy-2); word-break: break-all; }
.pending-preview { display: none; border: 1px dashed var(--orange); border-radius: 8px; padding: 4px; }
.pending-preview img { max-height: 120px; display: block; margin: 0 auto; }

/* ------------------------------------------------ tables */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: right; background: #F7F8FB; color: var(--navy); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: .82rem; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.unread td { background: #FFFAF4; font-weight: 600; }
.receipt-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #fff; }

/* definition lists */
.dl { display: grid; grid-template-columns: 180px 1fr; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.dl dt, .dl dd { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.dl dt { background: #F7F8FB; color: var(--muted); font-size: .85rem; }
.dl dd { font-weight: 500; white-space: pre-wrap; }
.dl dt:last-of-type, .dl dd:last-of-type { border-bottom: 0; }

.big-number { font-size: 1.6rem; font-weight: 800; color: var(--navy); direction: ltr; letter-spacing: 1px; }
.linkbox { direction: ltr; text-align: left; background: #F7F8FB; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .88rem; word-break: break-all; }

/* list rows (notifications / tickets) */
.list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.list-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); color: var(--text); align-items: flex-start; }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: #FAFBFD; color: var(--text); }
.list-item.unread { background: #FFF9F3; }
.list-item .dotmark { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); margin-top: 9px; flex: none; }
.list-item .dotmark.read { background: transparent; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 700; }
.list-item .meta { font-size: .8rem; color: var(--muted); }
.empty-state { text-align: center; color: var(--muted); padding: 36px 16px; }
.empty-state svg { width: 46px; height: 46px; color: var(--faint); margin-bottom: 6px; }

/* timeline / steps */
.steps { display: flex; gap: 0; margin: 6px 0 16px; overflow-x: auto; scrollbar-width: none; }
.steps .st { flex: 1; min-width: 110px; text-align: center; position: relative; font-size: .76rem; color: var(--faint); padding-top: 26px; }
.steps .st::before { content: ""; position: absolute; top: 8px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.steps .st:first-child::before { display: none; }
.steps .st i { position: absolute; top: 0; right: calc(50% - 10px); width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--line); z-index: 1; }
.steps .st.done { color: var(--teal); }
.steps .st.done i { background: var(--teal); border-color: var(--teal); }
.steps .st.done::before { background: var(--teal); }
.steps .st.cur { color: var(--navy); font-weight: 700; }
.steps .st.cur i { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.steps .st.cur::before { background: var(--teal); }

/* chat (tickets) */
.chat { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 85%; border-radius: 14px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); }
.msg.me { align-self: flex-start; background: var(--navy-soft); border-color: #D4DAEC; }
.msg.them { align-self: flex-end; background: var(--orange-soft); border-color: #F6D6BE; }
.msg .who { font-size: .78rem; color: var(--muted); margin-bottom: 4px; }

/* magazine */
.hero-post { display: grid; grid-template-columns: 1.2fr 1fr; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 18px; color: var(--text); }
.hero-post .cover { min-height: 240px; background: var(--navy) center/cover no-repeat; }
.hero-post .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-post .txt { padding: 22px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: var(--text); display: flex; flex-direction: column; }
.post-card:hover { color: var(--text); box-shadow: 0 6px 22px rgba(20,28,60,.1); }
.post-card .cover { height: 150px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .txt { padding: 14px 16px; flex: 1; }
.post-card h3 { margin-bottom: 6px; }
.post-body { font-size: 1rem; line-height: 2; }
.no-cover { display: grid; place-items: center; height: 100%; color: rgba(255,255,255,.5); font-weight: 900; font-size: 1.6rem; letter-spacing: 2px; direction: ltr; }

/* auth pages */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at 15% 10%, rgba(232,130,60,.18), transparent 40%), linear-gradient(160deg, #1F2B5C 0%, #2B3A73 60%, #1F2B5C 100%); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.25); padding: 30px 28px; }
.auth-card .brand-mark { width: 54px; height: 54px; border-radius: 16px; font-size: 1rem; margin: 0 auto 12px; }
.auth-card h1 { text-align: center; font-size: 1.25rem; margin-bottom: 4px; }
.auth-card .lead { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.otp-input { direction: ltr; text-align: center; font-size: 1.6rem !important; letter-spacing: 12px; font-weight: 700; }
.mobile-input { direction: ltr; text-align: center; font-size: 1.2rem !important; letter-spacing: 2px; }
.auth-foot { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 16px; }
.countdown { font-weight: 700; color: var(--navy); }

/* admin */
.admin-top { background: #141C3D; }
.admin-tag { background: var(--orange); color: #fff; border-radius: 6px; padding: 0 8px; font-size: .72rem; margin-inline-start: 6px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; color: var(--text); display: block; border-inline-start: 4px solid var(--navy); }
.kpi b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.kpi span { font-size: .82rem; color: var(--muted); }
.kpi.warn { border-inline-start-color: var(--orange); }
.kpi.bad { border-inline-start-color: var(--red); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filters .field { margin: 0; min-width: 160px; flex: 1; }
.section-title { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); margin: 22px 0 10px; font-size: 1rem; }
.section-title::before { content: ""; width: 4px; height: 18px; background: var(--orange); border-radius: 2px; }
details.box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
details.box summary { cursor: pointer; font-weight: 700; color: var(--navy); }
details.box[open] summary { margin-bottom: 10px; }

.env-banner { background: #FFF3DC; color: #7A4A00; text-align: center; font-size: .8rem; padding: 4px; border-bottom: 1px solid #F5DDA8; }
footer.site { text-align: center; color: var(--faint); font-size: .8rem; padding: 20px; }

/* ================================================ revision round 1 */
/* anchors land below the sticky bars */
[id^="slot-"], .card[id], section[id] { scroll-margin-top: 130px; }
.slot-msg { margin: 0; padding: 8px 10px; font-size: .82rem; display: flex; align-items: center; gap: 6px; animation: flashin .5s ease; }
.slot-msg svg { width: 16px; height: 16px; flex: none; }
@keyframes flashin { from { transform: translateY(-4px); opacity: 0; } to { transform: none; opacity: 1; } }
.slot:target { outline: 2px solid var(--orange); outline-offset: 2px; }
.inline-form { display: inline; margin: 0; }
.span-2 { grid-column: 1 / -1; }
.btn-danger svg { width: 16px; height: 16px; }

/* date as three selects: DD / MM / YYYY in every browser */
.date3 { display: flex; align-items: center; gap: 6px; direction: ltr; }
.date3 select { width: auto; flex: 1 1 0; min-width: 0; padding-inline: 8px; text-align: center; }
.date3 select:nth-of-type(2) { flex-grow: 1.5; }
.date3 .sep { color: var(--faint); font-weight: 700; }
.date3.is-invalid select { border-color: var(--red); }

/* topbar user menu */
.user-menu { position: relative; }
.user-menu > summary { list-style: none; display: flex; align-items: center; gap: 8px; color: #fff; padding: 4px 8px 4px 10px; border-radius: 12px; background: rgba(255,255,255,.08); cursor: pointer; user-select: none; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover { background: rgba(255,255,255,.16); }
.user-menu .chev { width: 16px; height: 16px; transform: rotate(-90deg); opacity: .8; transition: transform .15s; }
.user-menu[open] .chev { transform: rotate(90deg); }
img.avatar { object-fit: cover; display: block; background: #fff; }
.avatar { letter-spacing: .5px; font-size: .82rem; }
.avatar.lg { width: 48px; height: 48px; font-size: 1.05rem; flex: none; }
.menu-pop { position: absolute; left: 0; top: calc(100% + 8px); width: 260px; background: #fff; color: var(--text); border-radius: 14px; box-shadow: 0 16px 40px rgba(20,28,60,.22); padding: 8px; z-index: 50; }
.menu-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.menu-head b { display: block; color: var(--navy); }
.menu-head .small { color: var(--muted); }
.menu-pop form { margin: 0; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 10px; background: none; border: 0; font: inherit; font-weight: 500; color: var(--text); cursor: pointer; text-align: start; }
.menu-item span { display: flex; align-items: center; gap: 10px; }
.menu-item:hover { background: var(--navy-soft); color: var(--navy); }
.menu-item svg { width: 19px; height: 19px; color: var(--navy-2); flex: none; }
.menu-item.danger, .menu-item.danger svg { color: var(--red); }
.menu-item.danger:hover { background: var(--red-bg); }
.menu-item.file-input { position: relative; }

/* bank: account list */
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.acct-card { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; color: var(--text); border: 1.5px solid transparent; transition: border-color .12s, transform .12s; }
.acct-card:hover { border-color: var(--orange); color: var(--text); transform: translateY(-1px); }
.acct-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.acct-ico svg { width: 26px; height: 26px; }
.acct-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.acct-body b { color: var(--navy); font-size: 1.02rem; }
.acct-go svg { width: 20px; height: 20px; color: var(--faint); }
.cur-chips { display: flex; flex-wrap: wrap; gap: 5px; direction: ltr; justify-content: flex-end; }
.cur-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--navy-soft); color: var(--navy); border-radius: 20px; padding: 1px 9px 1px 3px; font-size: .74rem; font-weight: 700; }
.cur-chip i { font-style: normal; background: #fff; border-radius: 50%; min-width: 20px; height: 20px; display: grid; place-items: center; font-size: .66rem; padding: 0 3px; }

/* bank: account details */
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sec-head h2 { margin: 0; }
.sec-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; flex: none; }
.sec-ico svg { width: 22px; height: 22px; }
.group-title { margin: 26px 0 12px; }
.cur-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cur-card { margin: 0; padding: 16px; background: #fff; border-radius: var(--radius); }
.cur-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cur-head h3 { margin: 0; font-size: 1.15rem; }
.cur-sym { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem; flex: none; box-shadow: 0 0 0 3px var(--orange-soft); }
.cur-sym.sm { width: 28px; height: 28px; font-size: .7rem; display: inline-grid; vertical-align: middle; box-shadow: none; }
.kv-list { background: #F6F7FA; border-radius: 14px; padding: 4px 14px; }
.kv { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #E8EAF1; }
.kv:last-child { border-bottom: 0; }
.kv-main { flex: 1; min-width: 0; direction: ltr; text-align: left; }
.kv-label { font-size: .8rem; color: var(--muted); }
.kv-value { font-weight: 700; color: var(--text); font-size: 1rem; word-break: break-word; font-feature-settings: "tnum"; letter-spacing: .2px; }
.kv-hint { font-size: .74rem; color: var(--faint); margin-top: 2px; direction: rtl; text-align: left; }
.kv-actions { display: flex; gap: 4px; flex: none; }
.icon-action { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background .12s, color .12s; }
.icon-action:hover { background: var(--navy-soft); }
.icon-action svg { width: 19px; height: 19px; }
.icon-action.ok { background: var(--green-bg); color: var(--green); border-color: #BFE5CD; }
.secret { letter-spacing: 2px; }
.copy-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; border-radius: 30px; padding: 8px 20px; font-size: .9rem; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 60; }
.charge-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; align-items: end; max-width: 760px; }
.charge-form .field { margin-bottom: 10px; }
.charge-form .btn { margin-bottom: 10px; }
.bank-form .section-title svg { width: 18px; height: 18px; color: var(--orange-dark); }
.bank-form .section-title::before { display: none; }
.cur-edit summary { display: flex; align-items: center; gap: 8px; }
.cur-edit .form-row { margin-top: 10px; }

/* vertical steps */
.vsteps { list-style: none; margin: 4px 0 0; padding: 0; }
.vs { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.vs:last-child { padding-bottom: 0; }
.vs::before { content: ""; position: absolute; top: 34px; bottom: 2px; right: 16px; width: 2px; background: var(--line); }
.vs:last-child::before { display: none; }
.vs.done::before { background: var(--teal); }
.vs-dot { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: .88rem; background: #fff; border: 2px solid var(--line); color: var(--faint); position: relative; z-index: 1; }
.vs-dot svg { width: 18px; height: 18px; }
.vs.done .vs-dot { background: var(--teal); border-color: var(--teal); color: #fff; }
.vs.cur .vs-dot { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 0 0 5px var(--orange-soft); }
.vs-txt { padding-top: 5px; display: flex; flex-direction: column; gap: 2px; }
.vs-txt b { font-weight: 700; color: var(--faint); font-size: .95rem; }
.vs.done .vs-txt b { color: var(--teal); font-weight: 600; }
.vs.cur .vs-txt b { color: var(--navy); font-weight: 800; }
.vs-txt span { font-size: .84rem; color: var(--muted); background: var(--orange-soft); border-radius: 10px; padding: 6px 10px; margin-top: 4px; }
.req-layout { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 18px; align-items: start; }
.req-layout .card { margin-bottom: 18px; }

/* company annual categories */
.cat-sec { box-shadow: inset -5px 0 0 var(--cat), var(--shadow); padding-top: 16px; margin-bottom: 22px; }
.cat-sec.flat { background: #fff; border: 1px solid var(--line); box-shadow: inset -5px 0 0 var(--cat); border-radius: var(--radius); padding: 14px 18px 14px 14px; margin: 14px 0 18px; }
.cat-letters { --cat: #1F2B5C; --cat-bg: #E9ECF5; }
.cat-annual { --cat: #E8823C; --cat-bg: #FDF0E6; }
.cat-other { --cat: #A86A08; --cat-bg: #FEF3DC; }
.cat-head { display: flex; align-items: center; gap: 12px; margin: -2px 0 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.cat-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--cat-bg); color: var(--cat); display: grid; place-items: center; flex: none; }
.cat-ico svg { width: 22px; height: 22px; }
.cat-title { flex: 1; min-width: 0; }
.cat-title h2, .cat-title h3 { margin: 0; color: var(--cat); }
.cat-title .small { color: var(--muted); }
.cat-count { background: var(--cat-bg); color: var(--cat); font-weight: 700; font-size: .78rem; border-radius: 20px; padding: 3px 12px; white-space: nowrap; }
.cat-empty { margin: 0; }

/* licence verify */
.verify-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.verify-card h2 { margin: 0; }
.verify-card p { margin: 0; }
.verify-link { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-bg); color: var(--blue); border-radius: 10px; padding: 8px 14px; font-weight: 700; }
.verify-link svg { width: 18px; height: 18px; }

/* tickets: expert */
.expert-card { max-width: 620px; }
.expert-chosen { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.expert-chosen h2 { margin: 2px 0 0; font-size: 1.3rem; }
.expert-ico { width: 54px; height: 54px; border-radius: 16px; background: var(--teal-bg); color: var(--teal); display: grid; place-items: center; flex: none; }
.expert-ico svg { width: 28px; height: 28px; }
.expert-form { max-width: 420px; }
.expert-nudge { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.expert-nudge:hover { color: #1E3E8F; filter: brightness(.98); }
.expert-line { display: flex; align-items: center; gap: 8px; background: var(--teal-bg); color: var(--teal); border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; font-size: .9rem; }
.expert-line svg { width: 18px; height: 18px; }

/* admin notification sections */
.sec-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.sec-tabs a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 6px; color: var(--navy); font-size: .78rem; font-weight: 600; text-align: center; line-height: 1.4; }
.sec-tabs a svg { width: 22px; height: 22px; color: var(--navy-2); }
.sec-tabs a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.sec-tabs a.active svg { color: var(--orange); }
.sec-tabs a.empty:not(.active) { opacity: .55; }
.sec-tabs a i { position: absolute; top: -7px; left: -5px; font-style: normal; background: var(--orange); color: #fff; border-radius: 10px; min-width: 20px; height: 20px; padding: 0 5px; font-size: .7rem; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.sec-chip { background: var(--navy-soft); color: var(--navy); border-radius: 6px; padding: 0 6px; font-size: .72rem; }

/* ------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sec-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; padding: 0 0 60px; gap: 0; }
  main { padding: 16px 14px; }
  .sidenav { position: sticky; top: 60px; z-index: 20; border-radius: 0; display: flex; gap: 4px; overflow-x: auto; padding: 8px 10px; scrollbar-width: none; box-shadow: 0 2px 6px rgba(20,28,60,.06); }
  .sidenav::-webkit-scrollbar { display: none; }
  .sidenav a { flex: none; padding: 7px 12px; font-size: .85rem; white-space: nowrap; }
  .sidenav .sep { display: none; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-4, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-post { grid-template-columns: 1fr; }
  .user-chip .uname, .user-menu .uname { display: none; }
  .req-layout { grid-template-columns: 1fr; gap: 0; }
  .cur-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .topbar { padding: 0 12px; }
  .brand small { display: none; }
  .grid-2, .grid-3, .grid-4, .form-row, .form-row-3, .post-grid { grid-template-columns: 1fr; }
  .service-grid { gap: 10px; }
  .service-card { padding: 14px; min-height: 130px; }
  .stats { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
  .stat { padding: 8px 10px; }
  .stat b { font-size: 1.1rem; }
  .card { padding: 16px; }
  .dl { grid-template-columns: 1fr; }
  .dl dt { border-bottom: 0; padding-bottom: 2px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  /* wide tables become cards */
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border-bottom: 1px solid var(--line); padding: 8px 4px; }
  table.stack td { border: 0; padding: 4px 10px; display: flex; justify-content: space-between; gap: 12px; }
  table.stack td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; font-weight: 600; }
  .msg { max-width: 100%; }
  .sec-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .acct-grid { grid-template-columns: 1fr; }
  .kv-value { font-size: .95rem; }
  .menu-pop { position: fixed; left: 10px; right: 10px; top: 64px; width: auto; }
  .cat-head { flex-wrap: wrap; }
  .date3 select { padding-inline: 4px; font-size: .9rem; }
  .sec { padding: 14px 16px 16px 14px; }
  .sec-grid { grid-template-columns: 1fr; }
  .sec-grid > .sec { height: auto; }
  .eye-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* inline icons inside text blocks */
.alert svg, .small svg, p svg, .testcode svg { width: 18px; height: 18px; vertical-align: -4px; margin-inline-end: 4px; }
svg:not([width]):not([class]) { max-width: 48px; max-height: 48px; }

/* LTR data forms (bank details): fields read left-to-right like the bank's own app */
.ltr-fields { direction: ltr; }
.ltr-fields label { text-align: left; }
.ltr-fields .hint { direction: rtl; text-align: left; }

/* ================================================ revision round 2 */
/* coloured blocks (site palette) */
.sec { --c: #1F2B5C; --c-bg: #E9ECF5; background: #fff; border-radius: var(--radius); box-shadow: inset -5px 0 0 var(--c), var(--shadow); padding: 18px 22px 20px 20px; margin-bottom: 20px; }
.sec.t-navy   { --c: #1F2B5C; --c-bg: #E9ECF5; }
.sec.t-orange { --c: #D26E27; --c-bg: #FDF0E6; }
.sec.t-gold   { --c: #A86A08; --c-bg: #FEF3DC; }
.sec.t-slate  { --c: #445186; --c-bg: #ECEEF6; }
.sec.t-sand   { --c: #8A6A3B; --c-bg: #F7F1E3; }
.sec > .sec-head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.sec .sec-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--c-bg); color: var(--c); display: grid; place-items: center; flex: none; }
.sec .sec-ico svg { width: 22px; height: 22px; }
.sec .sec-title { flex: 1; min-width: 0; }
.sec .sec-title h2 { margin: 0; color: var(--c); font-size: 1.08rem; }
.sec .sec-title .small { color: var(--muted); }
.sec .sec-side { flex: none; }
.sec .slots { margin-top: 2px; }
.sec .slot { box-shadow: none; }
.sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
.sec-grid > .sec { height: calc(100% - 20px); }
.inline-flash { margin: 0 0 12px; }
.inline-flash .alert { margin-bottom: 8px; animation: flashin .5s ease; }
[id^="blk-"] { scroll-margin-top: 130px; }

/* profile page */
.profile-list .kv-main { direction: rtl; text-align: right; }
.profile-list .kv-value { font-size: 1.05rem; }

/* eye colour picker */
.eye-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.eye-opt { position: relative; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 10px; cursor: pointer; font-weight: 700; color: var(--eye); background: #fff; margin: 0; transition: border-color .12s, background .12s; }
.eye-opt input { position: absolute; opacity: 0; pointer-events: none; }
.eye-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--eye); flex: none; box-shadow: inset 0 0 0 3px rgba(255,255,255,.55), 0 0 0 1px rgba(0,0,0,.08); }
.eye-opt:hover { border-color: var(--eye); }
.eye-opt:has(input:checked) { border-color: var(--eye); background: color-mix(in srgb, var(--eye) 10%, #fff); box-shadow: 0 0 0 2px color-mix(in srgb, var(--eye) 25%, transparent); }
.eye-opt:has(input:disabled) { opacity: .6; cursor: default; }
.eye-picker.is-invalid .eye-opt { border-color: #F2C2BD; }

/* flags + flag-coloured account boxes */
.flag { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: inline-block; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 2px 6px rgba(20,28,60,.12); background: #fff; }
.flag > svg { width: 100%; height: 100%; display: block; }
.flag.sm { width: 26px; height: 26px; vertical-align: middle; }
.flag.xs { width: 18px; height: 18px; }
.cur-card { border: 2px solid var(--fa, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fb, transparent) 18%, transparent), var(--shadow); }
.cur-chip .flag.xs { margin-inline-end: 2px; }
.sec .sec-count { background: var(--c-bg); color: var(--c); font-weight: 700; font-size: .78rem; border-radius: 20px; padding: 3px 12px; white-space: nowrap; }
.sec-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slots.one { grid-template-columns: 1fr; }
@media (max-width: 1100px) { .sec-grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sec-grid.three { grid-template-columns: 1fr; } }
.profile-card { max-width: 620px; }
.profile-top { display: flex; justify-content: center; margin: 4px 0 16px; }
.avatar.xl { width: 84px; height: 84px; font-size: 1.6rem; box-shadow: 0 0 0 4px var(--orange-soft); }
.profile-dl { margin: 0; background: #F6F7FA; border-radius: 14px; padding: 2px 16px; }
.profile-dl .pr { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #E8EAF1; flex-wrap: wrap; }
.profile-dl .pr:last-child { border-bottom: 0; }
.profile-dl dt { color: var(--muted); font-size: .88rem; }
.profile-dl dd { margin: 0; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; }
/* ---------------- round 3: coloured dashboard ---------------- */
.sec.t-teal { --c: #0E7C74; --c-bg: #DDF3F1; }
.sec.t-rose { --c: #B23A48; --c-bg: #FBE8EA; }
.sec.t-blue { --c: #2D5BD0; --c-bg: #E6EDFD; }
.sec.t-green { --c: #1F8A4C; --c-bg: #E3F5EA; }
.service-card.t-navy   { --c: #1F2B5C; --c2: #3A4C94; --c-bg: #E9ECF5; }
.service-card.t-orange { --c: #D26E27; --c2: #F0A060; --c-bg: #FDF0E6; }
.service-card.t-slate  { --c: #445186; --c2: #7280BD; --c-bg: #ECEEF6; }
.service-card.t-gold   { --c: #A86A08; --c2: #E0A53A; --c-bg: #FEF3DC; }
.service-card.t-teal   { --c: #0E7C74; --c2: #33B3A8; --c-bg: #DDF3F1; }
.service-card.t-sand   { --c: #8A6A3B; --c2: #C19B63; --c-bg: #F7F1E3; }
.service-card.t-rose   { --c: #B23A48; --c2: #E0707D; --c-bg: #FBE8EA; }
.service-card.t-blue   { --c: #2D5BD0; --c2: #6B90EC; --c-bg: #E6EDFD; }
.service-card { position: relative; overflow: hidden; background: linear-gradient(165deg, var(--c-bg, #fff) 0%, #fff 62%); border: 1px solid color-mix(in srgb, var(--c, #ccc) 18%, transparent); border-top: 4px solid var(--c, var(--navy)); }
.service-card:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); border-top-color: var(--c); box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--c) 45%, transparent); }
.service-card .ico { background: linear-gradient(135deg, var(--c), var(--c2)); color: #fff; box-shadow: 0 6px 14px -6px var(--c); position: relative; z-index: 1; }
.service-card h3 { color: var(--c); position: relative; z-index: 1; }
.service-card .meta { position: relative; z-index: 1; }
.svc-wm { position: absolute; left: -14px; top: 18px; width: 92px; height: 92px; color: var(--c); opacity: .07; pointer-events: none; }
.svc-wm svg { width: 100%; height: 100%; }
.svc-go { position: absolute; left: 14px; top: 20px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--c); box-shadow: 0 1px 4px rgba(20,28,60,.12); transition: transform .15s; }
.svc-go svg { width: 16px; height: 16px; }
.service-card:hover .svc-go { transform: translateX(-3px); }
.dash-boxes { margin-top: 22px; }
.list.tinted { box-shadow: none; border: 1px solid color-mix(in srgb, var(--c) 20%, var(--line)); border-radius: 12px; }
.list.tinted .list-item:hover { background: var(--c-bg); }
.dash-boxes .empty-state { background: var(--c-bg); border-radius: 12px; color: var(--c); padding: 22px 16px; }
.legend-list { display: grid; gap: 8px; }
.legend-row { display: flex; align-items: center; gap: 10px; background: #FAFBFD; border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 10px; font-size: .85rem; color: var(--muted); }
.legend-row .badge { min-width: 104px; justify-content: center; text-align: center; }
/* round-2 responsive rules (kept last so they win over the base rules above) */
@media (max-width: 900px) {
  .sec-grid, .sec-grid.three { grid-template-columns: 1fr; }
  .sec-grid > .sec { height: auto; }
}
@media (max-width: 600px) {
  .sec { padding: 14px 16px 16px 14px; }
  .eye-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------- round 3: my points (امتیاز من) ---------------- */
.pts-chip { margin-inline-start: auto; background: linear-gradient(135deg, #FBA62B, #E8823C); color: #fff; font-weight: 800; font-size: .72rem; border-radius: 20px; padding: 1px 9px; line-height: 1.7; }
.menu-points svg { color: #E0A53A !important; }
.sidenav a.nav-points svg { color: #E0A53A; }
.pts-hero { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; gap: 14px; background: radial-gradient(circle at 8% 0%, rgba(251,166,43,.16), transparent 40%), linear-gradient(125deg, #1F2B5C 0%, #2B3A73 60%, #445186 100%); border-radius: 18px; padding: 20px; color: #fff; margin-bottom: 22px; box-shadow: 0 14px 30px -18px rgba(31,43,92,.8); }
.pts-hero > div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 16px; display: flex; align-items: center; gap: 14px; min-width: 0; }
.pts-star { width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(135deg, #FBA62B, #D26E27); display: grid; place-items: center; flex: none; box-shadow: 0 8px 18px -6px rgba(251,166,43,.8); }
.pts-star svg { width: 32px; height: 32px; color: #fff; fill: rgba(255,255,255,.25); }
.pts-label, .pts-sub { display: block; font-size: .8rem; opacity: .8; }
.pts-num { display: block; font-size: 2.3rem; font-weight: 900; line-height: 1.15; color: #FFD58A; }
.pts-ring { --p: 0; width: 70px; height: 70px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(#FBA62B calc(var(--p) * 1%), rgba(255,255,255,.16) 0); }
.pts-ring > .ring-val { width: 54px; height: 54px; border-radius: 50%; background: #26346C; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; line-height: 1; text-align: center; padding-top: 2px; direction: rtl; }
.ring-txt b, .ring-txt small { display: block; }
.ring-txt small { font-size: .8rem; opacity: .8; }
.pts-prize-box { flex-direction: column; align-items: stretch !important; justify-content: center; gap: 10px !important; }
.pts-prize-head { display: flex; align-items: center; gap: 8px; }
.pts-prize-head svg { width: 22px; height: 22px; color: #FFD58A; flex: none; }
.pts-prize-st { font-size: .82rem; opacity: .95; }
.pts-bar { height: 10px; border-radius: 10px; background: rgba(255,255,255,.18); overflow: hidden; }
.pts-bar i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, #FBA62B, #FFD58A); min-width: 6px; }
.pts-bar.gold { background: #F3E6CC; } .pts-bar.gold i { background: linear-gradient(90deg, #A86A08, #E0A53A); }
.pts-bar.big { height: 16px; background: #F3E6CC; }
.pts-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.pts-h svg { width: 22px; height: 22px; color: var(--orange); }
.pts-plus { direction: ltr; unicode-bidi: isolate; display: inline-block; background: var(--c); color: #fff; font-weight: 800; border-radius: 12px; padding: 4px 12px; font-size: .92rem; box-shadow: 0 6px 12px -8px var(--c); }
.pf-list { display: grid; gap: 8px; }
.pf-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 12px; background: #FAFBFD; }
.pf-row .grow b { display: block; font-size: .92rem; } .pf-row .grow .small { color: var(--muted); }
.pf-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--gray-bg); color: var(--gray); }
.pf-ico svg { width: 17px; height: 17px; }
.pf-done .pf-ico { background: var(--green-bg); color: var(--green); }
.pf-pending .pf-ico { background: var(--amber-bg); color: var(--amber); } .pf-pending .grow .small { color: var(--amber); }
.pf-needs_fix .pf-ico { background: var(--red-bg); color: var(--red); } .pf-needs_fix .grow .small { color: var(--red); }
.pf-w { font-weight: 800; color: var(--c); background: var(--c-bg); border-radius: 8px; padding: 1px 8px; font-size: .82rem; }
.pf-bar { height: 8px; border-radius: 8px; background: var(--c-bg); margin: 12px 0; overflow: hidden; }
.pf-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--c), #6B7FC8); border-radius: 8px; }
.earn-btn { background: var(--c); border-color: var(--c); color: #fff; }
.earn-btn:hover { filter: brightness(1.1); color: #fff; }
.earn-done { display: flex; align-items: center; gap: 8px; background: var(--green-bg); color: var(--green); border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: .88rem; margin-top: 10px; }
.earn-done svg { width: 18px; height: 18px; flex: none; }
.ref-form { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 10px; align-items: end; }
.ref-form .field { margin: 0; }
.mini-list { margin-top: 12px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.mini-row:last-child { border-bottom: 0; }
.chg-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chg-stats div { background: var(--c-bg); border-radius: 12px; padding: 10px 12px; }
.chg-stats span { display: block; font-size: .78rem; color: var(--muted); }
.chg-stats b { font-size: 1.25rem; color: var(--c); }
.chg-prog { margin-top: 12px; display: grid; gap: 6px; }
.soon { position: relative; border: 2px dashed color-mix(in srgb, var(--c) 35%, transparent); background: var(--c-bg); border-radius: 14px; padding: 18px 16px 14px; text-align: center; color: var(--c); }
.soon p { margin: 8px 0 0; font-size: .9rem; }
.soon-tag { display: inline-block; background: var(--c); color: #fff; font-weight: 800; border-radius: 20px; padding: 3px 16px; }
.app-steps { margin: 0 0 12px; padding-inline-start: 20px; font-size: .9rem; color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.prize-card { position: relative; overflow: hidden; background: linear-gradient(160deg, #FFF8EA 0%, #fff 55%); border: 2px solid #F3D9A6; border-radius: 18px; padding: 20px 22px; margin: 4px 0 20px; box-shadow: 0 12px 28px -18px rgba(168,106,8,.6); }
.prize-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, #D26E27, #FBA62B, #A86A08); }
.prize-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.prize-head h2 { margin: 0; color: #8A5500; }
.prize-head p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.prize-ico { width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, #FBA62B, #A86A08); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 8px 16px -8px #A86A08; }
.prize-ico svg { width: 30px; height: 30px; }
.prize-need { background: #FEF3DC; color: #8A5500; border: 1px solid #F3D9A6; font-weight: 800; border-radius: 12px; padding: 5px 12px; white-space: nowrap; }
.prize-body.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.prize-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: .88rem; color: #8A5500; font-weight: 600; }
.prize-dl { margin: 0; background: #fff; border: 1px solid #F3E6CC; border-radius: 12px; padding: 4px 14px; }
.prize-dl div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #F3E6CC; }
.prize-dl div:last-child { border-bottom: 0; }
.prize-dl dt { color: var(--muted); font-size: .85rem; } .prize-dl dd { margin: 0; font-weight: 700; color: var(--navy); }
.prize-win { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: linear-gradient(120deg, #1F8A4C, #2FA866); color: #fff; border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; }
.prize-win svg { width: 26px; height: 26px; fill: rgba(255,255,255,.3); }
.prize-win b { font-size: 1.1rem; } .prize-win span { flex-basis: 100%; font-size: .85rem; opacity: .92; }
.prize-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.prize-form .full { grid-column: 1 / -1; }
.h-reason { display: flex; align-items: center; gap: 10px; }
.h-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--navy-soft); color: var(--navy); }
.h-ico svg { width: 16px; height: 16px; }
.h-ico.r-referral { background: #FDF0E6; color: #D26E27; } .h-ico.r-charge, .h-ico.r-charge_reversal { background: #FEF3DC; color: #A86A08; }
.h-ico.r-app { background: #DDF3F1; color: #0E7C74; } .h-ico.r-prize { background: #FBE8EA; color: #B23A48; }
.d-plus { color: var(--green); font-size: 1.02rem; } .d-minus { color: var(--red); font-size: 1.02rem; }
.pts-table tr.is-muted td { opacity: .7; }
@media (max-width: 1000px) { .pts-hero { grid-template-columns: 1fr 1fr; } .pts-prize-box { grid-column: 1 / -1; } }
@media (max-width: 900px) { .prize-body.two { grid-template-columns: 1fr; } .prize-form { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .pts-hero { grid-template-columns: 1fr; padding: 14px; gap: 10px; }
  .pts-num { font-size: 2rem; }
  .ref-form { grid-template-columns: 1fr; }
  .prize-card { padding: 16px 14px; }
  .prize-head { flex-wrap: wrap; }
}
/* admin: points */
.rule-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.rule-strip span { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 4px 12px; font-size: .82rem; color: var(--muted); }
.rule-strip svg { width: 16px; height: 16px; color: var(--orange); }
.rule-strip b { color: var(--navy); direction: ltr; unicode-bidi: isolate; }
.q-list { display: grid; gap: 10px; }
.q-item { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-inline-start: 4px solid var(--orange); border-radius: 12px; padding: 10px 12px; background: #FFFBF7; }
.q-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.q-form input { width: 170px; }
.prize-adm.closed { opacity: .75; }
.adm-pts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.adm-pts-stat { --c: #1F2B5C; --c-bg: #E9ECF5; background: var(--c-bg); border-radius: 14px; padding: 12px 14px; border-inline-start: 4px solid var(--c); }
.adm-pts-stat.t-gold { --c: #A86A08; --c-bg: #FEF3DC; } .adm-pts-stat.t-orange { --c: #D26E27; --c-bg: #FDF0E6; } .adm-pts-stat.t-teal { --c: #0E7C74; --c-bg: #DDF3F1; }
.adm-pts-stat span { display: block; font-size: .8rem; color: var(--muted); }
.adm-pts-stat b { font-size: 1.4rem; color: var(--c); } .adm-pts-stat b.small { font-size: .95rem; }
@media (max-width: 900px) { .q-item { grid-template-columns: 1fr; } .q-form input { flex: 1; width: auto; } .adm-pts { grid-template-columns: 1fr 1fr; } }

/* ---------------- round 4: wallet, tiers, dashboard summaries ---------------- */
.btn-teal { background: linear-gradient(135deg, #0E7C74, #139488); color: #fff; }
.btn-teal:hover { filter: brightness(1.08); color: #fff; }
.pts-bar.teal i { background: linear-gradient(90deg, #33B3A8, #9EE6DE); }
.pts-bar.big.teal { background: #D5EFEC; } .pts-bar.big.teal i { background: linear-gradient(90deg, #0E7C74, #33B3A8); }
.tier-mini { display: grid; gap: 6px; }
.tier-mini-head { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.tier-mini-head svg { width: 18px; height: 18px; color: #FFD58A; flex: none; }
.tier-mini-head b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tier-mini-head span { background: rgba(255,255,255,.14); border-radius: 10px; padding: 0 8px; font-size: .75rem; font-weight: 700; }
.tier-no { display: inline-block; background: #FEF3DC; color: #8A5500; border: 1px solid #F3D9A6; border-radius: 20px; font-size: .72rem; font-weight: 800; padding: 1px 10px; margin-bottom: 4px; }
.prize-card.wallet-tier { background: linear-gradient(160deg, #E4F6F3 0%, #fff 55%); border-color: #A9DDD6; box-shadow: 0 12px 28px -18px rgba(14,124,116,.6); }
.prize-card.wallet-tier::before { background: linear-gradient(90deg, #0E7C74, #33B3A8, #1F2B5C); }
.wallet-tier .prize-head h2 { color: #0B5F59; }
.wallet-tier .prize-ico { background: linear-gradient(135deg, #33B3A8, #0E7C74); box-shadow: 0 8px 16px -8px #0E7C74; }
.wallet-tier .prize-need { background: #DDF3F1; color: #0B5F59; border-color: #A9DDD6; display: inline-flex; align-items: center; gap: 5px; }
.wallet-tier .prize-need svg { width: 15px; height: 15px; }
.wallet-tier .tier-no { background: #DDF3F1; color: #0B5F59; border-color: #A9DDD6; }
.wallet-tier .prize-meta { color: #0B5F59; }
.wallet-tier.is-locked .prize-ico { background: linear-gradient(135deg, #8C94AD, #5B6480); box-shadow: none; }
.wallet-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; background: #fff; border: 1px dashed #A9DDD6; border-radius: 12px; padding: 10px 12px; font-size: .86rem; color: var(--muted); }
.wallet-note svg { width: 20px; height: 20px; color: #0E7C74; flex: none; margin-top: 2px; }
.wallet-note b { color: #0B5F59; }
.wallet-note.top { margin: 0 0 18px; background: #F2FAF9; }
.sec.span-all, .sec-grid > .sec.span-all { grid-column: 1 / -1; height: auto; }
.mag-earn { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mag-earn p { margin: 0; flex: 1 1 320px; }
.mag-earn-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.earn-done.inline { margin: 0; display: inline-flex; }
.sidenav a.nav-wallet svg, .menu-wallet svg { color: #0E7C74 !important; }
.wal-chip-mini { margin-inline-start: auto; background: #DDF3F1; color: #0B5F59; font-weight: 800; font-size: .72rem; border-radius: 20px; padding: 1px 9px; white-space: nowrap; }
.wal-chip-mini small { font-weight: 600; }
/* wallet page */
.wal-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-bottom: 18px; }
.wal-card { position: relative; overflow: hidden; border-radius: 20px; padding: 22px; color: #fff; background: radial-gradient(circle at 0% 100%, rgba(51,179,168,.45), transparent 50%), linear-gradient(135deg, #0B5F59 0%, #0E7C74 45%, #1F2B5C 100%); box-shadow: 0 16px 34px -18px rgba(14,124,116,.9); display: flex; flex-direction: column; gap: 6px; }
.wal-card::after { content: ""; position: absolute; left: -50px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(255,255,255,.06); }
.wal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; position: relative; z-index: 1; }
.wal-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); border-radius: 20px; padding: 3px 12px; font-size: .82rem; font-weight: 700; }
.wal-chip svg { width: 17px; height: 17px; }
.wal-brand { font-weight: 900; letter-spacing: 2px; opacity: .55; }
.wal-label { font-size: .85rem; opacity: .85; }
.wal-amount { font-size: 2.2rem; font-weight: 900; line-height: 1.3; color: #fff; }
.wal-amount small { font-size: 1rem; font-weight: 600; opacity: .85; }
.wal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; position: relative; z-index: 1; }
.wal-btn { background: #fff; color: #0B5F59; }
.wal-btn:hover { background: #F2FAF9; color: #0B5F59; }
.wal-btn.ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.wal-promo { position: relative; display: flex; flex-direction: column; gap: 6px; border-radius: 20px; padding: 20px 22px; background: linear-gradient(135deg, #1F2B5C, #2B3A73); color: #fff; box-shadow: 0 16px 34px -20px rgba(31,43,92,.9); }
.wal-promo:hover { color: #fff; filter: brightness(1.05); }
.wal-promo-line { width: 42px; height: 5px; border-radius: 5px; background: #E8823C; }
.wal-promo b { font-size: 1.1rem; }
.wal-promo-big { font-size: 1.25rem; font-weight: 900; color: #FFD58A; }
.wal-promo-sub { font-size: .8rem; opacity: .85; }
.wal-promo-btn { align-self: flex-start; margin-top: 4px; }
.wt-steps { margin: 14px 0 0; padding-inline-start: 20px; display: grid; gap: 4px; font-size: .86rem; color: var(--muted); }
.wt-steps b { color: var(--c); }
.wu-balance { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--c-bg); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.wu-balance span { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.wu-balance svg { width: 18px; height: 18px; color: var(--c); }
.wu-balance b { color: var(--c); font-size: 1.2rem; } .wu-balance small { font-size: .8rem; }
.wu-empty { text-align: center; border: 2px dashed color-mix(in srgb, var(--c) 30%, transparent); border-radius: 12px; padding: 14px; color: var(--muted); }
.wu-empty .btn-row { justify-content: center; }
.wu-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wu-opt { cursor: pointer; }
.wu-opt input { position: absolute; opacity: 0; pointer-events: none; }
.wu-opt-box { display: flex; flex-direction: column; gap: 3px; height: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; transition: border-color .12s, box-shadow .12s; }
.wu-opt-box svg { width: 22px; height: 22px; color: var(--c); }
.wu-opt-box b { font-size: .9rem; } .wu-opt-box small { color: var(--muted); font-size: .76rem; line-height: 1.6; }
.wu-opt input:checked + .wu-opt-box { border-color: var(--c); background: var(--c-bg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.wu-opt input:disabled + .wu-opt-box { opacity: .5; cursor: not-allowed; }
.wu-extra { margin-top: 2px; }
.wu-form:has(input[name=method][value=gbp]:checked) .wu-toman { display: none; }
.wu-form:has(input[name=method][value=toman]:checked) .wu-gbp { display: none; }
.req-list { display: grid; gap: 8px; }
.req-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; color: var(--text); background: #FAFBFD; }
.req-row:hover { background: var(--c-bg); color: var(--text); }
.req-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.req-ico svg { width: 18px; height: 18px; }
.req-ico.in, .kind-chip.k-deposit, .kind-chip.k-prize, .kind-chip.k-use_refund { background: var(--green-bg); color: var(--green); }
.req-ico.out, .kind-chip.k-use { background: #FDF0E6; color: #C96A28; }
.req-amt { font-weight: 800; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.req-amt.in { color: var(--green); } .req-amt.out { color: #C96A28; }
.kind-chip { display: inline-block; border-radius: 8px; padding: 1px 8px; font-size: .78rem; font-weight: 700; background: var(--navy-soft); color: var(--navy); }
.kind-chip.k-prize { background: #FEF3DC; color: #8A5500; }
.tx-total { text-align: left; margin-top: 10px; font-size: .9rem; color: var(--muted); }
.tx-total b { color: var(--navy); }
/* dashboard summaries */
.dp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dp-num { display: flex; align-items: center; gap: 12px; }
.dp-star { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #FBA62B, #D26E27); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px -6px #D26E27; }
.dp-star svg { width: 24px; height: 24px; }
.dp-num b { display: block; font-size: 1.7rem; font-weight: 900; color: var(--c); line-height: 1.2; }
.dp-num span { font-size: .8rem; color: var(--muted); }
.dp-ring { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .75rem; color: var(--muted); }
.pts-ring.sm { width: 54px; height: 54px; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--c-bg) 0); }
.pts-ring.sm > .ring-val { width: 42px; height: 42px; background: #fff; color: var(--c); font-size: .8rem; }
.dp-tier-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: #FEF3DC; color: #A86A08; margin-top: 2px; }
.dp-tier-ico.teal { background: #DDF3F1; color: #0E7C74; }
.dp-tier-ico svg { width: 17px; height: 17px; }
.dp-bar { display: block; height: 6px; border-radius: 6px; background: #F3E6CC; margin-top: 7px; overflow: hidden; }
.dp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #A86A08, #E0A53A); border-radius: 6px; }
.dp-bar.teal { background: #D5EFEC; } .dp-bar.teal i { background: linear-gradient(90deg, #0E7C74, #33B3A8); }
.dp-tiers .badge svg { width: 12px; height: 12px; }
.dp-tiers .list-item { align-items: center; }
.dw-card { position: relative; overflow: hidden; border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; color: #fff; background: linear-gradient(135deg, #0B5F59, #0E7C74 55%, #1F2B5C); }
.dw-card span { display: block; font-size: .8rem; opacity: .85; }
.dw-card b { font-size: 1.5rem; font-weight: 900; } .dw-card small { font-size: .85rem; font-weight: 600; opacity: .85; }
.dw-card em { position: absolute; left: 12px; top: 12px; font-style: normal; background: rgba(255,255,255,.16); border-radius: 20px; padding: 1px 10px; font-size: .74rem; }
/* magazine reward */
.mag-reward { display: flex; align-items: center; gap: 10px; background: linear-gradient(120deg, #FEF3DC, #FFF9EE); border: 1px solid #F3D9A6; border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; font-size: .9rem; color: #6B4A12; }
.mag-reward .mr-ico { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #FBA62B, #D26E27); color: #fff; display: grid; place-items: center; flex: none; }
.mag-reward .mr-ico svg { width: 17px; height: 17px; }
.mag-reward > span:nth-child(2) { flex: 1; }
.mag-reward a { font-weight: 700; white-space: nowrap; }
.mag-reward.got { background: var(--green-bg); border-color: #BFE3CC; color: var(--green); }
.mag-reward.got .mr-ico { background: var(--green); }
@media (max-width: 900px) { .wal-hero { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .wu-methods { grid-template-columns: 1fr; }
  .wal-amount { font-size: 1.8rem; }
  .req-row { flex-wrap: wrap; }
}
.input-prefix > span { white-space: nowrap; }
/* dashboard: wide «امتیاز من» box under the deadlines */
.dp-wide { display: block; }
@media (min-width: 901px) {
  .dp-wide .dp-body { display: grid; grid-template-columns: minmax(220px, .8fr) 2fr; gap: 18px; align-items: start; }
  .dp-wide .dp-top { flex-direction: column; align-items: stretch; background: var(--c-bg); border-radius: 14px; padding: 14px; margin: 0; }
  .dp-wide .dp-ring { flex-direction: row; gap: 10px; }
}
