:root {
  --growzy-bg: #05060a;
  --growzy-card: #0f111b;
  --growzy-panel: #14172a;
  --growzy-border: rgba(255, 255, 255, 0.08);
  --growzy-text: #f4f6fb;
  --growzy-muted: #9aa3c2;
  --growzy-accent: #7c5dff;
  --growzy-accent-soft: rgba(124, 93, 255, 0.15);
  --growzy-premium: linear-gradient(130deg, #ffb347, #ffcc33);
  --growzy-green: #4ade80;
  --growzy-radius: 22px;
  --growzy-font: "Space Grotesk", "Sora", "Plus Jakarta Sans", system-ui;
}

.growzy-feed-shell {
  font-family: var(--growzy-font);
  color: var(--growzy-text);
  background: var(--growzy-bg);
  border-radius: var(--growzy-radius);
  padding: 40px;
  box-shadow: 0 40px 90px rgba(10, 8, 30, 0.45);
}

.growzy-feed-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: center;
  margin-bottom: 36px;
}

.growzy-feed-hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  margin: 6px 0 12px;
  letter-spacing: -0.5px;
}

.growzy-feed-hero .muted {
  color: var(--growzy-muted);
  line-height: 1.5;
  max-width: 520px;
}

.growzy-feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--growzy-border);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.growzy-feed-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px;
  background: radial-gradient(circle at top left, rgba(124, 93, 255, 0.2), transparent),
    var(--growzy-panel);
  border-radius: var(--growzy-radius);
  border: 1px solid var(--growzy-border);
}

.growzy-feed-summary div span {
  display: block;
  font-size: 34px;
  font-weight: 600;
}

.growzy-feed-summary p {
  margin: 0;
  color: var(--growzy-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.growzy-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  padding: 20px;
  margin-bottom: 32px;
  border-radius: var(--growzy-radius);
  border: 1px solid var(--growzy-border);
  background: rgba(20, 23, 42, 0.65);
}

.growzy-filter-field {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}

.growzy-filter-field input,
.growzy-filter-field select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--growzy-border);
  border-radius: 14px;
  padding: 10px 14px;
  color: var(--growzy-text);
  font-family: var(--growzy-font);
}

.growzy-filter-field .description {
  margin: 0;
  font-size: 12px;
  color: var(--growzy-muted);
}

.growzy-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1 1 100%;
}

.chip-selectable {
  position: relative;
  cursor: pointer;
  padding: 0;
}

.chip-selectable input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-selectable span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--growzy-border);
  background: rgba(255, 255, 255, 0.05);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.chip-selectable input:checked + span {
  border-color: var(--growzy-accent);
  box-shadow: 0 0 0 1px rgba(124, 93, 255, 0.4);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--growzy-border);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.growzy-empty-state {
  text-align: center;
  padding: 60px 30px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--growzy-radius);
}

.growzy-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.growzy-feed-card {
  background: var(--growzy-panel);
  border-radius: var(--growzy-radius);
  border: 1px solid var(--growzy-border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.growzy-feed-card:hover {
  transform: translateY(-4px);
  border-color: var(--growzy-accent);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.25),
    0 10px 10px -5px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(124, 93, 255, 0.2);
}

.growzy-feed-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.growzy-feed-card__meta h3 {
  margin: 6px 0 0;
  font-size: 22px;
}

.growzy-feed-card__author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--growzy-border);
  padding-top: 14px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--growzy-accent) 0%, #a78bfa 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 10px;
  color: #fff;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(124, 93, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(124, 93, 255, 0.4);
}

.premium-note {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Premium Badge - Enhanced */
.premium-badge,
.growzy-premium-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb347 0%, #ffcc33 100%);
  color: #1a1a2e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(255, 179, 71, 0.4);
  animation: premium-pulse 2s ease-in-out infinite;
}

@keyframes premium-pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(255, 179, 71, 0.4); }
  50% { box-shadow: 0 4px 25px rgba(255, 179, 71, 0.6); }
}

.growzy-feed-card__media img,
.growzy-feed-card__media video {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--growzy-border);
}

.growzy-feed-card__body {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.growzy-feed-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--growzy-border);
  padding-top: 14px;
}

.growzy-feed-card__actions button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--growzy-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--growzy-text);
  transition: transform 0.2s ease, border 0.2s ease;
}

.growzy-feed-card__actions button:hover {
  transform: translateY(-2px);
  border-color: var(--growzy-accent);
  background: rgba(124, 93, 255, 0.08);
}

.growzy-feed-card__actions button:active {
  transform: translateY(0) scale(0.98);
}

.growzy-feed-card__actions button svg {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.growzy-feed-card__actions button.growzy-like[data-liked="yes"] {
  border-color: rgba(250, 110, 145, 0.5);
  background: rgba(250, 110, 145, 0.08);
}

.pill-group {
  display: flex;
  gap: 8px;
}

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
}

.pill-green {
  border-color: rgba(74, 222, 128, 0.5);
  color: var(--growzy-green);
}

.pill-gold {
  border-color: rgba(255, 196, 45, 0.4);
  color: #ffda75;
}

.growzy-comments {
  border-top: 1px solid var(--growzy-border);
  margin-top: 12px;
  padding-top: 16px;
}

.growzy-comment {
  padding: 12px 0;
  border-bottom: 1px solid var(--growzy-border);
}

.growzy-comment header {
  font-size: 12px;
  color: var(--growzy-muted);
  margin-bottom: 6px;
}

.growzy-comment-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.growzy-comment-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--growzy-border);
  color: var(--growzy-text);
  border-radius: 12px;
  padding: 12px;
}

