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

/* Neural Background */
.neural-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.neural-node {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #3b82f6;
    border-radius: 50%;
    opacity: 0.6;
    animation: neuralPulse 4s ease-in-out infinite;
}

.neural-node:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.neural-node:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 1s;
}

.neural-node:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 2s;
}

.neural-node:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 3s;
}

.neural-node:nth-child(5) {
    top: 10%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes neuralPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.5); }
}

.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
}

.ai-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: aiGlow 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes aiGlow {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.ai-logo {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-core {
    position: relative;
    z-index: 3;
    color: #3b82f6;
}

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

.logo-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: ringPulse 3s ease-in-out infinite;
}

.ring-1 {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    animation-delay: 0s;
}

.ring-2 {
    width: 70px;
    height: 70px;
    top: 5px;
    left: 5px;
    animation-delay: 1s;
}

.ring-3 {
    width: 80px;
    height: 80px;
    top: 0;
    left: 0;
    animation-delay: 2s;
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

.login-header h1 {
    color: #f8fafc;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.login-header p {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 400;
}

/* Smart Fields */
.smart-field {
    position: relative;
    margin-bottom: 28px;
}

.field-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.smart-field input {
    width: 100%;
    background: transparent;
    border: 0.5px solid #8289AB;
    padding: 16px 50px 16px 16px;
    color: #f8fafc;
    font-size: 15px;
    font-weight: 400;
    outline: none;
    position: relative;
    z-index: 2;
    font-family: inherit;
    border-radius: 10px;
}

.smart-field input::placeholder {
    color: transparent;
}

.smart-field label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 15px;
    font-weight: 400;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 3;
    background: rgba(15, 15, 20, 0.8);
    padding: 0 4px;
}

.smart-field input:focus + label,
.smart-field input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 12px;
    font-weight: 500;
    color: #3b82f6;
    transform: translateY(-50%);
}

.smart-field input:focus ~ .field-background {
    border-color: #3b82f6;
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5);
}

.ai-indicator {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    z-index: 4;
}

.ai-pulse {
    width: 100%;
    height: 100%;
    background: #3b82f6;
    border-radius: 50%;
    opacity: 0;
    animation: aiIndicator 2s ease-in-out infinite;
}

.smart-field input:focus ~ .ai-indicator .ai-pulse {
    opacity: 1;
}

@keyframes aiIndicator {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.5); opacity: 1; }
}

.field-completion {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 0 0 12px 12px;
}

.smart-field input:valid ~ .field-completion {
    width: 100%;
}

/* Password Toggle */
.smart-field:has(.smart-toggle) input {
    padding-right: 90px;
}

