/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (CONFIADOCS REDESIGN)
   ========================================================================== */

:root {
    /* Fonts */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Transition Speeds */
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: 0.2s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-round: 9999px;
}

/* --- DARK THEME TOKENS --- */
[data-theme="dark"] {
    --bg-primary: #070b12;
    --bg-secondary: #0c121e;
    --bg-glass: rgba(12, 18, 30, 0.65);
    --bg-glass-hover: rgba(18, 26, 42, 0.75);
    --bg-glass-solid: rgba(12, 18, 30, 0.95);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.16);
    --border-color-glow: rgba(217, 182, 90, 0.3);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --color-gold: #d9b65a;
    --color-gold-hover: #e5c46e;
    --color-gold-glow: rgba(217, 182, 90, 0.15);
    --color-blue: #3b82f6;
    --color-blue-glow: rgba(59, 130, 246, 0.15);
    
    --gradient-gold: linear-gradient(135deg, #c49a3a 0%, #d9b65a 100%);
    --gradient-gold-alt: linear-gradient(135deg, #d9b65a 0%, #f3d078 100%);
    --gradient-blue: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-dark: linear-gradient(135deg, #070b12 0%, #0c121e 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    --shadow-glow-gold: 0 0 30px rgba(217, 182, 90, 0.15);
    --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.15);
    
    --orb-opacity: 0.15;
}

/* --- LIGHT THEME TOKENS --- */
[data-theme="light"] {
    --bg-primary: #f4f6fa;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-glass-hover: rgba(255, 255, 255, 0.9);
    --bg-glass-solid: rgba(255, 255, 255, 0.98);
    
    --border-color: rgba(15, 47, 89, 0.08);
    --border-color-hover: rgba(15, 47, 89, 0.16);
    --border-color-glow: rgba(196, 154, 58, 0.4);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --color-gold: #b28a2a;
    --color-gold-hover: #96721d;
    --color-gold-glow: rgba(196, 154, 58, 0.08);
    --color-blue: #1e40af;
    --color-blue-glow: rgba(30, 64, 175, 0.08);
    
    --gradient-gold: linear-gradient(135deg, #96721d 0%, #c49a3a 100%);
    --gradient-gold-alt: linear-gradient(135deg, #c49a3a 0%, #e5c46e 100%);
    --gradient-blue: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    --gradient-dark: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
    --gradient-card: linear-gradient(135deg, rgba(15, 47, 89, 0.01) 0%, rgba(15, 47, 89, 0) 100%);
    
    --shadow-sm: 0 4px 6px -1px rgba(15, 47, 89, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(15, 47, 89, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(15, 47, 89, 0.08);
    --shadow-glow-gold: 0 0 30px rgba(196, 154, 58, 0.08);
    --shadow-glow-blue: 0 0 30px rgba(30, 64, 175, 0.05);
    
    --orb-opacity: 0.12;
}

/* ==========================================================================
   RESET & BASE STYLING
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    height: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100%;
}

.font-outfit {
    font-family: var(--font-display);
}

/* Transição suave do tema */
.theme-transition-active,
.theme-transition-active * {
    transition: background-color var(--transition-medium), 
                color var(--transition-medium), 
                border-color var(--transition-medium), 
                box-shadow var(--transition-medium) !important;
}

/* Imagens dinâmicas para modo claro/escuro */
[data-theme="light"] .img-theme-adapt {
    filter: brightness(0.2) contrast(1.2);
}

/* ==========================================================================
   BACKGROUND EFFECTS (ORBS & PARTICLES)
   ========================================================================== */

/* Container de Orbes */
.bg-orbs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -2;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: var(--radius-round);
    filter: blur(140px);
    opacity: var(--orb-opacity);
    mix-blend-mode: screen;
}

.orb-primary {
    top: -10%;
    right: 5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--color-gold) 0%, rgba(217, 182, 90, 0) 70%);
}

.orb-secondary {
    bottom: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--color-blue) 0%, rgba(59, 130, 246, 0) 70%);
}

.orb-tertiary {
    top: 40%;
    left: 30%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, #a855f7 0%, rgba(168, 85, 247, 0) 70%);
}

