/*
Theme Name: Páginas Mágicas
Theme URI: https://example.com/paginas-magicas
Author: inn9.app
Author URI: https://inn9.app
Description: Tema WordPress responsivo para livraria infantil e juvenil, com catálogo, leitura online, planos e painel administrativo frontal em /myapp.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: paginas-magicas
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, education, custom-logo, custom-menu, featured-images, responsive-layout
*/

/* ========== RESET & BASE ========== */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --primary: #6D28D9;
    --primary-dark: #4C1D95;
    --primary-light: #A78BFA;
    --coral: #FB7185;
    --coral-dark: #E11D48;
    --amber: #F59E0B;
    --amber-light: #FCD34D;
    --teal: #14B8A6;
    --bg: #FEF7F0;
    --bg-card: #FFFFFF;
    --ink: #1E1B4B;
    --ink-soft: #4B5563;
    --muted: #9CA3AF;
    --border: #E5E7EB;
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 4px 14px rgba(30, 27, 75, 0.06);
    --shadow: 0 12px 30px rgba(30, 27, 75, 0.08);
    --shadow-lg: 0 25px 60px rgba(109, 40, 217, 0.18);
    --gradient-hero: linear-gradient(135deg, #FEF3C7 0%, #FFE4E6 35%, #EDE9FE 100%);
    --gradient-primary: linear-gradient(135deg, #6D28D9 0%, #A78BFA 100%);
    --gradient-warm: linear-gradient(135deg, #F59E0B 0%, #FB7185 100%);
  }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
  a { text-decoration: none; color: inherit; }
  img { max-width: 100%; display: block; }
  button { font-family: inherit; cursor: pointer; border: none; background: none; }
  .container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

  /* ========== TOP BAR ========== */
  .topbar {
    background: var(--ink);
    color: #FCD34D;
    font-size: 13px;
    padding: 10px 0;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.02em;
  }
  .topbar span { margin: 0 14px; opacity: 0.95; }
  .topbar strong { color: #fff; }

  /* ========== HEADER ========== */
  .header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(254, 247, 240, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(30, 27, 75, 0.06);
  }
  .header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 78px; gap: 24px;
  }
  .logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Fraunces', serif;
    font-size: 24px; font-weight: 800;
    color: var(--ink);
  }
  .logo-mark {
    width: 42px; height: 42px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: grid; place-items: center;
    color: white; font-size: 22px;
    box-shadow: 0 6px 18px rgba(109, 40, 217, 0.35);
    transform: rotate(-5deg);
  }
  .logo-text { letter-spacing: -0.03em; }
  .logo-text small { display: block; font-size: 11px; color: var(--coral); font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; margin-top: -2px; }

  .nav { display: flex; gap: 6px; align-items: center; }
  .nav a {
    padding: 10px 16px; border-radius: 999px;
    font-weight: 500; font-size: 15px; color: var(--ink-soft);
    transition: all 0.2s ease;
  }
  .nav a:hover { color: var(--primary); background: rgba(109, 40, 217, 0.08); }

  .header-actions { display: flex; align-items: center; gap: 10px; }
  .icon-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #fff;
    display: grid; place-items: center;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    position: relative;
  }
  .icon-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--primary); }
  .icon-btn .badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--coral); color: white;
    width: 20px; height: 20px;
    border-radius: 50%;
    font-size: 11px; font-weight: 700;
    display: grid; place-items: center;
    border: 2px solid var(--bg);
  }
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px;
    font-weight: 600; font-size: 15px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.32);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(109, 40, 217, 0.45); }
  .btn-warm {
    background: var(--gradient-warm);
    color: white;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
  }
  .btn-warm:hover { transform: translateY(-2px); }
  .btn-ghost {
    background: #fff; color: var(--ink);
    box-shadow: var(--shadow-sm);
  }
  .btn-ghost:hover { box-shadow: var(--shadow); color: var(--primary); }
  .btn-lg { padding: 16px 32px; font-size: 16px; }

  /* ========== HERO ========== */
  .hero {
    position: relative;
    background: var(--gradient-hero);
    padding: 70px 0 90px;
    overflow: hidden;
  }
  .hero::before {
    content: ""; position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(251, 113, 133, 0.18) 0%, transparent 70%);
    top: -200px; right: -150px;
    border-radius: 50%;
  }
  .hero::after {
    content: ""; position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.15) 0%, transparent 70%);
    bottom: -250px; left: -100px;
    border-radius: 50%;
  }
  .hero-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.1fr 1fr;
    gap: 60px; align-items: center;
  }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    padding: 8px 16px; border-radius: 999px;
    font-size: 13px; font-weight: 600;
    color: var(--coral-dark);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
  }
  .hero-eyebrow .dot {
    width: 8px; height: 8px;
    background: var(--coral);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
  }
  .hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 20px;
    color: var(--ink);
  }
  .hero h1 .accent {
    background: var(--gradient-warm);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
  }
  .hero-sub {
    font-size: 18px; color: var(--ink-soft);
    margin-bottom: 36px; max-width: 540px;
  }
  .hero-search {
    display: flex; align-items: center;
    background: white;
    border-radius: 999px;
    padding: 8px 8px 8px 24px;
    box-shadow: 0 20px 50px rgba(30, 27, 75, 0.12);
    max-width: 520px;
    margin-bottom: 28px;
  }
  .hero-search input {
    flex: 1; border: none; outline: none;
    font-size: 15px; font-family: inherit;
    color: var(--ink); background: transparent;
  }
  .hero-search input::placeholder { color: var(--muted); }
  .hero-search button {
    background: var(--gradient-primary);
    color: white; padding: 14px 24px;
    border-radius: 999px;
    font-weight: 600; font-size: 14px;
    display: flex; align-items: center; gap: 6px;
  }
  .hero-trust {
    display: flex; gap: 24px; flex-wrap: wrap;
    font-size: 14px; color: var(--ink-soft);
  }
  .hero-trust div { display: flex; align-items: center; gap: 8px; }
  .hero-trust .check {
    width: 22px; height: 22px;
    background: var(--teal);
    color: white; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 800;
  }

  .hero-visual { position: relative; height: 540px; }
  .book-card {
    position: absolute;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .book-card:hover { transform: translateY(-10px) rotate(0deg) !important; }
  .book-card .cover {
    width: 100%; aspect-ratio: 3/4;
    background-size: cover; background-position: center;
  }
  .book-card .meta { padding: 14px; }
  .book-card .title { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
  .book-card .author { font-size: 12px; color: var(--muted); }
  .bc-1 {
    top: 0; left: 50%; transform: translateX(-50%) rotate(-4deg);
    width: 200px; z-index: 3;
  }
  .bc-2 {
    top: 60px; left: 0;
    width: 180px; transform: rotate(-12deg);
    z-index: 2;
  }
  .bc-3 {
    top: 80px; right: 0;
    width: 180px; transform: rotate(10deg);
    z-index: 2;
  }
  .bc-4 {
    bottom: 30px; left: 30px;
    width: 170px; transform: rotate(-6deg);
    z-index: 4;
  }
  .bc-5 {
    bottom: 0; right: 40px;
    width: 180px; transform: rotate(8deg);
    z-index: 4;
  }
  .floating-badge {
    position: absolute;
    background: white;
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    z-index: 5;
    display: flex; align-items: center; gap: 12px;
    animation: float 4s ease-in-out infinite;
  }
  .floating-badge.b1 { top: 20px; right: -20px; animation-delay: 0s; }
  .floating-badge.b2 { bottom: 100px; left: -30px; animation-delay: 1.5s; }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
  }
  .floating-badge .icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    color: white; font-size: 22px;
  }
  .floating-badge .icon.purple { background: var(--gradient-primary); }
  .floating-badge .icon.warm { background: var(--gradient-warm); }
  .floating-badge .label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
  .floating-badge .value { font-weight: 800; font-size: 15px; color: var(--ink); }

  /* ========== SECTION COMMON ========== */
  .section { padding: 90px 0; position: relative; }
  .section-head {
    text-align: center;
    margin-bottom: 56px;
  }
  .section-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  .section h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 16px;
  }
  .section-sub {
    font-size: 17px; color: var(--ink-soft);
    max-width: 620px; margin: 0 auto;
  }
  .section-head h2 .accent {
    background: var(--gradient-warm);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* ========== CATEGORIES / IDADES ========== */
  .categories { background: #fff; }
  .categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
  .cat-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  .cat-card::before {
    content: ""; position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0; transition: opacity 0.3s;
    z-index: 0;
  }
  .cat-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-lg); }
  .cat-card:hover::before { opacity: 1; }
  .cat-card:hover * { color: white !important; }
  .cat-card > * { position: relative; z-index: 1; transition: color 0.3s; }
  .cat-emoji { font-size: 44px; margin-bottom: 14px; }
  .cat-age { font-size: 13px; color: var(--primary); font-weight: 700; letter-spacing: 0.05em; margin-bottom: 6px; }
  .cat-title { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
  .cat-count { font-size: 13px; color: var(--muted); }
  .cat-1 .cat-emoji { background: linear-gradient(135deg, #FCD34D 0%, #FEF3C7 100%); border-radius: 50%; }
  .cat-2 .cat-emoji { background: linear-gradient(135deg, #FCA5A5 0%, #FECACA 100%); border-radius: 50%; }
  .cat-3 .cat-emoji { background: linear-gradient(135deg, #A7F3D0 0%, #D1FAE5 100%); border-radius: 50%; }
  .cat-4 .cat-emoji { background: linear-gradient(135deg, #C4B5FD 0%, #EDE9FE 100%); border-radius: 50%; }
  .cat-5 .cat-emoji { background: linear-gradient(135deg, #93C5FD 0%, #DBEAFE 100%); border-radius: 50%; }

  /* ========== FEATURED BOOKS ========== */
  .books-tabs {
    display: flex; justify-content: center; gap: 8px;
    background: white;
    padding: 8px; border-radius: 999px;
    box-shadow: var(--shadow-sm);
    width: fit-content; margin: 0 auto 48px;
    flex-wrap: wrap;
  }
  .books-tab {
    padding: 10px 22px; border-radius: 999px;
    font-weight: 600; font-size: 14px;
    color: var(--ink-soft); transition: all 0.2s;
  }
  .books-tab.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 18px rgba(109, 40, 217, 0.3);
  }
  .books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
  .book {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
  }
  .book:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
  .book-cover {
    position: relative;
    aspect-ratio: 3/4;
    background-size: cover; background-position: center;
    overflow: hidden;
  }
  .book-tag {
    position: absolute; top: 12px; left: 12px;
    background: white; color: var(--ink);
    padding: 5px 12px; border-radius: 999px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  }
  .book-tag.new { background: var(--teal); color: white; }
  .book-tag.sale { background: var(--coral); color: white; }
  .book-fav {
    position: absolute; top: 12px; right: 12px;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: grid; place-items: center;
    color: var(--coral);
    transition: all 0.2s;
  }
  .book-fav:hover { background: var(--coral); color: white; }
  .book-info { padding: 20px; }
  .book-title { font-family: 'Fraunces', serif; font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 4px; line-height: 1.3; }
  .book-author { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
  .book-meta {
    display: flex; align-items: center; gap: 4px;
    color: var(--amber); font-size: 13px; margin-bottom: 14px;
  }
  .book-meta span { color: var(--ink-soft); margin-left: 6px; }
  .book-bottom { display: flex; align-items: center; justify-content: space-between; }
  .book-price { display: flex; flex-direction: column; }
  .book-price .old { font-size: 12px; color: var(--muted); text-decoration: line-through; }
  .book-price .now { font-size: 20px; font-weight: 800; color: var(--ink); }
  .book-price .now small { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
  .book-buy {
    width: 42px; height: 42px;
    background: var(--gradient-primary);
    color: white; border-radius: 50%;
    display: grid; place-items: center;
    transition: all 0.2s;
  }
  .book-buy:hover { transform: scale(1.1) rotate(-10deg); }

  /* ========== LEITURA ONLINE FEATURE ========== */
  .reading-feature {
    background: var(--ink);
    color: white;
    overflow: hidden;
    position: relative;
  }
  .reading-feature::before {
    content: ""; position: absolute;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.4) 0%, transparent 60%);
    top: -300px; right: -200px;
    border-radius: 50%;
  }
  .reading-feature::after {
    content: ""; position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(251, 113, 133, 0.25) 0%, transparent 60%);
    bottom: -200px; left: -100px;
    border-radius: 50%;
  }
  .reading-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
  }
  .reading-content .section-eyebrow { color: var(--amber-light); }
  .reading-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
  }
  .reading-content h2 .accent {
    background: var(--gradient-warm);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .reading-content p { color: rgba(255,255,255,0.78); font-size: 17px; margin-bottom: 32px; }
  .reading-features { list-style: none; margin-bottom: 36px; }
  .reading-features li {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 12px 0; color: rgba(255,255,255,0.9);
  }
  .reading-features li .ic {
    flex-shrink: 0;
    width: 28px; height: 28px;
    background: rgba(245, 158, 11, 0.2);
    color: var(--amber-light);
    border-radius: 8px;
    display: grid; place-items: center;
    font-weight: 800; font-size: 14px;
  }
  .reading-features li strong { display: block; color: white; font-weight: 700; margin-bottom: 2px; }
  .reading-features li span { font-size: 14px; color: rgba(255,255,255,0.65); }
  .reading-actions { display: flex; gap: 12px; flex-wrap: wrap; }
  .btn-light {
    background: white; color: var(--ink);
    box-shadow: 0 8px 24px rgba(255,255,255,0.15);
  }
  .btn-light:hover { transform: translateY(-2px); }
  .btn-outline {
    background: transparent; color: white;
    border: 1.5px solid rgba(255,255,255,0.3);
  }
  .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

  .reader-mockup {
    position: relative;
    background: linear-gradient(135deg, #2D2A5F 0%, #1E1B4B 100%);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
  }
  .reader-mockup::before {
    content: ""; position: absolute;
    inset: -2px;
    background: var(--gradient-warm);
    border-radius: 26px;
    z-index: -1;
    opacity: 0.5;
  }
  .reader-screen {
    background: #FFF8E7;
    border-radius: 16px;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    padding: 40px;
  }
  .reader-page {
    font-family: 'Fraunces', serif;
    color: #4B3621;
    font-size: 22px;
    line-height: 1.6;
  }
  .reader-page h4 { font-size: 28px; margin-bottom: 20px; color: #6D28D9; }
  .reader-page p { margin-bottom: 14px; }
  .reader-page p::first-letter {
    font-size: 56px;
    float: left;
    line-height: 0.9;
    margin: 6px 8px 0 0;
    color: var(--coral);
    font-weight: 800;
  }
  .reader-toolbar {
    position: absolute; bottom: 16px; left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 27, 75, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 8px;
    display: flex; gap: 4px; align-items: center;
  }
  .reader-toolbar button {
    width: 36px; height: 36px; border-radius: 50%;
    color: white; transition: all 0.2s;
    display: grid; place-items: center;
  }
  .reader-toolbar button:hover { background: rgba(255,255,255,0.15); }
  .reader-toolbar .play {
    width: 44px; height: 44px;
    background: var(--gradient-warm);
  }
  .reader-page-number {
    color: rgba(255,255,255,0.7);
    font-size: 12px; font-weight: 600;
    padding: 0 12px;
  }

  /* ========== FEATURE STRIP ========== */
  .features-strip {
    background: white;
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .features-strip-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }
  .feature-item { display: flex; gap: 16px; align-items: flex-start; }
  .feature-item .ic {
    flex-shrink: 0;
    width: 52px; height: 52px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 14px;
    display: grid; place-items: center;
    font-size: 22px;
  }
  .feature-item h4 { font-size: 16px; margin-bottom: 4px; font-family: 'Inter', sans-serif; font-weight: 700; }
  .feature-item p { font-size: 14px; color: var(--ink-soft); }

  /* ========== PLANS ========== */
  .plans { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
  .plans-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; align-items: stretch;
  }
  .plan {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    display: flex; flex-direction: column;
  }
  .plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .plan.featured {
    background: linear-gradient(180deg, #1E1B4B 0%, #312E81 100%);
    color: white;
    transform: scale(1.04);
    box-shadow: 0 30px 60px rgba(30, 27, 75, 0.3);
  }
  .plan.featured:hover { transform: scale(1.04) translateY(-6px); }
  .plan-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--gradient-warm);
    color: white; padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
  }
  .plan-name {
    font-family: 'Fraunces', serif;
    font-size: 24px; font-weight: 700;
    margin-bottom: 8px;
  }
  .plan-desc { font-size: 14px; opacity: 0.75; margin-bottom: 24px; }
  .plan-price {
    display: flex; align-items: baseline; gap: 4px;
    margin-bottom: 28px;
  }
  .plan-price .currency { font-size: 16px; font-weight: 600; }
  .plan-price .amount { font-size: 48px; font-weight: 800; font-family: 'Fraunces', serif; line-height: 1; }
  .plan-price .period { font-size: 14px; opacity: 0.7; }
  .plan ul { list-style: none; margin-bottom: 32px; flex-grow: 1; }
  .plan li {
    padding: 10px 0;
    display: flex; align-items: center; gap: 10px;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .plan.featured li { border-bottom-color: rgba(255,255,255,0.1); }
  .plan li .ic { color: var(--teal); font-weight: 800; }
  .plan.featured li .ic { color: var(--amber-light); }
  .plan .btn { width: 100%; justify-content: center; }
  .plan:not(.featured) .btn { background: var(--ink); color: white; box-shadow: 0 8px 24px rgba(30, 27, 75, 0.2); }

  /* ========== TESTIMONIALS ========== */
  .testimonials-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .testimonial {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.3s;
  }
  .testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .testimonial .quote-mark {
    position: absolute; top: 20px; right: 24px;
    font-family: 'Fraunces', serif;
    font-size: 80px; line-height: 1;
    color: var(--primary-light);
    opacity: 0.3;
  }
  .testimonial p {
    font-size: 15px; color: var(--ink-soft);
    margin-bottom: 24px; line-height: 1.7;
    position: relative; z-index: 1;
  }
  .testimonial-author { display: flex; align-items: center; gap: 12px; }
  .testimonial-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background-size: cover; background-position: center;
    border: 3px solid var(--bg);
  }
  .testimonial-name { font-weight: 700; font-size: 14px; color: var(--ink); }
  .testimonial-role { font-size: 12px; color: var(--muted); }
  .stars { color: var(--amber); font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }

  /* ========== NEWSLETTER ========== */
  .newsletter {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .newsletter::before {
    content: ""; position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    top: -200px; right: -100px;
    border-radius: 50%;
  }
  .newsletter > * { position: relative; z-index: 1; }
  .newsletter h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 14px; }
  .newsletter p { font-size: 17px; opacity: 0.9; margin-bottom: 32px; max-width: 540px; margin-left: auto; margin-right: auto; }
  .newsletter-form {
    display: flex; gap: 8px;
    max-width: 480px; margin: 0 auto;
    background: white; padding: 6px;
    border-radius: 999px;
  }
  .newsletter-form input {
    flex: 1; border: none; outline: none;
    padding: 14px 20px; font-size: 15px;
    color: var(--ink); background: transparent;
    font-family: inherit;
  }
  .newsletter-form button {
    background: var(--gradient-warm);
    color: white; padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700; font-size: 14px;
    transition: all 0.2s;
  }
  .newsletter-form button:hover { transform: scale(1.05); }

  /* ========== FOOTER ========== */
  .footer {
    background: var(--ink);
    color: rgba(255,255,255,0.75);
    padding: 80px 0 0;
    position: relative;
  }
  .footer::before {
    content: ""; position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(109, 40, 217, 0.18) 0%, transparent 50%);
    pointer-events: none;
  }
  .footer > .container { position: relative; z-index: 1; }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 56px;
  }
  .footer-brand .logo { color: white; margin-bottom: 20px; }
  .footer-brand .logo-text small { color: var(--amber-light); }
  .footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 24px; max-width: 320px; }
  .footer-social { display: flex; gap: 10px; }
  .footer-social a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    display: grid; place-items: center;
    color: white;
    transition: all 0.2s;
  }
  .footer-social a:hover { background: var(--primary); transform: translateY(-3px); }

  .footer-col h4 {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 22px;
    position: relative; padding-bottom: 12px;
  }
  .footer-col h4::after {
    content: ""; position: absolute;
    bottom: 0; left: 0;
    width: 28px; height: 2px;
    background: var(--gradient-warm);
    border-radius: 2px;
  }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: 11px; }
  .footer-col a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .footer-col a:hover { color: white; padding-left: 4px; }
  .footer-col a .new {
    background: var(--gradient-warm);
    color: white;
    font-size: 9px; font-weight: 700;
    padding: 2px 6px; border-radius: 4px;
    letter-spacing: 0.05em;
  }

  .footer-payments { margin-top: 28px; }
  .footer-payments small { display: block; font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
  .payment-icons { display: flex; gap: 8px; flex-wrap: wrap; }
  .pay {
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px; font-weight: 700;
    color: white;
  }

  .footer-contact .item {
    display: flex; gap: 12px; margin-bottom: 16px;
    align-items: flex-start;
  }
  .footer-contact .item .ic {
    flex-shrink: 0;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    display: grid; place-items: center;
    color: var(--amber-light);
  }
  .footer-contact .item small { display: block; font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
  .footer-contact .item span { display: block; font-size: 14px; color: white; font-weight: 500; }

  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; gap: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
  }
  .footer-bottom .legal { display: flex; gap: 20px; flex-wrap: wrap; }
  .footer-bottom .legal a:hover { color: white; }
  .footer-bottom .badges { display: flex; gap: 12px; align-items: center; }
  .footer-bottom .sec-badge {
    background: rgba(255,255,255,0.05);
    padding: 6px 12px; border-radius: 6px;
    font-size: 11px; color: rgba(255,255,255,0.6);
    display: flex; align-items: center; gap: 6px;
  }
  .footer-bottom .sec-badge .dot { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }

  /* ========== WHATSAPP FLOAT ========== */
  .whats {
    position: fixed; bottom: 24px; right: 24px; z-index: 99;
    width: 60px; height: 60px;
    background: #25D366; color: white;
    border-radius: 50%;
    display: grid; place-items: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
  }
  .whats:hover { transform: scale(1.1); }
  .whats::before {
    content: ""; position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: ping 2s ease-out infinite;
  }
  @keyframes ping {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
  }

  /* ========== RESPONSIVE ========== */
  @media (max-width: 1024px) {
    .hero-grid, .reading-grid { grid-template-columns: 1fr; gap: 50px; }
    .hero-visual { height: 460px; max-width: 500px; margin: 0 auto; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .books-grid { grid-template-columns: repeat(3, 1fr); }
    .features-strip-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .plans-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .plan.featured { transform: none; }
    .plan.featured:hover { transform: translateY(-6px); }
    .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  }
  @media (max-width: 768px) {
    .nav { display: none; }
    .section { padding: 60px 0; }
    .hero { padding: 50px 0 70px; }
    .categories-grid, .books-grid { grid-template-columns: repeat(2, 1fr); }
    .features-strip-grid { grid-template-columns: 1fr; }
    .newsletter { padding: 40px 24px; }
    .newsletter-form { flex-direction: column; border-radius: var(--radius); }
    .newsletter-form button { border-radius: var(--radius-sm); }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; text-align: center; }
  }
  @media (max-width: 480px) {
    .categories-grid, .books-grid { grid-template-columns: 1fr; }
    .header-actions .btn-ghost { display: none; }
  }

/* ========== WORDPRESS + THEME EXTENSIONS ========== */
:root {
  --header-height: 78px;
  --dashboard-bg: #f6f7fb;
}
body { min-height: 100vh; }
body.admin-bar .header { top: 0; }
.screen-reader-text { position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.screen-reader-text:focus { clip:auto!important;width:auto;height:auto;top:8px;left:8px;padding:12px 18px;background:#fff;color:var(--ink);z-index:99999;border-radius:8px;box-shadow:var(--shadow); }
.skip-link { z-index:999999; }
.nav ul, .mobile-drawer ul { list-style:none; margin:0; padding:0; }
.nav > ul { display:flex; gap:6px; align-items:center; }
.nav li { position:relative; }
.nav .sub-menu { position:absolute; top:100%; left:0; min-width:230px; padding:10px; background:#fff; border-radius:16px; box-shadow:var(--shadow); opacity:0; visibility:hidden; transform:translateY(8px); transition:.2s; }
.nav li:hover > .sub-menu { opacity:1; visibility:visible; transform:translateY(0); }
.nav .sub-menu a { display:block; border-radius:10px; }
.pm-custom-logo, .pm-custom-logo .custom-logo-link { display:flex; align-items:center; }
.pm-custom-logo img { width:auto; max-height:54px; max-width:230px; }
.header-actions .account-btn { white-space:nowrap; }
.mobile-menu-toggle { display:none; width:44px; height:44px; border-radius:50%; background:#fff; box-shadow:var(--shadow-sm); align-items:center; justify-content:center; flex-direction:column; gap:4px; }
.mobile-menu-toggle span { width:18px; height:2px; border-radius:2px; background:var(--ink); }
.pm-search-panel { background:rgba(255,255,255,.98); border-top:1px solid var(--border); padding:18px 0; box-shadow:0 20px 30px rgba(30,27,75,.08); }
.pm-global-search { display:flex; align-items:center; gap:10px; }
.pm-global-search input { min-width:0; flex:1; border:1px solid var(--border); border-radius:999px; padding:14px 20px; font:inherit; outline:none; }
.pm-global-search input:focus { border-color:var(--primary); box-shadow:0 0 0 4px rgba(109,40,217,.1); }
.pm-search-close { width:42px; height:42px; border-radius:50%; background:#f3f4f6; font-size:24px; }
.mobile-drawer { position:fixed; z-index:1001; top:0; right:0; width:min(88vw,380px); height:100dvh; padding:22px; background:#fff; transform:translateX(105%); transition:transform .3s ease; box-shadow:-20px 0 50px rgba(30,27,75,.18); overflow:auto; }
.mobile-drawer.is-open { transform:translateX(0); }
.mobile-drawer-backdrop { position:fixed; z-index:1000; inset:0; background:rgba(30,27,75,.5); backdrop-filter:blur(4px); }
.mobile-drawer-head { display:flex; justify-content:space-between; align-items:center; padding-bottom:18px; border-bottom:1px solid var(--border); }
.mobile-drawer-head strong { font:700 20px/1.2 'Fraunces',serif; }
.mobile-menu-close { width:40px; height:40px; background:#f3f4f6; border-radius:50%; font-size:26px; }
.mobile-drawer nav { padding:16px 0; }
.mobile-drawer li a { display:block; padding:14px 10px; color:var(--ink); font-weight:650; border-bottom:1px solid #f3f4f6; }
.mobile-drawer .sub-menu a { padding-left:28px; color:var(--ink-soft); font-size:14px; }
.mobile-drawer-actions { display:grid; gap:10px; padding-top:16px; }
.mobile-drawer-actions .btn { justify-content:center; }
.mobile-bottom-nav { display:none; }

.hero-copy { min-width:0; }
.hero-visual .book-card .cover { aspect-ratio:3/4; overflow:hidden; }
.hero-visual .book-card .cover img, .pm-placeholder-cover { width:100%; height:100%; object-fit:cover; }
.pm-placeholder-cover { display:grid; place-items:center; min-height:100%; }
.pm-placeholder-cover span { font-size:clamp(46px,7vw,90px); filter:drop-shadow(0 12px 15px rgba(0,0,0,.15)); }
.book-cover { display:block; }
.book-cover > img, .book-cover > .pm-placeholder-cover { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.book:hover .book-cover > img, .book:hover .book-cover > .pm-placeholder-cover { transform:scale(1.035); }
.book-title { display:block; }
.book-fav { border:0; font-size:23px; line-height:1; z-index:2; }
.book-fav.is-active { background:var(--coral); color:#fff; }
.book-read-link { display:flex; align-items:center; justify-content:center; margin-top:14px; padding:10px 12px; border-radius:12px; background:rgba(109,40,217,.08); color:var(--primary); font-size:13px; font-weight:700; }
.section-cta { text-align:center; margin-top:44px; }
.avatar-1 { background:linear-gradient(135deg,#FB7185,#F59E0B); }
.avatar-2 { background:linear-gradient(135deg,#6D28D9,#14B8A6); }
.avatar-3 { background:linear-gradient(135deg,#A78BFA,#FCD34D); }
.newsletter-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; }

/* Pages */
.page-hero { text-align:center; max-width:760px; margin:0 auto 48px; }
.page-hero h1 { font-size:clamp(2.25rem,5vw,4rem); margin-bottom:16px; }
.page-hero p { color:var(--ink-soft); font-size:18px; }
.page-hero.compact { margin-bottom:34px; }
.narrow-container { max-width:900px; }
.pm-content-page { min-height:55vh; }
.pm-prose { font-size:17px; color:#35324f; line-height:1.85; }
.pm-prose > * + * { margin-top:1.2em; }
.pm-prose h2, .pm-prose h3, .pm-prose h4 { color:var(--ink); margin-top:1.8em; }
.pm-prose ul, .pm-prose ol { padding-left:1.4em; }
.pm-prose a { color:var(--primary); text-decoration:underline; }
.pm-post-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.pm-post-card { background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); }
.pm-post-thumb { display:block; aspect-ratio:16/10; overflow:hidden; }
.pm-post-thumb img { width:100%; height:100%; object-fit:cover; }
.pm-post-body { padding:24px; }
.pm-post-body h2 { font-size:22px; margin:4px 0 10px; }
.pm-post-body p { color:var(--ink-soft); }
.pm-post-date { font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--primary)!important; font-weight:700; }
.text-link { color:var(--primary); font-weight:700; }
.empty-state { background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); text-align:center; padding:64px 24px; box-shadow:var(--shadow-sm); }
.empty-state > span { display:block; font-size:58px; margin-bottom:16px; }
.empty-state h1, .empty-state h2, .empty-state h3 { margin-bottom:10px; }
.empty-state p { color:var(--ink-soft); margin:0 auto 24px; max-width:520px; }
.empty-actions { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }
.pagination, .page-numbers { margin-top:36px; }
ul.page-numbers { display:flex; justify-content:center; gap:8px; list-style:none; }
.page-numbers a, .page-numbers span { display:grid; place-items:center; min-width:42px; height:42px; padding:0 12px; border-radius:10px; background:#fff; box-shadow:var(--shadow-sm); }
.page-numbers .current { background:var(--primary); color:#fff; }

/* Catalog */
.catalog-hero { max-width:850px; }
.catalog-filter { display:grid; grid-template-columns:minmax(260px,1.6fr) repeat(3,minmax(150px,.8fr)) auto auto; gap:10px; align-items:center; padding:14px; margin-bottom:18px; background:#fff; border-radius:20px; box-shadow:var(--shadow-sm); position:sticky; top:calc(var(--header-height) + 12px); z-index:20; }
.catalog-filter input, .catalog-filter select { width:100%; border:1px solid var(--border); background:#fff; border-radius:12px; min-height:46px; padding:0 13px; font:inherit; color:var(--ink); outline:none; }
.catalog-search { position:relative; }
.catalog-search span { position:absolute; left:14px; top:50%; transform:translateY(-50%); }
.catalog-search input { padding-left:42px; }
.catalog-filter input:focus, .catalog-filter select:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(109,40,217,.1); }
.filter-clear { text-align:center; color:var(--ink-soft); font-size:13px; font-weight:700; }
.catalog-summary { margin:20px 0; color:var(--ink-soft); }
.catalog-summary strong { color:var(--ink); }

/* Reading landing */
.reading-page-hero { padding:90px 0; background:var(--ink); color:#fff; overflow:hidden; position:relative; }
.reading-page-hero:before { content:""; position:absolute; width:700px; height:700px; border-radius:50%; right:-260px; top:-260px; background:radial-gradient(circle,rgba(109,40,217,.55),transparent 68%); }
.reading-page-hero .reading-grid { position:relative; z-index:1; }
.reading-page-hero h1 { font-size:clamp(2.5rem,5vw,4rem); margin:10px 0 24px; }
.reading-page-hero p { color:rgba(255,255,255,.78); font-size:18px; max-width:620px; }
.steps-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.steps-grid article { background:#fff; padding:32px; border-radius:var(--radius); box-shadow:var(--shadow-sm); }
.steps-grid article > span { display:grid; place-items:center; width:46px; height:46px; border-radius:14px; background:var(--gradient-primary); color:#fff; font-weight:800; margin-bottom:18px; }
.steps-grid h3 { margin-bottom:8px; }
.steps-grid p { color:var(--ink-soft); }

/* Plans */
.plan-page-hero { padding:90px 0 125px; text-align:center; background:var(--gradient-hero); }
.plan-page-hero .container { max-width:850px; }
.plan-page-hero h1 { font-size:clamp(2.5rem,5vw,4rem); margin:12px 0 20px; }
.plan-page-hero p { color:var(--ink-soft); font-size:18px; }
.plan-page-hero + .plans { margin-top:-80px; padding-top:0; background:transparent; }
.billing-switch { width:max-content; max-width:100%; margin:0 auto 44px; padding:6px; display:flex; background:#fff; border-radius:999px; box-shadow:var(--shadow); }
.billing-switch button { padding:11px 20px; border-radius:999px; color:var(--ink-soft); font-weight:700; }
.billing-switch button.active { background:var(--primary); color:#fff; }
.billing-switch small { display:block; font-size:9px; opacity:.75; }
.plan-benefits { background:#fff; }
.faq-list { display:grid; gap:12px; }
.faq-list details { background:#fff; border:1px solid var(--border); border-radius:16px; padding:0 22px; }
.faq-list summary { cursor:pointer; padding:20px 0; font-weight:750; list-style:none; }
.faq-list summary::-webkit-details-marker { display:none; }
.faq-list summary:after { content:"+"; float:right; color:var(--primary); font-size:24px; }
.faq-list details[open] summary:after { content:"−"; }
.faq-list details p { padding:0 0 20px; color:var(--ink-soft); }

/* About */
.about-hero { padding:90px 0; background:var(--gradient-hero); }
.about-hero-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:70px; align-items:center; }
.about-hero h1 { font-size:clamp(2.5rem,5vw,4rem); margin:14px 0 22px; }
.about-hero p { color:var(--ink-soft); font-size:18px; margin-bottom:30px; }
.about-visual { min-height:430px; position:relative; border-radius:42% 58% 58% 42% / 45% 42% 58% 55%; background:var(--gradient-primary); box-shadow:var(--shadow-lg); display:grid; place-items:center; }
.about-visual span { position:absolute; display:grid; place-items:center; width:110px; height:110px; background:#fff; border-radius:30px; font-size:55px; box-shadow:var(--shadow); }
.about-visual span:nth-child(1) { width:160px; height:160px; font-size:80px; }
.about-visual span:nth-child(2) { top:10%; right:6%; transform:rotate(10deg); }
.about-visual span:nth-child(3) { bottom:8%; left:5%; transform:rotate(-10deg); }
.about-visual span:nth-child(4) { bottom:3%; right:10%; width:90px; height:90px; }
.story-grid { display:grid; grid-template-columns:1fr .9fr; gap:70px; align-items:center; }
.story-grid h2 { font-size:clamp(2rem,4vw,3rem); margin:14px 0 24px; }
.story-grid p { color:var(--ink-soft); font-size:17px; margin-bottom:18px; }
.story-card { display:grid; grid-template-columns:1fr 1fr; gap:14px; padding:20px; background:#fff; border-radius:var(--radius-lg); box-shadow:var(--shadow); }
.story-card div { padding:28px 20px; border-radius:18px; background:var(--bg); }
.story-card strong { display:block; font:800 38px/1 'Fraunces',serif; color:var(--primary); }
.story-card span { display:block; margin-top:8px; color:var(--ink-soft); font-size:13px; }
.values-section { background:#fff; }
.values-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.values-grid article { padding:28px; border:1px solid var(--border); border-radius:var(--radius); }
.values-grid article > span { font-size:36px; }
.values-grid h3 { margin:14px 0 8px; }
.values-grid p { color:var(--ink-soft); }

/* Contact */
.contact-grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:28px; align-items:start; }
.contact-info-card, .contact-form-card { background:#fff; border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); padding:34px; }
.contact-info-card { background:var(--ink); color:#fff; }
.contact-channel { display:flex; gap:16px; padding:18px 0; border-bottom:1px solid rgba(255,255,255,.1); }
.contact-channel > span { width:48px; height:48px; display:grid; place-items:center; border-radius:14px; background:rgba(255,255,255,.1); font-size:23px; flex:none; }
.contact-channel small, .contact-channel strong, .contact-channel a, .contact-channel p { display:block; }
.contact-channel small { color:rgba(255,255,255,.55); text-transform:uppercase; letter-spacing:.08em; font-size:10px; }
.contact-channel strong { margin:3px 0; }
.contact-channel a { color:var(--amber-light); font-size:13px; font-weight:700; }
.contact-channel p { color:rgba(255,255,255,.7); font-size:13px; }
.contact-shortcuts { padding-top:26px; }
.contact-shortcuts h3 { margin-bottom:10px; }
.contact-shortcuts a { display:block; color:rgba(255,255,255,.75); padding:8px 0; }
.contact-form-card h2 { margin-bottom:22px; }
.pm-form { display:grid; gap:16px; }
.pm-form label { display:grid; gap:7px; font-size:13px; font-weight:700; color:var(--ink); }
.pm-form input, .pm-form select, .pm-form textarea { width:100%; border:1px solid var(--border); border-radius:12px; padding:13px 14px; font:inherit; color:var(--ink); background:#fff; outline:none; }
.pm-form input:focus, .pm-form select:focus, .pm-form textarea:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(109,40,217,.1); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.pm-alert { padding:13px 15px; border-radius:12px; margin-bottom:16px; font-size:14px; }
.pm-alert.success { background:#ecfdf5; color:#047857; border:1px solid #a7f3d0; }
.pm-alert.error { background:#fff1f2; color:#be123c; border:1px solid #fecdd3; }

/* Auth/account */
.pm-auth-shell { display:grid; grid-template-columns:1fr .85fr; gap:50px; max-width:1040px; margin:0 auto; align-items:center; }
.pm-auth-intro { padding:50px; border-radius:var(--radius-lg); background:var(--ink); color:#fff; min-height:530px; display:flex; flex-direction:column; justify-content:center; position:relative; overflow:hidden; }
.pm-auth-intro:before { content:""; position:absolute; width:500px; height:500px; top:-300px; right:-250px; border-radius:50%; background:rgba(109,40,217,.55); }
.pm-auth-intro > * { position:relative; }
.pm-auth-intro h1 { font-size:clamp(2.1rem,4vw,3.2rem); margin:14px 0 18px; }
.pm-auth-intro p { color:rgba(255,255,255,.74); font-size:17px; }
.pm-auth-intro ul { list-style:none; display:grid; gap:10px; margin-top:30px; color:rgba(255,255,255,.9); }
.pm-auth-card { background:#fff; border-radius:var(--radius-lg); padding:30px; box-shadow:var(--shadow); }
.pm-auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:6px; background:#f3f4f6; padding:5px; border-radius:14px; margin-bottom:24px; }
.pm-auth-tabs button { padding:11px; border-radius:10px; font-weight:750; color:var(--ink-soft); }
.pm-auth-tabs button.active { background:#fff; color:var(--primary); box-shadow:var(--shadow-sm); }
.pm-auth-panel { display:none; }
.pm-auth-panel.active { display:block; }
.pm-auth-card .btn { justify-content:center; width:100%; }
.check-row { display:flex!important; align-items:center; grid-template-columns:auto 1fr!important; font-weight:500!important; }
.check-row input { width:auto!important; }
.password-field { position:relative; display:block; }
.password-field input { padding-right:48px; }
.pm-password-toggle { position:absolute; top:50%; right:8px; transform:translateY(-50%); width:36px; height:36px; border-radius:8px; color:var(--ink-soft); }
.pm-forgot { text-align:center; color:var(--primary); font-size:13px; font-weight:700; }
.form-help { font-size:12px; color:var(--muted); margin-top:-10px; }
.account-header { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:28px; }
.account-header h1 { font-size:clamp(2rem,4vw,3.2rem); margin:6px 0 8px; }
.account-header p { color:var(--ink-soft); }
.account-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:28px; }
.account-stats > div { background:#fff; border-radius:18px; padding:22px; box-shadow:var(--shadow-sm); display:grid; grid-template-columns:auto 1fr; column-gap:12px; align-items:center; }
.account-stats span { grid-row:1/3; font-size:28px; }
.account-stats strong { font-size:22px; }
.account-stats small { color:var(--muted); }
.account-layout { display:grid; grid-template-columns:230px 1fr; gap:24px; align-items:start; }
.account-menu { display:grid; gap:6px; padding:12px; border-radius:18px; background:#fff; box-shadow:var(--shadow-sm); position:sticky; top:105px; }
.account-menu a { padding:12px; border-radius:11px; color:var(--ink-soft); font-weight:650; }
.account-menu a:hover, .account-menu a.active { background:rgba(109,40,217,.09); color:var(--primary); }
.account-content { min-width:0; background:#fff; border-radius:var(--radius-lg); padding:26px; box-shadow:var(--shadow-sm); }
.account-content-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; }
.account-content-head p { color:var(--ink-soft); font-size:14px; }
.account-books { grid-template-columns:repeat(3,1fr); }

/* Book detail and reader */
.breadcrumbs { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:28px; color:var(--muted); font-size:13px; }
.breadcrumbs a:hover { color:var(--primary); }
.pm-book-detail-grid { display:grid; grid-template-columns:minmax(320px,.8fr) 1.2fr; gap:70px; align-items:start; }
.pm-book-main-cover { max-width:480px; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-lg); aspect-ratio:3/4; }
.pm-book-main-cover img, .pm-book-main-cover .pm-placeholder-cover { width:100%; height:100%; object-fit:cover; }
.pm-book-summary h1 { font-size:clamp(2.3rem,5vw,4.3rem); margin:12px 0 8px; }
.detail-tag { display:inline-flex; padding:7px 12px; border-radius:999px; background:rgba(109,40,217,.1); color:var(--primary); font-size:11px; font-weight:800; text-transform:uppercase; }
.detail-author { color:var(--ink-soft); }
.detail-rating { color:var(--amber); margin:18px 0; }
.detail-rating span { color:var(--ink-soft); margin-left:8px; }
.detail-excerpt { color:var(--ink-soft); font-size:17px; line-height:1.75; }
.detail-meta { display:flex; flex-wrap:wrap; gap:10px; margin:22px 0; }
.detail-meta span { padding:9px 12px; border-radius:10px; background:#fff; box-shadow:var(--shadow-sm); font-size:13px; }
.detail-price { display:flex; align-items:baseline; gap:12px; margin:26px 0; }
.detail-price del { color:var(--muted); }
.detail-price strong { font:800 36px/1 'Fraunces',serif; color:var(--ink); }
.detail-actions { display:flex; gap:10px; flex-wrap:wrap; }
.detail-actions .pm-favorite-btn { min-width:58px; justify-content:center; font-size:24px; }
.detail-security { display:flex; flex-wrap:wrap; gap:16px; margin-top:20px; color:var(--ink-soft); font-size:12px; }
.pm-book-tabs { margin-top:70px; padding:36px; border-radius:var(--radius-lg); background:#fff; box-shadow:var(--shadow-sm); }
.related-books { margin-top:80px; }
.pm-reader-page { min-height:100dvh; background:#f5efe3; color:#3d3228; padding-bottom:70px; }
.pm-reader-page.is-night { background:#151522; color:#e8e7ef; }
.pm-reader-header { position:sticky; top:0; z-index:30; min-height:72px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:16px; padding:10px 24px; background:rgba(255,255,255,.92); backdrop-filter:blur(16px); border-bottom:1px solid rgba(0,0,0,.08); }
.pm-reader-page.is-night .pm-reader-header { background:rgba(21,21,34,.92); border-bottom-color:rgba(255,255,255,.1); }
.pm-reader-header > div:nth-child(2) { text-align:center; }
.pm-reader-header strong, .pm-reader-header span { display:block; }
.pm-reader-header span { font-size:12px; opacity:.65; }
.pm-reader-back { font-size:13px; font-weight:700; }
.pm-reader-controls { display:flex; justify-content:flex-end; gap:6px; }
.pm-reader-controls button { width:40px; height:40px; border-radius:10px; background:rgba(30,27,75,.08); color:inherit; font-weight:800; }
.pm-reader-content { max-width:820px; margin:0 auto; padding:70px 34px; font-family:'Fraunces',serif; font-size:21px; line-height:1.9; color:inherit; }
.pm-reader-content h1, .pm-reader-content h2, .pm-reader-content h3 { color:inherit; }
.pm-reader-progress { position:fixed; z-index:40; bottom:0; left:0; right:0; height:5px; background:rgba(0,0,0,.08); }
.pm-reader-progress span { display:block; height:100%; width:0; background:var(--gradient-warm); }

/* Toast */
.pm-toast { position:fixed; z-index:2000; left:50%; bottom:90px; transform:translate(-50%,20px); opacity:0; padding:12px 18px; border-radius:999px; background:var(--ink); color:#fff; font-size:13px; font-weight:700; box-shadow:var(--shadow-lg); transition:.25s; }
.pm-toast.is-visible { opacity:1; transform:translate(-50%,0); }

/* WooCommerce */
.woocommerce .button, .woocommerce button.button, .woocommerce input.button, .woocommerce a.button { border-radius:999px!important; background:var(--primary)!important; color:#fff!important; padding:13px 20px!important; }
.woocommerce ul.products li.product { background:#fff; border-radius:18px; padding:14px; box-shadow:var(--shadow-sm); }
.woocommerce ul.products li.product img { border-radius:14px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius:12px; border-top-color:var(--primary); }

@media (max-width: 1180px) {
  .catalog-filter { grid-template-columns:1.5fr repeat(2,1fr) auto; }
  .catalog-filter select:nth-of-type(3) { display:none; }
  .account-books { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 1024px) {
  .desktop-nav { display:none; }
  .mobile-menu-toggle { display:flex; }
  .hero-visual { max-width:600px; }
  .pm-post-grid { grid-template-columns:repeat(2,1fr); }
  .about-hero-grid, .story-grid, .contact-grid, .pm-auth-shell, .pm-book-detail-grid { grid-template-columns:1fr; }
  .about-visual { max-width:580px; width:100%; margin:0 auto; }
  .values-grid { grid-template-columns:repeat(2,1fr); }
  .contact-info-card { order:2; }
  .pm-book-main-cover { margin:0 auto; width:min(100%,430px); }
  .account-layout { grid-template-columns:1fr; }
  .account-menu { position:static; display:flex; overflow:auto; white-space:nowrap; }
}
@media (max-width: 768px) {
  :root { --header-height:66px; }
  body { padding-bottom:68px; }
  .topbar { padding:7px 0; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .header-inner { height:66px; padding-left:16px; padding-right:16px; gap:10px; }
  .logo-mark { width:38px; height:38px; font-size:19px; }
  .logo-text { font-size:18px; }
  .logo-text small { font-size:8px; }
  .pm-custom-logo img { max-height:44px; max-width:170px; }
  .header-actions { gap:7px; }
  .header-actions .hide-mobile, .account-btn { display:none; }
  .mobile-bottom-nav { position:fixed; z-index:98; left:0; right:0; bottom:0; height:68px; display:grid; grid-template-columns:repeat(5,1fr); background:rgba(255,255,255,.96); backdrop-filter:blur(16px); border-top:1px solid var(--border); padding-bottom:env(safe-area-inset-bottom); box-shadow:0 -8px 24px rgba(30,27,75,.08); }
  .mobile-bottom-nav a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; color:var(--ink-soft); font-size:9px; font-weight:700; }
  .mobile-bottom-nav span { font-size:21px; line-height:1; color:var(--ink); }
  .whats { width:52px; height:52px; right:14px; bottom:82px; }
  .hero { padding:42px 0 56px; }
  .hero-grid { gap:34px; }
  .hero h1 { font-size:clamp(2.25rem,12vw,3.4rem); }
  .hero-sub { font-size:16px; }
  .hero-search { border-radius:18px; padding:6px 6px 6px 14px; }
  .hero-search button { padding:12px 16px; }
  .hero-trust { gap:12px; font-size:12px; }
  .hero-visual { height:380px; width:100%; }
  .hero-visual .book-card { width:145px; }
  .hero-visual .bc-1 { width:160px; }
  .hero-visual .bc-2 { left:3px; }
  .hero-visual .bc-3 { right:3px; }
  .hero-visual .bc-4 { left:20px; width:135px; }
  .hero-visual .bc-5 { right:20px; width:135px; }
  .floating-badge { padding:9px 11px; gap:8px; }
  .floating-badge .icon { width:34px; height:34px; font-size:17px; }
  .floating-badge .value { font-size:12px; }
  .floating-badge.b1 { right:0; }
  .floating-badge.b2 { left:0; bottom:80px; }
  .section-head { margin-bottom:34px; }
  .categories-grid { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; gap:12px; padding:4px 2px 16px; }
  .categories-grid .cat-card { min-width:175px; scroll-snap-align:start; padding:24px 16px; }
  .books-tabs { justify-content:flex-start; overflow-x:auto; flex-wrap:nowrap; width:100%; border-radius:16px; margin-bottom:28px; }
  .books-tab { white-space:nowrap; padding:9px 15px; }
  .books-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
  .book-info { padding:14px; }
  .book-title { font-size:15px; }
  .book-author { font-size:11px; }
  .book-meta { font-size:11px; }
  .book-price .now { font-size:17px; }
  .book-buy { width:36px; height:36px; }
  .book-read-link { font-size:11px; }
  .reading-page-hero { padding:60px 0; }
  .reader-mockup { transform:none; padding:12px; }
  .reader-screen { padding:24px 18px 72px; }
  .reader-page { font-size:17px; }
  .steps-grid, .account-stats { grid-template-columns:1fr; }
  .plan-page-hero { padding:60px 0 110px; }
  .billing-switch { overflow:auto; justify-content:flex-start; }
  .pm-post-grid { grid-template-columns:1fr; }
  .values-grid { grid-template-columns:1fr; }
  .about-visual { min-height:330px; }
  .about-visual span { width:85px; height:85px; font-size:40px; }
  .about-visual span:nth-child(1) { width:130px; height:130px; font-size:65px; }
  .story-card { grid-template-columns:1fr 1fr; }
  .contact-info-card, .contact-form-card { padding:24px; }
  .form-row { grid-template-columns:1fr; }
  .pm-auth-intro { min-height:auto; padding:34px 26px; }
  .pm-auth-card { padding:22px; }
  .account-header { align-items:flex-start; }
  .account-content { padding:18px; }
  .account-books { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .catalog-filter { position:static; grid-template-columns:1fr 1fr; border-radius:16px; }
  .catalog-filter .catalog-search { grid-column:1/-1; }
  .catalog-filter .btn { justify-content:center; }
  .filter-clear { padding:10px; }
  .pm-book-detail-grid { gap:36px; }
  .pm-book-summary h1 { font-size:2.4rem; }
  .detail-actions .btn { flex:1 1 calc(50% - 6px); justify-content:center; padding:13px 16px; }
  .detail-actions .pm-favorite-btn { flex:0 0 54px; }
  .pm-book-tabs { padding:24px; }
  .pm-reader-header { grid-template-columns:auto 1fr; padding:9px 12px; }
  .pm-reader-header > div:nth-child(2) { text-align:left; min-width:0; }
  .pm-reader-header > div:nth-child(2) strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .pm-reader-controls { grid-column:1/-1; justify-content:center; display:none; }
  .pm-reader-header.controls-open .pm-reader-controls { display:flex; }
  .pm-reader-content { padding:50px 22px; font-size:19px; }
}
@media (max-width: 480px) {
  .container { padding-left:16px; padding-right:16px; }
  .categories-grid, .books-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .categories-grid { display:flex; }
  .book-cover { aspect-ratio:3/4; }
  .book-tag { font-size:9px; padding:4px 8px; top:8px; left:8px; }
  .book-fav { width:31px; height:31px; top:8px; right:8px; }
  .catalog-filter { grid-template-columns:1fr; }
  .catalog-filter > * { grid-column:auto!important; }
  .account-books { grid-template-columns:1fr 1fr; }
  .story-card { grid-template-columns:1fr; }
  .newsletter { padding:34px 18px; }
  .newsletter-actions .btn { width:100%; justify-content:center; }
}
