:root {
  --bg: #0f1115;
  --bg-soft: #161a22;
  --card: #1b2130;
  --card-2: #232b3d;
  --text: #eef2f7;
  --muted: #9ba7b8;
  --accent: #8b5cf6;
  --accent-2: #a78bfa;
  --border: rgba(255,255,255,.08);
  --danger: #ef4444;
  --success: #22c55e;
  --shadow: 0 18px 40px rgba(0,0,0,.28);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #0d1015 0%, #121722 100%);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
  font: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(15, 17, 21, 0.82);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  min-width: 0;
}
.brand span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ec4899);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.searchbar {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.searchbar input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 13px 18px 13px 46px;
  color: var(--text);
  outline: none;
}
.searchbar svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .7;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  min-width: 0;
  padding: 8px 10px;
  border-radius: 14px;
  transition: background .2s ease, color .2s ease;
}
.topbar-user:hover {
  color: var(--text);
  background: rgba(255,255,255,.04);
}
.topbar-user-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ec4899);
  border: none;
  box-shadow: 0 12px 30px rgba(139, 92, 246, .28);
}
.btn-ghost {
  background: transparent;
}
.mobile-toggle, .mobile-nav {
  display: none;
}
.mobile-nav-shell {
  display: grid;
  gap: 14px;
}
.mobile-nav-section {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
}
.mobile-nav-label {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-nav .stack {
  display: grid;
  gap: 10px;
}
.mobile-nav .stack a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.mobile-nav .stack a.active,
.mobile-nav .stack a:hover {
  background: rgba(139,92,246,.16);
  border-color: rgba(167,139,250,.32);
}
.mobile-nav-account {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.mobile-nav-account-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.mobile-nav-account-copy strong,
.mobile-nav-account-copy span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-nav-auth,
.mobile-nav-auth-actions {
  display: grid;
  gap: 12px;
}
.mobile-nav-auth-actions .btn,
.mobile-nav-cta {
  width: 100%;
  justify-content: center;
}
.hero {
  padding: 32px 0 16px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 20px;
}
.hero-card, .panel, .stat-card, .profile-card, .sidebar-card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card {
  overflow: hidden;
  min-height: 360px;
  position: relative;
}
.hero-visual {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(139,92,246,.28), transparent 30%),
              radial-gradient(circle at bottom left, rgba(236,72,153,.2), transparent 28%),
              linear-gradient(135deg, #1a2030 0%, #0f1421 100%);
}
.hero-content {
  position: relative;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
}
.kicker, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d8ccff;
  background: rgba(139,92,246,.15);
  border: 1px solid rgba(167,139,250,.2);
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .88rem;
  margin-bottom: 14px;
}
.hero-content h1, .page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
}
.hero-content p, .page-hero p {
  color: var(--muted);
  max-width: 64ch;
}
.hero-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.panel {
  padding: 20px;
}
.panel h3, .section-head h2 { margin: 0 0 8px; }
.muted { color: var(--muted); }
.stat-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.stat-card {
  padding: 18px;
}
.stat-card strong {
  font-size: 1.25rem;
  display: block;
  margin-top: 6px;
}
.chips, .filters-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--muted);
}
.chip.active {
  background: rgba(139,92,246,.16);
  border-color: rgba(167,139,250,.32);
  color: var(--text);
}
.section {
  padding: 16px 0 28px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}
