/* ===== ROOT COLORS ===== */
:root {
  --deep-blue: #092258;
  --blue: #4A4EDC;
  --violet: #764CCC;
  --violet-dark: #4D03BD;
  --coral: #FFAC40;

  --neutral-dark: #1F2937;
  --neutral-light-1: #F4F5F6;
  --neutral-light-2: #E5E6E9;
  --white: #FFFFFF;
}

/* ===== GLOBAL ===== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: #092258;
  background-image:
    radial-gradient(ellipse 46% 63% at 7%  9%,  #292DB7 0%, rgba(41,45,183,0) 100%),
    radial-gradient(ellipse 51% 59% at 91% 83%, #4D03BD 0%, rgba(77,3,189,0)  100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  min-height: 100vh;
  padding: 60px 20px;
  color: var(--neutral-dark);
}

h1 {
  color: var(--white);
  text-align: center;
  margin-bottom: 50px;
  font-size: 36px;
  font-weight: 600;
}

/* ===== WRAPPER ===== */

.wrap {
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== CARD ===== */

.card {
  background: var(--white);
  border-radius: 18px;
  padding: 35px;
  margin-top: 15px;
  margin-bottom: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transition: 0.3s ease;
}

.card.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.card h2 {
  margin-top: 0;
  font-size: 22px;
  margin-bottom: 15px;
}

/* ===== GRID ===== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

/* ===== LABEL + INPUT ===== */

label {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--neutral-light-2);
  font-size: 14px;
  transition: 0.2s;
  background: var(--neutral-light-1);
}

input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(74, 78, 220, 0.2);
}

/* ===== BUTTON ===== */

.btn {
  background: var(--coral);
  color: #000;
  border: none;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 172, 64, 0.4);
}

.btn:disabled {
  background: var(--neutral-light-2);
  cursor: not-allowed;
  box-shadow: none;
}

/* ===== STATUS ===== */

.status {
  margin-top: 15px;
  font-size: 14px;
}

.status.ok {
  color: #16a34a;
}

.status.bad {
  color: #dc2626;
}

/* ===== WARNING BOX ===== */

.warn {
  background: #fff4e5;
  color: #92400e;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 14px;
}

/* ===== RESET BUTTON ===== */

.topbar {
  text-align: right;
  margin-bottom: 25px;
}

.reset-btn {
  background: var(--blue);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
}

.reset-btn:hover {
  background: var(--violet);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  body {
    padding: 30px 15px;
  }

  .card {
    padding: 25px;
  }
}
