/* Desenvolvedor por Leone - WhatsApp: +55 65 99270-8533 */
/* Estilos Futurísticos para Painel do Usuário - Otimizado PC e Mobile */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --secondary: #ff0080;
    --accent: #00ff88;
    --warning: #ffaa00;
    --error: #ff4444;
    --success: #00ff88;
    
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --surface: #1a1a2e;
    --surface-light: #16213e;
    --surface-lighter: #0f3460;
    
    --text: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #7a8ba0;
    
    --border: #2a2a4e;
    --border-light: #3a3a6e;
    
    --glow-primary: 0 0 20px rgba(0, 212, 255, 0.5);
    --glow-secondary: 0 0 20px rgba(255, 0, 128, 0.5);
    --glow-accent: 0 0 20px rgba(0, 255, 136, 0.5);
    
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 25px 80px rgba(0, 0, 0, 0.6);
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
    height: -webkit-fill-available;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    -webkit-text-size-adjust: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Permitir seleção em inputs e textos */
input, textarea, .result-content, .query-details {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Background Futurístico Otimizado */
.futuristic-bg, .dashboard-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    z-index: -3;
    will-change: transform;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    z-index: -2;
}

/* Partículas otimizadas para mobile */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    animation: float-particle 15s infinite linear;
    box-shadow: var(--glow-primary);
    will-change: transform;
}

/* Reduzir partículas em mobile */
@media (max-width: 768px) {
    .particle:nth-child(n+3) {
        display: none;
    }
}

/* Reduzir animações se preferir movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    .particle,
    .grid-overlay,
    .neon-lines .line {
        animation: none;
    }
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 2s; background: var(--secondary); box-shadow: var(--glow-secondary); }
.particle:nth-child(3) { left: 50%; animation-delay: 4s; background: var(--accent); box-shadow: var(--glow-accent); }
.particle:nth-child(4) { left: 70%; animation-delay: 6s; }

.neon-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    height: 1px;
    animation: line-move 8s infinite linear;
    will-change: transform;
}

.line-1 {
    top: 20%;
    width: 100%;
    animation-delay: 0s;
}

.line-2 {
    top: 50%;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    animation-delay: 3s;
}

.line-3 {
    top: 80%;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation-delay: 6s;
}

/* Login Container Otimizado */
.login-container {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

/* Header Futurístico */
.futuristic-header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-glow {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-primary);
    animation: pulse-glow 2s infinite;
}

.logo-glow i {
    font-size: 2rem;
    color: white;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.highlight {
    color: var(--primary);
    text-shadow: var(--glow-primary);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Login Card Otimizado */
.login-card {
    position: relative;
    width: 100%;
    max-width: 450px;
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    border-radius: 20px;
    z-index: -1;
    animation: border-glow 3s infinite linear;
}

.card-content {
    background: var(--surface);
    border-radius: 18px;
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.icon-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--glow-primary);
    animation: float 3s ease-in-out infinite;
}

.login-icon {
    font-size: 2.5rem;
    color: white;
}

.login-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Form Styles Otimizados */
.login-form {
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-container {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 2;
    pointer-events: none;
}

.futuristic-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(22, 33, 62, 0.8);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Prevenção de zoom no iOS */
@supports (-webkit-touch-callout: none) {
    .futuristic-input {
        font-size: 16px !important;
    }
}

.futuristic-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
    background: rgba(22, 33, 62, 1);
}

.futuristic-input::placeholder {
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

.input-glow {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.futuristic-input:focus + .input-glow {
    opacity: 1;
}

/* Button Futurístico Otimizado */
.futuristic-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    min-height: 44px;
    touch-action: manipulation;
}

.futuristic-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--glow-primary);
}

.futuristic-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.futuristic-btn:hover .btn-glow {
    left: 100%;
}

/* Alerts Otimizados */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid;
    backdrop-filter: blur(10px);
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    color: var(--error);
    border-color: var(--error);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

/* Footer Otimizado */
.login-footer {
    text-align: center;
}

.divider {
    position: relative;
    margin: 1.5rem 0;
    text-align: center;
}

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

.divider span {
    background: var(--surface);
    padding: 0 1rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-height: 44px;
    touch-action: manipulation;
}

.link-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.link-btn.support:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* Status Indicators */
.status-indicators {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-dot.active {
    background: var(--accent);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: pulse 2s infinite;
}

/* Dashboard Styles Otimizados */
.dashboard-body {
    background: var(--bg-dark);
}

.app-container {
    display: flex;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

/* Mobile Header Otimizado */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    z-index: 1500;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.mobile-logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: var(--glow-primary);
}

.mobile-menu-toggle {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    box-shadow: var(--glow-primary);
    transition: all 0.3s ease;
    min-height: 44px;
    touch-action: manipulation;
}

.mobile-menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--glow-primary);
}

