:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #fff;
  font:
    16px Arial,
    Tahoma,
    sans-serif;
  background: #05040b;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bgg), var(--base);
}
main {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}
.cd {
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 14px;
  background:
    linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.14),
        rgba(255, 255, 255, 0) 28%
      )
      padding-box,
    linear-gradient(160deg, rgba(30, 22, 62, 0.94), rgba(8, 6, 20, 0.97))
      padding-box,
    var(--bd) border-box;
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.5),
    0 12px 20px rgba(0, 0, 0, 0.5),
    0 30px 48px rgba(0, 0, 0, 0.45),
    0 0 42px var(--c2),
    0 0 14px var(--c1),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 0 rgba(0, 0, 0, 0.45),
    inset 0 0 24px rgba(255, 255, 255, 0.04);
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.br {
  display: flex;
  align-items: center;
  gap: 10px;
}
.br img {
  border-radius: 50%;
  box-shadow:
    0 6px 10px rgba(0, 0, 0, 0.7),
    0 0 16px rgba(255, 200, 60, 0.6);
}
h1 {
  font-size: 25px;
  font-weight: bold;
  margin: 0;
  background: linear-gradient(180deg, #fff, var(--a) 60%, var(--d));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.7));
}
label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: var(--a);
  margin-bottom: 5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
input,
select,
textarea,
.ds {
  width: 100%;
  padding: 11px;
  border: 1px solid rgba(var(--e), 0.34);
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.8),
    rgba(10, 8, 22, 0.62)
  );
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  box-shadow:
    inset 0 5px 10px rgba(0, 0, 0, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.22);
}
option {
  background: #14102a;
  color: #fff;
}
textarea {
  padding: 10px;
}
input.g {
  border-color: #18d98b;
  box-shadow:
    inset 0 4px 9px rgba(0, 0, 0, 0.8),
    0 0 14px rgba(24, 217, 139, 0.45);
}
input.r {
  border-color: #ff3b53;
  box-shadow:
    inset 0 4px 9px rgba(0, 0, 0, 0.8),
    0 0 14px rgba(255, 59, 83, 0.45);
}
.row {
  display: flex;
  gap: 10px;
}
.row > div {
  flex: 1;
}
.sp {
  margin-top: 10px;
}
.dtw {
  position: relative;
}
.dtw input {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
}
.ds {
  text-align: center;
  line-height: 20px;
  min-height: 44px;
  direction: ltr;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
}
.ch {
  flex: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 14px;
  color: #f3e3b0;
  border: 1px solid rgba(var(--e), 0.45);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.05)
  );
  box-shadow:
    0 5px 0 rgba(0, 0, 0, 0.45),
    0 9px 12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}
.ch.on {
  color: #fff;
  border-color: transparent;
  background: var(--b2);
  box-shadow:
    0 5px 0 var(--s2),
    0 9px 12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -2px 4px rgba(0, 0, 0, 0.35);
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.fl {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}
.fl .ch {
  padding: 5px 12px;
  font-size: 13px;
}
.t3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  text-align: center;
}
.t {
  border-radius: 14px;
  padding: 10px 4px;
  border: 1px solid rgba(var(--e), 0.38);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.22),
      rgba(255, 255, 255, 0) 42%
    ),
    linear-gradient(180deg, rgba(42, 36, 74, 0.92), rgba(8, 6, 20, 0.96));
  box-shadow:
    0 2px 2px rgba(0, 0, 0, 0.5),
    0 10px 16px rgba(0, 0, 0, 0.55),
    0 20px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -4px 8px rgba(0, 0, 0, 0.55);
}
.t small {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: var(--a);
  margin-bottom: 2px;
}
.t b {
  font-size: 17px;
  direction: ltr;
  display: block;
}
.p {
  color: #2dffa6;
  text-shadow: 0 0 14px rgba(45, 255, 166, 0.75);
}
.n {
  color: #ff5468;
  text-shadow: 0 0 14px rgba(255, 84, 104, 0.75);
}
.w {
  color: #fff;
}
.bt {
  width: 100%;
  margin-top: 12px;
  padding: 13px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-weight: bold;
  font-size: 16px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  background: var(--b4);
  box-shadow:
    0 6px 0 var(--s4),
    0 11px 14px rgba(0, 0, 0, 0.55),
    0 20px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -3px 6px rgba(0, 0, 0, 0.35);
}
.bt:active {
  transform: translateY(4px);
  box-shadow:
    0 2px 0 #8a4a00,
    0 6px 10px rgba(0, 0, 0, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.65);
}
.bt.dg {
  background: linear-gradient(180deg, #ff8a96, #ff3b53);
  color: #fff;
  box-shadow:
    0 6px 0 #7d1020,
    0 14px 20px rgba(0, 0, 0, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
}
.bt.gy {
  background: linear-gradient(180deg, #8d86a8, #524b6e);
  color: #fff;
  box-shadow:
    0 6px 0 #2b2640,
    0 14px 20px rgba(0, 0, 0, 0.6);
}
.it {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(var(--e), 0.18);
}
.it:last-child {
  border: 0;
}
.it .a {
  font-weight: bold;
  direction: ltr;
  text-align: right;
}
.it small {
  display: block;
  font-size: 12px;
  color: #b7abd6;
}
.it .r {
  font-size: 12px;
  direction: ltr;
}
.pn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--a);
  font-size: 16px;
  border: 1px solid rgba(var(--e), 0.4);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18),
    rgba(0, 0, 0, 0.3)
  );
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
}
.empty {
  text-align: center;
  color: #b7abd6;
  padding: 10px;
}
.foot {
  text-align: center;
}
.lk {
  background: none;
  border: 0;
  color: #ff8a96;
  font-family: inherit;
  font-size: 13px;
  text-decoration: underline;
  margin: 6px 10px;
}
#msg {
  color: #b7abd6;
  font-size: 13px;
  margin-top: 8px;
}
.b3 {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-weight: bold;
  font-size: 15px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  width: auto;
}
.b3:active {
  transform: translateY(4px);
}
.gold {
  background: var(--b1);
  box-shadow:
    0 6px 0 var(--s1),
    0 11px 14px rgba(0, 0, 0, 0.55),
    0 20px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -3px 6px rgba(0, 0, 0, 0.35);
}
.grn {
  background: var(--b3);
  box-shadow:
    0 6px 0 var(--s3),
    0 11px 14px rgba(0, 0, 0, 0.55),
    0 20px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -3px 6px rgba(0, 0, 0, 0.35);
}
.vio {
  background: var(--b2);
  box-shadow:
    0 6px 0 var(--s2),
    0 11px 14px rgba(0, 0, 0, 0.55),
    0 20px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -3px 6px rgba(0, 0, 0, 0.35);
}
.bt.gn {
  background: var(--b3);
  box-shadow:
    0 6px 0 var(--s3),
    0 11px 14px rgba(0, 0, 0, 0.55),
    0 20px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -3px 6px rgba(0, 0, 0, 0.35);
}
select.b3 {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 32px;
}
.sw {
  position: relative;
}
.sw::after {
  content: "▾";
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  pointer-events: none;
}

