:root {
    --bg-primary: #0B0B10;
    --cyber-cyan: #00FFE0;
    --plasma-violet: #A12DFF;
    --hack-magenta: #FF007A;
    
    --text-main: #E5F1FF;
    --text-mute: #7A8CA4;
    --glass-bg: rgba(11, 11, 16, 0.3);
    --glass-border: rgba(0, 255, 224, 0.2);
    --glass-glow: rgba(0, 255, 224, 0.1);
}


/* tools page navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 0 20px var(--glass-glow);
    padding: 16px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.nav-logo {
    padding: 8px;
    color: var(--cyber-cyan);
}

.nav-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-mute);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--cyber-cyan);
}

.nav-link.active {
    color: var(--cyber-cyan);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyber-cyan), var(--plasma-violet));
    border-radius: 1px;
}


/* Navigation old */
/* .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 16px 0;
} */

.navbar.scrolled {
    background: rgba(11, 11, 16, 0.3);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 255, 224, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 224, 0.1);
}
/* .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
} */
/* .nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.nav-logo {
    padding: 8px;
    color: var(--cyber-cyan);
} */

.glass {
    background: rgba(11, 11, 16, 0.3);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 224, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 224, 0.1);
    border-radius: 12px;
}

.glow-cyan {
    box-shadow: 0 0 12px rgba(0, 255, 224, 0.35);
}
.hover-glow-cyan:hover {
    box-shadow: 0 0 12px rgba(0, 255, 224, 0.35);
}
/* .nav-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
} */
@media (max-width: 480px){    
    .auth-panel {
        padding: 24px;
    }
}
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(11, 11, 16, 0.95);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(0, 255, 224, 0.2);
        border-radius: 0 0 16px 16px;
        padding: 24px;
        flex-direction: column;
        gap: 16px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
        .nav-toggle {
        display: flex;
    }
}
/* .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-mute);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
} */

/* .nav-link:hover {
    color: var(--cyber-cyan);
} */

/* Cyber Button */
.cyber-button {
    position: relative;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    background: var(--bg-primary);
    color: var(--cyber-cyan);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 14px;
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--cyber-cyan), var(--plasma-violet), var(--hack-magenta), var(--cyber-cyan));
    border-radius: 52px;
    z-index: -1;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.cyber-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    border-radius: 48px;
    z-index: -1;
    transition: all 0.3s ease;
}

.cyber-button:hover {
    transform: scale(1.04);
    box-shadow:
        0 0 20px rgba(0, 255, 224, 0.4),
        0 0 40px rgba(161, 45, 255, 0.2),
        inset 0 0 20px rgba(0, 255, 224, 0.1);
    color: var(--text-main);
}

.cyber-button:hover::after {
    background: rgba(11, 11, 16, 0.8);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    background: rgba(11, 11, 16, 0.3);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 224, 0.2);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--cyber-cyan);
    transition: all 0.3s ease;
}
/* Auth Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent 0%,
            rgba(0, 255, 224, 0.03) 50%,
            transparent 100%);
    background-size: 100% 4px;
    animation: scan 25s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.auth-panel {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 400px;
    padding: 32px;
    border: 2px solid rgba(0, 255, 224, 0.3);
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    /* transform: translateY(-8px) scale(1.02); */
    box-shadow: 0 0 40px rgba(0, 255, 224, 0.2);
}
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-icon {
    padding: 12px;
    margin: 0 auto 16px;
    color: var(--cyber-cyan);
}

.auth-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-mute);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}
.form-input {
    padding: 12px 16px;
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(0, 255, 224, 0.3);
    border-radius: 8px;
    outline: none;
    width: 100%;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: var(--text-mute);
}

.form-input:focus {
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 12px rgba(0, 255, 224, 0.35);
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-mute);
    cursor: pointer;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--cyber-cyan);
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
}

.auth-links {
    margin-bottom: 16px;
}

.auth-link {
    color: var(--cyber-cyan);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.auth-link:hover {
    color: var(--plasma-violet);
}

.auth-text {
    color: var(--text-mute);
    font-size: 14px;
}
.full-width {
    width: 100%;
}
.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--bg-primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


/* Make the user‐avatar wrapper positionally aware */
.user-menu {
  position: relative;
  display: inline-block;
}

/* Hide the dropdown until hover */
.user-menu .dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  /* top: calc(100% + 8px); */
  background-color: var(--bg-primary);
  border: 1px solid rgba(0, 255, 224, 0.2);
  border-radius: 6px;
  min-width: 120px;
  box-shadow: 0 4px 12px rgba(0, 255, 224, 0.2);
  z-index: 1000;
  padding-bottom: 10px;
  width: 13em;
}