/* Sidebar Futurística Otimizada */
.futuristic-sidebar {
    width: 300px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-light) 100%);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    height: -webkit-fill-available;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.sidebar-header .logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-header .logo-glow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

.sidebar-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    min-width: 44px;
    min-height: 44px;
}

/* User Info Otimizada */
.user-info-sidebar {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.user-card {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.user-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--accent);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Sidebar Menu Otimizado */
.sidebar-menu {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    touch-action: manipulation;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    transform: translateX(5px);
}

.menu-item.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--glow-primary);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(22, 33, 62, 0.5);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    color: var(--error);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 44px;
    touch-action: manipulation;
}

.logout-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    transform: translateX(5px);
}

/* Main Content Otimizado */
.main-content {
    flex: 1;
    margin-left: 300px;
    padding: 2rem;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}

.content-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--glow-primary);
}

/* Status Grid Otimizado */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.status-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.status-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.status-card.account .card-icon {
    background: linear-gradient(135deg, var(--accent), #00cc66);
    color: white;
    box-shadow: var(--glow-accent);
}

.status-card.expiration .card-icon {
    background: linear-gradient(135deg, var(--warning), #ff6600);
    color: white;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.5);
}

.status-card.queries .card-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--glow-primary);
}

.status-card.usage .card-icon {
    background: linear-gradient(135deg, var(--accent), #00cc66);
    color: white;
    box-shadow: var(--glow-accent);
}

.status-card.support .card-icon {
    background: linear-gradient(135deg, var(--secondary), #cc0066);
    color: white;
    box-shadow: var(--glow-secondary);
}

.status-card.today .card-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--glow-primary);
}

.status-card.week .card-icon {
    background: linear-gradient(135deg, var(--accent), #00cc66);
    color: white;
    box-shadow: var(--glow-accent);
}

.status-card.month .card-icon {
    background: linear-gradient(135deg, var(--warning), #ff6600);
    color: white;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.5);
}

.status-card.total .card-icon {
    background: linear-gradient(135deg, var(--secondary), #cc0066);
    color: white;
    box-shadow: var(--glow-secondary);
}

.status-card .card-content h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.status-card .card-content p {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.status-card .card-content small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Cards Gerais Otimizados */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 212, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    color: var(--text);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-content {
    padding: 2rem;
}

/* Dashboard Grid Otimizado */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.dashboard-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.dashboard-card .card-icon.cpf {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--glow-primary);
}

.dashboard-card .card-icon.nome {
    background: linear-gradient(135deg, var(--accent), #00cc66);
    color: white;
    box-shadow: var(--glow-accent);
}

.dashboard-card .card-icon.cep {
    background: linear-gradient(135deg, var(--warning), #ff6600);
    color: white;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.5);
}

.dashboard-card .card-icon.telefone {
    background: linear-gradient(135deg, var(--secondary), #cc0066);
    color: white;
    box-shadow: var(--glow-secondary);
}

.dashboard-card .card-icon.rg {
    background: linear-gradient(135deg, var(--warning), #ff6600);
    color: white;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.5);
}

.dashboard-card .card-icon.email {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: white;
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.5);
}

.dashboard-card .card-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.dashboard-card .card-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--glow-primary);
    min-height: 44px;
    touch-action: manipulation;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow), var(--glow-primary);
}

/* Recent Queries Otimizado */
.recent-queries {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.recent-queries h2 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.queries-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.query-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(22, 33, 62, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.query-item:hover {
    background: rgba(22, 33, 62, 0.8);
    transform: translateX(5px);
}

.query-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--glow-primary);
}

.query-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.query-details strong {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
}

.query-details span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.query-details small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

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

/* WhatsApp Float Otimizado */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(37, 211, 102, 0.7);
}

/* Query Form Styles */
.query-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modais Otimizados */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.modal-content {
    background: var(--surface);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 212, 255, 0.05);
    flex-shrink: 0;
}

.modal-header h3 {
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
}

.modal-close:hover {
    background: rgba(255, 68, 68, 0.2);
    color: var(--error);
}

.modal-body {
    padding: 2rem;
    flex: 1;
}

