*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: #fdf6ee;
  --warm1: #f7c59f;
  --warm2: #e07a5f;
  --warm3: #f2a65a;
  --rose: #c9566b;
  --teal: #3d9e8c;
  --teal-light: #5bbfad;
  --text-dark: #1a1008;
  --text-mid: #5a3e2b;
  --text-soft: #9a7b65;
  --glass: rgba(255, 248, 240, 0.55);
  --glass-border: rgba(255, 200, 150, 0.35);
  --shadow: rgba(180, 80, 40, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-dark);
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: float 12s ease-in-out infinite;
}

.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #f7c59f88, #e07a5f44);
  top: -200px; right: -100px;
}

.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #f2a65a66, #c9566b33);
  bottom: -150px; left: -100px;
  animation-delay: -4s;
}

.blob-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #3d9e8c44, #5bbfad22);
  top: 50%; left: 55%;
  animation-delay: -8s;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  animation: slideDown 0.6s ease both;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
}

.nav-pill {
  width: 36px; height: 36px;
  background: var(--warm2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(224, 122, 95, 0.4);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 6px 14px;
  backdrop-filter: blur(10px);
}

.change-key-btn {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.change-key-btn:hover {
  border-color: var(--warm2);
  color: var(--warm2);
}

main {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 auto;
  padding: 20px 24px 80px;
}

.hero {
  text-align: center;
  padding: 40px 0 40px;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
  margin-bottom: 24px;
}

.dot {
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--teal);
  animation: pulse 2s infinite;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 8vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text-dark);
  letter-spacing: -2px;
  margin-bottom: 20px;
}

h1 em {
  font-style: italic;
  color: var(--warm2);
  position: relative;
}

h1 em::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--warm2), var(--warm3));
  border-radius: 2px;
  opacity: 0.5;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.15s ease both;
}

.tab {
  flex: 1;
  padding: 12px 20px;
  background: rgba(255, 248, 235, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.tab:hover {
  color: var(--warm2);
  border-color: rgba(224, 122, 95, 0.3);
}

.tab.active {
  background: linear-gradient(135deg, var(--warm2), var(--rose));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(224, 122, 95, 0.3);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeUp 0.35s ease both;
}

.checker-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px var(--shadow), 0 1px 0 rgba(255,255,255,0.8) inset;
  animation: fadeUp 0.7s 0.2s ease both;
  margin-bottom: 0;
}

.card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.input-wrap {
  flex: 1;
  position: relative;
}

input[type="text"] {
  width: 100%;
  background: rgba(255, 248, 235, 0.8);
  border: 1.5px solid rgba(224, 122, 95, 0.2);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]::placeholder { color: var(--text-soft); }

input[type="text"]:focus {
  border-color: var(--warm2);
  box-shadow: 0 0 0 4px rgba(224, 122, 95, 0.1);
}

.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff8f0;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  z-index: 50;
  overflow: hidden;
  display: none;
  box-shadow: 0 8px 24px var(--shadow);
}

.suggestions.open { display: block; animation: fadeUp 0.15s ease; }

.sug-item {
  padding: 11px 18px;
  font-size: 14px;
  color: var(--text-mid);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sug-item:hover {
  background: rgba(224, 122, 95, 0.08);
  color: var(--warm2);
}

.sug-brand {
  font-size: 11px;
  color: var(--text-soft);
  font-style: italic;
}

.btn-add {
  width: 50px; height: 50px;
  background: var(--warm2);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(224, 122, 95, 0.35);
  line-height: 1;
}

.btn-add:hover {
  background: var(--rose);
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(201, 86, 107, 0.4);
}

.pills-area {
  min-height: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  padding: 4px 0;
}

.pills-placeholder {
  font-size: 13px;
  color: var(--text-soft);
  font-style: italic;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(224, 122, 95, 0.25);
  border-radius: 30px;
  padding: 6px 14px 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  animation: popIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  box-shadow: 0 2px 8px rgba(180, 80, 40, 0.08);
  cursor: pointer;
  transition: border-color 0.15s;
}

.pill:hover {
  border-color: rgba(61, 158, 140, 0.4);
}

.pill-info {
  font-size: 11px;
  color: var(--teal);
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}

.pill-info:hover { color: var(--teal-light); }

.pill-x {
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 17px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.15s;
  font-weight: 300;
}

.pill-x:hover { color: var(--rose); }

.btn-check {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--warm2) 0%, var(--rose) 100%);
  border: none;
  border-radius: 14px;
  padding: 16px 24px;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 24px rgba(224, 122, 95, 0.35);
}

