* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  color: #e5e7eb;
  background: #020617;
}
.auth-page {
  width: 100%;
  min-height: 100vh;
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
}
.auth-header {
  max-width: 960px;
  margin: 0 auto 2rem;
}
.auth-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  background: rgba(15,23,42,0.96);
  border-radius: 1rem;
  border: 1px solid rgba(31,41,55,0.9);
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 20px 50px rgba(15,23,42,0.9);
  max-width: 360px;
  width: 100%;
  text-align: center;
}
.auth-title {
  font-size: 1.4rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
}
.auth-subtitle {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 1.25rem;
}
.google-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.8);
  background: #020617;
  color: #e5e7eb;
  font-size: 0.9rem;
  cursor: pointer;
}
.google-button:hover {
  background: #030712;
}
.google-logo {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #fff;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.google-button-loading {
  opacity: 0.8;
  cursor: wait;
}
.google-button-loading .google-logo {
  position: relative;
}
.google-button-loading .google-logo::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 4px;
  border: 2px solid rgba(148,163,184,0.7);
  border-top-color: #6366f1;
  animation: page-spin 0.8s linear infinite;
}
.auth-hint {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #6b7280;
}
.page-loading {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15,23,42,0.95), #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.page-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.96);
  box-shadow: 0 18px 45px rgba(15,23,42,0.9);
  font-size: 0.85rem;
  color: #e5e7eb;
}
.page-spinner {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 3px solid rgba(148,163,184,0.5);
  border-top-color: #6366f1;
  animation: page-spin 0.8s linear infinite;
}
@keyframes page-spin {
  to { transform: rotate(360deg); }
}
.details-card {
  max-width: 100%;
  text-align: left;
}
.details-card .auth-title {
  font-size: 1.6rem;
  font-weight: 680;
}
.details-card .auth-subtitle {
  margin-bottom: 0.25rem;
}
.details-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(0, 2.15fr);
  column-gap: 0.9rem;
  row-gap: 0.4rem;
  align-items: flex-start;
}
.details-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  background: #020617;
  border: 2px solid #1d4ed8;
  display: flex;
  size: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.details-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.details-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.details-actions {
  margin-top: 0.15rem;
  display: flex;
  justify-content: flex-start;
}
.details-actions .access-button {
  margin: 0;
  padding-inline: 2.5rem;
}
.page {
  width: 100%;
  margin: 0;
  padding: 1.25rem 1.5rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.header-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.nav {
  flex: 1 1 auto;
}
.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: #9ca3af;
  text-transform: uppercase;
}
.nav-link {
  text-decoration: none;
  color: inherit;
  position: relative;
  padding-bottom: 0.15rem;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #6366f1;
  transition: width 0.18s ease-out;
}
.nav-link:hover::after {
  width: 100%;
}
.title {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 650;
}
.brand-link {
  color: inherit;
  text-decoration: none;
}
.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}
.subtitle {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-top: 0.15rem;
}
.counter {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #9ca3af;
  text-align: right;
}
.admin-header-label {
  font-size: 0.85rem;
}
.access-button {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: #0f172a;
  color: #e5e7eb;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.access-button:hover {
  background: #111827;
  text-decoration: none;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1.2fr);
  gap: 1rem;
  align-items: flex-start;
  flex: 1 1 auto;
}
.panel {
  background: rgba(15,23,42,0.92);
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.4);
  padding: 1rem;
  box-shadow: 0 18px 45px rgba(15,23,42,0.9);
  backdrop-filter: blur(12px);
}
.sidebar {
  background: rgba(15,23,42,0.96);
  border-radius: 1rem;
  border: 1px solid rgba(31,41,55,0.9);
  padding: 0.9rem;
  box-shadow: 0 18px 45px rgba(15,23,42,0.9);
  font-size: 0.8rem;
}
.sidebar-section {
  margin-bottom: 0.9rem;
}
.sidebar-section:last-child {
  margin-bottom: 0;
}
.sidebar-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.sidebar-text {
  color: #9ca3af;
  margin-bottom: 0.5rem;
}
.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: #9ca3af;
}
.sidebar-list strong {
  color: #e5e7eb;
}
.sidebar-plan-actions {
  margin-top: 0.3rem;
}
.sidebar-membership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (max-width: 768px) {
  .sidebar-membership-grid {
    grid-template-columns: 1fr;
  }
}
.sidebar-plan-card {
  padding: 0.55rem 0.6rem;
  border-radius: 0.7rem;
  background: radial-gradient(circle at top left, rgba(59,130,246,0.16) 0, transparent 60%),
              rgba(15,23,42,0.96);
  border: 1px solid rgba(55,65,81,0.9);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.sidebar-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem;
}
.sidebar-plan-name {
  font-size: 0.78rem;
  font-weight: 600;
}
.sidebar-plan-price {
  font-size: 0.9rem;
  font-weight: 650;
  color: #a5b4fc;
}
.sidebar-plan-features {
  list-style: none;
  margin: 0.1rem 0 0;
  padding: 0;
  font-size: 0.72rem;
  color: #9ca3af;
}
.sidebar-plan-features li {
  display: flex;
  gap: 0.25rem;
}
.sidebar-plan-features li::before {
  content: "•";
  color: #4ade80;
  font-size: 0.65rem;
  margin-top: 0.1rem;
}
.sidebar-plan-card .access-button {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.sidebar-popular-grid,
#sidebar-popular {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}
#sidebar-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}
.sidebar-video-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sidebar-video-play {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(148,163,184,0.7);
  flex-shrink: 0;
}
.sidebar-video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 9px solid #e5e7eb;
  transform: translate(-40%, -50%);
}
.sidebar-link-item {
  display: block;
  padding: 0.35rem 0.45rem;
  border-radius: 0.55rem;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(31,41,55,0.8);
  text-decoration: none;
  color: #e5e7eb;
}
.sidebar-link-item + .sidebar-link-item {
  margin-top: 0.2rem;
}
.sidebar-link-title {
  font-size: 0.8rem;
  font-weight: 500;
}
.sidebar-link-meta {
  font-size: 0.7rem;
  color: #9ca3af;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.search-input {
  flex: 1 1 200px;
  background: #020617;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  padding: 0.5rem 0.9rem;
  color: #e5e7eb;
  font-size: 0.85rem;
}
.search-input::placeholder { color: #6b7280; }
.filter-select {
  background: #020617;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  padding: 0.45rem 0.9rem;
  color: #e5e7eb;
  font-size: 0.8rem;
}
.filter-summary {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: #9ca3af;
}
.pagination {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #9ca3af;
}
.pagination-button {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: #020617;
  color: #e5e7eb;
  font-size: 0.78rem;
  cursor: pointer;
}
.pagination-button:disabled {
  opacity: 0.5;
  cursor: default;
}
.pagination-info {
  min-width: 100px;
  text-align: center;
}
.list {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}
@media (min-width: 1024px) {
  .list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.card {
  background: radial-gradient(circle at top left, rgba(56,189,248,0.16) 0, transparent 60%),
              rgba(15,23,42,0.98);
  border-radius: 0.8rem;
  border: 1px solid rgba(31,41,55,0.9);
  padding: 0.7rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
}
.video-card {
  cursor: pointer;
}
.video-thumb-wrapper {
  position: relative;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #020617;
}
.video-thumb {
  width: 100%;
  display: block;
}
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(15,23,42,0.2), rgba(15,23,42,0.75));
  border: none;
  cursor: pointer;
}
.video-play-overlay::before {
  content: "";
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 2px solid rgba(248,250,252,0.8);
}
.video-play-overlay::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid #e5e7eb;
  transform: translateX(2px);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}
