.tsa-root {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 16px 40px;
  font-family: inherit;
}

.tsa-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.tsa-sidebar {
  position: sticky;
  top: 24px;
}

.tsa-filter-box {
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 20px;
  padding: 18px 18px 10px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.tsa-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tsa-filter-head h3 {
  margin: 0;
  font-size: 16px;
  color: #111827;
}

.tsa-filter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tsa-filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tsa-filter-item:hover {
  background: #f7f9fc;
}

.tsa-filter-item.active {
  background: #eef4ff;
}

.tsa-filter-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tsa-check {
  width: 18px;
  height: 18px;
  border: 1.5px solid #cfd8e3;
  border-radius: 5px;
  flex: 0 0 auto;
  background: #fff;
}

.tsa-filter-item.active .tsa-check {
  border-color: #2563eb;
  background: #2563eb;
  box-shadow: inset 0 0 0 3px #fff;
}

.tsa-filter-label {
  color: #667085;
  font-size: 15px;
  line-height: 1.3;
  text-transform: capitalize;
}

.tsa-filter-item.active .tsa-filter-label {
  color: #111827;
  font-weight: 700;
}

.tsa-filter-count {
  color: #98a2b3;
  font-size: 14px;
}

.tsa-main {
  min-width: 0;
  width: 100%;
}

/* RIGHT SIDE SHOULD STACK, NOT GRID */
.tsa-hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-bottom: 20px;
}

.tsa-hero-copy,
.tsa-hero-card,
.tsa-boost-strip,
.tsa-active-filters,
.tsa-ads-list {
  width: 100%;
  max-width: none;
}

.tsa-hero-copy,
.tsa-hero-card {
  display: block;
  flex: 0 0 100%;
}

/* HERO TOP CARD */
.tsa-hero-copy {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e8edf5;
  border-radius: 26px;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.05);
}

.tsa-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef4ff;
  color: #2563eb;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.tsa-hero-copy h1 {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.05;
  color: #101828;
  letter-spacing: -0.02em;
}

.tsa-hero-copy p {
  margin: 0;
  color: #667085;
  font-size: 16px;
  line-height: 1.6;
}

/* AUTH / INTRO AREA */
.tsa-hero-card {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.tsa-hero-card h3 {
  margin: 0 0 6px;
  font-size: 24px;
  color: #101828;
}

.tsa-hero-card p {
  margin: 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.6;
}

.tsa-auth-box {
  margin-top: 14px;
}

.tsa-auth-note {
  font-size: 14px;
  color: #667085;
  margin-bottom: 12px;
}

.tsa-login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  max-width: 420px;
}

.tsa-login-form input {
  width: 100%;
  border: 1px solid #d7dde7;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.tsa-login-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.tsa-login-form button,
.tsa-logout-btn,
.tsa-boost-btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.tsa-login-form button:hover,
.tsa-logout-btn:hover,
.tsa-boost-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.18);
}

.tsa-user-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

#tsa-user-email {
  font-size: 14px;
  color: #101828;
  font-weight: 600;
  word-break: break-word;
}

#tsa-logout-btn {
  background: #111827;
}

.tsa-wallet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: #344054;
  font-weight: 600;
}

/* BOOST STRIP */
.tsa-boost-strip {
  width: 100%;
  display: block;
  margin: 8px 0 24px;
}

.tsa-boost-strip-head {
  margin-bottom: 12px;
}

.tsa-boost-strip-head h3 {
  margin: 0 0 4px;
  font-size: 24px;
  color: #101828;
}

.tsa-boost-strip-head p {
  margin: 0;
  color: #667085;
  font-size: 15px;
}

.tsa-my-items {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding: 6px 2px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.tsa-my-items::-webkit-scrollbar {
  height: 8px;
}

.tsa-my-items::-webkit-scrollbar-thumb {
  background: #d0d7e2;
  border-radius: 999px;
}

.tsa-my-item {
  flex: 0 0 320px;
  min-width: 320px;
  max-width: 320px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #e8edf5;
  border-radius: 22px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tsa-my-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.tsa-my-item img {
  width: 100%;
  height: 190px;
  border-radius: 18px;
  object-fit: cover;
  background: #f2f4f7;
}

.tsa-my-item-title {
  font-size: 17px;
  font-weight: 700;
  color: #101828;
  line-height: 1.3;
}

.tsa-my-item-meta {
  font-size: 13px;
  color: #667085;
  text-transform: capitalize;
}

.tsa-boost-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tsa-boost-btn {
  background: #111827;
  padding: 10px 12px;
  font-size: 12px;
  border-radius: 999px;
}

.tsa-boost-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* FILTER CHIPS */
.tsa-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tsa-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef4ff;
  color: #2563eb;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

.tsa-chip button {
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 15px;
  cursor: pointer;
}

/* ADS LIST FULL WIDTH */
.tsa-ads-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.tsa-ad-card {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tsa-ad-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.08);
}

.tsa-ad-image img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  background: #f2f4f7;
}

.tsa-ad-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tsa-ad-title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
  color: #101828;
  text-transform: capitalize;
}

.tsa-ad-desc {
  margin: 0 0 14px;
  color: #667085;
  font-size: 15px;
  line-height: 1.6;
}

.tsa-ad-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #667085;
  font-size: 14px;
  margin-bottom: 14px;
}

.tsa-ad-views {
  font-size: 14px;
  color: #475467;
}

.tsa-ad-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 12px 16px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.tsa-loading,
.tsa-empty,
.tsa-muted,
.tsa-error {
  color: #667085;
  font-size: 15px;
}

@media (max-width: 1200px) {
  .tsa-layout {
    grid-template-columns: 1fr;
  }

  .tsa-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .tsa-root {
    padding: 0 12px 28px;
  }

  .tsa-hero-copy,
  .tsa-ad-card {
    padding: 16px;
  }

  .tsa-hero-copy h1 {
    font-size: 30px;
  }

  .tsa-my-item {
    flex: 0 0 86%;
    min-width: 86%;
    max-width: 86%;
  }

  .tsa-ad-card {
    grid-template-columns: 1fr;
  }

  .tsa-ad-image img {
    height: 220px;
  }
}