/* =========================
       GLOBAL FIX
    ========================= */
    html, body {
      height: 100%;
      margin: 0;
    }

    body {
      height: 100vh;
      display: flex;
      overflow: hidden;
    }

    /* =========================
       SIDEBAR
    ========================= */
    .navbar {
      width: 220px;
      padding: 24px 16px;
      background: var(--thread-white);
      border-right: 1px solid var(--border-soft);
      display: flex;
      flex-direction: column;
      gap: 24px;
      flex-shrink: 0;
    }

    #logo-img {
      width: 120px;
      cursor: pointer;
    }

    .nav-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .nav-list li {
      position: relative;
      padding: 12px 14px 12px 20px;
      border-radius: 12px;
      cursor: pointer;
      user-select: none;
      overflow: hidden;
    }

    .nav-list li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      width: 4px;
      height: 100%;
      background: var(--purple);
      opacity: 0;
      transition: .25s;
    }

    .nav-list li::after {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        radial-gradient(circle, rgba(123,92,255,.35) 1px, transparent 1px),
        linear-gradient(to right, rgba(123,92,255,.25), transparent);
      background-size: 8px 8px, 100% 100%;
      opacity: 0;
      pointer-events: none;
      transition: .25s;
    }

    .nav-list li.active::before,
    .nav-list li.active::after,
    .nav-list li:hover::before,
    .nav-list li:hover::after {
      opacity: 1;
    }

    /* =========================
       MAIN AREA
    ========================= */
    .container {
      flex: 1;
      display: flex;
      flex-direction: column;
      height: 100%;
      min-height: 0;
      padding: 20px;
      gap: 16px;
      overflow: hidden;
    }

    /* HEADER */
    .header {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      flex-shrink: 0;
    }

    .header button {
      padding: 10px 18px;
      border-radius: 14px;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
    }

    .btn-login {
      background: transparent;
      border: 1px solid var(--purple);
      color: var(--purple);
    }

    .btn-register {
      background: var(--purple);
      color: white;
      border: none;
    }

    /* =========================
       IFRAME (FULL HEIGHT)
    ========================= */
    iframe.content-frame {
      flex: 1;
      width: 100%;
      height: 100%;
      min-height: 0;
      border-radius: 18px;
      border: 1px solid var(--border-soft);
      background: var(--thread-white);
    }

    /* =========================
       MOBILE BOTTOM NAV
    ========================= */
    .bottom-nav {
      display: none;
    }

    @media (max-width: 768px) {
      body {
        flex-direction: column;
      }

      .navbar {
        display: none;
      }

      .container {
        padding-bottom: 90px;
      }

      .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 72px;
        background: var(--thread-white);
        border-top: 1px solid var(--border-soft);
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
      }

      .bottom-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-size: 20px;
        cursor: pointer;
        color: var(--text-soft);
      }

      .bottom-item span {
        font-size: 11px;
        font-weight: 600;
      }

      .bottom-item.active {
        color: var(--purple);
      }
    }
    .header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  position: relative;
}

/* AUTH */
.auth-buttons {
  position: absolute;
  right: 20px;
  display: flex;
  gap: 10px;
}

/* PROFILE */
.profile-wrapper {
  position: relative;
}

.profile-pill {
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid #000;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}

/* DROPDOWN */
.profile-dropdown {
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  min-width: 160px;
  display: none;
  overflow: hidden;
  z-index: 50;
}

.profile-dropdown.show {
  display: block;
}

.dropdown-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
}

.dropdown-item:hover {
  background: #f5f5f5;
}

.dropdown-separator {
  height: 1px;
  background: red;
}

.logout {
  color: red;
  font-weight: 600;
}
