﻿*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg: #0c0c0e;
      --bg-surface: #131316;
      --bg-card: #18181d;
      --bg-card-hover: #1e1e25;
      --border: rgba(255,255,255,0.07);
      --border-hover: rgba(255,255,255,0.15);
      --text-primary: #f0eff5;
      --text-secondary: #8a8898;
      --text-muted: #4a4a5a;
      --accent: #7c6af7;
      --accent-glow: rgba(124,106,247,0.15);
      --accent-dim: rgba(124,106,247,0.08);
      --tag-prog: #1a2e1a;
      --tag-prog-text: #5fc97a;
      --tag-interop: #1a1f2e;
      --tag-interop-text: #5b8ff7;
      --tag-tut: #2a1f10;
      --tag-tut-text: #e8a04a;
      --tag-tools: #251a2a;
      --tag-tools-text: #c46ef0;
      --font-display: 'Syne', sans-serif;
      --font-body: 'DM Sans', sans-serif;
      --font-mono: 'DM Mono', monospace;
      --px: 1.25rem;
    }

    @media (min-width: 640px)  { :root { --px: 2rem; } }
    @media (min-width: 1024px) { :root { --px: clamp(2rem, 5vw, 4rem); } }

    html { scroll-behavior: smooth; scroll-padding-top: 60px; }

    body {
      background: var(--bg);
      color: var(--text-primary);
      font-family: var(--font-body);
      font-size: 15px;
      line-height: 1.6;
      min-height: 100vh;
      overflow-x: hidden;
      padding-top: 60px;
    }

    #artigos,
    #livros,
    #newsletter {
      scroll-margin-top: 60px;
    }

    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
      pointer-events: none;
      z-index: 0;
      opacity: 0.4;
    }

    /* NAV */
    .nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      width: 100%;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 var(--px);
      height: 60px;
      background: rgba(12,12,14,0.92);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
    }

    .nav-brand { display: flex; align-items: center; text-decoration: none; }

    .nav-name {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 16px;
      color: var(--text-primary);
      letter-spacing: -0.3px;
    }

    .nav-links {
      display: none;
      align-items: center;
      gap: 1.5rem;
      list-style: none;
    }

    .nav-links a {
      color: var(--text-secondary);
      text-decoration: none;
      font-size: 14px;
      transition: color 0.2s;
    }

    .nav-links a:hover, .nav-links a.active { color: var(--text-primary); }

    .nav-cta {
      background: var(--accent-dim);
      border: 1px solid rgba(124,106,247,0.3);
      color: var(--accent) !important;
      padding: 6px 14px;
      border-radius: 6px;
      font-size: 13px !important;
      transition: background 0.2s !important;
    }

    .nav-cta:hover { background: var(--accent-glow) !important; }

    .nav-hamburger {
      display: flex;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 6px;
      border-radius: 6px;
      transition: background 0.2s;
    }

    .nav-hamburger:hover { background: var(--bg-card); }

    .nav-hamburger span {
      display: block;
      width: 22px;
      height: 2px;
      background: var(--text-secondary);
      border-radius: 2px;
      transition: transform 0.25s, opacity 0.25s, width 0.25s;
    }

    .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
    .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-drawer {
      display: none;
      position: fixed;
      top: 60px;
      left: 0;
      right: 0;
      z-index: 99;
      background: rgba(12,12,14,0.97);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
      padding: 1rem var(--px) 1.5rem;
      flex-direction: column;
    }

    .nav-drawer.open { display: flex; }

    .nav-drawer a {
      display: block;
      color: var(--text-secondary);
      text-decoration: none;
      font-size: 15px;
      padding: 0.75rem 0;
      border-bottom: 1px solid var(--border);
      transition: color 0.2s;
    }

    .nav-drawer a:last-child { border-bottom: none; }
    .nav-drawer a:hover, .nav-drawer a.active { color: var(--text-primary); }

    .nav-drawer .nav-cta {
      margin-top: 0.75rem;
      display: inline-block;
      border-bottom: none !important;
    }

    @media (min-width: 768px) {
      .nav-links { display: flex; }
      .nav-hamburger { display: none; }
      .nav-drawer { display: none !important; }
    }

    /* HERO */
    .hero {
      position: relative;
      padding: 3rem var(--px) 2rem;
      overflow: hidden;
    }

    .hero-bg-grid {
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(124,106,247,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124,106,247,0.04) 1px, transparent 1px);
      background-size: 48px 48px;
      mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
      pointer-events: none;
    }

    .hero-glow {
      position: absolute;
      top: -120px;
      left: 50%;
      transform: translateX(-50%);
      width: min(600px, 100vw);
      height: 300px;
      background: radial-gradient(ellipse, rgba(124,106,247,0.12) 0%, transparent 70%);
      pointer-events: none;
    }

    .hero-content { position: relative; max-width: 640px; }

    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.3; }
    }

    .hero h1 {
      font-family: var(--font-display);
      font-size: clamp(2rem, 8vw, 3.4rem);
      font-weight: 800;
      line-height: 1.1;
      letter-spacing: -0.03em;
      color: var(--text-primary);
    }

    .hero h1 span { color: var(--accent); }

    @media (min-width: 640px) { .hero { padding-top: 4rem; padding-bottom: 2.5rem; } }

    /* ARTICLES SECTION */
    .articles-section { padding: 0 var(--px) 3rem; }

    /* SEARCH BAR */
    .search-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 0 14px;
      margin-top: 1.75rem;
      transition: border-color 0.2s;
    }

    .search-bar:focus-within { border-color: rgba(124,106,247,0.4); }
    .search-bar svg { color: var(--text-muted); flex-shrink: 0; }

    .search-bar input {
      flex: 1;
      background: none;
      border: none;
      outline: none;
      color: var(--text-primary);
      font-family: var(--font-body);
      font-size: 14px;
      padding: 13px 0;
      min-width: 0;
    }

    .search-bar input::placeholder { color: var(--text-muted); }

    .search-clear {
      background: none;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      font-size: 13px;
      padding: 4px;
      border-radius: 4px;
      display: none;
      transition: color 0.2s;
      flex-shrink: 0;
    }

    .search-clear:hover { color: var(--text-primary); }
    .search-clear.visible { display: block; }

    /* FILTER BAR */
    .filter-bar {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 1.5rem 0 1.25rem;
      overflow-x: auto;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }

    .filter-bar::-webkit-scrollbar { display: none; }

    .filter-btn, .book-filter-btn {
      display: flex;
      align-items: center;
      gap: 6px;
      background: none;
      border: 1px solid var(--border);
      color: var(--text-secondary);
      padding: 7px 14px;
      border-radius: 20px;
      font-family: var(--font-body);
      font-size: 13px;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.18s;
      flex-shrink: 0;
      -webkit-tap-highlight-color: transparent;
    }

    .filter-btn:hover, .book-filter-btn:hover {
      border-color: var(--border-hover);
      color: var(--text-primary);
    }

    .filter-btn.active, .book-filter-btn.active {
      background: var(--accent-dim);
      border-color: rgba(124,106,247,0.4);
      color: var(--accent);
    }

    .filter-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

    /* COUNT */
    .articles-count {
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--text-muted);
      margin-bottom: 1rem;
    }

    /* CARDS GRID - mobile first: 1 col */
    .cards-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 14px;
    }

    .cards-list {
      display: contents;
    }

    .cards-grid.is-loading {
      opacity: 0.65;
      pointer-events: none;
    }

    @media (min-width: 480px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (min-width: 900px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
    @media (min-width: 1200px) { .cards-grid { grid-template-columns: repeat(4, 1fr); } }

    /* POST CARD */
    .post-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 14px;
      overflow: hidden;
      cursor: pointer;
      text-decoration: none;
      display: flex;
      flex-direction: column;
      transition: border-color 0.2s, transform 0.22s, background 0.2s;
      -webkit-tap-highlight-color: transparent;
    }

    @media (hover: hover) {
      .post-card:hover {
        border-color: var(--border-hover);
        background: var(--bg-card-hover);
        transform: translateY(-3px);
      }
      .post-card:hover .card-cover img { transform: scale(1.04); }
      .post-card:hover .card-arrow { background: var(--accent-glow); }
    }

    .post-card.hidden { display: none; }

    .card-cover {
      position: relative;
      height: 160px;
      overflow: hidden;
      background: #0e0e12;
    }

    .card-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.4s ease;
      opacity: 0.85;
    }

    .card-cover-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
    }

    .cover-pattern, .cover-icon, .cover-number { display: none; }

    /* Cover empty state */
    .cover-empty {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--bg-card);
      color: var(--text-muted);
    }

    .cover-empty svg {
      opacity: 0.35;
      flex-shrink: 0;
    }

    .card-cover .cover-empty {
      border: 1px dashed var(--border);
      border-radius: 0;
    }

    .book-cover--empty {
      background: var(--bg-card);
    }

    .book-cover--empty .cover-empty {
      position: absolute;
      inset: 0;
      border: 1px dashed var(--border);
      border-radius: 7px;
    }

    .book-cover--empty .book-cover-inner {
      background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.65) 100%);
    }

    .modal-cover--empty .modal-cover-overlay {
      opacity: 0.35;
    }

    .modal-cover-empty,
    .modal-thumb-empty {
      position: absolute;
      inset: 0;
    }

    .modal-cover-empty .cover-empty {
      border: none;
      background: #0e0e12;
    }

    .modal-thumb-empty {
      position: absolute;
      inset: 0;
      border-radius: 8px;
      overflow: hidden;
    }

    .modal-thumb-empty .cover-empty--modal-thumb {
      border: 1px dashed var(--border);
      border-radius: 8px;
    }

    .modal-thumb-empty .cover-empty--modal-thumb svg {
      width: 28px;
      height: 28px;
    }

    .card-body {
      padding: 1rem 1.1rem 1.1rem;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .post-tag {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-family: var(--font-mono);
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.05em;
      padding: 3px 8px;
      border-radius: 5px;
      text-transform: uppercase;
      width: fit-content;
      margin-bottom: 0.6rem;
    }

    .tag-programacao        { background: var(--tag-prog);   color: var(--tag-prog-text); }
    .tag-interoperabilidade { background: var(--tag-interop); color: var(--tag-interop-text); }
    .tag-tutoriais          { background: var(--tag-tut);    color: var(--tag-tut-text); }
    .tag-ferramentas        { background: var(--tag-tools);  color: var(--tag-tools-text); }

    .card-title {
      font-family: var(--font-display);
      font-size: 14px;
      font-weight: 700;
      line-height: 1.35;
      letter-spacing: -0.01em;
      color: var(--text-primary);
      margin-bottom: 0.4rem;
    }

    @media (min-width: 640px) { .card-title { font-size: 15px; } }

    .card-desc {
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.6;
      flex: 1;
      margin-bottom: 0.9rem;
    }

    .card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 0.75rem;
      border-top: 1px solid var(--border);
    }

    .card-date { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

    .card-arrow {
      width: 24px;
      height: 24px;
      border-radius: 6px;
      background: var(--accent-dim);
      border: 1px solid rgba(124,106,247,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent);
      font-size: 13px;
      transition: background 0.2s;
    }

    /* EMPTY STATE */
    .empty-state {
      display: none;
      grid-column: 1 / -1;
      padding: 3rem 0;
      text-align: center;
      color: var(--text-muted);
      font-family: var(--font-mono);
      font-size: 13px;
    }

    /* PAGINATION */
    .pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: 1.75rem 0 2.25rem;
      flex-wrap: wrap;
    }

    .page-btn {
      min-width: 36px;
      height: 36px;
      padding: 0 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: none;
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text-secondary);
      font-family: var(--font-mono);
      font-size: 13px;
      cursor: pointer;
      transition: all 0.18s;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
    }

    .page-btn:hover:not(:disabled) { border-color: var(--border-hover); color: var(--text-primary); }
    .page-btn.active { background: var(--accent-dim); border-color: rgba(124,106,247,0.4); color: var(--accent); }
    .page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

    .page-ellipsis {
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-mono);
      font-size: 13px;
      color: var(--text-muted);
      user-select: none;
    }

    /* NEWSLETTER */
    .newsletter {
      margin: 1rem 0 0;
      background: var(--bg-surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
      position: relative;
      overflow: hidden;
    }

    .newsletter::before {
      content: '';
      position: absolute;
      top: -60px; right: -60px;
      width: 220px; height: 220px;
      background: radial-gradient(circle, rgba(124,106,247,0.08) 0%, transparent 70%);
      pointer-events: none;
    }

    .newsletter-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; margin-bottom: 0.4rem; }
    .newsletter h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); margin-bottom: 0.3rem; }
    .newsletter p { font-size: 13px; color: var(--text-secondary); }

    .newsletter-form {
      display: flex;
      flex-direction: column;
      gap: 8px;
      width: 100%;
    }

    .newsletter-input {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text-primary);
      font-family: var(--font-body);
      font-size: 14px;
      padding: 11px 14px;
      outline: none;
      width: 100%;
      transition: border-color 0.2s;
      -webkit-appearance: none;
    }

    .newsletter-input:focus { border-color: rgba(124,106,247,0.4); }
    .newsletter-input::placeholder { color: var(--text-muted); }

    .newsletter-btn {
      background: var(--accent);
      border: none;
      border-radius: 8px;
      color: #fff;
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 500;
      padding: 12px 20px;
      cursor: pointer;
      transition: opacity 0.2s;
      width: 100%;
      -webkit-appearance: none;
    }

    .newsletter-btn:hover { opacity: 0.85; }

    @media (min-width: 640px) {
      .newsletter {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        padding: 2rem 2.5rem;
      }
      .newsletter-form { flex-direction: row; flex-shrink: 0; width: auto; }
      .newsletter-input { width: 210px; }
      .newsletter-btn { width: auto; white-space: nowrap; }
    }

    /* BOOKS SECTION */
    .books-section {
      padding: 2.5rem var(--px) 3.5rem;
      border-top: 1px solid var(--border);
    }

    .books-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0; }

    .books-title {
      font-family: var(--font-display);
      font-size: 19px;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .books-title::after { content: ''; display: block; width: 28px; height: 2px; background: var(--accent); border-radius: 2px; }

    /* BOOKS GRID - mobile first: 3 col */
    .books-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }

    @media (min-width: 480px) { .books-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
    @media (min-width: 640px) { .books-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
    @media (min-width: 900px) { .books-grid { grid-template-columns: repeat(6, 1fr); gap: 18px; } }
    @media (min-width: 1200px) { .books-grid { grid-template-columns: repeat(7, 1fr); gap: 20px; } }

    .book-card {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      text-decoration: none;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }

    .book-cover {
      position: relative;
      width: 100%;
      aspect-ratio: 2/3;
      border-radius: 7px;
      overflow: hidden;
      border: 1px solid var(--border);
      transition: transform 0.22s, border-color 0.2s, box-shadow 0.22s;
      background: #111;
    }

    @media (hover: hover) {
      .book-card:hover .book-cover {
        transform: translateY(-5px) rotate(-1.5deg);
        border-color: var(--border-hover);
        box-shadow: 8px 16px 40px rgba(0,0,0,0.5);
      }
    }

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

    .book-cover-inner {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 0.6rem;
      background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.75) 100%);
    }

    .book-spine { display: none; }

    .book-cover-title {
      font-family: var(--font-display);
      font-size: 10px;
      font-weight: 700;
      line-height: 1.3;
      color: #fff;
      text-shadow: 0 1px 8px rgba(0,0,0,0.7);
    }

    @media (min-width: 640px) { .book-cover-title { font-size: 12px; } }

    .book-cover-author { font-family: var(--font-mono); font-size: 9px; color: rgba(255,255,255,0.6); margin-top: 3px; }

    .book-meta { display: flex; flex-direction: column; gap: 2px; }

    .book-name {
      font-family: var(--font-body);
      font-size: 11px;
      font-weight: 500;
      color: var(--text-primary);
      line-height: 1.35;
    }

    @media (min-width: 640px) { .book-name { font-size: 12px; } }
    @media (min-width: 900px) { .book-name { font-size: 13px; } }

    .book-author { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }

    .book-badge { display: none; }

    /* BOOK MODAL */
    .modal-backdrop {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 200;
      background: rgba(0,0,0,0.75);
      backdrop-filter: blur(6px);
      align-items: center;
      justify-content: center;
      padding: 1.25rem;
    }

    .modal-backdrop.open { display: flex; }

    .modal {
      background: var(--bg-surface);
      border: 1px solid var(--border-hover);
      border-radius: 18px;
      width: 100%;
      max-width: 520px;
      max-height: 90vh;
      overflow-y: auto;
      position: relative;
      animation: modalIn 0.22s ease;
    }

    @keyframes modalIn {
      from { opacity: 0; transform: scale(0.95) translateY(12px); }
      to   { opacity: 1; transform: scale(1) translateY(0); }
    }

    .modal-close {
      position: absolute;
      top: 14px;
      right: 14px;
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      color: var(--text-secondary);
      font-size: 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s, color 0.2s;
      z-index: 1;
    }

    .modal-close:hover { background: var(--bg-card-hover); color: var(--text-primary); }

    .modal-cover {
      width: 100%;
      height: 200px;
      overflow: hidden;
      border-radius: 17px 17px 0 0;
      background: #0e0e12;
      position: relative;
    }

    .modal-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.6;
    }

    .modal-cover-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom, transparent 30%, var(--bg-surface) 100%);
    }

    .modal-cover-thumb {
      position: absolute;
      bottom: -36px;
      left: 1.5rem;
      width: 80px;
      height: 120px;
      border-radius: 8px;
      overflow: hidden;
      border: 2px solid var(--bg-surface);
      box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    }

    .modal-cover-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 1;
    }

    .modal-body {
      padding: 3rem 1.5rem 1.5rem;
    }

    .modal-category {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-family: var(--font-mono);
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.06em;
      padding: 3px 8px;
      border-radius: 5px;
      text-transform: uppercase;
      margin-bottom: 0.75rem;
    }

    .modal-title {
      font-family: var(--font-display);
      font-size: 20px;
      font-weight: 800;
      line-height: 1.2;
      letter-spacing: -0.02em;
      color: var(--text-primary);
      margin-bottom: 0.3rem;
    }

    .modal-author {
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--text-muted);
      margin-bottom: 1.25rem;
    }

    .modal-desc {
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.7;
      margin-bottom: 1.5rem;
    }

    .modal-action {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .modal-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 11px 24px;
      border-radius: 10px;
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      border: none;
      text-decoration: none;
      transition: opacity 0.2s, transform 0.15s;
      -webkit-tap-highlight-color: transparent;
    }

    .modal-btn:hover { opacity: 0.85; transform: translateY(-1px); }

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

    .modal-btn-free {
      background: #1a3520;
      color: #5fc97a;
      border: 1px solid rgba(95,201,122,0.25);
    }

    .modal-btn-free:hover { background: #1f3d26; }

    @media (min-width: 480px) {
      .modal-cover { height: 220px; }
      .modal-body { padding: 3.25rem 2rem 2rem; }
      .modal-title { font-size: 22px; }
    }

    /* FOOTER */
    .footer {
      border-top: 1px solid var(--border);
      padding: 1.5rem var(--px);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      text-align: center;
    }

    @media (min-width: 640px) {
      .footer { flex-direction: row; justify-content: space-between; text-align: left; }
    }

    .footer-brand { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text-primary); }
    .footer-links { display: flex; gap: 1.25rem; list-style: none; flex-wrap: wrap; justify-content: center; }
    .footer-links a { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
    .footer-links a:hover { color: var(--text-primary); }
    .footer-copy { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
