:root {
  --bg: #070b14;
  --bg-deep: #05080f;
  --panel: #0e1320;
  --panel-2: #111827;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f6fb;
  --muted: #9ea7b7;
  --gold: #f0c24d;
  --gold-deep: #bd8e24;
  --page-gutter: clamp(24px, 2.8vw, 44px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 75% -10%, #27304c 0%, transparent 35%), #090f1b;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 15%, rgba(226, 169, 63, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(9, 12, 22, 0.1) 0%, rgba(7, 10, 18, 0.9) 70%);
  z-index: -1;
}

.container {
  width: calc(100% - (var(--page-gutter) * 2));
  margin: 0 auto;
}

.topbar.container,
.hero.container {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-top: 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 11, 20, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.brand {
  font-family: "Unbounded", sans-serif;
  color: var(--gold);
  text-decoration: none;
  font-size: 23px;
}

.nav-links {
  display: flex;
  gap: 20px;
  flex: 1;
}

.nav-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  max-width: 520px;
  margin: 0 18px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 19, 29, 0.85);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-search:focus-within {
  border-color: rgba(239, 198, 79, 0.55);
  background: rgba(20, 24, 36, 0.95);
}

.nav-search-icon {
  color: #8a93a5;
  font-size: 16px;
  line-height: 1;
}

.nav-search input {
  flex: 1;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
}

.nav-search input::placeholder {
  color: #6c7488;
}

.nav-search input::-webkit-search-cancel-button {
  appearance: none;
  display: none;
}

.nav-links a {
  text-decoration: none;
  color: #bcc5d7;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: var(--gold);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.lang-btn,
.avatar-btn,
.menu-btn {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: #0c1322;
  color: var(--text);
  height: 31px;
  border-radius: 8px;
}

.icon-btn {
  width: 31px;
  font-size: 12px;
}

.lang-btn {
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  color: #d9deea;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.profile-wrap {
  position: relative;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 90, 90, 0.45);
  background: linear-gradient(180deg, rgba(28, 16, 22, 0.85), rgba(18, 12, 16, 0.9));
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.05s ease;
  box-shadow: 0 0 0 1px rgba(255, 90, 90, 0.18) inset;
}

.profile-chip:hover {
  border-color: rgba(255, 130, 130, 0.7);
}

.profile-chip:active {
  transform: translateY(1px);
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #f8d878, #b98a23);
  color: #1d1500;
  font-weight: 800;
  font-size: 16px;
  font-family: "Unbounded", sans-serif;
  flex-shrink: 0;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
  min-width: 0;
}

.profile-name {
  font-size: 13px;
  font-weight: 700;
  color: #f1f3f8;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-id {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #a4adbf;
  font-weight: 600;
}

.profile-id-icon {
  color: var(--gold);
  font-size: 7px;
  line-height: 1;
}

/* Dropdown panel */
.profile-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: linear-gradient(180deg, #15161d 0%, #0c0d12 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  z-index: 80;
  overflow: hidden;
  animation: profilePanelIn 0.16s ease-out;
}

.profile-panel[hidden] {
  display: none;
}

@keyframes profilePanelIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-panel-head {
  padding: 22px 20px 18px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-panel-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #f8d878, #b98a23);
  color: #1d1500;
  font-weight: 800;
  font-size: 30px;
  font-family: "Unbounded", sans-serif;
  border: 3px solid rgba(248, 216, 120, 0.6);
}

.profile-panel-name {
  font-size: 18px;
  font-weight: 700;
  color: #f1f3f8;
  margin-bottom: 4px;
}

.profile-panel-email {
  font-size: 12px;
  color: #8a93a5;
  word-break: break-all;
  margin-bottom: 12px;
}

.profile-panel-id-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-panel-id-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #c7cfde;
  font-weight: 500;
}

.profile-panel-id-pill strong {
  color: #fff;
  font-weight: 700;
}

.profile-panel-logout {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 90, 90, 0.12);
  border: 1px solid rgba(255, 90, 90, 0.4);
  color: #ff8e8e;
  text-decoration: none;
  font-size: 16px;
}

.profile-panel-logout:hover {
  background: rgba(255, 90, 90, 0.22);
}

.profile-panel-section {
  padding: 12px 8px;
}

.profile-panel-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #6b7385;
  letter-spacing: 0.08em;
  padding: 6px 12px 10px;
}

.profile-panel-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #d7deeb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.profile-panel-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.profile-panel-link-danger {
  color: #ff8e8e;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  padding-top: 14px;
}

.profile-panel-link-danger:hover {
  background: rgba(255, 90, 90, 0.1);
  color: #ffb0b0;
}

@media (max-width: 720px) {
  .nav-search {
    margin: 0 8px;
    height: 38px;
    padding: 0 12px;
  }

  .nav-search input {
    font-size: 13px;
  }

  .profile-chip {
    padding: 4px 10px 4px 4px;
    height: 40px;
  }

  .profile-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .profile-name {
    max-width: 90px;
    font-size: 12px;
  }

  .profile-id {
    font-size: 10px;
  }

  .profile-panel {
    width: 280px;
    right: -10px;
  }
}

.icon-bell span {
  color: var(--gold);
  font-size: 15px;
  line-height: 1;
}

.avatar-btn {
  width: 31px;
  border-radius: 50%;
  border-color: rgba(240, 194, 77, 0.6);
  background:
    radial-gradient(circle at 30% 30%, #4e658d 0%, #1a2337 45%, #0d1220 100%);
}

.menu-btn {
  display: none;
  width: 34px;
}

.hero {
  position: relative;
  margin-top: 0;
  height: clamp(540px, 72vh, 680px);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #090f1b;
  cursor: grab;
  touch-action: pan-y;
}

.hero.dragging {
  cursor: grabbing;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 8, 15, 0.87) 0%, rgba(5, 8, 15, 0.15) 75%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: calc(100% - (var(--page-gutter) * 2));
  margin: 0 auto;
  max-width: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 0 82px;
}

.tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.chip {
  border: 1px solid rgba(240, 194, 77, 0.35);
  color: var(--gold);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}

.rating {
  color: #ced5e2;
  font-size: 12px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 58px);
  line-height: 1;
  margin-bottom: 10px;
  max-width: 680px;
  min-height: 2.05em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.release-year {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 18px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(240, 194, 77, 0.35);
  background: rgba(6, 10, 18, 0.58);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  color: #edf2fb;
  font-size: 12px;
  font-weight: 800;
}

.release-year span {
  color: rgba(214, 221, 235, 0.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-year strong {
  color: var(--gold);
  font-family: "Unbounded", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.hero p {
  color: #d6ddeb;
  font-size: 14px;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 18px;
  min-height: 6.4em;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(9, 14, 25, 0.78), rgba(8, 12, 21, 0.54));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.hero-price span {
  color: rgba(214, 221, 235, 0.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-price strong {
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.hero-pagination {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 24px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.hero-dot.active {
  width: 40px;
  background: var(--gold);
}

.btn {
  border: 0;
  padding: 10px 18px;
  border-radius: 10px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn:hover,
.btn:focus {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(140deg, #f7d879 0%, var(--gold-deep) 100%);
  color: #191200;
}

.btn-dark {
  border: 1px solid var(--line);
  background: rgba(14, 20, 34, 0.93);
  color: #dce2ee;
}

.section {
  margin-top: 20px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 34px;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-head h2::before {
  content: "";
  width: 3px;
  height: 24px;
  background: var(--gold);
  border-radius: 99px;
}

.section-head a {
  color: var(--gold);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.movie-catalog {
  display: grid;
  gap: 26px;
}

.catalog-block {
  display: grid;
  gap: 12px;
  position: relative;
}

.slider-controls {
  display: none;
}

.slider-btn {
  display: none;
}

.catalog-head h2 {
  font-size: 28px;
}

.card-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  position: relative;
  cursor: grab;
  user-select: none;
}

.card-grid.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.card-grid::-webkit-scrollbar {
  display: none;
}

.card-grid {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.catalog-row {
  display: flex;
  gap: 10px;
}

.media-card {
  border-radius: 12px;
  overflow: hidden;
  background: #0a101d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease;
  flex: 0 0 200px;
  min-width: 200px;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.media-card:hover {
  transform: translateY(-5px);
  border-color: rgba(240, 194, 77, 0.45);
}

.media-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  background-size: cover;
  background-position: center;
  display: block;
}

.index-content-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.index-content-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 194, 77, 0.45) !important;
}

.index-content-cover {
  aspect-ratio: 2 / 3;
}

.all-contents-cover,
.profile-content-cover,
.purchased-content-cover,
.wishlist-content-cover {
  aspect-ratio: 2 / 3;
}

.media-rating,
.media-price {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 20, 34, 0.86);
  border: 1px solid rgba(240, 194, 77, 0.5);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.wishlist-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 20, 34, 0.86);
  border: 1px solid rgba(240, 194, 77, 0.5);
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}

.wishlist-btn:hover { transform: scale(1.08); }

.wishlist-btn.is-active {
  color: var(--gold);
  background: rgba(240, 194, 77, 0.16);
  border-color: var(--gold);
}

.media-body {
  padding: 2px 10px 0px;
}

.media-title {
  font-size: 13px;
  margin-bottom: 0px;
  line-height: 1.0;
  color: var(--gold);
}

.media-description {
  margin: 0;
  color: var(--gold);
  font-size: 11px;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.media-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.media-meta-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 7px;
  line-height: 1;
}

.media-meta {
  color: var(--muted);
  font-size: 11px;
}

.section-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s;
}

a.section-count:hover {
  color: var(--gold);
}

.media-cover.no-img {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #182234 0%, #101827 100%);
}

.media-placeholder {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.media-title {
  font-size: 13px;
  margin: 0;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-catalog {
  padding: 36px 24px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(10, 14, 22, 0.58);
  color: var(--muted);
  font-size: 14px;
}

.creators h2 {
  text-align: center;
  margin-bottom: 16px;
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.creator-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #101726 0%, #0c121f 100%);
  padding: 16px;
  text-align: center;
}

.creator-avatar {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 2px solid rgba(240, 194, 77, 0.6);
  background: center/cover;
}

.creator-name {
  font-size: 14px;
}

.creator-role {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.creator-stats {
  display: flex;
  justify-content: space-between;
  color: var(--gold);
  font-size: 12px;
}

.promo {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(120deg, #131928 0%, #0b1020 100%);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}

.promo h3 {
  font-size: clamp(24px, 4vw, 40px);
  margin-bottom: 8px;
  line-height: 1.05;
}

.promo p {
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.promo ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.promo li {
  font-size: 13px;
  color: #d9deea;
}

.promo-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(155deg, rgba(255, 207, 93, 0.1), rgba(22, 28, 44, 0.95));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.stack-box {
  height: 210px;
  border-radius: 12px;
  margin-bottom: 14px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 221, 120, 0.45), transparent 30%),
    linear-gradient(165deg, #1e2436 0%, #0d1322 75%);
}

.promo-card p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

/* =========================================================
   Хуваалцсан дээд navbar  (views/header_navbar.php)
   ========================================================= */
.app-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 28px;
    background: rgba(11, 16, 24, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    font-family: "Manrope", sans-serif;
    color: #eef2f8;
}
.app-navbar a { text-decoration: none; color: inherit; }
.app-navbar button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.app-navbar .nb-brand {
    font-family: "Unbounded", sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #f0c24d;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.app-navbar .nb-brand-logo {
    height: 36px;
    width: auto;
    display: block;
}

.app-navbar .nb-search {
    flex: 1;
    max-width: 420px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    background: #131a26;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    transition: border-color 0.15s;
}
.app-navbar .nb-search:focus-within { border-color: rgba(240, 194, 77, 0.55); }
.app-navbar .nb-search input {
    flex: 1; height: 100%;
    background: transparent; border: 0; outline: none;
    color: #eef2f8;
    font-family: inherit;
    font-size: 13px;
}
.app-navbar .nb-search input::placeholder { color: #6b7488; }
.app-navbar .nb-search-icon { color: #8892a5; font-size: 14px; }

.app-navbar .nb-nav {
    display: flex;
    gap: 22px;
    margin-left: 8px;
}
.app-navbar .nb-nav a {
    font-size: 13px;
    font-weight: 600;
    color: #c0c8d8;
    padding: 6px 2px;
    position: relative;
    transition: color 0.15s;
}
.app-navbar .nb-nav a:hover { color: #f0c24d; }
.app-navbar .nb-nav a.is-active { color: #f0c24d; }
.app-navbar .nb-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -3px;
    height: 2px; border-radius: 99px;
    background: #f0c24d;
}

.app-navbar .nb-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.app-navbar .nb-icon-btn {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: #131a26;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: grid; place-items: center;
    font-size: 16px; color: #d4dae8;
    transition: border-color 0.15s, color 0.15s;
}
.app-navbar .nb-icon-btn:hover { border-color: rgba(240, 194, 77, 0.5); color: #f0c24d; }

.app-navbar .nb-login {
    height: 38px;
    padding: 0 20px;
    border-radius: 999px;
    background: #f0c24d;
    color: #1a1303;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
}
.app-navbar .nb-login:hover { background: #f5cf6a; }

/* Profile chip (нэвтэрсэн үед) */
.app-navbar .nb-profile { position: relative; }
.app-navbar .nb-profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 3px 14px 3px 3px;
    border-radius: 999px;
    border: 1px solid rgba(240, 194, 77, 0.35);
    background: rgba(20, 16, 10, 0.7);
    color: #f1f3f8;
    cursor: pointer;
}
.app-navbar .nb-profile-chip:hover { border-color: rgba(240, 194, 77, 0.6); }
.app-navbar .nb-profile-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(140deg, #f8d878, #b98a23);
    color: #1d1500;
    display: grid; place-items: center;
    font-weight: 800;
    font-family: "Unbounded", sans-serif;
    font-size: 13px;
}
.app-navbar .nb-profile-name {
    font-size: 13px; font-weight: 700;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-navbar .nb-profile-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: linear-gradient(180deg, #15161d 0%, #0c0d12 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    z-index: 200;
    overflow: hidden;
}
.app-navbar .nb-profile-panel[hidden] { display: none; }
.app-navbar .nb-pp-head {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex; align-items: center; gap: 12px;
}
.app-navbar .nb-pp-head .nb-profile-avatar { width: 42px; height: 42px; font-size: 16px; }
.app-navbar .nb-pp-meta { line-height: 1.3; min-width: 0; }
.app-navbar .nb-pp-meta .name { font-size: 13px; font-weight: 700; }
.app-navbar .nb-pp-meta .email { font-size: 11px; color: #8892a5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.app-navbar .nb-pp-section { padding: 8px; }
.app-navbar .nb-pp-link {
    display: block;
    padding: 9px 12px;
    font-size: 13px;
    color: #c0c8d8;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.app-navbar .nb-pp-link:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.app-navbar .nb-pp-link.danger:hover { color: #ff8585; background: rgba(255, 90, 90, 0.08); }

@media (max-width: 860px) {
    .app-navbar { padding: 12px 16px; gap: 10px; }
    .app-navbar .nb-nav { display: none; }
    .app-navbar .nb-search { max-width: none; }
    .app-navbar .nb-profile-name { display: none; }
}
@media (max-width: 520px) {
    .app-navbar .nb-brand-logo { height: 28px; }
    .app-navbar .nb-icon-btn { width: 34px; height: 34px; font-size: 14px; }
}

/* =========================================================
   Хуваалцсан дашбоардын sidebar  (views/sidebar_menu.php)
   ========================================================= */
.app-sidebar {
    background: #0d131d;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: sticky;
    top: 68px; /* navbar өндрийн дор */
    height: calc(100vh - 68px);
    font-family: "Manrope", sans-serif;
    color: #eef2f8;
}
.app-sidebar a { text-decoration: none; color: inherit; }

.app-sidebar .sb-nav { display: flex; flex-direction: column; gap: 4px; }
.app-sidebar .sb-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: #c0c8d8;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.app-sidebar .sb-link:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.app-sidebar .sb-link.is-active {
    background: #f0c24d;
    color: #1a1303;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(240, 194, 77, 0.18);
}
.app-sidebar .sb-ico {
    width: 18px;
    display: inline-grid;
    place-items: center;
    font-size: 15px;
}

.app-sidebar .sb-logout-wrap {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
}
.app-sidebar .sb-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #c0c8d8;
    font-size: 14px;
    border-radius: 10px;
}
.app-sidebar .sb-logout:hover { background: rgba(255, 90, 90, 0.08); color: #ff8585; }

@media (max-width: 860px) {
    .app-sidebar {
        position: relative;
        height: auto;
        top: 0;
        flex-direction: row;
        align-items: center;
        padding: 12px 16px;
        gap: 8px;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .app-sidebar .sb-nav { flex-direction: row; gap: 4px; flex: 1; }
    .app-sidebar .sb-link { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
    .app-sidebar .sb-logout-wrap { margin: 0; padding: 0; border: 0; }
}

/* =========================================================
   Профайл хуудас  (profile.php)
   ========================================================= */
.profile-page {
    --bg: #0b1018;
    --bg-2: #0e141e;
    --sidebar: #0d131d;
    --panel: #131a26;
    --panel-2: #182032;
    --line: rgba(255,255,255,0.06);
    --text: #eef2f8;
    --muted: #8892a5;
    --muted-2: #6b7488;
    --gold: #f0c24d;
    --gold-deep: #d9a836;

    font-family: "Manrope", sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
/* Тайлбар: глобал "* { margin: 0; padding: 0 }" reset нь файлын эхэнд аль хэдийн байгаа.
   .profile-page * reset нь .app-navbar/.app-sidebar дотрох padding-уудыг хүчингүй болгож байсан тул хассан. */
.profile-page a { color: inherit; text-decoration: none; }
.profile-page button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ===== Layout ===== */
.profile-page .app {
    display: grid;
    grid-template-columns: 240px 1fr;
    flex: 1;                 /* footer-ийг доор бариулахын тулд үлдсэн зайг дүүргэнэ */
    min-width: 0;
}

/* ===== Main ===== */
.profile-page .main { display: flex; flex-direction: column; min-width: 0; }

.profile-page .topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(11,16,24,0.7);
    backdrop-filter: blur(6px);
    position: sticky; top: 0; z-index: 20;
}
.profile-page .top-search {
    flex: 1;
    max-width: 360px;
    height: 40px;
    display: flex; align-items: center; gap: 10px;
    padding: 0 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
}
.profile-page .top-search input {
    flex: 1; height: 100%;
    background: transparent; border: 0; outline: none;
    color: var(--text); font-size: 13px;
}
.profile-page .top-search input::placeholder { color: var(--muted-2); }
.profile-page .top-search-icon { color: var(--muted); font-size: 14px; }

.profile-page .top-nav { display: flex; gap: 22px; margin-left: 8px; }
.profile-page .top-nav a {
    font-size: 13px; font-weight: 600;
    color: #c0c8d8;
    padding: 6px 2px;
    position: relative;
}
.profile-page .top-nav a:hover { color: var(--gold); }

.profile-page .top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.profile-page .icon-btn {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    display: grid; place-items: center;
    font-size: 16px; color: #d4dae8;
    transition: border-color 0.15s, color 0.15s;
}
.profile-page .icon-btn:hover { border-color: rgba(240,194,77,0.5); color: var(--gold); }
.profile-page .login-btn {
    height: 38px; padding: 0 18px;
    border-radius: 999px;
    background: var(--gold);
    color: #1a1303;
    font-weight: 700; font-size: 13px;
    display: inline-flex; align-items: center;
}
.profile-page .login-btn:hover { background: #f5cf6a; }

/* ===== Content ===== */
.profile-page .content { padding: 28px 32px 48px; }

.profile-page .section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
}
.profile-page .section-title { font-size: 20px; font-weight: 700; }
.profile-page .section-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.profile-page .section-link {
    font-size: 13px; color: var(--gold); font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
}
.profile-page .section-link:hover { color: #f5cf6a; }
.profile-page .dot-warn {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 50%;
    margin-left: 8px;
    box-shadow: 0 0 8px var(--gold);
    vertical-align: middle;
}

/* ===== Purchased / My-Movies grid ===== */
.profile-page .purchased-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.profile-page .p-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s, border-color 0.18s;
}
.profile-page .p-card:hover { transform: translateY(-3px); border-color: rgba(240,194,77,0.25); }
.profile-page .p-poster {
    aspect-ratio: 4/5;
    position: relative;
    display: grid; place-items: center;
    font-size: 60px;
    color: rgba(255,255,255,0.85);
}
.profile-page .p-poster.has-img {
    background-size: cover;
    background-position: center;
    font-size: 0;
}
.profile-page .p-art { font-size: 60px; opacity: 0.6; }
.profile-page .p-badge {
    position: absolute; top: 10px; right: 10px;
    padding: 4px 10px;
    font-size: 11px; font-weight: 700;
    background: var(--gold); color: #1a1303;
    border-radius: 6px;
    letter-spacing: 0.3px;
}
/* === Кино төлөв (movie_status) === */
.profile-page .status-badge {
    position: absolute; top: 10px; left: 10px;
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.2px;
    backdrop-filter: blur(4px);
    border: 1px solid transparent;
    line-height: 1;
}
.profile-page .status-badge.st-pending {
    background: rgba(240, 194, 77, 0.18);
    color: #f0c24d;
    border-color: rgba(240, 194, 77, 0.45);
}
.profile-page .status-badge.st-approved {
    background: rgba(60, 200, 120, 0.18);
    color: #6ee49a;
    border-color: rgba(60, 200, 120, 0.45);
}
.profile-page .status-badge.st-rejected {
    background: rgba(255, 90, 90, 0.18);
    color: #ff8585;
    border-color: rgba(255, 90, 90, 0.5);
}
/* === Хоосон төлөв === */
.profile-page .empty-box {
    padding: 36px 24px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(10, 14, 22, 0.55);
    color: var(--muted);
    font-size: 14px;
}
.profile-page .empty-box .empty-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
}
.profile-page .empty-box .empty-link:hover { text-decoration: underline; }

.profile-page .p-body { padding: 14px 14px 16px; display: flex; flex: 1; flex-direction: column; gap: 10px; }
.profile-page .p-title {
    min-height: 2.7em;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-page .p-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 12px; line-height: 1.35; }
.profile-page .p-meta dt { color: var(--muted); }
.profile-page .p-meta dd { color: #d4dae8; }
.profile-page .p-meta dd.warn { color: var(--gold); font-weight: 600; }
.profile-page .p-btn {
    margin-top: auto;
    min-height: 36px;
    background: var(--gold);
    color: #1a1303;
    font-weight: 700; font-size: 13px;
    padding: 10px 12px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    transition: background 0.15s;
}
.profile-page .p-btn:hover { background: #f5cf6a; }
.profile-page .p-btn .arrow { font-size: 11px; }

.profile-page .profile-status-catalog {
    display: grid;
    gap: 26px;
}
.profile-page .profile-status-head {
    margin-bottom: 12px;
}
.profile-page .profile-status-row {
    padding-bottom: 8px;
}
.profile-page .profile-media-card {
    cursor: pointer;
    color: inherit;
    text-align: left;
}
.profile-page .profile-media-card:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}
.profile-page .profile-empty-row {
    flex: 0 0 260px;
    min-height: 112px;
    display: grid;
    place-items: center;
    padding: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(10, 14, 22, 0.55);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}
.profile-page .profile-status-row .status-badge {
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 10px;
}
.profile-page .profile-status-row .media-price {
    top: 8px;
    right: 8px;
}

/* ===== Saved grid ===== */
.profile-page .saved-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 12px;
}
.profile-page .s-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex; flex-direction: column;
    transition: transform 0.18s;
}
.profile-page .s-card:hover { transform: translateY(-3px); }
.profile-page .s-poster {
    aspect-ratio: 3/4;
    position: relative;
    display: grid; place-items: center;
    font-size: 56px;
    color: rgba(255,255,255,0.85);
    border-radius: 12px;
    overflow: hidden;
}
.profile-page .s-bookmark {
    position: absolute; top: 10px; right: 10px;
    width: 30px; height: 30px;
    background: rgba(15,20,30,0.7);
    border-radius: 8px;
    display: grid; place-items: center;
    color: #fff; font-size: 14px;
    backdrop-filter: blur(4px);
}
.profile-page .s-rating {
    position: absolute; bottom: 10px; left: 10px;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 8px;
    background: rgba(15,20,30,0.78);
    border-radius: 6px;
    font-size: 11px; font-weight: 700;
    color: var(--gold);
}
.profile-page .s-rating .star { font-size: 10px; }
.profile-page .s-body { padding: 10px 4px; }
.profile-page .s-title { font-size: 14px; font-weight: 700; }
.profile-page .s-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ===== Section spacing ===== */
.profile-page .block + .block { margin-top: 36px; }

/* =========================================================
   Миний мэдээлэл  (my_info.php)
   ========================================================= */
.profile-page .info-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 18px;
}
.profile-page .info-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(140deg, #f8d878, #b98a23);
    color: #1d1500;
    display: grid; place-items: center;
    font-family: "Unbounded", sans-serif;
    font-size: 24px; font-weight: 800;
    flex-shrink: 0;
}
.profile-page .info-summary-meta { min-width: 0; }
.profile-page .info-name {
    font-size: 18px;
    font-weight: 700;
    color: #f1f3f8;
    margin-bottom: 4px;
}
.profile-page .info-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    align-items: center;
}
.profile-page .src-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid transparent;
}
.profile-page .src-badge.src-google {
    background: rgba(66, 133, 244, 0.14);
    color: #8ab4f8;
    border-color: rgba(66, 133, 244, 0.45);
}
.profile-page .src-badge.src-manual {
    background: rgba(255, 255, 255, 0.05);
    color: #c0c8d8;
    border-color: rgba(255, 255, 255, 0.12);
}

/* ----- Карт ----- */
.profile-page .info-form + .info-form { margin-top: 18px; }
.profile-page .info-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 24px 20px;
}
.profile-page .info-card-head { margin-bottom: 16px; }
.profile-page .info-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #f1f3f8;
    margin: 0 0 4px;
}
.profile-page .info-card-sub {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

/* ----- Талбарууд ----- */
.profile-page .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}
.profile-page .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.profile-page .field.full { grid-column: 1 / -1; }
.profile-page .label {
    font-size: 12px;
    font-weight: 600;
    color: #c0c8d8;
}
.profile-page .label .req { color: var(--gold); }
.profile-page .input {
    width: 100%;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}
.profile-page .input:focus { border-color: rgba(240, 194, 77, 0.55); }
.profile-page .input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ----- Үйлдлүүд ----- */
.profile-page .info-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}
.profile-page .btn-primary {
    background: var(--gold);
    color: #1a1303;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 22px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    transition: background 0.15s;
}
.profile-page .btn-primary:hover { background: #f5cf6a; }

/* ----- Alert ----- */
.profile-page .alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
}
.profile-page .alert-error {
    background: rgba(255, 94, 94, 0.08);
    border: 1px solid rgba(255, 94, 94, 0.35);
    color: #ffb4b4;
}
.profile-page .alert-ok {
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #b8f5cf;
}
.profile-page .alert ul { margin: 6px 0 0 18px; }

/* ----- Responsive ----- */
@media (max-width: 720px) {
    .profile-page .info-grid { grid-template-columns: 1fr; }
    .profile-page .info-summary { flex-direction: column; text-align: center; gap: 12px; }
    .profile-page .info-sub { justify-content: center; }
}

/* ===== Footer ===== */
.profile-page .footer {
    margin-top: 36px;
    border-top: 1px solid var(--line);
    padding: 22px 32px;
    display: flex; align-items: center; gap: 24px;
    flex-wrap: wrap;
    background: rgba(8,12,18,0.5);
}
.profile-page .footer-brand h4 {
    font-family: "Unbounded", sans-serif;
    color: var(--gold);
    font-size: 16px;
    font-weight: 700;
}
.profile-page .footer-brand p { font-size: 12px; color: var(--muted); margin-top: 4px; max-width: 360px; }
.profile-page .footer-links { display: flex; gap: 28px; margin-left: auto; }
.profile-page .footer-links a { font-size: 12px; color: #b7bfd1; }
.profile-page .footer-links a:hover { color: var(--gold); }
.profile-page .footer-icons { display: flex; gap: 10px; }
.profile-page .footer-icons .icon-btn { width: 32px; height: 32px; font-size: 13px; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .profile-page .purchased-grid,
    .profile-page .saved-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    .profile-page .app { grid-template-columns: 1fr; }
    .profile-page .top-nav { display: none; }
    .profile-page .purchased-grid,
    .profile-page .saved-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-page .content { padding: 20px 18px 32px; }
    .profile-page .topbar { padding: 14px 18px; }
    .profile-page .footer { padding: 20px 18px; }
    .profile-page .footer-links { gap: 16px; }
}
@media (max-width: 520px) {
    .profile-page .purchased-grid,
    .profile-page .saved-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .profile-page .top-search { max-width: none; }
}

/* =========================================================
   Хуваалцсан footer  (views/footer.php)
   ========================================================= */
/* Sticky-to-bottom: body-ийг flex column болгож, footer-т margin-top: auto */
html, body { min-height: 100%; }
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-footer {
    margin-top: auto;            /* контент богино үед ч хамгийн доор бариулна */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 22px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(8, 12, 18, 0.7);
    font-family: "Manrope", sans-serif;
    color: #eef2f8;
}
.app-footer a { text-decoration: none; color: inherit; }
.app-footer button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.app-footer .af-brand h4 {
    font-family: "Unbounded", sans-serif;
    color: #f0c24d;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}
.app-footer .af-brand p {
    font-size: 12px;
    color: #8892a5;
    margin-top: 4px;
    max-width: 360px;
}

.app-footer .af-links {
    display: flex;
    gap: 28px;
    margin-left: auto;
    flex-wrap: wrap;
}
.app-footer .af-links a {
    font-size: 12px;
    color: #b7bfd1;
    transition: color 0.15s;
}
.app-footer .af-links a:hover { color: #f0c24d; }

.app-footer .af-icons {
    display: flex;
    gap: 10px;
}
.app-footer .af-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #131a26;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    place-items: center;
    font-size: 13px;
    color: #d4dae8;
    transition: border-color 0.15s, color 0.15s;
}
.app-footer .af-icon-btn:hover {
    border-color: rgba(240, 194, 77, 0.5);
    color: #f0c24d;
}

@media (max-width: 860px) {
    .app-footer { padding: 20px 18px; gap: 16px; }
    .app-footer .af-links { gap: 16px; margin-left: 0; }
}


.promo-card strong {
  font-size: 22px;
  color: var(--gold);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.stat-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #12192a, #0c1221);
  text-align: center;
  padding: 20px;
}

.stat-item .icon {
  color: var(--gold);
}

.stat-item strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 30px;
}

.stat-item p {
  color: var(--muted);
  font-size: 12px;
}

.footer {
  border-top: 1px solid var(--line);
  background: #070b14;
  padding: 34px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 18px;
}

.footer h4 {
  font-family: "Unbounded", sans-serif;
  color: var(--gold);
  margin-bottom: 10px;
}

.footer h5 {
  margin-bottom: 10px;
}

.footer p,
.footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.6;
  display: block;
}

.copyright {
  text-align: center;
  margin-top: 22px;
  color: #7f8797;
  font-size: 12px;
}

@media (max-width: 1080px) {
  .creator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    background: #0e1320;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: inline-block;
  }

  .hero {
    height: 520px;
  }

  .hero-content {
    padding: 0 18px 72px;
  }

  .hero h1 {
    min-height: 2.2em;
    -webkit-line-clamp: 2;
  }

  .hero p {
    min-height: 5.1em;
    -webkit-line-clamp: 3;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .catalog-row,
  .footer-grid,
  .promo,
  .stats {
    grid-template-columns: 1fr;
  }

  .catalog-head h2 {
    font-size: 24px;
  }

  .promo ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  :root {
    --page-gutter: 16px;
  }

  .app-navbar {
    gap: 8px;
    padding: 10px 12px;
  }

  .app-navbar .nb-brand-logo {
    height: 25px;
  }

  .app-navbar .nb-search {
    min-width: 0;
    height: 36px;
    padding: 0 11px;
    gap: 6px;
  }

  .app-navbar .nb-search input {
    min-width: 0;
    font-size: 12px;
  }

  .app-navbar .nb-actions {
    gap: 6px;
  }

  .app-navbar .nb-icon-btn {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .app-navbar .nb-actions .nb-icon-btn:nth-child(2) {
    display: none;
  }

  .app-navbar .nb-profile-chip {
    height: 34px;
    padding: 2px;
  }

  .app-navbar .nb-profile-avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .hero {
    height: 460px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(5, 8, 15, 0.82) 0%, rgba(5, 8, 15, 0.18) 100%);
  }

  .hero-content {
    width: calc(100% - 32px);
    padding: 0 0 56px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.05;
    min-height: 0;
    margin-bottom: 8px;
  }

  .hero p {
    font-size: 13px;
    line-height: 1.45;
    min-height: 0;
    margin-bottom: 14px;
  }

  .release-year {
    margin: 0 0 14px;
  }

  .hero-pagination {
    bottom: 16px;
  }

  .hero-dot {
    width: 18px;
  }

  .hero-dot.active {
    width: 30px;
  }

  .section {
    margin-top: 16px;
  }

  .section-head {
    margin-bottom: 10px;
  }

  .section-head h2,
  .catalog-head h2 {
    font-size: 22px;
  }

  .catalog-head h2::before {
    height: 20px;
  }

  .section-count {
    font-size: 11px;
    white-space: nowrap;
  }

  .catalog-block {
    gap: 8px;
  }

  .catalog-row {
    gap: 10px;
    padding-bottom: 4px;
  }
}

/* ===== ????? ???? � ??????????? modal ===== */
.profile-page .p-btn { border: 0; cursor: pointer; width: 100%; font-family: inherit; }


/* ===== Movie detail modal (mm-*) ===== */
.profile-page .mm-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: none; align-items: center; justify-content: center;
    padding: 24px;
}
.profile-page .mm-modal.is-open { display: flex; }
.profile-page .mm-backdrop {
    position: absolute; inset: 0;
    background: rgba(2, 6, 14, 0.72);
    backdrop-filter: blur(4px);
}
.profile-page .mm-dialog {
    position: relative;
    background: var(--panel, #131826);
    border: 1px solid var(--line, rgba(255,255,255,0.08));
    border-radius: 16px;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
    animation: mm-pop 0.18s ease-out;
}
@keyframes mm-pop { from { transform: translateY(10px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.profile-page .mm-close {
    position: absolute; top: 10px; right: 12px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 22px; line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.profile-page .mm-close:hover { background: rgba(255,255,255,0.14); }

.profile-page .mm-head {
    padding: 18px 56px 14px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.profile-page .mm-title { font-size: 18px; font-weight: 800; color: #fff; margin: 0; flex: 1; }
.profile-page .mm-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(240,194,77,0.18);
  border: 1px solid rgba(240,194,77,0.45);
  color: var(--gold, #f0c24d);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  line-height: 1.2;
}
.profile-page .mm-edit:hover { background: rgba(240,194,77,0.28); }
.profile-page .mm-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
    line-height: 1.2;
}
.profile-page .mm-status.st-pending { background: rgba(240,194,77,0.18); color: #f0c24d; border-color: rgba(240,194,77,0.45); }
.profile-page .mm-status.st-approved { background: rgba(60,200,120,0.18); color: #6ee49a; border-color: rgba(60,200,120,0.45); }
.profile-page .mm-status.st-rejected { background: rgba(255,90,90,0.18); color: #ff8585; border-color: rgba(255,90,90,0.5); }

.profile-page .mm-body { overflow-y: auto; padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 18px; }

.profile-page .mm-reason {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 13px;
    line-height: 1.5;
}
.profile-page .mm-reason strong { display: block; margin-bottom: 4px; font-size: 12.5px; letter-spacing: 0.3px; }
.profile-page .mm-reason p { margin: 0; color: #d4dae8; }
.profile-page .mm-reason-rejected { background: rgba(239,68,68,0.10); border-color: rgba(239,68,68,0.40); }
.profile-page .mm-reason-rejected strong { color: #ff8585; }
.profile-page .mm-reason-pending  { background: rgba(240,194,77,0.10); border-color: rgba(240,194,77,0.40); }
.profile-page .mm-reason-pending strong { color: #f0c24d; }
.profile-page .mm-reason-approved { background: rgba(60,200,120,0.10); border-color: rgba(60,200,120,0.40); }
.profile-page .mm-reason-approved strong { color: #6ee49a; }

.profile-page .mm-hero {
    display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: start;
}
.profile-page .mm-poster {
    width: 160px; aspect-ratio: 2/3;
    border-radius: 10px;
    background-size: cover; background-position: center;
    display: grid; place-items: center;
    color: rgba(255,255,255,0.6); font-size: 42px;
    border: 1px solid rgba(255,255,255,0.08);
}
.profile-page .mm-stats {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.profile-page .mm-stat {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 10px 12px;
}
.profile-page .mm-stat span { display: block; font-size: 10.5px; color: var(--muted, #8892a5); text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; margin-bottom: 2px; }
.profile-page .mm-stat strong { font-size: 14px; color: #fff; font-weight: 700; }

.profile-page .mm-section h4 {
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--gold, #f0c24d); font-weight: 700;
    margin: 0 0 10px;
}
.profile-page .mm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.profile-page .mm-row {
    display: flex; gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.06);
    font-size: 13px;
}
.profile-page .mm-row > span { flex: 0 0 120px; color: var(--muted, #8892a5); font-weight: 600; }
.profile-page .mm-row > div { color: #d4dae8; flex: 1; word-break: break-word; }

.profile-page .mm-desc {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px; line-height: 1.55; color: #d4dae8;
    margin: 0;
}

.profile-page .mm-files { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-page .mm-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #d4dae8;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px; font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.profile-page .mm-chip:hover { border-color: var(--gold, #f0c24d); color: var(--gold, #f0c24d); }

.profile-page .mm-slider {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px;
}
.profile-page .mm-slider img {
    width: 100%; aspect-ratio: 16/10; object-fit: cover;
    border-radius: 6px; border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.15s, border-color 0.15s;
}
.profile-page .mm-slider a:hover img { transform: scale(1.03); border-color: var(--gold, #f0c24d); }

@media (max-width: 600px) {
    .profile-page .mm-modal { padding: 12px; }
    .profile-page .mm-hero { grid-template-columns: 1fr; }
    .profile-page .mm-poster { width: 140px; margin: 0 auto; }
    .profile-page .mm-grid { grid-template-columns: 1fr; }
    .profile-page .mm-row > span { flex: 0 0 105px; }
}

/* =========================================================
   Search page (search.php)
   ========================================================= */
.search-page {
    flex: 1;
    display: grid;
    gap: 22px;
    padding: 34px 0 42px;
}

.search-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(240, 194, 77, 0.14), transparent 42%),
        linear-gradient(180deg, rgba(16, 24, 38, 0.92), rgba(8, 12, 20, 0.92));
}

.search-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.search-hero h1 {
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1;
    margin-bottom: 12px;
}

.search-hero p {
    max-width: 680px;
    color: #cbd3e1;
    font-size: 14px;
    line-height: 1.65;
}

.search-total {
    min-width: 138px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: right;
}

.search-total strong {
    display: block;
    color: var(--gold);
    font-family: "Unbounded", sans-serif;
    font-size: 28px;
    line-height: 1;
}

.search-total span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.search-panel {
    padding: 18px;
    border-radius: 12px;
    background: rgba(10, 16, 29, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(170px, 220px) minmax(170px, 220px) auto;
    gap: 12px;
    align-items: start;
}

.search-input-wrap {
    position: relative;
}

.search-field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #818da2;
    font-size: 14px;
    z-index: 1;
}

.search-main-input,
.search-select {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #121a27;
    color: #eef2f8;
    font-family: inherit;
    font-size: 13px;
    outline: 0;
}

.search-main-input {
    padding: 0 16px 0 42px;
}

.search-select {
    padding: 0 14px;
}

.search-main-input:focus,
.search-select:focus {
    border-color: rgba(240, 194, 77, 0.58);
}

.search-submit {
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: var(--gold);
    color: #171102;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.search-submit:hover {
    background: #f5cf6a;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 70;
    max-height: 390px;
    overflow-y: auto;
    padding: 8px;
    border-radius: 12px;
    background: #0c121d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}

.search-suggestions[hidden] {
    display: none;
}

.search-suggestion {
    display: grid;
    grid-template-columns: 68px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
}

.search-suggestion:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-suggestion-thumb {
    width: 68px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #172133;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.search-suggestion-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-suggestion-body {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.search-suggestion-body strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.search-suggestion-body small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 11px;
}

.search-suggestion-price {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
}

.search-suggestion-empty {
    padding: 14px 12px;
    color: var(--muted);
    font-size: 13px;
}

.search-chip-rows {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.search-chip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-chip-row > span {
    width: 62px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.search-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd3e1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.search-chip:hover,
.search-chip.is-active {
    border-color: rgba(240, 194, 77, 0.55);
    color: var(--gold);
    background: rgba(240, 194, 77, 0.1);
}

.search-results {
    display: grid;
    gap: 16px;
}

.search-results-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.search-results-head h2 {
    font-size: 26px;
    line-height: 1.1;
}

.search-results-head p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.search-reset {
    color: var(--gold);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.search-result-card {
    min-width: 0;
    flex: initial;
}

.search-result-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.search-empty {
    padding: 28px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: var(--muted);
    text-align: center;
}

@media (max-width: 980px) {
    .search-form {
        grid-template-columns: 1fr 1fr;
    }
    .search-input-wrap {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .search-page {
        padding-top: 22px;
    }
    .search-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }
    .search-total {
        text-align: left;
    }
    .search-form {
        grid-template-columns: 1fr;
    }
    .search-chip-row {
        align-items: flex-start;
    }
    .search-chip-row > span {
        width: 100%;
    }
    .search-results-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .search-suggestion {
        grid-template-columns: 58px 1fr;
    }
    .search-suggestion-price {
        display: none;
    }
}

/* =========================================================
   QPay payment page (payment.php)
   ========================================================= */
.payment-page {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 36px 0 44px;
}

.payment-card {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    padding: 24px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(240, 194, 77, 0.12), transparent 38%),
        rgba(10, 16, 29, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}

.payment-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    min-width: 0;
}

.payment-kicker {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.payment-info h1 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    margin: 0;
}

.payment-info p {
    max-width: 560px;
    color: #cbd3e1;
    font-size: 14px;
    line-height: 1.65;
}

.payment-amount {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(240, 194, 77, 0.42);
    background: rgba(240, 194, 77, 0.08);
}

.payment-amount span {
    color: #cbd3e1;
    font-size: 12px;
    font-weight: 700;
}

.payment-amount strong {
    color: var(--gold);
    font-size: 18px;
    font-weight: 900;
}

.payment-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.payment-primary,
.payment-check,
.payment-back {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.payment-primary,
.payment-check {
    border: 0;
    background: var(--gold);
    color: #1a1303;
}

.payment-primary:hover,
.payment-check:hover {
    background: #f5cf6a;
}

.payment-back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #eef2f8;
}

.payment-status {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 13px;
}

.payment-status.is-ok {
    color: #86efac;
    border-color: rgba(74, 222, 128, 0.35);
    background: rgba(74, 222, 128, 0.08);
}

.payment-qr-wrap {
    display: grid;
    gap: 14px;
}

.payment-qr {
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    min-height: 298px;
    display: grid;
    place-items: center;
}

.payment-qr img {
    width: 100%;
    max-width: 280px;
    display: block;
}

.payment-qr-empty {
    color: #1f2937;
    font-size: 13px;
    font-weight: 800;
}

.payment-bank-list {
    max-height: 220px;
    overflow: auto;
    display: grid;
    gap: 8px;
}

.payment-bank-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    color: #eef2f8;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 700;
}

.payment-bank-list a:hover {
    border-color: rgba(240, 194, 77, 0.45);
    color: var(--gold);
}

.payment-bank-list img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: contain;
    background: #fff;
}

@media (max-width: 820px) {
    .payment-card {
        grid-template-columns: 1fr;
    }
    .payment-qr {
        min-height: auto;
    }
}