/* Partículas */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background-color: var(--color-gold);
    border-radius: var(--radius-round);
    opacity: 0.15;
    pointer-events: none;
}

/* ==========================================================================
   GLASSMORPHISM BASE CLASS
   ========================================================================== */

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-medium), 
                border-color var(--transition-medium), 
                box-shadow var(--transition-medium),
                background-color var(--transition-medium);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Efeito de brilho de hover */
.card-glow-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(217, 182, 90, 0.06), transparent 40%);
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.glass-card:hover .card-glow-element {
    opacity: 1;
}

.glass-card:hover {
    border-color: var(--border-color-glow);
    box-shadow: var(--shadow-lg), var(--shadow-glow-gold);
}

/* ==========================================================================
   NAVBAR STYLING
   ========================================================================== */

.custom-navbar {
    background: transparent;
    border-bottom: 1px solid transparent;
    padding: 20px 0;
    transition: padding var(--transition-medium), 
                background-color var(--transition-medium), 
                border-color var(--transition-medium),
                box-shadow var(--transition-medium);
    z-index: 1000;
}

.custom-navbar.navbar-scrolled {
    padding: 12px 0;
    background-color: var(--bg-glass-solid);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

/* Logo Backup Text */
.brand-logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.logo-text-backup {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: none;
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* Logo fallback styling in case image fails */
.brand-logo:only-child[src=""] {
    display: none;
}

.brand-logo:only-child[src=""] + .logo-text-backup {
    display: block;
}

/* Nav Links */
.custom-navbar .nav-link {
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: var(--radius-round);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.custom-navbar .nav-link:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Hamburguer Custom */
.navbar-toggler-icon-custom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
}

.navbar-toggler-icon-custom span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.theme-toggle-btn:hover {
    transform: scale(1.08);
    background-color: var(--bg-glass-hover);
    border-color: var(--border-color-hover);
}

.theme-toggle-btn i {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-medium), opacity var(--transition-fast);
}

[data-theme="dark"] .icon-sun,
[data-theme="light"] .icon-moon {
    display: none;
}

/* Buttons Nav */
.btn-nav {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: var(--radius-round);
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-login {
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-color);
}

.btn-login:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-register {
    color: #0f172a !important;
    background: var(--gradient-gold);
    border: none;
    box-shadow: 0 4px 14px rgba(217, 182, 90, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 182, 90, 0.45);
}

/* ==========================================================================
   VIEW MODE CONTROLLER (FLOATING CENTER)
   ========================================================================== */

.view-mode-controller-wrapper {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    pointer-events: none;
}

.view-mode-controller {
    background: rgba(12, 18, 30, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-round);
    padding: 6px;
    display: flex;
    gap: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    pointer-events: auto;
}

[data-theme="light"] .view-mode-controller {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 47, 89, 0.08);
    box-shadow: 0 20px 40px rgba(15, 47, 89, 0.12);
}

.mode-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-round);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 2;
    transition: color var(--transition-medium);
}

.mode-icon {
    width: 16px;
    height: 16px;
}

.mode-btn:hover {
    color: var(--text-primary);
}

.mode-btn.active {
    color: #0f172a;
}

[data-theme="light"] .mode-btn.active {
    color: #ffffff;
}

.mode-indicator {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    background: var(--gradient-gold);
    border-radius: var(--radius-round);
    z-index: 1;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 12px rgba(217, 182, 90, 0.25);
}

/* ==========================================================================
   APP CONTAINER / MODES CONTROL
   ========================================================================== */

.app-layout-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content-viewport {
    width: 100%;
    flex-grow: 1;
    position: relative;
}

.content-section {
    position: relative;
    width: 100%;
    padding: 120px 0;
    min-height: 100vh;
}

/* ==========================================================================
   SPECIFIC MODE: SCROLL MODE
   ========================================================================== */

body[data-view="scroll"] .scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-gold);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease;
}

body[data-view="scroll"] .dashboard-sidebar {
    display: none !important;
}

body[data-view="scroll"] .deck-navigation-bullets {
    display: none !important;
}

/* ==========================================================================
   SPECIFIC MODE: SLIDE DECK MODE (Full Screen Slides)
   ========================================================================== */

body[data-view="deck"] {
    overflow: hidden;
    height: 100vh;
}

