* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

:root {
    --primary-color: #00d4ff;
    --primary-dark: #00a8cc;
    --primary-light: #33e0ff;
    --bg-dark: #0a0e1a;
    --bg-panel: #141b2d;
    --bg-hover: #1e2a42;
    --text-primary: #ffffff;
    --text-secondary: #a0b8d0;
    --border-color: #1e2a42;
    --error-color: #ff4444;
    --success-color: #00ff88;
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e1a 0%, #0f1a2e 50%, #0a0e1a 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: 20px;
    position: relative;
    overflow-x: hidden;
    box-sizing: border-box;
}

body.has-pwa-banner {
    padding-bottom: 110px;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        padding-bottom: 20px;
    }
    
    body.has-pwa-banner {
        padding-bottom: 95px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
        padding-bottom: 20px;
    }
    
    body.has-pwa-banner {
        padding-bottom: 85px;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 1;
}

@media (max-width: 768px) {
    .container {
        align-items: center;
    }
}

/* Login Wrapper - Layout Novo */
.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    background: linear-gradient(145deg, rgba(20, 27, 45, 0.95) 0%, rgba(15, 22, 37, 0.95) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        0 0 60px rgba(0, 212, 255, 0.5),
        0 0 120px rgba(0, 212, 255, 0.2),
        inset 0 0 40px rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    animation: slideInUp 0.6s ease-out;
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        min-height: auto;
        overflow: visible;
        border-radius: 20px;
    }
}

/* Ordem no desktop - Brand primeiro, Form depois */
.login-brand {
    order: 1;
}

.login-form-area {
    order: 2;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Área Lateral - Branding */
.login-brand {
    flex: 1;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 168, 204, 0.15) 100%);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(0, 212, 255, 0.2);
    min-width: 0;
}

.brand-footer {
    margin-top: auto;
}

.login-brand::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--primary-color), transparent);
    animation: shimmer 3s linear infinite;
}

.brand-content {
    position: relative;
    z-index: 1;
}

.brand-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
}

.brand-icon-wrapper .icon {
    width: 100%;
    height: 100%;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
    animation: pulse 2s ease-in-out infinite;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: ripple 2s ease-out infinite;
}

.brand-title {
    color: var(--primary-color);
    font-size: 42px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
    text-shadow: 
        0 0 20px rgba(0, 212, 255, 0.6),
        0 0 40px rgba(0, 212, 255, 0.4);
    animation: textGlow 2s ease-in-out infinite;
    line-height: 1.2;
}

.brand-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 15px;
    padding: 12px 0;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    padding-left: 15px;
}

.feature-item:hover {
    border-left-color: var(--primary-color);
    color: var(--text-primary);
    transform: translateX(10px);
}

.feature-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.5));
}