.btn-check:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(224, 122, 95, 0.45);
}

.btn-check:disabled {
  background: rgba(180, 140, 120, 0.18);
  color: var(--text-soft);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-arrow { font-size: 18px; transition: transform 0.2s; }
.btn-check:hover:not(:disabled) .btn-arrow { transform: translateX(4px); }

.lookup-hint {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: -8px;
}

.lookup-hint span {
  color: var(--warm2);
  cursor: pointer;
  font-weight: 500;
  margin-right: 6px;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.lookup-hint span:hover { color: var(--rose); }

.loading-area {
  display: none;
  text-align: center;
  padding: 48px 0;
  animation: fadeUp 0.3s ease;
}

.loading-area.show { display: block; }

.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(224, 122, 95, 0.2);
  border-top-color: var(--warm2);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

.loading-area p {
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 500;
}

.results-area {
  display: none;
  animation: fadeUp 0.4s ease both;
}

.results-area.show { display: block; }

.results-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-top: 32px;
}

.results-meta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
}

.results-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-mid);
}

.drug-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.drug-mini-card {
  flex: 1;
  min-width: 160px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 12px var(--shadow);
}

.drug-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow);
  border-color: rgba(224, 122, 95, 0.4);
}

.dmc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.dmc-brand {
  font-size: 11px;
  color: var(--teal);
  margin-bottom: 8px;
  font-style: italic;
}

.dmc-use {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dmc-tap {
  font-size: 11px;
  color: var(--warm2);
  margin-top: 8px;
  font-weight: 500;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.r-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 22px 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px var(--shadow);
  border-left: 4px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.4s ease both;
}

.r-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--shadow);
}

.r-card.major { border-left-color: var(--rose); background: rgba(201,86,107,0.05); }
.r-card.moderate { border-left-color: var(--warm3); background: rgba(242,166,90,0.06); }
.r-card.minor { border-left-color: var(--teal); background: rgba(61,158,140,0.05); }
.r-card.none { border-left-color: var(--teal); background: rgba(61,158,140,0.05); text-align: center; padding: 36px; }

.r-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.drug-pair { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.dtag {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(200,160,120,0.2);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
}

.plus { color: var(--text-soft); font-size: 13px; }

.sev-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.sev-major { background: rgba(201,86,107,0.12); color: var(--rose); border: 1px solid rgba(201,86,107,0.25); }
.sev-moderate { background: rgba(242,166,90,0.12); color: #b56a1a; border: 1px solid rgba(242,166,90,0.3); }
.sev-minor { background: rgba(61,158,140,0.1); color: var(--teal); border: 1px solid rgba(61,158,140,0.25); }

.r-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 12px;
}

.r-advice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(200,160,120,0.15);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}

.safe-emoji { font-size: 40px; margin-bottom: 10px; display: block; }

.safe-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
}

.safe-desc { font-size: 14px; color: var(--text-mid); line-height: 1.7; }

.disclaimer {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(255,245,235,0.6);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.65;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.disc-icon { font-size: 15px; flex-shrink: 0; }

.lookup-results {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lookup-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px 26px;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px var(--shadow);
  animation: fadeUp 0.4s ease both;
}

.lc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.lc-names h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.lc-generic {
  font-size: 13px;
  color: var(--text-soft);
  font-style: italic;
}

.lc-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.brand-tag {
  background: rgba(61, 158, 140, 0.1);
  border: 1px solid rgba(61, 158, 140, 0.2);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
}

.lc-section {
  margin-bottom: 14px;
}

.lc-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.lc-section-body {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
}

.lc-risks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.risk-tag {
  background: rgba(201, 86, 107, 0.08);
  border: 1px solid rgba(201, 86, 107, 0.2);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--rose);
}

