/* ═══════════════════════════════════════════════════════════════
   PORTAL ONLINE - PAI WESLEY
   Mercedes-Maybach Edition v9.0
   Design System de Luxo Absoluto
   ═══════════════════════════════════════════════════════════════ */

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

:root {
    /* ═══ PALETA MAYBACH ═══ */
    
    /* Fundos Obsidiana */
    --obsidian: #08090c;
    --obsidian-light: #0d0f14;
    --graphite: #12141a;
    --graphite-light: #1a1d24;
    --slate: #22252e;
    
    /* Champanhe & Ouro Rosé */
    --champagne: #d4c4a8;
    --champagne-light: #e8dcc6;
    --champagne-dark: #b8a88c;
    --champagne-muted: rgba(212, 196, 168, 0.08);
    --champagne-glow: rgba(212, 196, 168, 0.15);
    --rose-gold: #c4a77d;
    
    /* Prata & Platina */
    --platinum: #e8e8e8;
    --silver: #a8a8b0;
    --silver-dark: #6a6a72;
    
    /* Textos */
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --text-muted: #52525b;
    
    /* Status Refinadas */
    --emerald: #34d399;
    --emerald-muted: rgba(52, 211, 153, 0.1);
    --ruby: #f87171;
    --ruby-muted: rgba(248, 113, 113, 0.1);
    --sapphire: #60a5fa;
    --sapphire-muted: rgba(96, 165, 250, 0.1);
    --amethyst: #a78bfa;
    --amethyst-muted: rgba(167, 139, 250, 0.1);
    --amber: #fbbf24;
    --amber-muted: rgba(251, 191, 36, 0.1);
    
    /* Bordas Sutis */
    --border-invisible: rgba(255, 255, 255, 0.03);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-champagne: rgba(212, 196, 168, 0.2);
    
    /* Sombras Luxuosas */
    --shadow-ambient: 0 0 80px rgba(0,0,0,0.6);
    --shadow-soft: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-medium: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-elevated: 0 16px 48px rgba(0,0,0,0.5);
    --shadow-champagne: 0 8px 32px rgba(212, 196, 168, 0.08);
    --shadow-inner: inset 0 1px 0 rgba(255,255,255,0.03);
    
    /* Raios */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Animações */
    --ease-luxury: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 0.15s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;
    
    /* ═══ TEMA CLARO ═══ */
    --light-bg: #f8f6f1;
    --light-card: #ffffff;
    --light-input: #faf8f5;
    --light-border: #e5e0d5;
    --light-text: #2c2c2c;
    --light-text-secondary: #666666;
    --light-gold: #c9a227;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */

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

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

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

/* ═══ TEMA CLARO - Força fundo claro quando .pw-ritual-page existe ═══ */
body:has(.pw-ritual-page),
html:has(.pw-ritual-page) body,
.pw-light-theme,
body.pw-light-theme {
    background: #f8f6f1 !important;
    color: #2c2c2c !important;
}
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--champagne);
    color: var(--obsidian);
}

/* Scrollbar Ultra-Fina */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--silver-dark);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--champagne-dark);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--silver-dark) transparent;
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */

h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

h1 { font-size: 2rem; font-weight: 600; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

a {
    color: var(--champagne);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-luxury);
}

a:hover { color: var(--champagne-light); }

/* ═══════════════════════════════════════════════════════════════
   PARTÍCULAS AMBIENTE
   ═══════════════════════════════════════════════════════════════ */

.ambient-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--champagne);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 18s infinite ease-in-out;
}

.particle:nth-child(1) { left: 5%; animation-delay: 0s; }
.particle:nth-child(2) { left: 15%; animation-delay: 2s; }
.particle:nth-child(3) { left: 25%; animation-delay: 4s; }
.particle:nth-child(4) { left: 35%; animation-delay: 1s; }
.particle:nth-child(5) { left: 45%; animation-delay: 3s; }
.particle:nth-child(6) { left: 55%; animation-delay: 5s; }
.particle:nth-child(7) { left: 65%; animation-delay: 2.5s; }
.particle:nth-child(8) { left: 75%; animation-delay: 4.5s; }
.particle:nth-child(9) { left: 85%; animation-delay: 1.5s; }
.particle:nth-child(10) { left: 95%; animation-delay: 6s; }

