/* ==========================================================================
   Mais Uma IA — Materiais
   Paleta: azul neon ciano sobre fundo navy/preto (extraído do banner).
   ========================================================================== */

:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --bg-3: #0f1628;
  --surface: #111a2e;
  --surface-2: #16213a;
  --border: #1f2c4a;
  --border-strong: #2a3a5e;

  --text: #e8ecf5;
  --text-dim: #9aa6c2;
  --text-mute: #6b7693;

  --cyan: #00d4ff;
  --cyan-2: #22e3ff;
  --cyan-soft: rgba(0, 212, 255, 0.14);
  --cyan-glow: 0 0 0 1px rgba(0, 212, 255, 0.35), 0 0 24px rgba(0, 212, 255, 0.25);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(0, 212, 255, 0.15), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(0, 100, 255, 0.10), transparent 60%),
    var(--bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }

button { font: inherit; color: inherit; cursor: pointer; }

a { color: var(--cyan); text-decoration: none; }

::selection { background: var(--cyan); color: #001018; }

/* Scrollbar */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }
*::-webkit-scrollbar-thumb:hover { background: #3a4d78; }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero { position: relative; isolation: isolate; }

.hero__banner {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 2020 / 778;
  max-height: 460px;
  background: var(--bg);
}
.hero__banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Degradê nas laterais — faz a imagem se misturar com bg em vez de cortar abruptamente */
.hero__banner::before,
.hero__banner::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 12%;
  max-width: 140px;
  pointer-events: none;
  z-index: 2;
}
.hero__banner::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(5,7,13,0.6) 40%, transparent 100%);
}
.hero__banner::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg) 0%, rgba(5,7,13,0.6) 40%, transparent 100%);
}
@media (max-width: 520px) {
  .hero__banner { max-height: 220px; }
  .hero__banner::before,
  .hero__banner::after { width: 6%; }
}
.hero__fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg) 100%);
  pointer-events: none;
}

.hero__bar {
  position: relative;
  margin: -28px auto 0;
  padding: 14px 16px;
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  min-width: 0;
}
.hero__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: var(--cyan-glow);
  background: var(--bg-2);
  flex-shrink: 0;
}
.hero__brand-text {
  display: flex; flex-direction: column; line-height: 1.15;
  min-width: 0;
}
.hero__brand-text strong { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.hero__brand-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__yt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.hero__yt:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--cyan-glow);
}
.hero__yt svg { color: #ff4444; }
.hero__yt:hover svg { color: var(--cyan); }

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 16px 80px;
}

/* ==========================================================================
   TABS
   ========================================================================== */

.tabs {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.tabs__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs__inner::-webkit-scrollbar { display: none; }

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab svg { opacity: 0.75; transition: opacity 0.15s ease; }
.tab:hover { color: var(--text); }
.tab:hover svg { opacity: 1; }
.tab.is-active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.tab.is-active svg { opacity: 1; }

@media (min-width: 640px) {
  .tab { padding: 16px 22px; font-size: 15px; }
}

/* Panels */
.panel { display: none; animation: fadeIn 0.25s ease; }
.panel.is-active { display: block; }

.panel-intro {
  padding: 24px 0 4px;
  max-width: 760px;
}
.panel-intro__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
}
.panel-intro__text {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}
.panel-intro__text strong { color: var(--cyan); font-weight: 700; }
@media (min-width: 640px) {
  .panel-intro { padding: 32px 0 4px; }
  .panel-intro__title { font-size: 26px; }
  .panel-intro__text { font-size: 15px; }
}

/* ==========================================================================
   SEARCH
   ========================================================================== */

