body {
  font-family: 'Nunito Sans', sans-serif;
  background: #f9f9ff;
  margin: 0;
  padding: 40px;
}

.title {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  text-align: center;
  color: #9633C6;
  margin-bottom: 10px;
}

.subtitle {
  text-align: center;
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
}

.channels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.channel-card {
  background: white;
  padding: 20px;
  border-radius: 16px;
  border: 3px solid #9633C6;
  text-decoration: none;
  color: #333;
  transition: 0.2s;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(150,51,198,0.4);
}
* {
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;

  background: url('/img/tool-background-2.png') center center / cover no-repeat fixed;
  margin: 0;
  padding: 0;
}

/* Layout wrapper */
.app-shell {
  display: flex;
  height: 100vh;        /* FIX: lock entire app-shell to one viewport height */
  overflow: hidden;     /* FIX: prevent children from forcing height growth */
}

/* LEFT: Sidebar */
.sidebar {
  width: 260px;
  background: radial-gradient(circle at top left, #9633C6 0, #050510 60%);
  padding: 20px 16px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #fff;
}

.brand span {
  color: #4CC3FF;
}

.category-label {
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ff00ff;
}

.channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.channel-item a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  transition: 0.15s;
}

.channel-item a span.hash {
  margin-right: 6px;
  opacity: 0.65;
}

.channel-item a.active,
.channel-item a:hover {
  background: rgba(0,0,0,0.3);
  color: #fff;
  box-shadow: 0 0 12px rgba(76,195,255,0.4);
}

/* RIGHT: Main content */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Top bar */
.topbar {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.65);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.05);
}



/* Title row */
.channel-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* The # symbol */
.channel-title .hash {
  font-size: 26px;
  color: #4CC3FF;
  text-shadow: 0 0 6px #4CC3FF, 0 0 14px #0072C6;
  font-weight: 700;
}

/* Channel Title */
.channel-title h1 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(90deg, #4CC3FF 0%, #D023E8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 6px rgba(208, 35, 232, 0.45);
}

/* Channel Description */
.channel-description {
  margin-left: 38px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 0 4px rgba(0,0,0,0.4);
}

/* Main scrollable area */
.main-inner {
  padding: 18px 22px 24px;
  overflow-y: auto;
}

/* New post box */
.new-post-box {
  margin-bottom: 18px;
  background: rgba(15,15,35,0.95);
  border-radius: 14px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(150,51,198,0.7);
  box-shadow: 0 0 18px rgba(150,51,198,0.35);
}

.new-post-box textarea {
  width: 100%;
  min-height: 70px;
  resize: vertical;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 10px;
  font-family: inherit;
  font-size: 14px;
  background: rgba(0,0,0,0.35);
  color: #fff;
}

.btn-row {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.btn-magenta {
  background: linear-gradient(135deg, #9633C6, #D023E8);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(208,35,232,0.6);
  transition: 0.2s;
}

.btn-magenta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(208,35,232,0.9);
}


.logout-btn {
  background: linear-gradient(135deg, #9633C6, #D023E8);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(208,35,232,0.6);
  transition: 0.2s;
}

.logout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(208,35,232,0.9);
}




/* Posts list */
.posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-card {
  background: rgba(10,10,30,0.9);
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.06);
}

.post-meta {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}

.post-user {
  font-weight: 600;
  color: #4CC3FF;
}

.post-time {
  margin-left: 8px;
  opacity: 0.7;
}

.post-content {
  font-size: 16px;
  margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
    display: block;
  
}

/* Force ONLY post body + reply body text to stay white */
.post-content {
    color: #ffffff !important;
}

.reply-content {
    color: #ffffff !important;
}

.reaction-row a {
  margin-right: 8px;
  text-decoration: none;
  font-size: 18px;
}

.reaction-display {
  margin-top: 6px;
  font-size: 16px;
}

.reaction-emoji {
  margin-right: 10px;
}

.reply-btn {
  background: none;
  border: none;
  color: #ff00ff;
  cursor: pointer;
  margin-top: 10px;
  font-size: 14px;
}

/* Replies smaller text */
.reply-block {
    font-size: 14px;
}

.reply-form textarea {
  width: 100%;
  margin-top: 8px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px;
  border-radius: 8px;
  color: white;
}

.replies {
  margin-top: 12px;
  padding-left: 15px;
  border-left: 2px solid rgba(255,255,255,0.15);
}

.reply-item {
  margin-bottom: 10px;
}

.reply-user {
  color: #4CC3FF;
  font-size: 12px;
  font-weight: bold;
}