.card-title { font-weight: 600; }
.card-status {
  font-size: 0.65rem;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(74,222,128,0.7);
  color: #4ade80;
  background: rgba(22,101,52,0.3);
}
.card-desc {
  color: #9ca3af;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #9ca3af;
}
.card-meta strong { color: #e5e7eb; }
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.15rem;
}
.card-tag {
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: rgba(31,41,55,0.9);
  color: #9ca3af;
  font-size: 0.7rem;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
}
.card-link {
  color: #a5b4fc;
  text-decoration: none;
  font-size: 0.75rem;
}
.card-share-button {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: #020617;
  color: #e5e7eb;
  font-size: 0.72rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.card-share-button:hover {
  background: #111827;
}
.empty {
  font-size: 0.8rem;
  color: #9ca3af;
  padding: 0.4rem 0;
}
footer {
  margin-top: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(31,41,55,0.9);
  font-size: 0.75rem;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
}
.footer-left {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
}
.footer-right {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.footer-link {
  color: #9ca3af;
  text-decoration: none;
}
.footer-link:hover {
  color: #e5e7eb;
}
.footer-live {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.75rem;
  font-size: 0.75rem;
  color: #9ca3af;
}
.footer-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.25);
}
.toast {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 80;
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  font-size: 0.8rem;
  border: 1px solid rgba(55,65,81,0.9);
  background: rgba(15,23,42,0.98);
  color: #e5e7eb;
  box-shadow: 0 18px 45px rgba(15,23,42,0.9);
  animation: toast-in 0.18s ease-out;
}
.toast-success {
  border-color: rgba(34,197,94,0.8);
}
.toast-hide {
  animation: toast-out 0.22s ease-in forwards;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(6px); }
}
.support-chat-button {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(129,140,248,0.9);
  background: radial-gradient(circle at top left, rgba(59,130,246,0.22) 0, transparent 60%), rgba(15,23,42,0.98);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 22px 60px rgba(15,23,42,0.9);
}
.support-chat-icon {
  font-size: 1.2rem;
}
.support-chat-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 4.5rem;
  width: 320px;
  max-width: calc(100% - 2.5rem);
  border-radius: 0.9rem;
  border: 1px solid rgba(31,41,55,0.9);
  background: radial-gradient(circle at top, rgba(56,189,248,0.16) 0, transparent 55%), rgba(15,23,42,0.98);
  box-shadow: 0 24px 70px rgba(0,0,0,0.85);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 90;
}
.support-chat-panel-open {
  display: flex;
}
.support-chat-header {
  padding: 0.55rem 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(31,41,55,0.9);
}
.support-chat-title {
  font-size: 0.85rem;
  font-weight: 600;
}
.support-chat-close {
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1.1rem;
}
.support-chat-body {
  padding: 0.5rem 0.55rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.support-chat-messages {
  flex: 1 1 auto;
  min-height: 140px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 0.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.support-chat-message {
  max-width: 90%;
  align-self: flex-start;
  padding: 0.35rem 0.45rem;
  border-radius: 0.7rem;
  background: rgba(30,64,175,0.3);
  border: 1px solid rgba(129,140,248,0.6);
  font-size: 0.78rem;
}
.support-chat-message-own {
  align-self: flex-end;
  background: rgba(22,163,74,0.3);
  border-color: rgba(74,222,128,0.7);
}
.support-chat-message-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  margin-bottom: 0.1rem;
}
.support-chat-message-author {
  font-weight: 600;
}
.support-chat-message-time {
  color: #9ca3af;
}
.support-chat-message-text {
  font-size: 0.78rem;
}
.support-chat-form {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.support-chat-input {
  width: 100%;
  min-height: 50px;
  max-height: 100px;
  resize: vertical;
  background: #020617;
  border-radius: 0.6rem;
  border: 1px solid rgba(148,163,184,0.7);
  padding: 0.35rem 0.55rem;
  color: #e5e7eb;
  font-size: 0.78rem;
}
.support-chat-send {
  align-self: flex-end;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(129,140,248,0.9);
  background: rgba(37,99,235,0.85);
  color: #e5e7eb;
  font-size: 0.78rem;
  cursor: pointer;
}
.support-chat-send:hover {
  background: rgba(37,99,235,1);
}
.admin-layout {
  align-items: stretch;
}
.admin-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.admin-subtitle {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.admin-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.admin-form-row label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #9ca3af;
}
.admin-form-row input,
.admin-form-row select {
  background: #020617;
  border-radius: 0.5rem;
  border: 1px solid rgba(148,163,184,0.6);
  padding: 0.4rem 0.55rem;
  color: #e5e7eb;
  font-size: 0.8rem;
}
.admin-form-grow {
  flex: 1 1 180px;
}
.admin-form-row-billing {
  align-items: flex-end;
}
.admin-form-paid-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(15,23,42,0.9);
}
.admin-form-paid-toggle input[type="checkbox"] {
  width: 14px;
  height: 14px;
}
.admin-form-price {
  min-width: 140px;
}
.related-section {
  margin-top: 2.5rem;
}
.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-form-status {
  font-size: 0.75rem;
  color: #9ca3af;
}
.admin-list-section {
  margin-top: 1rem;
}
.admin-list-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}
.admin-menu {
  margin-bottom: 0.85rem;
}
.admin-menu-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.admin-menu-item {
  display: inline-flex;
}
.admin-menu-link {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  font-size: 0.78rem;
  cursor: pointer;
}
.admin-menu-link:hover {
  border-color: rgba(129,140,248,0.9);
}
.admin-menu-link-active {
  background: rgba(37,99,235,0.35);
  border-color: rgba(129,140,248,1);
}
.admin-item {
  border-radius: 0.75rem;
  border: 1px solid rgba(31,41,55,0.9);
  background: rgba(15,23,42,0.95);
  padding: 0.6rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
}
.admin-item-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(31,41,55,0.9);
  margin-bottom: 0.25rem;
}
.admin-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-item-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #6b7280;
}
.admin-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.admin-item-name {
  font-weight: 600;
}
.admin-item-meta {
  color: #9ca3af;
}
.admin-item-tags {
  color: #9ca3af;
}
.admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}
.admin-edit-button {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(129,140,248,0.9);
  background: rgba(30,64,175,0.7);
  color: #e5e7eb;
  font-size: 0.75rem;
  cursor: pointer;
}
.admin-edit-button:hover {
  background: rgba(30,64,175,0.9);
}
.admin-delete-button {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(248,113,113,0.9);
  background: rgba(127,29,29,0.85);
  color: #fee2e2;
  font-size: 0.75rem;
  cursor: pointer;
}
.admin-delete-button:hover {
  background: rgba(153,27,27,0.95);
}
@media (min-width: 1280px) {
  .admin-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.video-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 60;
}
.video-lightbox-visible {
  display: block;
}
.video-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.8);
}
.video-lightbox-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.video-lightbox-frame {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
}
.video-lightbox-frame iframe {
  width: 100%;
  height: 100%;
}
.video-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  z-index: 2;
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 1.6rem;
  cursor: pointer;
}
.tnc-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 70;
}
.tnc-visible {
  display: flex;
}
.tnc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.85);
}
.tnc-dialog {
  position: relative;
  z-index: 1;
  margin: auto;
  max-width: 420px;
  width: 100%;
  padding: 1.1rem 1.25rem;
  border-radius: 0.9rem;
  background: rgba(15,23,42,0.98);
  border: 1px solid rgba(55,65,81,0.9);
  box-shadow: 0 24px 60px rgba(0,0,0,0.85);
}
.tnc-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.tnc-text {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0.35rem;
}
.tnc-field-group {
  margin-top: 0.4rem;
}
.tnc-dialog label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #9ca3af;
}
.tnc-dialog input,
.tnc-dialog select {
  background: #020617;
  border-radius: 0.5rem;
  border: 1px solid rgba(148,163,184,0.6);
  padding: 0.4rem 0.6rem;
  color: #e5e7eb;
  font-size: 0.8rem;
}
.tnc-actions {
  margin-top: 0.6rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}