.grid {
  display: grid;
  gap: 16px;
}
.video-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(167,139,250,.35);
}
.thumb {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #202839 0%, #111624 100%);
}
.thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(236,72,153,.18), transparent 20%),
              radial-gradient(circle at 15% 85%, rgba(139,92,246,.24), transparent 24%);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.thumb-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a0d14;
}
.badge-row {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
}
.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  background: rgba(10, 14, 22, .75);
  border: 1px solid rgba(255,255,255,.08);
}
.play-indicator {
  position: absolute;
  inset: auto auto 12px 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 17, 21, .78);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.08);
}
.card-body {
  padding: 14px;
}
.card-title {
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.35;
}
.file-meta {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .92rem;
}
.category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-card, .star-card {
  padding: 20px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(139,92,246,.12), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: 16px;
}
.star-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.star-card {
  min-height: auto;
  gap: 12px;
}
.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ec4899);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.avatar-sm {
  width: 38px;
  height: 38px;
  font-size: .86rem;
}
.page-hero {
  padding: 28px 0 10px;
}
.toolbar, .sortbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 16px 0 20px;
  flex-wrap: wrap;
}
.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.input, .select, textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 14px;
  outline: none;
}
textarea { min-height: 120px; resize: vertical; }
.auth-wrap {
  min-height: calc(100vh - 73px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-side {
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-showcase {
  width: min(560px, 100%);
  min-height: 540px;
  background: radial-gradient(circle at top right, rgba(236,72,153,.18), transparent 25%),
              radial-gradient(circle at bottom left, rgba(139,92,246,.22), transparent 25%),
              linear-gradient(135deg, #171d2c 0%, #0e1320 100%);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.auth-panel {
  width: min(460px, 100%);
}
.auth-panel .panel { padding: 28px; }
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  margin-bottom: 8px;
  color: #d8e0ea;
}
.helper-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: .94rem;
  margin-bottom: 18px;
}
.field-error {
  color: #ffd2d2;
  font-size: .88rem;
  margin-top: 8px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, .95fr);
  gap: 22px;
}
.video-player {
  aspect-ratio: 16/9;
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1d2434 0%, #0f1320 100%);
}
.video-player video,
.video-poster {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}
.video-player::after {
  content: "Preview Player";
  position: absolute;
  inset: auto 18px 18px auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15,17,21,.75);
  border: 1px solid rgba(255,255,255,.08);
  color: #d7dce4;
  z-index: 3;
}
.video-player.has-media::after { content: "MP4"; }
.video-player.no-media::after { content: "MP4 bekleniyor"; }
.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.video-player.no-media .video-overlay {
  background: linear-gradient(180deg, rgba(15,17,21,.2), rgba(15,17,21,.78));
}
.video-overlay .play-indicator {
  position: static;
  width: 74px;
  height: 74px;
}
.video-missing-panel {
  width: min(360px, calc(100% - 32px));
  text-align: center;
}
.video-missing-panel p {
  margin: 8px 0 0;
}
.info-list { display: grid; gap: 12px; }
.info-list .item, .comment {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.profile-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
}
.profile-card { padding: 22px; }
.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 32px 0 44px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 24px;
}
.footer h4 { color: var(--text); margin: 0 0 12px; }
.status-message {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.status-success {
  background: rgba(34,197,94,.1);
  border-color: rgba(34,197,94,.3);
  color: #d8ffe8;
}
.status-error {
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.3);
  color: #ffd2d2;
}
.status-info {
  background: rgba(139,92,246,.14);
  border-color: rgba(167,139,250,.3);
  color: #f1e8ff;
}
.empty-state {
  padding: 24px;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,.16);
  background: rgba(255,255,255,.02);
}
.empty-state strong {
  display: block;
  margin-bottom: 8px;
}
.empty-state p {
  margin: 0;
  color: var(--muted);
}
.active-card {
  border-color: rgba(167,139,250,.4);
  box-shadow: 0 18px 40px rgba(139, 92, 246, .12);
}
.discovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.mobile-rail-toggle-wrap {
  display: none;
  margin-top: 6px;
  margin-bottom: 6px;
}
.mobile-rail-toggle {
  width: 100%;
  justify-content: center;
}
.item p, .comment p {
  margin: 8px 0 0;
}
.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(15,17,21,.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 10px;
  display: none;
  z-index: 40;
  backdrop-filter: blur(12px);
}
.bottom-nav .inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.bottom-nav a {
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
  padding: 8px 6px;
  border-radius: 12px;
}
.bottom-nav a.active,
.bottom-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
}
.notice {
  padding: 14px 16px;
  border: 1px solid rgba(239, 68, 68, .25);
  background: rgba(239,68,68,.08);
  border-radius: 14px;
  color: #ffd2d2;
}
.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0,0,0,.58);
  z-index: 60;
  padding: 20px;
}
.modal.active { display: grid; }
.modal-card {
  width: min(520px, 100%);
  background: #121722;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.skeleton {
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer {
  100% { transform: translateX(100%); }
}
.hidden { display: none !important; }
@media (max-width: 1120px) {
  .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .star-grid, .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid, .discovery-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .nav-links, .actions .btn-ghost, .actions .btn-primary, .topbar-user, .searchbar {
    display: none;
  }
  .topbar-inner {
    gap: 12px;
  }
  .mobile-toggle {
    display: inline-flex;
    justify-content: center;
  }
  .mobile-nav {
    border-top: 1px solid var(--border);
    padding: 14px 0 18px;
  }
  .mobile-nav.active { display: block; }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split, .profile-layout, .auth-wrap, .form-grid, .footer-grid, .discovery-grid, .inline-form {
    grid-template-columns: 1fr;
  }
  .inline-form {
    display: grid;
  }
  .auth-side { padding: 24px 16px; }
}
@media (max-width: 640px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .video-grid, .category-grid, .star-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-content { padding: 22px; min-height: 300px; }
  .panel, .profile-card, .modal-card { padding: 18px; }
  .section-head, .toolbar, .sortbar { align-items: stretch; }
  .bottom-nav { display: block; }
  body { padding-bottom: 92px; }
  .mobile-rail-toggle-wrap.ready {
    display: block;
  }
  .extra-rails.is-collapsible.is-collapsed [data-extra-rail] {
    display: none;
  }
  .brand {
    gap: 10px;
  }
  .brand-badge {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }
}

.card-kicker {
  color: #d8ccff;
  font-size: .82rem;
  margin-bottom: 8px;
}

.card-subtitle {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 10px;
  min-height: 2.6em;
}

.premium-flag {
  position: absolute;
  inset: auto 12px 12px auto;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  z-index: 2;
}

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

.tag-card {
  padding: 18px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  background: linear-gradient(135deg, rgba(236,72,153,.12), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: 16px;
}

.filter-form {
  margin: 18px 0 22px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  min-height: 50px;
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.page-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
}

.page-pill.active {
  background: rgba(139,92,246,.18);
  border-color: rgba(167,139,250,.35);
  color: var(--text);
}

.result-summary {
  color: var(--muted);
  margin-bottom: 18px;
}

.comment-form {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.library-tabs {
  margin-bottom: 16px;
}

.tile-media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, #202839 0%, #111624 100%);
}

.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-media {
  aspect-ratio: 16/9;
}

.star-media,
.profile-media {
  width: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, #202839 0%, #111624 100%);
}

.star-media img,
.profile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-media {
  width: 120px;
  margin-bottom: 14px;
}

.sidebar-video {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}

.sidebar-video-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  border-radius: 12px;
  background: #0a0d14;
}

.sidebar-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a0d14;
}

