*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #0e0e0d;
  color: #e8e6df;
  font-family: 'DM Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

.filename-line {
  color: #c44d4d;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3.5rem;
  border-bottom: 1px solid rgba(232,230,223,0.08);
}

.logo {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232,230,223,0.45);
}






.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232,230,223,0.35);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5a9e6f;
  animation: blink 2.8s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero {
  min-height: calc(100vh - 77px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5rem 3.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.jw-bg {
  position: absolute;
  right: -0.05em;
  bottom: -0.15em;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(18rem, 38vw, 34rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232,230,223,0.06);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 3.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* STATUS SECTION */
.status-section { max-width: 480px; flex: 1; min-width: 300px; }
.dns-section { flex: 1; min-width: 280px; max-width: 380px; }

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232,230,223,0.3);
  margin-bottom: 1.1rem;
}

.status-grid {
  border: 1px solid rgba(232,230,223,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.status-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid rgba(232,230,223,0.06);
}

.status-row-item.last { border-bottom: none; }

.status-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5a9e6f;
  flex-shrink: 0;
  animation: blink 2.8s ease-in-out infinite;
}

.sname {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #e8e6df;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sbadge {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a9e6f;
}

.uptime-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.9rem;
  padding: 0 0.25rem;
}

.uptime-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232,230,223,0.2);
  white-space: nowrap;
}

.bar-track {
  flex: 1;
  height: 2px;
  background: rgba(232,230,223,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 99.98%;
  background: #5a9e6f;
  border-radius: 2px;
}

.uptime-pct {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #5a9e6f;
  white-space: nowrap;
}

/* DNS CARD */
.dns-card {
  border: 1px solid rgba(232,230,223,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.dns-card-top {
  padding: 1.4rem 1.2rem 1.1rem;
  border-bottom: 1px solid rgba(232,230,223,0.06);
}

.dns-title {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: #e8e6df;
  margin-bottom: 0.3rem;
}

.dns-url {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(232,230,223,0.35);
}

.dns-card-body {
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.progress-container {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-text {
  font-size: 0.74rem;
  color: rgba(232,230,223,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(232,230,223,0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: #5a9e6f;
  transition: width 0.2s ease;
}

.dns-card-body .btn, .dns-card-body .file-upload {
  margin-top: 0.8rem;
  padding: 0.7rem;
  background: #5a9e6f;
  border: none;
  color: #0e0e0d;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 8px;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-red {
  background: #c44d4d;
  color: #fff;
}

.dns-card-body .btn:hover, .dns-card-body .file-upload:hover, .btn-red:hover {
  opacity: 0.88;
}

.file-name {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: rgba(232,230,223,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dns-stat {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232,230,223,0.25);
}

.dns-stat-val {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(232,230,223,0.55);
}

.dns-card-footer {
  padding: 0.9rem 1.2rem;
  border-top: 1px solid rgba(232,230,223,0.06);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sdot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5a9e6f;
  animation: blink 2.8s ease-in-out infinite;
  flex-shrink: 0;
}

.dns-status-text {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a9e6f;
}

/* BOTTOM */
.hero-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.bottom-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.location {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232,230,223,0.35);
}

.links { display: flex; gap: 2.5rem; }

.link-item {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232,230,223,0.5);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.link-item:hover { color: #e8e6df; }
.link-item .arr { font-size: 0.9rem; transition: transform 0.2s; }
.link-item:hover .arr { transform: translate(2px, -2px); }

.year {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(232,230,223,0.2);
  text-transform: uppercase;
  padding-bottom: 2px;
}

.f1 { opacity: 0; animation: up 0.9s cubic-bezier(0.16,1,0.3,1) 0.1s forwards; }
.f2 { opacity: 0; animation: up 0.9s cubic-bezier(0.16,1,0.3,1) 0.3s forwards; }
.f3 { opacity: 0; animation: up 0.9s cubic-bezier(0.16,1,0.3,1) 0.5s forwards; }
.f4 { opacity: 0; animation: up 0.9s cubic-bezier(0.16,1,0.3,1) 0.65s forwards; }

@keyframes up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
  nav { padding: 1.5rem; }
  .hero { padding: 3rem 1.5rem 2rem; }
  .hero-top { flex-direction: column; gap: 2rem; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .jw-bg { font-size: 55vw; }
  .links { flex-direction: column; gap: 1rem; }
  .status-section, .dns-section { max-width: 100%; min-width: unset; width: 100%; }
}

/* LOADER */
#loader {
  position: fixed;
  inset: 0;
  background: #0e0e0d;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-jw {
  font-family: 'DM Serif Display', serif;
  font-size: 6rem;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232,230,223,0.15);
  animation: loaderPulse 1.5s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { -webkit-text-stroke-color: rgba(232,230,223,0.12); }
  50%       { -webkit-text-stroke-color: rgba(224, 232, 223, 0.55); }
}
.loader-bar-wrap {
  width: 187px;
  height: 3px;
  background: rgba(77, 139, 59, 0.363);
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  width: 0;
  background: rgba(232,230,223,0.35);
  animation: loadBar 1.4s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes loadBar {
  0%   { width: 0%; }
  70%  { width: 85%; }
  100% { width: 100%; }
}
.loader-label {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232,230,223,0.2);
}

#output {
  max-height: 270px; /* Set a maximum height */
  overflow-y: auto; /* Enable vertical scrolling */
  scrollbar-width: none; /* For Firefox */
  -ms-overflow-style: none; /* For Internet Explorer and Edge */
}

#output::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Opera */
}
