/* ── RESET & ROOT ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --g: #71ff55;
  --g2: #18dd44;
  --bg: #050805;
  --bg2: #0c0c0c;
  --text: #ffffff;
  --muted: rgb(165, 255, 112);
  --border: rgb(67, 168, 0);
  --border-h: rgb(76, 190, 0);
  --radius-card: 14px;
  --radius-inner: 10px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  min-height: 100vh;
  padding: 0 0 4rem;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 35% at 50% 100%, rgba(34, 255, 85, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 0% 60%, rgba(34, 255, 85, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 100% 20%, rgba(34, 255, 85, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── BACK BUTTON ── */
.btn-voltar {
  position: fixed;
  top: 1.1rem;
  left: 1.2rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: 'Space Mono', monospace;
  font-size: .63rem;
  letter-spacing: .08em;
  color: var(--g);
  text-decoration: none;
  background: rgba(34, 255, 85, .06);
  border: 1px solid rgba(34, 255, 85, .25);
  border-radius: 6px;
  padding: .42rem .9rem;
  transition: all .25s;
  overflow: hidden;
  white-space: nowrap;
  z-index: 100;
}

.btn-voltar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(34, 255, 85, 0);
  transition: background .25s;
}

.btn-voltar:hover {
  border-color: var(--g);
  color: #030803;
}

.btn-voltar:hover::before {
  background: var(--g);
}

.btn-voltar span {
  position: relative;
  z-index: 1;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--g);
  color: #030803;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: .04em;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: top 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  box-shadow: 0 6px 30px rgba(34, 255, 85, 0.3);
}

.toast.show { top: 20px; }

/* ── CONTAINER ── */
.container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 4rem;
}

/* ── HEADER ── */
.main-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.device-badge {
  display: inline-block;
  background: rgba(34, 255, 85, .06);
  border: 1px solid rgba(34, 255, 85, .25);
  color: var(--g);
  padding: 5px 16px;
  border-radius: 50px;
  font-family: 'Space Mono', monospace;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.main-header h1 {
  font-weight: 800;
  font-size: clamp(1.4rem, 5vw, 2rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: .5rem;
}

.main-header h1 .g { color: var(--g); }

.header-sub {
  font-family: 'Space Mono', monospace;
  font-size: .8rem;
  color: rgba(165, 255, 112, .55);
  line-height: 1.75;
}

/* ── STEP CARD ── */
.step-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  transition: border-color .3s, box-shadow .3s;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--g) 40%, var(--g2) 60%, transparent);
  opacity: .4;
  transition: opacity .3s;
}

.step-card:hover {
  border-color: var(--border-h);
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 20px rgba(34,255,85,.06);
}

.step-card:hover::before { opacity: 1; }

