.app {
    min-height: 100vh;
}

/* ORB + NEBULOSA DE FONDO -------------------------------- */
.sl-orb-hero-wrap {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 100% 0, rgba(56,189,248,.18), transparent 80%),
        radial-gradient(circle at 100% 100%, rgba(129,140,248,.2), transparent 80%);
    opacity:0.25;
}

.sl-orb-hero {
    width: 100%;
    height: 100%;
}

.sl-orb-hero canvas {
    position: absolute;
    width: 150vw !important;
    height: 150vh !important;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.99;
}

/* ORB LOGO EN NAVBAR ----------------------------------- */
.bt-orb-logo{
    width:30px;
    height:30px;
    border-radius:50%;
    overflow:hidden;
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    background:radial-gradient(circle at 50% 0,#020617 0,#0b1120 45%,#020617 100%);
    box-shadow:
        0 0 0 1px rgba(96,165,250,.7),
        0 0 28px rgba(59,130,246,.95);
}

.bt-orb-logo canvas{
    width:100% !important;
    height:100% !important;
    transform:scale(2.2);
    transform-origin:center;
}

/* AVATAR IMG / ÍCONO ----------------------------------- */
.bt-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.bt-avatar-icon {
    font-size: 20px;
    color: #8ec5ff;
    text-shadow: 0 0 10px rgba(56,189,248,.85);
}

/* TOPBAR -------------------------------------------------- */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: radial-gradient(circle at 0 0, rgba(56,189,248,.15), transparent 55%),
                #020617;
    border-bottom: 1px solid rgba(148,163,184,.2);
    z-index: 1000;
    backdrop-filter: blur(18px);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.topbar-brand-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    color: #e5e7eb;
}

.topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-icon-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background .15s, box-shadow .15s, transform .12s;
    font-size: 18px;
    color: #9ca3af;
}

.topbar-icon-btn:hover {
    background: rgba(15,23,42,.85);
    box-shadow:
        0 0 0 1px rgba(148,163,184,.35),
        0 0 18px rgba(59,130,246,.55);
    color: #e5e7eb;
    transform: translateY(-1px);
}

.topbar-icon-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 12px rgba(248,113,113,.9);
}

.topbar-avatar-btn {
    border: 1px solid rgba(59,130,246,.85);
    background:
        radial-gradient(circle at 30% 0, rgba(56,189,248,.4), transparent 55%),
        rgba(15,23,42,.95);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(56,189,248,.65);
}

.menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: transparent;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #9ca3af;
    border-radius: 999px;
}

.app--guest .menu-toggle {
    display: none;
}

/* BOTONES NEÓN LOGIN / REGISTER -------------------------- */
.topbar-auth-btn {
    border-radius: 9px;
    padding: 4px 10px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.topbar-auth-btn i {
    font-size: 17px;
}

.topbar-auth-login {
    border: 1px solid rgba(56,189,248,.7);
    background: radial-gradient(circle at 0 0, rgba(56,189,248,.22), transparent 60%);
    color: #7dd3fc;
    box-shadow: 0 0 14px rgba(56,189,248,.55);
}

.topbar-auth-login:hover {
    background: rgba(15,23,42,.95);
    color: #e5e7eb;
    box-shadow: 0 0 18px rgba(56,189,248,.9);
}

.topbar-auth-register {
    border: 1px solid rgba(129,140,248,.95);
    background: linear-gradient(135deg, rgba(59,130,246,.95), rgba(129,140,248,.9));
    color: #f9fafb;
    box-shadow: 0 0 18px rgba(59,130,246,.95);
}

.topbar-auth-register:hover {
    filter: brightness(1.04);
    box-shadow: 0 0 24px rgba(59,130,246,1);
    color: #fff;
}

.topbar-auth-label {
    display: none;
}

@media (min-width: 576px) {
    .topbar-auth-label {
        display: inline;
    }
}

@media (max-width: 575.98px) {
    .topbar-auth-btn {
        padding-inline: 8px;
    }
}

/* PROFILE MENU — ORB NEÓN -------------------------------- */
.profile-menu {
    position: fixed;
    top: 56px;
    right: 16px;
    width: 260px;
    background:
        radial-gradient(circle at 0 0, rgba(56,189,248,.28), transparent 60%),
        rgba(15,23,42,.85);
    border-radius: 16px;
    border: 1px solid rgba(56,189,248,.35);
    box-shadow:
        0 0 25px rgba(56,189,248,.35),
        0 0 2px rgba(56,189,248,.5);
    backdrop-filter: blur(18px);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s, transform .16s;
    z-index: 1100;
}

.profile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
}

.profile-menu-name {
    font-size: 15px;
    font-weight: 600;
    color: #e5e7eb;
}

