/* Library, templates, brands, team and plans. */
.page { max-width: 1140px; margin: 0 auto; padding: 44px 36px 70px; animation: rise .35s var(--ease) both; }
.layout.collapsed .page { padding-top: 70px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--display); font-weight: 700; font-size: 34px; margin: 0 0 6px; letter-spacing: -.03em; }
.page-head p { margin: 0; font-size: 15px; max-width: 620px; }
.page h2 { font-family: var(--display); font-size: 19px; letter-spacing: -.015em; margin: 32px 0 12px; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.video-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.video-card video { display: block; width: 100%; aspect-ratio: 9 / 16; background: #000; object-fit: cover; }
.video-missing { aspect-ratio: 9 / 16; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: var(--muted); font-size: 13.5px; background: linear-gradient(160deg, var(--raise), var(--side)); }
.video-missing .icon { width: 28px; height: 28px; opacity: .5; }
.video-meta { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.video-meta strong { font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta .actions { margin-top: 10px; gap: 6px; }
.video-meta .actions > * { padding: 6px 12px; font-size: 12.5px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.brand-card { position: relative; overflow: hidden; display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: 22px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.brand-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.brand-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--brand-tint, var(--brand)); }
.brand-card img { width: 52px; height: 52px; border-radius: 14px; object-fit: contain; background: #fff; box-shadow: var(--shadow-sm); padding: 4px; }
.brand-card strong { font-size: 16px; }
.swatches { display: flex; gap: 5px; margin-top: 8px; }
.swatches span { width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }

.invite { padding: 14px; border-radius: 20px; }
.invite input { flex: 1; min-width: 220px; }
.person { padding: 12px 16px; border-radius: 18px; }

.balance { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 26px 28px; border-radius: 26px; border: 0; color: #fff; background: var(--brand); box-shadow: 0 16px 40px color-mix(in srgb, var(--b2) 32%, transparent); }
.balance::after { content: ""; position: absolute; width: 260px; height: 260px; right: -60px; top: -120px; border-radius: 50%; background: rgba(255, 255, 255, .2); filter: blur(30px); }
.balance .muted { color: rgba(255, 255, 255, .85); }
.balance-value { font-family: var(--display); font-size: 38px; font-weight: 800; letter-spacing: -.03em; }
.balance button.ghost { position: relative; z-index: 1; background: rgba(255, 255, 255, .95); color: #3b2fc0; border: 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 22px 0; }
.plan { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 24px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.plan h2 { margin: 0; font-size: 18px; }
.plan.current { background: linear-gradient(var(--card), var(--card)) padding-box, var(--brand) border-box; border: 2px solid transparent; }
.plan .price { font-family: var(--display); font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.plan ul { margin: 6px 0 8px; padding: 0; list-style: none; flex: 1; font-size: 14px; line-height: 1.6; display: grid; gap: 7px; }
.plan li { display: flex; gap: 8px; }
.plan li::before { content: "✓"; color: var(--b2); font-weight: 800; }
.history-row { padding: 12px 16px; border-radius: 16px; }

@media (max-width: 860px) {
  .page, .layout.collapsed .page { padding: 72px 18px 44px; }
  .page-head h1 { font-size: 28px; }
}