.sidebar-video-body {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}

.sidebar-video-body strong {
  line-height: 1.35;
}

.sidebar-duration {
  position: absolute;
  inset: auto 8px 8px auto;
  z-index: 1;
}

.sidebar-premium {
  position: absolute;
  inset: 8px auto auto 8px;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
}

.vip-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.vip-status-panel,
.vip-plan-card {
  display: grid;
  gap: 14px;
}

.vip-mini-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vip-pending-panel {
  margin-top: 20px;
}

.vip-plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vip-plan-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.vip-price {
  font-size: 1.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.vip-method-stack {
  display: grid;
  gap: 12px;
}

.vip-method-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}

.vip-method-row form {
  margin: 0;
}

.vip-method-row.is-disabled {
  opacity: .72;
}

.vip-table-wrap {
  overflow-x: auto;
}

.vip-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.vip-table th,
.vip-table td {
  padding: 14px 12px;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.vip-table thead th {
  border-top: none;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vip-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  font-size: .82rem;
  font-weight: 700;
}

.vip-status-pending {
  background: rgba(245,158,11,.15);
  border-color: rgba(245,158,11,.35);
  color: #fbbf24;
}

.vip-status-completed {
  background: rgba(34,197,94,.15);
  border-color: rgba(34,197,94,.32);
  color: #4ade80;
}

.vip-status-cancelled,
.vip-status-failed,
.vip-status-expired,
.vip-status-refunded {
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.32);
  color: #f87171;
}

@media (max-width: 1120px) {
  .tag-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .vip-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .vip-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .filter-grid, .tag-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-video {
    grid-template-columns: 1fr;
  }

  .star-media,
  .profile-media {
    width: 84px;
  }

  .vip-plan-grid,
  .vip-mini-stats {
    grid-template-columns: 1fr;
  }

  .vip-plan-header,
  .vip-method-row {
    flex-direction: column;
    align-items: stretch;
  }

  .vip-method-row .btn {
    width: 100%;
  }
}
