.dmodal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.dmodal.open {
  opacity: 1;
  pointer-events: auto;
}

.dmodal__card {
  position: relative;
  width: calc(100% - 32px);
  max-width: 480px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 200, 180, 0.25);
  transform: translateY(20px);
  transition: transform 0.35s ease;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(0, 200, 180, 0.07);
}

.dmodal.open .dmodal__card {
  transform: translateY(0);
}

.dmodal__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: brightness(0.42) saturate(0.9);
}

.dmodal__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(4, 10, 6, 0.1)  0%,
    rgba(4, 10, 6, 0.82) 52%,
    rgba(4, 10, 6, 0.97) 100%
  );
}

.dmodal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(180, 220, 200, 0.55);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
  padding: 4px 6px;
}
.dmodal__close:hover { color: var(--teal, #00c8b4); }

.dmodal__content {
  position: relative;
  z-index: 2;
  padding: 160px 32px 32px;
}

.dmodal__tag {
  font-family: var(--font-mono, 'Share Tech Mono', monospace);
  font-size: 10px;
  color: var(--teal, #00c8b4);
  letter-spacing: 4px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.dmodal__title {
  font-family: var(--font-hud, 'Orbitron', monospace);
  font-size: 26px;
  font-weight: 900;
  color: var(--text-bright, #e6edf3);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.dmodal__sub {
  font-family: var(--font-body, 'Exo 2', sans-serif);
  font-size: 13px;
  color: #8abcaa;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.dmodal__stats {
  display: flex;
  gap: 24px;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: rgba(0, 200, 180, 0.05);
  border: 1px solid rgba(0, 200, 180, 0.11);
  border-radius: 6px;
}

.dmodal__stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body, 'Exo 2', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: #cce4da;
}

.dmodal__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dmodal__dot--online  { background: #3ba55c; box-shadow: 0 0 6px rgba(59,165,92,0.7); }
.dmodal__dot--members { background: var(--text-muted, #4a7a6a); }

.dmodal__channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 24px;
}

.dmodal__channel {
  font-family: var(--font-mono, 'Share Tech Mono', monospace);
  font-size: 12px;
  color: #7ab8a4;
  padding: 7px 10px;
  background: rgba(0, 200, 180, 0.04);
  border-radius: 4px;
  letter-spacing: 1px;
  border: 1px solid rgba(0, 200, 180, 0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dmodal__btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: rgba(0, 200, 180, 0.1);
  border: 1px solid rgba(0, 200, 180, 0.4);
  border-radius: 6px;
  font-family: var(--font-mono, 'Share Tech Mono', monospace);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #40f0e0;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  margin-bottom: 16px;
}
.dmodal__btn:hover {
  background: rgba(0, 200, 180, 0.2);
  box-shadow: 0 0 22px rgba(0, 200, 180, 0.18);
  color: #40f0e0;
}

.dmodal__note {
  font-family: var(--font-body, 'Exo 2', sans-serif);
  font-size: 13px;
  color: #6a9a8a;
  text-align: center;
  letter-spacing: 0.5px;
  line-height: 1.8;
}

@media (max-width: 520px) {
  .dmodal__content { padding: 130px 20px 24px; }
  .dmodal__title { font-size: 22px; }
  .dmodal__channels { grid-template-columns: 1fr; }
  .dmodal__stats { flex-direction: column; gap: 10px; }
}