.profile-menu-separator {
    height: 1px;
    background: rgba(56,189,248,.35);
    margin: 4px 0;
}

.profile-menu-item {
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s, box-shadow .15s, transform .12s;
}

.profile-menu-item:hover {
    background: rgba(56,189,248,.15);
    box-shadow: 0 0 14px rgba(56,189,248,.45) inset;
    transform: translateY(-1px);
    color: #fff;
}

.profile-menu-signout {
    color: #fca5a5;
}

.profile-menu-signout:hover {
    background: rgba(239,68,68,.25);
    box-shadow: 0 0 16px rgba(239,68,68,.55) inset;
    color: #fff;
}

/* SIDEBAR ------------------------------------------------- */
.sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    width: 260px;
    height: calc(100vh - 56px);
    background:
        radial-gradient(circle at 0 0, rgba(59,130,246,.25), transparent 55%),
        rgba(3,7,18,1);
    border-right: 1px solid rgba(31,41,55,.95);
    transform: translateX(-100%);
    transition: transform .22s ease-out;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid rgba(31,41,55,.9);
}

.sidebar-title {
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.sidebar-nav {
    padding: 8px 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 20px;
    font-size: 14px;
    color: #e5e7eb;
    text-decoration: none;
}

.sidebar-link:hover {
    background: rgba(15,23,42,.95);
    color: #e5e7eb;
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(56,189,248,.2), rgba(59,130,246,.3));
    color: #f9fafb;
    font-weight: 500;
    box-shadow: inset 2px 0 0 #38bdf8;
}

.sidebar-link i {
    margin-right: 10px;
    font-size: 17px;
    vertical-align: -1px;
    color: #9ca3af;
}

.sidebar-link.active i {
    color: #38bdf8;
}

.sidebar-link-main {
    display: inline-flex;
    align-items: center;
}

.sidebar-badge {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 10px rgba(248,113,113,.8);
    white-space: nowrap;
}

.sidebar-footer {
    padding: 8px 16px 12px;
    border-top: 1px solid rgba(31,41,55,.9);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-footer-link {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: none;
}

.sidebar-footer-link:hover {
    text-decoration: underline;
    color: #e5e7eb;
}

.sidebar-overlay {
    position: fixed;
    inset: 56px 0 0 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s, visibility .18s;
    z-index: 998;
}

/* ===============================
   COPY (adaptable + responsive)
   No modifica tu .sidebar-footer existente
================================ */

.sidebar-footer-copy{
  display: block;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .03em;
  line-height: 1.35;
  color: rgba(229, 231, 235, .72);
  user-select: none;

  /* Adaptable: evita que se corte feo en pantallas angostas */
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* Si hay links abajo, deja un espacio sutil */
.sidebar-footer-copy + .sidebar-footer-link{
  margin-top: 2px;
}

/* ====== Responsive ====== */

/* Móviles (más compacto) */
@media (max-width: 480px){
  .sidebar-footer{
    padding: 8px 12px 12px; /* ligero ajuste sin cambiar tu layout */
    gap: 6px;
  }

  .sidebar-footer-copy{
    font-size: 10.5px;
    letter-spacing: .02em;
    line-height: 1.3;

    /* En móvil sí puede partir en 2 líneas si ocupa */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .sidebar-footer-link{
    font-size: 12px; /* lo dejas igual, pero consistente */
  }
}

/* Tablets / pantallas medianas */
@media (min-width: 481px) and (max-width: 992px){
  .sidebar-footer-copy{
    font-size: 11px;
    line-height: 1.35;

    /* Máximo 2 líneas para no crecer mucho */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

/* Desktop grande */
@media (min-width: 993px){
  .sidebar-footer-copy{
    font-size: 11px;

    /* En desktop normalmente cabe en una línea */
    white-space: nowrap;
  }
}


/* CONTENIDO ---------------------------------------------- */
.content {
    padding-top: 56px;
    position: relative;
    z-index: 1;
}

.content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

/* ESTADO SIDEBAR ABIERTO --------------------------------- */
.app.sidebar-open .sidebar {
    transform: translateX(0);
}

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

@media (min-width: 992px) {
    .app--with-sidebar .sidebar {
        transform: translateX(0);
    }

    .app--with-sidebar .sidebar-overlay {
        display: none;
    }

    .app--with-sidebar .content {
        padding-left: 260px;
        padding-top: 56px;
    }

    .app--guest .sidebar {
        display: none;
    }

    .app--guest .sidebar-overlay {
        display: none;
    }

    .app--guest .content {
        padding-left: 0;
        padding-top: 56px;
    }
}

.app--guest .sidebar {
    display: none;
}
.app--guest .sidebar-overlay {
    display: none;
}

