:root {
  --bg: #f8f9fe;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-bg-strong: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(15, 23, 42, 0.09);
  --border: rgba(15, 23, 42, 0.09);
  --border-hover: rgba(14, 165, 233, 0.5);
  --text: #1e293b;
  --text-muted: #5f6368;
  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --accent: #38bdf8;
  --gradient: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #2563eb 100%);
  --radius: 34px;
  --radius-sm: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
}

a,
button,
label,
[role="button"],
a:focus,
a:active,
a:focus-visible,
button:focus,
button:active,
button:focus-visible {
  outline: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: clip;
  touch-action: manipulation;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}

img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

main {
  flex: 1;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transform: translateZ(0);
  background-color: var(--bg);
  background-image: linear-gradient(to bottom,
      #6ec1ff 0%,
      #9fd7ff 130px,
      #d6eeff 255px,
      #f8f9fe 380px);
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Avatar Flutuante */
.floating-avatar {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 60;
  width: 68px;
  height: auto;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: block;
}

.floating-avatar img {
  width: 100%;
  height: auto;
  display: block;
}

/* Ações Flutuantes no Canto Superior Direito */
.floating-top-right {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.floating-top-right .search-box {
  height: 36px;
  width: 175px;
  min-width: 0;
  padding: 0 0.45rem 0 0.8rem;
  gap: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.08);
}

.floating-top-right .search-box > svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.floating-top-right .search-box input {
  font-size: 0.85rem;
  flex: 1;
  min-width: 0;
}

.floating-lock {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .floating-lock:hover {
    opacity: 0.82;
  }
}

.floating-lock svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Botões no Canto Inferior Direito junto aos Créditos (Instagram + TikTok) */
.floating-bottom-right {
  position: absolute;
  bottom: 10px;
  right: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.floating-instagram,
.floating-tiktok {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #26a5e4;
  color: #ffffff;
}

.floating-instagram svg,
.floating-tiktok svg {
  width: 13px;
  height: 13px;
  display: block;
}

.floating-instagram:hover,
.floating-tiktok:hover {
  background: #1e93ce;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-outline {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--border-hover);
  background: rgba(56, 189, 248, 0.16);
}

.btn-ghost {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  color: var(--text);
  background: #f1f5f9;
  border-color: var(--border-hover);
}

/* Topo do site (clique no título abre o Painel Administrativo) */
.top-intro {
  padding: 20px 260px 0 24px;
  min-height: 76px;
  display: flex;
  align-items: center;
}

.top-intro h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.admin-title-link {
  color: inherit;
  text-decoration: none;
  user-select: none;
}

.top-intro p {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.profile-stats {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.stat-item strong {
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
}

.stat-dot {
  opacity: 0.5;
}

.follow-btn {
  position: relative;
  margin-left: 0.2rem;
  padding: 0.2rem 0.72rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--gradient);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

@keyframes followFlashSweep {
  0%,
  10% {
    transform: translateX(-130%) rotate(25deg);
  }
  42%,
  100% {
    transform: translateX(380%) rotate(25deg);
  }
}

.follow-btn.is-following {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text);
}

/* Programs Section */
.programs-section {
  padding: 0 0 2rem;
  margin-top: -10px;
}

.programs-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.programs-subtitle {
  color: var(--text-muted);
  font-size: 0.76rem;
  margin-bottom: 0.75rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.section-header.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-header h2 {
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.section-header p {
  color: var(--text-muted);
}

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

.search-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.95rem;
  min-width: 260px;
  color: var(--text-muted);
}

.search-box:focus-within {
  border-color: var(--accent);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 170px));
  justify-content: start;
  gap: 12px;
}

.programs-page {
  display: contents;
}

.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 274px;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 0 var(--radius) 0 var(--radius);
  overflow: hidden;
}

.program-card.is-featured {
  border: none;
  background: transparent;
}

.program-card.is-featured::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  z-index: 0;
  pointer-events: none;
  background: conic-gradient(
    from 0deg,
    #0284c7 0deg,
    #1d4ed8 55deg,
    #00e5ff 115deg,
    #ffffff 145deg,
    #00e5ff 165deg,
    #0284c7 180deg,
    #1d4ed8 235deg,
    #00e5ff 295deg,
    #ffffff 325deg,
    #00e5ff 345deg,
    #0284c7 360deg
  );
  animation: spinGoldBorder 2.4s linear infinite;
  will-change: transform;
}

.program-card.is-featured::after {
  content: '';
  position: absolute;
  inset: 2.5px;
  z-index: 0;
  border-radius: 0 calc(var(--radius) - 2px) 0 calc(var(--radius) - 2px);
  background: #ffffff;
  pointer-events: none;
}

.program-card.is-featured .program-thumb {
  margin: 2.5px 2.5px 0;
  width: calc(100% - 5px);
  border-radius: 0 calc(var(--radius) - 2px) 0 0;
  z-index: 1;
}

@keyframes spinGoldBorder {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.program-thumb {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  z-index: 1;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
}

.program-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  display: block;
}

.program-card > .program-version {
  position: absolute;
  top: 11px;
  right: 16px;
  z-index: 2;
  background: transparent;
  color: #d97706;
}

.program-card.has-image > .program-version {
  color: #fbbf24;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.program-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0.9rem 0.85rem;
}

.program-card.has-image .program-body {
  margin-top: -16px;
  padding-top: 0.7rem;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
}

.program-card.is-featured.has-image .program-body {
  margin: -16px 2.5px 2.5px;
  width: calc(100% - 5px);
  padding: 0.7rem calc(0.9rem - 2.5px) calc(0.85rem - 2.5px);
  border-radius: 16px 16px 0 calc(var(--radius) - 2px);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.program-card h3 {
  font-size: 0.85rem;
  line-height: 1.25;
  color: var(--text);
}

.program-version {
  font-size: 0.68rem;
  font-weight: 700;
  color: #d97706;
  background: transparent;
  padding: 0;
  border-radius: 0;
  white-space: nowrap;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.card-actions .btn-download {
  flex: 1;
  padding: 0.52rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 0 var(--radius-sm) 0 var(--radius-sm);
}

.program-card.is-featured .card-actions .btn-download {
  position: relative;
  overflow: hidden;
  animation: featuredBtnPulse 2.2s ease-in-out infinite;
  will-change: transform;
}

.program-card.is-featured .card-actions .btn-download::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 30%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.25) 70%,
    transparent 100%
  );
  transform: translateX(-130%) rotate(25deg);
  animation: followFlashSweep 2.2s ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
}