.reply-time {
  margin-left: 6px;
  opacity: 0.7;
  font-size: 12px;
}

/* Indent replies */
.reply-wrapper {
    margin-left: 15px;
    border-left: 2px solid rgba(255,255,255,0.1);
    padding-left: 15px;
    margin-top: 6px;
}


/* COMMUNITY LOGIN & REGISTER BOX */
.login-box {
  padding: 30px;

  /* 🔥 Glass Effect */
  background: rgba(17, 18, 26, 0.35); /* semi-transparent */
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  
  border: 3px solid #00ffff;
  border-radius: 14px;
  box-shadow: 0 0 26px rgba(150,51,198,0.6);
  text-align: center;
  margin: 0;
}

.login-box h2 {
  margin-bottom: 25px;
  font-family: Montserrat, sans-serif;
  color: #fff;
  font-size: 26px;
}

.login-box input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  background: #021945;
  border: 2px solid #9633C6;
  margin-bottom: 14px;
  color: #fff;
  font-family: Nunito Sans, sans-serif;
}

.login-box button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #9633C6, #D023E8);
  border: 2px solid #021945;
  font-weight: bold;
  color: white;
  cursor: pointer;
  margin-top: 10px;
}

.login-box button:hover {
  opacity: 0.9;
}

.login-box .swap {
  color: #00ffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;

    /* Multi-layer outline + glow */
    text-shadow:
        /* 1 — Dark navy outline (tight) */
        0px 0px 2px #001a33,
        0px 0px 3px #001a33,
        1px 1px 2px #001a33,
        -1px -1px 2px #001a33,

        /* 2 — Deep blue outer glow */
        0 0 8px #0047ff,
        0 0 12px #0047ff,
        0 0 18px #0047ff;
}

.error-box {
  background: #220b0b;
  color: #ff7a7a;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  font-size: 14px;
}
/* Smaller reaction buttons */
.reaction-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.reaction-btn {
    font-size: 13px !important;
    padding: 4px 8px !important;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: 0.15s;
}

.reaction-btn:hover {
    background: rgba(255,255,255,0.12);
    transform: scale(1.05);
}


.reply-thread {
    margin-top: 10px;
    border-left: 2px solid rgba(255,255,255,0.1);
    padding-left: 12px;
}

.level-0 { margin-left: 0; }
.level-1 { margin-left: 20px; }
.level-2 { margin-left: 40px; }
.level-3 { margin-left: 60px; }
.level-4 { margin-left: 80px; }
.level-5 { margin-left: 100px; }

/* Prevent giant replies */
.reply-item {
    font-size: 14px;
    margin-bottom: 6px;
}
.reply-btn-small {
    background: none;
    border: none;
    color: #ff00ff;
    font-size: 12px;
    cursor: pointer;
    margin: 4px 0 0 5px;
}
.reply-btn-small:hover {
    text-decoration: underline;
}

.sidebar {
    width: 260px;
    background: radial-gradient(circle at top left, #9633C6 0, #050510 60%);
    padding: 20px 16px;
    border-right: 1px solid rgba(255,255,255,0.08);

    height: 800px;
    overflow-y: auto;
    position: sticky;
    top: 0;
}

.hamburger {
    display: none;
}

/* MOBILE SIDEBAR */
@media (max-width: 900px) {

    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100vh;
        width: 260px;
        overflow-y: auto;
        transition: left 0.3s ease;
        z-index: 2000;
    }

    .sidebar.open {
        left: 0;
    }

    .main {
        margin-left: 0 !important;
    }

    .hamburger {
        display: block !important;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 3000;
        font-size: 28px;
        padding: 4px 6px;
        border: none;
        background: #D023E8;
        color: #fff;
        border-radius: 6px;
    }
}

.new-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D023E8;
    margin-left: 6px;
    box-shadow: 0 0 10px #D023E8;
}

.brand-logo {
    text-align: center;
    margin-bottom: 25px;
}

.brand-logo img {
    width: 140px;                 /* adjust size as needed */
    height: auto;
    display: block;
    margin: 0 auto 8px;
    filter: drop-shadow(0 0 6px rgba(76,195,255,0.55));
}

.brand-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #00ffFF;
    /* Multi-layer outline + glow */
    text-shadow:
        /* 1 — Dark navy outline (tight) */
        0px 0px 2px #001a33,
        0px 0px 3px #001a33,
        1px 1px 2px #001a33,
        -1px -1px 2px #001a33,

        /* 2 — Deep blue outer glow */
        0 0 8px #0047ff,
        0 0 12px #0047ff,
        0 0 18px #0047ff;
}