.smart-toggle {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smart-toggle:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.toggle-hide {
    display: none;
}

.smart-toggle.toggle-active .toggle-show {
    display: none;
}

.smart-toggle.toggle-active .toggle-hide {
    display: block;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.smart-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #cbd5e1;
    font-weight: 500;
}

.smart-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-ai {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-core {
    width: 100%;
    height: 100%;
    border: 1.5px solid rgba(59, 130, 246, 0.4);
    border-radius: 4px;
    background: rgba(30, 41, 59, 0.5);
    transition: all 0.3s ease;
    position: absolute;
}

.checkbox-ai svg {
    color: transparent;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.smart-checkbox input[type="checkbox"]:checked + .checkbox-ai .checkbox-core {
    background: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.smart-checkbox input[type="checkbox"]:checked + .checkbox-ai svg {
    color: #ffffff;
}

.neural-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.neural-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.neural-link:hover::after {
    width: 100%;
}

.neural-link:hover {
    color: #60a5fa;
}

/* Neural Button */
.neural-button {
    width: 100%;
    background-color: #3B4F81;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    margin-bottom: 28px;
    overflow: hidden;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.neural-button:hover .button-bg {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transform: scale(1.02);
}

.neural-button:active .button-bg {
    transform: scale(0.98);
}

.button-text {
    position: relative;
    z-index: 2;
    transition: opacity 0.2s ease;
}

.button-loader {
    position: absolute;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.neural-spinner {
    display: flex;
    gap: 4px;
}

.spinner-segment {
    width: 4px;
    height: 16px;
    background: #ffffff;
    border-radius: 2px;
    animation: neuralSpinner 1.2s ease-in-out infinite;
}

.spinner-segment:nth-child(2) { animation-delay: 0.1s; }
.spinner-segment:nth-child(3) { animation-delay: 0.2s; }

@keyframes neuralSpinner {
    0%, 80%, 100% { transform: scaleY(0.5); opacity: 0.5; }
    40% { transform: scaleY(1); opacity: 1; }
}

.neural-button.loading .button-text {
    opacity: 0;
}

.neural-button.loading .button-loader {
    opacity: 1;
}

.button-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 14px;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.neural-button:hover .button-glow {
    opacity: 0.6;
}

/* Auth Separator */
.auth-separator {
    display: flex;
    align-items: center;
    margin: 28px 0;
    gap: 16px;
}

.separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.separator-text {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Neural Social */
.neural-social {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.social-neural {
    flex: 1;
    background: transparent;
    color: #cbd5e1;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    min-height: 46px;
    position: relative;
    overflow: hidden;
}

.social-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.social-neural:hover .social-bg {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.4);
}

.social-neural span {
    position: relative;
    z-index: 2;
}

.social-neural svg {
    position: relative;
    z-index: 2;
}

.social-glow {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 11px;
    opacity: 0;
    filter: blur(4px);
    transition: opacity 0.2s ease;
    z-index: 0;
}

.social-neural:hover .social-glow {
    opacity: 1;
}

/* Signup Section */
.signup-section {
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.neural-signup {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.neural-signup::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.neural-signup:hover::after {
    width: 100%;
}

.neural-signup:hover {
    color: #60a5fa;
}

/* Error States */
.error-message {
    color: #ef4444;
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    position: relative;
    z-index: 5;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.smart-field.error .field-background {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.smart-field.error label {
    color: #ef4444;
}

.smart-field.error .field-completion {
    background: #ef4444;
}

/* Success Neural */
.success-neural {
    display: none;
    text-align: center;
    padding: 40px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.success-neural.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.success-core {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.success-ring {
    position: absolute;
    border: 2px solid #10b981;
    border-radius: 50%;
    animation: successRing 1s ease-out forwards;
}

.success-ring:nth-child(1) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    animation-delay: 0s;
}

.success-ring:nth-child(2) {
    width: 70px;
    height: 70px;
    top: 5px;
    left: 5px;
    animation-delay: 0.2s;
}

.success-ring:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 0;
    left: 0;
    animation-delay: 0.4s;
}

@keyframes successRing {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.7; transform: scale(1); }
}

.success-core svg {
    color: #10b981;
    position: relative;
    z-index: 2;
    animation: successCheck 0.6s ease-out 0.6s forwards;
    opacity: 0;
}

@keyframes successCheck {
    0% { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
}

.success-neural h3 {
    color: #f8fafc;
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.success-neural p {
    color: #94a3b8;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }
    
    .login-card {
        padding: 32px 24px;
        border-radius: 16px;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .ai-logo {
        width: 60px;
        height: 60px;
    }
    
    .ring-1 { width: 45px; height: 45px; top: 7.5px; left: 7.5px; }
    .ring-2 { width: 52px; height: 52px; top: 4px; left: 4px; }
    .ring-3 { width: 60px; height: 60px; top: 0; left: 0; }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .neural-social {
        flex-direction: column;
    }
}

.hub-menu{
display:flex;
gap:12px;
flex-wrap:wrap;
margin-bottom:30px;
}

.hub-badge{
position:relative;
padding:8px 14px;
background:rgba(59,130,246,0.15);
border:1px solid rgba(59,130,246,0.4);
border-radius:20px;
color:#fff;
font-size:14px;
cursor:pointer;
}

.hub-submenu{
position:absolute;
top:36px;
left:0;
background:#0f172a;
border:1px solid rgba(59,130,246,0.3);
border-radius:10px;
display:none;
flex-direction:column;
min-width:180px;
}

.hub-badge:hover .hub-submenu{
display:flex;
}

.hub-submenu a{
padding:10px 14px;
color:#cbd5e1;
text-decoration:none;
}

.hub-submenu a:hover{
background:rgba(59,130,246,0.2);
}

.login-error {
    padding:12px;
    border-radius: 10px;
    background: rgba(239,68,68,0.1);
    display: block;
    color:#FFF;
    text-align: center;
    margin-bottom:20px;
}

.hub-category{
max-width:900px;
margin:0 auto;
}

.hub-category-title{
color:#f8fafc;
font-size:28px;
margin-bottom:30px;
}

.hub-empty{
color:#94a3b8;
font-size:14px;
}

.hub-posts{
display:flex;
flex-direction:column;
gap:24px;
}

.hub-post{
background:rgba(15,15,20,0.95);
border:1px solid rgba(59,130,246,0.2);
border-radius:16px;
overflow:hidden;
}

.hub-post-image img{
width:100%;
display:block;
}

.hub-post-body{
padding:24px;
}

.hub-post-title{
color:#ffffff;
font-size:20px;
margin-bottom:6px;
}

.hub-post-date{
font-size:13px;
color:#94a3b8;
margin-bottom:16px;
}

.hub-post-content{
color:#cbd5e1;
line-height:1.6;
margin-bottom:16px;
}

.hub-download{
display:inline-block;
padding:10px 16px;
background:#3b82f6;
color:white;
border-radius:8px;
text-decoration:none;
font-size:14px;
}

.hub-download:hover{
background:#2563eb;
}

/* LIGHTBOX */

#hub-lightbox{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
display:none;
align-items:center;
justify-content:center;
z-index:1000;
}

.hub-lightbox-backdrop{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.85);
backdrop-filter:blur(6px);
}

.hub-lightbox-content{
position:relative;
max-width:90%;
max-height:90%;
z-index:2;
animation:lightboxZoom .25s ease;
}

.hub-lightbox-content img{
max-width:100%;
max-height:90vh;
border-radius:12px;
box-shadow:0 20px 60px rgba(0,0,0,0.7);
}

.hub-lightbox-close{
position:absolute;
top:-35px;
right:0;
color:#fff;
font-size:28px;
cursor:pointer;
}

@keyframes lightboxZoom{
from{
transform:scale(.9);
opacity:0;
}
to{
transform:scale(1);
opacity:1;
}
}

.hub-post-image img{
cursor:zoom-in;
border-radius:12px;
transition:transform .2s ease;
}

.hub-post-image img:hover{
transform:scale(1.02);
}

/* HUB NAVBAR */

.hub-navbar{
position:sticky;
top:0;
z-index:100;
background:rgba(10,10,15,0.85);
backdrop-filter:blur(10px);
border-bottom:1px solid rgba(59,130,246,0.2);
}

.hub-navbar-inner{
display:flex;
align-items:center;
justify-content:space-between;
gap:20px;
padding-left:20px;
padding-right: 20px;
}

.hub-logo{
display:flex;
align-items:center;
gap:10px;
color:white;
font-weight:600;
}

.hub-logo img{
height:26px;
}

/* MENU */

.hub-menu{
display:flex;
gap:10px;
flex-wrap:wrap;
margin-top:5px;
margin-bottom: 5px;
}

.hub-pill{
position:relative;
padding:8px 16px;
background:rgba(59,130,246,0.15);
border:1px solid rgba(59,130,246,0.4);
border-radius:20px;
color:#fff;
font-size:14px;
cursor:pointer;
}

.hub-pill:hover{
background:rgba(59,130,246,0.25);
}

.hub-submenu{
position:absolute;
top:40px;
left:0;
background:#0f172a;
border:1px solid rgba(59,130,246,0.3);
border-radius:10px;
display:none;
flex-direction:column;
min-width:180px;
overflow:hidden;
}

.hub-pill:hover .hub-submenu{
display:flex;
}

.hub-submenu a{
padding:10px 14px;
color:#cbd5e1;
text-decoration:none;
}

.hub-submenu a:hover{
background:rgba(59,130,246,0.2);
}

/* USER */

.hub-user{
display:flex;
align-items:center;
gap:14px;
color:#cbd5e1;
font-size:14px;
}

.hub-logout{
padding:6px 12px;
border-radius:10px;
border:1px solid rgba(59,130,246,0.3);
text-decoration:none;
color:white;
}

.hub-logout:hover{
background:rgba(59,130,246,0.2);
}

/* CONTENT */

.hub-content{
max-width:900px;
margin:40px auto;
padding:0 20px;
}

/* MOBILE */

.hub-mobile-toggle{
display:none;
color:white;
font-size:22px;
cursor:pointer;
}

@media (max-width:900px){
.hub-navbar-inner{
    padding:15px;
}

.hub-menu{
display:none;
position:absolute;
top:70px;
left:0;
right:0;
background:#0a0a0f;
padding:20px;
flex-direction:column;
}

.hub-menu.active{
display:flex;
}

.hub-pill{
width:100%;
}

.hub-submenu{
position:relative;
top:0;
margin-top:10px;
}

.hub-mobile-toggle{
display:block;
}

}

.hub-layout{
width: 100%;
margin:auto;
padding:0 0px;
}


/* HUB HOME */

.hub-home{
max-width:900px;
margin:0 auto;
}

.hub-home-title{
color:#f8fafc;
font-size:32px;
margin-bottom:40px;
}

.hub-home-sections{
display:flex;
flex-direction:column;
gap:40px;
}

.hub-home-section-title{
color:#ffffff;
font-size:22px;
margin-bottom:16px;
}

.hub-home-categories{
display:flex;
flex-wrap:wrap;
gap:12px;
}

.hub-home-category{
display:inline-block;
padding:12px 18px;
background:rgba(59,130,246,0.15);
border:1px solid rgba(59,130,246,0.35);
border-radius:12px;
color:#ffffff;
text-decoration:none;
font-size:14px;
transition:all .2s ease;
}

.hub-home-category:hover{
background:rgba(59,130,246,0.25);
border-color:rgba(59,130,246,0.5);
}