:root{
  --bg:#07040b;
  --panel:#0e0815;
  --ink:#f5f2ff;
  --muted:rgba(245,242,255,.68);

  --pink:#ff4fd8;
  --purple:#8b5cff;
  --violet:#5b2cff;

  --glass: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.10);
  --shadow: 0 18px 40px rgba(0,0,0,.55);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ width:100%; height:100%; margin:0; padding:0; overflow-x:hidden; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(139,92,255,.22), transparent 55%),
              radial-gradient(900px 500px at 90% 20%, rgba(255,79,216,.18), transparent 52%),
              linear-gradient(180deg, #050308, #0a0610 55%, #050308);
  color: var(--ink);
}

.bg-blobs{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.blob{
  position:absolute;
  filter: blur(40px);
  opacity:.55;
  border-radius: 999px;
}
.blob-1{
  width: 420px; height: 420px;
  left: -120px; top: -110px;
  background: radial-gradient(circle at 30% 30%, rgba(255,79,216,.9), rgba(139,92,255,.2));
}
.blob-2{
  width: 520px; height: 520px;
  right: -170px; top: 120px;
  background: radial-gradient(circle at 40% 40%, rgba(139,92,255,.85), rgba(255,79,216,.15));
}
.blob-3{
  width: 420px; height: 420px;
  left: 10%; bottom: -220px;
  background: radial-gradient(circle at 40% 40%, rgba(91,44,255,.7), rgba(255,79,216,.12));
}

.app{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 14px 22px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.glass{
  background: var(--glass);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
}

.top-card{
  padding: 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
.brand-logo{
  width: 42px; height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,79,216,.9), rgba(139,92,255,.9));
  box-shadow: 0 10px 24px rgba(255,79,216,.16);
  border: 1px solid rgba(255,255,255,.14);
}
.brand-text{ min-width:0; }
.brand-title{
  font-weight: 900;
  letter-spacing: .8px;
  font-size: 14px;
  line-height: 1.1;
}
.brand-sub{
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.balance-wrap{
  display:flex;
  align-items:center;
  gap: 10px;
}
.balance-pill{
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.10);
  min-width: 90px;
  text-align:center;
}
.balance-label{ font-size: 10px; color: var(--muted); }
.balance-value{ font-size: 14px; font-weight: 800; }

.btn{
  border: 0;
  outline: none;
  cursor:pointer;
  padding: 10px 12px;
  border-radius: 16px;
  color: var(--ink);
  font-weight: 800;
  font-size: 12px;
}
.btn-primary{
  background: linear-gradient(135deg, rgba(139,92,255,.95), rgba(255,79,216,.85));
  box-shadow: 0 14px 26px rgba(139,92,255,.18);
  border: 1px solid rgba(255,255,255,.16);
}
.btn-primary:active{ transform: translateY(1px); }

.tabs{
  display:flex;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.08);
}
.tab{
  flex: 1;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-weight: 800;
  cursor:pointer;
}
.tab.active{
  color: var(--ink);
  background: linear-gradient(135deg, rgba(139,92,255,.25), rgba(255,79,216,.14));
  border-color: rgba(255,255,255,.14);
}

.content{ display:flex; flex-direction:column; gap: 12px; }
.panel{ display:none; }
.panel.show{ display:block; }

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.grid-3.small{ margin-top: 12px; }

.tile{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
  padding: 12px;
  color: var(--ink);
  cursor:pointer;
  text-align:left;
  position: relative;
  overflow:hidden;
}
.tile::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(220px 120px at 20% 20%, rgba(255,79,216,.28), transparent 60%),
    radial-gradient(220px 120px at 80% 30%, rgba(139,92,255,.22), transparent 62%);
  opacity: .9;
  pointer-events:none;
}
.tile > *{ position: relative; z-index: 1; }

.tile:active{ transform: translateY(1px); }

.tile-ico{
  width: 36px; height: 36px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.10);
  margin-bottom: 10px;
  font-size: 16px;
}
.tile-title{
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 4px;
}
.tile-sub{
  font-size: 11px;
  color: var(--muted);
}

.tile-lg{ min-height: 120px; }
.tile-sm{
  min-height: 74px;
  padding: 10px;
}
.tile-sm .tile-ico{ width: 34px; height:34px; margin-bottom: 8px; }
.tile-sm .tile-title{ margin-bottom: 0; }

.card{
  padding: 14px;
}
.card-title{
  font-weight: 900;
  margin-bottom: 6px;
}
.card-text{
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.foot{
  margin-top: auto;
  text-align:center;
  padding: 10px 0 0;
}
.muted{ color: rgba(245,242,255,.5); font-size: 11px; }

/* Mobile tweaks */
@media (max-width: 420px){
  .top-card{ flex-direction: column; align-items: stretch; }
  .balance-wrap{ justify-content: space-between; }
  .grid-3{ grid-template-columns: 1fr; }
  .tile-lg{ min-height: 104px; }
  .grid-3.small{ grid-template-columns: repeat(3, 1fr); }
}

.shop-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.4);
}