:root {
  color-scheme: dark;
  --yellow: #ffca35;
  --yellow-hover: #ffd766;
  --yellow-active: #e6b325;
  --yellow-glow: rgba(255, 202, 53, 0.18);
  --bg: #141414;
  --surface: #1e1e1e;
  --surface-raised: #252525;
  --surface-hover: #2d2d2d;
  --border: #383838;
  --border-subtle: #2b2b2b;
  --border-focus: #ffca35;
  --text: #faf8f0;
  --text-pure: #ffffff;
  --muted: #c8c6be;
  --muted-dark: #8c8a82;
  --danger: #ef4444;
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.12);
  --warning-border: #806820;
  --warning-bg: #231d10;
  --info-border: #225178;
  --info-bg: #0f1d28;
  --privacy-border: #4d4b45;
  --privacy-bg: #1a1a1a;
  font-family: 'Roboto Flex', Roboto, system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
}

/* Links & Typography */
a {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--yellow-hover);
  text-decoration-thickness: 2px;
}

h1, h2, h3, h4, p {
  margin-top: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-pure);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 12px;
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.3;
  font-weight: 600;
  color: var(--text-pure);
  margin-bottom: 8px;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  line-height: 1.55;
  max-width: 68ch;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--yellow);
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
}

/* Buttons & Inputs */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button,
a.button {
  min-height: 48px;
  min-width: 48px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 28px;
  border: 1px solid transparent;
  background-color: var(--yellow);
  color: #1a1a1a;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
  user-select: none;
  touch-action: manipulation;
}

button:hover,
a.button:hover {
  background-color: var(--yellow-hover);
  color: #111111;
  text-decoration: none;
}

button:active,
a.button:active {
  background-color: var(--yellow-active);
  transform: scale(0.98);
}

.button-whatsapp,
.button-whatsapp-primary {
  background-color: #25d366;
  color: #0b2e13;
}

.button-whatsapp:hover,
.button-whatsapp-primary:hover {
  background-color: #2ee673;
  color: #05200b;
}

.button-telegram,
.button-telegram-secondary {
  background-color: #229ed9;
  color: #052033;
}

.button-telegram:hover,
.button-telegram-secondary:hover {
  background-color: #3bb3ed;
  color: #02121d;
}

.secondary,
.store-btn-secondary {
  background-color: transparent !important;
  border: 1px solid var(--yellow) !important;
  color: var(--yellow) !important;
}

.secondary:hover,
.store-btn-secondary:hover {
  background-color: var(--yellow-glow) !important;
  color: var(--yellow-hover) !important;
}

/* Accessible Focus Rings */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
.chip:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 3px;
}

/* Layout Wrappers */
.wrap {
  width: min(1040px, calc(100% - 32px));
  margin-inline: auto;
  box-sizing: border-box;
}

main {
  flex: 1 0 auto;
  padding-block: 32px 64px;
  min-width: 0;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background-color: #171717;
  position: relative;
  z-index: 10;
  width: 100%;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  min-width: 0;
}

.header-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo {
  width: 160px;
  max-width: 100%;
  height: auto;
  display: block;
}

.header-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
  overflow-wrap: anywhere;
}

.nav-link:hover {
  color: var(--text-pure);
  background-color: var(--surface-raised);
}

.nav-link.is-current {
  color: var(--yellow);
  background-color: rgba(255, 202, 53, 0.08);
  font-weight: 700;
}

/* Navigation skip link */
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-200%);
  z-index: 1000;
  background: var(--yellow);
  color: #1a1a1a;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

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

[hidden] {
  display: none !important;
}

/* Preview Bar (Admin) - Thin, Sticky Top Bar */
.preview-banner {
  background-color: #241d08;
  border-bottom: 2px solid var(--yellow);
  color: var(--text);
  padding-block: 8px;
  font-size: 0.88rem;
  margin-bottom: 24px;
  border-radius: 8px;
}

.preview-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-inline: 16px;
}

.preview-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--yellow);
  display: inline-block;
}

.badge-untested {
  background-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid #7f1d1d;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-details {
  border: 0;
  padding: 0;
  margin: 0;
}

