/* =========================
   DOXCLEAN — DOXBIN-LIKE UI
   CLEAN SINGLE main.css (NO DUPLICATES)
   Compatible with:
   .navbar .nav-inner .logo .menu .right .online .center .search-box .table-wrap .page
   ========================= */

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

/* BASE */
body {
  background: radial-gradient(ellipse at top, #0b0b0b 0%, #000 55%, #000 100%);
  color: #ffffff;
  font-family: Consolas, ui-monospace, SFMono-Regular, Menlo, Monaco, "Liberation Mono", monospace;
  font-size: 14px;
}

/* =========================
   UI COMPONENTS
   ========================= */

.card {
  background: rgba(0,0,0,.35);
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0,0,0,.55);
}

.card .head {
  padding: 14px 16px;
  background: linear-gradient(#1b1b1b, #0f0f0f);
  border-bottom: 1px solid #252525;
}

.card .body {
  padding: 16px;
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.post-title {
  font-size: 18px;
  font-weight: 900;
}

.meta {
  margin-top: 6px;
  color: #a9a9a9;
  font-size: 13px;
}

.post-content {
  white-space: pre-wrap;
  word-break: break-word;
  padding: 14px;
  background: rgba(0,0,0,.35);
  border: 1px solid #1c1c1c;
  border-radius: 12px;
  overflow: auto;
  max-height: 70vh;
}

.btn {
  padding: 9px 14px;
  background: #1a1a1a;
  border: 1px solid #2f2f2f;
  color: #fff;
  cursor: pointer;
  border-radius: 10px;
}

.btn:hover { background: #232323; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-accent {
  border-color: rgba(255,156,0,.6);
  box-shadow: 0 0 0 1px rgba(255,156,0,.15) inset;
}

.nav__link {
  color: #9aa3ad;
  text-decoration: none;
}

.nav__link:hover { color: #fff; text-decoration: underline; }

.layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
}

.post-actions {
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:14px;
}

.comment-form { display: grid; gap: 10px; }

.comments-list { margin-top: 18px; }
.comment {
  padding: 12px 14px;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  margin-bottom: 10px;
}
.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.comment-body { margin-top: 8px; white-space: pre-wrap; }

.hero { text-align: center; padding: 6px 0 2px; }
.hero h1 { font-size: 28px; font-weight: 900; }

.status-pill {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
}
.status-online { color: #20ff5a; font-weight: 800; }
.status-offline { color: #9aa3ad; font-weight: 700; }

.profile-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: start;
}

.avatar {
  width: 96px;
  height: 96px;
  border: 1px solid #202020;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.02);
  display:flex;
  align-items:center;
  justify-content:center;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-line { display: flex; gap: 10px; flex-wrap: wrap; align-items:center; }
.profile-bio { margin-top: 10px; }
.profile-stats { margin-top: 14px; display: grid; gap: 4px; }

/* DEFAULT TEXT */
p, span, div, td, th, li, label, small, h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
}

/* LINKS (content default = white) */
a { color: #ffffff; text-decoration: none; }
a:hover { color: #ffffff; text-decoration: underline; }

.muted { color: #a9a9a9; }

/* PAGE WRAP */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 18px 60px;
}

/* NAVBAR */
.navbar {
  height: 54px;
  background: linear-gradient(#111, #000);
  border-bottom: 1px solid #1e1e1e;
}

.nav-inner {
  height: 54px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}

.logo a {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .2px;
  text-decoration: none;
}

/* MENU */
.menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu a {
  color: #9aa3ad;
  text-decoration: none;
}

.menu a:hover {
  color: #fff;
  text-decoration: underline;
}

/* RIGHT */
.right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.right a {
  color: #9aa3ad;
  text-decoration: none;
}

.right a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ONLINE PILL */
.online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #20ff5a;
  font-size: 13px;
  line-height: 1;
}

.online::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #20ff5a;
  box-shadow: 0 0 12px rgba(32,255,90,.35);
  display: inline-block;
}

/* LOGOUT BUTTON */
.inline { margin: 0; }

.linkbtn {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: #9aa3ad;
}

.linkbtn:hover {
  color: #fff;
  text-decoration: underline;
}

/* =========================
   HOME HERO (CENTERED)
   fixes logo cropping + aligns like doxbin
   ========================= */
.center {
  min-height: calc(100vh - 54px); /* full screen minus navbar */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;

  padding-top: 40px;
  padding-bottom: 40px;
}

.center img {
  width: 360px;

  opacity: 0.95;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.80));
}

.center .join {
  display: grid;
  gap: 6px;
  justify-content: center;
  margin-bottom: 18px;
}

.center .join a {
  font-weight: 800;
  letter-spacing: .6px;
  text-decoration: none;
}

/* Telegram headline (orange like doxbin) */
.center .join a.telegram { color: #ff9c00; }
.center .join a.telegram:hover { color: #ffb84d; text-decoration: underline; }

/* Mirrors line (red like doxbin) */
.center .join .mirrors {
  color: #ff2a2a;
  font-weight: 700;
  letter-spacing: .3px;
}

/* Showing X pastes */
.center .hint {
  margin-top: 6px;
  color: #a9a9a9;
  font-size: 13px;
}

/* SEARCH */
.search-box {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 10px;
  width: 100%;
}

.search-box input {
  width: min(620px, 78vw);
  padding: 10px 12px;
  background: #101010;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  outline: none;
}

.search-box input:focus { border-color: #3a3a3a; }

.search-box button {
  padding: 10px 14px;
  background: #1a1a1a;
  border: 1px solid #2f2f2f;
  color: #fff;
  cursor: pointer;
}

.search-box button:hover { background: #232323; }

/* TABLE WRAP */
.table-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 0;     /* more space below search */
  padding: 0 18px;
}

/* Title above table */
.table-wrap .title {
  margin: 18px 0 10px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

/* TABLE */
table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0,0,0,.35);
  border: 1px solid #1f1f1f;
}

th {
  text-align: left;
  padding: 10px 12px;
  background: linear-gradient(#1b1b1b, #0f0f0f);
  border-bottom: 1px solid #252525;
  color: #ffffff;
  font-weight: 800;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid #181818;
  color: #ffffff;
  vertical-align: middle;
}

tr:hover td { background: rgba(255,255,255,.03); }

table td a {
  color: #ffffff;
  font-weight: 700;
}

table td a:hover { text-decoration: underline; }

/* COUNTERS COLORS */
.count-comments {
  color: #ffcc00 !important;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255,204,0,.22);
}

.count-views {
  color: #20ff5a !important;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(32,255,90,.25);
}

.count-likes {
  color: #ff2a2a !important;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(255,42,42,.22);
}

/* OPTIONAL: colored rows like pinned */
tr.green td { background: rgba(32,255,90,.12); }
tr.green:hover td { background: rgba(32,255,90,.16); }
tr.brown td { background: rgba(255,180,0,.10); }
tr.brown:hover td { background: rgba(255,180,0,.14); }
tr.blue td { background: rgba(0,160,255,.12); }
tr.blue:hover td { background: rgba(0,160,255,.16); }
tr.red td { background: rgba(255,0,0,.10); }
tr.red:hover td { background: rgba(255,0,0,.14); }

/* FORMS (other pages) */
input, textarea, button { font-family: inherit; font-size: 14px; }

textarea,
input[type="text"],
input[type="password"],
input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  border-radius: 12px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

input[type="text"]::placeholder,
textarea::placeholder { color: rgba(255,255,255,.45); }

input[type="text"]:focus,
textarea:focus {
  border-color: rgba(255,156,0,.55);
  box-shadow: 0 0 0 3px rgba(255,156,0,.12);
}

.input { /* semantic helper class */ }

select.select {
  width: 100%;
  padding: 10px 12px;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  border-radius: 10px;
  outline: none;
}
select.select:focus { border-color: #3a3a3a; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: rgba(255,255,255,.03);
  color: #c9c9c9;
  text-decoration: none;
}
.chip:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.chip-active { border-color: rgba(255,156,0,.6); box-shadow: 0 0 0 1px rgba(255,156,0,.15) inset; color: #fff; }

.create-form textarea { min-height: 380px; }
.create-actions { display:flex; gap: 12px; flex-wrap: wrap; }

/* Kategors page */
.kategors-layout { grid-template-columns: 1fr 340px; }
.cats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cat-card {
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  padding: 12px;
  background: rgba(0,0,0,.22);
}
.cat-head { display:flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cat-title { font-weight: 900; }
.cat-count { color: #a9a9a9; font-size: 12px; }
.cat-children { margin-top: 10px; display:flex; gap: 8px; flex-wrap: wrap; }

.only-mobile { display: none; }
.only-desktop { display: block; }

/* Mobile-first accordion for kategors */
.cats-accordion { display: grid; gap: 10px; }
.cat-acc {
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,.22);
}
.cat-acc-sum {
  list-style: none;
  cursor: pointer;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cat-acc-sum::-webkit-details-marker { display:none; }
.cat-acc-title { font-weight: 900; }
.cat-acc-count { color: #a9a9a9; font-size: 12px; }
.cat-acc-body { padding: 0 12px 12px; display: grid; gap: 8px; }

.cat-link-btn {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #1f1f1f;
  background: rgba(0,0,0,.28);
  color: #eaeaea;
  text-decoration: none;
}
.cat-link-btn:hover { background: rgba(0,0,0,.36); }
.cat-link-btn-active { border-color: #a37b2b; box-shadow: 0 0 0 1px rgba(163,123,43,.35) inset; }

.side-cats { display: grid; gap: 8px; }
.side-link {
  padding: 9px 10px;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  color: #c9c9c9;
}
.side-link:hover { background: rgba(255,255,255,.05); text-decoration: none; }
.side-child { margin-left: 10px; border-style: dashed; }
.side-active { border-color: rgba(255,156,0,.6); color: #fff; }

.cat-posts-block { margin-top: 16px; padding-top: 14px; border-top: 1px solid #1f1f1f; }
.cat-posts-title { font-weight: 900; color: #fff; }

.who-box {
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid rgba(255,156,0,.22);
  border-radius: 14px;
  background: rgba(255,156,0,.06);
}
.who-title { font-weight: 900; margin-bottom: 6px; }
.who-text { color: rgba(255,255,255,.85); line-height: 1.45; }

textarea { min-height: 120px; resize: vertical; }

/* Create/Edit forms */
.form-grid {
  display: grid;
  gap: 12px;
}

.field { display: grid; gap: 8px; }
.field-label { color: #a9a9a9; font-weight: 700; }

.create-card textarea {
  min-height: 360px;
}

/* FOOTER */
.footer {
  text-align: center;
  color: #666;
  padding: 24px 0 40px;
}

/* =========================
   CHAT
   ========================= */

.chat-card { max-width: 980px; margin: 0 auto; }
.chat-body { padding: 0; }

.chat-box {
  height: min(70vh, 620px);
  overflow: auto;
  padding: 14px 16px;
  border-bottom: 1px solid #252525;
  background: rgba(0,0,0,.22);
}

.chat-row { padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.08); }
.chat-row:last-child { border-bottom: 0; }

.chat-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.chat-user { font-weight: 900; color: #ffffff; }
.chat-time { font-size: 12px; }

.chat-msg {
  margin-top: 6px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.35;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px 16px 14px;
  background: linear-gradient(#0f0f0f, #0b0b0b);
}

.chat-input {
  width: 100%;
  padding: 11px 12px;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  border-radius: 10px;
  outline: none;
}
.chat-input:focus { border-color: #3a3a3a; }

.chat-hint { padding: 0 16px 14px; }

/* =========================
   RESPONSIVE
   ========================= */

/* Mobile nav */
.nav-toggle { display: none; }
.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  background: rgba(0,0,0,.35);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 2.5px 0;
  opacity: .85;
}

/* Backdrop for mobile drawer */
.nav-backdrop {
  display: none;
}

/* Visibility helpers */
.desktop-only { display: block; }
.mobile-only { display: none; }

/* Responsive tables: turn into cards */
table.responsive { width: 100%; }

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {

  /* Kategors: separate mobile layout */
  .only-desktop { display: none; }
  .only-mobile { display: block; }
  .cats-grid { grid-template-columns: 1fr; }
  .cat-card { padding: 14px; }
  .cat-children { gap: 10px; }
  .page { padding: 18px 12px 56px; }

  .burger { display: inline-flex; }

  /* Drawer menu (different open behaviour on phone) */
  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 19;
  }

  .menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(340px, 84vw);
    padding: 74px 14px 14px;
    background: rgba(0,0,0,.92);
    border-left: 1px solid #1f1f1f;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 20;
    transform: translateX(110%);
    transition: transform .18s ease-out;
  }

  .nav-toggle:checked ~ .nav-backdrop { display: block; }
  .nav-toggle:checked ~ .menu { transform: translateX(0); }

  /* Make header items tighter on mobile */
  .nav-inner { padding: 0 12px; gap: 12px; }
  .right { gap: 10px; }

  /* Swap desktop/mobile blocks */
  .desktop-only { display: none; }
  .mobile-only { display: block; }

  .right { gap: 10px; }

  .center { min-height: auto; padding-top: 28px; padding-bottom: 28px; }
  .center img { width: 140px; }
  .search-box { flex-direction: column; align-items: stretch; }
  .search-box input { width: 100%; }
  .search-box button { width: 100%; }

  /* Create paste page: more compact editor on phone */
  .create-card textarea { min-height: 46vh; }

  /* table -> stacked */
  table.responsive thead { display: none; }
  table.responsive,
  table.responsive tbody,
  table.responsive tr,
  table.responsive td { display: block; width: 100%; }

  table.responsive tr {
    border-bottom: 1px solid #181818;
    padding: 8px 10px;
  }

  table.responsive td {
    border: 0;
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  table.responsive td::before {
    content: attr(data-label);
    color: #a9a9a9;
    font-weight: 700;
  }

  .profile-grid { grid-template-columns: 1fr; }
  .avatar { width: 86px; height: 86px; }

  /* Chat: full-height feel on mobile */
  .chat-box { height: calc(100vh - 54px - 220px); min-height: 48vh; }
  .chat-form { grid-template-columns: 1fr; }
  .chat-form .btn { width: 100%; }
}

/* Compact mobile paste list (home) */
.pastes-mobile {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.paste-row {
  padding: 12px 12px;
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  background: rgba(0,0,0,.28);
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
}

.paste-row-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.paste-row a { font-weight: 900; }

.paste-row-meta {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #a9a9a9;
  font-size: 12px;
}

.paste-row-badges {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.badge {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #252525;
  background: rgba(0,0,0,.25);
  font-size: 12px;
}




/* =========================
   HELP PAGE (/?r=help)
   ========================= */
.help-wrap{
  max-width: 1100px;
  margin: 22px auto 40px;
  padding: 0 14px;
}

.help-hero .head{ padding: 18px 18px; }
.help-hero-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.help-kicker{
  color:#9a9a9a;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.help-title{
  margin-top:6px;
  font-size:22px;
  font-weight:900;
}
.help-sub{
  margin-top:10px;
  color:#bdbdbd;
  line-height:1.5;
  max-width: 620px;
}
.help-hero-right{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width: 260px;
}
.help-pill{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border: 1px solid #202020;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  color:#d6d6d6;
}
.help-pill .dot{
  width:8px;height:8px;border-radius:99px;
  background:#d6d6d6;
  box-shadow: 0 0 18px rgba(255,255,255,.18);
}
.help-cta{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}
.help-cta-box{
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  padding: 14px;
  background: rgba(0,0,0,.25);
}
.help-cta-title{
  font-weight:900;
  font-size: 15px;
}
.help-cta-text{
  margin-top:8px;
  color:#bdbdbd;
  line-height:1.5;
}
.help-cta-btn{ display:inline-flex; margin-top: 12px; }

.help-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.help-card .body{ padding: 16px 18px; }
.help-card .head{ padding: 14px 18px; }

.help-p{ line-height: 1.6; margin-bottom: 10px; }
.help-list{
  list-style: none;
  margin: 4px 0 10px;
  padding: 0;
}
.help-list li{
  padding: 10px 10px 10px 34px;
  border: 1px solid #191919;
  border-radius: 12px;
  background: rgba(0,0,0,.22);
  margin-bottom: 10px;
  position: relative;
  line-height: 1.5;
  color:#e5e5e5;
}
.help-list li:before{
  content: "›";
  position: absolute;
  left: 12px;
  top: 9px;
  color:#cfcfcf;
  font-weight:900;
}

.help-note{
  padding: 12px 12px;
  border: 1px dashed #2a2a2a;
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  color:#d9d9d9;
  line-height: 1.5;
}
.help-link{
  color: #fff;
  text-decoration: underline;
}

.help-steps{ margin-top: 10px; display:flex; flex-direction:column; gap:10px; }
.help-step{
  display:flex;
  gap:12px;
  padding: 12px;
  border: 1px solid #1f1f1f;
  border-radius: 14px;
  background: rgba(0,0,0,.22);
}
.help-step-n{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid #2a2a2a;
  background: rgba(0,0,0,.25);
  font-weight:900;
}
.help-step-t{ font-weight:900; margin-bottom: 2px; }
.help-step-d{ color:#bdbdbd; line-height: 1.4; }

.help-bottom{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Mobile: different layout */
@media (max-width: 760px){
  .help-title{ font-size: 19px; }
  .help-sub{ max-width: 100%; }
  .help-hero-right{ width: 100%; min-width: 0; }
  .help-cta{ grid-template-columns: 1fr; }
  .help-grid{ grid-template-columns: 1fr; }
  .help-list li{ padding-left: 32px; }
}
