:root {
  --bg: #0a050b;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --text: #fff7f7;
  --muted: #c7b8c1;
  --red: #ff2337;
  --red-dark: #b40716;
  --gold: #ffd28b;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 20% 5%, rgba(255, 35, 55, 0.38), transparent 34%),
              radial-gradient(circle at 85% 18%, rgba(255, 210, 139, 0.16), transparent 28%),
              linear-gradient(135deg, #070308 0%, #170711 45%, #050306 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, #000, transparent 80%);
}

.page-shell {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 60px;
}

/* Page Header (Minimal, floating top right like original) */
.page-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
  padding: 0 4px;
}

.lang-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  padding: 7px 20px;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 35, 55, 0.25);
}

/* ================= HERO & CARDS ================= */
.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

/* Harmonious Translucent Glass Cards */
.hero-copy, .redeem-card, .steps article, .faq, .result-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
}

.hero-copy {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10.5px;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 22px var(--red);
}

h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.02;
  margin: 16px 0 14px;
  letter-spacing: -0.05em;
  color: var(--text);
}

h2 {
  font-size: 24px;
  margin: 10px 0;
  color: var(--text);
}

h3 {
  margin: 0;
}

.lead {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 14px;
}

.lead b {
  color: var(--text);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.trust-grid div {
  padding: 13px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}

.trust-grid div:hover {
  background: rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.trust-grid strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 3px;
}

.trust-grid span, .muted, .fine-print, .steps p, .faq p {
  color: var(--muted);
  font-size: 12.5px;
}

/* ================= REDEEM CARD ================= */
.redeem-card {
  padding: 26px 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.redeem-card::before {
  content: "";
  position: absolute;
  inset: -80px -80px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--red), transparent 68%);
  opacity: 0.36;
  filter: blur(8px);
  pointer-events: none;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--red), #7c0610);
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(255, 35, 55, 0.30);
  color: #fff;
  margin-bottom: 14px;
}

.card-desc {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 18px;
}

label {
  display: block;
  margin: 14px 0 8px;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--text);
}

.input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.34);
  transition: all 0.25s ease;
}

.input-wrap:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 35, 55, 0.3), 0 0 20px rgba(255, 35, 55, 0.35);
}

input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 800 15px/1 var(--font);
  padding: 11px 12px;
  text-transform: uppercase;
}

input::placeholder {
  color: #756b74;
}

#paste-button {
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  background: var(--panel-strong);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

#paste-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.primary-button, .secondary-button, .copy-link, .open-link {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  color: white;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font);
}

.primary-button {
  width: 100%;
  margin-top: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  box-shadow: 0 14px 34px rgba(255, 35, 55, 0.30);
}

.primary-button:hover, .secondary-button:hover, .copy-link:hover, .open-link:hover {
  transform: translateY(-2px);
}

.primary-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
}

.status-box {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.26);
  font-size: 13.5px;
  line-height: 1.45;
}

.status-box.show {
  display: block;
}

.status-box.error {
  border-color: rgba(255, 35, 55, 0.55);
  color: #ffd5d9;
}

.status-box.success {
  border-color: rgba(98, 255, 174, 0.45);
  color: #caffdf;
}

.fine-print {
  font-size: 11px;
  margin-top: 14px;
  line-height: 1.4;
  text-align: center;
}

/* ================= STEPS & FAQ ================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.steps article {
  padding: 20px 18px;
}

.steps b {
  color: var(--red);
  font-size: 11px;
  letter-spacing: 0.16em;
  display: block;
  margin-bottom: 8px;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--text);
}

.steps p {
  font-size: 13.5px;
  margin: 0;
  line-height: 1.5;
}

.faq {
  margin-top: 18px;
  padding: 24px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}

details[open] {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.25);
}

summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  outline: none;
}

details p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

code {
  color: var(--gold);
  background: rgba(255, 210, 139, 0.09);
  padding: 2px 6px;
  border-radius: 7px;
}

.guide-video {
  margin-top: 12px;
  max-width: 100%;
  border-radius: 12px;
}

/* ================= INLINE RESULT SECTION ================= */
.inline-result {
  margin-top: 24px;
  animation: slide-in-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-card {
  padding: 30px;
  overflow: hidden;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  margin-bottom: 18px;
}

.result-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #65ffab;
  box-shadow: 0 0 24px rgba(101, 255, 171, 0.8);
}

.result-dot.error {
  background: var(--red);
}

.result-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.result-hero h2 {
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}

.result-hero p {
  color: var(--muted);
  margin: 0;
  font-size: 14.5px;
}

.account-summary {
  display: grid;
  gap: 8px;
  min-width: 240px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

.account-summary b {
  color: var(--text);
  font-weight: 800;
}

/* ================= COOKIE RESCUE STATION ================= */
.cookie-repair-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 35, 55, 0.15) 0%, rgba(255, 210, 139, 0.05) 100%);
  border: 1.5px solid rgba(255, 210, 139, 0.35);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  animation: pulse-warning-gold 3s infinite ease-in-out;
  overflow: hidden;
}