.chat-image,
.reply-image,
.chat-video,
.reply-video {
    width: 100%;
    max-width: 500px;  /* perfect middle size */
    height: auto;
    border-radius: 10px;
    margin-top: 10px;
    display: block;
}



/* Wrapper for styled button */
.upload-label {
    display: inline-block;
    padding: 4px 7px;
    background: linear-gradient(135deg, #9633C6, #D023E8);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(208,35,232,0.6);
    transition: 0.2s;
    margin-top: 10px;
}

/* Hover glow */
.upload-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(208,35,232,0.9);
}

/* Hide the ugly native input */
.upload-input {
    display: none;
}
.post-actions,
.reply-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

/* Shared button styles for both Upload + Post */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 3px 7px;
    border-radius: 8px;
    background: #D023E8;
    color: #fff;
    font-weight: 600;
    font-size: 10px;
    cursor: pointer;
    line-height: 1;  /* keeps height perfect */
    height: 24px;   /* exact matched height */
}
/* Hide native file input */
.action-btn input[type="file"] {
    display: none;
}

/* ðŸ”¥ Neon Hover Effect */
.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(208, 35, 232, 0.9),
                0 0 22px rgba(76, 195, 255, 0.7);
    background: linear-gradient(135deg, #D023E8, #4CC3FF);
}

.filename-badge {
    padding: 3px 6px;
    border-radius: 8px;
    background: rgba(208, 35, 232, 0.25);
    border: 1px solid #D023E8;
    color: #fff;
    font-weight: 400;
    font-size: 0.85rem;
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
@media (max-width: 850px) {
    body {
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;   /* stop horizontal stretching */
    }

    .main-inner {
        padding: 10px !important;    /* add breathing room */
    }
}


.delete-btn {
    background: rgba(255, 0, 0, 0.25);
    border: 1px solid #ff4d4d;
    padding: 2px 5px;
    color: #ff6b6b;
    font-size: 8px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 6px;
    transition: 0.2s;
}

.delete-btn:hover {
    background: rgba(255, 0, 0, 0.45);
    box-shadow: 0 0 10px rgba(255, 80, 80, 0.7);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.lightbox img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(255,255,255,0.3);
}

/* ============================
   NEON SCROLLBAR (AI-gency Style)
   ============================ */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.10);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #D023E8, #4CC3FF);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(76, 195, 255, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff3df7, #71d8ff);
  box-shadow: 0 0 14px rgba(208, 35, 232, 0.7);
}

/* Firefox */
body {
  scrollbar-width: thin;
  scrollbar-color: #D023E8 rgba(255, 255, 255, 0.10);
}

.delete-reply-form {
    display: inline-block;
    margin-left: 10px;
}

.delete-reply-btn {
    background: rgba(255, 0, 0, 0.25);
    border: 1px solid #ff4d4d;
    padding: 2px 5px;
    color: #ff6b6b;
    font-size: 8px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 6px;
    transition: 0.2s;
}

.delete-reply-btn:hover {
    obackground: rgba(255, 0, 0, 0.45);
    box-shadow: 0 0 10px rgba(255, 80, 80, 0.7);
}

.sidebar-section-title {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #4CC3FF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.empty-inbox {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    padding-left: 10px;
}

.msg-user-btn {
    margin-left: 6px;
    color: #4CC3FF;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: 0.2s ease;
}

.msg-user-btn:hover {
    opacity: 1;
    color: #D023E8;
    text-shadow: 0 0 8px #D023E8;
}

#dmOverlay {
    display: none !important;
}

.inline-link {
    color: #4CC3FF;
    text-decoration: underline;
    cursor: pointer;
}
.inline-link:hover {
    color: #D023E8;
}

/* --- RESTORE DESKTOP FULLSCREEN FOR VIDEOS --- */

/* Allow fullscreen expansion */
.app-shell,
.main-inner,
.posts,
.post-card,
.reply-block,
.reply-wrapper {
    overflow: visible !important;
}

/* Some browsers require transforms disabled */
.app-shell,
.main-inner,
.posts,
.post-card {
    transform: none !important;
}

/* Start closed */
.dm-list {
    display: none;
}

/* When toggled open */
.dm-list.open {
    display: block;
}

/* Arrow rotation */
.dm-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dm-arrow {
    transition: transform 0.25s ease;
}

.dm-arrow.rotated {
    transform: rotate(180deg);
}