@keyframes floatParticle {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.6; }
    50% { opacity: 0.3; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT - SIDEBAR
   ═══════════════════════════════════════════════════════════════ */

.pw-app {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.pw-sidebar {
    width: 280px;
    background: var(--graphite);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    box-shadow: var(--shadow-medium);
}

.pw-sidebar-header {
    padding: 2rem 1.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.pw-sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--champagne-dark), transparent);
}

.pw-sidebar-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--champagne-dark);
    padding: 3px;
    background: var(--obsidian);
    margin-bottom: 1rem;
    transition: all var(--duration-normal) var(--ease-luxury);
    box-shadow: 0 0 30px rgba(212, 196, 168, 0.1);
}

.pw-sidebar-logo:hover {
    border-color: var(--champagne);
    transform: scale(1.03);
    box-shadow: 0 0 40px rgba(212, 196, 168, 0.2);
}

.pw-sidebar-header h2 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--champagne);
}

.pw-sidebar-header p {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 400;
    font-family: 'Outfit', sans-serif;
}

/* Navigation */
.pw-nav {
    flex: 1;
    padding: 1.25rem 0;
    overflow-y: auto;
}

.pw-nav-section { margin-bottom: 0.5rem; }

.pw-nav-title {
    display: block;
    padding: 0.75rem 1.75rem 0.5rem;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.pw-nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all var(--duration-fast) var(--ease-luxury);
    border-left: 2px solid transparent;
    margin: 2px 0;
    position: relative;
}

.pw-nav-item:hover {
    color: var(--text-primary);
    background: var(--champagne-muted);
    border-left-color: var(--champagne-dark);
}

.pw-nav-item.active {
    color: var(--champagne);
    background: var(--champagne-muted);
    border-left-color: var(--champagne);
    font-weight: 500;
}

.pw-nav-item.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--champagne);
    border-radius: var(--radius-full);
}

/* Sidebar Footer */
.pw-sidebar-footer {
    padding: 1.5rem 1.75rem;
    border-top: 1px solid var(--border-subtle);
    background: var(--graphite-light);
}

.pw-user-info { margin-bottom: 1rem; }

.pw-user-name {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.pw-user-role {
    font-size: 0.7rem;
    color: var(--champagne);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pw-btn-logout {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-luxury);
    font-family: 'Outfit', sans-serif;
}

.pw-btn-logout:hover {
    border-color: var(--ruby);
    color: var(--ruby);
    background: var(--ruby-muted);
}

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════ */

.pw-main {
    flex: 1;
    margin-left: 280px;
    padding: 2.5rem 3rem;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.pw-page {
    display: none;
    animation: fadeSlideIn 0.4s var(--ease-luxury);
}

.pw-page.active { display: block; }

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD HOME
   ═══════════════════════════════════════════════════════════════ */

.pw-welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.pw-welcome-text h1 {
    font-size: 2.25rem;
    margin-bottom: 0.35rem;
    color: var(--champagne);
}

.pw-welcome-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
}

.pw-date-display {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: capitalize;
}

/* Info Grid */
.pw-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.pw-info-card {
    background: var(--graphite);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.15rem;
    transition: all var(--duration-normal) var(--ease-luxury);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.pw-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--champagne-muted), transparent);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-luxury);
}

.pw-info-card:hover {
    border-color: var(--border-champagne);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium), var(--shadow-champagne);
}

.pw-info-card:hover::before { opacity: 1; }

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

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

.pw-clock-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.15rem;
}

.pw-clock-time {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.pw-clock-city {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

/* Stats Grid */
.pw-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.pw-stat-card {
    background: var(--graphite);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-luxury);
}

.pw-stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--champagne-muted), transparent 70%);
    opacity: 0;
    transition: opacity var(--duration-slow) var(--ease-luxury);
    pointer-events: none;
}

.pw-stat-card:hover {
    border-color: var(--border-champagne);
    transform: translateY(-3px);
}

.pw-stat-card:hover::after { opacity: 1; }

