:root {
  --brand-start: #FB0E76;
  --brand-end:   #910694;
  --brand-gradient: linear-gradient(219deg, var(--brand-start) 0%, var(--brand-end) 100%);

  --bg-page:    #f4f6fb;
  --bg-card:    #ffffff;
  --border:     #e5e7eb;
  --text-dark:  #111827;
  --text-mid:   #374151;
  --text-muted: #6b7280;

  --radius-card:  18px;
  --radius-btn:   12px;
  --radius-input: 16px;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-year: 0 4px 16px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.13);
  --shadow-btn:   0 6px 20px rgba(251, 14, 118, 0.35);

  --gap: 16px;
  --transition: 0.25s ease;
}





.container {
  max-width: 960px;
  margin: 0 auto;
}

/* ============================================================
   Header
   ============================================================ */
.tool-header {
    text-align: center;
    margin-bottom: 28px;
    background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
    border-radius: 12px;
    padding: 20px !important;
}

.tool-title {
margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #ffffff !important;
}

.tool-description {
      margin: 0 auto;
    max-width: 620px;
    color: whitesmoke;
    font-size: 15px;
}

/* ============================================================
   Card
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 30px;
  box-shadow: var(--shadow-card);
  margin-bottom: 25px;
}

/* ============================================================
   Quick Buttons Row
   ============================================================ */
.quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  margin-bottom: 24px;
}

/* ============================================================
   Count + Generate Row
   ============================================================ */
.count-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  align-items: flex-end;
  margin-bottom: 20px;
}

.count-row .input-group {
  flex: 1 1 180px;
}

.count-row .generate-btn {
  flex: 0 0 auto;
  min-width: 140px;
  height: 52px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ============================================================
   From / To Row
   ============================================================ */
.range-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  align-items: flex-end;
}

.range-row .input-group {
  flex: 1 1 160px;
}

.range-separator {
  font-size: 1.4rem;
  color: var(--text-muted);
  padding-bottom: 14px;
  flex-shrink: 0;
  align-self: flex-end;
}

/* ============================================================
   Input Groups & Fields
   ============================================================ */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.input-field {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid #ff5f9e99 !important;
  border-radius: 12px !important;
  font-size: 1rem;
  color: var(--text-dark);
  background: #fafafa;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  -moz-appearance: textfield;
}

/* Remove number spinners */
.input-field::-webkit-inner-spin-button,
.input-field::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.input-field:focus {
  border-color: var(--brand-start);
  background: #fff;
  box-shadow: 0px 0px 10px 0px rgb(163 104 158) !important;
}

/* ============================================================
   Validation Message
   ============================================================ */
.validation-msg {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--brand-start);
  font-weight: 500;
  min-height: 20px;
  transition: opacity var(--transition);
}

/* ============================================================
   Buttons — shared base
   ============================================================ */
.btn {
	margin: 1px;
	border-radius: 12px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0 22px;
  height: 46px;
  background: var(--brand-gradient);
  color: #ffffff;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-btn);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Ripple effect on click */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:active::after {
  opacity: 1;
}

/* Quick buttons take equal width within their row */
.quick-btn {
  flex: 1 1 80px;
}

/* Generate button full width on mobile */
.generate-btn {
  white-space: nowrap;
}

/* ============================================================
   Results Section
   ============================================================ */
.results-section {
  animation: fadeInUp 0.4s ease both;
}

.results-heading {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
  letter-spacing: -0.02em;
}

/* ============================================================
   Results Grid
   ============================================================ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

/* ============================================================
   Year Card
   ============================================================ */
.year-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 16px;
  box-shadow: var(--shadow-year);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: cardIn 0.35s ease both;
}

.year-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Staggered animation delay for cards */
.year-card:nth-child(1)  { animation-delay: 0.02s; }
.year-card:nth-child(2)  { animation-delay: 0.04s; }
.year-card:nth-child(3)  { animation-delay: 0.06s; }
.year-card:nth-child(4)  { animation-delay: 0.08s; }
.year-card:nth-child(5)  { animation-delay: 0.10s; }
.year-card:nth-child(6)  { animation-delay: 0.12s; }
.year-card:nth-child(7)  { animation-delay: 0.14s; }
.year-card:nth-child(8)  { animation-delay: 0.16s; }
.year-card:nth-child(9)  { animation-delay: 0.18s; }
.year-card:nth-child(10) { animation-delay: 0.20s; }
.year-card:nth-child(n+11) { animation-delay: 0.22s; }

.year-number {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  line-height: 1;
}

/* Copy button inside year card */
.copy-btn {
  height: 36px;
  padding: 0 16px;
  font-size: 0.82rem;
  border-radius: 10px;
  gap: 5px;
}

.copy-btn.copied {
  background: linear-gradient(219deg, #16a34a 0%, #15803d 100%);
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text-dark);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   Keyframe Animations
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================================
   Responsive — Tablet (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  body {
    padding: 20px 12px 48px;
  }

  .card {
    padding: 22px 18px;
  }

  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .range-separator {
    display: none;
  }
}

/* ============================================================
   Responsive — Mobile (≤ 520px)
   ============================================================ */
@media (max-width: 520px) {
  .quick-buttons {
    gap: 10px;
  }

  .quick-btn {
    flex: 1 1 calc(50% - 5px);
  }

  .count-row {
    flex-direction: column;
  }

  .count-row .generate-btn {
    width: 100%;
  }

  .range-row {
    flex-direction: column;
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   Responsive — Small Mobile (≤ 360px)
   ============================================================ */
@media (max-width: 360px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}