.growzy-comment-form button {
  align-self: flex-end;
  border: none;
  background: var(--growzy-accent);
  color: #0f172a;
  font-weight: 600;
  padding: 10px 18px;
}

.growzy-alert {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: var(--growzy-radius);
  padding: 20px;
  color: #fecaca;
  font-family: var(--growzy-font);
}

.growzy-loading,
.growzy-empty,
.growzy-error {
  color: var(--growzy-muted);
  font-size: 14px;
}

.growzy-playbook-archive,
.growzy-case-archive {
  background: var(--growzy-panel);
  padding: 32px;
  border-radius: var(--growzy-radius);
  border: 1px solid var(--growzy-border);
  color: var(--growzy-text);
  box-shadow: 0 20px 40px rgba(8, 12, 24, 0.6);
  font-family: var(--growzy-font);
}

.growzy-playbook-archive header,
.growzy-case-archive header {
  margin-bottom: 24px;
}

.growzy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.growzy-playbook-card,
.growzy-case-card {
  background: rgba(15, 16, 30, 0.7);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--growzy-border);
}

.growzy-playbook-card .topline,
.growzy-case-card .topline {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--growzy-muted);
  margin-bottom: 8px;
}

.growzy-playbook-card h3,
.growzy-case-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.growzy-playbook-card .chips span {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--growzy-accent);
  margin-right: 6px;
  margin-bottom: 6px;
  font-size: 12px;
}

.growzy-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--growzy-accent);
}

.growzy-case-card dl {
  margin: 0;
}

.growzy-case-card dt {
  font-weight: 600;
  margin-top: 10px;
}

.growzy-case-card dd {
  margin: 4px 0 0 0;
  color: var(--growzy-muted);
}

/* Membership */

.growzy-membership-section {
  background: var(--growzy-panel);
  padding: 48px;
  border-radius: var(--growzy-radius);
  border: 1px solid var(--growzy-border);
  color: var(--growzy-text);
  font-family: var(--growzy-font);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.growzy-membership-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.growzy-membership-header h2 {
  font-size: clamp(28px, 5vw, 40px);
  margin: 6px 0;
}

.growzy-membership-status {
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--growzy-border);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.growzy-membership-status.is-active {
  border-color: rgba(74, 222, 128, 0.5);
  color: var(--growzy-green);
}

.growzy-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.growzy-plan-card {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.growzy-plan-card.is-current {
  border-color: var(--growzy-accent);
  box-shadow: 0 25px 50px rgba(124, 93, 255, 0.25);
}

.growzy-plan-card .plan-label {
  text-transform: uppercase;
  font-size: 12px;
  color: var(--growzy-muted);
  letter-spacing: 0.08em;
}

.growzy-plan-card .plan-price {
  font-size: 30px;
  font-weight: 600;
  margin: 0;
}

.growzy-plan-card small {
  display: block;
  font-size: 13px;
  color: var(--growzy-muted);
}

.growzy-plan-card .button {
  margin-top: auto;
}

.growzy-checkout-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--growzy-border);
  border-radius: 20px;
  padding: 24px;
}

.growzy-checkout-content iframe {
  width: 100%;
  min-height: 520px;
  border: none;
  border-radius: 18px;
  border: 1px solid var(--growzy-border);
}

.growzy-checkout-loader,
.growzy-checkout-error {
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed var(--growzy-border);
  color: var(--growzy-muted);
}

.growzy-checkout-error {
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
}

/* Skool-style community features */
.growzy-community-sidebar {
  background: var(--growzy-panel);
  border-radius: var(--growzy-radius);
  border: 1px solid var(--growzy-border);
  padding: 24px;
  width: 320px;
}

.growzy-online-users {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.growzy-user-avatar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.growzy-user-avatar:hover {
  background: rgba(255, 255, 255, 0.05);
}

.growzy-user-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.growzy-user-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--growzy-green);
}

.growzy-classroom-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

.growzy-achievement-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.growzy-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--growzy-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.growzy-progress-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: conic-gradient(var(--growzy-accent) 0deg 216deg, var(--growzy-panel) 216deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.growzy-progress-ring::before {
  content: '';
  position: absolute;
  width: 48px;
  height: 48px;
  background: var(--growzy-panel);
  border-radius: 50%;
}

.growzy-progress-text {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  color: var(--growzy-text);
}

@media (max-width: 960px) {
  .growzy-feed-hero {
    grid-template-columns: 1fr;
  }

  .growzy-feed-shell,
  .growzy-membership-section {
    padding: 28px;
  }

  .growzy-feed-card__actions {
    flex-direction: column;
  }

  .growzy-membership-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .growzy-classroom-layout {
    grid-template-columns: 1fr;
  }

  .growzy-community-sidebar {
    width: 100%;
  }

  .growzy-feed-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .growzy-feed-card {
    padding: 20px;
    border-radius: 16px;
  }

  .growzy-feed-card__header {
    flex-direction: column;
    gap: 12px;
  }

  .avatar {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .growzy-feed-card__actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .growzy-feed-card__actions button {
    flex: 1 1 calc(50% - 6px);
    padding: 10px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .growzy-feed-card {
    padding: 16px;
    gap: 14px;
  }

  .growzy-feed-card__meta h3 {
    font-size: 18px;
  }

  .growzy-feed-card__body {
    font-size: 13px;
  }
}

/* Disable hover effects on touch devices */
@media (hover: none) {
  .growzy-feed-card:hover {
    transform: none;
    box-shadow:
      0 4px 6px -1px rgba(0, 0, 0, 0.1),
      0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }

  .growzy-feed-card__actions button:hover {
    transform: none;
  }

  .avatar:hover {
    transform: none;
  }
}