.brand-footer {
    position: relative;
    z-index: 1;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.brand-footer .footer-credits {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.brand-footer .footer-version {
    color: var(--text-secondary);
    font-size: 12px;
    opacity: 0.7;
}

/* Área do Formulário */
.login-form-area {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.login-form {
    width: 100%;
    box-sizing: border-box;
}

.form-header {
    margin-bottom: 40px;
    text-align: left;
}

.form-header h2 {
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: 0.5px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Input Wrapper Novo */
.input-wrapper {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    z-index: 2;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: rgba(10, 14, 26, 0.6);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-sizing: border-box;
}

.input-wrapper input::placeholder {
    color: rgba(160, 184, 208, 0.5);
    transition: all 0.3s;
}

.input-wrapper input:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.4),
        0 0 40px rgba(0, 212, 255, 0.2);
    background: rgba(10, 14, 26, 0.8);
}

.input-wrapper input:focus ~ .input-line {
    width: 100%;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
    z-index: 3;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
    }
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Botão Primary Atualizado */
.btn-primary {
    width: 100%;
    padding: 16px 24px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    box-sizing: border-box;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary svg {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(0, 212, 255, 0.5),
        0 0 50px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover svg {
    transform: translateX(5px);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(0, 212, 255, 0.5),
            0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(0, 212, 255, 0.8),
            0 0 40px rgba(0, 212, 255, 0.5),
            0 0 60px rgba(0, 212, 255, 0.3);
    }
}

/* Support Section Atualizado */
.support-section {
    margin-top: 30px;
    text-align: center;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(32, 186, 90, 0.1) 100%);
    border: 2px solid rgba(37, 211, 102, 0.3);
    border-radius: 12px;
    color: #25d366;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.support-btn:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2) 0%, rgba(32, 186, 90, 0.2) 100%);
    border-color: #25d366;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.form-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.form-footer .footer-text {
    color: var(--text-secondary);
    font-size: 12px;
    opacity: 0.7;
}


/* Responsive para Login */
/* Responsive - Mobile First */
@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 5px;
    }
    
    .login-wrapper {
        max-width: 100%;
        min-height: auto;
        margin: 0;
    }
    
    /* Reorganizar ordem: Form primeiro, Brand depois */
    .form-mobile-top {
        order: 1;
    }
    
    .brand-mobile-bottom {
        order: 2;
    }
    
    /* Área do Formulário - Topo no Mobile */
    .login-form-area {
        padding: 30px 20px;
    width: 100%;
        justify-content: flex-start;
    }
    
    .form-header {
        margin-bottom: 25px;
        text-align: center;
        width: 100%;
    }
    
    .form-header h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .form-header p {
        font-size: 13px;
    }
    
    .input-wrapper {
        margin-bottom: 25px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .input-wrapper input {
        padding: 14px 18px 14px 45px;
        font-size: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .btn-primary {
        padding: 14px 20px;
    font-size: 14px;
        letter-spacing: 1.5px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .support-section {
        margin-top: 25px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .support-btn {
        padding: 12px 20px;
        font-size: 13px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-footer {
        margin-top: 25px;
        padding-top: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Área de Branding - Embaixo no Mobile */
    .login-brand {
        border-right: none;
        border-top: 1px solid rgba(0, 212, 255, 0.2);
        padding: 25px 20px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .brand-content {
        margin-bottom: 20px;
    }
    
    .login-brand::after {
        display: none;
    }
    
    .brand-content {
        text-align: center;
    }
    
    .brand-icon-wrapper {
        width: 80px;
        height: 80px;
        margin: 0 auto 20px;
    }
    
    .icon-glow {
        width: 100px;
        height: 100px;
    }
    
    .brand-title {
        font-size: 28px;
        letter-spacing: 3px;
        margin-bottom: 10px;
    }
    
    .brand-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .brand-features {
        margin-top: 20px;
        gap: 12px;
    align-items: center;
    }
    
    .feature-item {
    justify-content: center;
        padding: 10px 0;
        padding-left: 0;
        border-left: none;
        border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    }
    
    .feature-item:last-child {
        border-bottom: none;
    }
    
    .feature-item:hover {
        transform: none;
        border-left: none;
    }
    
    .feature-icon {
        font-size: 20px;
    }
    
    .brand-footer {
        margin-top: 20px;
        padding-top: 20px;
        text-align: center;
    }
    
    .brand-footer .footer-credits {
        font-size: 14px;
    }
    
    .brand-footer .footer-version {
        font-size: 11px;
    }
}

/* Mobile Pequeno */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .login-wrapper {
        border-radius: 15px;
        margin-bottom: 20px;
        margin-top: 10px;
    }
    
    .container {
        padding: 0 5px;
    }
    
    .login-form-area {
        padding: 25px 15px;
        padding-bottom: 30px;
    }
    
    .form-header h2 {
        font-size: 20px;
    }
    
    .form-header p {
        font-size: 12px;
    }
    
    .input-wrapper input {
        padding: 12px 15px 12px 40px;
        font-size: 14px;
    width: 100%;
        box-sizing: border-box;
    }
    
    .input-wrapper {
        width: 100%;
        box-sizing: border-box;
    }
    
    .input-icon {
        left: 12px;
        width: 18px;
        height: 18px;
    }
    
    .btn-primary {
        padding: 12px 18px;
        font-size: 13px;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .btn-primary svg {
        width: 18px;
        height: 18px;
    }
    
    .login-brand {
        padding: 20px 15px;
    }
    
    .brand-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .icon-glow {
        width: 85px;
        height: 85px;
    }
    
    .brand-title {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .brand-subtitle {
        font-size: 13px;
    }
    
    .brand-features {
        gap: 10px;
    }
    
    .feature-item {
        font-size: 13px;
        padding: 8px 0;
    }
    
    .feature-icon {
        font-size: 18px;
    }
    
    .support-btn {
        padding: 10px 18px;
        font-size: 12px;
    }
    
    .error-message {
        font-size: 12px;
        padding: 10px 12px;
        margin-bottom: 20px;
        line-height: 1.4;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .login-wrapper {
        max-width: 900px;
    }
    
    .login-brand {
        padding: 40px 30px;
    }
    
    .login-form-area {
        padding: 40px 30px;
    }
    
    .brand-title {
        font-size: 36px;
    }
}

.error-message {
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid var(--error-color);
    color: var(--error-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    word-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
}

/* Main Panel */
.main-panel {
    background: linear-gradient(145deg, rgba(20, 27, 45, 0.95) 0%, rgba(15, 22, 37, 0.95) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    min-height: 600px;
    box-shadow: 
        0 0 60px rgba(0, 212, 255, 0.5),
        0 0 100px rgba(0, 212, 255, 0.2),
        inset 0 0 40px rgba(0, 212, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    animation: fadeInScale 0.5s ease-out;
}

.main-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color), 
        var(--primary-light),
        var(--primary-color),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 212, 255, 0.05) 100%);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.panel-header h1 {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 0 10px rgba(0, 212, 255, 0.5),
        0 0 20px rgba(0, 212, 255, 0.3);
    animation: headerGlow 3s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(0, 212, 255, 0.5),
            0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(0, 212, 255, 0.7),
            0 0 30px rgba(0, 212, 255, 0.4),
            0 0 45px rgba(0, 212, 255, 0.2);
    }
}

.icon-btn {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #cccccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.panel-body {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-right: 1px solid rgba(0, 212, 255, 0.1);
    background: linear-gradient(180deg, #0f1625 0%, #141b2d 100%);
    gap: 10px;
}

.sidebar-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #888888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sidebar-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.sidebar-btn:hover::after {
    width: 100%;
    height: 100%;
}

.sidebar-btn .icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-btn:not(.active):hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateX(5px) scale(1.05);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.sidebar-btn.active {
    background: var(--accent-gradient);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.6),
        0 0 40px rgba(0, 212, 255, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    animation: activePulse 2s ease-in-out infinite;
}

@keyframes activePulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(0, 212, 255, 0.6),
            0 0 40px rgba(0, 212, 255, 0.3),
            inset 0 0 10px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(0, 212, 255, 0.8),
            0 0 60px rgba(0, 212, 255, 0.4),
            inset 0 0 15px rgba(255, 255, 255, 0.15);
    }
}

.content-area {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(20, 27, 45, 0.3) 0%, transparent 100%);
}

.content-area::-webkit-scrollbar {
    width: 8px;
}

.content-area::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.content-area::-webkit-scrollbar-thumb {
    background: var(--accent-gradient);
    border-radius: 4px;
}

.section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.section.active {
    display: block;
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(20, 27, 45, 0.8) 0%, rgba(15, 22, 37, 0.8) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.option-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;
}

.option-item:hover::before {
    left: 100%;
}

.option-item:hover {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.3),
        0 0 40px rgba(0, 212, 255, 0.1),
        inset 0 0 20px rgba(0, 212, 255, 0.05);
    transform: translateX(8px) scale(1.01);
    background: linear-gradient(135deg, rgba(20, 27, 45, 0.95) 0%, rgba(15, 22, 37, 0.95) 100%);
}

.option-label {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background: var(--accent-gradient);
    border-color: var(--primary-color);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.5),
        0 0 40px rgba(0, 212, 255, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    animation: toggleGlow 2s ease-in-out infinite;
}

@keyframes toggleGlow {
    0%, 100% {
    box-shadow: 
            0 0 20px rgba(0, 212, 255, 0.5),
            0 0 40px rgba(0, 212, 255, 0.2),
            inset 0 0 10px rgba(255, 255, 255, 0.1);
    }
    50% {
    box-shadow: 
            0 0 30px rgba(0, 212, 255, 0.7),
            0 0 60px rgba(0, 212, 255, 0.3),
            inset 0 0 15px rgba(255, 255, 255, 0.15);
    }
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(26px);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    max-width: 300px;
}

.range-slider {
    flex: 1;
    height: 8px;
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 4px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-gradient);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.5),
        0 0 30px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.7),
        0 0 40px rgba(0, 212, 255, 0.4);
}

.range-slider::-webkit-slider-thumb:active {
    transform: scale(1.5);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-gradient);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.5),
        0 0 30px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.3);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.7),
        0 0 40px rgba(0, 212, 255, 0.4);
}