.search {
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search__field {
  position: relative;
  display: flex;
  align-items: center;
}
.search__icon {
  position: absolute;
  left: 16px;
  color: var(--text-mute);
  pointer-events: none;
}
.search__field input {
  width: 100%;
  padding: 16px 48px 16px 46px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}
.search__field input::placeholder { color: var(--text-mute); }
.search__field input:focus {
  border-color: var(--cyan);
  box-shadow: var(--cyan-glow);
  background: var(--surface-2);
}
.search__field input:focus + .search__clear,
.search__field:focus-within .search__icon { color: var(--cyan); }

.search__clear {
  position: absolute;
  right: 10px;
  width: 32px; height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--text-dim);
  display: grid; place-items: center;
  transition: all 0.15s ease;
}
.search__clear:hover { background: var(--border-strong); color: var(--text); }

.search__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-active {
  background: var(--cyan-soft);
  color: var(--cyan);
  border-color: rgba(0, 212, 255, 0.5);
}

/* ==========================================================================
   GRID + CARDS
   ========================================================================== */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (min-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.card {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 0;
  font: inherit;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover, .card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 212, 255, 0.4), 0 0 28px rgba(0, 212, 255, 0.18);
  outline: none;
}

.card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-3);
  overflow: hidden;
}
.card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card__thumb img { transform: scale(1.04); }

.card__play {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(5,7,13,0) 30%, rgba(5,7,13,0.6) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.card:hover .card__play, .card:focus-visible .card__play { opacity: 1; }
.card__play svg {
  width: 56px; height: 56px;
  color: #fff;
  filter: drop-shadow(0 0 12px rgba(0,212,255,0.8));
}

.card__badge {
  position: absolute;
  top: 10px; left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.95);
  color: #001018;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 212, 255, 0.45);
}
.card__badge svg { width: 12px; height: 12px; }

.card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-mute);
}

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-mute);
  font-size: 15px;
}

/* ==========================================================================
   COMUNIDADE
   ========================================================================== */

.community {
  display: grid;
  place-items: center;
  padding: 24px 0 16px;
}

.community__card {
  position: relative;
  width: 100%;
  max-width: 720px;
  padding: 26px 22px 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(0, 212, 255, 0.18), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-strong);
  text-align: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.community__card--free {
  border-color: rgba(0, 212, 255, 0.5);
}
.community__card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.6), transparent 40%, transparent 60%, rgba(0, 212, 255, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.community__header {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  margin-bottom: 14px;
}
.community__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.community__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.4), 0 0 18px rgba(37, 211, 102, 0.22);
}
.community__icon svg { width: 28px; height: 28px; }

.community__heading {
  flex: 1;
  min-width: 0;
}
.community__title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.community__lead {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.35;
}
.community__desc {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.55;
  text-align: left;
}

.community__perks {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  text-align: left;
}
@media (min-width: 560px) {
  .community__perks { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.community__perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease;
}
.community__perks li:hover { border-color: var(--border-strong); }
.community__perk-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--cyan-soft);
  color: var(--cyan);
  display: grid; place-items: center;
  margin-top: 1px;
}
.community__perk-icon svg { width: 14px; height: 14px; }
.community__perks li > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.community__perks strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.community__perks span {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}

.community__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 22px;
  border-radius: 12px;
  background: #25d366;
  color: #052e16;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}
.community__cta:hover {
  background: #1fb955;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  color: #052e16;
}
.community__cta:active { transform: translateY(0); }

.community__hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-mute);
  text-align: center;
}

@media (min-width: 640px) {
  .community__card { padding: 30px 28px 28px; }
  .community__title { font-size: 22px; }
  .community__lead { font-size: 14px; }
  .community__desc { font-size: 14px; }
}

/* ==========================================================================
   PRODUTOS
   ========================================================================== */

.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-top: 24px;
}
@media (min-width: 640px) {
  .products { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (min-width: 980px) {
  .products { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.product {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.product:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 28px rgba(0, 212, 255, 0.18);
}
.product__image {
  aspect-ratio: 16 / 9;
  background: var(--bg-3);
  overflow: hidden;
}
.product__image img { width: 100%; height: 100%; object-fit: cover; }
.product__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product__tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: max-content;
}
.product__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.product__desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
  flex: 1;
}
.product__price {
  margin: 6px 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.product__price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mute);
  margin-left: 4px;
}
.product__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 6px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--cyan);
  color: #001018;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.product__cta:hover {
  background: var(--cyan-2);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
  color: #001018;
}