body[data-view="deck"] .custom-navbar {
    background-color: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}

body[data-view="deck"] .scroll-progress-bar {
    display: none !important;
}

body[data-view="deck"] .dashboard-sidebar {
    display: none !important;
}

body[data-view="deck"] .app-layout-wrapper {
    height: 100vh;
    overflow: hidden;
}

body[data-view="deck"] .main-content-viewport {
    height: 100vh;
    overflow: hidden;
    position: relative;
}

body[data-view="deck"] .content-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transform: translateY(80px);
    transition: transform var(--transition-slow), opacity var(--transition-slow), visibility var(--transition-slow);
}

body[data-view="deck"] .content-section.active-slide {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
    transform: translateY(0);
}

/* Animação reversa ao subir slide */
body[data-view="deck"] .content-section.slide-exit-up {
    transform: translateY(-80px);
    opacity: 0;
}

/* Bullets de Navegação Lateral */
.deck-navigation-bullets {
    position: fixed;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1100;
}

.bullet {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-round);
    background: var(--text-muted);
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.bullet:hover {
    transform: scale(1.3);
    background: var(--color-gold);
}

.bullet.active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    transform: scale(1.4);
    box-shadow: 0 0 10px var(--color-gold);
}

/* Hide footer text in intermediate slides except the last slide in deck mode */
body[data-view="deck"] #cta .site-footer {
    display: block; /* only shown in last slide */
}

/* Adjust sizes for deck presentation */
body[data-view="deck"] .content-section .container {
    max-height: 80vh;
    overflow-y: auto;
    padding-top: 80px;
}

/* ==========================================================================
   SPECIFIC MODE: DASHBOARD MODE
   ========================================================================== */

body[data-view="dashboard"] {
    overflow: hidden;
    height: 100vh;
}

body[data-view="dashboard"] .custom-navbar {
    display: none !important;
}

body[data-view="dashboard"] .scroll-progress-bar {
    display: none !important;
}

body[data-view="dashboard"] .deck-navigation-bullets {
    display: none !important;
}

/* Grid Layout */
body[data-view="dashboard"] .app-layout-wrapper {
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-primary);
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: none;
    flex-direction: column;
    padding: 24px;
    z-index: 1050;
    flex-shrink: 0;
}

body[data-view="dashboard"] .dashboard-sidebar {
    display: flex;
}

.sidebar-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.sidebar-logo {
    height: 38px;
    width: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.sidebar-link:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .sidebar-link:hover {
    background-color: rgba(15, 47, 89, 0.04);
}

.sidebar-link.active {
    color: #0f172a;
    background: var(--gradient-gold);
    box-shadow: 0 4px 12px rgba(217, 182, 90, 0.2);
}

[data-theme="light"] .sidebar-link.active {
    color: #ffffff;
}

.sidebar-link i {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.sidebar-btn {
    font-weight: 600;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-round);
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.btn-login-sidebar {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-login-sidebar:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-register-sidebar {
    background: var(--gradient-gold);
    color: #0f172a !important;
}

[data-theme="light"] .btn-register-sidebar {
    color: #ffffff !important;
}

.btn-register-sidebar:hover {
    transform: translateY(-1px);
}

/* Viewport do Dashboard */
body[data-view="dashboard"] .main-content-viewport {
    height: 100vh;
    overflow-y: auto;
    padding: 40px;
    scroll-behavior: smooth;
}

/* Em Dashboard, as seções mostram apenas a seção selecionada ou scroll suave */
body[data-view="dashboard"] .content-section {
    padding: 40px 0;
    min-height: auto;
    margin-bottom: 80px;
}

/* ==========================================================================
   SECTIONS DESIGN & CONTENT ELEMENTS
   ========================================================================== */

/* --- HERO SECTION --- */
#hero {
    overflow: hidden;
}

.section-glow-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(217, 182, 90, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.premium-badge-wrapper {
    margin-bottom: 24px;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-round);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-round);
    background-color: #10b981;
    display: inline-block;
    animation: badge-pulse-anim 1.5s infinite;
}

@keyframes badge-pulse-anim {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.badge-icon {
    width: 14px;
    height: 14px;
    color: var(--color-gold);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* Gradients para Textos */
.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-alt {
    background: var(--gradient-gold-alt);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 620px;
}

.hero-actions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-round);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
    cursor: pointer;
}

.btn-glow {
    background: var(--gradient-gold);
    color: #0f172a !important;
    border: none;
    box-shadow: 0 10px 25px rgba(217, 182, 90, 0.25);
}

[data-theme="light"] .btn-glow {
    color: #ffffff !important;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(217, 182, 90, 0.4);
}

.btn-arrow-icon {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn-glow:hover .btn-arrow-icon {
    transform: translateX(4px);
}

.btn-outline {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

/* Feature Pills */
.feature-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.feature-pill i {
    width: 16px;
    height: 16px;
    color: var(--color-gold);
}

/* Hero Flow Card */
.hero-flow-card {
    padding: 32px;
}

.flow-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.flow-icon-container {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flow-icon-fallback {
    width: 24px;
    height: 24px;
    color: var(--color-gold);
}

.flow-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.flow-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.flow-steps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

/* Linha conectora */
.flow-steps-list::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 17px;
    width: 2px;
    height: calc(100% - 30px);
    background: var(--border-color);
    z-index: 1;
}

.flow-step-item {
    display: flex;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.step-number-container {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-round);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--color-gold);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.flow-step-item:hover .step-number-container {
    background-color: var(--color-gold-glow);
    border-color: var(--color-gold);
}

.step-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

/* --- SECTION GENERAL HEADER --- */
.section-tag {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gold);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 650px;
}

.max-w-700 {
    max-width: 700px;
}

/* --- FEATURE CARDS (COMO FUNCIONA) --- */
.feature-card {
    padding: 40px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--color-gold-glow);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: transform var(--transition-medium), background-color var(--transition-medium);
}

.feature-card:hover .card-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--gradient-gold);
    color: #0f172a;
}

