:root {
  --bg: #F6F6F6;
  --card-bg: #FFFFFF;
  --primary: #009A7B;
  --primary-hover: #007A62;
  --cta: #fb6d56;
  --cta-hover: #f25d44;
  --teal: #00aa89;
  --teal-bg: #dbf8f1;
  --highlight: #4CA88B;
  --text: #333333;
  --muted: #6E7882;
  --tile-radius: 12px;
  --border-soft: #E5E7EC;
}

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

html, body { min-height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; position: relative; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  z-index: 30;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text);
}

.logo-mark { color: var(--primary); font-size: 1.6rem; line-height: 1; }

.site-nav { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }

.btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-block;
  line-height: 1;
}

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-soft); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-primary { background: var(--cta); color: #FFFFFF; }
.btn-primary:hover { background: var(--cta-hover); box-shadow: 0 4px 14px rgba(251, 109, 86, 0.3); }

.btn-block { width: 100%; padding: 0.85rem; font-size: 1rem; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  transition: filter 0.3s ease;
}

@media (max-width: 900px) { .brand-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .brand-grid { grid-template-columns: 1fr; } }

.tile {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--tile-radius);
  padding: 1.25rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.tile:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 154, 123, 0.15);
  transform: translateY(-2px);
}

.tile-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  padding-right: 3.5rem;
}

.brand {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.tile-nike .brand        { color: #111111; font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: 900; font-style: italic; font-size: 1.25rem; letter-spacing: -0.02em; }
.tile-newbalance .brand  { color: #CF0A2C; font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em; }
.tile-zara .brand        { color: #111111; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 1.4rem; letter-spacing: -0.05em; }
.tile-hm .brand          { color: #E50010; font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-style: italic; font-size: 1.45rem; letter-spacing: -0.02em; }
.tile-reserved .brand    { color: #111111; font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: 900; font-size: 0.95rem; letter-spacing: 0.18em; }
.tile-emag .brand        { color: #0055A5; font-family: 'DM Sans', sans-serif; font-weight: 900; font-size: 1.25rem; letter-spacing: -0.03em; }
.tile-mediagalaxy .brand { color: #111111; font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em; }
.tile-adidas .brand      { color: #111111; font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.tile-trendyol .brand    { color: #F27A1A; font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.tile-temu .brand        { color: #FB7701; font-family: 'DM Sans', sans-serif; font-weight: 900; font-size: 1.4rem; letter-spacing: -0.03em; }
.tile-notino .brand      { color: #E60073; font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: 0.04em; }
.tile-carturesti .brand  { color: #8B6914; font-family: Georgia, 'Times New Roman', serif; font-weight: 500; font-style: italic; font-size: 1.1rem; letter-spacing: 0.02em; }
.tile-aliexpress .brand  { color: #FF4747; font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.tile-bricolaj .brand    { color: #CC0000; font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: 0.06em; }
.tile-sinsay .brand      { color: #DB1F40; font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: 900; font-size: 1.1rem; letter-spacing: 0.05em; }
.tile-aboutyou .brand    { color: #111111; font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.08em; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 8px 14px;
  min-height: 56px;
  min-width: 70px;
  max-width: 100%;
  overflow: hidden;
}
.brand-mark.is-text-fallback {
  background: transparent;
  padding: 0;
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-content: flex-start;
}
.brand-logo {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.reveal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  background: var(--cta);
  border: 1px solid var(--cta);
  color: #FFFFFF;
  padding: 0.65rem 0.9rem;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.18s ease;
  text-transform: none;
  margin-bottom: 0.5rem;
  text-decoration: none;
}
.reveal-btn:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  box-shadow: 0 4px 14px rgba(251, 109, 86, 0.35);
  transform: translateY(-1px);
}
.reveal-btn.is-revealed {
  background: rgba(251, 109, 86, 0.08);
  border-color: var(--cta);
  color: var(--cta);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}
.reveal-btn.is-revealed:hover { background: rgba(251, 109, 86, 0.15); }
.reveal-icon { width: 14px; height: 14px; flex-shrink: 0; }
.reveal-btn.is-revealed .reveal-icon { display: none; }

.badge {
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  letter-spacing: 0.02em;
}

.coupon-code {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.coupon-desc { color: var(--muted); font-size: 0.85rem; line-height: 1.4; }

.store-label { color: #555555; }

body.logged-out .brand-grid {
  filter: blur(4px);
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(251, 109, 86, 0.3); }
  50%       { box-shadow: 0 6px 26px rgba(251, 109, 86, 0.62); }
}

body.logged-out .reveal-btn {
  animation: btn-pulse 2.2s ease-in-out infinite;
  pointer-events: auto;
  cursor: pointer;
}

body.logged-out .overlay { display: flex; }

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 1rem;
  pointer-events: none;
}

.login-card {
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: var(--tile-radius);
  padding: 2rem 2.5rem;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}

.login-card h2 {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.login-card .muted { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.5rem; }

.login-form { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }

.login-error {
  color: #b42318;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.login-form input {
  background: #F6F6F6;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
}
.login-form input:focus { outline: none; border-color: var(--primary); background: #FFFFFF; }
.login-form input::placeholder { color: var(--muted); }

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 1.25rem 0 1rem;
  gap: 0.75rem;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}

.social-logins {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  outline: none;
}
.btn-social:focus-visible { outline: 2px solid var(--highlight); outline-offset: 2px; }
.btn-social:active { transform: translateY(1px); }

/* Google — per Google branding guidelines (pill, Roboto, multicolor G) */
.btn-google {
  background: #FFFFFF;
  color: #1F1F1F;
  border: 1px solid #747775;
  border-radius: 8px;
  height: 40px;
  padding: 0 16px;
  gap: 10px;
  font-family: 'Roboto', 'Inter', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.25px;
}
.btn-google:hover {
  background: #F8FAFD;
  border-color: #303030;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Yahoo — purple OEM */
.btn-yahoo {
  background: #6001D2;
  color: #FFFFFF;
  border: 1px solid #6001D2;
  border-radius: 8px;
  height: 40px;
  padding: 0 16px;
  gap: 8px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.btn-yahoo:hover {
  background: #4D02A8;
  border-color: #4D02A8;
  box-shadow: 0 2px 10px rgba(96, 1, 210, 0.45);
}
.btn-yahoo svg { width: 22px; height: 22px; flex-shrink: 0; }

/* Outlook — Microsoft-style OEM (square, Segoe UI, gray border) */
.btn-outlook {
  background: #FFFFFF;
  color: #5E5E5E;
  border: 1px solid #8C8C8C;
  border-radius: 8px;
  height: 40px;
  padding: 0 16px;
  gap: 12px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  font-weight: 600;
}
.btn-outlook:hover {
  background: #F2F2F2;
  color: #2F2F2F;
}
.btn-outlook svg { width: 21px; height: 21px; flex-shrink: 0; }


.site-footer {
  text-align: center;
  padding: 2rem;
  background: #FFFFFF;
  border-top: 1px solid var(--border-soft);
}
.site-footer .muted { color: var(--muted); font-size: 0.85rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Store label (injected by JS under logo) ── */
.store-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* ── Real coupon elements (cuponeria.ro style) ── */
.verified-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin-bottom: 0.45rem;
}

.partial-code {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  background: var(--teal-bg);
  border: 1px dashed var(--teal);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  text-align: center;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.success-rate {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.3rem;
}
