.headers {
  text-align: center;
  margin-bottom: 10px;
  padding: 2rem 0;
  background:linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(233, 30, 99, 0.1);
}

.headers h1 {
  font-size: 45px !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem;
	    color: white !important;
/*     font-family: inherit; */
	}



.main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* Result banner */
.result-banner {
  background: #eff6ff !important;
  border: 1.5px solid #bfdbfe !important;
  border-radius: 14px !important;
  padding: 15px 22px !important;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.result-banner.active {
  border-color: #60a5fa;
  box-shadow: 0 2px 20px rgba(59,130,246,0.12);
  background: linear-gradient(135deg, #eff6ff, #fff);
}

.result-label {
  font-weight: 700;
  color: #1d4ed8;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.result-value {
  font-size: 1rem;
  color: #334155;
  font-weight: 500;
}

.result-value em {
  font-style: normal;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 1.06rem;
}

/* Card */
.card {
  background: #fff;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 32px rgba(0,0,0,0.07);
  overflow: hidden;
}

.card-body {
  padding: 28px 28px 20px;
}

.converter-grid {
  display: grid;
  grid-template-columns: 1fr 52px 1fr;
  align-items: start;
  gap: 0;
}

.col-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}

input.num-input {
  width: 100%;
  padding: 13px 16px !important;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: inherit;
  color: #1e293b !important;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  margin-bottom: 10px;
  -moz-appearance: textfield;
}

input.num-input::-webkit-inner-spin-button,
input.num-input::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
}

input.num-input:focus {
  border-color: #60a5fa !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.13);
}

input.num-input.output {
  color: #1d4ed8 !important;
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  cursor: default;
}

/* Listbox */
.listbox-container {
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.listbox-container:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.unit-list {
	padding:0px;
  list-style: none;
  height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #93c5fd #f1f5f9;
}

.unit-list::-webkit-scrollbar { 
  width: 5px; 
}

.unit-list::-webkit-scrollbar-track { 
  background: #f1f5f9; 
}

.unit-list::-webkit-scrollbar-thumb { 
  background: #93c5fd; 
  border-radius: 3px; 
}

.unit-list li {
  padding: 8px 13px !important;
  font-size: 0.84rem;
  color: #334155 !important;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.12s, color 0.12s;
  line-height: 1.4;
  user-select: none;
}

.unit-list li:last-child { 
  border-bottom: none; 
}

.unit-list li:hover { 
  background: #d81d92; 
  color: #1d4ed8; 
}

.unit-list li.sel {
  background: #fb0e76ba;
  color: #fff !important;
  font-weight: 600;
}

.unit-list li.sel:hover { 
  background: #fb0e76ba; 
}

/* Swap column */
.swap-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 44px;
}

.swap-btn {
  width: 40px;
  height: 40px;
	padding:10px !important;
  border-radius: 50% !important;
  border: 1.5px solid #93c5fd !important;
  background: #eff6ff !important;
  color: #2563eb !important;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1);
  outline: none;
}

.swap-btn:hover {
  background: #2563eb;
  color: #fff;
  border-color: #1d4ed8;
  transform: rotate(180deg) scale(1.1);
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}

.swap-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(59,130,246,0.35);
}

/* Quick refs */
.quick-section {
  padding: 20px 28px 26px;
  border-top: 1.5px solid #f1f5f9;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}

.quick-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 9px 13px !important;
  font-size: 0.8rem;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
  line-height: 1.45;
}

.quick-chip:hover {
  background: #f7efff;
  border-color: #93c5fd;
  color: #cd1dd8;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59,130,246,0.1);
}

.quick-chip strong {
  display: block;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.82rem;
  margin-bottom: 1px;
}

/* Footer */
.card-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0 !important;
  padding: 12px 28px !important;
  font-size: 0.77rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-footer b { 
  color: #2563eb; 
}

/* Responsive */
@media (max-width: 700px) {
  .converter-grid {
    grid-template-columns: 1fr;
  }

  .swap-col {
    padding: 4px 0;
    flex-direction: row;
    justify-content: center;
  }

  .swap-btn {
    transform: rotate(90deg);
  }
	.headers h1 {
		font-size:33px !important
			
	}
	.headers{
		padding:10px !important
	}
	.result-value{
		font-size:10px !important; 
	}
  .swap-btn:hover {
    transform: rotate(270deg) scale(1.1);
  }

  .card-body { 
    padding: 20px 16px 16px; 
  }

  .quick-section { 
    padding: 16px 16px 20px; 
  }

  .card-footer { 
    padding: 10px 16px; 
  }

  .header-inner { 
    padding: 16px 16px; 
  }

  .main { 
    padding: 0px; 
  }

  .quick-grid { 
    grid-template-columns: 1fr 1fr; 
  }
}

@media (max-width: 420px) {
  .quick-grid { 
    grid-template-columns: 1fr; 
  }

  .header-text h1 { 
    font-size: 1.2rem; 
  }
}

@keyframes pop-in {
  from { 
    opacity: 0.3; 
    transform: translateY(-3px) scale(0.99); 
  }

  to {   
    opacity: 1;   
    transform: translateY(0) scale(1);    
  }
}

.result-value { 
  animation: pop-in 0.2s ease; 
}