[data-theme="light"] .feature-card:hover .card-icon-wrapper {
    color: #ffffff;
}

.card-icon-wrapper i {
    width: 28px;
    height: 28px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.card-decor-line {
    width: 40px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
    margin-top: auto;
    padding-top: 0;
    margin-top: 24px;
    transition: width var(--transition-medium);
}

.feature-card:hover .card-decor-line {
    width: 100%;
}

/* --- MODEL FILTERS --- */
.model-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: var(--radius-round);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-color-hover);
}

.filter-btn.active {
    background: var(--gradient-gold);
    color: #0f172a;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(217, 182, 90, 0.2);
}

[data-theme="light"] .filter-btn.active {
    color: #ffffff;
}

/* Model Cards Grid */
.model-card-item {
    transition: transform var(--transition-medium), opacity var(--transition-medium);
}

.model-premium-card {
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.model-cat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.model-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold);
}

.model-badge-top {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass-hover);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.model-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--text-primary);
}

.model-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.model-features-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}

.model-feature-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-round);
}

.model-feature-badge.bg-blue {
    background-color: var(--color-blue-glow);
    color: var(--color-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.model-feature-badge.bg-neutral {
    background-color: var(--bg-glass-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.model-feature-badge.bg-warn {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.model-footer-pricing {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.model-pricing-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.model-pricing-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.model-create-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-round);
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.model-create-btn:hover {
    background: var(--gradient-gold);
    color: #0f172a;
    border-color: transparent;
    transform: translateY(-1px);
}

[data-theme="light"] .model-create-btn:hover {
    color: #ffffff;
}

/* --- SIGNATURES SECTION --- */
.signature-compliance-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--color-blue-glow);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    color: var(--color-blue);
    font-weight: 600;
    font-size: 0.85rem;
}

[data-theme="light"] .signature-compliance-box {
    color: var(--color-blue);
}

.signature-compliance-box i {
    width: 20px;
    height: 20px;
}

.sig-type-card {
    padding: 24px 28px;
    height: 100%;
}

.sig-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.sig-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-gold);
    opacity: 0.5;
}

.sig-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-primary);
}

.sig-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

/* --- PRICING SECTION --- */
.pricing-panel {
    padding: 48px;
    border-radius: var(--radius-xl);
}

.pricing-badge-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pricing-badge-info i {
    width: 18px;
    height: 18px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-medium), border-color var(--transition-medium);
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-hover);
}