@keyframes featuredBtnPulse {
  0%,
  55%,
  100% {
    transform: scale(1);
  }
  12% {
    transform: scale(1.06);
  }
  24% {
    transform: scale(0.98);
  }
  36% {
    transform: scale(1.05);
  }
  46% {
    transform: scale(0.99);
  }
}

.btn-delete {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-delete:hover {
  background: rgba(239, 68, 68, 0.26);
}

.programs-grid[hidden],
.empty-state[hidden],
.markdown-body[hidden],
.modal-form[hidden],
.blog-ad-banner[hidden],
.blog-ad-banner-img[hidden],
.blog-ad-fallback[hidden] {
  display: none !important;
}

.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  background: transparent;
  border: none;
}

.about-cta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 170px));
  justify-content: center;
  gap: 12px;
  margin-top: 1.05rem;
}

.about-btn {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.36rem 0.55rem 0.36rem 31px;
  border-radius: 0 14px 0 14px;
  border: 1px solid var(--glass-border);
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  touch-action: manipulation;
}

.about-btn * {
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .about-btn:hover {
    background: #f0f9ff;
  }
}

.about-btn-icon {
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient);
  color: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.about-btn-icon svg {
  width: 11px;
  height: 11px;
  display: block;
}

/* Banner (Logo Solto) */
.banner-section {
  padding: 0;
  margin-top: -18px;
}

