* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    "Vazirmatn",
    system-ui,
    -apple-system,
    sans-serif;
}

body {
  background: #0b0f1e;
  color: #f6f7fb;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(96, 170, 255, 0.15), transparent 45%),
    radial-gradient(
      circle at 20% 80%,
      rgba(142, 96, 255, 0.18),
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(80, 255, 215, 0.15),
      transparent 45%
    );
  z-index: 0;
}

.glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
  animation: float 12s ease-in-out infinite;
}

.glow-1 {
  top: -120px;
  right: -100px;
  background: rgba(94, 190, 255, 0.6);
}

.glow-2 {
  bottom: -160px;
  left: -120px;
  background: rgba(160, 110, 255, 0.6);
  animation-delay: 2s;
}

.glow-3 {
  bottom: 10%;
  right: 10%;
  background: rgba(90, 255, 220, 0.5);
  animation-delay: 4s;
}

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

.glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.topbar {
  padding: 14px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
  animation: fadeUp 0.8s ease;
}

.profile {
  display: flex;
  align-items: center;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(
    135deg,
    rgba(120, 200, 255, 0.6),
    rgba(115, 120, 255, 0.6)
  );
  padding: 6px;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 1;
}

.header-title {
  font-size: 15px;
  font-weight: 700;
}

.welcome {
  font-size: 14px;
  font-weight: 600;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 500;
}

.glow-chip {
  background: linear-gradient(
    120deg,
    rgba(90, 255, 220, 0.2),
    rgba(95, 165, 255, 0.2)
  );
  box-shadow: 0 8px 24px rgba(90, 255, 220, 0.25);
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: fadeUp 0.6s ease;
}

.page.active {
  display: flex;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  padding: 4px 2px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
}

.glass-card {
  padding: 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: inherit;
  text-align: right;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 8px;
  font-size: 14px;
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(255, 255, 255, 0.15),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.glass-card:hover::after {
  opacity: 1;
}

.card-title {
  font-size: 12px;
  font-weight: 700;
}

.card-desc {
  font-size: 10px;
  margin-top: 6px;
  color: rgba(246, 247, 251, 0.7);
}

.notice {
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 12px;
  color: rgba(246, 247, 251, 0.85);
  text-align: center;
}

.status-hero {
  padding: 16px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(
    135deg,
    rgba(90, 150, 255, 0.18),
    rgba(90, 255, 220, 0.12)
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-hero-title {
  font-size: 14px;
  font-weight: 700;
}

.status-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(246, 247, 251, 0.8);
}

.status-hero-value {
  font-weight: 700;
  color: #ffffff;
}

.status-hero-actions {
  display: flex;
  justify-content: flex-start;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 10px;
}

.status-card {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 70px;
  justify-content: center;
}

.status-label {
  font-size: 11px;
  color: rgba(246, 247, 251, 0.7);
}

.status-value {
  font-size: 14px;
  font-weight: 700;
}

.status-note {
  font-size: 12px;
  color: rgba(246, 247, 251, 0.65);
}

.glass-panel {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.panel-text {
  font-size: 13px;
  color: rgba(246, 247, 251, 0.75);
}

.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: rgba(246, 247, 251, 0.8);
}

.list li {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.badge.success {
  background: rgba(90, 255, 200, 0.2);
  border-color: rgba(90, 255, 200, 0.4);
}

.panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: stretch;
}

.panel-actions .glass-button {
  width: 100%;
}

.glass-button {
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.glass-button.primary {
  background: linear-gradient(
    120deg,
    rgba(110, 160, 255, 0.5),
    rgba(100, 220, 255, 0.5)
  );
  box-shadow: 0 10px 26px rgba(90, 150, 255, 0.3);
}

.glass-button:hover {
  transform: translateY(-2px);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 14, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 18px;
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

.hidden {
  display: none;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(22px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .app {
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .status-grid {
    grid-template-columns: 1fr;
  }
}