.pricing-card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.pricing-type-pill {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass-hover);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-primary);
}

.pricing-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.pricing-card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.pricing-price-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.pricing-price-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-gold);
}

/* Card Destacado */
.pricing-card.highlighted {
    background: rgba(217, 182, 90, 0.04);
    border-color: var(--border-color-glow);
    position: relative;
    overflow: hidden;
}

.pricing-card.highlighted::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, var(--color-gold) 50%);
    opacity: 0.2;
}

.pricing-card.highlighted .pricing-type-pill {
    background-color: var(--color-gold-glow);
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* Alert Boxes */
.alert-box-warning {
    display: flex;
    gap: 16px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    align-items: flex-start;
}

.alert-box-warning i {
    width: 24px;
    height: 24px;
    color: #f59e0b;
    flex-shrink: 0;
}

.alert-box-warning p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

/* --- LEGAL SECTION --- */
.legal-card-panel {
    padding: 48px;
}

.legal-info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    height: 100%;
}

.legal-info-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-info-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.alert-box-info {
    display: flex;
    gap: 16px;
    background: var(--color-blue-glow);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    align-items: flex-start;
}

.alert-box-info i {
    width: 24px;
    height: 24px;
    color: var(--color-blue);
    flex-shrink: 0;
}

.alert-box-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

/* --- CTA CARD & FOOTER --- */
.section-footer-combined {
    padding: 80px 0 40px 0;
    position: relative;
    overflow: hidden;
}

.cta-inner-card {
    padding: 60px 40px;
    margin-bottom: 60px;
    border-radius: var(--radius-xl);
}

.cta-buttons {
    flex-wrap: wrap;
}

/* Footer Section */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    width: 100%;
}

.footer-logo {
    height: 38px;
    width: auto;
}

.footer-lbl {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 320px;
}

.footer-lbl.small-text {
    font-size: 0.8rem;
    max-width: 100%;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-gold);
}

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