.preview-details summary {
  cursor: pointer;
  color: var(--yellow);
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.preview-details summary:hover {
  background-color: rgba(255, 202, 53, 0.1);
}

.preview-details p {
  margin-top: 8px;
  padding: 12px;
  background-color: #17140b;
  border: 1px solid #4a3e14;
  border-radius: 6px;
  font-size: 0.84rem;
}

.preserve {
  white-space: pre-wrap;
}

/* Navigation Back Link */
.tutorial-nav-bar {
  margin-bottom: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: var(--surface);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  min-height: 44px;
}

.back-link:hover {
  color: var(--text-pure);
  background-color: var(--surface-raised);
  border-color: var(--border);
}

/* Compact Hero for Tutorial Detail */
.tutorial-hero {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: linear-gradient(180deg, #242424 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 32px;
}

.tutorial-hero-avatar {
  flex-shrink: 0;
}

.app-icon,
.app-icon-fallback {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  background-color: #2b2b2b;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--yellow);
  overflow: hidden;
}

img.app-icon {
  display: block;
  object-fit: cover;
  background-color: #1a1a1a;
}

.app-card .app-icon,
.app-card .app-icon-fallback {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  font-size: 1.6rem;
}

.tutorial-hero .app-icon,
.tutorial-hero .app-icon-fallback {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex-shrink: 0;
}

.tutorial-hero-body {
  flex: 1;
  min-width: 0;
}

.tutorial-title {
  margin-bottom: 8px;
}

.tutorial-lead {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.tutorial-meta-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.methods-chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  line-height: 1.4;
}

.method-chip,
.method-badge {
  background-color: rgba(255, 202, 53, 0.12);
  color: var(--yellow);
  border: 1px solid rgba(255, 202, 53, 0.35);
}

.official-site-link {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: underline;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.official-site-link:hover {
  color: var(--yellow);
  background-color: var(--surface-raised);
}

/* Sections on Tutorial Page */
.tutorial-section {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 32px;
}

.section-badge-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.section-step-badge {
  background-color: var(--yellow);
  color: #1a1a1a;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.section-heading {
  margin: 0;
  font-size: 1.35rem;
}

.section-intro {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 0.96rem;
}

/* Device Selector Cards & Chips */
.device-groups-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.device-group-card {
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
}

.device-group-title {
  font-size: 0.92rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.75px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.device-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.device-chip {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background-color: #2b2b2b;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  user-select: none;
  touch-action: manipulation;
}

.device-chip:hover {
  background-color: var(--surface-hover);
  border-color: #555555;
  color: var(--text-pure);
  text-decoration: none;
}

.device-chip.is-active {
  background-color: #2f2812;
  border: 2px solid var(--yellow);
  color: var(--text-pure);
  box-shadow: 0 0 12px var(--yellow-glow);
}

.device-chip-icon {
  font-size: 1.15rem;
}

.device-chip-active-check {
  color: var(--yellow);
  font-weight: 800;
  margin-left: 4px;
}

.device-reset-row {
  margin-top: 16px;
  text-align: right;
}

.clear-device-link {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: underline;
  padding: 8px 12px;
  display: inline-block;
  min-height: 44px;
}

.clear-device-link:hover {
  color: var(--yellow);
}

.device-warning {
  margin-top: 16px;
}

/* Store Downloads Section */
.store-quick-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 18px;
  background-color: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.quick-filter-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.quick-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.quick-chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: #242424;
  border: 1px solid #3c3c3c;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 38px;
  max-width: 100%;
}

.quick-chip:hover {
  background-color: #2e2e2e;
  border-color: var(--yellow);
  color: var(--yellow);
}

.quick-chip.is-active {
  background-color: var(--yellow);
  border-color: var(--yellow);
  color: #111111;
  font-weight: 800;
}

.store-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  margin-bottom: 24px;
  min-width: 0;
}

.store-card {
  background-color: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.store-card:hover {
  border-color: #555555;
}

.store-card.is-highlighted {
  border-color: var(--yellow);
  background: linear-gradient(180deg, #242013 0%, #1a1a1a 100%);
  box-shadow: 0 0 0 1px rgba(255, 202, 53, 0.35), 0 8px 24px rgba(0, 0, 0, 0.45);
}

.store-card.is-dimmed {
  opacity: 0.45;
}

.store-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.store-card-header-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: #262626;
  border: 1px solid #3c3c3c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
}

.store-card.is-highlighted .store-card-header-icon {
  background-color: rgba(255, 202, 53, 0.15);
  border-color: var(--yellow);
}

.store-card-header-info {
  flex: 1;
  min-width: 0;
}

.store-card-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.store-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.store-highlight-badge {
  display: none;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  background-color: var(--yellow);
  color: #111111;
  letter-spacing: 0.3px;
}

.store-card.is-highlighted .store-highlight-badge {
  display: inline-flex;
}

.store-card-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-pure);
  margin: 0;
  line-height: 1.25;
}

.store-card-platforms {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.store-card-platforms-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.store-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.store-card-chips .platform-tag {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  padding: 4px 10px;
  background-color: #252525;
  border: 1px solid #383838;
  color: var(--muted);
  border-radius: 8px;
}

.store-card.is-highlighted .store-card-chips .platform-tag {
  border-color: #4a452a;
  color: #f0ede0;
}

.store-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

a.button.store-card-btn {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 12px;
  background-color: #252525;
  border: 1px solid #484848;
  color: var(--text-pure);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 48px;
  transition: all 0.15s ease;
}

a.button.store-card-btn:hover {
  background-color: #303030;
  border-color: var(--yellow);
  color: var(--yellow-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

a.button.store-card-btn:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 3px;
}

a.button.store-card-btn.is-primary {
  background-color: var(--yellow);
  border-color: var(--yellow);
  color: #111111;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(255, 202, 53, 0.28);
}

a.button.store-card-btn.is-primary:hover {
  background-color: var(--yellow-hover);
  border-color: var(--yellow-hover);
  color: #000000;
  box-shadow: 0 6px 18px rgba(255, 202, 53, 0.4);
}

.store-btn-text {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
}

.store-btn-arrow {
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: transform 0.15s ease;
}

.store-card-btn:hover .store-btn-arrow {
  transform: translateX(3px);
}

.store-official-site-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background-color: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: 8px;
}

.official-site-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.official-site-icon {
  font-size: 1.6rem;
}

.official-site-title {
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 2px;
  font-size: 0.98rem;
}

.official-site-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

a.button.store-official-site-btn {
  background-color: transparent;
  border: 1px solid #4a4a4a;
  color: var(--text);
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

a.button.store-official-site-btn:hover {
  background-color: #262626;
  border-color: var(--yellow);
  color: var(--yellow);
}

@media (max-width: 600px) {
  .store-cards-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .store-official-site-card {
    flex-direction: column;
    align-items: stretch;
  }
  .store-official-site-btn {
    width: 100%;
  }
}

.store-buttons-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-btn {
  min-height: 56px;
  min-width: min(100%, 260px);
  padding: 12px 18px;
  border-radius: 14px;
  background-color: #1f1f1f;
  border: 1px solid #444444;
  color: var(--text-pure);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  text-decoration: none;
  font-weight: normal;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  touch-action: manipulation;
}

.store-btn:hover {
  background-color: #282828;
  border-color: var(--yellow);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

.store-btn:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 3px;
}

.store-btn-secondary {
  background-color: #181818;
  border-color: #4a4a4a;
}

.store-btn-secondary:hover {
  background-color: #242424;
  border-color: var(--yellow);
}

.store-btn-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--yellow);
}

.store-svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}

