/* =========================================================
   DESIGN SYSTEM — DO DITO SILÊNCIO
   Tema escuro (padrão) + tema claro
   ========================================================= */

:root {
    --bg:        #0d0d12;
    --bg-2:      #13131a;
    --surface:   #18181f;
    --surface-2: #1f1f28;
    --border:    #2a2a38;
    --text:      #f0ebe0;
    --text-2:    #c8c4b8;
    --muted:     #777;
    --accent:    #c9a84c;
    --accent-2:  #7c6b3a;
    --accent-glow: rgba(201,168,76,0.15);
    --danger:    #e05555;
    --success:   #5ab087;
    --logo-filter: brightness(0) invert(1);

    --font-poem: 'Cormorant Garamond', Georgia, serif;
    --font-ui:   'Inter', system-ui, sans-serif;

    --radius:    8px;
    --radius-lg: 16px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);

    --transition: 0.2s ease;
}

/* ── Tema claro ── */
[data-theme="light"] {
    --bg:        #faf8f4;
    --bg-2:      #f2ede5;
    --surface:   #ffffff;
    --surface-2: #f5f0e8;
    --border:    #ddd5c8;
    --text:      #1c1814;
    --text-2:    #4a4540;
    --muted:     #9a9088;
    --accent:    #8b5e2a;
    --accent-2:  #b07840;
    --accent-glow: rgba(139,94,42,0.12);
    --danger:    #c0392b;
    --success:   #27865a;
    --logo-filter: none;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.16);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

img { max-width: 100%; height: auto; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-main { flex: 1; }

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13,13,18,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text);
    opacity: 1;
}

.site-logo:hover { opacity: 1; }

.logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.logo-for-dark  { display: block; }
.logo-for-light { display: none; }

[data-theme="light"] .logo-for-dark  { display: none; }
[data-theme="light"] .logo-for-light { display: block; }

.site-title {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.title-main {
    font-family: var(--font-poem);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text);
    letter-spacing: 0.01em;
}

.title-sub {
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    color: var(--text-2);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 400;
    transition: all var(--transition);
}

.main-nav a:hover {
    color: var(--text);
    background: var(--surface-2);
    opacity: 1;
}

.main-nav .nav-admin {
    color: var(--accent);
}

.nav-cta {
    background: var(--accent) !important;
    color: var(--bg) !important;
    font-weight: 600 !important;
    padding: 0.5rem 1rem !important;
}

.nav-logout {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav-logout:hover { color: var(--danger); background: rgba(224,85,85,0.1); }

/* ── Botão de tema ── */
.btn-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-2);
    transition: all var(--transition);
    flex-shrink: 0;
}

.btn-theme-toggle:hover {
    border-color: var(--accent-2);
    color: var(--accent);
    background: var(--accent-glow);
}

.btn-theme-toggle .icon-sun  { display: none; }
.btn-theme-toggle .icon-moon { display: block; }

[data-theme="light"] .btn-theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .btn-theme-toggle .icon-moon { display: none; }

/* ── Header no tema claro ── */
[data-theme="light"] .site-header {
    background: rgba(250,248,244,0.92);
    border-bottom-color: var(--border);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all var(--transition);
}

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

.site-hero {
    position: relative;
    background:
        linear-gradient(135deg, #0a0a0d 0%, #111108 45%, #181508 100%);
    overflow: hidden;
    min-height: clamp(340px, 46vw, 520px);
    display: flex;
    flex-direction: column;
}

/* Textura de profundidade + brilho dourado central-esquerdo */
.site-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 72% 110%, rgba(140,95,0,.22) 0%, transparent 60%),
        radial-gradient(ellipse 40% 55% at 18% 45%,  rgba(196,144,32,.08) 0%, transparent 70%),
        radial-gradient(ellipse 25% 30% at 50% 0%,   rgba(196,144,32,.04) 0%, transparent 80%);
    pointer-events: none;
}

/* Painel direito: fade suave para trás da pena */
.site-hero::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 46%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(18,14,4,.5) 35%,
        rgba(22,17,5,.85) 100%
    );
    pointer-events: none;
}

/* Bordas douradas — mais finas e elegantes */
.hero-gold-line {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(196,144,32,.2) 10%,
        rgba(196,144,32,.7) 35%,
        rgba(196,144,32,.7) 65%,
        rgba(196,144,32,.2) 90%,
        transparent 100%
    );
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