/* ==========================================================================
   MODAL
   ========================================================================== */

.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 0;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 4, 10, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}

.modal__card {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: 100dvh;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  animation: pop 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  border-radius: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 720px) {
  .modal { padding: 24px; }
  .modal__card {
    border-radius: var(--radius-lg);
    max-height: calc(100dvh - 48px);
  }
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(5, 7, 13, 0.85);
  color: var(--text);
  display: grid; place-items: center;
  z-index: 110;
  transition: all 0.15s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal__close:hover {
  background: var(--cyan);
  color: #001018;
  border-color: var(--cyan);
}
@media (min-width: 720px) {
  .modal__close { top: 36px; right: 36px; }
}

.modal__media {
  background: #000;
}
.modal__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.modal__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal__body {
  padding: 20px 20px 24px;
}
@media (min-width: 720px) {
  .modal__body { padding: 24px 28px 28px; }
}

.modal__title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.015em;
}
@media (min-width: 720px) {
  .modal__title { font-size: 24px; }
}

.modal__desc {
  margin: 0 0 22px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.modal__h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

/* ==========================================================================
   MATERIALS
   ========================================================================== */

.materials {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.material {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.material:hover { border-color: var(--border-strong); }

.material--link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
}
.material--link:hover {
  border-color: var(--cyan);
  background: var(--surface-2);
}
.material--link .material__icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--cyan-soft);
  color: var(--cyan);
  display: grid; place-items: center;
}
.material--link .material__text { flex: 1; min-width: 0; }
.material--link .material__label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}
.material--link .material__url {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.material--link .material__arrow { color: var(--text-mute); flex-shrink: 0; }
.material--link:hover .material__arrow { color: var(--cyan); }

/* Accordion (prompt/text) */
.material--accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.material--accordion summary::-webkit-details-marker { display: none; }
.material--accordion[open] summary {
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.material--accordion .material__icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--cyan-soft);
  color: var(--cyan);
  display: grid; place-items: center;
}
.material--accordion .material__text { flex: 1; min-width: 0; }
.material--accordion .material__label {
  display: block;
  font-weight: 600;
  font-size: 14px;
}
.material--accordion .material__hint {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 2px;
}
.material--accordion .chevron {
  color: var(--text-mute);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.material--accordion[open] .chevron { transform: rotate(180deg); color: var(--cyan); }

/* Copy button INSIDE summary — always visible */
.material--accordion summary .btn-copy {
  padding: 7px 11px;
  font-size: 12px;
  flex-shrink: 0;
}
.material--accordion summary .btn-copy svg { width: 13px; height: 13px; }
@media (max-width: 480px) {
  .material--accordion summary { gap: 10px; padding: 12px 14px; }
  .material--accordion summary .btn-copy {
    padding: 7px 9px;
    font-size: 0;
    gap: 0;
  }
  .material--accordion summary .btn-copy svg { width: 16px; height: 16px; }
  .material--accordion summary .btn-copy.is-copied { font-size: 0; }
  .material--accordion .material__hint { display: none; }
}

.material__pane {
  padding: 14px 16px 16px;
  background: var(--bg-3);
}
.material__content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 380px;
  overflow-y: auto;
  margin: 0;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid var(--cyan);
  background: var(--cyan-soft);
  color: var(--cyan);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.15s ease;
}
.btn-copy:hover {
  background: var(--cyan);
  color: #001018;
}
.btn-copy.is-copied {
  background: #1aa86b;
  border-color: #1aa86b;
  color: #fff;
}

/* ==========================================================================
   TOAST
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--cyan);
  color: #001018;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(0, 212, 255, 0.35);
  z-index: 200;
  animation: toastIn 0.25s ease;
}
.toast[hidden] { display: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.foot {
  text-align: center;
  padding: 30px 20px 40px;
  color: var(--text-mute);
  font-size: 12px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.foot p { margin: 0; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Lock scroll when modal open */
body.is-locked { overflow: hidden; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