.mn {
  padding: 10px;
}
.rw {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 12px;
  margin-bottom: 6px;
  border: 1px solid rgba(var(--e), 0.28);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(0, 0, 0, 0.3)
  );
  box-shadow:
    0 6px 10px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.rw.sel {
  border-color: #ffd24a;
  box-shadow:
    0 0 14px rgba(255, 210, 74, 0.6),
    0 6px 10px rgba(0, 0, 0, 0.55);
}
.rw b {
  flex: 1;
  font-size: 16px;
  cursor: pointer;
}
.am {
  font-size: 14px;
  font-weight: bold;
  direction: ltr;
}
.hd {
  color: var(--a);
  font-size: 22px;
  padding: 0 6px;
  touch-action: none;
  cursor: grab;
}
.ar {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ar span {
  width: 28px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--a);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(var(--e), 0.35);
  cursor: pointer;
}
.tot {
  margin-top: 6px;
  font-weight: bold;
  font-size: 14px;
  color: var(--a);
  text-align: center;
}
.hint {
  text-align: center;
  font-size: 12px;
  color: #b7abd6;
  margin-top: 6px;
}
input[type="search"] {
  -webkit-appearance: none;
}
.toast {
  z-index: 95;
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 16px;
  right: 16px;
  max-width: 448px;
  margin: auto;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: #1d1540;
  border: 1px solid #ffd24a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
  font-weight: bold;
}
.toast button {
  border: 0;
  border-radius: 10px;
  padding: 8px 16px;
  font-family: inherit;
  font-weight: bold;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(180deg, #a98bff, #4a22c4);
}

:root {
  --a: #ffeaa8;
  --d: #c9921a;
  --e: 255, 205, 90;
  --c1: rgba(255, 190, 40, 0.82);
  --c2: rgba(150, 60, 255, 0.9);
  --c3: rgba(30, 110, 255, 0.82);
  --c4: rgba(255, 110, 20, 0.8);
  --base: #05030c;
  --bd: linear-gradient(135deg, #fff0b0, #d9a21c 45%, #ffe08a 70%, #8a5a00);
  --b1: linear-gradient(180deg, #ffd34d, #e69a0c 55%, #a86200);
  --s1: #5c3400;
  --b2: linear-gradient(180deg, #b69bff, #7a4cf5 55%, #4a22c8);
  --s2: #261078;
  --b3: linear-gradient(180deg, #3be8a8, #10b377 55%, #067a52);
  --s3: #04472f;
  --b4: linear-gradient(180deg, #ffb347, #ff7a18 55%, #e0361c);
  --s4: #8a2410;
}
body {
  --bgg:
    radial-gradient(120% 52% at 100% 0%, var(--c1), transparent 70%),
    radial-gradient(100% 46% at 0% 24%, var(--c2), transparent 72%),
    radial-gradient(110% 46% at 100% 62%, var(--c3), transparent 72%),
    radial-gradient(100% 46% at 0% 100%, var(--c4), transparent 72%);
}
body.th1 {
  --a: #c8f6ff;
  --d: #2b86a8;
  --e: 110, 225, 255;
  --c1: rgba(0, 225, 255, 0.8);
  --c2: rgba(25, 80, 255, 0.92);
  --c3: rgba(0, 210, 190, 0.78);
  --c4: rgba(120, 150, 255, 0.72);
  --base: #020712;
  --bd: linear-gradient(135deg, #eafcff, #4fc0e0 45%, #c4f0ff 70%, #2a7a99);
  --b1: linear-gradient(180deg, #6aeaff, #10b0e0 55%, #06789f);
  --s1: #033d52;
  --b2: linear-gradient(180deg, #7aa4ff, #2f5cf0 55%, #1b37b8);
  --s2: #0c1c68;
  --b3: linear-gradient(180deg, #52f0d2, #0dbb9c 55%, #078171);
  --s3: #04483f;
  --b4: linear-gradient(180deg, #8fcfff, #2f86f5 55%, #1a4fc8);
  --s4: #0c2d80;
}
body.th2 {
  --a: #fff0b8;
  --d: #8a6a14;
  --e: 235, 195, 95;
  --c1: rgba(255, 195, 60, 0.76);
  --c2: rgba(0, 185, 100, 0.88);
  --c3: rgba(15, 140, 90, 0.82);
  --c4: rgba(225, 120, 50, 0.74);
  --base: #02100a;
  --bd: linear-gradient(135deg, #fff0b0, #d4a42c 45%, #f6d982 70%, #7f5a12);
  --b1: linear-gradient(180deg, #4cf0a8, #14b36c 55%, #08794a);
  --s1: #04482c;
  --b2: linear-gradient(180deg, #ffd45c, #e0a01c 55%, #a8700a);
  --s2: #5a3a02;
  --b3: linear-gradient(180deg, #7af58c, #2fb84a 55%, #1a7a2e);
  --s3: #0b4a18;
  --b4: linear-gradient(180deg, #ffb066, #e8741e 55%, #b0440c);
  --s4: #5e2606;
}
body.th3 {
  --a: #f1ffd2;
  --d: #6b8f2a;
  --e: 160, 215, 110;
  --c1: rgba(80, 190, 240, 0.78);
  --c2: rgba(110, 185, 50, 0.9);
  --c3: rgba(55, 150, 95, 0.82);
  --c4: rgba(200, 125, 50, 0.8);
  --base: #070e08;
  --bd: linear-gradient(135deg, #f6ffd8, #9bcf55 45%, #dcf4a8 70%, #4a7a1a);
  --b1: linear-gradient(180deg, #7ad8ff, #2aa0e6 55%, #1670b4);
  --s1: #0a3f68;
  --b2: linear-gradient(180deg, #b0e860, #68b52a 55%, #3f8216);
  --s2: #234a08;
  --b3: linear-gradient(180deg, #62e8a8, #20b070 55%, #0e7a4c);
  --s3: #06482c;
  --b4: linear-gradient(180deg, #ffd966, #f2a01e 55%, #c26e0a);
  --s4: #6a3a04;
}
body.th4 {
  --a: #ffdcec;
  --d: #c2185b;
  --e: 255, 150, 195;
  --c1: rgba(255, 50, 150, 0.8);
  --c2: rgba(140, 55, 225, 0.9);
  --c3: rgba(255, 150, 115, 0.66);
  --c4: rgba(225, 30, 75, 0.8);
  --base: #0d030a;
  --bd: linear-gradient(135deg, #ffe8d8, #e8967e 45%, #ffd4c4 70%, #a05040);
  --b1: linear-gradient(180deg, #ffc7a6, #e8845e 55%, #b5502e);
  --s1: #5a2410;
  --b2: linear-gradient(180deg, #cd95ff, #9040f2 55%, #5e1fc8);
  --s2: #2c0e7a;
  --b3: linear-gradient(180deg, #ff82c4, #e22d8c 55%, #a8125f);
  --s3: #5a0a34;
  --b4: linear-gradient(180deg, #ff8f80, #ff3b58 55%, #c8102e);
  --s4: #6a0618;
}
.ov {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: auto;
  background: var(--bgg), var(--base);
  padding: calc(16px + env(safe-area-inset-top)) 16px 24px;
}
.wrap {
  max-width: 480px;
  margin: 0 auto;
}
.sr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
}
.sr label {
  margin: 0;
}
.tgl {
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: #2c2f45;
  position: relative;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  flex: none;
}
.tgl::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #aab;
}
.tgl.on {
  background: var(--b3);
}
.tgl.on::after {
  inset-inline-start: 23px;
  background: #fff;
}
.rw2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 11px;
  margin-top: 6px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(0, 0, 0, 0.3)
  );
  border: 1px solid rgba(var(--e), 0.3);
  font-weight: bold;
}
.rw2 small {
  display: block;
  font-weight: 400;
  color: #b7abd6;
  font-size: 12px;
}
.ring {
  width: 130px;
  height: 130px;
  margin: 6px auto;
  border-radius: 50%;
  background: conic-gradient(
    var(--a) calc(var(--p) * 1%),
    rgba(255, 255, 255, 0.1) 0
  );
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.7),
    0 0 26px rgba(var(--e), 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ri {
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a2550, #0a0818);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  direction: ltr;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.8);
}
.bar {
  height: 8px;
  border-radius: 6px;
  background: var(--b2);
  margin-top: 4px;
}
.cd.rd {
  background:
    linear-gradient(160deg, rgba(90, 10, 20, 0.96), rgba(40, 4, 10, 0.98))
      padding-box,
    linear-gradient(135deg, #ff8a96, #c0122c) border-box;
  box-shadow:
    0 0 30px rgba(255, 40, 70, 0.6),
    0 20px 32px rgba(0, 0, 0, 0.7);
}
.pt {
  font-size: 17px;
  font-weight: bold;
  color: var(--a);
  margin-bottom: 10px;
  line-height: 1.5;
}
#pe,
#le {
  color: #ff5468;
  font-size: 13px;
  min-height: 18px;
  margin-top: 6px;
}
#lk {
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
summary {
  font-weight: bold;
  font-size: 17px;
  color: var(--a);
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: " ▾";
}
details > *:not(summary) {
  margin-top: 8px;
}
.ops {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.ops .ch {
  flex: 1;
  font-size: 18px;
  padding: 6px;
}
.tps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.tps .ch {
  padding: 6px 12px;
  font-size: 13px;
}
.al {
  margin-top: 10px;
  padding: 9px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(180deg, #ff6a3d, #c0122c);
  box-shadow:
    0 4px 0 #6a0618,
    0 0 18px rgba(255, 60, 60, 0.6);
}
.t.warn {
  border-color: #ff5468;
  box-shadow:
    0 0 20px rgba(255, 84, 104, 0.8),
    0 8px 14px rgba(0, 0, 0, 0.6);
}
.gbar {
  height: 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  margin-top: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.7);
}
.gbar i {
  display: block;
  height: 100%;
  background: var(--b3);
}
.gtx {
  font-size: 12px;
  color: var(--a);
  margin-top: 4px;
  text-align: center;
  font-weight: bold;
}
.mc {
  border: 1px dashed rgba(var(--e), 0.5);
  border-radius: 12px;
  padding: 10px;
  margin: 10px 0;
  background: rgba(0, 0, 0, 0.35);
}
.mr {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
}
.mk {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--b1);
  color: #fff;
  font: bold 12px Arial;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 2px 0 var(--s1),
    0 0 10px rgba(var(--e), 0.7);
  font-style: normal;
}
.mb {
  flex: 1;
  height: 18px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}
.mb.g {
  background: linear-gradient(90deg, #18d98b, #0a8a58);
}
.mb.r {
  background: linear-gradient(90deg, #ff5468, #b01030);
}
.mb.y {
  background: var(--b1);
}
.mb.o {
  background: var(--b4);
}
.mb.v {
  background: var(--b2);
}
.mb.s {
  flex: 0.35;
}
ol.st {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
ol.st li {
  counter-increment: s;
  margin: 7px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.55;
}
ol.st li::before {
  content: counter(s);
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--b1);
  color: #fff;
  font: bold 12px Arial;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 0 var(--s1);
}
body.flat * {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}
.row > div {
  min-width: 0;
}
.cps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cps i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
}
.cps i.on {
  border-color: #fff;
  box-shadow:
    0 0 12px #fff,
    0 4px 0 rgba(0, 0, 0, 0.5);
}
#an {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#rm {
  font-size: 26px;
}
.b3,
.bt,
.ch {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.b3::before,
.bt::before,
.ch::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 2px;
  right: 2px;
  top: 1px;
  height: 52%;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.06)
  );
  pointer-events: none;
}
body.flat .b3::before,
body.flat .bt::before,
body.flat .ch::before {
  display: none;
}
.bt:disabled {
  opacity: 0.45;
}
.zseg {
  display: flex;
  gap: 8px;
}
.zseg .ch {
  flex: 1;
  padding: 12px 6px;
  font-size: 15px;
}
.zrw {
  border: 1px solid rgba(var(--e), 0.28);
  border-radius: 14px;
  padding: 10px;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.22);
}
.zr1 {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.zcc {
  flex: 1;
  min-width: 0;
}
.zr2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}
.zr2 > div {
  min-width: 0;
}
.zr2 label {
  margin: 0 0 3px;
  font-size: 12px;
}
.pn.zx {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 20px;
  color: #ff8a96;
}
.znum {
  direction: ltr;
}
html[dir="rtl"] .znum {
  text-align: right;
}
.zchk {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 14px;
  color: #fff;
}
.zchk input {
  width: 22px;
  height: 22px;
  padding: 0;
  flex: none;
  box-shadow: none;
}
.zln {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(var(--e), 0.18);
  padding: 6px 0;
  font-size: 14px;
}
.zln span:last-child {
  direction: ltr;
  text-align: end;
}
.zres {
  font-size: 15px;
  line-height: 1.9;
}
.zbig {
  font-size: 26px;
  font-weight: bold;
  margin: 6px 0;
  direction: ltr;
  text-align: center;
}
.zok {
  color: #18d98b;
}
.zno {
  color: #ff5468;
}
.zmut {
  color: #b7abd6;
}
.zst {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 14px;
}
.zst.zok {
  background: rgba(24, 217, 139, 0.15);
  border: 1px solid #18d98b;
}
.zst.zno {
  background: rgba(255, 84, 104, 0.15);
  border: 1px solid #ff5468;
}
.znote {
  font-size: 12px;
  color: #b7abd6;
  line-height: 1.8;
  margin-top: 8px;
}
.zwarn {
  color: #ffb020;
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.7;
}
.zban {
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
  text-align: center;
  font-weight: bold;
  border: 1px solid #ffb020;
  background: rgba(255, 176, 32, 0.12);
  color: #ffd27a;
}
.zban.g {
  border-color: #18d98b;
  background: rgba(24, 217, 139, 0.12);
  color: #8af0c4;
}
.zhi {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(var(--e), 0.18);
  padding: 8px 0;
  font-size: 13px;
}
.zhi .l {
  flex: 1;
}
.zhi .l div:last-child {
  direction: ltr;
  text-align: start;
}
.zsum {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(var(--e), 0.5);
  background: linear-gradient(
    160deg,
    rgba(30, 22, 62, 0.97),
    rgba(8, 6, 20, 0.98)
  );
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 8px;
  font-size: 14px;
  cursor: pointer;
}
.zsum b {
  direction: ltr;
}
#zs6 {
  scroll-margin-top: 84px;
}
.zkd {
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 5px;
  background: #ff3b53;
  color: #fff;
  font: bold 12px Arial;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(255, 59, 83, 0.9);
  z-index: 2;
}
.zkd.w {
  background: #ffb020;
  color: #2a1a00;
  box-shadow: 0 0 8px rgba(255, 176, 32, 0.9);
}
/* ===== V26 ===== */
.hb1 {
  margin-bottom: 14px;
}
.hb1 #ab {
  width: 100%;
  min-width: 0;
}
.hbw {
  position: relative;
  margin-bottom: 18px;
}
.hb2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  direction: ltr;
}
.rb {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: 92px;
  border-radius: 50%;
  color: #fff;
  font-family: inherit;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px 0 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  direction: ltr;
}
html[dir="rtl"] .rb {
  direction: rtl;
}
.rb::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 14%;
  right: 14%;
  top: 5%;
  height: 40%;
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.03)
  );
}
.rb svg {
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.65));
}
.rbl {
  font-size: 14px;
  line-height: 1.1;
  margin-top: -2px;
  white-space: nowrap;
}
.rb.blu {
  --sd: #1a0645;
  background: radial-gradient(
    ellipse at 50% 40%,
    #b57bff 0%,
    #7a35d6 40%,
    #4a1a98 75%,
    #240a5a 100%
  );
}
.rb.grx {
  --sd: #01150a;
  background: radial-gradient(
    ellipse at 50% 42%,
    #0f7a3c 0%,
    #0a5a2b 40%,
    #032a12 78%,
    #01150a 100%
  );
}
.bdg {
  --sd: #4a1a02;
  position: relative;
  width: 100%;
  height: 66px;
  border-radius: 20px;
  background: radial-gradient(
    ellipse at 50% 40%,
    #ffb347 0%,
    #f07a12 38%,
    #b8470a 72%,
    #6b2403 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #fff;
  direction: rtl;
}
.bdg .row1 {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bdg .bi {
  font-size: 19px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}
.bdg .bn {
  font-size: 26px;
  font-weight: bold;
  line-height: 1;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.65);
}
.bdg .bl {
  font-size: 12px;
  font-weight: bold;
  line-height: 1.1;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}
.rb .zkd {
  top: 8px;
  inset-inline-start: auto;
  inset-inline-end: 16px;
}
/* menu */
.tmn {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  inset-inline: 0;
  background: #1a1530;
  border-radius: 18px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 2px solid #a67c14;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.8),
    0 0 0 3px rgba(0, 0, 0, 0.35);
}
.tmi {
  --sd: #2b2640;
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: start;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #4a3f78, #241c45) !important;
  font-size: 15px !important;
  justify-content: flex-start !important;
  position: relative;
}
.tmi .ti {
  font-size: 26px;
  flex: none;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}
.tmi .tt1 {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.tmi .tt2 {
  font-size: 12px;
  font-weight: normal;
  color: #cfc3ee;
  margin-top: 2px;
}
.zkd2 {
  position: absolute;
  top: 8px;
  inset-inline-end: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff3b53;
  box-shadow: 0 0 8px rgba(255, 59, 83, 0.9);
}
.zkd2.w {
  background: #ffb020;
  box-shadow: 0 0 8px rgba(255, 176, 32, 0.9);
}
.tstep {
  display: flex;
  gap: 10px;
  align-items: center;
}
.tstep input {
  text-align: center;
  font-size: 20px;
  flex: 1;
}
.tstep .pn.zx {
  width: 52px;
  height: 52px;
  font-size: 26px;
  color: var(--a);
}
.tsr {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 4px;
  font-size: 11.5px;
  border-bottom: 1px solid rgba(var(--e), 0.18);
  padding: 6px 0;
  direction: ltr;
  text-align: center;
}
.tsr.h {
  font-weight: bold;
  color: #b7abd6;
}
.tjr {
  display: grid;
  grid-template-columns: 34px 1.1fr 1.2fr 34px;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  border-bottom: 1px solid rgba(var(--e), 0.18);
  padding: 7px 0;
}
.tjr.me {
  background: rgba(24, 217, 139, 0.12);
  border-radius: 8px;
}
.tjr input[type="checkbox"] {
  width: 22px;
  height: 22px;
  padding: 0;
  box-shadow: none;
  margin: 0;
}
.ch.on {
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.6) !important;
  background: linear-gradient(180deg, #e2b43c, #a67c14);
  color: #2a1a00;
}
/* ===== gold frame + strong 3D on every button ===== */
button,
select.b3,
select.ch,
.ar span,
.bdg,
.tgl {
  border-width: 2px !important;
  border-style: solid !important;
  border-color: #d4a62f #7a5506 #4d3503 #a67c14 !important;
}
.rb,
.bdg {
  border-width: 3px !important;
}
.b3,
.bt {
  --sd: var(--s4);
  box-shadow:
    0 9px 0 var(--sd),
    0 15px 18px rgba(0, 0, 0, 0.6),
    0 24px 34px rgba(0, 0, 0, 0.4),
    inset 0 3px 0 rgba(255, 255, 255, 0.8),
    inset 0 -9px 14px rgba(0, 0, 0, 0.5) !important;
  transition: transform 0.08s;
}
.gold {
  --sd: var(--s1);
}
.vio {
  --sd: var(--s2);
}
.grn,
.gn {
  --sd: var(--s3);
}
.dg {
  --sd: #7d1020;
}
.gy {
  --sd: #2b2640;
}
.b3:active,
.bt:active {
  transform: translateY(7px);
  box-shadow:
    0 2px 0 var(--sd),
    0 4px 8px rgba(0, 0, 0, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -6px 10px rgba(0, 0, 0, 0.5) !important;
}
.ch {
  --sd: rgba(0, 0, 0, 0.65);
  box-shadow:
    0 6px 0 var(--sd),
    0 11px 14px rgba(0, 0, 0, 0.55),
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -5px 8px rgba(0, 0, 0, 0.4) !important;
}
.ch:active,
.pn:active,
.tmi:active {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 var(--sd),
    0 2px 5px rgba(0, 0, 0, 0.6) !important;
}
.pn {
  --sd: rgba(0, 0, 0, 0.7);
  box-shadow:
    0 4px 0 var(--sd),
    0 8px 10px rgba(0, 0, 0, 0.55),
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -4px 6px rgba(0, 0, 0, 0.4) !important;
}
.ar span {
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.65),
    0 6px 8px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}
.tmi {
  box-shadow:
    0 5px 0 var(--sd),
    0 9px 12px rgba(0, 0, 0, 0.55),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -5px 8px rgba(0, 0, 0, 0.4) !important;
}
.rb {
  box-shadow:
    0 10px 0 var(--sd),
    0 17px 20px rgba(0, 0, 0, 0.65),
    0 26px 34px rgba(0, 0, 0, 0.4),
    inset 0 4px 0 rgba(255, 255, 255, 0.4),
    inset 0 -14px 22px rgba(0, 0, 0, 0.55) !important;
  transition: transform 0.08s;
}
.rb:active {
  transform: translateY(8px);
  box-shadow:
    0 2px 0 var(--sd),
    0 4px 8px rgba(0, 0, 0, 0.6),
    inset 0 -8px 14px rgba(0, 0, 0, 0.5) !important;
}
.bdg {
  box-shadow:
    0 7px 0 var(--sd),
    0 12px 16px rgba(0, 0, 0, 0.6),
    inset 0 3px 0 rgba(255, 255, 255, 0.45),
    inset 0 -10px 16px rgba(0, 0, 0, 0.5) !important;
}
.tgl {
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.6),
    inset 0 3px 6px rgba(0, 0, 0, 0.7) !important;
}
.dkrow {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dkdn {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.55),
    0 12px 16px rgba(0, 0, 0, 0.5);
}
.dkdn::after {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: #1a1236;
  box-shadow: inset 0 4px 10px #000;
}
.dkdn span {
  position: relative;
  z-index: 1;
  text-align: center;
  direction: ltr;
  font-weight: bold;
  font-size: 11px;
  line-height: 1.35;
  padding: 0 4px;
}
.dkdn b {
  display: block;
  font-size: 19px;
}
.dkdn i {
  font-style: normal;
  color: #cfc3ee;
  font-size: 10.5px;
}
.dkl {
  flex: 1;
  min-width: 0;
}
.dkl .zln {
  font-size: 12.5px;
  padding: 4px 0;
}
.dkbar {
  height: 10px;
  border-radius: 6px;
  background: #2a2150;
  margin-top: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}
.dkbar u {
  display: block;
  height: 100%;
  width: 0;
  transition: width 0.3s;
}

button,
input,
select,
textarea,
.ch,
.b3,
.bt,
.rb {
  touch-action: manipulation;
}
:focus-visible {
  outline: 2px solid #ffd45a;
  outline-offset: 2px;
}

/* ===== V7: top rows (names 2/3 + counter 1/3), smaller side buttons, notes + calculator ===== */
.hb1 {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.hb1 #ab {
  flex: 2 1 0;
  min-width: 0;
  width: auto;
}
#an {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hb1 .bdg {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: auto;
  min-height: 100%;
  border-radius: 12px;
  flex-direction: row;
  gap: 6px;
  padding: 6px 6px;
  isolation: isolate;
  overflow: hidden;
  box-shadow:
    0 9px 0 var(--sd),
    0 15px 18px rgba(0, 0, 0, 0.6),
    0 24px 34px rgba(0, 0, 0, 0.4),
    inset 0 3px 0 rgba(255, 255, 255, 0.8),
    inset 0 -9px 14px rgba(0, 0, 0, 0.5) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.hb1 .bdg::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 2px;
  right: 2px;
  top: 1px;
  height: 52%;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.06)
  );
  pointer-events: none;
}
body.flat .hb1 .bdg::before {
  display: none;
}
.hb1 .bdg .bi {
  font-size: 17px;
}
.hb1 .bdg .bn {
  font-size: 20px !important;
}
.hb1 .bdg .bl {
  font-size: 12px !important;
}
.hb2 {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr) minmax(0, 1fr) minmax(
      0,
      0.86fr
    );
  gap: 8px;
}
.hb2 .rb {
  height: 74px;
  padding: 0;
}
.hb2 .rb svg {
  width: 34px;
  height: auto;
}
.hb2 .rbl {
  font-size: 12px;
}
.hb2 .rb .zkd {
  top: 5px;
  inset-inline-end: 12px;
}
.mq {
  --sd: #061a4a;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: 74px;
  border-radius: 20px;
  color: #fff;
  font-family: inherit;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 2px 0 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  direction: ltr;
  border-width: 3px !important;
  transition: transform 0.08s;
  box-shadow:
    0 8px 0 var(--sd),
    0 14px 18px rgba(0, 0, 0, 0.6),
    0 22px 30px rgba(0, 0, 0, 0.38),
    inset 0 3px 0 rgba(255, 255, 255, 0.5),
    inset 0 -12px 18px rgba(0, 0, 0, 0.5) !important;
}
html[dir="rtl"] .mq {
  direction: rtl;
}
.mq::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 10%;
  right: 10%;
  top: 4%;
  height: 42%;
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.03)
  );
}
.mq:active {
  transform: translateY(7px);
  box-shadow:
    0 1px 0 var(--sd),
    0 3px 8px rgba(0, 0, 0, 0.6),
    inset 0 -8px 14px rgba(0, 0, 0, 0.5) !important;
}
.mq svg {
  width: 32px;
  height: auto;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.65));
}
.mq .rbl {
  margin-top: 0;
}
.mq.nbk0 {
  background: radial-gradient(
    ellipse at 50% 40%,
    #8fd2ff 0%,
    #2f7bea 40%,
    #1a4fb5 75%,
    #0b2a73 100%
  );
}
.mq.cbk {
  --sd: #0a0c16;
  background: radial-gradient(
    ellipse at 50% 40%,
    #a6adc4 0%,
    #575d78 40%,
    #33384f 75%,
    #151827 100%
  );
}
.mq .zkd {
  top: 4px;
  inset-inline-start: auto;
  inset-inline-end: 8px;
}
body.flat .mq::before {
  display: none;
}

/* ===== New-account button (thin plus) ===== */
.hb2 #newacc svg.plus {
  width: 36px;
  height: 36px;
}
.hb2 #newacc .rbl {
  white-space: normal;
  text-align: center;
  line-height: 1.05;
  max-width: 78%;
  font-size: 11px;
}

/* ===== Calculator (نسخة طبق الأصل من حاسبة iPhone + شريط النسخ والإدراج) ===== */
.cq {
  position: fixed;
  z-index: 70;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100% - 20px));
  padding: 16px 12px 14px;
  border-radius: 34px;
  direction: ltr;
  background: #000 !important;
  border: 1px solid #2c2c2e !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.85) !important;
}
.cqx {
  position: absolute;
  top: -14px;
  right: -4px;
  z-index: 3;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50% !important;
  font: 600 16px/1 -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  background: #3a3a3c !important;
  border: 2px solid #000 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6) !important;
}
.cqd {
  height: 92px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 8px 6px;
  margin-bottom: 4px;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  background: none;
}
.cqd span {
  font:
    300 64px/1.1 -apple-system,
    "SF Pro Display",
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: #fff;
  white-space: nowrap;
  letter-spacing: -1px;
}