.pw-stat-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }

.pw-stat-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--champagne);
    margin-bottom: 0.25rem;
}

.pw-stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Actions Grid */
.pw-actions-title {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.pw-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.pw-action-card {
    background: var(--graphite);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-luxury);
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.pw-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 196, 168, 0.05), transparent);
    transition: left var(--duration-slow) var(--ease-luxury);
}

.pw-action-card:hover {
    border-color: var(--border-champagne);
    transform: translateY(-5px);
    box-shadow: var(--shadow-elevated), var(--shadow-champagne);
}

.pw-action-card:hover::before { left: 100%; }

.pw-action-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }

.pw-action-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pw-action-card p {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════ */

.pw-form-section {
    background: var(--graphite);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.pw-form-section h3 {
    font-size: 1rem;
    color: var(--champagne);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.pw-field-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.pw-field-group { margin-bottom: 1.25rem; }

.pw-field-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pw-field-group input,
.pw-field-group select,
.pw-field-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--obsidian);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    transition: all var(--duration-fast) var(--ease-luxury);
}

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

.pw-field-group input:focus,
.pw-field-group select:focus,
.pw-field-group textarea:focus {
    outline: none;
    border-color: var(--champagne-dark);
    box-shadow: 0 0 0 3px var(--champagne-muted);
}

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

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.pw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-luxury);
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.pw-btn-primary {
    background: linear-gradient(135deg, var(--champagne-dark) 0%, var(--champagne) 50%, var(--champagne-light) 100%);
    color: var(--obsidian);
    box-shadow: 0 4px 15px rgba(212, 196, 168, 0.2);
}

.pw-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--duration-slow) var(--ease-luxury);
}

.pw-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 196, 168, 0.3);
}

.pw-btn-primary:hover::before { left: 100%; }

.pw-btn-secondary {
    background: var(--graphite-light);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.pw-btn-secondary:hover {
    border-color: var(--champagne-dark);
    color: var(--champagne);
    background: var(--champagne-muted);
}

.pw-btn-danger {
    background: var(--ruby-muted);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: var(--ruby);
}

.pw-btn-danger:hover {
    background: rgba(248, 113, 113, 0.2);
    border-color: var(--ruby);
}

.pw-btn-success {
    background: var(--emerald-muted);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--emerald);
}

.pw-btn-success:hover {
    background: rgba(52, 211, 153, 0.2);
    border-color: var(--emerald);
}

/* ═══════════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════════ */

.pw-table-container {
    background: var(--graphite);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.pw-table thead { background: var(--graphite-light); }

.pw-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border-subtle);
}

.pw-table td {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-invisible);
}

.pw-table tbody tr {
    transition: background var(--duration-fast) var(--ease-luxury);
}

.pw-table tbody tr:hover { background: var(--graphite-light); }
.pw-table tbody tr:last-child td { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════ */

.pw-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    font-size: 0.65rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pw-badge-success {
    background: var(--emerald-muted);
    color: var(--emerald);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.pw-badge-warning {
    background: var(--amber-muted);
    color: var(--amber);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.pw-badge-danger {
    background: var(--ruby-muted);
    color: var(--ruby);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.pw-badge-info {
    background: var(--sapphire-muted);
    color: var(--sapphire);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   VIDEO PAGE - CLIENTE (PRINCIPAL)
   ═══════════════════════════════════════════════════════════════ */

.pw-video-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    position: relative;
    z-index: 1;
}

.pw-video-box {
    width: 100%;
    max-width: 800px;
    background: linear-gradient(165deg, rgba(18, 20, 26, 0.95) 0%, rgba(12, 13, 18, 0.98) 100%);
    border: 1px solid var(--border-champagne);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-elevated), 0 0 1px rgba(212, 196, 168, 0.3);
    backdrop-filter: blur(20px);
    position: relative;
    animation: boxAppear 0.8s var(--ease-luxury);
}

@keyframes boxAppear {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.pw-video-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--champagne), transparent);
}

.pw-video-box h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--champagne);
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.pw-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.pw-logo { margin-bottom: 2rem; }