.lc-add-btn {
  margin-top: 16px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--warm2), var(--rose));
  border: none;
  border-radius: 10px;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 3px 12px rgba(224, 122, 95, 0.3);
}

.lc-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(224, 122, 95, 0.4);
}

.no-results {
  text-align: center;
  padding: 40px;
  color: var(--text-soft);
  font-size: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  backdrop-filter: blur(12px);
}

.drug-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(253, 246, 238, 0.7);
  backdrop-filter: blur(16px);
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.drug-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.drug-modal {
  background: rgba(255, 252, 245, 0.96);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 36px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(180, 80, 40, 0.2);
  position: relative;
  animation: popIn 0.3s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: rgba(180,140,120,0.12);
  border: none;
  border-radius: 8px;
  width: 32px; height: 32px;
  font-size: 20px;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { background: rgba(201,86,107,0.1); color: var(--rose); }

.modal-drug-name {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.modal-generic {
  font-size: 13px;
  color: var(--text-soft);
  font-style: italic;
  margin-bottom: 16px;
}

.modal-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.modal-section {
  margin-bottom: 18px;
}

.modal-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.modal-section-body {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.75;
}

.modal-risks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-spinner {
  text-align: center;
  padding: 40px;
  color: var(--text-soft);
}

.modal-spinner .spinner {
  margin: 0 auto 12px;
}

.key-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(253, 246, 238, 0.6);
  backdrop-filter: blur(18px);
  padding: 24px;
  animation: fadeUp 0.4s ease both;
}

.key-overlay.hide { animation: fadeOut 0.35s ease both; }

.key-modal {
  background: rgba(255, 252, 245, 0.92);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px 36px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(180, 80, 40, 0.18), 0 1px 0 rgba(255,255,255,0.9) inset;
  animation: popIn 0.4s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.key-modal-top { text-align: center; margin-bottom: 28px; }

.key-icon {
  font-size: 40px;
  margin-bottom: 14px;
  display: block;
  animation: wobble 2s ease infinite;
}

.key-modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.key-modal p { font-size: 13px; color: var(--text-soft); line-height: 1.65; margin-bottom: 10px; }

.key-link {
  font-size: 13px;
  color: var(--teal);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dashed rgba(61, 158, 140, 0.4);
  transition: color 0.15s;
}

.key-link:hover { color: var(--teal-light); }

.key-input-row { display: flex; gap: 8px; margin-bottom: 8px; }
.key-input-row input { flex: 1; letter-spacing: 0.03em; }

.key-eye {
  width: 50px; height: 50px;
  background: rgba(255, 248, 235, 0.8);
  border: 1.5px solid rgba(224, 122, 95, 0.2);
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.key-eye:hover { border-color: var(--warm2); background: rgba(224, 122, 95, 0.08); }

.key-error { font-size: 12px; color: var(--rose); min-height: 18px; margin-bottom: 14px; text-align: center; }

.key-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--warm2) 0%, var(--rose) 100%);
  border: none;
  border-radius: 14px;
  padding: 15px 24px;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 24px rgba(224, 122, 95, 0.35);
}

.key-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(224, 122, 95, 0.45); }
.key-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-40px) scale(1.05); }
  66% { transform: translate(-20px,20px) scale(0.97); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--teal); }
  50% { opacity: 0.5; box-shadow: 0 0 4px var(--teal); }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes wobble {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

@media (max-width: 600px) {
  nav { padding: 18px 20px; }
  .nav-tag { display: none; }
  main { padding: 10px 16px 60px; }
  .checker-card { padding: 22px 18px; }
  h1 { letter-spacing: -1px; }
  .tabs { flex-direction: column; }
}
