
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #070812;
  background-image:
    radial-gradient(circle at top right, rgba(47,124,255,0.18), transparent 20%),
    radial-gradient(circle at top left, rgba(255,58,166,0.18), transparent 20%);
  color: #f5f7ff;
  font-family: Arial, sans-serif;
}

body,
div,
section,
article,
aside,
main,
header,
nav,
a,
button,
input,
span,
p,
h1,
h2,
h3,
h4,
ol,
li {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  min-height: 100vh;
  padding: 18px;
}

.glass-panel {
  background: rgba(16, 18, 32, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 0 30px rgba(47, 124, 255, 0.08),
    0 0 20px rgba(255, 58, 166, 0.05);
}

.sidebar {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100vh - 36px);
  padding: 20px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 8px 20px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #2f7cff, #ff3aa6);
  box-shadow: 0 0 18px rgba(47,124,255,0.35), 0 0 22px rgba(255,58,166,0.28);
}

.brand-title {
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-sub {
  font-size: 12px;
  color: #97a0c6;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: #eef1ff;
  text-align: left;
  cursor: pointer;
}

.menu-item:hover,
.menu-button:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}

.menu-item.active {
  background: linear-gradient(135deg, rgba(47,124,255,0.18), rgba(255,58,166,0.13));
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 0 18px rgba(47,124,255,0.35), 0 0 18px rgba(255,58,166,0.14);
}

.sidebar-footer {
  display: grid;
  gap: 10px;
}

.main-area {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 18px;
}

.search-wrap {
  min-width: 0;
  width: 100%;
}

.search-wrap input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  outline: none;
  background: rgba(255,255,255,0.05);
  color: #f5f7ff;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  white-space: nowrap;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: #f5f7ff;
  cursor: pointer;
}

.pill-button.primary {
  background: linear-gradient(135deg, rgba(47,124,255,0.95), rgba(255,58,166,0.95));
  box-shadow: 0 0 18px rgba(47,124,255,0.30), 0 0 18px rgba(255,58,166,0.22);
}

.avatar-link,
.active-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2f7cff, #ff3aa6);
  color: #ffffff;
  font-weight: 700;
  flex: 0 0 auto;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  width: 100%;
}

.feed-column,
.feed-stack {
  min-width: 0;
}

.feed-stack {
  display: grid;
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
}

.tall-card {
  min-height: 680px;
}

.vertical-card .card-media {
  height: 560px;
}

.card-media {
  margin: 16px;
  border-radius: 20px;
  background-position: center;
  background-size: cover;
}