.user-menu:hover .dropdown-content {
  display: block;
}

.user-menu .dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.user-menu .dropdown-content a:hover {
  background: rgba(0, 255, 224, 0.1);
}

a,
a:visited {
  text-decoration: none;
}

a:hover,
a:focus,
a:active {
  text-decoration: none; /* or maybe underline on hover, if you prefer */
}


.navbar a,
.navbar a:visited,
.navbar a:hover,
.navbar a:focus,
.navbar a:active {
  text-decoration: none;
}










/* Footer */
.footer {
    position: relative;
    padding: 64px 0 32px;
    /* border-top: 1px solid rgba(0, 255, 224, 0.2); */
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 0 20px var(--glass-glow);
}

.footer-content {
    display: grid;
    gap: 32px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-links {
    display: grid;
    gap: 32px;
}

.footer-icon {
    padding: 8px;
    color: var(--cyber-cyan);
}

.footer-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.footer-description {
    color: var(--text-mute);
    margin-bottom: 24px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    padding: 8px;
    color: var(--text-mute);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--cyber-cyan);
    box-shadow: 0 0 12px rgba(0, 255, 224, 0.35);
}

.footer-column h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 16px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--text-mute);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--cyber-cyan);
}

.newsletter {
    padding: 24px;
    margin-bottom: 32px;
}

.newsletter-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.newsletter-content p {
    color: var(--text-mute);
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 16px;
    flex-direction: column;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(0, 255, 224, 0.3);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: var(--text-mute);
}

.newsletter-input:focus {
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 12px rgba(0, 255, 224, 0.35);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 255, 224, 0.2);
    color: var(--text-mute);
    font-size: 14px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

  .footer-links {
    grid-column: 2 / span 4;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 24px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.status-version {
    color: var(--cyber-cyan);
    font-family: 'Courier New', monospace;
}
/* .social-login {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 255, 224, 0.2);
} */

.social-divider {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}

.social-divider span {
    background: var(--bg-primary);
    padding: 0 16px;
    color: var(--text-mute);
    font-size: 14px;
}

.social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 255, 224, 0.2);
    z-index: -1;
}

.social-buttons {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid rgba(0, 255, 224, 0.3);
    border-radius: 8px;
    background: rgba(11, 11, 16, 0.3);
    backdrop-filter: blur(12px);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.social-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 12px rgba(0, 255, 224, 0.35);
    border-color: var(--cyber-cyan);
}

.google-btn:hover {
    box-shadow: 0 0 12px rgba(0, 255, 224, 0.35);
    border-color: var(--cyber-cyan);
}

.github-btn:hover {
    box-shadow: 0 0 12px rgba(0, 255, 224, 0.35);
    border-color: var(--cyber-cyan);
}

.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-mute);
}

/* Sticky footer layout */
html { height: 100%; }

body {
  min-height: 100dvh;          /* fills the viewport (mobile-safe) */
  display: flex;
  flex-direction: column;
}

.page-wrapper {                 /* the wrapper around navbar + page content */
  flex: 1 0 auto;               /* take remaining height */
}

footer.footer {
  margin-top: auto;             /* push footer to the bottom */
  position: relative;
  overflow: hidden;             /* clip its .grid-bg / effects */
}

  /* container/anchor */
  .user-menu { position: relative; }

  /* the pill/trigger */
  .user-chip {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem .6rem; border-radius: 9999px; cursor: pointer;
  }
  .user-chip .avatar {
    width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 600;
  }
  .user-chip .caret { line-height: 1; opacity: .8; }

  /* the dropdown itself (right-aligned to the trigger) */
  .user-menu .menu {
    position: absolute; top: calc(100% + 10px); right: 0;
    min-width: 220px; padding: .5rem; border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 40px rgba(0,0,0,.45); z-index: 1000;
  }
  .user-menu .menu[hidden] { display: none; }

  /* header */
  .user-menu .menu-hd {
    padding: .6rem .9rem .4rem; 
    margin-bottom: .25rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .user-menu .menu-hd .name { font-weight: 600; }
  .user-menu .menu-hd .muted { opacity: .75; font-size: .85rem; }

  /* items */
  .user-menu .menu a,
  .user-menu .menu button {
    display: block; width: 100%; text-align: left;
    padding: .6rem .7rem; border-radius: 10px;
  }
  .user-menu .menu a:hover,
  .user-menu .menu button:hover {
    background: rgba(255,255,255,.06);
  }
  .user-menu .menu .sep {
    height: 1px; margin: .35rem 0; background: rgba(255,255,255,.08);
  }