.store-btn-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.25;
}

.store-btn-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--yellow);
  display: block;
}

.store-btn:hover .store-btn-title {
  color: var(--yellow-hover);
}

.store-btn-platform {
  font-size: 0.82rem;
  color: #e0ded8;
  display: block;
  margin-top: 3px;
}

.no-downloads-box {
  background-color: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
}

.no-downloads-title {
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 6px;
}

/* Timeline Vertical Line & Steps */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--yellow) 0%, #444444 80%, transparent 100%);
  z-index: 1;
}

.timeline-step,
.timeline-extra {
  position: relative;
  margin-bottom: 24px;
  padding-left: 56px;
}

.timeline-step:last-child,
.timeline-extra:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #242010;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  z-index: 2;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
}

.timeline-step.is-completed .timeline-marker {
  background-color: var(--success);
  border-color: var(--success);
  color: #0b2e13;
}

.timeline-content {
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.timeline-step.is-completed .timeline-content {
  border-color: #1a4d29;
  background-color: #17241b;
}

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

.step-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.step-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 12px;
  background-color: #1e1e1e;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  user-select: none;
  min-height: 44px;
  touch-action: manipulation;
  transition: all 0.15s ease;
}

.step-check-label:hover {
  background-color: var(--surface-hover);
  color: var(--text-pure);
}