.modal-footer {
    padding: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* Estilos para formulários de consulta */
.result-content {
    background: rgba(22, 33, 62, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item strong {
    color: var(--text);
    font-weight: 600;
}

.result-item span {
    color: var(--text-secondary);
    word-break: break-word;
}

.btn-copy {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto 0;
    transition: all 0.3s ease;
    box-shadow: var(--glow-primary);
    min-height: 44px;
    touch-action: manipulation;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--glow-primary);
}

/* Animations Otimizadas */
@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes float-particle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

@keyframes line-move {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.5); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.8); }
}

@keyframes border-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Otimizado - CORRIGIDO PARA ANDROID */
@media (max-width: 768px) {
    body {
        font-size: 13px;
        zoom: 1;
        -webkit-text-size-adjust: none;
        -ms-text-size-adjust: none;
    }
    
    .mobile-header {
        display: flex !important;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0.75rem;
        padding-top: 80px;
        width: 100%;
        min-height: calc(100vh - 80px);
        min-height: calc(-webkit-fill-available - 80px);
        overflow-x: hidden;
    }
    
    .futuristic-sidebar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 2000;
        height: 100vh;
        height: -webkit-fill-available;
    }
    
    .futuristic-sidebar.active {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
    }
    
    .futuristic-sidebar .sidebar-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(255, 68, 68, 0.2);
        color: var(--error);
        border: 1px solid var(--error);
        border-radius: 8px;
        padding: 0.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .futuristic-sidebar .sidebar-toggle:hover {
        background: var(--error);
        color: white;
    }
    
    /* CORREÇÃO PARA DASHBOARD ANDROID - NÃO CORTAR NO MEIO */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .content-header h1 {
        font-size: 1.3rem;
        font-weight: 700;
    }
    
    .login-container {
        padding: 0.75rem;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    .logo-text {
        font-size: 1.8rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .status-indicators {
        gap: 0.75rem;
        flex-direction: column;
        align-items: center;
    }
    
    /* CORREÇÃO ESPECÍFICA PARA ANDROID - DASHBOARD PREVIEW */
    .hero-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0.75rem;
        overflow: hidden;
    }
    
    .dashboard-preview {
        width: 100%;
        max-width: 300px;
        padding: 1.25rem;
        margin: 0 auto;
        box-sizing: border-box;
        transform: none !important;
    }
    
    .preview-content {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .preview-card {
        padding: 0.875rem;
        font-size: 0.85rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Hero Container Mobile Fix */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.75rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-login {
        width: 100%;
        max-width: 100%;
        margin: 0.75rem 0;
        padding: 1.25rem;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
        zoom: 1;
    }
    
    .main-content {
        padding: 0.5rem;
        padding-top: 70px;
    }
    
    .status-card,
    .dashboard-card {
        padding: 0.875rem;
    }
    
    .card-content {
        padding: 1.25rem;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .content-header h1 {
        font-size: 1.1rem;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-header {
        padding: 0.75rem 1rem;
    }
    
    .mobile-logo {
        font-size: 0.95rem;
    }
    
    .mobile-menu-toggle {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    /* DASHBOARD PREVIEW ANDROID FIX */
    .dashboard-preview {
        max-width: 260px;
        padding: 0.875rem;
        transform: none !important;
    }
    
    .preview-card {
        padding: 0.75rem;
        font-size: 0.75rem;
    }
}

/* Otimizações para diferentes dispositivos */
@media (max-width: 360px) {
    body {
        font-size: 11px;
    }
    
    .dashboard-preview {
        max-width: 240px;
        padding: 0.75rem;
    }
    
    .preview-card {
        padding: 0.625rem;
        font-size: 0.7rem;
    }
}

/* Otimizações para Android - CORREÇÃO ESPECÍFICA */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .app-container {
        min-height: 100vh;
        min-height: -webkit-fill-available;
        width: 100%;
        overflow-x: hidden;
    }
    
    /* CORREÇÃO PRINCIPAL - DASHBOARD NÃO CORTAR */
    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100vw;
        padding: 1rem;
        box-sizing: border-box;
    }
    
    .hero-visual {
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
        overflow: hidden;
    }
    
    .dashboard-preview {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        transform: none !important; /* Remove animações que podem causar corte */
    }
    
    .preview-content {
        gap: 0.75rem;
        width: 100%;
    }
    
    .preview-card {
        padding: 0.75rem;
        font-size: 0.85rem;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .preview-card i {
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .preview-card span {
        flex: 1;
        text-align: left;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border: #ffffff;
        --text-secondary: #ffffff;
    }
}

/* Estilos específicos para telas pequenas */
@media (max-width: 360px) {
    .login-container {
        padding: 0.5rem;
    }
    
    .card-content {
        padding: 1.5rem 1rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .dashboard-preview {
        max-width: 260px;
        padding: 0.75rem;
    }
    
    .preview-card {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}