.pw-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--champagne-dark);
    box-shadow: 0 0 40px rgba(212, 196, 168, 0.15);
    transition: all var(--duration-normal) var(--ease-luxury);
}

.pw-logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(212, 196, 168, 0.25);
}

/* Welcome Message */
.pw-welcome-message {
    margin: 2rem 0;
    padding: 1.75rem;
    background: var(--champagne-muted);
    border: 1px solid var(--border-champagne);
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.pw-welcome-message strong { color: var(--champagne); }

/* Video List */
.pw-video-list { margin: 2rem 0; }

.pw-video-item-cliente {
    margin-bottom: 2rem;
    background: var(--graphite);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--duration-normal) var(--ease-luxury);
}

.pw-video-item-cliente:hover {
    border-color: var(--border-champagne);
    box-shadow: var(--shadow-medium);
}

.pw-video-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--champagne);
    margin-bottom: 1rem;
    text-align: left;
}

/* Video Wrapper */
.pw-video-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.pw-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--obsidian);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.pw-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.pw-dropbox-video {
    width: 100%;
    border-radius: var(--radius-md);
    background: var(--obsidian);
}

/* Watermark */
.pw-video-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    opacity: 0.12;
}

.pw-video-watermark img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    filter: grayscale(50%);
}

/* Blockers */
.pw-video-blocker-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: transparent;
    z-index: 9999;
    cursor: not-allowed;
}

.pw-video-blocker-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: transparent;
    z-index: 9999;
    cursor: not-allowed;
}

/* Contact & Footer */
.pw-contact-message {
    margin: 2rem 0;
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
}

.pw-contact-message strong { color: var(--champagne); }

.pw-blessing {
    margin-top: 1rem;
    font-size: 1.15rem;
    color: var(--champagne);
    font-family: 'Cormorant Garamond', serif;
}

.pw-warning {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: var(--amber-muted);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--amber);
    text-align: center;
}

.pw-footer-text {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Not Found / Expired */
.pw-not-found, .pw-expired {
    padding: 3rem 1rem;
    text-align: center;
}

.pw-not-found-icon, .pw-expired-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.pw-not-found h1, .pw-expired h1 {
    font-size: 1.75rem;
    color: var(--ruby);
    margin-bottom: 0.75rem;
}

.pw-not-found p, .pw-expired p {
    color: var(--text-tertiary);
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════════════ */

.pw-public-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.pw-public-box {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(165deg, rgba(18, 20, 26, 0.95) 0%, rgba(12, 13, 18, 0.98) 100%);
    border: 1px solid var(--border-champagne);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-elevated), 0 0 1px rgba(212, 196, 168, 0.3);
    backdrop-filter: blur(20px);
    position: relative;
    animation: boxAppear 0.8s var(--ease-luxury);
}

.pw-public-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--champagne), transparent);
}

.pw-public-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--champagne-dark);
    margin-bottom: 1.75rem;
    box-shadow: 0 0 40px rgba(212, 196, 168, 0.15);
}

.pw-public-box h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--champagne);
    margin-bottom: 0.5rem;
}

.pw-public-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.pw-login-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.pw-login-divider::before,
.pw-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-champagne), transparent);
}

.pw-login-divider span {
    padding: 0 1rem;
    color: var(--champagne);
    font-size: 0.85rem;
}

.pw-login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pw-login-input-group {
    position: relative;
    text-align: left;
}

.pw-login-input-group label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.pw-login-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(8, 9, 12, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    transition: all var(--duration-fast) var(--ease-luxury);
}

.pw-login-input::placeholder { color: var(--text-muted); }

.pw-login-input:focus {
    outline: none;
    border-color: var(--champagne-dark);
    box-shadow: 0 0 0 3px var(--champagne-muted);
}

.pw-login-icon {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    font-size: 1rem;
    color: var(--text-muted);
    transition: color var(--duration-fast) var(--ease-luxury);
}

.pw-login-input-group:focus-within .pw-login-icon {
    color: var(--champagne);
}

.pw-login-btn {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, var(--champagne-dark) 0%, var(--champagne) 50%, var(--champagne-light) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: var(--obsidian);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all var(--duration-fast) var(--ease-luxury);
    margin-top: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(212, 196, 168, 0.2);
}