.slider-value {
    color: var(--primary-color);
    font-weight: 700;
    min-width: 40px;
    text-align: right;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Injection Section */
.injection-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-inject {
    width: 100%;
    padding: 16px 20px;
    background: var(--accent-gradient);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-inject::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-inject:hover::before {
    width: 400px;
    height: 400px;
}

.btn-inject:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(0, 212, 255, 0.5),
        0 0 50px rgba(0, 212, 255, 0.3);
}

.btn-inject:active {
    transform: translateY(-1px) scale(0.98);
}

.injection-status {
    margin-bottom: 15px;
    padding: 15px 18px;
    background: linear-gradient(135deg, rgba(20, 27, 45, 0.9) 0%, rgba(15, 22, 37, 0.9) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.injection-log {
    width: 100%;
    height: 200px;
    background: #000000;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 15px;
    color: #00ff88;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    resize: none;
}

/* Select/Dropdown */
.select-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 200px;
}

.select-container::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.select-container:focus-within::after {
    transform: translateY(-50%) rotate(180deg);
}

.select-container select {
    width: 100%;
    padding: 10px 35px 10px 15px;
    background: rgba(10, 14, 26, 0.8);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.select-container select:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.select-container select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.4),
        0 0 30px rgba(0, 212, 255, 0.2);
}

/* Pro Player Mode */
.pro-mode-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 168, 204, 0.15) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.3),
        inset 0 0 30px rgba(0, 212, 255, 0.05);
    transition: all 0.3s ease;
}