/* Layout interior */
.site-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2.5rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 320px;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

/* ── Coluna de texto ── */

.site-hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-hero-badge {
    display: inline-block;
    border: 1px solid #c49020;
    border-radius: 100px;
    padding: 0.28rem 0.9rem;
    font-family: Georgia, serif;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c49020;
    margin-bottom: 1rem;
}

.site-hero-brand {
    font-family: Georgia, serif;
    font-size: 0.82rem;
    color: #a07820;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
}

.site-hero-headline {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-style: italic;
    font-weight: 400;
    color: #f5f0e8;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.1rem;
}

.site-hero-divider {
    width: clamp(160px, 24vw, 230px);
    height: 1px;
    background: linear-gradient(90deg, #c49020, transparent);
    opacity: 0.62;
    margin-bottom: 1.1rem;
}

.site-hero-sub {
    font-family: Georgia, serif;
    font-size: clamp(0.82rem, 1.35vw, 0.95rem);
    font-style: italic;
    color: #c8b89a;
    line-height: 1.9;
    letter-spacing: 0.01em;
    margin-bottom: 1.75rem;
}

.site-hero-cta {
    display: inline-block;
    border: 1.2px solid #c49020;
    border-radius: 4px;
    padding: 0.6rem 1.6rem;
    font-family: Georgia, serif;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c49020;
    text-decoration: none;
    transition: all 0.22s ease;
}

.site-hero-cta:hover {
    background: #c49020;
    color: #0f0f0e;
    opacity: 1;
    box-shadow: 0 0 20px rgba(196,144,32,.25);
}

/* ── Coluna decorativa (pena) ── */

.site-hero-deco {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 260px;
}

/* Oval dourado atrás da pena — glow cálido */
.hero-deco-oval {
    position: absolute;
    width: 340px;
    height: 420px;
    left: 50%;
    top: 50%;
    transform: translate(-44%, -50%);
    background: radial-gradient(
        ellipse 55% 65% at 50% 58%,
        rgba(120,80,0,.45)   0%,
        rgba(80,52,0,.28)   40%,
        transparent         100%
    );
    pointer-events: none;
}

/* Ilustração botânica — tamanho generoso */
.hero-feather {
    height: clamp(280px, 50vh, 420px);
    width: auto;
    opacity: 0.92;
    transform: rotate(15deg);
    transform-origin: center bottom;
    filter: drop-shadow(0 0 16px rgba(196,144,32,.2));
    position: relative;
    z-index: 1;
}

/* Tema escuro: folhas douradas */
.hero-feather .leaf-body {
    fill:   rgba(196,144,32,.14);
    stroke: rgba(196,144,32,.52);
    stroke-width: 1;
}
.hero-feather .leaf-calamus {
    fill:   rgba(196,144,32,.22);
    stroke: rgba(196,144,32,.6);
    stroke-width: 0.8;
}
.hero-feather .leaf-rachis {
    fill:   none;
    stroke: rgba(196,144,32,.6);
    stroke-width: 1.8;
    stroke-linecap: round;
}
.hero-feather .leaf-vein {
    fill:   none;
    stroke: rgba(196,144,32,.4);
    stroke-width: 0.5;
}

/* Pontos flutuantes dourados */
.hero-dot {
    position: absolute;
    border-radius: 50%;
    background: #c49020;
    z-index: 2;
}

.hero-dot--1 { width: 5px; height: 5px; top: 18%; right: 22%; opacity: .6; }
.hero-dot--2 { width: 4px; height: 4px; top: 10%; right: 14%; opacity: .4; }
.hero-dot--3 { width: 3px; height: 3px; top: 30%; right: 32%; opacity: .3; }

/* ── Tema claro ── */

/* 1. Fundo bege suave e uniforme — sem gradiente pesado */
[data-theme="light"] .site-hero {
    background: linear-gradient(90deg, #ede0c4 0%, #e8d9b8 100%);
}

[data-theme="light"] .site-hero::before {
    background:
        radial-gradient(ellipse 55% 60% at 70% 100%, rgba(100,62,0,.07) 0%, transparent 65%),
        radial-gradient(ellipse 30% 40% at 15% 45%,  rgba(210,185,130,.12) 0%, transparent 60%);
}

[data-theme="light"] .site-hero::after {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(200,178,130,.18) 40%,
        rgba(190,165,110,.28) 100%
    );
}

[data-theme="light"] .hero-gold-line {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(100,62,0,.15) 10%,
        rgba(100,62,0,.4) 35%,
        rgba(100,62,0,.4) 65%,
        rgba(100,62,0,.15) 90%,
        transparent 100%
    );
}