/* شريط النسخ / إيداع / سحب (ميزات التطبيق) بنفس ألوان الحاسبة */
.cqa {
  display: flex;
  gap: 8px;
  padding: 0 0 12px;
}
.cqa button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 6px;
  font: 600 14px/1 -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  background: #333 !important;
  border: 0 !important;
  border-radius: 20px !important;
  box-shadow: none !important;
  text-shadow: none;
}
.cqa button:active {
  background: #737373 !important;
}
.cqar {
  flex: none;
  width: 18px;
  height: 18px;
}
#cqdp .cqar {
  color: #30d158;
}
#cqwd .cqar {
  color: #ff453a;
}
#cqcp {
  font-size: 13px;
}

/* لوحة الأزرار */
.cqk {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cqk button {
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 0;
  font: 400 32px/1 -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  background: #333 !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  text-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s;
}
.cqk button:active {
  background: #737373 !important;
  transform: none;
}
.cqk .f {
  color: #000;
  font-size: 30px;
  background: #a5a5a5 !important;
}
.cqk .f:active {
  background: #d9d9d9 !important;
}
.cqk .o {
  font-size: 40px;
  background: #ff9f0a !important;
}
.cqk .o:active {
  background: #fcc78b !important;
}
/* العملية المحددة بانتظار الرقم التالي: أبيض بحرف برتقالي */
.cqk .o.on {
  background: #fff !important;
  color: #ff9f0a;
}
/* زر الصفر العريض */
.cqk .z {
  grid-column: span 2;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 999px !important;
  padding-inline-start: 30px;
}
@media (max-height: 640px) {
  .cq {
    width: min(320px, calc(100% - 20px));
  }
  .cqk {
    gap: 10px;
  }
  .cqd {
    height: 76px;
  }
}

/* ===== Notes (built-in tool, app colours) ===== */
.nbk {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bgg), var(--base);
  padding: calc(10px + env(safe-area-inset-top)) 12px
    calc(10px + env(safe-area-inset-bottom));
}
.nbk.on {
  display: block;
}
.nbw {
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: calc(
    100vh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)
  );
  min-height: calc(
    100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)
  );
}