/* ==========================================================================
   RESPONSIVENESS & RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 991px) {
    /* Navbar styling on collapsed mode */
    .custom-navbar .navbar-collapse {
        background-color: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        padding: 24px;
        margin-top: 16px;
        box-shadow: var(--shadow-lg);
    }
    
    .custom-navbar .nav-link {
        padding: 10px 16px !important;
    }
    
    /* Hero adjustment */
    .hero-text-col {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions-container {
        justify-content: center;
    }
    
    /* Pricing panel */
    .pricing-panel {
        padding: 32px 20px;
    }
    
    /* Dashboard sidebar collapse logic on mobile */
    body[data-view="dashboard"] .app-layout-wrapper {
        flex-direction: column;
        overflow-y: auto;
    }
    
    body[data-view="dashboard"] .dashboard-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 16px 20px;
    }
    
    .sidebar-header {
        margin-bottom: 0;
    }
    
    .sidebar-nav {
        display: none; /* Hide sidebar links on mobile, scroll layout is used */
    }
    
    .sidebar-footer {
        display: none;
    }
    
    body[data-view="dashboard"] .main-content-viewport {
        height: auto;
        overflow-y: visible;
        padding: 24px 16px;
    }
    
    body[data-view="dashboard"] .content-section {
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {
    /* General spacing adjustments */
    .content-section {
        padding: 80px 0;
    }
    
    body[data-view="deck"] .content-section .container {
        max-height: 85vh;
        padding-top: 100px;
    }
    
    /* View switcher optimization for small screens */
    .view-mode-controller {
        padding: 4px;
    }
    
    .mode-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .mode-text {
        display: none; /* Hide text, only show icons on very small devices if space is tight */
    }
    
    .view-mode-controller:hover .mode-text,
    .mode-btn.active .mode-text {
        display: inline;
    }
    
    /* Bullets positioning */
    .deck-navigation-bullets {
        right: 16px;
        gap: 12px;
    }
    
    .bullet {
        width: 8px;
        height: 8px;
    }
    
    .brand-logo {
        height: 38px;
    }
}

@media (max-width: 576px) {
    /* Feature pills horizontal stacking */
    .hero-features-row .col-sm-4 {
        width: 100%;
    }
    
    .cta-inner-card {
        padding: 40px 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-buttons a {
        width: 100%;
    }
}


/* =====================================================
   PATCH 31B — CORREÇÕES HOME CONFIADOCS
   - Logo maior no topo
   - Correção de títulos/textos no tema claro
   - Utilitários ausentes usados no index.php
   ===================================================== */

/* Utilitários usados no HTML da Home */
.text-gold {
    color: var(--color-gold) !important;
}

.text-white-opacity-70 {
    color: rgba(248, 250, 252, 0.72) !important;
}

[data-theme="light"] .text-white-opacity-70 {
    color: var(--text-secondary) !important;
}

/* Logo da navbar principal */
.custom-navbar .navbar-brand {
    min-height: 74px;
    display: flex;
    align-items: center;
}

.custom-navbar .brand-logo-wrapper {
    min-height: 74px;
    display: flex;
    align-items: center;
}

.custom-navbar .brand-logo,
.custom-navbar .navbar-brand img.brand-logo,
.custom-navbar img[alt*="CONFIADOCS"] {
    height: 82px !important;
    width: auto !important;
    max-width: 260px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Quando rolar a página, a navbar compacta sem esconder a marca */
.custom-navbar.navbar-scrolled .navbar-brand {
    min-height: 58px;
}

.custom-navbar.navbar-scrolled .brand-logo-wrapper {
    min-height: 58px;
}

.custom-navbar.navbar-scrolled .brand-logo,
.custom-navbar.navbar-scrolled .navbar-brand img.brand-logo,
.custom-navbar.navbar-scrolled img[alt*="CONFIADOCS"] {
    height: 66px !important;
    max-width: 220px !important;
}

/* Mantém a logo colorida no tema claro */
[data-theme="light"] .brand-logo,
[data-theme="light"] .sidebar-logo,
[data-theme="light"] .footer-logo,
[data-theme="light"] .flow-icon,
[data-theme="light"] img[alt*="CONFIADOCS"] {
    filter: none !important;
}

/* Corrige textos forçados em branco no tema claro */
[data-theme="light"] .text-white,
[data-theme="light"] .section-title.text-white,
[data-theme="light"] .pricing-panel .text-white,
[data-theme="light"] .cta-inner-card .text-white,
[data-theme="light"] h1.text-white,
[data-theme="light"] h2.text-white,
[data-theme="light"] h3.text-white,
[data-theme="light"] h4.text-white {
    color: var(--text-primary) !important;
}

[data-theme="light"] .pricing-panel .section-desc,
[data-theme="light"] .cta-inner-card .section-desc,
[data-theme="light"] .pricing-panel .text-white-opacity-70,
[data-theme="light"] .cta-inner-card .text-white-opacity-70 {
    color: var(--text-secondary) !important;
}

/* Melhora os painéis destacados no tema claro */
[data-theme="light"] .pricing-panel,
[data-theme="light"] .legal-card-panel,
[data-theme="light"] .cta-inner-card {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(15, 47, 89, 0.10);
}

[data-theme="light"] .pricing-card {
    background: rgba(255, 255, 255, 0.70);
}

[data-theme="light"] .pricing-card h3,
[data-theme="light"] .pricing-card .pricing-card-desc,
[data-theme="light"] .pricing-badge-info,
[data-theme="light"] .alert-box-warning p,
[data-theme="light"] .alert-box-info p {
    color: var(--text-primary);
}

/* Ajuste técnico: propriedades que recebiam gradiente em background-color */
.feature-card:hover .card-icon-wrapper {
    background: var(--gradient-gold);
}

/* Responsivo */
@media (max-width: 991px) {
    .custom-navbar .navbar-brand,
    .custom-navbar .brand-logo-wrapper {
        min-height: 64px;
    }

    .custom-navbar .brand-logo,
    .custom-navbar .navbar-brand img.brand-logo,
    .custom-navbar img[alt*="CONFIADOCS"] {
        height: 68px !important;
        max-width: 220px !important;
    }

    .custom-navbar.navbar-scrolled .brand-logo,
    .custom-navbar.navbar-scrolled .navbar-brand img.brand-logo,
    .custom-navbar.navbar-scrolled img[alt*="CONFIADOCS"] {
        height: 58px !important;
        max-width: 190px !important;
    }
}

@media (max-width: 768px) {
    .custom-navbar .navbar-brand,
    .custom-navbar .brand-logo-wrapper {
        min-height: 58px;
    }

    .custom-navbar .brand-logo,
    .custom-navbar .navbar-brand img.brand-logo,
    .custom-navbar img[alt*="CONFIADOCS"] {
        height: 58px !important;
        max-width: 180px !important;
    }

    .custom-navbar.navbar-scrolled .brand-logo,
    .custom-navbar.navbar-scrolled .navbar-brand img.brand-logo,
    .custom-navbar.navbar-scrolled img[alt*="CONFIADOCS"] {
        height: 50px !important;
        max-width: 160px !important;
    }
}

/* =====================================================
   CONFIADOCS — Pacote 31E
   Destaques estratégicos: Dossiê Documental + Responsabilidade
===================================================== */

.dossie-impact-section {
    position: relative;
    overflow: hidden;
}

.dossie-impact-section::before {
    content: "";
    position: absolute;
    inset: 10% -10%;
    background:
        radial-gradient(circle at 18% 30%, rgba(217, 182, 90, .20), transparent 32%),
        radial-gradient(circle at 82% 60%, rgba(59, 130, 246, .18), transparent 35%);
    filter: blur(20px);
    pointer-events: none;
}

.dossie-impact-card {
    position: relative;
    border: 1px solid rgba(217, 182, 90, .38);
    border-radius: 34px;
    padding: clamp(28px, 4vw, 58px);
    background:
        linear-gradient(135deg, rgba(217, 182, 90, .09), rgba(15, 23, 42, .72)),
        rgba(8, 13, 24, .84);
    box-shadow:
        0 34px 110px rgba(0, 0, 0, .42),
        0 0 0 1px rgba(255, 255, 255, .03) inset,
        inset 0 1px 0 rgba(255, 255, 255, .08);
    overflow: hidden;
}

.dossie-impact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(247, 211, 108, .85), rgba(59, 130, 246, .22), rgba(247, 211, 108, .22));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.dossie-impact-card::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -130px;
    top: -130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 182, 90, .38), transparent 65%);
    filter: blur(14px);
    animation: cdPulseGlow 4s ease-in-out infinite;
    pointer-events: none;
}