.pw-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--duration-slow) var(--ease-luxury);
}

.pw-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(212, 196, 168, 0.3);
}

.pw-login-btn:hover::before { left: 100%; }

.pw-login-error {
    background: var(--ruby-muted);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: var(--ruby);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
}

.pw-login-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════ */

.pw-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-luxury);
}

.pw-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pw-modal-box {
    background: var(--graphite);
    border: 1px solid var(--border-champagne);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-elevated);
    transform: scale(0.95) translateY(20px);
    transition: transform var(--duration-normal) var(--ease-luxury);
}

.pw-modal-overlay.active .pw-modal-box {
    transform: scale(1) translateY(0);
}

.pw-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--duration-fast) var(--ease-luxury);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pw-modal-close:hover {
    background: var(--ruby-muted);
    border-color: var(--ruby);
    color: var(--ruby);
}

.pw-modal-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.pw-modal-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
}

.pw-modal-header h2 {
    font-size: 1.35rem;
    color: var(--champagne);
    margin-bottom: 0.5rem;
}

.pw-modal-header p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════════════════════════ */

.pw-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--graphite);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 200;
    padding: 0 1.25rem;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(20px);
}

.pw-mobile-header h2 {
    font-size: 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: var(--champagne);
}

.pw-mobile-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--champagne-dark);
}

.pw-mobile-menu-btn {
    background: none;
    border: none;
    color: var(--champagne);
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.5rem;
}

.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;
    backdrop-filter: blur(4px);
}

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

/* ═══════════════════════════════════════════════════════════════
   GERAR LINK
   ═══════════════════════════════════════════════════════════════ */

.pw-gerar-card {
    background: var(--graphite);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.pw-gerar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.pw-gerar-header h3 {
    font-size: 1.1rem;
    color: var(--champagne);
}

.pw-gerar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.pw-video-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--obsidian);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}

.pw-video-item-info { flex: 1; }

.pw-video-item-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.pw-video-item-link {
    font-size: 0.75rem;
    color: var(--text-muted);
    word-break: break-all;
}

.pw-video-item-remove {
    background: none;
    border: none;
    color: var(--ruby);
    cursor: pointer;
    font-size: 1.25rem;
    opacity: 0.6;
    transition: opacity var(--duration-fast) var(--ease-luxury);
}

.pw-video-item-remove:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .pw-info-grid, .pw-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .pw-actions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .pw-sidebar {
        transform: translateX(-100%);
        transition: transform var(--duration-normal) var(--ease-luxury);
    }
    .pw-sidebar.mobile-open { transform: translateX(0); }
    .pw-mobile-header { display: flex; }
    .pw-main { margin-left: 0; padding: 5.5rem 1.5rem 2.5rem; }
}

@media (max-width: 640px) {
    .pw-info-grid, .pw-stats-grid { grid-template-columns: 1fr; }
    .pw-actions-grid { grid-template-columns: repeat(2, 1fr); }
    .pw-field-row, .pw-gerar-grid { grid-template-columns: 1fr; }
    .pw-video-box { padding: 2rem 1.5rem; }
    .pw-public-box { padding: 2.5rem 1.75rem; }
    .pw-welcome-header { flex-direction: column; gap: 1rem; }
    .pw-date-display { text-align: left; }
}

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

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

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .ambient-particles { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD COMPONENTS (Maybach Extended)
   ═══════════════════════════════════════════════════════════════ */

/* Section Title Bar */
.pw-section-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.pw-section-title-bar h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--champagne);
}

/* Form Card */
.pw-form-card {
    background: var(--graphite);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.pw-form-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: var(--champagne);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

/* Field Styles */
.pw-field {
    margin-bottom: 1.25rem;
}

.pw-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pw-field input,
.pw-field select,
.pw-field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--obsidian);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    transition: all var(--duration-fast) var(--ease-luxury);
}

.pw-field input:focus,
.pw-field select:focus,
.pw-field textarea:focus {
    outline: none;
    border-color: var(--champagne-dark);
    box-shadow: 0 0 0 3px var(--champagne-muted);
}

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

