/* ============================================================
   PALAVRA VIVA - CSS COMPLETO v2.0
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.5;
}

a { text-decoration: none; }

/* ============================================================
   AUTH (LOGIN, CADASTRO, RECUPERAR, REDEFINIR)
   ============================================================ */

.pvm-screen {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
    position: relative;
    overflow: hidden;
}

.pvm-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(59,130,246,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139,92,246,0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(236,72,153,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.pvm-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.pvm-side-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: #fff;
}

.pvm-logo-big { max-width: 480px; text-align: center; }

.pvm-logo-icon {
    font-size: 80px;
    margin-bottom: 24px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

.pvm-logo-big h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pvm-logo-big p {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 16px;
    font-style: italic;
}

.pvm-verse {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.pvm-benefits {
    list-style: none;
    text-align: left;
    margin-top: 30px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.pvm-benefits li {
    padding: 14px 20px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 16px;
    transition: all 0.3s;
}

.pvm-benefits li:hover {
    transform: translateX(6px);
    background: rgba(255,255,255,0.15);
}

.pvm-side-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #fff;
}

.pvm-form-box { width: 100%; max-width: 420px; }

.pvm-back {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
    display: inline-block;
    transition: color 0.2s;
}

.pvm-back:hover { color: #3b82f6; }

.pvm-form-box h2 {
    font-size: 32px;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.pvm-sub {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 32px;
}

.pvm-form { display: flex; flex-direction: column; gap: 20px; }
.pvm-field { display: flex; flex-direction: column; gap: 8px; }

.pvm-field label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pvm-field input {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
    background: #f8fafc;
    font-family: inherit;
    width: 100%;
}

.pvm-field input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}

.pvm-field small { font-size: 12px; color: #94a3b8; margin-top: 2px; }

.pvm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: -4px;
}

.pvm-check {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 500 !important;
}

.pvm-check input { width: 16px; height: 16px; cursor: pointer; }

.pvm-row a { color: #3b82f6; font-size: 14px; font-weight: 600; }
.pvm-row a:hover { text-decoration: underline; }

.pvm-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: #fff;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s;
    display: block;
    width: 100%;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(59,130,246,0.3);
}

.pvm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59,130,246,0.5);
    color: #fff;
}

.pvm-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
    color: #94a3b8;
    font-size: 13px;
}

.pvm-divider::before,
.pvm-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background: #e2e8f0;
}

.pvm-divider::before { left: 0; }
.pvm-divider::after { right: 0; }
.pvm-divider span { background: #fff; padding: 0 12px; }

.pvm-footer-text { text-align: center; color: #64748b; font-size: 14px; }
.pvm-footer-text a { color: #3b82f6; }
.pvm-footer-text a:hover { text-decoration: underline; }

.pvm-alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.pvm-erro { background: #fef2f2; color: #991b1b; border-left: 4px solid #ef4444; }
.pvm-ok { background: #f0fdf4; color: #166534; border-left: 4px solid #22c55e; }

/* ============================================================
   DASHBOARD PREMIUM
   ============================================================ */

.pvm-app {
    min-height: 100vh;
    background: #f8fafc;
}

.pvm-topbar {
    background: #fff;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(15,23,42,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f1f5f9;
}

.pvm-brand {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pvm-brand-icon { font-size: 26px; }

.pvm-brand-text {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pvm-nav { display: flex; gap: 4px; }

.pvm-nav a {
    color: #475569;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.pvm-nav a:hover { background: #f1f5f9; color: #1e40af; }

.pvm-user-area { display: flex; align-items: center; gap: 14px; }

.pvm-greeting-mini { color: #475569; font-size: 14px; font-weight: 600; }

.pvm-avatar-wrap { position: relative; }

.pvm-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 14px rgba(59,130,246,0.3);
}

.pvm-avatar:hover { transform: scale(1.05); }

.pvm-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(15,23,42,0.15);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    border: 1px solid #f1f5f9;
}

.pvm-avatar-wrap:hover .pvm-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pvm-dropdown a {
    display: block;
    padding: 10px 14px;
    color: #334155;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.pvm-dropdown a:hover { background: #f1f5f9; }

.pvm-dropdown hr { border: none; border-top: 1px solid #f1f5f9; margin: 6px 0; }

.pvm-logout-link:hover { background: #fef2f2 !important; color: #991b1b !important; }

.pvm-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 40px 60px;
}

.pvm-toast {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #78350f;
    padding: 18px 24px;
    border-radius: 14px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid #f59e0b;
}

.pvm-toast-icon { font-size: 32px; }
.pvm-toast strong { display: block; font-size: 16px; margin-bottom: 2px; }
.pvm-toast p { margin: 0; font-size: 14px; opacity: 0.9; }

.pvm-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #8b5cf6 100%);
    border-radius: 24px;
    padding: 40px;
    color: #fff;
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(30,64,175,0.25);
}

.pvm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 40%);
    pointer-events: none;
}

.pvm-hero-content { position: relative; z-index: 1; }

.pvm-date {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.pvm-hero-content h1 {
    font-size: 38px;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #fff;
}

.pvm-hero-sub {
    font-size: 17px;
    opacity: 0.95;
    margin: 0;
    line-height: 1.5;
}

.pvm-verse-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 24px;
    border-radius: 16px;
    position: relative;
    z-index: 1;
}

.pvm-verse-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.pvm-verse-card blockquote {
    font-size: 17px;
    line-height: 1.5;
    font-style: italic;
    margin: 0 0 12px;
    font-weight: 500;
}

.pvm-verse-card cite {
    font-size: 13px;
    font-weight: 700;
    font-style: normal;
    opacity: 0.9;
}

.pvm-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

.pvm-stat {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.06);
    transition: all 0.3s;
    border: 1px solid #f1f5f9;
}

.pvm-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(15,23,42,0.08);
}

.pvm-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-fire { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.stat-book { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.stat-medal { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.stat-heart { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }

.pvm-stat-content { display: flex; flex-direction: column; }

.pvm-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.pvm-stat-label {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 500;
}

.pvm-featured {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    color: #fff;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15,23,42,0.3);
}

.pvm-featured::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 60%);
}

.pvm-featured-card { position: relative; z-index: 1; }

.pvm-featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.pvm-featured-card h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    color: #fff;
}

.pvm-featured-card p {
    font-size: 16px;
    opacity: 0.85;
    margin: 0 0 24px;
    line-height: 1.6;
}

.pvm-featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #0f172a;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.2s;
}

.pvm-featured-btn:hover {
    transform: translateX(4px);
    color: #0f172a;
    background: #f59e0b;
}

.pvm-featured-img { position: relative; z-index: 1; text-align: center; }

.pvm-featured-emoji {
    font-size: 140px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

.pvm-section-title { margin-bottom: 24px; }

.pvm-section-title h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}

.pvm-section-title p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}

.pvm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.pvm-bigcard {
    position: relative;
    border-radius: 20px;
    padding: 30px;
    color: #fff;
    overflow: hidden;
    transition: all 0.3s;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(15,23,42,0.08);
}

.pvm-bigcard:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15,23,42,0.2);
    color: #fff;
}