.step-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--success);
  cursor: pointer;
}

.step-text {
  color: #ededed;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 16px;
  white-space: pre-line;
}

.step-text:last-child {
  margin-bottom: 0;
}

/* Timeline Figures with Enlarged Preview */
.step-figure {
  margin: 16px 0 0;
}

.step-image-link {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: #111111;
  cursor: zoom-in;
  text-decoration: none;
}

.step-image-link img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.step-image-link:hover img {
  transform: scale(1.015);
}

.zoom-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(20, 20, 20, 0.85);
  border: 1px solid #555555;
  color: var(--text-pure);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.step-caption {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
  font-style: italic;
}

/* Notice Blocks (Warning / Info / Privacy) */
.notice {
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background-color: var(--surface-raised);
  margin-block: 8px;
}

.notice-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.notice-icon {
  font-size: 1.25rem;
}

.notice p {
  margin-bottom: 0;
  color: #ecebe6;
  font-size: 0.96rem;
}

.notice.warning {
  border-left: 4px solid var(--yellow);
  background-color: var(--warning-bg);
  border-color: var(--warning-border);
}

.notice.warning strong {
  color: var(--yellow);
}

.notice.info {
  border-left: 4px solid #38bdf8;
  background-color: var(--info-bg);
  border-color: var(--info-border);
}

.notice.info strong {
  color: #38bdf8;
}

.notice.notice-privacy {
  border-left: 4px solid #94a3b8;
  background-color: var(--privacy-bg);
  border-color: var(--privacy-border);
}

.notice.notice-privacy strong {
  color: #cbd5e1;
}

/* Copy Block Cards */
.copy-card {
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-block: 8px;
}

.copy-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.copy-card-icon {
  font-size: 1.15rem;
}

.copy-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-pure);
}

.copy-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.copy-input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #555555;
  background-color: #171717;
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1rem;
  font-weight: 600;
  min-height: 48px;
}

.copy-button {
  flex-shrink: 0;
  min-width: 100px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 10px;
}

.copy-hint {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* FAQ Details */
.tutorial-faq {
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  margin-block: 8px;
}

.faq-summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-pure);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq-summary:hover {
  color: var(--yellow);
}

.faq-content {
  padding-top: 10px;
  color: var(--muted);
  border-top: 1px solid var(--border-subtle);
  margin-top: 8px;
}

.faq-content p {
  margin: 0;
}

/* Video Card */
.video-card {
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-block: 8px;
}

.video-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.video-icon {
  font-size: 1.3rem;
}

.video-title {
  margin: 0;
  font-size: 1.15rem;
}