.earnings-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 65;
}
.earnings-visible {
  display: flex;
}
.earnings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.8);
}
.earnings-dialog {
  position: relative;
  z-index: 1;
  margin: auto;
  max-width: 460px;
  width: 100%;
  padding: 1.2rem 1.3rem;
  border-radius: 0.9rem;
  background: rgba(15,23,42,0.98);
  border: 1px solid rgba(55,65,81,0.9);
  box-shadow: 0 24px 60px rgba(0,0,0,0.85);
}
.earnings-close {
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 1.3rem;
  cursor: pointer;
}
.earnings-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.earnings-text {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0.35rem;
}
.earnings-converter {
  margin-top: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.6rem;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(55,65,81,0.9);
}
.earnings-label {
  font-size: 0.75rem;
  color: #9ca3af;
}
.earnings-row {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.earnings-input {
  flex: 1 1 0;
  background: #020617;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  padding: 0.35rem 0.7rem;
  color: #e5e7eb;
  font-size: 0.8rem;
}
.earnings-equals {
  font-size: 0.8rem;
  color: #9ca3af;
}
.earnings-amount {
  font-size: 0.9rem;
  font-weight: 650;
  color: #a5b4fc;
}
.earnings-rate {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: #9ca3af;
}
.earnings-actions {
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}
.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(260px, 1.1fr);
  gap: 1rem;
  align-items: stretch;
}
.community-panel {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.community-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.community-title {
  font-size: 1.1rem;
  font-weight: 600;
}
.community-subtitle {
  font-size: 0.8rem;
  color: #9ca3af;
}
.community-main {
  display: grid;
  grid-template-columns: minmax(200px, 0.9fr) minmax(0, 2.1fr);
  gap: 0.8rem;
  min-height: 460px;
}
.community-rooms {
  border-radius: 0.8rem;
  border: 1px solid rgba(31,41,55,0.9);
  background: rgba(15,23,42,0.96);
  padding: 0.6rem 0.7rem;
  font-size: 0.78rem;
}
.community-rooms-header {
  margin-bottom: 0.4rem;
}
.community-rooms-title {
  font-size: 0.9rem;
  font-weight: 600;
}
.community-rooms-hint {
  font-size: 0.75rem;
  color: #9ca3af;
}
.community-room-list {
  list-style: none;
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.community-room-item {
}
.community-room-button {
  width: 100%;
  border-radius: 0.55rem;
  border: 1px solid rgba(31,41,55,0.9);
  background: radial-gradient(circle at left, rgba(59,130,246,0.16) 0, transparent 60%), rgba(15,23,42,0.98);
  padding: 0.4rem 0.45rem;
  color: #e5e7eb;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: left;
}
.community-room-button:hover {
  border-color: rgba(129,140,248,0.9);
}
.community-room-name {
  font-size: 0.8rem;
  font-weight: 600;
}
.community-room-desc {
  font-size: 0.72rem;
  color: #9ca3af;
}
.community-chat {
  border-radius: 0.8rem;
  border: 1px solid rgba(31,41,55,0.9);
  background: radial-gradient(circle at top, rgba(56,189,248,0.12) 0, transparent 55%), rgba(15,23,42,0.98);
  padding: 0.6rem 0.7rem;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.community-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.community-active-room {
  font-size: 0.95rem;
  font-weight: 600;
}
.community-active-room-desc {
  font-size: 0.75rem;
  color: #9ca3af;
}
.community-user-indicator {
  font-size: 0.75rem;
  color: #a5b4fc;
}
.community-user-guest {
  color: #f97316;
}
.community-messages {
  flex: 1 1 auto;
  border-radius: 0.6rem;
  border: 1px solid rgba(31,41,55,0.9);
  background: rgba(15,23,42,0.96);
  padding: 0.45rem 0.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.community-join-notice {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #fbbf24;
}
.community-message {
  max-width: 90%;
  align-self: flex-start;
  padding: 0.35rem 0.45rem;
  border-radius: 0.7rem;
  background: rgba(30,64,175,0.3);
  border: 1px solid rgba(129,140,248,0.6);
}
.community-message-own {
  align-self: flex-end;
  background: rgba(22,163,74,0.3);
  border-color: rgba(74,222,128,0.7);
}
.community-message-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  margin-bottom: 0.15rem;
}
.community-message-author {
  font-weight: 600;
}
.community-message-time {
  color: #9ca3af;
}
.community-message-text {
  font-size: 0.8rem;
  color: #e5e7eb;
}
.community-message-image {
  margin-top: 0.25rem;
}
.community-message-image img {
  max-width: 220px;
  border-radius: 0.5rem;
  border: 1px solid rgba(30,64,175,0.8);
}
.community-message-form {
  margin-top: 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.community-message-row {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
}
.community-message-input {
  flex: 1 1 0;
  background: #020617;
  border-radius: 0.75rem;
  border: 1px solid rgba(148,163,184,0.7);
  padding: 0.35rem 0.6rem;
  color: #e5e7eb;
  font-size: 0.8rem;
  resize: vertical;
  min-height: 36px;
  max-height: 120px;
}
.community-image-input {
  font-size: 0.7rem;
  color: transparent;
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
}
.community-image-input::file-selector-button {
  display: none;
}
.community-send-button {
  display: none;
}
.community-send-icon {
  font-size: 0.8rem;
}
.community-message-hint {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: #9ca3af;
}
@media (max-width: 900px) {
  .community-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .community-messages {
    max-height: 360px;
  }
}
.referral-url-box {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.referral-url-input {
  flex: 1 1 0;
  background: #020617;
  border-radius: 0.5rem;
  border: 1px solid rgba(148,163,184,0.6);
  padding: 0.4rem 0.6rem;
  color: #e5e7eb;
  font-size: 0.8rem;
}
.referral-copy-button {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: #0f172a;
  color: #e5e7eb;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.referral-copy-button:hover {
  background: #111827;
}
.referral-copy-icon {
  font-size: 0.8rem;
}
.referral-hint {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: #9ca3af;
}
.referral-warning {
  margin-top: 0.5rem;
  font-size: 0.74rem;
  color: #f97316;
}