[data-theme="light"] .site-hero-badge {
    border-color: #5a3800;
    color: #5a3800;
}

[data-theme="light"] .site-hero-headline { color: #1a0e00; }

[data-theme="light"] .site-hero-divider {
    background: linear-gradient(90deg, #5a3800, transparent);
    opacity: 0.45;
}

[data-theme="light"] .site-hero-sub { color: #3a2200; }

/* 4. Botão preenchido (filled) em vez de outline */
[data-theme="light"] .site-hero-cta {
    background: #7a5010;
    border-color: #7a5010;
    color: #fdf6e3;
    font-weight: 500;
}

[data-theme="light"] .site-hero-cta:hover {
    background: #5c3a0a;
    border-color: #5c3a0a;
    color: #fff8e8;
    box-shadow: 0 4px 20px rgba(90,56,0,.35);
    opacity: 1;
}

/* Oval quase invisível no claro — a pena "flutua" sobre o bege */
[data-theme="light"] .hero-deco-oval {
    background: radial-gradient(
        ellipse 55% 65% at 50% 60%,
        rgba(100,62,0,.06) 0%,
        transparent 70%
    );
}

[data-theme="light"] .hero-dot { background: #5a3800; opacity: .45; }

/* 2. Gravura botânica — corpo preenchido + contorno escuro + nervuras douradas */
[data-theme="light"] .hero-feather {
    filter: drop-shadow(0 3px 12px rgba(28,16,8,.14));
    opacity: 1;
}

[data-theme="light"] .hero-feather .leaf-body {
    fill:   rgba(61,43,10,0.17);
    stroke: #2C1A06;
    stroke-width: 1.8;
    stroke-linejoin: round;
}
[data-theme="light"] .hero-feather .leaf-calamus {
    fill:   rgba(61,43,10,0.28);
    stroke: #2C1A06;
    stroke-width: 1.4;
}
[data-theme="light"] .hero-feather .leaf-rachis {
    fill:   none;
    stroke: #2C1A06;
    stroke-width: 2.2;
    stroke-linecap: round;
}
[data-theme="light"] .hero-feather .leaf-vein {
    fill:   none;
    stroke: #8B6420;
    stroke-width: 0.9;
    opacity: 0.9;
}

/* 2. Navbar separado: fundo branco vs bege do hero */
[data-theme="light"] .site-header {
    background: rgba(250,250,248,.96) !important;
    border-bottom: 1px solid rgba(180,140,60,.2);
}

/* ── Responsivo ── */

@media (max-width: 860px) {
    .site-hero-inner {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.5rem;
    }
    .site-hero::after { display: none; }
    .site-hero-deco   { display: none; }
}

@media (max-width: 480px) {
    .site-hero-inner  { padding: 2rem 1.25rem; }
    .site-hero-badge  { font-size: 0.55rem; letter-spacing: 0.14em; }
}

/* Mantém .btn-read para páginas que ainda usam */
.btn-read {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.btn-read:hover {
    background: var(--accent);
    color: var(--bg);
    opacity: 1;
    box-shadow: 0 0 24px var(--accent-glow);
}

/* =========================================================
   POEMS GRID
   ========================================================= */

.poems-section { padding: 4rem 0 6rem; }

.section-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.section-title {
    font-family: var(--font-poem);
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text);
}

.poem-count {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.page-header {
    padding: 3rem 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title {
    font-family: var(--font-poem);
    font-size: 2rem;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-title svg { color: var(--accent); }

.poems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.poem-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.25s ease;
}

.poem-card:hover {
    border-color: var(--accent-2);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), 0 0 0 1px var(--accent-2);
}

.poem-card-inner {
    padding: 1.75rem;
}

.poem-card-title {
    font-family: var(--font-poem);
    font-size: 1.4rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.poem-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-2);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.poem-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--muted);
}

.poem-views {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.poem-card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.poem-card:hover .poem-card-accent { opacity: 1; }

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--muted);
}

.empty-state p { margin-bottom: 1.5rem; font-style: italic; }

/* =========================================================
   POEM PAGE
   ========================================================= */

.poem-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem 1.5rem 6rem;
}

.poem-container {
    width: 100%;
    max-width: 620px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    transition: color var(--transition);
}

.back-link:hover { color: var(--text); opacity: 1; }

.poem-header { margin-bottom: 2rem; text-align: center; }

.poem-title {
    font-family: var(--font-poem);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.poem-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--muted);
}