.cookie-repair-card.loading {
  animation: pulse-repair 1.5s infinite ease-in-out !important;
  border-color: rgba(229, 9, 20, 0.5) !important;
  background: rgba(229, 9, 20, 0.08) !important;
}

@keyframes pulse-warning-gold {
  0% { box-shadow: 0 0 4px rgba(255, 210, 139, 0.15); border-color: rgba(255, 210, 139, 0.2); }
  50% { box-shadow: 0 0 18px rgba(255, 210, 139, 0.4); border-color: rgba(255, 210, 139, 0.5); }
  100% { box-shadow: 0 0 4px rgba(255, 210, 139, 0.15); border-color: rgba(255, 210, 139, 0.2); }
}

@keyframes pulse-repair {
  0% { opacity: 0.7; box-shadow: 0 0 8px rgba(229, 9, 20, 0.2); }
  50% { opacity: 1; box-shadow: 0 0 20px rgba(229, 9, 20, 0.5); }
  100% { opacity: 0.7; box-shadow: 0 0 8px rgba(229, 9, 20, 0.2); }
}

.repair-left-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.repair-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.repair-badge-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(255, 210, 139, 0.15);
  border: 1px solid rgba(255, 210, 139, 0.35);
  padding: 4px 10px;
  border-radius: 8px;
}

.current-id-pill {
  font-size: 12.5px;
  color: #fff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.current-id-pill span {
  color: #4ade80;
}

.repair-limit-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 800;
  color: #ffd28b;
  background: rgba(255, 210, 139, 0.12);
  border: 1px solid rgba(255, 210, 139, 0.28);
  padding: 4px 10px;
  border-radius: 8px;
}

.repair-btn-vip .btn-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.repair-btn-vip .btn-icon svg {
  transition: transform 0.4s ease;
}

.repair-btn-vip:hover .btn-icon svg {
  transform: rotate(180deg);
}

.repair-desc-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}

.repair-desc-text b, .repair-desc-text strong {
  color: var(--gold);
}

.repair-btn-vip {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border: none;
  padding: 13px 24px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(255, 35, 55, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  transition: all 0.2s ease;
}

.repair-btn-vip:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255, 35, 55, 0.55);
}

.repair-btn-vip:disabled {
  opacity: 0.8;
  cursor: wait;
}

.repair-btn-vip .btn-title {
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.repair-btn-vip .btn-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  display: block;
}

.repair-spinner {
  animation: rotate-spinner 0.8s linear infinite;
  display: inline-block;
}

@keyframes rotate-spinner {
  100% { transform: rotate(360deg); }
}

/* ================= DEVICE ROWS ================= */
.device-rows-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.device-row {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 20px;
  align-items: stretch;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.device-row:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.device-left-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.device-title-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.device-icon-badge {
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}

.device-name {
  font-size: 16.5px;
  font-weight: 900;
  color: var(--text);
}

.link-input-display {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
}

.copy-link {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--line);
  text-align: center;
}

.open-link {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  text-align: center;
}

.device-right-guide {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.guide-header {
  font-weight: 800;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guide-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.guide-text b, .guide-text strong {
  color: #fff;
}

/* ================= RESPONSIVE (OPTIMIZED & COMPACT FOR MOBILE) ================= */
@media (max-width: 900px) {
  .page-shell {
    padding: 14px 0 40px;
  }
  
  .hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .hero-copy {
    padding: 20px 18px 16px;
    border-radius: 20px;
  }

  .eyebrow {
    font-size: 10px;
    margin-bottom: 6px;
  }

  h1 {
    font-size: 22px;
    line-height: 1.2;
    margin: 4px 0 8px;
  }

  .lead {
    font-size: 13px;
    line-height: 1.45;
    margin: 0 0 12px;
  }

  /* 3 boxes on 1 horizontal line on mobile so it stays compact! */
  .trust-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    margin-top: 8px !important;
  }

  .trust-grid div {
    padding: 8px 4px !important;
    border-radius: 12px !important;
    text-align: center;
  }

  .trust-grid strong {
    font-size: 12px !important;
    margin-bottom: 2px !important;
    white-space: nowrap;
  }

  .trust-grid span {
    font-size: 9.5px !important;
    line-height: 1.2 !important;
    display: block;
  }

  /* Form on mobile */
  .redeem-card {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    font-size: 26px;
    border-radius: 14px;
    margin-bottom: 10px;
  }

  .redeem-card h2 {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .card-desc {
    font-size: 12.5px;
    margin-bottom: 12px;
  }

  label {
    margin: 10px 0 6px;
    font-size: 12.5px;
  }

  .input-wrap {
    padding: 4px;
  }

  input {
    font-size: 15px;
    padding: 10px 8px;
  }

  #paste-button {
    padding: 0 12px;
    font-size: 12px;
  }

  .primary-button {
    padding: 12px 16px;
    font-size: 14px;
    margin-top: 10px;
  }

  /* Result section mobile */
  .result-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .result-hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .account-summary {
    min-width: 100%;
  }

  .cookie-repair-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .repair-btn-vip {
    width: 100%;
    justify-content: center;
  }

  .device-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .steps article {
    padding: 16px;
    border-radius: 18px;
  }

  .faq {
    padding: 20px 16px;
    border-radius: 20px;
  }
}
