* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  font-family: "IRANSans";
  background: #f0f4f8;
  direction: rtl;
}
a {
  text-decoration: none;
}
.main {
  max-width: 420px;
  margin: 0 auto;
  padding: 1rem 10px;
}
.header {
  text-align: left;
  padding: 0 .3rem;
}
.header a {
  display: flex;
  align-items: center;
  justify-content: center;
  float: right;
  width: 100px;
  height: 40px;
  font-size: 15px;
  color: #2c3e50;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 12px 0 #ddd;
}
.header img {
  width: 140px;
}
.gif {
  width: 100%;
}
.box {
  position: relative;
  margin-bottom: 16px;
  padding: 20px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}
.box-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
}
.box-icon {
  display: grid;
}
.box-icon svg {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(59, 130, 246, 0.2) 100%
  );
  color: #3b82f6;
  padding: 4px;
  border-radius: 5px;
}
.box-badge {
  font-family: sans-serif;
  font-size: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1) 0%,
    rgba(139, 92, 246, 0.2) 100%
  );
  color: #8b5cf6;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.box-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.status-green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.status-red {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
.status-gray {
  background: rgba(0, 0, 0, 0.1);
  color: #2c3e50;
}
.box-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
}
.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 0 14px 0 #eee;
}
.info-label {
  font-size: 11px;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.info-value {
  font-family: sans-serif;
  font-size: 15px;
  color: #2c3e50;
  text-align: end;
  font-weight: 700;
  transition: all 0.3s ease;
}
.info-value.good {
  color: #10b981;
}
.info-value.bad {
  color: #dc3545;
}
.info-value.updating {
  opacity: 0.5;
}
.cache-indicator {
  position: fixed;
  bottom: 10px;
  left: 10px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 11px;
  border-radius: 20px;
  z-index: 1000;
  font-family: monospace;
}
.cache-indicator.fresh {
  background: rgba(40, 167, 69, 0.8);
}
.cache-indicator.cached {
  background: rgba(255, 193, 7, 0.8);
  color: #000;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.box {
  animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.box:nth-child(4) {
  animation-delay: 0.15s;
  opacity: 0;
  animation-fill-mode: forwards;
}
.box:nth-child(5) {
  animation-delay: 0.3s;
  opacity: 0;
  animation-fill-mode: forwards;
}
@media (max-width: 480px) {
  .box-title {
    font-size: 15px;
  }
  .box-icon {
    font-size: 22px;
  }
  .box {
    padding: 16px 12px;
  }
}