.banner-box {
  width: 100%;
  height: auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-box img {
  width: auto;
  max-width: min(560px, 88%);
  height: auto;
  max-height: 175px;
  aspect-ratio: 832 / 291;
  object-fit: contain;
  display: block;
}

/* Footer */
.footer {
  position: relative;
  padding: 0.45rem 0;
  color: var(--text-muted);
  font-size: 0.62rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  font-weight: 600;
}

.footer-brand strong,
.footer-brand span {
  color: inherit;
  font-weight: inherit;
}

.verified-badge {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  display: inline-block;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(540px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.65rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  min-width: 0;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.93rem;
  outline: none;
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #f8fafc inset;
  transition: background-color 9999s ease-in-out 0s;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
}

.form-hint code {
  color: #0284c7;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 120;
  background: #ffffff;
  border: 1px solid var(--border-hover);
  color: var(--text);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

/* Botão voltar circular azul (harmonizado com os botões sociais) */
.admin-back-link {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 60;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #26a5e4;
  border: none;
  display: grid;
  place-items: center;
  color: #ffffff;
}

.admin-back-link:hover {
  background: #1e93ce;
}

.admin-back-link svg {
  width: 16px;
  height: 16px;
  display: block;
}

.admin-empty-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

.login-banner {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: -14px;
  cursor: default;
  user-select: none;
  outline: none;
}

.login-banner img {
  width: auto;
  max-width: min(360px, 86%);
  height: auto;
  max-height: 175px;
  object-fit: contain;
  display: block;
}

.login-card {
  position: relative;
  width: min(330px, 100%);
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.2rem 1.45rem;
}

.login-lock-badge {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.55rem;
  border-radius: 50%;
  background: var(--gradient);
  color: #ffffff;
  border: none;
  display: grid;
  place-items: center;
}

#loginBannerTrigger {
  user-select: none;
  outline: none;
}

.login-header {
  text-align: center;
  margin-bottom: 0.85rem;
}

.login-header h1 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

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

.login-error {
  font-size: 0.8rem;
  color: #dc2626;
  text-align: center;
}

.login-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-view[hidden],
.admin-dashboard[hidden] {
  display: none;
}

.admin-dashboard {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem 1.5rem 340px;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 310px;
  z-index: 50;
  background: #ffffff;
  border-right: 1px solid var(--glass-border);
  border-radius: 0 46px 46px 0;
  padding: 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.admin-sidebar::-webkit-scrollbar {
  display: none;
}

.admin-sidebar-brand {
  margin-bottom: 0.75rem;
}

.admin-sidebar-brand h1 {
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.admin-brand-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient);
  color: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.admin-brand-icon svg {
  width: 13px;
  height: 13px;
  display: block;
}

.admin-sidebar-brand p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.12rem;
}

.admin-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.32rem;
  margin-top: 0.48rem;
  padding: 0.2rem;
  border-radius: 12px;
  background: #f1f5f9;
}

.admin-tab {
  border: none;
  border-radius: 9px;
  padding: 0.34rem 0.5rem;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-tab.is-active {
  background: var(--gradient);
  color: #ffffff;
}

.admin-sidebar .modal-form {
  gap: 0.65rem;
}

.admin-sidebar .form-row {
  gap: 0.65rem;
}

.admin-sidebar .form-group {
  gap: 0.24rem;
}

.admin-sidebar .form-group label {
  font-size: 0.78rem;
}

.admin-sidebar .form-group input {
  padding: 0.52rem 0.75rem;
  font-size: 0.84rem;
  border-radius: 14px;
}

.admin-sidebar .input-with-icon input {
  padding-right: 2.15rem;
}

.admin-sidebar h2 {
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.admin-sidebar .btn-delete {
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-sidebar .modal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.admin-sidebar .modal-actions .btn {
  flex: 0 0 auto;
  min-width: 0;
  padding: 0.45rem 1.35rem;
  font-size: 0.8rem;
  text-align: center;
}

.admin-sidebar .modal-actions .btn-delete {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.admin-sidebar .modal-actions [hidden] {
  display: none;
}

.admin-followers-box {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.followers-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.followers-input-row input {
  flex: 1;
  min-width: 0;
}

.followers-input-row .btn {
  flex-shrink: 0;
  padding: 0.65rem 0.9rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon input[type="text"],
.input-with-icon input[type="number"] {
  padding-right: 2.35rem;
}

.input-with-icon input[type="number"]::-webkit-outer-spin-button,
.input-with-icon input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.input-with-icon input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.input-icon-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  cursor: pointer;
}

.input-icon-btn:hover {
  color: var(--primary);
}

.input-icon-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.image-preview-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.image-preview-wrap[hidden] {
  display: none;
}

.image-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-clear-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 0.72rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* Chave Liga / Desliga (Destaque do Card) */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.3rem 0;
  cursor: pointer;
}

.toggle-label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
}

.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

.admin-featured-star {
  color: #38bdf8;
  font-size: 0.92rem;
  line-height: 1;
  flex-shrink: 0;
}

.admin-content-area {
  width: min(430px, 100%);
}

.admin-dash-col h2 {
  font-size: 0.98rem;
  margin-bottom: 0.7rem;
}

.admin-form-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.admin-list {
  display: flex;
  flex-direction: column;
  max-height: 310px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.admin-list::-webkit-scrollbar {
  display: none;
}

.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.admin-item.is-clickable {
  cursor: pointer;
}

.admin-form-card .btn-delete {
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-item:last-child {
  border-bottom: none;
}

.admin-item-info {
  min-width: 0;
  flex: 1;
}

.admin-item-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
}

.admin-version-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
}

.admin-item-link {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-item .admin-delete-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: #ef4444;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.admin-item .admin-delete-btn:hover {
  color: #dc2626;
}

.admin-item .admin-delete-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Tela Quem Somos Nós */
.about-page-main {
  flex: 1;
  width: 100%;
  padding: 18px 64px 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-team-banner {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  width: min(440px, 100%);
  display: flex;
  justify-content: center;
  margin-bottom: -8px;
  position: relative;
  z-index: 1;
}

.about-team-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.about-layout {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 235px;
  column-gap: 0.8rem;
  row-gap: 0;
  align-items: stretch;
}

.about-card {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.3rem 1.55rem 1.1rem;
}

.about-card-header {
  margin-bottom: 0.7rem;
  padding-bottom: 0;
  border-bottom: none;
}

.about-eyebrow {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.about-card-header h1 {
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.about-lead {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.about-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.79rem;
  line-height: 1.62;
  color: var(--text-muted);
}

.about-card-content strong {
  color: var(--text);
  font-weight: 600;
}

.about-pillars {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.about-pillar {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 0.8rem 1rem;
}

.about-pillar h2 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.22rem;
}

.about-pillar p {
  font-size: 0.73rem;
  line-height: 1.48;
  color: var(--text-muted);
}

.about-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.about-card-footer strong {
  color: var(--text);
  font-weight: 600;
}

/* Tela Blog (Estilo GitHub README) */
.blog-page-main {
  flex: 1;
  width: 100%;
  padding: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.blog-brand-row {
  width: 100%;
  padding-top: 14px;
  display: flex;
  justify-content: center;
}

.blog-banner {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 0.4rem;
}

.blog-banner img {
  width: auto;
  max-width: min(330px, 78%);
  height: auto;
  max-height: 98px;
  aspect-ratio: 660 / 214;
  object-fit: contain;
  display: block;
}

.blog-card {
  width: min(720px, 92%);
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 0 1.4rem;
  display: flex;
  flex-direction: column;
}

.blog-card.is-empty {
  flex: 1;
  padding-bottom: 0;
  justify-content: center;
}

.markdown-body {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.markdown-body h1 {
  font-size: 1.32rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
}

.markdown-body h2 {
  font-size: 1.05rem;
  margin-top: 0.25rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.markdown-body h3 {
  font-size: 0.92rem;
}

.markdown-body p {
  color: var(--text-muted);
}

.markdown-body strong {
  color: var(--text);
  font-weight: 600;
}

.markdown-body a {
  color: var(--primary);
  font-weight: 600;
}

.markdown-body code {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.78rem;
  background: transparent;
  color: #0284c7;
  padding: 0;
}

.markdown-body pre {
  background: transparent;
  color: var(--text);
  padding: 0.25rem 0;
  border-radius: 0;
  overflow-x: auto;
}

.markdown-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 0.76rem;
}

.markdown-body blockquote {
  background: transparent;
  border-left: 3px solid var(--primary);
  padding: 0.1rem 0 0.1rem 0.75rem;
  border-radius: 0;
}

.markdown-body blockquote p {
  color: var(--text);
  font-size: 0.8rem;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.25rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.markdown-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.2rem 0;
}

.markdown-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.md-table-wrap {
  overflow-x: auto;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.markdown-body th,
.markdown-body td {
  text-align: left;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
}

.markdown-body th {
  background: transparent;
  color: var(--text);
  font-weight: 600;
}

.markdown-body td {
  color: var(--text-muted);
}

/* Banner quadrado conectado na parte superior do Blog (de ponta a ponta) */
.blog-ad-banner {
  width: 100%;
  margin-top: 0;
  padding-top: 0;
}

.blog-ad-card {
  display: block;
  width: 100%;
  background: #ffffff;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0 0 56px 56px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
}

.blog-ad-banner-img {
  height: 195px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.blog-ad-banner-img.is-full-banner {
  width: 100%;
  object-fit: fill;
  -webkit-mask-image: none;
  mask-image: none;
}

.blog-ad-fallback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
}

.blog-ad-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.blog-ad-kicker {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-ad-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-ad-cta {
  flex-shrink: 0;
  padding: 0.5rem 1.05rem;
  border-radius: 0 12px 0 12px;
  background: var(--gradient);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

a.floating-lock {
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* Tela de Apoio */
.support-page-main {
  flex: 1;
  width: 100%;
  padding: 0 0 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.support-body {
  flex: 1;
  width: min(440px, 92%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.9rem 0 0.35rem;
}

.support-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.28rem;
}

.support-heart-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.support-header h1 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin: 0;
}

.support-subtitle {
  font-size: 0.78rem;
  line-height: 1.42;
  color: #334155;
  max-width: 38ch;
  margin: 0 auto;
}

.support-qr-wrap {
  margin: 0.75rem 0 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.support-qr-box {
  width: min(182px, 100%);
  padding: 0.56rem;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 22px;
}

.support-qr-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
}

.support-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.42rem 0.95rem;
  border: none;
  border-radius: 999px;
  background: var(--gradient);
  color: #ffffff;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.support-download-btn.is-copied {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

@media (max-width: 1024px) {
  .container {
    width: min(716px, 92%);
  }

  .programs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-cta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .about-page-main {
    padding: 46px 24px 1.75rem;
  }

  .admin-dashboard {
    flex-direction: column;
    align-items: center;
    padding: 3.75rem 4% 2rem;
    gap: 1.15rem;
  }

  .admin-sidebar,
  .admin-content-area {
    position: static;
    width: min(520px, 100%);
  }

  .admin-sidebar {
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
  }
}

@media (max-width: 720px) {
  body {
    min-height: 100dvh;
  }

  .container {
    width: 93%;
  }

  /* Topo compacto estilo app no celular (rola junto para não tampar cards) */
  .floating-avatar {
    position: absolute;
    top: 10px;
    left: 12px;
    width: 38px;
  }

  .floating-top-right {
    position: absolute;
    top: 10px;
    right: 12px;
    left: auto;
    gap: 0.3rem;
    justify-content: flex-end;
  }

  .floating-top-right .search-box {
    height: 27px;
    min-width: 0;
    width: 124px;
    max-width: 38vw;
    padding: 0 0.38rem 0 0.58rem;
    gap: 0.28rem;
  }

  .floating-top-right .search-box > svg {
    width: 12px;
    height: 12px;
  }

  .floating-top-right .search-box input {
    font-size: 0.72rem;
  }

  .floating-lock {
    width: 18px;
    height: 18px;
  }

  .floating-lock svg {
    width: 14px;
    height: 14px;
  }

  .top-intro {
    padding: 10px 12px 0 14px;
    min-height: 48px;
    align-items: flex-start;
  }

  .top-intro h1 {
    font-size: 1.32rem;
    line-height: 1.15;
    padding-right: 130px;
    margin-bottom: 0.1rem;
  }

  .profile-stats {
    gap: 0.24rem;
    margin-top: 0.16rem;
    font-size: 0.56rem;
  }

  .stat-item strong {
    font-size: 0.67rem;
  }

  .follow-btn {
    margin-left: 0.08rem;
    padding: 0.1rem 0.42rem;
    font-size: 0.54rem;
  }

  /* Banner Love Tech e seção de programas */
  .banner-section {
    margin-top: 0.25rem;
  }

  .banner-box img {
    max-width: 78%;
    max-height: 86px;
  }

  .programs-section {
    margin-top: 0.1rem;
    padding: 0 0 1rem;
    overflow-x: hidden;
  }

  .programs-title {
    font-size: 0.98rem;
    margin-bottom: 0.1rem;
  }

  .programs-subtitle {
    font-size: 0.66rem;
    margin-bottom: 0.5rem;
  }

  .programs-section .container {
    width: min(90%, 294px);
  }

  .program-thumb img {
    width: 100%;
    height: 112%;
    margin-top: -6%;
    object-fit: fill;
  }

  /* Páginas 2x2 com deslize horizontal de borda a borda da tela (sem corte seco) */
  .programs-grid {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    display: flex;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .programs-grid::-webkit-scrollbar {
    display: none;
  }

  .programs-page {
    flex: 0 0 100vw;
    width: 100vw;
    padding: 0 calc(50vw - min(45vw, 147px));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 10px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .about-cta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .program-card {
    height: 214px;
    border-radius: 0 20px 0 20px;
  }

  .program-card.is-featured::after {
    border-radius: 0 18px 0 18px;
  }

  .program-card.is-featured .program-thumb {
    border-radius: 0 18px 0 0;
  }

  .program-card.is-featured.has-image .program-body {
    margin: -11px 2.5px 2.5px;
    padding: 0.42rem calc(0.52rem - 2.5px) calc(0.46rem - 2.5px);
    border-radius: 11px 11px 0 18px;
  }

  .program-card > .program-version {
    top: 7px;
    right: 10px;
    font-size: 0.56rem;
  }

  .program-body {
    padding: 0.34rem 0.52rem 0.46rem;
  }

  .program-card.has-image .program-body {
    margin-top: -11px;
    padding-top: 0.42rem;
    border-radius: 11px 11px 0 0;
  }

  .card-top {
    margin-bottom: 0.24rem;
  }

  .program-card h3 {
    font-size: 0.71rem;
  }

  .card-actions .btn-download {
    padding: 0.31rem 0.5rem;
    font-size: 0.67rem;
    border-radius: 0 10px 0 10px;
  }

  .about-cta {
    margin-top: 0.65rem;
  }

  /* Sem cards no celular: centraliza "Em Breve" e leva os botões para a parte inferior */
  #inicio.is-empty {
    display: flex;
    flex-direction: column;
  }

  .programs-section.is-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 0.65rem;
  }

  .programs-section.is-empty .container {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .programs-section.is-empty .empty-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
  }

  .programs-section.is-empty .about-cta {
    margin-top: auto;
  }

  .about-btn,
  .about-btn:hover,
  .about-btn:active,
  .about-btn:focus,
  .about-btn:focus-visible {
    position: relative;
    justify-content: center;
    padding: 0.3rem 0.4rem 0.3rem 25px;
    gap: 0;
    font-size: 0.65rem;
    border-radius: 0 10px 0 10px;
    background: #ffffff;
    border-color: var(--glass-border);
    outline: none;
    box-shadow: none;
    transform: none;
    transition: none;
    -webkit-tap-highlight-color: transparent;
  }

  .about-btn-icon {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
  }

  .about-btn-icon svg {
    width: 9px;
    height: 9px;
  }

  /* Rodapé com botões sociais acompanhando os créditos */
  .footer {
    font-size: 0.41rem;
    padding: 0.4rem 0 0.7rem;
  }

  .footer-content {
    gap: 0.04rem;
  }

  .footer-brand {
    gap: 0.14rem;
  }

  .footer .verified-badge {
    width: 8px;
    height: 8px;
  }

  .floating-bottom-right {
    bottom: 8px;
    right: 10px;
    gap: 0.34rem;
  }

  .floating-instagram,
  .floating-tiktok {
    width: 25px;
    height: 25px;
  }

  .floating-instagram svg,
  .floating-tiktok svg {
    width: 12.5px;
    height: 12.5px;
  }

  /* Tela Quem Somos Nós no celular */
  .admin-back-link {
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
  }

  .admin-back-link svg {
    width: 13px;
    height: 13px;
  }

  .about-page-main {
    justify-content: flex-start;
    padding: 32px 12px 1rem;
  }

  .about-team-banner {
    width: min(250px, 92%);
    margin-bottom: -5px;
  }

  .about-layout {
    width: min(296px, 92%);
    grid-template-columns: 1fr;
  }

  .about-card {
    border-radius: 18px;
    padding: 0.72rem 0.8rem 0.65rem;
  }

  .about-card-header {
    margin-bottom: 0.42rem;
    padding-bottom: 0.38rem;
  }

  .about-eyebrow {
    font-size: 0.54rem;
  }

  .about-card-header h1 {
    font-size: 0.88rem;
    margin-bottom: 0.12rem;
  }

  .about-lead,
  .about-card-content {
    font-size: 0.63rem;
    line-height: 1.42;
    gap: 0.35rem;
  }

  .about-card-footer {
    margin-top: 0.5rem;
    padding-top: 0.45rem;
    font-size: 0.58rem;
  }

  .about-pillars {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0.42rem;
    gap: 0.38rem;
  }

  .about-pillar {
    border-radius: 14px;
    padding: 0.48rem 0.68rem;
  }

  .about-pillar h2 {
    font-size: 0.66rem;
    margin-bottom: 0.12rem;
  }

  .about-pillar p {
    font-size: 0.61rem;
    line-height: 1.38;
  }

  /* Tela Apoio no celular */
  .support-page-main {
    justify-content: flex-start;
    padding: 0 0 1rem;
  }

  .support-body {
    width: min(370px, 94%);
    padding: 1.5rem 0 0.75rem;
  }

  .support-title-row {
    gap: 0.38rem;
    margin-bottom: 0.35rem;
  }

  .support-heart-icon {
    width: 19px;
    height: 19px;
  }

  .support-header h1 {
    font-size: 1.04rem;
    margin: 0;
  }

  .support-subtitle {
    font-size: 0.78rem;
    line-height: 1.44;
  }

  .support-qr-wrap {
    margin: 1rem 0 0;
    gap: 0.75rem;
  }

  .support-qr-box {
    width: min(214px, 100%);
    padding: 0.64rem;
    border-radius: 24px;
  }

  .support-qr-img {
    border-radius: 13px;
  }

  .support-download-btn {
    padding: 0.5rem 1.05rem;
    font-size: 0.78rem;
  }

  /* Tela Blog no celular */
  .blog-page-main {
    justify-content: flex-start;
    padding: 0 0 0.85rem;
  }

  .blog-brand-row {
    padding-top: 12px;
  }

  .blog-banner {
    margin-bottom: 0.3rem;
  }

  .blog-banner img {
    max-width: 58%;
    max-height: 58px;
  }

  .blog-card {
    width: min(318px, 94%);
    border-radius: 0;
    padding: 0 0 1rem;
  }

  .blog-card.is-empty {
    padding-bottom: 0;
  }

  .markdown-body {
    font-size: 0.66rem;
    line-height: 1.5;
    gap: 0.5rem;
  }

  .markdown-body h1 {
    font-size: 0.94rem;
    padding-bottom: 0.3rem;
  }

  .markdown-body h2 {
    font-size: 0.78rem;
    padding-bottom: 0.22rem;
  }

  .markdown-body h3 {
    font-size: 0.72rem;
  }

  .markdown-body code {
    font-size: 0.62rem;
  }

  .markdown-body blockquote {
    padding: 0.1rem 0 0.1rem 0.55rem;
  }

  .markdown-body blockquote p {
    font-size: 0.64rem;
  }

  .markdown-body table {
    font-size: 0.62rem;
  }

  .markdown-body th,
  .markdown-body td {
    padding: 0.3rem 0.45rem;
  }

  .blog-ad-banner {
    width: 100%;
    padding-top: 0;
  }

  .blog-ad-card {
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 0 0 38px 38px;
  }

  .blog-ad-banner-img,
  .blog-ad-banner-img.is-full-banner {
    width: 100%;
    height: 155px;
    object-fit: fill;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .blog-ad-fallback {
    gap: 0.55rem;
    padding: 0.65rem 0.9rem;
  }

  .blog-ad-info {
    gap: 0.14rem;
  }

  .blog-ad-kicker {
    font-size: 0.54rem;
  }

  .blog-ad-title {
    font-size: 0.82rem;
  }

  .blog-ad-cta {
    padding: 0.36rem 0.72rem;
    font-size: 0.66rem;
    border-radius: 0 10px 0 10px;
  }

  /* Tela Login e Painel Admin no celular */
  .admin-page {
    min-height: 100dvh;
  }

  .admin-empty-main {
    padding: 1.1rem 12px 0.45rem;
  }

  .login-view {
    margin-top: 0;
  }

  .login-banner {
    margin-bottom: -7px;
  }

  .login-banner img {
    max-width: min(195px, 66%);
    max-height: 96px;
  }

  .login-card {
    width: min(302px, 90%);
    border-radius: 22px;
    padding: 1.05rem 1.15rem;
  }

  .login-lock-badge {
    width: 32px;
    height: 32px;
    margin-bottom: 0.42rem;
  }

  .login-lock-badge svg {
    width: 15px;
    height: 15px;
  }

  .login-header {
    margin-bottom: 0.7rem;
  }

  .login-header h1 {
    font-size: 1.04rem;
  }

  .login-form {
    gap: 0.68rem;
  }

  .admin-dashboard {
    padding: 0.05rem 0 0.35rem;
    gap: 0.4rem;
  }

  .admin-sidebar,
  .admin-content-area {
    width: min(312px, 93%);
  }

  .admin-sidebar {
    padding: 0.56rem 0.68rem;
    border-radius: 16px;
    min-height: 356px;
  }

  .admin-sidebar-brand {
    margin-bottom: 0.34rem;
  }

  .admin-sidebar-brand h1 {
    font-size: 0.8rem;
  }

  .admin-brand-icon {
    width: 19px;
    height: 19px;
  }

  .admin-brand-icon svg {
    width: 10px;
    height: 10px;
  }

  .admin-sidebar-brand p {
    font-size: 0.57rem;
  }

  .admin-tabs {
    gap: 0.22rem;
    margin-top: 0.3rem;
    padding: 0.16rem;
    border-radius: 10px;
  }

  .admin-tab {
    padding: 0.24rem 0.4rem;
    font-size: 0.6rem;
    border-radius: 7px;
  }

  /* Login um pouco maior no celular */
  .login-form .form-group {
    gap: 0.22rem;
  }

  .login-form .form-group label {
    font-size: 0.72rem;
  }

  .login-form .form-group input {
    padding: 0.46rem 0.68rem;
    font-size: 0.78rem;
    border-radius: 12px;
  }

  /* Painel administrativo compacto no celular */
  .admin-sidebar .modal-form {
    flex: 1;
    gap: 0.32rem;
  }

  .admin-sidebar .form-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.32rem;
  }

  .admin-sidebar .form-group {
    gap: 0.11rem;
  }

  .admin-sidebar .form-group label {
    font-size: 0.6rem;
  }

  .admin-sidebar .form-group input,
  .admin-sidebar .form-group textarea {
    padding: 0.28rem 0.48rem;
    font-size: 0.66rem;
    border-radius: 9px;
  }

  .admin-sidebar .input-with-icon input {
    padding-right: 1.55rem;
  }

  .admin-sidebar .input-icon-btn {
    right: 4px;
    width: 18px;
    height: 18px;
  }

  .admin-sidebar .input-icon-btn svg {
    width: 11px;
    height: 11px;
  }

  .admin-sidebar .toggle-row {
    padding: 0.08rem 0;
  }

  .admin-sidebar .toggle-label {
    font-size: 0.62rem;
  }

  .admin-sidebar .toggle-switch {
    width: 30px;
    height: 16px;
  }

  .admin-sidebar .toggle-slider::before {
    width: 11px;
    height: 11px;
    left: 2.5px;
    top: 2.5px;
  }

  .admin-sidebar .toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(14px);
  }

  .admin-sidebar .modal-actions {
    gap: 0.34rem;
    margin-top: auto;
    padding-top: 0.25rem;
  }

  .admin-sidebar .modal-actions .btn {
    padding: 0.3rem 0.95rem;
    font-size: 0.66rem;
    border-radius: 9px;
  }

  .admin-form-card {
    padding: 0.44rem 0.6rem;
    border-radius: 16px;
  }

  .admin-dash-col h2 {
    font-size: 0.66rem;
    margin-bottom: 0.16rem;
  }

  .admin-item {
    padding: 0.18rem 0;
    gap: 0.25rem;
  }

  .admin-item-title {
    font-size: 0.62rem;
    gap: 0.2rem;
  }

  .admin-featured-star {
    font-size: 0.66rem;
  }

  .admin-version-tag {
    font-size: 0.53rem;
  }

  .admin-item-link {
    display: none;
  }

  .admin-item .admin-delete-btn {
    width: 17px;
    height: 17px;
  }

  .admin-item .admin-delete-btn svg {
    width: 11px;
    height: 11px;
  }

  .admin-list {
    min-height: 102px;
    max-height: 102px;
  }

  .admin-form-card .empty-state {
    min-height: 102px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
  }

  .admin-page .footer {
    padding: 0.3rem 0 0.55rem;
  }

  .controls {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .program-card {
    height: 208px;
  }

  .banner-box img {
    max-height: 78px;
  }
}

@media (max-width: 355px) {
  .floating-top-right .search-box {
    width: 112px;
  }

  .top-intro h1 {
    font-size: 1.18rem;
    padding-right: 118px;
  }

  .program-card {
    height: 186px;
  }

  .about-btn {
    font-size: 0.61rem;
    gap: 0.24rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .support-header h1 {
    font-size: 0.9rem;
  }
}