.poem-sep { color: var(--border); }

.poem-author { color: var(--accent); font-style: italic; }

.poem-views { display: flex; align-items: center; gap: 0.3rem; }

/* Ornamento poético */
.poem-ornament {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0;
}

.ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
}

.ornament-symbol {
    color: var(--accent);
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Corpo do poema */
.poem-body {
    font-family: var(--font-poem);
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 2;
    color: var(--text);
}

.poem-body .verse {
    display: block;
    min-height: 1.5em;
}

.poem-body .verse:empty { height: 0.8em; }

.poem-body .strophe-spacer {
    display: block;
    height: 2em;
}

.poem-body .poetic-emphasis {
    color: var(--accent);
    font-style: italic;
}

/* Ações do poema */
.poem-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn-favorite {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-2);
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    transition: all var(--transition);
}

.btn-favorite .icon-heart { transition: all var(--transition); }

.btn-favorite:hover {
    border-color: #e05580;
    color: #e05580;
}

.btn-favorite.is-favorited {
    background: rgba(224,85,128,0.1);
    border-color: #e05580;
    color: #e05580;
}

.btn-favorite.is-favorited .icon-heart { fill: #e05580; }

.share-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-2);
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    transition: all var(--transition);
}

.btn-share:hover {
    border-color: var(--accent-2);
    color: var(--text);
}

.btn-pix, .btn-donate-poem {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 1px solid var(--accent-2);
    border-radius: 100px;
    color: var(--accent);
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    transition: all var(--transition);
}

.btn-pix:hover, .btn-donate-poem:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
}

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

.site-footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.footer-logo {
    height: 32px;
    opacity: 0.5;
}

.footer-quote {
    font-family: var(--font-poem);
    font-style: italic;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--muted);
}

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

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition);
}

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

.pix-modal h2 {
    font-family: var(--font-poem);
    font-size: 1.75rem;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.pix-modal p {
    color: var(--text-2);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

#pix-qrcode {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

#pix-qrcode canvas, #pix-qrcode img {
    border-radius: var(--radius);
    border: 3px solid var(--accent-2);
    padding: 8px;
    background: white;
}

.pix-key {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.pix-key strong { color: var(--accent); font-size: 1rem; }

.btn-copy-pix {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    color: var(--bg);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-copy-pix:hover { background: #d4b255; }

/* =========================================================
   AUTH PAGES
   ========================================================= */

.auth-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.04) 0%, transparent 60%);
}

.auth-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}