/* --- header grids --- */
.nbh {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px 6px;
  margin-bottom: 12px;
}
.nbh6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  margin: 8px 0 4px;
}
.nbh2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nbtt {
  font-size: 20px;
  font-weight: bold;
  color: var(--a);
}

/* --- icon buttons with a clear, bright caption --- */
.nbb {
  --sd: #0c0720;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  height: 58px;
  margin-bottom: 6px;
  padding: 2px 1px 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 20px;
  line-height: 1;
  color: #fff;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.3),
      rgba(255, 255, 255, 0) 50%
    ),
    linear-gradient(180deg, #5a4d92, #2a2052) !important;
  box-shadow:
    0 7px 0 var(--sd),
    0 12px 14px rgba(0, 0, 0, 0.65),
    inset 0 3px 0 rgba(255, 255, 255, 0.6),
    inset 0 -9px 12px rgba(0, 0, 0, 0.5) !important;
}
.nbb:active {
  transform: translateY(6px);
  box-shadow:
    0 1px 0 var(--sd),
    0 3px 6px rgba(0, 0, 0, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.4) !important;
}
.nbb.on {
  --sd: var(--s1);
  background: var(--b1) !important;
}
.nbb.nbcl {
  --sd: var(--s2);
  background: var(--b2) !important;
  font-weight: bold;
}
.nbb.nbsv {
  --sd: var(--s3);
  background: var(--b3) !important;
}
.nbb.off {
  opacity: 0.5;
}
.nbb.nolbl {
  height: 38px;
}
.nbmini {
  flex: none;
  width: 30px;
  height: 30px !important;
  font-size: 14px;
}
.nbfb {
  display: flex;
  gap: 6px;
}
.nbfb .nbb {
  width: 42px;
  height: 38px;
  font-size: 16px;
}
.nbic {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffe27a;
}
.nbic svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.4;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.85));
}
html[dir="ltr"] .nbic.flip {
  transform: scaleX(-1);
} /* exit arrow: points towards the "back" side of the current language */
.nbtx {
  font-size: 18px;
}
/* caption: larger and fully opaque (was 10.5px and dim) */
.nbtl {
  max-width: 100%;
  padding: 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: bold;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9);
}
.nbh6 .nbtl {
  font-size: 11.5px;
}
.nbh6 .nbb {
  height: 58px;
}
.nbb.on .nbic {
  color: #fff;
}
.k-x,
.k-plus,
.k-save {
  color: #fff;
}
.k-notes,
.k-folder {
  color: #ffd24a;
}
.k-sel {
  color: #7be8ff;
}
.k-undo,
.k-redo,
.k-exit,
.k-font {
  color: #ffe27a;
}
.k-sort {
  color: #d3b3ff;
}
.k-trash {
  color: #ff7a86;
}
.k-gear {
  color: #c7d4ff;
}
.k-color {
  color: #ff9fe3;
}
.k-copy {
  color: #8fe7ff;
}
.k-share {
  color: #86ffb8;
}
.k-date {
  color: #ffb86b;
}
.nbb.on .k-pinr {
  color: inherit;
}
/* trash: green when empty, red when it holds notes */
.nbb.tr0 .nbic {
  color: #35f59a;
}
.nbb.tr1 .nbic {
  color: #ff4258;
}
.nbb.tr0 .nbic svg,
.nbb.tr1 .nbic svg {
  filter: drop-shadow(0 0 5px currentColor)
    drop-shadow(0 2px 1px rgba(0, 0, 0, 0.85));
}