.pro-mode-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
    pointer-events: none;
}

.pro-mode-card:hover {
    transform: scale(1.02);
    box-shadow: 
        0 0 40px rgba(0, 212, 255, 0.4),
        inset 0 0 40px rgba(0, 212, 255, 0.1);
}

.pro-mode-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.pro-mode-features {
    list-style: none;
    margin: 15px 0;
    text-align: left;
}

.pro-mode-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pro-mode-features li::before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
}

/* PWA Install Footer */
.pwa-install-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.98) 0%, rgba(15, 26, 46, 0.98) 50%, rgba(10, 14, 26, 0.98) 100%);
    border-top: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 15px 20px;
    z-index: 10000;
    box-shadow: 
        0 -4px 30px rgba(0, 212, 255, 0.4),
        0 -2px 10px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    animation: slideUpFooter 0.4s ease-out;
}

@keyframes slideUpFooter {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pwa-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.pwa-footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.pwa-footer-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px var(--primary-color));
    animation: pwaPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pwaPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.pwa-footer-text {
    display: flex;
        flex-direction: column;
    gap: 5px;
}

.pwa-footer-text strong {
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.pwa-footer-text span {
    font-size: 0.85rem;
    opacity: 0.85;
    color: rgba(0, 212, 255, 0.8);
}

.pwa-footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.pwa-footer-btn-install {
    padding: 10px 20px;
    background: var(--accent-gradient);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.pwa-footer-btn-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
}

.pwa-footer-btn-dismiss {
    background: transparent;
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--primary-color);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-footer-btn-dismiss:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
    transform: rotate(90deg) scale(1.1);
}

