.tf-my-club-root {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tf-my-club-header p,
.tf-my-club-panel__head p,
.tf-my-club-hero__copy p,
.tf-my-club-card p,
.tf-my-club-state p,
.tf-my-club-empty,
.tf-my-club-card__status,
.tf-my-club-post__meta,
.tf-my-club-post__placeholder,
.tf-my-club-card__note {
  color: var(--oasis-account-muted, #5f6e79);
}

.tf-my-club-content {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tf-my-club-skeleton {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tf-my-club-skeleton__hero,
.tf-my-club-skeleton__panel,
.tf-my-club-skeleton__grid span {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: color-mix(in srgb, var(--oasis-account-surface, #f6f2eb) 70%, white);
}

.tf-my-club-skeleton__hero::after,
.tf-my-club-skeleton__panel::after,
.tf-my-club-skeleton__grid span::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.75) 50%, rgba(255,255,255,0) 100%);
  animation: tf-my-club-shimmer 1.35s infinite;
}

.tf-my-club-skeleton__hero {
  height: 170px;
}

.tf-my-club-skeleton__panel {
  height: 220px;
}

.tf-my-club-skeleton__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tf-my-club-skeleton__grid span {
  display: block;
  height: 150px;
}

@keyframes tf-my-club-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.tf-my-club-cards > * {
  display: flex;
  flex-direction: column;
}

.tf-my-club-cards .button {
  margin-top: auto !important;
  text-align: center;
  white-space: nowrap;
}

.tf-my-club-hero,
.tf-my-club-panel,
.tf-my-club-intro,
.tf-my-club-card,
.tf-my-club-state {
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--oasis-account-primary, #0d5c4d) 18%, white);
  border-radius: 24px;
  background: #ffffff;
}

.tf-my-club-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--oasis-account-primary, #0d5c4d) 8%, white) 0%, #ffffff 70%);
}

.tf-my-club-intro {
  background: linear-gradient(135deg, color-mix(in srgb, var(--oasis-account-club-accent, #327309) 10%, white) 0%, #ffffff 70%);
  border-color: color-mix(in srgb, var(--oasis-account-club-accent, #327309) 25%, white);
}

.tf-my-club-intro h3 {
  margin: 0 0 10px;
  color: color-mix(in srgb, var(--oasis-account-club-accent, #327309) 55%, #102510);
}

.tf-my-club-intro p {
  margin: 0 0 12px;
}

.tf-my-club-intro p:last-child {
  margin-bottom: 0;
}

.tf-my-club-intro a {
  color: var(--oasis-account-club-accent, #327309);
  font-weight: 600;
}

.tf-my-club-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oasis-account-primary, #04568b);
}

.tf-my-club-hero h2,
.tf-my-club-panel__head h3,
.tf-my-club-card h3 {
  margin: 0 0 8px;
}

.tf-my-club-intro__copy h2 {
  color: color-mix(in srgb, var(--oasis-account-club-accent, #327309) 70%, #143d24);
}

.tf-my-club-hero__actions,
.tf-my-club-card__actions,
.tf-my-club-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tf-my-club-pill,
.tf-my-club-status,
.tf-my-club-post__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--oasis-account-primary, #0d5c4d) 10%, white);
  color: color-mix(in srgb, var(--oasis-account-primary, #0d5c4d) 75%, #1f2937);
  font-size: 13px;
  font-weight: 600;
}

.tf-my-club-pill.is-active,
.tf-my-club-status.is-active {
  background: color-mix(in srgb, var(--oasis-account-club-accent, #327309) 16%, white);
  color: color-mix(in srgb, var(--oasis-account-club-accent, #327309) 72%, #143d24);
}

.tf-my-club-pill.is-premium,
.tf-my-club-post__badge {
  background: color-mix(in srgb, var(--oasis-account-accent, #d89b2b) 20%, white);
  color: color-mix(in srgb, var(--oasis-account-accent, #d89b2b) 78%, #6b3f00);
}

.tf-my-club-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tf-my-club-card.is-wide {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tf-my-club-kb-modal[hidden] {
  display: none;
}

.tf-my-club-kb-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tf-my-club-kb-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 30, 18, 0.58);
  backdrop-filter: blur(4px);
}

.tf-my-club-kb-modal__panel {
  position: relative;
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 28px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(16, 37, 16, 0.28);
}

.tf-my-club-kb-modal__panel h3 {
  margin: 0 44px 20px 0;
  color: color-mix(in srgb, var(--oasis-account-club-accent, #327309) 70%, #143d24);
}

.tf-my-club-kb-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 10px;
  background: color-mix(in srgb, var(--oasis-account-club-accent, #327309) 12%, white);
  color: color-mix(in srgb, var(--oasis-account-club-accent, #327309) 72%, #143d24);
  font-size: 24px;
  line-height: 16px;
  cursor: pointer;
}

.club-kb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.club-kb-col-4 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--oasis-account-club-accent, #327309) 18%, white);
  border-radius: 20px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--oasis-account-club-accent, #327309) 8%, white), #ffffff 68%);
}

.club-kb-col-4 h5 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  color: #18381c;
}

.club-kb-col-4 p {
  margin: 0;
  color: var(--oasis-account-muted, #5f6e79);
}

.club-kb-col-4 .btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--oasis-account-club-accent, #327309);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.tf-my-club-table-wrap {
  overflow-x: auto;
}

.tf-my-club-table th,
.tf-my-club-table td {
  white-space: nowrap;
}

.tf-my-club-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.tf-my-club-post {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--oasis-account-primary, #0d5c4d) 16%, white);
  border-radius: 20px;
  background: #ffffff;
}

.tf-my-club-post::after {
  content: "Входим...";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 25, 37, 0.58);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 3;
}

.tf-my-club-post.is-loading::after {
  opacity: 1;
}

.tf-my-club-post.is-loading .tf-my-club-post__media,
.tf-my-club-post.is-loading .tf-my-club-post__body {
  filter: grayscale(0.1);
}

.tf-my-club-post__media {
  display: block;
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, var(--oasis-account-surface, #f6f2eb) 75%, white);
}

.tf-my-club-post__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tf-my-club-post__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.tf-my-club-post__body {
  padding: 16px;
}

.tf-my-club-post__body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.tf-my-club-post__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 13px;
}

.tf-my-club-posts-footer {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.tf-my-club-debug {
  margin: 16px 0 0;
  padding: 14px;
  border-radius: 16px;
  background: #0f2230;
  color: #d7e6ef;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.tf-my-club-card__note {
  font-weight: 600;
}

.tf-my-club-sso-link.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}

.tf-my-club-sso-link.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  display: inline-block;
  vertical-align: -2px;
  animation: tf-my-club-spin 0.7s linear infinite;
}

.tf-my-club-card__status.is-error {
  color: #b42318;
}

@keyframes tf-my-club-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1023px) {
  .tf-my-club-hero,
  .tf-my-club-cards,
  .tf-my-club-posts,
  .tf-my-club-skeleton__grid {
    grid-template-columns: 1fr;
  }

  .tf-my-club-hero {
    flex-direction: column;
  }

  .tf-my-club-kb-modal {
    align-items: flex-start;
    padding: 14px;
  }

  .tf-my-club-kb-modal__panel {
    max-height: calc(100vh - 28px);
    padding: 22px;
    border-radius: 20px;
  }

  .club-kb-grid {
    grid-template-columns: 1fr;
  }
}