/* Filters Bar */
.pw-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--graphite);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.pw-filters input,
.pw-filters select {
    padding: 0.65rem 1rem;
    background: var(--obsidian);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    min-width: 150px;
}

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

/* Button Variants */
.pw-btn-gold,
.pw-btn-primary {
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, var(--champagne-dark) 0%, var(--champagne) 50%, var(--champagne-light) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: var(--obsidian);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-luxury);
    box-shadow: 0 4px 15px rgba(212, 196, 168, 0.2);
}

.pw-btn-gold:hover,
.pw-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 196, 168, 0.3);
}

.pw-btn-secondary {
    padding: 0.85rem 1.75rem;
    background: var(--graphite-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-luxury);
    margin-left: 0.5rem;
}

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

.pw-btn-filter {
    padding: 0.65rem 1.25rem;
    background: var(--champagne-muted);
    border: 1px solid var(--border-champagne);
    border-radius: var(--radius-md);
    color: var(--champagne);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-luxury);
}

.pw-btn-filter:hover {
    background: var(--champagne);
    color: var(--obsidian);
}

/* Bulk Actions */
.pw-bulk-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
}

.pw-btn-bulk {
    padding: 0.55rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-luxury);
}

.pw-btn-bulk.pw-btn-inactive {
    background: var(--amber-muted);
    border: 1px solid rgba(251, 191, 36, 0.25);
    color: var(--amber);
}

.pw-btn-bulk.pw-btn-inactive:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: var(--amber);
}

.pw-btn-bulk.pw-btn-active {
    background: var(--emerald-muted);
    border: 1px solid rgba(52, 211, 153, 0.25);
    color: var(--emerald);
}

.pw-btn-bulk.pw-btn-active:hover {
    background: rgba(52, 211, 153, 0.2);
    border-color: var(--emerald);
}

.pw-btn-bulk.pw-btn-delete {
    background: var(--ruby-muted);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: var(--ruby);
}

.pw-btn-bulk.pw-btn-delete:hover {
    background: rgba(248, 113, 113, 0.2);
    border-color: var(--ruby);
}

.pw-btn-bulk.pw-btn-print {
    background: var(--sapphire-muted);
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: var(--sapphire);
}

.pw-btn-bulk.pw-btn-print:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: var(--sapphire);
}

.pw-selected-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

/* Table Wrapper */
.pw-table-wrap {
    background: var(--graphite);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    overflow-x: auto;
}

/* Weather Card Extra */
.pw-weather-temp {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--champagne);
}

.pw-weather-city {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.pw-weather-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   GERAR LINK SECTION (Maybach)
   ═══════════════════════════════════════════════════════════════ */

.pw-gerar-container {
    max-width: 700px;
}

.pw-gerar-card {
    background: var(--graphite);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.pw-gerar-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--graphite-light);
    border-bottom: 1px solid var(--border-subtle);
}

.pw-gerar-step {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--champagne-dark), var(--champagne));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--obsidian);
}

.pw-gerar-card-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    border: none;
    padding: 0;
}

.pw-gerar-card-body {
    padding: 1.5rem;
}

.pw-gerar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.pw-gerar-field {
    margin-bottom: 1rem;
}

.pw-gerar-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.pw-gerar-field input,
.pw-gerar-field select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--obsidian);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    transition: all var(--duration-fast) var(--ease-luxury);
}

.pw-gerar-field input:focus,
.pw-gerar-field select:focus {
    outline: none;
    border-color: var(--champagne-dark);
    box-shadow: 0 0 0 3px var(--champagne-muted);
}

.pw-gerar-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.pw-gerar-videos-list {
    min-height: 100px;
    background: var(--obsidian);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.pw-gerar-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 1.5rem;
}

.pw-gerar-add-section {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.5rem;
}

.pw-gerar-add-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pw-gerar-add-row select {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--obsidian);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
}

.pw-gerar-btn-add {
    padding: 0.75rem 1.25rem;
    background: var(--champagne-muted);
    border: 1px solid var(--border-champagne);
    border-radius: var(--radius-md);
    color: var(--champagne);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-luxury);
}