@media (max-width: 768px) {
    .pwa-install-footer {
        padding: 12px 15px;
    }
    
    .pwa-footer-content {
        gap: 12px;
    }
    
    .pwa-footer-icon {
        font-size: 1.5rem;
    }
    
    .pwa-footer-text strong {
        font-size: 0.9rem;
    }
    
    .pwa-footer-text span {
        font-size: 0.75rem;
    }
    
    .pwa-footer-btn-install {
        padding: 8px 15px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .pwa-install-footer {
        padding: 10px 12px;
    }
    
    .pwa-footer-content {
        gap: 10px;
    }
    
    .pwa-footer-left {
        gap: 10px;
    }
    
    .pwa-footer-icon {
        font-size: 1.3rem;
    }
    
    .pwa-footer-text strong {
        font-size: 0.8rem;
    }
    
    .pwa-footer-text span {
        font-size: 0.7rem;
    }
    
    .pwa-footer-btn-install {
        padding: 7px 12px;
        font-size: 0.7rem;
    }
    
    .pwa-footer-btn-dismiss {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        padding: 6px 10px;
    }
}

/* ===================================
   DASHBOARD STYLES - NOVO LAYOUT
   =================================== */

/* Dashboard Panel - Quadrado Centralizado */
.dashboard-panel {
    width: 100%;
    max-width: 1200px;
    background: linear-gradient(135deg, rgba(20, 27, 45, 0.98) 0%, rgba(30, 42, 66, 0.98) 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 0;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
    animation: panelFadeIn 0.6s ease-out;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.95) 0%, rgba(15, 26, 46, 0.95) 100%);
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
        filter: drop-shadow(0 0 15px var(--primary-color));
    animation: rotate 20s linear infinite;
    }

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-title {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.user-key {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    background: rgba(0, 212, 255, 0.1);
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.user-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--success-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.logout-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 10px;
    color: var(--error-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logout-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: var(--error-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 68, 68, 0.3);
}

.logout-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-icon svg {
    width: 100%;
    height: 100%;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 10px;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.8) 0%, rgba(15, 26, 46, 0.8) 100%);
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    padding: 15px 20px;
    overflow-x: auto;
    animation: slideUp 0.5s ease-out 0.1s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-tab {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: transparent;
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-tab .tab-label {
    display: block;
}

.nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.nav-tab:hover::before {
    opacity: 0.1;
}

.nav-tab.active::before {
    opacity: 0.15;
}

.nav-tab * {
    position: relative;
    z-index: 1;
}

.nav-tab:hover {
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.nav-tab.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.tab-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px currentColor);
}

.tab-icon svg {
    width: 100%;
    height: 100%;
}

.tab-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-tab.active .tab-indicator {
    transform: scaleX(1);
}

/* Main Content */
.main-content {
    padding: 30px;
    min-height: 500px;
    max-height: 600px;
    overflow-y: auto;
    animation: fadeIn 0.5s ease-out 0.2s both;
}

/* Custom Scrollbar */
.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.main-content::-webkit-scrollbar-thumb {
    background: var(--accent-gradient);
    border-radius: 10px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.section {
    display: none;
    animation: sectionFadeIn 0.4s ease-out;
}

.section.active {
    display: block;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
}

.section-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    filter: drop-shadow(0 0 15px var(--primary-color));
}

.section-icon svg {
    width: 100%;
    height: 100%;
}

.section-info {
    flex: 1;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.section-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(20, 27, 45, 0.95) 0%, rgba(30, 42, 66, 0.95) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: cardSlideIn 0.4s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
}

.feature-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-title-area {
    flex: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-body {
    margin-top: 15px;
}

.card-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.status-badge {
    font-size: 0.75rem;
    padding: 5px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border-radius: 34px;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked + .slider {
    background: var(--accent-gradient);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(24px);
}

.toggle-switch.large {
    width: 60px;
    height: 32px;
}

.toggle-switch.large .slider:before {
    height: 24px;
    width: 24px;
}

.toggle-switch.large input:checked + .slider:before {
    transform: translateX(28px);
}

/* Range Slider */
.range-slider-container {
    width: 100%;
}

.range-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 15px;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-gradient);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    transition: all 0.3s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.7);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-gradient);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    transition: all 0.3s ease;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.7);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.hertz-display {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    padding: 5px 15px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
}

