/* Reset & basics */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Courier New', monospace;
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  color: #e6edf3;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  user-select: text;
}

/* Terminal container */
.terminal-container {
  width: 100%;
  max-width: 850px;
  background: #161b22f2;
  border-radius: 14px;
  box-shadow:
    0 0 20px rgba(0, 200, 255, 0.35),
    0 0 40px rgba(255, 0, 110, 0.15),
    inset 0 0 10px rgba(8, 13, 25, 0.8);
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  transition: box-shadow 0.4s ease;
}
.terminal-container:hover {
  box-shadow:
    0 0 25px rgba(0, 255, 200, 0.45),
    0 0 50px rgba(131, 56, 236, 0.25);
}

/* Terminal output */
#terminal-output {
  flex-grow: 1;
  overflow-y: auto;
  white-space: pre-wrap;
  font-size: 1rem;
  line-height: 1.45;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #30363d;
  border-radius: 10px;
  background: #0d1117e6;
  box-shadow: inset 0 0 14px rgba(0, 180, 255, 0.2);
  scrollbar-width: thin;
  scrollbar-color: #3a86ff #0d1117cc;
}
#terminal-output::-webkit-scrollbar {
  width: 8px;
}
#terminal-output::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ff9d, #3a86ff, #ff006e);
  border-radius: 10px;
  border: 2px solid #0d1117cc;
}

/* Welcome messages */
.welcome {
  color: #97f4c5;
  font-weight: 600;
  text-shadow: 0 0 6px #91f7ef, 0 0 12px rgba(48, 65, 255, 0.4);
  animation: fadeIn 1.4s ease forwards;
}
.subtle {
  color: #8b949e;
  font-size: 0.9rem;
}

/* Terminal input */
.terminal-input {
  display: flex;
  align-items: center;
  border: 1.8px solid #30363d;
  border-radius: 10px;
  background: #0d1117;
  padding: 8px 12px;
  box-shadow: inset 0 0 8px #222d3a, 0 0 6px rgba(255, 0, 110, 0.2);
}
.prompt {
  color: #00d4ff;
  text-shadow: 0 0 6px #00d4ff;
  font-weight: 700;
  margin-right: 10px;
  user-select: none;
  font-size: 1.3rem;
}
input#command-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  outline: none;
}
input#command-input::placeholder {
  color: #8b949e;
}

/* Progress Bar */
.progress-bar {
  height: 8px;
  background: #30363d;
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0 15px;
  box-shadow: inset 0 0 8px #222d3a;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff006e, #8338ec, #3a86ff, #00ff87);
  background-size: 400% 400%;
  animation: progress-glow 3s ease infinite;
  transition: width 0.3s ease;
}
@keyframes progress-glow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Modal styling */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
  backdrop-filter: blur(8px);
}
.hidden {
  display: none;
}
.modal-content {
  position: relative;
  background: #161b22;
  border-radius: 14px;
  padding: 24px 30px 36px;
  width: 90%;
  max-width: 480px;
  color: #ffffff;
  box-shadow: 0 0 20px #8338ecaa, 0 0 30px #3a86ffaa;
  text-align: center;
}
.close {
  position: absolute;
  top: 15px;
  right: 22px;
  font-size: 28px;
  color: #ff006e;
  text-shadow: 0 0 6px #ff006e;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close:hover {
  color: #3a86ff;
}

.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.donate-section h3 {
  margin-bottom: 8px;
  color: #3a86ff;
  font-weight: 700;
}
.donate-section p {
  font-size: 1rem;
  word-break: break-word;
}

.donate-link {
  color: #00ff87;
  text-decoration: none;
  font-weight: 600;
  text-shadow: 0 0 5px #00ff87;
  transition: color 0.3s ease;
}
.donate-link:hover {
  text-decoration: underline;
  color: #ff006e;
}

/* ✅ Smooth modal animation */
.modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

/* Terminal command output block */
pre.cmd-output {
  background: #0d1117cc;
  border: 1px solid #21262d;
  padding: 12px 14px;
  border-radius: 6px;
  margin: 8px 0;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  color: #58a6ff;
  white-space: pre-wrap;
  line-height: 1.5;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