.pw-gerar-btn-add:hover {
    background: var(--champagne);
    color: var(--obsidian);
}

.pw-gerar-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
}

.pw-gerar-divider::before,
.pw-gerar-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.pw-gerar-divider span {
    padding: 0 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pw-gerar-manual-row {
    display: flex;
    gap: 0.75rem;
}

.pw-gerar-manual-row input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--obsidian);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
}

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

.pw-gerar-btn-add-manual {
    width: 44px;
    height: 44px;
    background: var(--emerald-muted);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: var(--radius-md);
    color: var(--emerald);
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-luxury);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pw-gerar-btn-add-manual:hover {
    background: var(--emerald);
    color: var(--obsidian);
}

/* Submit Button */
.pw-gerar-submit {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--champagne-dark) 0%, var(--champagne) 50%, var(--champagne-light) 100%);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-luxury);
    box-shadow: 0 8px 30px rgba(212, 196, 168, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    overflow: hidden;
}

.pw-gerar-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--duration-slow) var(--ease-luxury);
}

.pw-gerar-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 196, 168, 0.3);
}

.pw-gerar-submit:hover::before {
    left: 100%;
}

.pw-gerar-submit-icon {
    font-size: 1.5rem;
}

.pw-gerar-submit-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--obsidian);
    font-family: 'Outfit', sans-serif;
}

.pw-gerar-submit-sub {
    font-size: 0.7rem;
    color: rgba(8, 9, 12, 0.7);
    font-family: 'Outfit', sans-serif;
}

/* Result Box */
.pw-gerar-result {
    background: var(--graphite);
    border: 1px solid var(--emerald);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin-top: 1.5rem;
}

.pw-gerar-result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pw-gerar-result h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    color: var(--emerald);
    margin-bottom: 1.5rem;
}

.pw-gerar-link-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.pw-gerar-link-box input {
    flex: 1;
    padding: 0.85rem 1rem;
    background: var(--obsidian);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
}

.pw-gerar-copy {
    padding: 0.85rem 1.25rem;
    background: var(--champagne);
    border: none;
    border-radius: var(--radius-md);
    color: var(--obsidian);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-luxury);
}

.pw-gerar-copy:hover {
    background: var(--champagne-light);
}

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

/* Video Item in Gerar */
.pw-gerar-video-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem;
    background: var(--graphite);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
}

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

.pw-gerar-video-num {
    width: 24px;
    height: 24px;
    background: var(--champagne-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--champagne);
}

.pw-gerar-video-info {
    flex: 1;
}

.pw-gerar-video-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.pw-gerar-video-link {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.pw-gerar-video-remove {
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: var(--radius-sm);
    color: var(--ruby);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--duration-fast) var(--ease-luxury);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* ═══════════════════════════════════════════════════════════════
   STAT INFO EXTENDED
   ═══════════════════════════════════════════════════════════════ */

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

.pw-stat-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

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

/* ═══════════════════════════════════════════════════════════════
   PWA INSTALL MODAL
   ═══════════════════════════════════════════════════════════════ */

.pw-btn-install-big {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, var(--champagne-dark), var(--champagne), var(--champagne-light));
    border: none;
    border-radius: var(--radius-md);
    color: var(--obsidian);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all var(--duration-fast) var(--ease-luxury);
}

.pw-btn-install-big:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 196, 168, 0.3);
}

.pw-app-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pw-ios-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pw-ios-step {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--obsidian);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.pw-step-num {
    width: 32px;
    height: 32px;
    background: var(--champagne);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--obsidian);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.pw-step-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pw-step-text strong {
    color: var(--champagne);
}

.pw-step-icon {
    margin-left: 0.5rem;
}

.pw-step-text small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pw-ios-result {
    text-align: center;
    padding: 1rem;
    background: var(--emerald-muted);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: var(--radius-md);
}

.pw-ios-result p {
    color: var(--emerald);
    font-weight: 500;
}

.pw-app-installed {
    text-align: center;
    padding: 2rem;
}

.pw-check-big {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1rem;
}

