:root {
  --canvas: #d9ecff;
  --sky: #b9e0ff;
  --card: #ffffff;
  --ink: #1a2332;
  --muted: #7a8aa0;
  --accent: #2aa7ff;
  --orange: #ff8a3d;
  --cyan: #20d0d8;
  --teal: #2bc4c4;
  --phone: 430px;
  --nav: 64px;
  --uy: "alkatip tor", "alkatip basma tom", "ukij tuz tom", "Noto Naskh Arabic", serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: #e8eef6;
  font-family: var(--uy);
  color: var(--ink);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.phone {
  width: 100%;
  max-width: var(--phone);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 60% at 50% -5%, #eaf6ff 0%, transparent 55%),
    linear-gradient(180deg, #c8e7ff 0%, #e8f5ff 28%, #f3f8fc 55%, #eef4fa 100%);
  box-shadow: 0 0 0 1px rgba(20, 40, 80, 0.06), 0 24px 60px rgba(20, 40, 80, 0.12);
}

.sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  pointer-events: none;
  overflow: hidden;
}
.ears {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 180px;
  height: 70px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 28% 70%, #9fd4ff 0 18px, transparent 19px),
    radial-gradient(circle at 72% 70%, #9fd4ff 0 18px, transparent 19px);
  opacity: 0.55;
  filter: blur(0.2px);
}
.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  filter: blur(1px);
}
.c1 { width: 90px; height: 28px; top: 34px; right: 18px; }
.c2 { width: 70px; height: 22px; top: 52px; left: 24px; opacity: 0.7; }

.main {
  position: relative;
  z-index: 1;
  padding: 52px 14px calc(var(--nav) + 18px);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 148px;
  padding: 14px 14px 12px;
  border-radius: 22px;
  background: linear-gradient(165deg, #ffffff 0%, #f3f9ff 100%);
  box-shadow: 0 8px 22px rgba(42, 120, 200, 0.1);
  overflow: hidden;
}
.tone-blue { background: linear-gradient(165deg, #ffffff, #eaf5ff); }
.tone-cyan { background: linear-gradient(165deg, #ffffff, #e8fbff); }
.tone-sky { background: linear-gradient(165deg, #ffffff, #eaf4ff); }
.tone-blue2 { background: linear-gradient(165deg, #ffffff, #e7f3ff); }
.tone-aqua { background: linear-gradient(165deg, #ffffff, #e6fbfd); }
.tone-vip { background: linear-gradient(165deg, #fffdf8, #fff3df); }

.card-text { position: relative; z-index: 2; text-align: right; }
.card-text h2 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: #152033;
}
.card-text p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: #7d8ea6;
  max-width: 68%;
  margin-inline-start: auto;
}

.card-ico {
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 78px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.go {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 6px 14px rgba(42, 167, 255, 0.28);
}
.go-blue { background: #4db3ff; }
.go-teal { background: #2bc4c4; }
.go-sky { background: #3aaeff; }
.go-cyan { background: #20d0d8; }
.go-orange { background: #ff8a3d; box-shadow: 0 6px 14px rgba(255, 138, 61, 0.3); }

.market {
  margin-top: 14px;
  background: #ffffff;
  border-radius: 22px 22px 18px 18px;
  box-shadow: 0 10px 28px rgba(42, 120, 200, 0.08);
  padding: 14px 14px 10px;
}
.market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.market-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}
.more {
  font-size: 12px;
  color: #8a98ad;
}

.market-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.market-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto 14px;
  align-items: center;
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid #eef2f7;
}
.market-list li:last-child { border-bottom: 0; }
.m-name { font-size: 13px; font-weight: 700; }
.m-val { font-size: 12px; color: #8a98ad; font-variant-numeric: tabular-nums; }
.m-arrow { color: #c0cad8; font-size: 16px; }
.m-ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.m-ico.gas {
  background: linear-gradient(160deg, #6cbcff, #3a95f0);
}
.m-ico.gas::before {
  content: "";
  width: 9px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 2px 2px 1px 1px;
  box-shadow: 3px -2px 0 -1px #fff;
}
.m-ico.silver {
  background: linear-gradient(160deg, #4adf8a, #22b85a);
}
.m-ico.silver::after {
  content: "$";
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-family: system-ui, sans-serif;
  line-height: 1;
}
.m-ico.gold {
  background: linear-gradient(160deg, #ffe08a, #e8a820);
}
.m-ico.gold::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c8, #d49210);
  box-shadow: inset 0 -1px 2px rgba(120, 70, 0, 0.25);
}

.market-foot {
  margin: 4px 2px 2px;
  font-size: 11px;
  color: #a0adc0;
  text-align: left;
  direction: ltr;
  unicode-bidi: plaintext;
}

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--nav) + env(safe-area-inset-bottom, 0px));
  padding: 6px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid #e8eef5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 5;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #8a98ad;
  font-size: 11px;
  font-weight: 700;
}
.tab svg { width: 22px; height: 22px; }
.tab.active { color: var(--accent); }

@media (min-width: 768px) {
  body { padding: 24px 0; }
  .phone {
    min-height: calc(100vh - 48px);
    border-radius: 28px;
  }
}

@media (min-width: 1100px) {
  :root { --phone: 430px; }
}