/* Drag Selector */
.drag-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.drag-option {
    background: linear-gradient(135deg, rgba(20, 27, 45, 0.95) 0%, rgba(30, 42, 66, 0.95) 100%);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    animation: cardSlideIn 0.4s ease-out both;
}

.drag-option:nth-child(1) { animation-delay: 0.1s; }
.drag-option:nth-child(2) { animation-delay: 0.2s; }
.drag-option:nth-child(3) { animation-delay: 0.3s; }

.drag-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
}

.drag-option input:checked ~ * {
    color: var(--primary-color);
}

.drag-option input:checked ~ label {
    border-color: var(--primary-color);
    background: var(--accent-gradient);
}

.drag-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.drag-icon svg {
    width: 100%;
    height: 100%;
}

.drag-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.drag-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.drag-radio {
    display: flex;
    justify-content: center;
}

.drag-radio input {
    display: none;
}

.drag-radio label {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.drag-radio input:checked + label {
    border-color: var(--primary-color);
    background: var(--accent-gradient);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.drag-radio input:checked + label::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Pro Mode Container */
.pro-mode-container {
    max-width: 800px;
    margin: 0 auto;
}

.pro-mode-card {
    background: linear-gradient(135deg, rgba(20, 27, 45, 0.95) 0%, rgba(30, 42, 66, 0.95) 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    animation: cardSlideIn 0.5s ease-out;
}

.pro-mode-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    margin-bottom: 25px;
}

.pro-mode-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    filter: drop-shadow(0 0 20px var(--primary-color));
}

.pro-mode-icon svg {
    width: 100%;
    height: 100%;
}

.pro-mode-title {
    flex: 1;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.pro-mode-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.pro-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.pro-feature:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(5px);
}

.feature-icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 10px;
    flex-shrink: 0;
    color: white;
}

.feature-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.feature-content h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.feature-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pro-mode-footer {
    padding-top: 25px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    justify-content: center;
}

.pro-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.pro-status .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.pro-status.active .status-indicator {
    background: var(--success-color);
    box-shadow: 0 0 15px var(--success-color);
    animation: pulse 2s ease-in-out infinite;
}

.pro-status .status-text {
    color: var(--text-secondary);
}

.pro-status.active .status-text {
    color: var(--success-color);
}

/* Injection Container */
.injection-container {
    max-width: 800px;
    margin: 0 auto;
}