.pvm-bigcard-bg { position: absolute; inset: 0; z-index: 0; }

.pvm-bigcard-1 .pvm-bigcard-bg { background: linear-gradient(135deg, #3b82f6, #1e40af); }
.pvm-bigcard-2 .pvm-bigcard-bg { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.pvm-bigcard-3 .pvm-bigcard-bg { background: linear-gradient(135deg, #ec4899, #be185d); }
.pvm-bigcard-4 .pvm-bigcard-bg { background: linear-gradient(135deg, #f59e0b, #d97706); }
.pvm-bigcard-5 .pvm-bigcard-bg { background: linear-gradient(135deg, #10b981, #047857); }
.pvm-bigcard-6 .pvm-bigcard-bg { background: linear-gradient(135deg, #ef4444, #b91c1c); }

.pvm-bigcard-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.2) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(0,0,0,0.15) 0%, transparent 40%);
}

.pvm-bigcard-icon {
    font-size: 60px;
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
    transition: transform 0.3s;
}

.pvm-bigcard:hover .pvm-bigcard-icon {
    transform: scale(1.15) rotate(-5deg);
}

.pvm-bigcard-content { position: relative; z-index: 1; }

.pvm-bigcard-tag {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    margin-bottom: 10px;
}

.pvm-bigcard h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
    color: #fff;
}

.pvm-bigcard p {
    font-size: 14px;
    opacity: 0.95;
    margin: 0 0 16px;
    line-height: 1.5;
}

.pvm-bigcard-cta {
    display: inline-block;
    font-weight: 700;
    font-size: 14px;
}

.pvm-dash-footer {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    font-style: italic;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
}

.pvm-dash-footer strong { color: #1e40af; font-style: normal; }

/* RESPONSIVO */
@media (max-width: 968px) {
    .pvm-topbar { padding: 14px 20px; flex-wrap: wrap; gap: 10px; }
    .pvm-nav { display: none; }
    .pvm-main { padding: 20px; }
    .pvm-hero { grid-template-columns: 1fr; padding: 30px 24px; }
    .pvm-hero-content h1 { font-size: 28px; }
    .pvm-stats { grid-template-columns: repeat(2, 1fr); }
    .pvm-featured { grid-template-columns: 1fr; padding: 30px 24px; }
    .pvm-featured-emoji { font-size: 100px; }
    .pvm-featured-card h2 { font-size: 24px; }
    .pvm-grid { grid-template-columns: 1fr; }
    .pvm-greeting-mini { display: none; }
    .pvm-split { grid-template-columns: 1fr; }
    .pvm-side-visual { display: none; }
    .pvm-side-form { padding: 30px 20px; min-height: 100vh; }
    .pvm-form-box h2 { font-size: 26px; }
}