.auth-ornament {
    text-align: center;
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.auth-title {
    font-family: var(--font-poem);
    font-size: 2rem;
    font-style: italic;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-sub {
    text-align: center;
    color: var(--muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.auth-link a { color: var(--accent); }

/* =========================================================
   FORMS
   ========================================================= */

.auth-form, .poem-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label, .form-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-2);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-group input, .form-input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    transition: border-color var(--transition);
    width: 100%;
}

.form-group input:focus, .form-input:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input--title {
    font-family: var(--font-poem);
    font-size: 1.5rem;
    font-style: italic;
    padding: 1rem 1.25rem;
    background: var(--bg-2);
}

.btn-submit {
    width: 100%;
    padding: 0.875rem;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    color: var(--bg);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: all var(--transition);
}

.btn-submit:hover {
    background: #d4b255;
    box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.alert-error {
    background: rgba(224,85,85,0.1);
    border: 1px solid rgba(224,85,85,0.3);
    color: #f08080;
}

.alert-success {
    background: rgba(90,176,135,0.1);
    border: 1px solid rgba(90,176,135,0.3);
    color: var(--success);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
    .header-inner { padding: 0 1rem; }

    .main-nav {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(13,13,18,0.97);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.25rem;
    }

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

    .main-nav a, .nav-logout {
        padding: 0.875rem 1rem;
        border-radius: var(--radius);
        width: 100%;
        text-align: left;
    }

    .nav-toggle { display: flex; }

    .site-title { display: none; }

    .container { padding: 0 1rem; }

    .poems-grid { grid-template-columns: 1fr; }

    .hero-inner { padding: 3rem 1.5rem; }

    .poem-page { padding: 2rem 1rem 4rem; }

    .auth-box { padding: 2rem 1.5rem; }

    .footer-inner { flex-direction: column; text-align: center; }

    .footer-brand { flex-direction: column; }

    .poem-actions { gap: 0.75rem; }

    .share-group { gap: 0.4rem; }
}

/* =========================================================
   PÁGINA SOBRE
   ========================================================= */

.about-page { min-height: calc(100vh - 72px); }

.about-hero {
    position: relative;
    height: 50vh;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-2);
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(201,168,76,0.07) 0%, transparent 65%);
}

.about-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.about-hero-title {
    font-family: var(--font-poem);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    font-style: italic;
    color: var(--text);
    margin: 0.75rem 0 0.5rem;
    line-height: 1.2;
}

.about-hero-sub {
    font-family: var(--font-poem);
    font-style: italic;
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem 6rem;
}

.about-section { margin-bottom: 5rem; }

.about-section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-section-inner--reverse { direction: rtl; }
.about-section-inner--reverse > * { direction: ltr; }

.about-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.about-section-title {
    font-family: var(--font-poem);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 300;
    font-style: italic;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.about-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.about-body p {
    font-family: var(--font-poem);
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-2);
    margin-bottom: 1.1rem;
}

.about-body p:last-child { margin-bottom: 0; }

.about-photo-col { display: flex; justify-content: center; }

.about-photo-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 460px;
    aspect-ratio: 4/3;
}

.about-photo-frame--portrait {
    aspect-ratio: 3/4;
    max-width: 340px;
}

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

.about-photo-placeholder {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 4/3;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.about-photo-placeholder--portrait {
    aspect-ratio: 3/4;
    max-width: 340px;
}

.about-separator {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0 0 5rem;
}

.about-separator span:first-child,
.about-separator span:last-child {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.sep-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-2);
    flex: 0 !important;
}

.about-cta {
    text-align: center;
    padding: 3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.about-cta p {
    font-family: var(--font-poem);
    font-style: italic;
    color: var(--text-2);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .about-container { padding: 3rem 1rem 4rem; }

    .about-section-inner,
    .about-section-inner--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 2rem;
    }

    .about-photo-frame,
    .about-photo-placeholder {
        max-width: 100%;
        aspect-ratio: 4/3;
    }

    .about-photo-frame--portrait,
    .about-photo-placeholder--portrait {
        max-width: 260px;
        aspect-ratio: 3/4;
        margin: 0 auto;
    }
}

/* =========================================================
   ACESSIBILIDADE
   ========================================================= */

/* Elementos apenas para leitores de tela */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Skip navigation — visível ao receber foco via teclado */
.skip-nav {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    background: var(--accent);
    color: var(--bg);
    padding: 0.6rem 1.25rem;
    border-radius: 0 0 var(--radius) var(--radius);
    font-weight: 700;
    font-size: 0.875rem;
    transition: top 0.15s;
    text-decoration: none;
}

.skip-nav:focus {
    top: 0;
    outline: 3px solid var(--text);
    outline-offset: 2px;
}

/* Foco visível para todos os elementos interativos */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Remove outline padrão — só usa :focus-visible */
:focus:not(:focus-visible) { outline: none; }

/* Animações reduzidas */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .modal-box { transform: none !important; }
}

/* =========================================================
   PLAYER DE LEITURA DO POEMA
   ========================================================= */