.dossie-floating-seal {
    position: absolute;
    top: 26px;
    right: 28px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(217, 182, 90, .35);
    background: rgba(217, 182, 90, .10);
    color: var(--text-primary);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .24);
}

.dossie-floating-seal svg {
    width: 18px;
    height: 18px;
    color: var(--color-gold);
}

.dossie-cta-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 28px;
    padding: 20px 22px;
    border-radius: 22px;
    border: 1px solid rgba(217, 182, 90, .30);
    background: rgba(217, 182, 90, .09);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .18);
}

.dossie-cta-box svg {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    color: var(--color-gold);
    filter: drop-shadow(0 0 12px rgba(217, 182, 90, .40));
}

.dossie-cta-box strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.04rem;
    margin-bottom: 4px;
}

.dossie-cta-box span {
    display: block;
    color: var(--text-secondary);
    line-height: 1.6;
}

.dossie-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dossie-mini-grid div {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, .16);
    background: rgba(15, 23, 42, .55);
}

.dossie-mini-grid strong {
    display: block;
    color: var(--text-primary);
    font-size: .98rem;
}

.dossie-mini-grid span {
    color: var(--text-secondary);
    font-size: .84rem;
}

.dossie-timeline {
    position: relative;
    display: grid;
    gap: 14px;
    z-index: 2;
}

.dossie-step {
    position: relative;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    align-items: center;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(15, 23, 42, .74);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .25);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.dossie-step:hover {
    transform: translateX(8px) scale(1.01);
    border-color: rgba(217, 182, 90, .58);
    box-shadow: 0 26px 64px rgba(217, 182, 90, .12);
}

.dossie-step span {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #111827;
    font-weight: 950;
    background: linear-gradient(135deg, #f7d36c, #c89b32);
    box-shadow: 0 14px 30px rgba(217, 182, 90, .30);
}

.dossie-step strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.08rem;
    margin-bottom: 2px;
}

