/* ═══════════════════════════════════════════════════════════════
   PORTAL ONLINE - PAI WESLEY DE OGUM
   Clean Premium Edition v7.5
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --gold: #D4A941;
    --gold-light: #E8C45D;
    --gold-dark: #B8942F;
    --gold-glow: rgba(212, 169, 65, 0.2);
    
    --bg-dark: #0C0C0E;
    --bg-card: #141418;
    --bg-elevated: #1A1A20;
    --bg-input: #1E1E26;
    
    --border: rgba(255,255,255,0.06);
    --border-gold: rgba(212, 169, 65, 0.2);
    
    --text-white: #FFFFFF;
    --text-primary: #F0F0F0;
    --text-secondary: #A0A0A8;
    --text-muted: #606068;
    
    --success: #34C77B;
    --error: #E94560;
    --warning: #F5A623;
    
    --radius: 12px;
    --radius-lg: 16px;
    --transition: 0.25s ease;
}

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

body.pw-fullpage {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: #000; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════════
   TIPOGRAFIA
   ═══════════════════════════════════════════════════════════════ */
h1, h2, h3 { 
    font-family: 'Playfair Display', serif; 
    font-weight: 600; 
    color: var(--gold);
    letter-spacing: -0.02em;
}

h1 { font-size: 28px; }
h2 { font-size: 20px; font-weight: 500; }
h3 { font-size: 16px; font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT - SIDEBAR
   ═══════════════════════════════════════════════════════════════ */
.pw-app { display: flex; min-height: 100vh; }

.pw-sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.pw-sidebar-header {
    padding: 28px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.pw-sidebar-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    padding: 2px;
    background: var(--bg-dark);
    margin-bottom: 14px;
}

.pw-sidebar-header h2 {
    font-size: 18px;
    margin-bottom: 4px;
}

.pw-sidebar-header p {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.pw-nav { flex: 1; padding: 16px 0; overflow-y: auto; }

.pw-nav-section { margin-bottom: 8px; }

.pw-nav-title {
    display: block;
    padding: 10px 24px 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.pw-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}

.pw-nav-item:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.03);
}

.pw-nav-item.active {
    color: var(--gold);
    background: rgba(212, 169, 65, 0.08);
    border-left-color: var(--gold);
    font-weight: 500;
}

.pw-sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
}

.pw-user-info { margin-bottom: 12px; }

.pw-user-name {
    display: block;
    font-weight: 600;
    color: var(--text-white);
    font-size: 14px;
}

.pw-user-role {
    font-size: 12px;
    color: var(--gold);
}

.pw-btn-logout {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
}

.pw-btn-logout:hover {
    border-color: var(--error);
    color: var(--error);
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT - MAIN CONTENT
   ═══════════════════════════════════════════════════════════════ */
.pw-main {
    flex: 1;
    margin-left: 260px;
    padding: 32px 40px;
    min-height: 100vh;
}

.pw-page { display: none; animation: fadeIn 0.3s ease; }
.pw-page.active { display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD - WELCOME
   ═══════════════════════════════════════════════════════════════ */
.pw-welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.pw-welcome-text h1 {
    font-size: 32px;
    margin-bottom: 4px;
}

.pw-welcome-sub {
    color: var(--text-secondary);
    font-size: 15px;
}

.pw-date-display {
    text-align: right;
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: capitalize;
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD - INFO CARDS (Relógios e Clima)
   ═══════════════════════════════════════════════════════════════ */
.pw-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.pw-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
}

.pw-info-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
}

.pw-clock-icon, .pw-weather-icon {
    font-size: 36px;
    line-height: 1;
}

.pw-clock-content, .pw-weather-content {
    display: flex;
    flex-direction: column;
}

.pw-clock-label, .pw-weather-city {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pw-clock-time {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -1px;
}

.pw-clock-city {
    font-size: 13px;
    color: var(--text-secondary);
}

.pw-weather-temp {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
}

.pw-weather-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD - SECTION TITLE
   ═══════════════════════════════════════════════════════════════ */
.pw-section-title-bar {
    margin-bottom: 20px;
}

.pw-section-title-bar h2 {
    color: var(--text-white);
    font-size: 18px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD - STATS
   ═══════════════════════════════════════════════════════════════ */
.pw-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.pw-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all var(--transition);
}

.pw-stat-card:hover {
    border-color: var(--border-gold);
}

.pw-stat-icon {
    font-size: 40px;
    opacity: 0.9;
}

.pw-stat-info {
    display: flex;
    flex-direction: column;
}

.pw-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.pw-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.pw-stat-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.pw-stat-sub strong {
    color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD - ACTIONS
   ═══════════════════════════════════════════════════════════════ */
.pw-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pw-action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all var(--transition);
}

.pw-action-card:hover {
    border-color: var(--gold);
    background: rgba(212, 169, 65, 0.05);
    transform: translateY(-3px);
}

.pw-action-icon {
    font-size: 32px;
}

.pw-action-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.pw-action-card:hover .pw-action-text {
    color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════
   BOTÕES
   ═══════════════════════════════════════════════════════════════ */
.pw-btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: var(--radius);
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.pw-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 169, 65, 0.3);
}

.pw-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    color: var(--gold);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}