.injection-card {
    background: linear-gradient(135deg, rgba(20, 27, 45, 0.95) 0%, rgba(30, 42, 66, 0.95) 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
    animation: cardSlideIn 0.5s ease-out;
}

.injection-visual {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.injection-circle {
    width: 150px;
    height: 150px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.injection-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: pulseBorder 2s ease-in-out infinite;
}

@keyframes pulseBorder {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

.injection-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    filter: drop-shadow(0 0 20px var(--primary-color));
    animation: float 3s ease-in-out infinite;
}

.injection-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.injection-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.injection-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.injection-toggle-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.injection-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.injection-status .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.injection-status.active .status-indicator {
    background: var(--success-color);
    box-shadow: 0 0 15px var(--success-color);
    animation: pulse 2s ease-in-out infinite;
}

.injection-status .status-text {
    color: var(--text-secondary);
}

.injection-status.active .status-text {
    color: var(--success-color);
}

/* Injection Buttons */
.injection-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.btn-inject {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 25px;
    background: var(--accent-gradient);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-inject::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-inject:hover::before {
    width: 300px;
    height: 300px;
}

.btn-inject:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
    border-color: var(--primary-light);
}

.btn-inject:active {
    transform: translateY(-1px);
}

.btn-inject-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.btn-inject-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.btn-inject-text {
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.injection-status-area {
    margin-bottom: 20px;
}

.injection-log-wrapper {
    margin-bottom: 20px;
}

.log-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

.injection-log {
    width: 100%;
    height: 150px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    resize: none;
    outline: none;
    box-sizing: border-box;
}

.injection-log::-webkit-scrollbar {
    width: 6px;
}

.injection-log::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.injection-log::-webkit-scrollbar-thumb {
    background: var(--accent-gradient);
    border-radius: 10px;
}

.injection-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    color: #ffc107;
    font-size: 0.85rem;
}

.warning-icon {
    font-size: 1.2rem;
}

/* Responsive - Dashboard */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .dashboard-panel {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .dashboard-panel {
        max-width: 100%;
        border-radius: 15px;
        margin: 10px;
    }
    
    .dashboard-header {
        padding: 15px 20px;
        flex-direction: row;
        gap: 15px;
        text-align: center;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-left {
        flex-direction: row;
        gap: 12px;
        align-items: center;
    }
    
    .header-right {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }
    
    .user-info {
        align-items: center;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .header-info {
        text-align: left;
    }
    
    .header-subtitle {
        display: none;
    }
    
    .nav-tabs {
        padding: 8px;
        gap: 5px;
        justify-content: space-between;
    }
    
    .nav-tab {
        flex: 1;
        min-width: 0;
        max-width: none;
        padding: 12px 8px;
        gap: 5px;
    }
    
    .nav-tab .tab-label {
        display: none;
    }
    
    .main-content {
        padding: 20px;
        max-height: 500px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .section-icon {
        width: 40px;
        height: 40px;
    }
    
    .card-icon {
        width: 32px;
        height: 32px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .drag-selector {
        grid-template-columns: 1fr;
    }
    
    .drag-icon {
        width: 50px;
        height: 50px;
    }
    
    .pro-mode-card,
    .injection-card {
        padding: 20px;
    }
    
    .pro-mode-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon-wrapper {
        width: 35px;
        height: 35px;
    }
    
    .feature-icon-wrapper svg {
        width: 20px;
        height: 20px;
    }
    
    .injection-icon {
        width: 60px;
        height: 60px;
    }
    
    .injection-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dashboard-panel {
        margin: 5px;
        border-radius: 12px;
    }
    
    .dashboard-header {
        padding: 12px 15px;
    }
    
    .header-title {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }
    
    .header-subtitle {
        display: none;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .user-status {
        font-size: 0.8rem;
    }
    
    .status-dot {
        width: 6px;
        height: 6px;
    }
    
    .logout-btn {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }
    
    .logout-icon {
        width: 18px;
        height: 18px;
    }
    
    .nav-tabs {
        padding: 6px;
        gap: 4px;
        overflow-x: visible;
    }
    
    .nav-tab {
        flex: 1;
        min-width: 0;
        padding: 10px 5px;
        gap: 0;
    }
    
    .nav-tab .tab-label {
        display: none;
    }
    
    .tab-icon {
        width: 24px;
        height: 24px;
    }
    
    .tab-indicator {
        height: 2px;
    }
    
    .main-content {
        padding: 15px;
        max-height: 450px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .section-icon {
        width: 35px;
        height: 35px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-icon {
        width: 28px;
        height: 28px;
    }
    
    .feature-card {
        padding: 15px;
    }
    
    .drag-icon {
        width: 45px;
        height: 45px;
    }
    
    .pro-mode-icon {
        width: 35px;
        height: 35px;
    }
    
    .feature-icon-wrapper {
        width: 32px;
        height: 32px;
    }
    
    .feature-icon-wrapper svg {
        width: 18px;
        height: 18px;
    }
    
    .injection-icon {
        width: 50px;
        height: 50px;
    }
    
    .injection-circle {
        width: 120px;
        height: 120px;
    }
    
    .btn-inject {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    
    .btn-inject-icon {
        width: 20px;
        height: 20px;
    }
    
    .injection-log {
        height: 120px;
        font-size: 0.75rem;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .main-panel {
        max-width: 100%;
        border-radius: 15px;
    }
    
    .sidebar {
        padding: 10px 8px;
        min-width: 60px;
    }
    
    .sidebar-btn {
        width: 44px;
        height: 44px;
    }
    
    .content-area {
        padding: 15px;
    }
    
    /* PWA Banner Mobile */