.gradient-one { background: linear-gradient(180deg, #0f163a, #2352e6 50%, #ff3aa6); }
.gradient-two { background: linear-gradient(180deg, #111827, #1d4ed8, #db2777); }
.gradient-three { background: linear-gradient(90deg, #1e1b4b, #1d4ed8, #f43f5e); }
.gradient-four { background: linear-gradient(135deg, #111827, #2563eb); }
.gradient-five { background: linear-gradient(135deg, #1f103b, #ff3aa6); }
.gradient-six { background: linear-gradient(90deg, #0f172a, #334155, #1d4ed8); }
.gradient-seven { background: linear-gradient(180deg, #0f172a, #3b82f6, #ec4899); }

.small { height: 160px; }
.live { height: 260px; }

.video-chip,
.system-tag,
.live-badge,
.preview-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(10,12,22,0.72);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.live-chip {
  background: rgba(255,58,166,0.15);
}

.system-tag {
  top: 20px;
  left: 20px;
}

.system-tag.pink {
  background: rgba(255,58,166,0.14);
}

.system-tag.blue {
  background: rgba(47,124,255,0.14);
}

.live-top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
}

.live-badge {
  position: static;
  background: rgba(255,58,166,0.16);
}

.preview-badge {
  position: static;
  background: rgba(255,255,255,0.10);
}

.card-content {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px 18px;
}

.card-content.compact {
  display: block;
}

.card-content h3,
.landscape-copy h3,
.panel-card h3,
.utility-card h3,
.placeholder-box h3 {
  margin: 0 0 8px;
}

.card-content p,
.landscape-copy p,
.panel-card p,
.utility-card p,
.placeholder-box p,
.profile-bio,
.money-line {
  margin: 0;
  color: #97a0c6;
  line-height: 1.55;
}

.action-rail {
  display: grid;
  gap: 10px;
  text-align: right;
  color: #eef1ff;
  white-space: nowrap;
}

.landscape-card {
  padding: 18px;
}

.landscape-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 0.9fr);
  gap: 18px;
  align-items: center;
}

.landscape-layout .card-media {
  height: 240px;
  margin: 0;
}

.landscape-copy {
  padding-right: 6px;
}

.landscape-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.dual-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.right-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
  width: 360px;
  min-width: 360px;
  justify-self: end;
}

.panel-card {
  padding: 18px;
}

.list-item,
.status-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.list-item:last-child,
.status-item:last-child {
  border-bottom: 0;
}

.list-item button {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: #ffffff;
}

.rank-list {
  margin: 0;
  padding-left: 18px;
  color: #dfe3ff;
}

.overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0,0,0,0.50);
  z-index: 19;
}

.more-panel {
  position: fixed;
  top: 18px;
  left: 18px;
  bottom: 18px;
  width: 340px;
  padding: 22px;
  overflow: auto;
  z-index: 20;
  background: rgba(13, 16, 30, 0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 20px rgba(47,124,255,0.35), 0 0 16px rgba(255,58,166,0.28);
}

.hidden {
  display: none;
}

.more-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.more-head button,
.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: #ffffff;
}

.more-section {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.more-section h4 {
  margin: 0 0 4px;
}

.more-section a {
  color: #dfe3ff;
}

.profile-page {
  padding: 24px;
}

.profile-top {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, #2f7cff, #ff3aa6);
  box-shadow: 0 0 24px rgba(47,124,255,0.30), 0 0 24px rgba(255,58,166,0.22);
}

.profile-headline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.profile-headline h1 {
  margin: 0;
}

.profile-headline span {
  color: #97a0c6;
}

.badge-row,
.stats-row,
.action-strip,
.profile-section-tabs,
.finance-grid,
.profile-utility-grid,
.profile-content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.badge.verified { background: rgba(47,124,255,0.16); }
.badge.creator { background: rgba(255,58,166,0.16); }
.badge.gifter { background: rgba(255,255,255,0.10); }
.badge.community { background: rgba(16,185,129,0.16); }

.stats-row {
  margin: 18px 0;
}

.stats-row div {
  min-width: 110px;
  display: grid;
  gap: 6px;
}

.stats-row span {
  color: #97a0c6;
  font-size: 13px;
}

.action-strip {
  margin-top: 18px;
  align-items: center;
}

.profile-utility-grid,
.finance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.utility-card,
.placeholder-box {
  padding: 20px;
}

.rank-pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47,124,255,0.15);
  margin-bottom: 12px;
}

.progress-wrap {
  height: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  width: 62%;
  height: 100%;
  background: linear-gradient(90deg, #2f7cff, #ff3aa6);
}

.small-btn {
  margin-top: 14px;
}

.profile-section-tabs {
  margin-top: 28px;
}

.section-tab {
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: #f5f7ff;
}

.section-tab.active {
  background: linear-gradient(135deg, rgba(47,124,255,0.18), rgba(255,58,166,0.13));
}

.tab-panel {
  display: none;
  margin-top: 22px;
}

.tab-panel.active {
  display: block;
}

.profile-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card {
  padding: 16px;
}

.content-card.wide {
  grid-column: span 2;
}

.thumb {
  height: 200px;
  border-radius: 18px;
  margin-bottom: 12px;
}

.placeholder-box.inner-card,
.utility-card.inner-card {
  background: rgba(255,255,255,0.02);
}

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

  .right-panel {
    position: static;
    width: auto;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: stretch;
  }
}

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

  .sidebar {
    position: static;
    height: auto;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .profile-top,
  .profile-utility-grid,
  .profile-content-grid,
  .finance-grid,
  .dual-row,
  .landscape-layout,
  .right-panel {
    grid-template-columns: 1fr;
  }

  .content-card.wide {
    grid-column: span 1;
  }
}


/* HOMEPAGE LAYOUT REBUILD 008 */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  width: 100%;
}

.feed-stack {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.feed-stack > * {
  min-width: 0;
}

.frp-hero {
  grid-column: span 8;
  min-height: 430px;
}

.frp-hero .card-media {
  height: 300px;
}

.trend-hero {
  grid-column: span 4;
  min-height: 430px;
}

.trend-hero .card-media {
  height: 300px;
}

.full-width-card,
.mixed-row {
  grid-column: 1 / -1;
}

.live-wide,
.recommend-wide {
  grid-column: span 6;
}

.live-wide .card-media {
  height: 280px;
}

.recommend-wide {
  min-height: 430px;
}

.recommend-wide .card-media {
  height: 300px;
}

.right-panel {
  width: 320px;
  min-width: 320px;
  justify-self: stretch;
}

@media (max-width: 1280px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
  }

  .frp-hero {
    grid-column: span 7;
  }

  .trend-hero {
    grid-column: span 5;
  }
}

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

  .right-panel {
    width: 100%;
    min-width: 0;
    position: static;
  }

  .feed-stack {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .frp-hero,
  .trend-hero,
  .live-wide,
  .recommend-wide {
    grid-column: span 3;
  }

  .full-width-card,
  .mixed-row {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .feed-stack {
    grid-template-columns: 1fr;
  }

  .frp-hero,
  .trend-hero,
  .full-width-card,
  .mixed-row,
  .live-wide,
  .recommend-wide {
    grid-column: 1 / -1;
  }

  .frp-hero,
  .trend-hero,
  .recommend-wide {
    min-height: auto;
  }

  .frp-hero .card-media,
  .trend-hero .card-media,
  .recommend-wide .card-media,
  .live-wide .card-media {
    height: 240px;
  }
}