/* --- counters --- */
.nbg {
  position: absolute;
  top: -8px;
  inset-inline-start: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  font: bold 12px/1 Arial;
  font-style: normal;
  color: #fff;
  background: radial-gradient(
    circle at 35% 30%,
    #ff8a96 0%,
    #ff2d46 45%,
    #b0081f 100%
  );
  border: 2px solid #fff;
  box-shadow:
    0 2px 0 #5a0412,
    0 4px 6px rgba(0, 0, 0, 0.6);
}
.ntn {
  position: absolute !important;
  top: 5px !important;
  inset-inline-start: 5px !important;
  inset-inline-end: auto !important;
  z-index: 3;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 26px !important;
  height: 26px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  font: bold 13px/1 Arial !important;
  font-style: normal;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  background: radial-gradient(
    circle at 35% 30%,
    #ff8a96 0%,
    #ff2d46 45%,
    #b0081f 100%
  ) !important;
  border: 2px solid #fff !important;
  box-shadow:
    0 3px 0 #5a0412,
    0 5px 8px rgba(0, 0, 0, 0.6),
    inset 0 2px 2px rgba(255, 255, 255, 0.6) !important;
}
.ntn[hidden] {
  display: none !important;
}
.nbfl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(var(--e), 0.4);
  background: rgba(0, 0, 0, 0.3);
  color: var(--a);
  font-weight: bold;
}