.pw-btn-outline:hover {
    background: rgba(212, 169, 65, 0.1);
}

.pw-btn-secondary {
    padding: 12px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
}

.pw-btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.pw-btn-whatsapp-pulse {
    width: 100%;
    padding: 16px 28px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}

.pw-btn-whatsapp-pulse:hover { animation: none; transform: scale(1.02); }

/* ═══════════════════════════════════════════════════════════════
   FORMULÁRIOS
   ═══════════════════════════════════════════════════════════════ */
.pw-field { margin-bottom: 20px; }

.pw-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.pw-field .required { color: var(--gold); }

.pw-field input,
.pw-field select,
.pw-field textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    transition: all var(--transition);
}

.pw-field input::placeholder,
.pw-field textarea::placeholder {
    color: var(--text-muted);
}

.pw-field input:focus,
.pw-field select:focus,
.pw-field textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(212, 169, 65, 0.03);
}

.pw-field textarea { min-height: 100px; resize: vertical; }

.pw-field-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   FORM CARDS
   ═══════════════════════════════════════════════════════════════ */
.pw-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}

.pw-form-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   TABELAS
   ═══════════════════════════════════════════════════════════════ */
.pw-table-container, .pw-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.pw-table {
    width: 100%;
    border-collapse: collapse;
}

.pw-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.pw-table td {
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

.pw-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

.pw-table tbody tr:last-child td { border-bottom: none; }

.pw-btn-action {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.pw-btn-edit { background: rgba(212, 169, 65, 0.15); color: var(--gold); }
.pw-btn-edit:hover { background: var(--gold); color: #000; }
.pw-btn-delete { background: rgba(233, 69, 96, 0.15); color: var(--error); }
.pw-btn-delete:hover { background: var(--error); color: #fff; }
.pw-btn-view { background: rgba(52, 199, 123, 0.15); color: var(--success); }
.pw-btn-view:hover { background: var(--success); color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   PÁGINAS PÚBLICAS
   ═══════════════════════════════════════════════════════════════ */
.pw-public-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 50px 20px;
}

.pw-public-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 540px;
}

.pw-public-box .pw-logo {
    text-align: center;
    margin-bottom: 24px;
}

.pw-public-box .pw-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.pw-public-box h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 8px;
}

.pw-public-box .pw-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

/* ═══════════════════════════════════════════════════════════════
   FICHA / PRONTUÁRIO
   ═══════════════════════════════════════════════════════════════ */
.pw-ficha-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
}

.pw-ficha-container { width: 100%; max-width: 750px; }

.pw-ficha-header {
    text-align: center;
    margin-bottom: 32px;
}

.pw-ficha-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    margin-bottom: 16px;
}

.pw-ficha-header h1 { font-size: 26px; margin-bottom: 6px; }
.pw-ficha-header .pw-subtitle { color: var(--text-muted); font-size: 11px; letter-spacing: 2px; }

