/* Hamta Copper Dashboard */
.hcd-wrap,
.hcd-front {
  --hcd-ink: #1a2332;
  --hcd-muted: #5c6b7a;
  --hcd-accent: #0d7377;
  --hcd-accent-2: #c45c26;
  --hcd-bg: #f3efe6;
  --hcd-card: #fffdf8;
  --hcd-line: rgba(26, 35, 50, 0.12);
  font-family: "Vazirmatn", "Tahoma", sans-serif;
  color: var(--hcd-ink);
}

.hcd-front {
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(13, 115, 119, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 10%, rgba(196, 92, 38, 0.1), transparent 50%),
    linear-gradient(180deg, #f7f3ea 0%, #ebe4d6 100%);
  border-radius: 16px;
  padding: 1.5rem 1.25rem 2rem;
  margin: 1rem 0;
}

.hcd-front__hero {
  margin-bottom: 1.25rem;
}

.hcd-front__brand {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hcd-accent);
}

.hcd-front__title {
  margin: 0.35rem 0 0.25rem;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hcd-seo-intro p {
  margin: 0 0 0.75rem;
  line-height: 1.85;
  color: var(--hcd-ink);
  font-size: 0.98rem;
}

.hcd-seo-intro a,
.hcd-related a {
  color: var(--hcd-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hcd-faq__item {
  border-bottom: 1px solid var(--hcd-line);
  padding: 0.65rem 0;
}

.hcd-faq__item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.hcd-faq__item summary::-webkit-details-marker {
  display: none;
}

.hcd-faq__item p {
  margin: 0.55rem 0 0.2rem;
  color: var(--hcd-muted);
  line-height: 1.75;
}

.hcd-related__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hcd-front__sub,
.hcd-front__note,
.hcd-meta,
.hcd-card__sub,
.hcd-card__label {
  color: var(--hcd-muted);
}

.hcd-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0 1.25rem;
}

.hcd-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.hcd-card {
  background: var(--hcd-card);
  border: 1px solid var(--hcd-line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  animation: hcd-rise 0.55s ease both;
}

.hcd-card:nth-child(2) { animation-delay: 0.08s; }
.hcd-card:nth-child(3) { animation-delay: 0.16s; }
.hcd-card:nth-child(4) { animation-delay: 0.24s; }

.hcd-card__label {
  font-size: 0.82rem;
}

.hcd-card__value {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hcd-ink);
}

.hcd-card__sub {
  font-size: 0.8125rem;
  line-height: 1.45;
}

.hcd-panel {
  background: var(--hcd-card);
  border: 1px solid var(--hcd-line);
  border-radius: 12px;
  padding: 1rem 1.15rem 1.25rem;
  margin-bottom: 1.15rem;
  animation: hcd-fade 0.7s ease both;
}

.hcd-panel h2,
.hcd-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.hcd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.hcd-table th,
.hcd-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--hcd-line);
  text-align: right;
}

.hcd-table th {
  font-weight: 700;
  background: rgba(13, 115, 119, 0.06);
}

#hcd-chart-gerami {
  width: 100% !important;
  max-height: 260px;
}

@keyframes hcd-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hcd-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 640px) {
  .hcd-card__value { font-size: 1.2rem; }
  .hcd-front { padding: 1.1rem 0.85rem 1.5rem; }
  .hcd-table { font-size: 0.875rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hcd-card__label { font-size: 0.875rem; }
}
