/* Desktop & tablet — mobile unchanged below 900px */

.desktop-nav {
  display: none;
}

@media (min-width: 900px) {
  .container {
    width: min(100% - 2rem, 640px);
  }

  .container-wide {
    width: min(100% - 2rem, 960px);
  }

  .hero-section {
    max-width: none;
    min-height: 220px;
    border-radius: var(--radius-md);
  }

  .pro-section h2 {
    font-size: 1.45rem;
  }

  .packages-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tips-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Instagram-style profile row */
  .profile-header {
    display: grid;
    grid-template-columns: 116px 1fr;
    grid-template-areas:
      "avatar title"
      "avatar tagline"
      "avatar stats"
      "avatar ctas"
      "bio bio";
    column-gap: 1.5rem;
    row-gap: 0.4rem;
    text-align: left;
    align-items: start;
    padding: 1rem 0 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .profile-avatar-wrap {
    grid-area: avatar;
    align-self: center;
    margin-bottom: 0;
  }

  .profile-avatar-ring {
    width: 116px;
    height: 116px;
  }

  .profile-title-row {
    grid-area: title;
    justify-content: flex-start;
    align-self: end;
    margin-bottom: 0;
    padding: 0;
  }

  .profile-title {
    font-size: 1.35rem;
  }

  .profile-tagline {
    grid-area: tagline;
    text-align: left;
    max-width: none;
    margin: 0;
    font-size: 0.78rem;
  }

  .profile-stats-row {
    grid-area: stats;
    justify-content: flex-start;
    gap: 2rem;
    margin-bottom: 0.35rem;
  }

  .profile-stat {
    align-items: flex-start;
  }

  .profile-stat strong {
    font-size: 1.15rem;
  }

  .profile-cta-row {
    grid-area: ctas;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: none;
    margin: 0;
  }

  .profile-cta-row .btn-whatsapp {
    width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    box-shadow: 0 2px 12px rgba(249, 115, 22, 0.35);
  }

  .profile-cta-row .btn-email-outline {
    width: auto;
    padding: 0.48rem 1rem;
    font-size: 0.82rem;
  }

  .profile-bio {
    grid-area: bio;
    margin: 0.35rem 0 0;
    max-width: none;
    text-align: left;
    font-size: 0.84rem;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
    margin-inline: 0.5rem;
  }

  .desktop-nav-item {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.48rem 0.85rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
  }

  .desktop-nav-item:hover {
    color: var(--text);
    background: var(--bg-muted);
  }

  .desktop-nav-item.active {
    color: var(--primary);
    background: var(--primary-muted);
  }

  .bottom-nav {
    display: none;
  }

  body.has-bottom-nav {
    padding-bottom: 0;
  }

  .whatsapp-fab {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .toolbar {
    padding-inline: clamp(1rem, 4vw, 3rem);
  }

  .toolbar-logo-sm,
  .toolbar-actions {
    flex-shrink: 0;
  }

  .feed-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-bottom: 1rem;
  }

  .feed-header-row {
    width: 100%;
  }

  .feed-section {
    padding: 0.75rem 0 2.5rem;
  }

  .stories-section {
    padding: 0.75rem 0 0.25rem;
  }

  .trust-badges {
    padding: 0.75rem 0;
    gap: 0.4rem;
  }

  .trust-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.55rem;
  }

  .carousel,
  .carousel-slide img {
    max-height: min(520px, 70vh);
  }

  .tab-panel--reels.active {
    position: fixed;
    top: calc(var(--toolbar-h) + var(--pwa-install-bar-h, 0px));
    left: 50%;
    right: auto;
    bottom: 0;
    width: min(100%, 430px);
    transform: translateX(-50%);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  /* Post reader uses full viewport scroll — width handled in main.css */
}

/* Centered single column on desktop */
@media (min-width: 1024px) {
  :root {
    --desk-feed: 640px;
    --toolbar-h: 68px;
  }

  main {
    width: 100%;
    max-width: none;
    border: none;
    box-shadow: none;
  }

  .site-footer {
    width: 100%;
    border: none;
  }

  #tab-home {
    display: grid;
    grid-template-columns: minmax(1rem, 1fr) min(var(--desk-feed), calc(100vw - 2rem)) minmax(1rem, 1fr);
    row-gap: 0;
    align-items: start;
    padding-bottom: 2rem;
  }

  #tab-home .hero-section {
    grid-column: 2;
    margin-bottom: 0;
  }

  #tab-home .trust-badges {
    grid-column: 2;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.85rem 0 1rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--border);
  }

  #tab-home .trust-badge {
    width: auto;
    text-align: center;
  }

  #tab-home .profile-header {
    grid-column: 2;
    padding-inline: 0;
    border-bottom: none;
    padding-top: 0.5rem;
  }

  #tab-home .stories-section {
    grid-column: 2;
    width: 100%;
    margin: 0;
    padding-inline: 0;
  }

  #tab-home .stories-section.container-wide {
    width: 100%;
  }

  #tab-home .feed-section {
    grid-column: 2;
    padding-top: 0.25rem;
  }

  #tab-home .feed-section .container {
    width: 100%;
    margin: 0;
    padding-inline: 0;
  }

  #tab-explore .container-wide,
  #tab-profile .container-wide {
    width: min(100% - 2rem, var(--desk-feed));
    margin-inline: auto;
    padding-inline: 1rem;
  }

  .explore-tab-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 1280px) {
  :root {
    --desk-feed: 680px;
  }
}

@media (min-width: 1600px) {
  :root {
    --desk-feed: 650px;
  }

  .container-wide {
    width: min(100% - 2rem, 1100px);
  }
}