.pw-ficha-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 16px;
}

.pw-ficha-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.pw-ficha-row {
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    line-height: 1.7;
}

.pw-ficha-row:last-child { border-bottom: none; }

.pw-ficha-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pw-ficha-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.pw-crm-card {
    background: rgba(212, 169, 65, 0.05);
    border-color: var(--border-gold);
}

.pw-crm-textarea {
    width: 100%;
    min-height: 180px;
    padding: 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.6;
    resize: vertical;
}

/* ═══════════════════════════════════════════════════════════════
   DESTAQUE PESSOA ENVOLVIDA
   ═══════════════════════════════════════════════════════════════ */
.pw-envolve-destaque {
    background: rgba(233, 69, 96, 0.06);
    border: 1px solid rgba(233, 69, 96, 0.25);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.pw-envolve-destaque label { color: #ff7b8a !important; font-weight: 600; }

.pw-envolve-hint {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #e57373;
    font-style: italic;
}

.pw-pessoa-fields {
    background: rgba(212, 169, 65, 0.04);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.pw-radio-group { display: flex; gap: 24px; }

.pw-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.pw-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════
   PERGUNTAS SECTION
   ═══════════════════════════════════════════════════════════════ */
.pw-perguntas-section {
    background: rgba(212, 169, 65, 0.03);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.pw-section-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   LINK COPY
   ═══════════════════════════════════════════════════════════════ */
.pw-link-copy {
    margin-top: 24px;
    padding: 20px;
    background: rgba(212, 169, 65, 0.05);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
}

.pw-link-copy p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.pw-link-box-small { display: flex; gap: 10px; }

.pw-link-box-small input {
    flex: 1;
    padding: 12px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 13px;
}

.pw-btn-copy-small {
    padding: 12px 18px;
    background: var(--gold);
    border: none;
    border-radius: var(--radius);
    color: #000;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   ALERTAS
   ═══════════════════════════════════════════════════════════════ */
.pw-error {
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid rgba(233, 69, 96, 0.2);
    color: var(--error);
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-top: 16px;
    display: none;
    text-align: center;
}

.pw-error.show { display: block; animation: shake 0.4s; }

@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.pw-success {
    background: rgba(52, 199, 123, 0.1);
    border: 1px solid rgba(52, 199, 123, 0.2);
    color: var(--success);
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-top: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   FILTERS
   ═══════════════════════════════════════════════════════════════ */
.pw-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.pw-filters input,
.pw-filters select {
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
}

.pw-filters input:focus,
.pw-filters select:focus {
    outline: none;
    border-color: var(--gold);
}

.pw-btn-filter {
    padding: 10px 20px;
    background: var(--gold);
    border: none;
    border-radius: var(--radius);
    color: #000;
    font-weight: 600;
    cursor: pointer;
}

.pw-bulk-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.pw-btn-bulk {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.pw-btn-inactive { background: rgba(255,255,255,0.1); color: var(--text-secondary); }
.pw-btn-active { background: rgba(52, 199, 123, 0.15); color: var(--success); }

/* ═══════════════════════════════════════════════════════════════
   NOT FOUND
   ═══════════════════════════════════════════════════════════════ */
.pw-not-found {
    text-align: center;
    padding: 60px 20px;
}

.pw-not-found-icon { font-size: 60px; margin-bottom: 20px; }
.pw-not-found h2 { margin-bottom: 10px; }
.pw-not-found p { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════
   VÍDEO PAGE
   ═══════════════════════════════════════════════════════════════ */
.pw-video-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.pw-video-container { width: 100%; max-width: 850px; }

.pw-video-header {
    text-align: center;
    margin-bottom: 28px;
}

.pw-video-header img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    margin-bottom: 16px;
}

.pw-video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.pw-video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.pw-video-player iframe { width: 100%; height: 100%; border: none; }

.pw-video-info { padding: 24px; border-top: 1px solid var(--border); }
.pw-video-title { font-size: 18px; margin-bottom: 12px; }
.pw-video-meta { display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════
   CONTRATO SECTION
   ═══════════════════════════════════════════════════════════════ */
.pw-contrato-section {
    margin-top: 24px;
    padding: 24px;
    background: rgba(212, 169, 65, 0.04);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
}

.pw-contrato-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.pw-contrato-header h2 {
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
}

.pw-contrato-box {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    max-height: 220px;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.pw-contrato-aceite {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: rgba(212, 169, 65, 0.06);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.pw-contrato-aceite input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    margin-top: 2px;
}

.pw-contrato-aceite label {
    font-size: 13px;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════════════════════════ */
.pw-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    z-index: 200;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
}

.pw-mobile-header h2 {
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
}

.pw-mobile-header img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.pw-mobile-menu-btn {
    background: none;
    border: none;
    color: var(--gold);
    font-size: 24px;
    cursor: pointer;
}

.pw-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99;
}

.pw-mobile-overlay.show { display: block; }

/* ═══════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════ */
.pw-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.pw-modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 440px;
    width: 100%;
    position: relative;
}

.pw-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.pw-modal-header { text-align: center; margin-bottom: 24px; }
.pw-modal-icon { width: 80px; height: 80px; border-radius: 16px; margin-bottom: 16px; }
.pw-modal-header h2 { font-size: 20px; margin-bottom: 8px; }
.pw-modal-header p { color: var(--text-muted); font-size: 14px; }

.pw-app-instructions h3 { font-size: 15px; color: var(--text-primary); margin-bottom: 16px; text-align: center; }
.pw-btn-install-big { width: 100%; padding: 16px; background: var(--gold); border: none; border-radius: var(--radius); color: #000; font-size: 15px; font-weight: 600; cursor: pointer; margin-bottom: 12px; }
.pw-app-note { text-align: center; color: var(--text-muted); font-size: 12px; }

.pw-ios-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.pw-ios-step { display: flex; gap: 14px; padding: 14px; background: var(--bg-elevated); border-radius: var(--radius); }
.pw-step-num { width: 28px; height: 28px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; color: #000; font-size: 13px; }
.pw-step-text { flex: 1; font-size: 14px; }
.pw-step-text strong { color: var(--gold); }

.pw-app-installed { text-align: center; padding: 20px; }
.pw-check-big { font-size: 48px; display: block; margin-bottom: 12px; }
.pw-app-installed h3 { color: var(--success); margin-bottom: 8px; font-family: 'Outfit', sans-serif; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .pw-info-grid { grid-template-columns: repeat(2, 1fr); }
    .pw-actions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .pw-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .pw-sidebar.mobile-open { transform: translateX(0); }
    .pw-mobile-header { display: flex; }
    .pw-main { margin-left: 0; padding: 80px 20px 30px; }
}

@media (max-width: 600px) {
    .pw-info-grid { grid-template-columns: 1fr; }
    .pw-stats-grid { grid-template-columns: 1fr; }
    .pw-actions-grid { grid-template-columns: repeat(2, 1fr); }
    .pw-field-row { grid-template-columns: 1fr; }
    .pw-public-box { padding: 28px 20px; }
    .pw-welcome-header { flex-direction: column; gap: 12px; }
    .pw-date-display { text-align: left; }
}

/* ═══════════════════════════════════════════════════════════════
   PWA
   ═══════════════════════════════════════════════════════════════ */
@media (display-mode: standalone) {
    body::before { content: ''; display: block; height: env(safe-area-inset-top); background: var(--bg-dark); }
}

@supports (padding: max(0px)) {
    .pw-sidebar { padding-top: max(16px, env(safe-area-inset-top)); }
    .pw-mobile-header { padding-top: env(safe-area-inset-top); height: calc(60px + env(safe-area-inset-top)); }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════════ */
@media print {
    body.pw-fullpage { background: #fff !important; color: #000 !important; }
    .pw-sidebar, .pw-mobile-header { display: none !important; }
    .pw-main { margin: 0; padding: 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   GERAR LINK - DESIGN ESPECIAL
   ═══════════════════════════════════════════════════════════════ */
.pw-gerar-container {
    max-width: 680px;
}

.pw-gerar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
}

.pw-gerar-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.pw-gerar-step {
    width: 32px;
    height: 32px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #000;
}

.pw-gerar-card-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
}

.pw-gerar-card-body {
    padding: 24px;
}

.pw-gerar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.pw-gerar-field {
    margin-bottom: 16px;
}

.pw-gerar-field:last-child {
    margin-bottom: 0;
}

.pw-gerar-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.pw-gerar-field input,
.pw-gerar-field select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    transition: all var(--transition);
}

.pw-gerar-field input:focus,
.pw-gerar-field select:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(212, 169, 65, 0.03);
}

.pw-gerar-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.pw-gerar-videos-list {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-height: 80px;
    padding: 16px;
    margin-bottom: 20px;
}

.pw-gerar-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 16px;
}

.pw-gerar-video-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    margin-bottom: 8px;
}

.pw-gerar-video-item:last-child {
    margin-bottom: 0;
}

.pw-gerar-video-name {
    font-size: 14px;
    color: var(--text-primary);
}

.pw-gerar-video-remove {
    background: rgba(233, 69, 96, 0.15);
    border: none;
    color: var(--error);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all var(--transition);
}

.pw-gerar-video-remove:hover {
    background: var(--error);
    color: #fff;
}

.pw-gerar-add-section {
    background: rgba(212, 169, 65, 0.03);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
    padding: 20px;
}

.pw-gerar-add-row {
    display: flex;
    gap: 12px;
}

.pw-gerar-add-row select {
    flex: 1;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
}

.pw-gerar-btn-add {
    padding: 12px 20px;
    background: var(--gold);
    border: none;
    border-radius: var(--radius);
    color: #000;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.pw-gerar-btn-add:hover {
    background: var(--gold-light);
}

.pw-gerar-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.pw-gerar-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--border);
}

.pw-gerar-divider span {
    background: rgba(212, 169, 65, 0.03);
    padding: 0 16px;
    font-size: 12px;
    color: var(--text-muted);
    position: relative;
}

.pw-gerar-manual-row {
    display: flex;
    gap: 10px;
}

.pw-gerar-manual-row input {
    flex: 1;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
}

.pw-gerar-manual-row input:focus {
    outline: none;
    border-color: var(--gold);
}

.pw-gerar-btn-add-manual {
    width: 48px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--gold);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.pw-gerar-btn-add-manual:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.pw-gerar-submit {
    width: 100%;
    padding: 20px 28px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all var(--transition);
}

.pw-gerar-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(212, 169, 65, 0.35);
}

.pw-gerar-submit-icon {
    font-size: 24px;
}

.pw-gerar-submit-text {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.pw-gerar-submit-sub {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.6);
    margin-left: 8px;
}

.pw-gerar-result {
    margin-top: 24px;
    padding: 32px;
    background: rgba(52, 199, 123, 0.08);
    border: 1px solid rgba(52, 199, 123, 0.2);
    border-radius: var(--radius-lg);
    text-align: center;
}

.pw-gerar-result-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.pw-gerar-result h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 20px;
}

.pw-gerar-link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.pw-gerar-link-box input {
    flex: 1;
    padding: 14px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--success);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
}

.pw-gerar-copy {
    padding: 14px 24px;
    background: var(--success);
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
}

.pw-gerar-copy:hover {
    background: #2ab36a;
}

.pw-gerar-result-info {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .pw-gerar-grid {
        grid-template-columns: 1fr;
    }
    
    .pw-gerar-add-row {
        flex-direction: column;
    }
    
    .pw-gerar-manual-row {
        flex-wrap: wrap;
    }
    
    .pw-gerar-manual-row input {
        flex: 1 1 100%;
    }
    
    .pw-gerar-manual-row input:first-child {
        margin-bottom: 8px;
    }
    
    .pw-gerar-submit {
        flex-wrap: wrap;
    }
    
    .pw-gerar-result-info {
        flex-direction: column;
        gap: 8px;
    }
}