.poem-reader {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

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

.reader-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.reader-title svg { color: var(--accent); }

.reader-status {
    font-size: 0.75rem;
    color: var(--muted);
    font-style: italic;
}

/* Barra de progresso */
.reader-progress {
    height: 3px;
    background: var(--surface-2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.reader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Botões de controle */
.reader-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.reader-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-2);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
}

.reader-btn:hover:not(:disabled) {
    border-color: var(--accent-2);
    color: var(--accent);
}

.reader-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.reader-btn-play {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    font-weight: 600;
}

.reader-btn-play:hover {
    background: #d4b255;
    border-color: #d4b255;
    color: var(--bg) !important;
}

.reader-btn-mode {
    margin-left: auto;
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
}

/* Configurações expansíveis */
.reader-settings {
    margin-top: 0.875rem;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

.reader-settings-toggle {
    font-size: 0.78rem;
    color: var(--muted);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    user-select: none;
}

.reader-settings-toggle:hover { color: var(--text-2); }

.reader-settings-toggle::-webkit-details-marker { display: none; }

.reader-settings-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.875rem;
}

.reader-setting-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reader-setting-label {
    font-size: 0.78rem;
    color: var(--text-2);
    white-space: nowrap;
    min-width: 120px;
}

.reader-select {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.35rem 0.6rem;
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    flex: 1;
}

.reader-slider {
    flex: 1;
    accent-color: var(--accent);
    cursor: pointer;
}

.reader-unsupported {
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

/* Verso em destaque durante leitura */
.verse.reading-active {
    background: rgba(201,168,76,0.12);
    border-radius: 3px;
    outline: 2px solid rgba(201,168,76,0.4);
    outline-offset: 2px;
    transition: background 0.2s, outline 0.2s;
}

/* =========================================================
   ESTILOS ADMIN — SLIDERS TTS
   ========================================================= */

.tts-slider-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tts-hint-label {
    font-size: 0.72rem;
    color: var(--muted);
    white-space: nowrap;
}

.tts-slider {
    flex: 1;
    accent-color: var(--accent);
    cursor: pointer;
}

.tts-value {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
    min-width: 2.5rem;
    text-align: right;
}

.current-audio {
    padding: 0.75rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}

/* =========================================================
   DO MOMENTO — público
   ========================================================= */

.moment-section { padding: 3rem 0 1rem; }

.moment-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.moment-public-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

.moment-public-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.moment-public-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.875rem 1.25rem 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}

.moment-public-cover-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--surface-2);
}

.moment-public-cover-wrap--music { aspect-ratio: 1/1; }

.moment-public-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.moment-public-card:hover .moment-public-cover { transform: scale(1.03); }

/* Botão de play sobre a capa */
.moment-play-btn {
    position: absolute;
    bottom: 0.875rem;
    right: 0.875rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(13,13,18,0.85);
    backdrop-filter: blur(8px);
    border: 2px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.moment-play-btn:hover {
    background: var(--accent);
    color: var(--bg);
    transform: scale(1.08);
}

/* Barra de progresso do preview */
.moment-audio-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.moment-audio-progress {
    flex: 1;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.moment-audio-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    transition: width 0.3s linear;
}

.moment-audio-time {
    font-size: 0.72rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    min-width: 2.5rem;
    text-align: right;
}

.moment-public-info {
    padding: 1rem 1.25rem 1.25rem;
}

.moment-public-title {
    font-family: var(--font-poem);
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 400;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 0.3rem;
}

.moment-public-author {
    font-size: 0.85rem;
    color: var(--text-2);
    margin-bottom: 0.2rem;
}

.moment-public-year {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.moment-public-link {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--accent);
    margin-top: 0.5rem;
    letter-spacing: 0.03em;
}

.moment-public-link:hover { opacity: 0.75; }

@media (max-width: 600px) {
    .moment-public-grid { grid-template-columns: 1fr 1fr; }
    .moment-public-cover-wrap { aspect-ratio: 1/1; }
}

/* Home container com ordem flexível */
.home-container {
    display: flex;
    flex-direction: column;
}

/* =========================================================
   PÁGINAS LEGAIS (Termos e Política)
   ========================================================= */

.legal-page {
    min-height: calc(100vh - 72px);
    padding: 4rem 1.5rem 6rem;
}

.legal-container {
    max-width: 760px;
    margin: 0 auto;
}

.legal-header { margin-bottom: 2rem; }

.legal-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 1.5rem 0 0.6rem;
}