/* ── STEP BADGE ── */
.step-badge {
  display: inline-block;
  background: var(--g);
  color: #030803;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: .62rem;
  letter-spacing: .1em;
  padding: 4px 13px;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.step-title {
  font-weight: 800;
  font-size: clamp(1rem, 4vw, 1.2rem);
  color: #fff;
  line-height: 1.3;
  margin: 0 0 .6rem;
}

.step-instruction {
  font-family: 'Space Mono', monospace;
  font-size: .8rem;
  color: rgba(165, 255, 112, .55);
  line-height: 1.75;
  margin: 0 0 1rem;
}

.step-instruction strong { color: rgba(165, 255, 112, .9); }

/* ── COPY AREA ── */
.copy-area {
  background: #000;
  border: 1px solid rgba(34, 255, 85, .15);
  border-radius: var(--radius-inner);
  padding: 10px 10px 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: .5rem;
}

.code-text {
  font-family: 'Space Mono', monospace;
  font-size: .65rem;
  color: var(--g);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  opacity: .85;
  letter-spacing: .02em;
}

.btn-copy {
  background: var(--g);
  color: #030803;
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .15s, filter .15s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-copy:hover  { filter: brightness(1.12); }
.btn-copy:active { transform: scale(0.95); }

/* ── KEY BOX ── */
.key-box {
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(34, 255, 85, .1);
  border-radius: var(--radius-inner);
  padding: 1rem 1.2rem;
  margin-top: .75rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.key-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.os-label {
  font-family: 'Space Mono', monospace;
  color: rgba(165, 255, 112, .5);
  font-size: .75rem;
  min-width: 60px;
  font-weight: 700;
}

.keys {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

kbd {
  background: rgba(34, 255, 85, .07);
  border-radius: 6px;
  padding: 3px 10px;
  font-family: 'Space Mono', monospace;
  font-size: .78rem;
  border: 1px solid rgba(34, 255, 85, .25);
  border-bottom: 3px solid rgba(34, 255, 85, .45);
  color: var(--g);
}

.key-plus {
  font-family: 'Space Mono', monospace;
  color: rgba(165, 255, 112, .4);
  font-size: .7rem;
  padding: 0 2px;
}

/* ── NUMBERED STEPS ── */
.numbered-steps {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: .75rem;
}

.num-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Space Mono', monospace;
  font-size: .8rem;
  line-height: 1.7;
  color: rgba(165, 255, 112, .55);
}

.num-step strong { color: rgba(165, 255, 112, .9); }
.num-step em { color: rgba(165, 255, 112, .4); font-style: italic; }

.num {
  background: rgba(34, 255, 85, .1);
  border: 1px solid rgba(34, 255, 85, .28);
  color: var(--g);
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: .72rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── MINI STEPS ── */
.mini-steps {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-top: .9rem;
}

.mini-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(34, 255, 85, .03);
  border: 1px solid rgba(34, 255, 85, .1);
  border-radius: var(--radius-inner);
  padding: 12px 14px;
  font-family: 'Space Mono', monospace;
  font-size: .8rem;
  color: rgba(165, 255, 112, .55);
  line-height: 1.7;
}

.mini-step strong { color: rgba(165, 255, 112, .9); }
.mini-step-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }

/* ── TIP BOX ── */
.tip-box {
  background: rgba(34, 255, 85, .04);
  border-left: 3px solid rgba(34, 255, 85, .5);
  border-radius: 0 10px 10px 0;
  padding: 10px 14px;
  font-family: 'Space Mono', monospace;
  font-size: .78rem;
  color: rgba(165, 255, 112, .55);
  margin-top: 1rem;
  line-height: 1.7;
}

.tip-box strong { color: rgba(165, 255, 112, .9); }

/* ── ALERT BOX ── */
.alert-box {
  background: rgba(255, 200, 0, .06);
  padding: 12px 14px;
  border-radius: 10px;
  border-left: 3px solid rgba(255, 200, 0, .6);
  font-family: 'Space Mono', monospace;
  font-size: .78rem;
  margin-top: 1rem;
  color: rgba(255, 210, 100, .75);
  line-height: 1.7;
}

.alert-box strong { color: rgba(255, 200, 0, .9); }

/* ── HIGHLIGHT ── */
.highlight {
  color: var(--g);
  font-weight: 700;
}

/* ── VISIBILITY BY DEVICE ── */
.steps-mobile,
.steps-tablet  { display: none; }
.steps-desktop { display: block; }

@media (max-width: 599px) {
  .steps-mobile  { display: block; }
  .steps-tablet  { display: none;  }
  .steps-desktop { display: none;  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .steps-mobile  { display: none;  }
  .steps-tablet  { display: block; }
  .steps-desktop { display: none;  }
}

/* ── TABLET ── */
@media (min-width: 600px) and (max-width: 1023px) {
  .container { padding: 4.5rem 2rem 4rem; }
  .copy-area { flex-wrap: wrap; }
}

/* ── DESKTOP LARGE ── */
@media (min-width: 1200px) {
  .container { padding: 5rem 2rem 5rem; }
}