.video-disclaimer {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.video-slot iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  margin-top: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.video-external {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Help Section / Support Card */
.help-section {
  margin-top: 40px;
  margin-bottom: 24px;
}

.help-card {
  background: linear-gradient(135deg, #1f2a1b 0%, var(--surface) 100%);
  border: 1px solid #2f5e34;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.help-heading {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #72f293;
}

.help-desc {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
}

.help-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-icon {
  font-size: 1.2rem;
}

.editorial-date {
  font-size: 0.84rem;
  text-align: center;
  margin-top: 24px;
}

/* ========================================================
   INDEX PAGE STYLES (/tutoriais)
   ======================================================== */
.index-hero {
  margin-bottom: 36px;
}

.index-title {
  margin-bottom: 12px;
}

.filters-panel {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin-block: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-pure);
  margin-bottom: 8px;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  font-size: 1.15rem;
  pointer-events: none;
  color: var(--muted);
}

.search-input-wrap input[type="search"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px 12px 48px;
  border-radius: 12px;
  border: 1px solid #555555;
  background-color: var(--bg);
  color: var(--text-pure);
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input-wrap input[type="search"]:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 10px var(--yellow-glow);
}

.filter-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 44px;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: 10px;
}

.filter-chip.is-active {
  background-color: #332b13;
  border-color: var(--yellow);
  color: var(--yellow-hover);
  font-weight: 700;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.button-filter-submit {
  min-width: 130px;
}

.clear-filters-link {
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: underline;
  padding: 8px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.results-count {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}

/* Cards Grid on Index */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  min-width: 0;
}

@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

.card.app-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.card.app-card:hover {
  transform: translateY(-2px);
  border-color: #555555;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.app-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.app-card-title-wrap {
  flex: 1;
  min-width: 0;
}

.app-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.app-card-title a {
  color: var(--text-pure);
  text-decoration: none;
}

.app-card-title a:hover {
  color: var(--yellow);
}

.app-card-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.app-card-resumo {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.app-card-platforms {
  background-color: var(--surface-raised);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 20px;
}

.platforms-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--muted-dark);
  margin-bottom: 8px;
}

.platforms-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.platform-tag {
  background-color: #171717;
  border: 1px solid var(--border-subtle);
  color: #dfdeda;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 6px;
}

.tag-more {
  background-color: #2e2815;
  border-color: #55441a;
  color: var(--yellow);
  font-weight: 700;
}

.app-card-action {
  margin-top: auto;
}

.app-card-btn {
  width: 100%;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  background-color: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 20px;
  margin-block: 24px;
}

.empty-state-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
}

.empty-state-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--text-pure);
}

.empty-state-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: 24px;
}

.empty-state-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Not Found Page */
.not-found-card {
  text-align: center;
  padding: 64px 24px;
  max-width: 600px;
  margin-inline: auto;
}

.not-found-title {
  margin-bottom: 16px;
}

.not-found-actions {
  margin-top: 24px;
}

/* Footer */
.site-footer {
  background-color: #0f0f0f;
  border-top: 1px solid var(--border);
  padding-block: 40px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footer-logo {
  width: 140px;
}

.footer-prompt {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.footer-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-copy {
  color: var(--muted-dark);
  font-size: 0.84rem;
  margin: 0;
  margin-top: 8px;
}

/* Responsive Overrides */
@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 24px);
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .logo {
    width: 130px;
  }

  .header-nav {
    justify-content: flex-end;
    gap: 6px;
  }

  .nav-link {
    font-size: 0.88rem;
    padding: 6px 10px;
  }

  main {
    padding-top: 20px;
    padding-bottom: 48px;
  }

  .tutorial-hero {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .tutorial-section {
    padding: 18px 16px;
  }

  .device-group-card {
    padding: 12px;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-step,
  .timeline-extra {
    padding-left: 48px;
  }

  .timeline-marker {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
    top: 14px;
  }

  .timeline-content {
    padding: 16px;
  }

  .copy-row {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-button {
    width: 100%;
  }

  .store-btn {
    width: 100%;
  }

  .help-card {
    padding: 20px;
  }

  .help-card-actions {
    flex-direction: column;
  }

  .button-whatsapp-primary,
  .button-telegram-secondary {
    width: 100%;
  }
}

/* Narrow screens down to 320px */
@media (max-width: 360px) {
  .wrap {
    width: calc(100% - 16px);
  }

  .logo {
    width: 110px;
  }

  .header-nav {
    gap: 4px;
  }

  .nav-link {
    padding: 6px 8px;
    font-size: 0.82rem;
  }

  button,
  a.button {
    padding: 10px 14px;
    font-size: 0.9rem;
    gap: 6px;
  }

  .timeline-step,
  .timeline-extra {
    padding-left: 38px;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline-marker {
    width: 26px;
    height: 26px;
    font-size: 0.82rem;
    top: 12px;
  }

  .timeline-content {
    padding: 14px 12px;
  }

  .device-chip {
    width: 100%;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  .section-badge-header {
    flex-wrap: wrap;
    gap: 6px;
  }

  .section-heading {
    font-size: 1.15rem;
  }
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
