:root {
  --purple-900: #37124a;
  --purple-800: #33103f;
  --purple-700: #4a1e6a;
  --pink-400: #ff7eb6;
  --pink-500: #ff4da6;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.06);
  --muted: rgba(255, 255, 255, 0.72);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --glass-border: 1px solid rgba(255, 255, 255, 0.04);
  --radius-lg: 14px;
  --radius-sm: 8px;
  --transition-fast: 180ms;
}

/* Base */
* {
  box-sizing: border-box;
}
html,
body {
  /* height: 100%; */
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
}
body {
  background: linear-gradient(180deg, var(--purple-900), #281033);
  color: var(--white);
  font-size: 15px;
}

/* App container */
.app {
  max-width: 1100px;
  margin: 24px auto;
  padding: 20px;
}

/* Header / brand */
header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-badge {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-700));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.6px;
}
.tag {
  font-size: 12px;
  opacity: 0.95;
  color: var(--muted);
}

/* toolbar & buttons */
.toolbar {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.btn {
  background: var(--glass);
  border: var(--glass-border);
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}
.btn:hover {
  transform: translateY(-3px);
}
.btn.primary {
  background: linear-gradient(90deg, var(--pink-400), var(--pink-500));
  border: none;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(255, 77, 166, 0.12);
}
.btn.small {
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 13px;
}

/* layout */
.content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}
@media (max-width: 900px) {
  .content {
    grid-template-columns: 1fr;
    padding: 12px;
  }
}

/* section headings */
h3 {
  margin: 6px 0 10px 0;
  font-size: 18px;
}

/* feed cards (shared look) */
.card,
.admin-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border-radius: var(--radius-lg);
  padding: 14px;
  border: var(--glass-border);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-fast) ease,
    box-shadow var(--transition-fast) ease;
}
.card:hover,
.admin-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* admin-card specific */
.admin-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  overflow: hidden;
  border-radius: 12px;
  padding: 12px;
}
.admin-card b {
  display: block;
  font-weight: 700;
}
.admin-card .tiny {
  color: var(--muted);
  font-size: 13px;
}

/* media */
.media {
  width: 100%;
  height: 240px;
  border-radius: 10px;
  overflow: hidden;
  background: #161219;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* meta + excerpt */
.meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.title {
  font-weight: 700;
  font-size: 18px;
}
.excerpt {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
}

/* actions */
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.reaction {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  user-select: none;
}
.share {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* expand/read */
.expand {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  display: none;
}
.card.expanded .expand {
  display: block;
}

/* sidebar */
.sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.file-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.preview-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: #1e1230;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-thumb img,
.preview-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* compose inputs */
.input,
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: var(--white);
  outline: none;
}
.input:focus,
textarea:focus {
  box-shadow: 0 6px 30px rgba(78, 56, 108, 0.16);
  border-color: rgba(255, 77, 166, 0.22);
}

/* ad slot */
.ad-slot {
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  text-align: center;
  color: var(--muted);
}

/* pagination */
.pagination {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
  align-items: center;
}
.page-btn {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.12);
  transition: all var(--transition-fast);
}
.page-btn:hover {
  transform: translateY(-3px);
}
.page-btn.active {
  background: linear-gradient(90deg, var(--pink-400), var(--pink-500));
  color: var(--white);
  border: none;
  box-shadow: 0 10px 24px rgba(255, 77, 166, 0.12);
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}
.modal-content {
  background: linear-gradient(180deg, #291235, #1e1223);
  padding: 18px;
  border-radius: 12px;
  min-width: 340px;
  max-width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: pop 0.18s ease;
}
@keyframes pop {
  from {
    transform: translateY(8px) scale(0.99);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* tiny text */
.muted {
  opacity: 0.8;
  font-size: 13px;
}
.tiny {
  font-size: 12px;
  opacity: 0.9;
}

/* subscribe */
.subscribe-btn {
  background: linear-gradient(90deg, var(--pink-400), var(--pink-500));
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  margin-top: 12px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(255, 77, 166, 0.12);
}

/* divider small */
.divider {
  margin: 18px 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* utility */
.hidden {
  display: none;
}
.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.latest-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}

.latest-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.latest-meta {
  line-height: 1.2;
}

.latest-title {
  font-size: 13px;
  font-weight: 600;
}


/* responsive tweaks */
@media (max-width: 600px) {
  .logo-badge {
    width: 44px;
    height: 44px;
  }
  .brand {
    font-size: 16px;
  }
  .media {
    height: 180px;
  }
}