.pw-app-installed h3 {
    color: var(--emerald);
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.pw-app-installed p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Action Text */
.pw-action-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   BOTÕES DE AÇÃO NA TABELA
   ═══════════════════════════════════════════════════════════════ */

.pw-actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.pw-btn-action {
    padding: 0.4rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-luxury);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    border: 1px solid;
}

.pw-btn-action.pw-btn-view {
    background: var(--sapphire-muted);
    border-color: rgba(96, 165, 250, 0.25);
    color: var(--sapphire);
}

.pw-btn-action.pw-btn-view:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: var(--sapphire);
}

.pw-btn-action.pw-btn-edit {
    background: var(--amethyst-muted);
    border-color: rgba(167, 139, 250, 0.25);
    color: var(--amethyst);
}

.pw-btn-action.pw-btn-edit:hover {
    background: rgba(167, 139, 250, 0.2);
    border-color: var(--amethyst);
}

.pw-btn-action.pw-btn-copy {
    background: var(--champagne-muted);
    border-color: var(--border-champagne);
    color: var(--champagne);
}

.pw-btn-action.pw-btn-copy:hover {
    background: rgba(212, 196, 168, 0.15);
    border-color: var(--champagne);
}

.pw-btn-action.pw-btn-contrato {
    background: var(--emerald-muted);
    border-color: rgba(52, 211, 153, 0.25);
    color: var(--emerald);
}

.pw-btn-action.pw-btn-contrato:hover {
    background: rgba(52, 211, 153, 0.2);
    border-color: var(--emerald);
}

.pw-btn-action.pw-btn-inactive {
    background: var(--amber-muted);
    border-color: rgba(251, 191, 36, 0.25);
    color: var(--amber);
}

.pw-btn-action.pw-btn-inactive:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: var(--amber);
}

.pw-btn-action.pw-btn-active {
    background: var(--emerald-muted);
    border-color: rgba(52, 211, 153, 0.25);
    color: var(--emerald);
}

.pw-btn-action.pw-btn-active:hover {
    background: rgba(52, 211, 153, 0.2);
    border-color: var(--emerald);
}

.pw-btn-action.pw-btn-delete {
    background: var(--ruby-muted);
    border-color: rgba(248, 113, 113, 0.25);
    color: var(--ruby);
}

.pw-btn-action.pw-btn-delete:hover {
    background: rgba(248, 113, 113, 0.2);
    border-color: var(--ruby);
}

.pw-btn-action.pw-btn-realizado {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
    color: #10b981;
}

.pw-btn-action.pw-btn-realizado:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

.pw-btn-action.pw-btn-desfazer {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.25);
    color: #6366f1;
}

.pw-btn-action.pw-btn-desfazer:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
}

.pw-btn-action.pw-btn-extend {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.25);
    color: #0ea5e9;
}

.pw-btn-action.pw-btn-extend:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: #0ea5e9;
}

/* ═══════════════════════════════════════════════════════════════
   MODAL DE EDIÇÃO
   ═══════════════════════════════════════════════════════════════ */

.pw-modal-edit .pw-modal-header {
    margin-bottom: 1.5rem;
}

.pw-modal-edit .pw-modal-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--champagne);
    text-align: center;
}

.pw-edit-field {
    margin-bottom: 1.25rem;
}

.pw-edit-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pw-edit-field input,
.pw-edit-field select,
.pw-edit-field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--obsidian);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    transition: all var(--duration-fast) var(--ease-luxury);
}

.pw-edit-field input:focus,
.pw-edit-field select:focus,
.pw-edit-field textarea:focus {
    outline: none;
    border-color: var(--champagne-dark);
    box-shadow: 0 0 0 3px var(--champagne-muted);
}

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

.pw-edit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pw-edit-divider {
    text-align: center;
    font-size: 0.85rem;
    color: var(--champagne);
    margin: 1.5rem 0 1rem;
    padding: 0.75rem;
    background: var(--champagne-muted);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-champagne);
}

.pw-edit-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

@media (max-width: 640px) {
    .pw-edit-row {
        grid-template-columns: 1fr;
    }
    
    .pw-actions-cell {
        flex-direction: column;
        align-items: flex-start;
    }
}