/* --- list + cards --- */
.nbl {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 4px 2px 12px;
}
.nbsr {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.nbc {
  position: relative;
  margin: 0;
  padding: 9px 12px 8px 12px;
  padding-inline-start: 18px;
  border-radius: 14px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  touch-action: pan-y;
  will-change: transform;
  background:
    linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.14),
        rgba(255, 255, 255, 0) 30%
      )
      padding-box,
    linear-gradient(160deg, rgba(30, 22, 62, 0.94), rgba(8, 6, 20, 0.97))
      padding-box,
    var(--bd) border-box;
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.5),
    0 9px 14px rgba(0, 0, 0, 0.45);
}
.nbc.sel {
  box-shadow:
    0 0 0 2px #ffd24a,
    0 0 16px rgba(255, 210, 74, 0.7),
    0 9px 14px rgba(0, 0, 0, 0.45);
}
.nbc.sm::after {
  content: "";
  position: absolute;
  top: 50%;
  margin-top: -16px;
  inset-inline-end: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid var(--a);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.7);
}
.nbc.sel::after {
  content: "✔";
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: #fff;
  background: radial-gradient(circle at 35% 30%, #7dffc0, #18d98b 50%, #0a8a58);
  color: #fff;
  font: 900 20px/1 Arial;
  box-shadow:
    0 0 14px rgba(24, 217, 139, 0.9),
    0 3px 0 #064d30;
}
.nbc.sm .nbt {
  padding-inline-end: 42px;
}
.nbs {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: 7px;
}
.nbt {
  font-size: 17px;
  font-weight: bold;
  color: #fff;
  padding-inline-end: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nbp {
  margin-top: 3px;
  font-size: 14px;
  color: #d6cdf0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nbx {
  margin-top: 4px;
  font-size: 11.5px;
  color: #b7abd6;
  direction: ltr;
  text-align: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[dir="rtl"] .nbx {
  direction: rtl;
}

/* --- swipe reveal (iOS style): coloured pills, icon above label --- */
.nbsr {
  background: #000;
}
.nbsl {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 3px;
  opacity: 0;
  pointer-events: none;
}
.nbsp {
  left: 0;
  justify-content: flex-start;
}
.nbsd {
  right: 0;
  justify-content: flex-end;
}
.nbact {
  min-width: 78px;
  padding: 4px 8px !important;
  border-radius: 22px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  border: 0 !important;
  box-shadow: none !important;
  font-family: inherit;
}
.nbact .nbic svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.4;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.nbal {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}
.nbact.ap {
  background: linear-gradient(180deg, #ffb340, #ff8a00) !important;
  min-width: 96px;
}
.nbact.as {
  background: linear-gradient(180deg, #5aa9ff, #2f7cf6) !important;
}
.nbact.am {
  background: linear-gradient(180deg, #8a8cff, #6366f1) !important;
}
.nbact.ad {
  background: linear-gradient(180deg, #ff6b61, #e5342b) !important;
}

/* --- bottom bar of the list --- */
.nbbot {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 2px;
  background: linear-gradient(180deg, transparent, var(--base) 40%);
}
.nbbot input {
  flex: 1;
  height: 52px;
}
.nbadd {
  flex: none;
  width: 58px;
  height: 58px !important;
  border-radius: 50%;
  font-size: 36px;
  font-weight: bold;
  line-height: 1;
  --sd: var(--s1);
  background: var(--b1) !important;
}
.nbadd .nbic {
  color: #fff;
}
.nbadd .nbic svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.8;
}
.nbsb {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 8px;
}
.nbsb .nbb {
  font-size: 15px;
}

/* --- editor --- */
.nbstw {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 2px 4px 6px;
}
.nbst {
  font-size: 12.5px;
  color: #cfc3ee;
}
.nbtr {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 8px;
}
.nbti {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: bold;
}
.nbbd {
  flex: 1;
  width: 100%;
  min-height: 40vh;
  resize: none;
  line-height: 1.7;
}
/* dock = the button row + the panel that opens directly above it */
.nbdock {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, transparent, var(--base) 14px);
  padding-top: 8px;
}
.nbpop {
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 16px;
  border: 2px solid #a67c14;
  background: rgba(14, 10, 34, 0.97);
  box-shadow:
    0 -6px 18px rgba(0, 0, 0, 0.55),
    0 0 0 3px rgba(0, 0, 0, 0.35);
}
/* text-colour strip: ten equal circles in one row */
.nbcstrip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.nbsw {
  flex: 1 1 0;
  min-width: 0;
  max-width: 34px;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50% !important;
  border: 2px solid #fff !important;
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.35) !important;
}
.nbsw.on {
  outline: 3px solid #ffd24a;
  outline-offset: 2px;
}
/* direct calendar */
.nbcal {
  direction: ltr;
}
html[dir="rtl"] .nbcal {
  direction: rtl;
}
.nbcalh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--a);
  font-size: 16px;
}
.nbcn {
  flex: none;
  width: 38px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  font-size: 24px;
  line-height: 1;
  color: #fff;
  background: linear-gradient(180deg, #5a4d92, #2a2052);
  box-shadow: 0 3px 0 #0c0720 !important;
}
.nbcn:active {
  transform: translateY(3px);
}
.nbcwk,
.nbcgd {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.nbcwk {
  margin-bottom: 4px;
  text-align: center;
  font-size: 11.5px;
  font-weight: bold;
  color: #cfc3ee;
}
.nbcd {
  height: 38px;
  padding: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(180deg, #4a3f78, #241c45);
  box-shadow: 0 3px 0 #0c0720 !important;
}
.nbcd:active {
  transform: translateY(3px);
}
.nbcd.tod {
  background: var(--b1);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.nbpinb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(180deg, #5a4d92, #2a2052);
  box-shadow: 0 4px 0 #0c0720 !important;
}
.nbpinb:active {
  transform: translateY(3px);
}
.nbpinb .nbic svg {
  width: 22px;
  height: 22px;
}
.nbdot {
  position: absolute;
  top: -7px;
  inset-inline-start: -5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    #ff8a96 0%,
    #ff2d46 50%,
    #b0081f 100%
  );
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(255, 45, 70, 0.95);
  animation: nbpulse 1.6s ease-in-out infinite;
}
@keyframes nbpulse {
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 16px rgba(255, 45, 70, 1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nbdot {
    animation: none;
  }
}
/* chosen-date confirmation strip */
.nbdok {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nbdokt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  direction: ltr;
  text-align: start;
}
html[dir="rtl"] .nbdokt {
  text-align: start;
  direction: rtl;
}
.nbdokt small {
  font-size: 11.5px;
  color: #cfc3ee;
}
.nbdokt b {
  font-size: 20px;
  color: #fff;
  direction: ltr;
  unicode-bidi: isolate;
}
.nbdokb {
  flex: none;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
}
.nbdokb.ok {
  background: linear-gradient(180deg, #3be8a8, #10b377 55%, #067a52);
  box-shadow: 0 4px 0 #04472f !important;
}
.nbdokb.chg {
  background: linear-gradient(180deg, #8d86a8, #524b6e);
  box-shadow: 0 4px 0 #2b2640 !important;
}
.nbdokb:active {
  transform: translateY(3px);
}

/* --- small dialogs --- */
.nbm {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 2, 10, 0.82);
}
.nbmb {
  width: 100%;
  max-width: 420px;
  margin: 0;
}
.nbmb input {
  margin-bottom: 6px;
}
.nbmr {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nbmr .bt {
  margin-top: 10px;
}
.nbmsg {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
  color: #fff;
}
.nbmsg-n {
  font-weight: bold;
  color: var(--a);
  overflow-wrap: anywhere;
}
.nbpk {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 34vh;
  margin-bottom: 10px;
  padding-bottom: 8px;
  overflow: auto;
}

/* ===== V12 additions ===== */
.verline {
  margin: 4px 0 18px;
  padding: 0 6px;
  text-align: center;
  font-size: 12.5px;
  font-weight: bold;
  line-height: 1.7;
  color: var(--a);
  opacity: 0.9;
  direction: ltr;
  unicode-bidi: isolate;
}
html[dir="rtl"] .verline {
  direction: rtl;
}

/* guide */
.gp {
  margin: 6px 0 4px;
  line-height: 1.6;
  opacity: 0.9;
}
.gnote {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 200, 60, 0.12);
  border: 1px solid rgba(255, 200, 60, 0.35);
  line-height: 1.55;
  font-size: 0.95em;
}
#gdq {
  width: 100%;
  margin-bottom: 14px;
}
#ct .cd summary {
  line-height: 1.5;
}

.nbact .nbic,
.nbact .nbic svg {
  color: #fff !important;
  stroke: #fff;
}
.nbact .k-pushpin svg path {
  fill: #fff;
}

/* ===== V15: صفحة الواجهة (Home) — فخمة، تتسع للشاشة بلا تمرير، وتتبع ألوان الثيم ===== */
@property --rr { syntax: "<length>"; inherits: false; initial-value: 0px; }
html.hmo, html.hmo body { overflow: hidden; overscroll-behavior: none; }
.hm {
  position: fixed;
  inset: 0;
  z-index: 45;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  background: var(--bgg), var(--base);
  --cy: 120px;
}
/* النقش: طبقة ثابتة خافتة + موجتان تتسعان من الشعار وتضيئان النقش */
.hmpb, .hmwv { position: absolute; inset: 0; pointer-events: none; }
.hmpt {
  position: absolute;
  inset: -80px;
  background: rgb(var(--e));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'><g fill='none' stroke='black' stroke-width='1.5'><path d='M36 2L70 36L36 70L2 36Z'/><path d='M36 14L58 36L36 58L14 36Z'/><circle cx='36' cy='36' r='7.5'/><path d='M0 0L14 14M72 0L58 14M0 72L14 58M72 72L58 58'/></g></svg>") 0 0 / 72px 72px repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'><g fill='none' stroke='black' stroke-width='1.5'><path d='M36 2L70 36L36 70L2 36Z'/><path d='M36 14L58 36L36 58L14 36Z'/><circle cx='36' cy='36' r='7.5'/><path d='M0 0L14 14M72 0L58 14M0 72L14 58M72 72L58 58'/></g></svg>") 0 0 / 72px 72px repeat;
  animation: hmdr 46s linear infinite;
}
@keyframes hmdr { to { -webkit-mask-position: 72px 72px; mask-position: 72px 72px; } }
.hmpb .hmpt { opacity: 0.2; }
.hmwv { display: none; }
.hm.wv .hmwv {
  display: block;
  --rr: 0px;
  -webkit-mask-image: radial-gradient(circle at 50% var(--cy), transparent calc(var(--rr) - 70px), #000 var(--rr), transparent calc(var(--rr) + 90px));
  mask-image: radial-gradient(circle at 50% var(--cy), transparent calc(var(--rr) - 70px), #000 var(--rr), transparent calc(var(--rr) + 90px));
  animation: hmwave 7s cubic-bezier(0.3, 0.2, 0.4, 1) infinite;
}
.hm.wv .hmwv.w2 { animation-delay: -3.5s; }
.hmwv .hmpt { opacity: 0.95; filter: drop-shadow(0 0 4px rgba(var(--e), 0.9)); }
@keyframes hmwave { from { --rr: 0px; } to { --rr: 860px; } }
.hmvg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(95% 62% at 50% 34%, transparent 42%, rgba(0, 0, 0, 0.5));
}
.hmw {
  position: relative;
  z-index: 1;
  max-width: 480px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 22px calc(10px + env(safe-area-inset-bottom, 0px));
}
.hms { flex: 1 1 0; min-height: 4px; max-height: 64px; }
.hms.hs2 { flex-grow: 0.45; max-height: 40px; }
.hmh { text-align: center; flex: 0 0 auto; }
.hmiw { position: relative; width: clamp(84px, 14.5vh, 128px); height: clamp(84px, 14.5vh, 128px); margin: 0 auto clamp(6px, 1.2vh, 14px); animation: hmfl 6s ease-in-out infinite; }
.hmi {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgb(var(--e));
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.35), 0 9px 0 rgba(0, 0, 0, 0.35), 0 20px 28px rgba(0, 0, 0, 0.55), 0 0 44px rgba(var(--e), 0.6);
}
.rp {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  border: 2px solid rgba(var(--e), 0.85);
  box-shadow: 0 0 14px rgba(var(--e), 0.6), inset 0 0 14px rgba(var(--e), 0.4);
  animation: hmrp 4.2s ease-out infinite;
  opacity: 0;
}
.rp.r2 { animation-delay: 1.4s; }
.rp.r3 { animation-delay: 2.8s; }
@keyframes hmrp { 0% { transform: scale(1); opacity: 0.75; } 100% { transform: scale(2.35); opacity: 0; } }
@keyframes hmfl { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.hmt {
  margin: 0;
  font-size: clamp(30px, 9.6vw, 46px);
  font-weight: bold;
  line-height: 1.3;
  background:
    linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.95) 50%, transparent 58%) 160% 0 / 260% 100% no-repeat,
    linear-gradient(180deg, #fff 0%, var(--a) 46%, rgb(var(--e)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.5)) drop-shadow(0 0 16px rgba(var(--e), 0.5));
  animation: hmsh 5.5s ease-in-out infinite;
}
@keyframes hmsh { 0%, 30% { background-position: 160% 0, 0 0; } 70%, 100% { background-position: -60% 0, 0 0; } }
.hmo4 { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 2px auto 0; width: min(300px, 78%); }
.hmo4 i { flex: 1; height: 1.6px; background: linear-gradient(90deg, transparent, rgba(var(--e), 0.95)); }
.hmo4 i:last-child { transform: scaleX(-1); }
.hmo4 b { width: 9px; height: 9px; transform: rotate(45deg); background: rgb(var(--e)); box-shadow: 0 0 10px rgb(var(--e)); }

/* ---- الأزرار الستة ---- */
.hmg { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.2vh, 20px) 16px; padding: 0 2px 8px; }
.hk {
  position: relative;
  height: clamp(78px, 10.8vh, 100px);
  border-radius: 22px;
  border: 2.5px solid transparent;
  padding: 0;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  -webkit-tap-highlight-color: transparent;
  background: var(--bg) padding-box, var(--bd) border-box;
  box-shadow:
    0 7px 0 var(--sh),
    0 10px 0 rgba(0, 0, 0, 0.42),
    0 18px 22px rgba(0, 0, 0, 0.55),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.75),
    inset 0 -9px 14px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  animation: hkin 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
  animation-delay: calc(var(--i, 0) * 70ms + 80ms);
  transition: transform 0.08s, box-shadow 0.08s;
}
.hk::before { content: ""; position: absolute; left: 6px; right: 6px; top: 4px; height: 44%; border-radius: 18px 18px 60% 60% / 18px 18px 30% 30%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)); pointer-events: none; }
.hk::after { content: ""; position: absolute; inset: 3px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.3); pointer-events: none; }
.hkg {
  position: absolute;
  z-index: 2;
  top: -30%;
  bottom: -30%;
  left: -50%;
  width: 28%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
  animation: hksw 6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.55s + 1s);
}
@keyframes hksw { 0% { left: -50%; } 20%, 100% { left: 140%; } }
.hk:active { transform: translateY(7px); box-shadow: 0 1px 0 var(--sh), 0 3px 0 rgba(0, 0, 0, 0.4), 0 6px 10px rgba(0, 0, 0, 0.5), inset 0 1.5px 0 rgba(255, 255, 255, 0.5), inset 0 -9px 14px rgba(0, 0, 0, 0.25); }
@keyframes hkin { from { opacity: 0; transform: translateY(24px) scale(0.9); } to { opacity: 1; transform: none; } }
.hk .ic { position: relative; z-index: 1; width: clamp(40px, 6.2vh, 54px); height: clamp(40px, 6.2vh, 54px); overflow: visible; margin-top: 1px; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.5)); }
.hkn { position: relative; z-index: 1; font-size: clamp(14px, 1.9vh, 16.5px); font-weight: bold; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55), 0 0 10px rgba(0, 0, 0, 0.45); }
.hk1 { --bg: var(--b2); --sh: var(--s2); }
.hk2 { --bg: var(--b3); --sh: var(--s3); }
.hk3 { --bg: linear-gradient(180deg, #62b4ff, #2f72ea 55%, #1a3fb0); --sh: #0c2268; }
.hk4 { --bg: var(--b1); --sh: var(--s1); }
.hk5 { --bg: linear-gradient(180deg, #7280a6, #38405f 55%, #1b2038); --sh: #0a0c18; }
.hk6 { --bg: var(--b4); --sh: var(--s4); }
.hkb { position: absolute; z-index: 3; top: 6px; inset-inline-start: 8px; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: #fff; background: radial-gradient(circle at 35% 25%, #ff8a8a, #e0192b 60%, #8a0715); border: 2px solid #fff; box-shadow: 0 3px 0 #5a0610, 0 5px 8px rgba(0, 0, 0, 0.6); }

/* ---- حركات الرموز ---- */
.ic-acc .cd { animation: hpull 4.5s ease-in-out infinite; }
.ic-acc .cd1 { animation-delay: 0s; } .ic-acc .cd2 { animation-delay: 1.5s; } .ic-acc .cd3 { animation-delay: 3s; }
@keyframes hpull { 0%, 52%, 100% { transform: translateY(0); } 12%, 34% { transform: translateY(-14px); } }
.ic-acc .coin { animation: hcoin 1.5s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes hcoin { 0% { opacity: 0; transform: translateY(8px) scale(0.5); } 25% { opacity: 1; transform: translateY(-2px) scale(1); } 65% { opacity: 1; transform: translateY(-8px) scale(1); } 100% { opacity: 0; transform: translateY(-14px) scale(0.9); } }
.ic-mq .sb { transform-origin: 32px 12.5px; animation: hbeam 3.4s ease-in-out infinite; }
.ic-mq .pl { animation: hpl 3.4s ease-in-out infinite; }
.ic-mq .pr { animation: hpr 3.4s ease-in-out infinite; }
@keyframes hbeam { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@keyframes hpl { 0%, 100% { transform: translateY(3.2px); } 50% { transform: translateY(-3.2px); } }
@keyframes hpr { 0%, 100% { transform: translateY(-3.2px); } 50% { transform: translateY(3.2px); } }
.ic-calc .kp { transform-box: fill-box; transform-origin: center; animation: hkp 3s ease-in-out infinite; }
@keyframes hkp { 0%, 68%, 100% { transform: scale(1); } 78% { transform: scale(0.72); } 88% { transform: scale(1.12); } }
.ic-calc .sd { text-anchor: end; opacity: 0; animation: hsd 3s steps(1) infinite; }
.ic-calc .s2 { animation-delay: -2s; } .ic-calc .s3 { animation-delay: -1s; }
@keyframes hsd { 0% { opacity: 1; } 33.3%, 100% { opacity: 0; } }
.ic-calc .fd { text-anchor: middle; opacity: 0; animation: hfd 3s ease-out infinite; }
.ic-calc .f2 { animation-delay: 1s; } .ic-calc .f3 { animation-delay: 2s; }
@keyframes hfd { 0% { opacity: 0; transform: translateY(0) scale(0.7); } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px) scale(1.15); } }
.ic-nt .ln { stroke-dasharray: 100; stroke-dashoffset: 100; }
.ic-nt .l1 { animation: hl1 7s linear infinite; } .ic-nt .l2 { animation: hl2 7s linear infinite; } .ic-nt .l3 { animation: hl3 7s linear infinite; } .ic-nt .l4 { animation: hl4 7s linear infinite; }
@keyframes hl1 { 0% { stroke-dashoffset: 100; opacity: 1; } 20% { stroke-dashoffset: 0; } 92% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hl2 { 0%, 22% { stroke-dashoffset: 100; opacity: 1; } 42% { stroke-dashoffset: 0; } 92% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hl3 { 0%, 44% { stroke-dashoffset: 100; opacity: 1; } 64% { stroke-dashoffset: 0; } 92% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hl4 { 0%, 66% { stroke-dashoffset: 100; opacity: 1; } 80% { stroke-dashoffset: 0; } 92% { stroke-dashoffset: 0; opacity: 1; } 97%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.ic-nt .pen { animation: hpen 7s linear infinite; }
@keyframes hpen {
  0% { transform: translate(46px, 26px); opacity: 1; } 20% { transform: translate(22px, 26px); }
  22% { transform: translate(46px, 34px); } 42% { transform: translate(22px, 34px); }
  44% { transform: translate(46px, 42px); } 64% { transform: translate(22px, 42px); }
  66% { transform: translate(46px, 50px); } 80% { transform: translate(30px, 50px); }
  88% { transform: translate(36px, 46px); opacity: 1; } 94%, 100% { transform: translate(46px, 26px); opacity: 0; }
}
.ic-gd .fl { transform-box: view-box; transform-origin: 32px 34px; opacity: 0; animation: hflip 3.2s ease-in-out infinite; }
.ic-gd .fl2 { animation-delay: 1.6s; }
@keyframes hflip { 0% { opacity: 0; transform: scaleX(1) skewY(0); } 6% { opacity: 1; } 45% { transform: scaleX(0) skewY(-7deg); } 80% { opacity: 1; transform: scaleX(-1) skewY(0); } 96%, 100% { opacity: 0; transform: scaleX(-1) skewY(0); } }

/* ---- الأزرار الصغيرة ---- */
.hmx { flex: 0 0 auto; display: flex; justify-content: center; gap: clamp(20px, 7vw, 38px); margin: 0 0 2px; }
.hmm { width: 78px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; background: none; font-family: inherit; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; border-width: 0 !important; box-shadow: none !important; animation: hkin 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
.hmm .hmc { width: clamp(46px, 7vh, 56px); height: clamp(46px, 7vh, 56px); border-radius: 50%; border: 3px solid transparent; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: var(--bg) padding-box, var(--bd) border-box; box-shadow: 0 6px 0 var(--sh), 0 9px 0 rgba(0, 0, 0, 0.4), 0 14px 16px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.6), inset 0 -6px 10px rgba(0, 0, 0, 0.2); transition: transform 0.08s, box-shadow 0.08s; }
.hmm .hmc::before { content: ""; position: absolute; left: 6px; right: 6px; top: 3px; height: 45%; border-radius: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)); pointer-events: none; }
.hmm:active .hmc { transform: translateY(5px); box-shadow: 0 1px 0 var(--sh), 0 3px 0 rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.4); }
.hmm .ic { position: relative; z-index: 1; width: 66%; height: 66%; overflow: visible; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); }
.hmm span.hml { font-size: 12.5px; font-weight: bold; text-align: center; line-height: 1.2; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6); }
.hmm.m1 { --bg: var(--b1); --sh: var(--s1); }
.hmm.m2 { --bg: linear-gradient(180deg, #62b4ff, #2f72ea 55%, #1a3fb0); --sh: #0c2268; }
.hmm.m3 { --bg: var(--b4); --sh: var(--s4); }
.ic-pal .pc { animation: hpc 4.8s linear infinite; }
.ic-pal .pc2 { animation-delay: -1.6s; } .ic-pal .pc3 { animation-delay: -3.2s; }
@keyframes hpc { 0%, 100% { fill: #ff3b58; } 20% { fill: #ffb21e; } 40% { fill: #ffe14a; } 60% { fill: #2fd07a; } 80% { fill: #3b82f6; } }
.ic-eye .eyo { transform-box: view-box; transform-origin: 32px 32px; transition: transform 0.3s cubic-bezier(0.5, 0, 0.3, 1); animation: hblk 5s ease-in-out infinite; }
.ic-eye .lid { opacity: 0; transition: opacity 0.25s; }
.m2.off .eyo { animation: none; transform: scaleY(0.06); }
.m2.off .lid { opacity: 1; }
@keyframes hblk { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(0.06); } }
.ic-lock .shk { animation: hshk 4.2s ease-in-out infinite; }
@keyframes hshk { 0%, 50%, 100% { transform: translateY(0); } 58%, 80% { transform: translateY(-5px); } }
.hmf { margin-top: 0; padding-top: 6px; flex: 0 0 auto; }
.hmf .verline { margin: 0; color: #fff; opacity: 0.66; }
@media (max-height: 700px) {
  .hmw { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .hmg { gap: 12px 14px; padding-bottom: 6px; }
  .hk { height: 72px; border-radius: 20px; gap: 2px; }
  .hk .ic { width: 40px; height: 40px; }
  .hmm { width: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm * { animation: none !important; }
}
body.flat .hmt { filter: none; }
/* قائمة مقادير */
.hmsh {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(3, 2, 10, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hmp {
  width: 100%;
  max-width: 480px;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 26px 26px 0 0;
  border: 2px solid transparent;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(40, 30, 70, 0.97), rgba(14, 10, 28, 0.99)) padding-box, var(--bd) border-box;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6);
  animation: hkin 0.3s ease both;
}
.hmp h2 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 20px;
  color: var(--a);
}
.hmpi {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1.5px solid rgba(var(--e), 0.45);
  font-family: inherit;
  color: #fff;
  text-align: start;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.45);
}
.hmpi:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}
.hmpi .e {
  font-size: 30px;
}
.hmpi b {
  display: block;
  font-size: 17px;
}
.hmpi small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  opacity: 0.75;
}
.hmpx {
  width: 100%;
  margin-top: 4px;
  padding: 12px;
  border-radius: 16px;
  border: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(180deg, #5d6a8e, #2c3350);
  box-shadow: 0 5px 0 #0a0c18;
  cursor: pointer;
}
.hmpx:active { transform: translateY(4px); box-shadow: 0 1px 0 #0a0c18; }
#hmb { padding: 8px 12px; font-size: 18px; }
.topbtns { display: flex; gap: 8px; align-items: center; }
#hmb { padding: 8px 12px; font-size: 18px; }
.topbtns { display: flex; gap: 8px; align-items: center; }
