.nw1-us-card {
    background: radial-gradient(circle at top, #0f172a, #020617);
    padding: 28px;
    border-radius: 18px;
    color: #ffffff;
    max-width: 920px;
    margin: 40px auto;
}

/* HEADER GRID */
.nw1-us-header {
    display: grid;
    grid-template-columns: 1fr 220px 220px;
    gap: 16px;
    align-items: end; /* 🔑 KEY FIX */
}

.nw1-us-field {
    display: flex;
    flex-direction: column;
}

/* FORCE SAME LABEL HEIGHT */
.nw1-us-field label {
    height: 22px;
    margin-bottom: 6px;
    font-size: 14px;
    opacity: 0.9;
}

/* SAME HEIGHT FOR INPUT / SELECT / BUTTON */
.nw1-us-header input,
.nw1-us-header select,
#nw1-shorten-btn {
    height: 52px;
    box-sizing: border-box;
}

.nw1-us-header input,
.nw1-us-header select {
    width: 100%;
    padding: 0 14px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px;
    color: #ffffff;
}

/* PRIMARY BUTTON */
#nw1-shorten-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 0 26px;
    border-radius: 14px;
    border: none;

    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;

    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

#nw1-shorten-btn:disabled {
    opacity: 0.85;
    cursor: not-allowed;
}

/* SVG ICON */
.nw1-btn-svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* SUCCESS */
.nw1-us-success {
    margin: 22px 0;
    background: #0b1220;
    padding: 16px;
    border-radius: 14px;
}

.nw1-us-stats {
    display: flex;
    gap: 24px;
    margin-top: 10px;
}

/* RESULT BOX */
.nw1-us-box {
    background: #0b1220;
    padding: 16px;
    border-radius: 14px;
    margin-top: 18px;
}

.nw1-us-input-group {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.nw1-us-input-group input {
    flex: 1;
    height: 52px;
    background: #020617;
    border: 1px solid #334155;
    padding: 0 12px;
    border-radius: 14px;
    color: #22c55e;
}

.nw1-us-input-group button {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;
    border: 1px solid #334155;
    background: #020617;
    color: #c7d2fe;
    cursor: pointer;
}

.nw1-us-input-group button:hover {
    background: #1e293b;
    color: #ffffff;
}

.nw1-us-error {
    margin-top: 16px;
    color: #f87171;
}





/* Tablet & Mobile */
@media (max-width: 1024px) {

  /* Card padding + width */
  .nw1-us-card {
    padding: 20px;
    margin: 24px auto;
  }

  /* Header becomes single column */
  .nw1-us-header {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
  }

  /* Center fields */
  .nw1-us-field {
    align-items: center;
    text-align: center;
  }

  .nw1-us-field label {
    text-align: center;
  }

  /* Inputs & select full width */
  .nw1-us-header input,
  .nw1-us-header select {
    width: 100%;
  }

  /* Button full width */
  #nw1-shorten-btn {
    width: 100%;
    justify-content: center;
  }

  /* Success stats stack */
  .nw1-us-stats {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
  }

  /* Result input group stacks */
  .nw1-us-input-group {
    flex-direction: column;
    gap: 10px;
  }

  .nw1-us-input-group input,
  .nw1-us-input-group button {
    width: 100%;
  }

  .nw1-us-input-group button {
    height: 52px;
  }

}