.legal-title {
    font-family: var(--font-poem);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 300;
    font-style: italic;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.legal-meta {
    font-size: 0.8rem;
    color: var(--muted);
}

.legal-ornament {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 2.5rem;
}

.legal-body { display: flex; flex-direction: column; gap: 0; }

.legal-section {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-child { border-bottom: none; }

.legal-section h2 {
    font-family: var(--font-poem);
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.875rem;
}

.legal-section p {
    font-size: 0.925rem;
    line-height: 1.85;
    color: var(--text-2);
    margin-bottom: 0.75rem;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
    margin: 0.5rem 0 0.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.legal-section li {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.7;
}

.legal-section a { color: var(--accent); }

.legal-highlight {
    background: var(--accent-glow);
    border: 1px solid var(--accent-2);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: var(--text-2);
    line-height: 1.7;
    margin-top: 0.75rem;
}

.legal-highlight strong { color: var(--accent); }

.legal-footer-nav {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.legal-footer-nav a {
    font-size: 0.875rem;
    color: var(--accent);
}

/* ── Checkbox de aceite de termos ── */

.terms-accept-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem 1.125rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition);
}

.terms-accept-label:has(input:checked) {
    border-color: var(--accent-2);
    background: var(--accent-glow);
}

.terms-accept-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

.terms-accept-label span {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-2);
}

.terms-accept-label a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Footer legal links ── */

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
}

.footer-legal a {
    color: var(--muted);
    transition: color var(--transition);
}

.footer-legal a:hover { color: var(--text-2); opacity: 1; }

.footer-legal span { color: var(--border); }

/* =========================================================
   LOAD MORE
   ========================================================= */

.load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2.5rem 0 1rem;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2.25rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-2);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: all 0.25s ease;
}

.btn-load-more:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-load-more:disabled { opacity: 0.5; cursor: not-allowed; }

.load-more-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.load-more-count {
    font-size: 0.78rem;
    color: var(--muted);
}

/* Animação de entrada dos novos cards */
@keyframes cardEnter {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.poem-card--entering {
    animation: cardEnter 0.4s ease forwards;
    opacity: 0;
}

/* ── NEWSLETTER FOOTER ── */
.footer-newsletter {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.8rem;
    margin-bottom: 1.5rem;
}

.footer-newsletter-label {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.85rem;
    letter-spacing: 0.03em;
}

.newsletter-form { display: flex; flex-direction: column; gap: 0.6rem; }

.newsletter-input {
    padding: 0.55rem 0.9rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
    width: 100%;
}

.newsletter-input:focus { border-color: var(--accent); }

.newsletter-row {
    display: flex;
    gap: 0.5rem;
}

.newsletter-row .newsletter-input { flex: 1; }

.newsletter-btn {
    padding: 0.55rem 1.1rem;
    background: var(--accent);
    color: #0a0a0a;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

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

.newsletter-hint {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: var(--muted);
    opacity: 0.7;
}

.newsletter-feedback {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius);
    margin: 0;
}

.newsletter-feedback--ok  { background: rgba(72,187,120,0.1); color: #68d391; border: 1px solid rgba(72,187,120,0.2); }
.newsletter-feedback--err { background: rgba(245,101,101,0.1); color: #fc8181; border: 1px solid rgba(245,101,101,0.2); }

/* Botão notificar na tabela admin */
.btn-table-notify {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.3);
    color: var(--accent);
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.btn-table-notify:hover { background: rgba(201,168,76,0.2); }

/* ── EBOOK PROMO ── */
.ebook-promo {
    margin-bottom: 2rem;
}

.ebook-promo-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 2.5rem;
    border: 1px solid rgba(201,168,76,0.18);
    border-radius: var(--radius);
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.ebook-promo-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(201,168,76,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.ebook-promo-text {
    position: relative;
    flex: 1;
    min-width: 0;
}

.ebook-promo-badge {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(201,168,76,0.35);
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
}

.ebook-promo-titulo {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    font-weight: 500;
    font-style: italic;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 0.6rem;
}

.ebook-promo-desc {
    font-family: var(--font-ui);
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.ebook-promo-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ebook-promo-cta {
    display: inline-block;
    padding: 0.55rem 1.4rem;
    background: var(--accent);
    color: #0a0a0a;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ebook-promo-cta:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.ebook-promo-dl {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(201,168,76,0.3);
    color: var(--accent);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ebook-promo-dl:hover {
    background: rgba(201,168,76,0.08);
    border-color: var(--accent);
}

.ebook-promo-deco {
    flex-shrink: 0;
    width: 70px;
    opacity: 0.55;
}

.ebook-promo-deco svg { width: 100%; height: auto; }

@media (max-width: 480px) {
    .ebook-promo-inner { padding: 1.5rem; }
    .ebook-promo-deco { display: none; }
}