.dossie-step small {
    color: var(--text-secondary);
    line-height: 1.4;
}

.dossie-line {
    width: 2px;
    height: 20px;
    margin-left: 46px;
    background: linear-gradient(to bottom, rgba(217, 182, 90, .75), rgba(217, 182, 90, .06));
    position: relative;
}

.dossie-line::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    transform: translate(-50%, 4px);
    background: rgba(217, 182, 90, .85);
    box-shadow: 0 0 18px rgba(217, 182, 90, .65);
    animation: cdFlowDot 2.6s ease-in-out infinite;
}

.legal-responsibility-card {
    position: relative;
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 26px;
    align-items: flex-start;
    margin-top: 28px;
    padding: clamp(24px, 3vw, 34px);
    border-radius: 30px;
    border: 1px solid rgba(217, 182, 90, .42);
    background:
        linear-gradient(135deg, rgba(217, 182, 90, .15), rgba(37, 99, 235, .11)),
        rgba(15, 23, 42, .86);
    box-shadow:
        0 28px 78px rgba(0, 0, 0, .34),
        inset 0 1px 0 rgba(255, 255, 255, .09);
    overflow: hidden;
}

.legal-responsibility-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(247, 211, 108, .95), rgba(59, 130, 246, .36), rgba(247, 211, 108, .32));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.legal-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    right: -95px;
    bottom: -130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 182, 90, .38), transparent 65%);
    filter: blur(14px);
    animation: cdPulseGlow 4s ease-in-out infinite;
}

.legal-icon {
    position: relative;
    z-index: 2;
    width: 74px;
    height: 74px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7d36c, #c89b32);
    box-shadow: 0 22px 46px rgba(217, 182, 90, .32);
    color: #111827;
}

.legal-icon svg {
    width: 34px;
    height: 34px;
    stroke-width: 2.4;
}

.legal-content {
    position: relative;
    z-index: 2;
}

.legal-content h3 {
    color: var(--text-primary);
    font-size: clamp(1.55rem, 2.7vw, 2.35rem);
    font-weight: 950;
    letter-spacing: -0.04em;
    margin: 8px 0 14px;
}

.legal-content p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 12px;
}

.legal-highlight {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, .26);
    background: rgba(59, 130, 246, .11);
    color: var(--text-secondary);
}

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

@keyframes cdPulseGlow {
    0%, 100% { opacity: .56; transform: scale(1); }
    50% { opacity: .96; transform: scale(1.08); }
}

@keyframes cdFlowDot {
    0% { opacity: .20; transform: translate(-50%, 0) scale(.75); }
    50% { opacity: 1; transform: translate(-50%, 10px) scale(1.2); }
    100% { opacity: .20; transform: translate(-50%, 20px) scale(.75); }
}

[data-theme="light"] .dossie-impact-card,
[data-theme="light"] .legal-responsibility-card,
[data-theme="light"] .dossie-step,
[data-theme="light"] .dossie-mini-grid div {
    background:
        linear-gradient(135deg, rgba(217, 182, 90, .13), rgba(255, 255, 255, .88)),
        rgba(255, 255, 255, .94);
}

[data-theme="light"] .dossie-step,
[data-theme="light"] .dossie-mini-grid div {
    border-color: rgba(15, 23, 42, .10);
}

[data-theme="light"] .legal-highlight {
    background: rgba(37, 99, 235, .08);
}

[data-theme="light"] .legal-content p,
[data-theme="light"] .legal-highlight,
[data-theme="light"] .dossie-cta-box span,
[data-theme="light"] .dossie-mini-grid span,
[data-theme="light"] .dossie-step small {
    color: var(--text-secondary);
}

@media (max-width: 991px) {
    .dossie-floating-seal {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 22px;
    }
}

@media (max-width: 768px) {
    .dossie-impact-card {
        padding: 30px 22px;
        border-radius: 26px;
    }

    .legal-responsibility-card {
        grid-template-columns: 1fr;
        padding: 28px 22px;
    }

    .legal-icon {
        width: 66px;
        height: 66px;
        border-radius: 22px;
    }

    .dossie-step {
        grid-template-columns: 56px 1fr;
        padding: 18px;
    }

    .dossie-mini-grid {
        grid-template-columns: 1fr;
    }
}
