@import "https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap";

/* src/index.css */
:root {
  color-scheme: dark;
  font-family:
    "Plus Jakarta Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  font-weight: 400;
  background-color: #0b0f1a;
  color: #f5f7ff;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-1: 0 10px 24px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 16px 32px rgba(0, 0, 0, 0.38);
  --bg: #0b0f1a;
  --card: #121a2b;
  --accent: #e67e22;
  --accent-2: #f5c16c;
  --text: #f5f7ff;
  --muted: #9aa4b2;
  --border: #1d2a44;
  --transition-fast: 0.18s ease;
  --transition-slow: 0.28s ease;
}
html {
  -webkit-text-size-adjust: 100%;
}
.theme-light {
  color-scheme: light;
  background-color: #f5f7fb;
  color: #0f172a;
  --bg: #f5f7fb;
  --card: #ffffff;
  --card-tint: rgba(255, 255, 255, 0.7);
  --card-strong: rgba(255, 255, 255, 0.9);
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --text: #0f172a;
  --muted: #334155;
  --border: #e2e8f0;
}
.theme-light body {
  background:
    radial-gradient(
      circle at top,
      #ffffff,
      #eef2f7 60%);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top,
      #1a2340,
      #0b0f1a 60%);
}
#root {
  min-height: 100vh;
}
h1,
h2,
h3 {
  margin: 0 0 8px;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font-family: inherit;
}
@media (max-width: 900px) {
  input:not([type=date]),
  select,
  textarea {
    font-size: 16px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* src/App.css */
.app,
:root {
  --topbar-height: 60px;
}
.admin-requests-page {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 170px);
  overflow: hidden;
  gap: 12px;
}
.admin-requests-page .admin-request-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.admin-requests-page .admin-request-heading h2 {
  margin: 0;
  font-size: 20px;
}
.admin-requests-page .admin-request-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.admin-requests-page .admin-request-summary {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.admin-requests-page .admin-request-summary strong {
  font-size: 20px;
  color: var(--accent);
}
.admin-requests-page .admin-request-summary span,
.admin-requests-page .admin-request-sync-time {
  color: var(--muted);
  font-size: 11px;
}
.admin-requests-page .admin-request-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 1px;
}
.admin-requests-page .admin-request-tabs::-webkit-scrollbar {
  display: none;
}
.admin-requests-page .admin-request-tabs button {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.admin-requests-page .admin-request-tabs button strong {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  font-size: 10px;
}
.admin-requests-page .admin-request-tabs button.active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(218, 175, 80, 0.1);
}
.admin-requests-page .admin-request-tabs button.active strong {
  background: var(--accent);
  color: #15120b;
}
.admin-requests-page .admin-request-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 150px auto auto;
  align-items: center;
  gap: 8px;
}
.admin-requests-page .admin-request-search {
  position: relative;
  min-width: 0;
}
.admin-requests-page .admin-request-search input,
.admin-requests-page .admin-request-toolbar select {
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 7px 34px 7px 10px;
  border-radius: 6px;
  font-size: 12px;
}
.admin-requests-page .admin-request-toolbar select {
  padding-right: 8px;
}
.admin-requests-page .admin-request-search button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.admin-requests-page .admin-request-list-container {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(8, 14, 30, 0.38);
  scrollbar-gutter: stable;
  overflow-anchor: none;
}
.admin-requests-page .admin-request-list-container .table {
  table-layout: fixed;
  width: 100%;
}
.admin-requests-page .admin-request-list-container thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--card);
}
.admin-requests-page .admin-request-list-container th,
.admin-requests-page .admin-request-list-container td {
  padding: 8px 10px;
  vertical-align: middle;
}
.admin-requests-page .col-request-title {
  width: 32%;
}
.admin-requests-page .col-request-user {
  width: 15%;
}
.admin-requests-page .col-request-date {
  width: 11%;
}
.admin-requests-page .col-request-status {
  width: 15%;
}
.admin-requests-page .col-request-actions {
  width: 27%;
}
.admin-requests-page .request-expand {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.admin-requests-page .request-thumb {
  width: 48px;
  height: 72px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.admin-requests-page .request-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.admin-requests-page .request-title {
  min-width: 0;
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
}
.admin-requests-page .request-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-requests-page .request-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.admin-requests-page .request-chip {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 4px;
  padding: 2px 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
}
.admin-requests-page .request-caret {
  color: var(--muted);
  font-size: 14px;
  transition: transform 0.15s ease;
}
.admin-requests-page .request-caret.is-open {
  transform: rotate(90deg);
}
.admin-requests-page .col-request-user,
.admin-requests-page .col-request-date {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.admin-requests-page .request-status-stack {
  display: grid;
  justify-items: start;
  gap: 5px;
}
.admin-requests-page .request-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.admin-requests-page .request-status.pending {
  color: #f3c969;
  border-color: rgba(243, 201, 105, 0.4);
  background: rgba(243, 201, 105, 0.1);
}
.admin-requests-page .request-status.approved,
.admin-requests-page .request-status.progress {
  color: #8fc5ff;
  border-color: rgba(92, 161, 236, 0.42);
  background: rgba(46, 114, 190, 0.13);
}
.admin-requests-page .request-status.available {
  color: #82d6a5;
  border-color: rgba(78, 190, 124, 0.4);
  background: rgba(52, 168, 101, 0.12);
}
.admin-requests-page .request-status.failed,
.admin-requests-page .request-status.rejected {
  color: #ff9c9c;
  border-color: rgba(239, 92, 92, 0.42);
  background: rgba(205, 62, 62, 0.12);
}
.admin-requests-page .request-progress {
  width: min(120px, 100%);
  height: 5px;
  position: relative;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.18);
}
.admin-requests-page .request-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #5ca1ec;
}
.admin-requests-page .request-progress small {
  position: absolute;
  left: calc(100% + 5px);
  top: -5px;
  color: var(--muted);
  font-size: 9px;
}
.admin-requests-page .request-notification,
.admin-requests-page .request-availability {
  color: var(--muted);
  font-size: 9px;
}
.admin-requests-page .request-notification.sent {
  color: #82d6a5;
}
.admin-requests-page .request-notification.unsent {
  color: #f3c969;
}
.admin-requests-page .request-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
}
.admin-requests-page .request-row-actions .btn {
  min-width: 0;
  margin: 0;
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 10px;
}
.admin-requests-page .request-delete-action {
  color: #ff9c9c;
  border-color: rgba(239, 92, 92, 0.3);
}
.admin-requests-page .request-detail-row td {
  padding: 0;
  background: rgba(15, 23, 42, 0.34);
}
.admin-requests-page .request-detail-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 16px;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
}
.admin-requests-page .request-detail-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.admin-requests-page .request-detail-copy strong {
  font-size: 13px;
}
.admin-requests-page .request-detail-copy span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.admin-requests-page .request-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
}
.admin-requests-page .request-detail-facts div {
  min-width: 0;
}
.admin-requests-page .request-detail-facts dt {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}
.admin-requests-page .request-detail-facts dd {
  margin: 2px 0 0;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.admin-requests-page .request-failure-reason,
.admin-requests-page .request-mobile-failure {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 10px;
  border-left: 3px solid #dc5a5a;
  background: rgba(205, 62, 62, 0.1);
  color: #ffb1b1;
  font-size: 11px;
  line-height: 1.4;
}
.admin-requests-page .admin-request-mobile-list {
  display: none;
  overflow-anchor: none;
}
@media (min-width: 821px) {
  .admin-requests-page .admin-request-list-container {
    height: calc(100vh - 390px);
    min-height: 300px;
    max-height: 700px;
    flex: 0 0 auto;
  }
}
@media (min-width: 821px) and (max-height: 700px) {
  .admin-requests-page .admin-request-list-container {
    min-height: 240px;
  }
}
@media (max-width: 820px) {
  .app.role-user .support-chat-page {
    display: flex;
    height: calc(100dvh - var(--topbar-height, 64px) - var(--bottom-nav-height, 96px) - env(safe-area-inset-bottom) - 42px);
    min-height: 420px;
    max-height: none;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    box-shadow: none;
  }
  .support-chat-page .section-heading {
    flex: 0 0 auto;
    margin: 0;
    padding: 11px 12px 10px;
    border-bottom: 1px solid var(--border);
  }
  .support-chat-page .section-heading h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0;
  }
  .support-chat-page .section-copy {
    margin: 2px 0 0;
    font-size: 10px;
    line-height: 1.3;
  }
  .app.role-user .support-chat-window {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    gap: 7px;
    padding: 10px 8px;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
  .support-chat-empty {
    margin: auto;
    padding: 20px;
    font-size: 12px;
    text-align: center;
  }
  .support-chat-bubble {
    max-width: 82%;
    gap: 3px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 13px;
  }
  .support-chat-bubble.user {
    border-bottom-right-radius: 4px;
  }
  .support-chat-bubble.admin {
    border-bottom-left-radius: 4px;
  }
  .support-chat-meta {
    gap: 8px;
    font-size: 9px;
  }
  .support-chat-text {
    line-height: 1.35;
  }
  .support-chat-attachment {
    margin-top: 4px;
  }
  .support-chat-attachment img {
    max-width: 220px;
    border-radius: 8px;
  }
  .app.role-user .support-chat-compose {
    position: static;
    flex: 0 0 auto;
    gap: 6px;
    padding: 8px;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: rgba(9, 18, 37, 0.96);
    backdrop-filter: blur(10px);
  }
  .theme-light .app.role-user .support-chat-compose {
    background: rgba(255, 255, 255, 0.96);
  }
  .support-chat-compose-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: end;
    gap: 6px;
  }
  .app.role-user .support-chat-compose textarea {
    field-sizing: content;
    width: 100%;
    min-height: 40px;
    max-height: 96px;
    margin: 0;
    padding: 9px 11px;
    overflow-y: auto;
    resize: none;
    border-radius: 18px;
    font-size: 16px;
    line-height: 1.3;
  }
  .app.role-user .support-chat-compose .support-chat-icon {
    display: inline-grid;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    place-items: center;
    border-radius: 50%;
  }
  .support-chat-icon svg {
    width: 18px;
    height: 18px;
  }
  .support-chat-send:disabled {
    opacity: 0.42;
  }
  .support-chat-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: support-chat-spin 0.7s linear infinite;
  }
  @keyframes support-chat-spin {
    to {
      transform: rotate(360deg);
    }
  }
  .support-chat-upload-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 2px;
  }
  .support-chat-upload-preview img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
  }
  .app.role-user .support-chat-upload-preview .btn {
    min-height: 30px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 10px;
  }
  .support-chat-feedback {
    margin: 0;
    padding: 4px 6px;
    font-size: 10px !important;
    line-height: 1.3 !important;
  }
  .support-chat-page.keyboard-open {
    height: calc(100dvh - var(--topbar-height, 64px) - 24px);
    min-height: 280px;
    padding-bottom: 0 !important;
  }
}
@media (max-width: 820px) {
  html:has(.app.role-user),
  body:has(.app.role-user),
  #root:has(.app.role-user) {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
  }
  body:has(.app.role-user) {
    padding-bottom: 0 !important;
  }
  .app.role-user {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 0 calc(12px + env(safe-area-inset-right)) 0 calc(12px + env(safe-area-inset-left)) !important;
    gap: 0;
    overflow: hidden;
  }
  .app.role-user .app-shell.has-session {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    padding-top: calc(var(--topbar-height, 64px) + env(safe-area-inset-top) + 16px);
    padding-bottom: calc(var(--bottom-nav-height, 96px) + env(safe-area-inset-bottom));
    overflow: hidden !important;
  }
  .app.role-user::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(var(--topbar-height, 64px) + env(safe-area-inset-top) + 16px);
    z-index: 999;
    pointer-events: none;
    background: #0b0f1a;
  }
  .app.role-user > .topbar {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 8px);
    left: calc(12px + env(safe-area-inset-left));
    right: calc(12px + env(safe-area-inset-right));
    width: auto;
    z-index: 1000;
    isolation: isolate;
    border-radius: 8px;
    background: #121a2b;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 8px 16px rgba(2, 6, 23, 0.28);
  }
  .theme-light .app.role-user > .topbar {
    background: #ffffff;
  }
  .theme-light .app.role-user::before {
    background: #f5f7fb;
  }
  .app.role-user .app-shell.has-session .page-transition {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  .app.role-user .app-shell.has-session > .grid {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    padding: 0 0 8px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .app.role-user .app-shell.has-session > .grid::-webkit-scrollbar {
    display: none;
  }
  .app.role-user .app-shell.has-session > .grid > .page-transition {
    width: 100%;
    min-height: 0;
  }
  .app.role-user .grid .card:not(.user-home):not(.support-chat-page) {
    padding: 12px;
    border-radius: 8px;
    box-shadow: none;
  }
  .app.role-user .grid .card-header {
    gap: 8px;
    margin-bottom: 10px;
  }
  .app.role-user .grid .card-header h2 {
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: 0;
  }
  .app.role-user .grid .count,
  .app.role-user .grid .muted,
  .app.role-user .grid .note {
    font-size: 11px;
    line-height: 1.4;
  }
  .app.role-user .grid .btn,
  .app.role-user .grid input,
  .app.role-user .grid select,
  .app.role-user .grid textarea,
  .app.role-user .grid .tab-button,
  .app.role-user .grid .settings-group,
  .app.role-user .grid .plan-card,
  .app.role-user .grid .transfer-card,
  .app.role-user .grid .slip-preview {
    border-radius: 8px;
  }
  .app.role-user .payments-page .table-wrap,
  .app.role-user .subscriptions-page .table-wrap {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  .app.role-user .app-shell.has-session > .grid:has(.support-chat-page),
  .app.role-user .page-transition:has(.support-chat-page) {
    overflow: hidden !important;
  }
  .app.role-user .page-transition:has(.support-chat-page),
  .app.role-user .support-chat-page {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
  }
  body:has(.support-chat-page.keyboard-open) .app.role-user .app-shell.has-session {
    padding-bottom: 8px;
  }
}
@media (max-width: 820px) {
  .bottom-nav {
    width: 100%;
    max-width: 100vw;
    overflow-x: scroll;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .bottom-nav .bottom-link {
    flex: 0 0 auto;
  }
  .admin-requests-page,
  .admin-requests-page .admin-request-mobile-list,
  .admin-requests-page .admin-request-mobile-item {
    touch-action: pan-y;
  }
}
@media (max-width: 820px) {
  .app-shell.route-payments-received,
  .app-shell.route-payments-received .page-transition {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .payments-received-page {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .payments-received-page::after {
    content: "";
    display: block;
    width: 100%;
    height: calc(var(--bottom-nav-height, 96px) + env(safe-area-inset-bottom) + 28px);
    flex: 0 0 calc(var(--bottom-nav-height, 96px) + env(safe-area-inset-bottom) + 28px);
  }
  .payments-received-page .table-wrap {
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    scroll-padding-bottom: calc(var(--bottom-nav-height, 96px) + env(safe-area-inset-bottom) + 20px);
  }
  .bottom-nav {
    background: #0c1220;
  }
  .theme-light .bottom-nav {
    background: #ffffff;
  }
}
.admin-requests-page .request-modal-card {
  border-radius: 8px;
}
@media (max-width: 820px) {
  .admin-requests-page {
    max-height: none;
    overflow: visible;
    gap: 10px;
  }
  .admin-requests-page .admin-request-heading {
    align-items: flex-start;
  }
  .admin-requests-page .admin-request-heading h2 {
    font-size: 18px;
  }
  .admin-requests-page .admin-request-tabs {
    margin-inline: -4px;
    padding-inline: 4px;
  }
  .admin-requests-page .admin-request-tabs button {
    min-height: 40px;
    padding-inline: 11px;
  }
  .admin-requests-page .admin-request-toolbar {
    grid-template-columns: minmax(0, 1fr) 132px;
  }
  .admin-requests-page .admin-request-toolbar .btn {
    min-height: 40px;
  }
  .admin-requests-page .admin-request-sync-time {
    text-align: right;
  }
  .admin-requests-page .admin-request-desktop {
    display: none;
  }
  .admin-requests-page .admin-request-mobile-list {
    display: grid;
    gap: 8px;
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }
  .admin-requests-page .admin-request-mobile-item {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(8, 14, 30, 0.44);
    padding: 10px;
    display: grid;
    gap: 9px;
  }
  .admin-requests-page .admin-request-mobile-main {
    min-width: 0;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
  }
  .admin-requests-page .admin-request-mobile-main .request-thumb {
    width: 64px;
    height: 96px;
  }
  .admin-requests-page .admin-request-mobile-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
  }
  .admin-requests-page .admin-request-mobile-copy strong {
    font-size: 14px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  .admin-requests-page .admin-request-mobile-copy span {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .admin-requests-page .admin-request-mobile-status {
    min-height: 24px;
  }
  .admin-requests-page .admin-request-mobile-status .request-status-stack {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
  }
  .admin-requests-page .admin-request-mobile-status .request-progress {
    flex: 1 1 100px;
    max-width: 150px;
  }
  .admin-requests-page .request-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-requests-page .request-row-actions .btn {
    min-height: 42px;
    width: 100%;
    font-size: 11px;
  }
  .admin-requests-page .request-detail-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 10px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
  .admin-requests-page .request-detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-requests-page .request-modal {
    align-items: flex-end;
  }
  .admin-requests-page .request-modal-card {
    width: 100%;
    max-height: 90vh;
    border-radius: 8px 8px 0 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 480px) {
  .admin-requests-page .admin-request-toolbar {
    grid-template-columns: 1fr;
  }
  .admin-requests-page .admin-request-sync-time {
    text-align: left;
  }
  .admin-requests-page .admin-request-summary span {
    display: none;
  }
}
.app {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-7);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.app-shell.has-session {
  display: grid;
  gap: var(--space-4);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  justify-content: space-between;
  min-height: var(--topbar-height);
  background: rgba(18, 26, 43, 0.7);
  border: 1px solid var(--border);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-1);
  box-sizing: border-box;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  font-family: inherit;
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}
h1 {
  font-size: 20px;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 16px;
}
h4 {
  font-size: 14px;
}
.card-header h2 {
  font-size: 18px;
  font-weight: 700;
}
.section-title {
  font-size: 14px;
  font-weight: 700;
}
.count {
  font-size: 12px;
  font-weight: 600;
}
.muted,
.note {
  font-size: 12px;
  font-weight: 500;
}
.nav {
  display: flex;
  gap: 10px;
}
.sidebar-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 10px;
}
.sidebar {
  display: block;
  background: rgba(18, 26, 43, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-1);
}
.theme-light .topbar,
.theme-light .sidebar {
  background: var(--card-tint);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}
.theme-light .mini-card,
.theme-light .subscription-card,
.theme-light .transfer-card,
.theme-light .status-card,
.theme-light .slip-preview,
.theme-light .slip-preview-body {
  background: var(--card-strong);
  backdrop-filter: blur(10px);
  border-color: var(--border);
}
.theme-light .mini-card .mono-line {
  background: var(--card-strong);
  border-color: var(--border);
  color: var(--text);
}
.theme-light .settings-page .settings-group,
.theme-light .form-card,
.theme-light .plan-card {
  background: var(--card-strong);
  backdrop-filter: blur(10px);
  border-color: var(--border);
}
.theme-light .plan-card::after {
  background:
    radial-gradient(
      circle at top right,
      rgba(37, 99, 235, 0.2),
      transparent 60%);
}
.sidebar .nav {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.sidebar .nav-link {
  width: 100%;
}
.nav-link {
  color: var(--muted);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.nav-link:hover {
  color: var(--accent-2);
  border-color: rgba(245, 193, 108, 0.4);
}
.nav-link.active {
  color: var(--accent-2);
  border-color: var(--accent-2);
  background: rgba(245, 193, 108, 0.1);
}
.nav-icon {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  background: rgba(15, 22, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.theme-light .nav-icon {
  background: rgba(226, 232, 240, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text);
}
.nav-icon svg {
  width: 16px;
  height: 16px;
}
.nav-text {
  white-space: nowrap;
}
.session {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.topbar-user {
  margin-left: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}
.store-badge {
  height: 40px;
  width: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-2);
}
.login-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(20px, 4vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(45, 55, 75, 0.7);
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(255, 186, 82, 0.22),
      transparent 45%),
    radial-gradient(
      circle at 70% 15%,
      rgba(255, 99, 132, 0.2),
      transparent 42%),
    radial-gradient(
      circle at 80% 85%,
      rgba(56, 189, 248, 0.18),
      transparent 50%),
    linear-gradient(
      120deg,
      #080b16 0%,
      #0f182a 45%,
      #0b1220 100%);
  overflow: hidden;
  min-height: clamp(520px, 65vh, 680px);
  box-shadow: 0 30px 80px rgba(5, 10, 25, 0.55);
}
.login-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(9, 14, 27, 0.94) 0%,
      rgba(9, 14, 27, 0.2) 45%,
      rgba(9, 14, 27, 0.94) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 70px),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 110px);
  opacity: 0.55;
  pointer-events: none;
}
.login-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(7, 11, 20, 0.95),
      rgba(7, 11, 20, 0.4) 45%,
      transparent 70%),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.08),
      transparent 40%),
    radial-gradient(
      circle at 65% 80%,
      rgba(255, 165, 0, 0.08),
      transparent 35%);
  opacity: 0.85;
  pointer-events: none;
}
.login-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  color: #e5e7eb;
}
.login-kicker {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 12px;
  color: rgba(248, 250, 252, 0.6);
}
.login-hero h1 {
  font-size: clamp(26px, 4vw, 40px);
}
.login-tagline {
  font-size: clamp(14px, 2vw, 16px);
  color: rgba(226, 232, 240, 0.85);
  max-width: 460px;
}
.login-highlights {
  display: grid;
  gap: 10px;
}
.login-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(226, 232, 240, 0.7);
}
.login-panel {
  position: relative;
  z-index: 2;
  align-self: center;
  backdrop-filter: blur(12px);
  background: rgba(10, 15, 28, 0.7);
  border: 1px solid rgba(66, 78, 102, 0.7);
}
@media (max-width: 920px) {
  .login-screen {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .login-hero {
    text-align: left;
  }
  .login-panel {
    width: 100%;
  }
}
@media (max-width: 620px) {
  .login-screen {
    padding: 18px;
    min-height: auto;
  }
  .login-highlights {
    grid-template-columns: 1fr;
  }
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.tab-row {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}
.tab-button {
  border: 1px solid var(--border);
  background: rgba(15, 22, 39, 0.6);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.tab-button.active {
  color: var(--accent-2);
  border-color: var(--accent-2);
  background: rgba(245, 193, 108, 0.12);
}
.theme-light .tab-button {
  background: var(--card-strong);
  color: var(--muted);
  border-color: var(--border);
}
.theme-light .tab-button.active {
  background: rgba(37, 99, 235, 0.16);
  color: var(--text);
  border-color: var(--border);
}
.theme-light .nav-link.active {
  color: var(--text);
  border-color: var(--border);
  background: rgba(37, 99, 235, 0.16);
}
.theme-light .bottom-link.active {
  background: rgba(37, 99, 235, 0.16);
  color: var(--text);
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.page-transition {
  animation: pageFade 0.25s ease;
}
.app-shell.route-table-scroll {
  height: auto;
  overflow: visible;
}
.app-shell.route-table-scroll .page-transition {
  height: auto;
  overflow: visible;
  display: block;
  margin-top: 0;
}
.app-shell.route-table-scroll .grid {
  gap: 16px;
  flex: initial;
  margin-top: 0;
}
.app-shell.route-table-scroll .table-wrap {
  overflow: auto;
  max-height: none;
}
.app-shell.route-table-scroll .card {
  align-self: stretch;
}
@media (max-width: 820px) {
  h1 {
    font-size: 18px;
  }
  h2 {
    font-size: 16px;
  }
  h3 {
    font-size: 14px;
  }
  h4,
  .section-title {
    font-size: 12px;
  }
  .user-home .section-title {
    font-size: 19px;
  }
  .user-home .mini-title {
    font-size: 20px;
  }
  .user-home .mini-card-streaming-copy {
    font-size: 18px;
    line-height: 1.5;
  }
  .count {
    font-size: 11px;
  }
  .muted,
  .note {
    font-size: 11px;
  }
  .app-shell.route-table-scroll {
    height: auto;
    overflow: visible;
    display: grid;
    gap: var(--space-4);
  }
  .app-shell.route-table-scroll .page-transition {
    height: auto;
    overflow: visible;
    display: block;
    margin-top: var(--space-4);
  }
  .app-shell.route-table-scroll .grid {
    gap: 16px;
    margin-top: 0;
  }
  .app-shell.route-table-scroll .table-wrap {
    overflow: auto;
    max-height: none;
  }
}
.app-shell.route-payments-received .page-transition {
  height: 100%;
  overflow: hidden;
}
@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  justify-content: flex-start;
  gap: 6px;
  padding: 10px calc(12px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left));
  background: rgba(12, 18, 32, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index: 50;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
.theme-light .bottom-nav {
  background: var(--card-tint);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
}
.theme-light .card {
  background: var(--card-strong);
  border-color: var(--border);
  backdrop-filter: blur(10px);
}
.theme-light .bottom-link.active {
  background: rgba(22, 163, 74, 0.18);
  color: var(--accent-2);
}
.bottom-nav::-webkit-scrollbar {
  display: none;
}
.bottom-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 72px;
  position: relative;
}
.bottom-link.active {
  color: var(--accent-2);
  background: rgba(245, 193, 108, 0.12);
}
.nav-badge {
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1;
}
.bottom-badge {
  position: absolute;
  top: 2px;
  right: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 999px;
  line-height: 1;
}
.bottom-icon {
  width: 18px;
  height: 18px;
}
.bottom-link.active .bottom-icon {
  color: var(--accent-2);
}
.bottom-label {
  font-size: 11px;
}
.stack {
  display: grid;
  gap: 10px;
}
label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
input {
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f1627;
  color: var(--text);
  font-size: 14px;
}
.select {
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f1627;
  color: var(--text);
  font-size: 14px;
}
.textarea {
  min-height: 90px;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f1627;
  color: var(--text);
  font-size: 14px;
  resize: vertical;
}
input:focus {
  outline: 2px solid rgba(230, 126, 34, 0.6);
  border-color: var(--accent);
}
.btn {
  background: var(--accent);
  color: #1a0e00;
  border: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(230, 126, 34, 0.35);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.btn.ghost {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
}
.btn.small {
  padding: 5px 10px;
  font-size: 11px;
}
.btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.btn.primary {
  width: 100%;
}
.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.95rem;
}
.check-row input {
  width: auto;
  margin: 0;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.account-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  align-items: end;
  padding: 6px 0;
}
.emby-guide {
  display: grid;
  gap: 10px;
}
.emby-guide-steps {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.guide-step {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: start;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(12, 18, 30, 0.55);
}
.guide-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(25, 32, 49, 0.8);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 11px;
  color: var(--accent-2);
}
.guide-step .section-title {
  font-size: 12px;
  line-height: 1.2;
}
.guide-step .muted {
  font-size: 11px;
  line-height: 1.25;
}
.emby-guide-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.emby-guide-carousel {
  display: grid;
  gap: 8px;
  max-width: none;
  margin: 0 auto;
  width: 100%;
}
.emby-guide-track-wrap {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12, 18, 30, 0.7);
}
.emby-guide-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}
.emby-guide-slide {
  min-width: 100%;
  margin: 0;
  padding: 8px;
  display: grid;
  gap: 8px;
  justify-items: center;
}
.emby-guide-image-step {
  justify-self: start;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(245, 193, 108, 0.12);
  border: 1px solid rgba(245, 193, 108, 0.35);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  gap: 4px;
}
.emby-guide-image-step-number {
  display: block;
  font-size: 12px;
}
.emby-guide-image-step-text {
  display: block;
  color: var(--text);
  font-weight: 600;
  line-height: 1.35;
  white-space: pre-line;
  font-size: 13px;
}
.emby-guide-slide img {
  width: 100%;
  max-height: 572px;
  object-fit: contain;
}
.emby-guide-controls {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.emby-guide-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.emby-guide-next {
  min-width: 132px;
  font-size: 15px;
  padding: 11px 20px;
  justify-content: center;
}
.emby-guide-prev {
  min-width: 90px;
  justify-content: center;
}
@media (max-width: 720px) {
  .emby-guide-steps {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .emby-guide-carousel {
    max-width: 100%;
  }
  .emby-guide-track-wrap {
    overflow: visible;
    border: none;
    background: transparent;
  }
  .emby-guide-track {
    display: grid;
    gap: 10px;
    transform: none !important;
    will-change: auto;
  }
  .emby-guide-slide {
    min-width: 0;
    padding: 0;
  }
  .emby-guide-actions {
    width: 100%;
  }
  .emby-guide-next {
    min-width: 148px;
    font-size: 16px;
    padding: 12px 22px;
  }
  .emby-guide-image-step {
    width: 100%;
    padding: 10px 12px;
  }
  .emby-guide-image-step-number {
    font-size: 13px;
  }
  .emby-guide-image-step-text {
    font-size: 15px;
    line-height: 1.45;
  }
  .emby-guide-slide img {
    width: 70%;
    max-height: none;
  }
  .emby-guide-controls {
    display: none;
  }
}
.emby-guide-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.guide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}
.guide-dot.active {
  background: var(--accent-2);
  border-color: var(--accent-2);
}
.emby-guide figure {
  margin: 0;
  background: rgba(12, 18, 30, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
  justify-items: center;
}
.emby-guide img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.emby-guide figcaption {
  font-size: 12px;
  color: var(--muted);
}
.account-field {
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.settings-page {
  padding: 12px;
}
.settings-page .card-header {
  margin-bottom: 8px;
}
.settings-page .card-header h2 {
  font-size: 15px;
}
.settings-page .pill {
  font-size: 10px;
  padding: 2px 8px;
}
.settings-page .stack {
  gap: 10px;
}
.settings-page label {
  gap: 6px;
  font-size: 12px;
}
.settings-page input,
.settings-page .textarea {
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 8px;
}
.theme-light .settings-page input,
.theme-light .settings-page .textarea {
  background: #f8fafc;
  color: var(--text);
  border: 1px solid var(--border);
}
.theme-light input,
.theme-light textarea,
.theme-light select {
  background: #f8fafc;
  color: var(--text);
  border: 1px solid var(--border);
}
.settings-page .section-title {
  font-size: 12px;
  margin-top: 4px;
}
.settings-page .settings-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  background: rgba(15, 22, 39, 0.55);
  display: grid;
  gap: 10px;
}
.settings-page .settings-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.settings-page .settings-group.full {
  grid-column: 1 / -1;
}
.settings-page .settings-group + .settings-group {
  margin-top: 8px;
}
.settings-page .input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.prefix-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(15, 22, 39, 0.6);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  min-width: 52px;
}
.settings-page .input-row input {
  flex: 1;
  min-width: 220px;
}
.settings-page .account-copy {
  white-space: nowrap;
}
.settings-page .toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.settings-page .wizard-card {
  border: 1px solid rgba(37, 99, 235, 0.35);
  background:
    linear-gradient(
      145deg,
      rgba(37, 99, 235, 0.12),
      rgba(255, 255, 255, 0.05));
}
.settings-page .wizard-step {
  display: grid;
  gap: 8px;
}
.settings-page .wizard-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.settings-page .wizard-title {
  font-weight: 700;
  font-size: 14px;
}
.settings-page .wizard-body {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.settings-page .account-row {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  padding: 6px 0;
}
.settings-page .row {
  gap: 8px;
}
.settings-page .btn {
  padding: 8px 12px;
  font-size: 12px;
}
.note {
  font-size: 12px;
  color: var(--accent-2);
}
.note.success {
  color: #0f5132;
  background: rgba(25, 135, 84, 0.12);
  border: 1px solid rgba(25, 135, 84, 0.35);
  padding: 8px 10px;
  border-radius: 10px;
}
.note.danger {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  padding: 8px 10px;
  border-radius: 10px;
}
.muted {
  color: var(--muted);
}
.pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(230, 126, 34, 0.2);
  color: var(--accent-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.count {
  color: var(--muted);
  font-size: 12px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.table input[type=date] {
  padding: 5px 6px;
  font-size: 11px;
  border-radius: 8px;
}
.table-input {
  width: 100%;
  min-width: 80px;
  padding: 5px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f1627;
  color: var(--text);
  font-size: 11px;
  box-sizing: border-box;
}
.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 70vh;
}
.payments-page .table-wrap {
  margin-top: 0;
}
.form-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 22, 39, 0.6);
}
.section-title {
  font-weight: 700;
  margin-top: 8px;
}
.plan-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.plan-card {
  border: 1px solid var(--border);
  background:
    linear-gradient(
      140deg,
      rgba(20, 30, 52, 0.9),
      rgba(10, 15, 27, 0.95));
  border-radius: 16px;
  padding: 18px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  display: grid;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.plan-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(245, 193, 108, 0.18),
      transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.plan-card:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}
.small {
  font-size: 12px;
}
.slip-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.slip-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.slip-preview {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(18, 26, 43, 0.7);
  padding: 12px;
  display: grid;
  gap: 12px;
}
.slip-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.slip-title {
  font-weight: 600;
}
.slip-preview-body {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(15, 22, 39, 0.6);
  padding: 8px;
}
.slip-large {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px;
}
.slip-frame {
  width: 100%;
  height: 420px;
  border: none;
  border-radius: 8px;
  background: #0f1627;
}
.edit-row td {
  padding: 12px 8px;
}
.edit-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 22, 39, 0.7);
}
.plan-card:hover {
  border-color: rgba(245, 193, 108, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
}
.plan-card:hover::after {
  opacity: 1;
}
.plan-card.selected {
  border-color: var(--accent-2);
  box-shadow: 0 12px 24px rgba(230, 126, 34, 0.2);
}
.plan-header {
  display: grid;
  gap: 4px;
}
.plan-name {
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}
.plan-meta {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.plan-price {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}
.plan-period {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.plan-status {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-2);
}
.plan-features {
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.plan-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}
.plan-check {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 193, 108, 0.18);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
}
.plan-cta {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-2);
}
.transfer-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(18, 26, 43, 0.8);
}
.transfer-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}
.transfer-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  font-size: 13px;
}
.transfer-card .note {
  margin: 6px 0 10px;
  font-size: 13px;
}
.transfer-grid span {
  font-size: 11px;
}
.transfer-lines {
  display: grid;
  gap: 8px;
}
.transfer-line {
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.account-main {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.account-number-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.account-number {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.file-input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: rgba(15, 22, 39, 0.4);
  color: var(--text);
}
.table th,
.table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
.users-page {
  padding: 12px;
}
.users-page .card-header {
  margin-bottom: 8px;
}
.users-page .card-header h2 {
  font-size: 15px;
}
.users-page .count {
  font-size: 11px;
}
.users-page .tab-row {
  margin-bottom: 8px;
  gap: 6px;
}
.users-page .tab-button {
  padding: 4px 10px;
  font-size: 11px;
}
.users-page .table th,
.users-page .table td {
  padding: 6px 6px;
  font-size: 11px;
}
.users-page .table thead th {
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 2;
}
.users-page .table-wrap {
  margin-top: 8px;
  overflow-x: visible;
  max-height: 70vh;
  overflow-y: auto;
}
.users-page .table {
  table-layout: fixed;
}
.users-page .table th,
.users-page .table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.users-page .actions {
  flex-wrap: wrap;
  gap: 6px;
}
.users-page .actions.compact {
  align-items: center;
  justify-content: flex-start;
}
.manual-sms-modal {
  width: min(520px, 94vw);
}
.manual-sms-modal .modal-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}
.manual-sms-modal input,
.manual-sms-modal textarea {
  width: 100%;
}
.manual-sms-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.manual-sms-status {
  color: var(--text);
  text-align: right;
}
.manual-sms-picker {
  display: grid;
  gap: 8px;
}
.manual-sms-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.manual-sms-user-list {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 22, 39, 0.72);
}
.manual-sms-user {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--text);
}
.manual-sms-user.disabled {
  color: var(--muted);
  opacity: 0.7;
}
.manual-sms-user-phone {
  color: var(--muted);
  font-size: 12px;
}
.users-page input[type=date] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
}
.users-page input[type=date] {
  padding: 4px 6px;
  font-size: 10px !important;
  height: 24px;
}
.users-page .user-cell {
  gap: 6px;
}
.users-page .user-expand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.users-page .expand-caret {
  font-size: 11px;
  color: var(--muted);
}
.users-page .user-name {
  font-size: 11px;
  font-weight: 600;
}
.users-page .user-tags-inline {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.users-page .creator-tag {
  padding: 1px 6px;
  font-size: 8px;
}
.users-page .tag-row {
  margin-top: 4px;
  gap: 4px;
  flex-wrap: wrap;
  overflow: visible;
  align-items: center;
}
.users-page .tag-chip {
  padding: 1px 5px;
  font-size: 9px;
}
.users-page .tag-add-input,
.users-page .tag-edit-input {
  height: 22px;
  padding: 3px 6px;
  font-size: 9px;
  min-width: 90px;
}
.users-page .btn.small,
.users-page .btn.ghost.small {
  padding: 4px 8px;
  font-size: 10px;
}
.user-detail-row td {
  white-space: normal;
  overflow: visible;
  background: rgba(15, 22, 39, 0.6);
  border-bottom: 1px solid var(--border);
}
.user-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 12px;
  padding: 8px 6px;
}
.detail-item {
  display: grid;
  gap: 2px;
}
.detail-item-wide {
  grid-column: 1 / -1;
}
.detail-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.detail-value {
  font-size: 12px;
  font-weight: 600;
}
.user-contact-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.user-contact-input {
  min-width: 220px;
  flex: 1 1 220px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12, 18, 32, 0.72);
  color: var(--text);
  padding: 10px 12px;
}
.requests-page .request-expand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.requests-page .request-caret {
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}
.requests-page .request-caret.is-open {
  transform: rotate(90deg);
  color: var(--text);
}
.requests-page .request-title {
  font-weight: 600;
}
.requests-page .request-detail-row td {
  white-space: normal;
  overflow: visible;
  background: rgba(15, 22, 39, 0.6);
  border-bottom: 1px solid var(--border);
}
.requests-page .request-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 12px;
  padding: 8px 6px;
}
.requests-page .request-search {
  flex: 1;
  min-width: 240px;
  max-width: 520px;
  font-size: 14px;
  padding: 9px 12px;
}
.requests-page .request-list-container {
  margin-top: 8px;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 14px;
  padding: 12px;
  background: rgba(8, 14, 30, 0.55);
}
.requests-page .tab-row {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
}
.requests-page .tab-row .tab-button {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 18px;
}
.requests-page .tab-label {
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.payments-page .payment-expand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.payments-page .payment-caret {
  font-size: 11px;
  color: var(--muted);
}
.payments-page .payment-title {
  font-weight: 600;
}
.payments-page .payment-detail-row td {
  white-space: normal;
  overflow: visible;
  background: rgba(15, 22, 39, 0.6);
  border-bottom: 1px solid var(--border);
}
.payments-page .payment-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 12px;
  padding: 8px 6px;
}
.payments-received-page .payment-detail-row td {
  white-space: normal;
  overflow: visible;
  background: rgba(15, 22, 39, 0.6);
  border-bottom: 1px solid var(--border);
}
.payments-received-page .payment-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 12px;
  padding: 8px 6px;
}
.payments-page .col-payment-date {
  width: 18%;
}
.payments-page .col-payment-plan {
  width: 32%;
}
.payments-page .col-payment-status {
  width: 18%;
}
.payments-page .col-payment-amount {
  width: 16%;
}
.payments-page .col-payment-slip {
  width: 16%;
}
.payments-received-page .col-received-date {
  width: 16%;
}
.payments-received-page .col-received-user {
  width: 18%;
}
.payments-received-page .col-received-plan {
  width: 20%;
}
.payments-received-page .col-received-amount {
  width: 14%;
}
.payments-received-page .col-received-status {
  width: 10%;
}
.payments-received-page .col-received-slip {
  width: 12%;
}
.payments-received-page .col-received-actions {
  width: 10%;
}
.payments-received-page .table th,
.payments-received-page .table td {
  padding: 6px 6px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.payments-received-page .table thead th {
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 2;
}
.payments-received-page .col-received-user,
.payments-received-page .col-received-plan {
  max-width: 220px;
}
.payments-received-page {
  max-width: 100%;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.payments-received-page .table-wrap {
  margin-top: 8px;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  overscroll-behavior-x: contain;
  flex: 1 1 auto;
  min-height: 0;
}
.payments-received-page .table {
  table-layout: fixed;
  width: 100%;
}
.modal-card.delete-modal {
  width: min(520px, 92vw);
}
.modal-body {
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 13px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 16px 16px;
}
.btn.danger {
  background: #b42318;
  color: #fff;
  border: 1px solid #b42318;
}
.btn.danger:hover {
  filter: brightness(1.05);
}
.requests-page .tab-button {
  font-size: 14px;
  padding: 5px 10px;
}
.requests-page .request-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.requests-page .request-empty {
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}
.requests-page .request-card {
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(9, 14, 26, 0.8);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}
.requests-page .request-card-button {
  width: 100%;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 12px;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.requests-page .request-card-button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 12px;
}
.requests-page .request-poster {
  width: 90px;
  height: 135px;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      rgba(245, 193, 108, 0.18),
      rgba(77, 188, 233, 0.18));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.requests-page .request-poster-button {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.requests-page .request-poster-button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 10px;
}
.requests-page .request-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.requests-page .poster-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.requests-page .request-poster img.is-hidden {
  display: none;
}
.requests-page .request-meta {
  display: grid;
  gap: 6px;
  align-content: start;
}
.requests-page .request-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.requests-page .request-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}
.requests-page .request-status {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.requests-page .request-status.requested {
  color: #0b1a12;
  background: rgba(52, 211, 153, 0.85);
  border-color: rgba(52, 211, 153, 0.6);
}
.requests-page .request-status.error {
  color: #1b1202;
  background: rgba(251, 113, 133, 0.7);
  border-color: rgba(251, 113, 133, 0.6);
}
.requests-page .request-title-text {
  font-weight: 700;
  font-size: 13px;
}
.requests-page .request-chip {
  border: 1px solid rgba(245, 193, 108, 0.4);
  color: var(--accent-2);
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.requests-page .request-chip.chip-available {
  color: #083414;
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
}
.requests-page .request-chip.chip-partial {
  color: #3a1f00;
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.4);
}
.requests-page .request-chip.chip-unavailable {
  color: var(--muted);
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.3);
}
.requests-page .request-year {
  font-size: 10px;
  color: var(--muted);
}
.requests-page .request-availability {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.requests-page .request-availability.available {
  color: #0b1a12;
  background: rgba(52, 211, 153, 0.85);
  border-color: rgba(52, 211, 153, 0.6);
}
.requests-page .request-availability.partial {
  color: #1b1202;
  background: rgba(251, 191, 36, 0.85);
  border-color: rgba(251, 191, 36, 0.6);
}
.requests-page .request-availability.unavailable {
  color: var(--muted);
  border-color: rgba(148, 163, 184, 0.3);
}
.requests-page .request-overview {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}
.requests-page .request-expand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.requests-page .request-thumb {
  width: 44px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.requests-page .request-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.requests-page .request-thumb-fallback {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  padding: 4px;
}
.requests-page .request-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.requests-page .request-results {
  display: none;
}
.requests-page .request-mine-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 22, 39, 0.6);
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 10px;
}
.requests-page .request-mine-header {
  display: grid;
  gap: 10px;
  background: transparent;
  border: none;
  text-align: left;
  padding: 0;
  color: inherit;
  cursor: pointer;
}
.requests-page .request-mine-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.requests-page .request-mine-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.poster-frame .poster-fallback {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 4px;
}
.poster-frame.has-poster .poster-fallback {
  display: none;
}
.poster-frame img.is-hidden {
  display: none;
}
.skeleton-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 22, 39, 0.55);
  padding: 10px;
  display: grid;
  gap: 10px;
}
.skeleton-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background:
    linear-gradient(
      90deg,
      rgba(148, 163, 184, 0.08),
      rgba(148, 163, 184, 0.2),
      rgba(148, 163, 184, 0.08));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton-line {
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(148, 163, 184, 0.08),
      rgba(148, 163, 184, 0.2),
      rgba(148, 163, 184, 0.08));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton-line.short {
  width: 60%;
}
@keyframes shimmer {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: -200% 0%;
  }
}
.table-skeleton-row td {
  padding: 12px;
}
.table-skeleton {
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(148, 163, 184, 0.08),
      rgba(148, 163, 184, 0.2),
      rgba(148, 163, 184, 0.08));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px 8px;
  color: var(--muted);
}
.empty-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.12);
  display: grid;
  place-items: center;
  color: var(--accent-2);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.empty-icon svg {
  width: 18px;
  height: 18px;
}
.empty-title {
  font-weight: 600;
  color: var(--text);
}
.empty-subtitle {
  font-size: 12px;
  text-align: center;
}
.requests-page .request-mine-info {
  display: grid;
  gap: 6px;
}
.requests-page .request-meta-stack {
  display: grid;
  gap: 4px;
  justify-items: start;
}
.requests-page .request-meta-stack .request-chip {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.requests-page .request-mine-title {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.requests-page .request-available-text {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}
.requests-page .request-mine-details {
  display: grid;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.requests-page .poster-available {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(34, 197, 94, 0.35);
  border: none;
}
.requests-page .request-chip.request-chip-type {
  font-size: 10px;
  letter-spacing: 0.05em;
}
.requests-page .request-chip.request-chip-available-date {
  white-space: normal;
  line-height: 1.35;
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(37, 99, 235, 0.12);
}
@media (max-width: 700px) {
  .requests-page .request-list-container {
    max-height: calc(100vh - 230px);
  }
  .requests-page .request-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .requests-page .request-mine-card {
    padding: 8px;
  }
  .requests-page .request-mine-title {
    font-size: 12px;
  }
}
.requests-page .request-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
}
.requests-page .request-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 14, 0.7);
}
.requests-page .request-modal-card {
  position: relative;
  z-index: 1;
  width: min(900px, 92vw);
  max-height: 85vh;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  padding: 16px;
  display: grid;
  gap: 12px;
}
.requests-page .request-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(3, 6, 14, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-card {
  width: min(860px, 92vw);
  max-height: 92vh;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.slip-modal .slip-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(6, 12, 24, 0.6);
  min-height: 240px;
}
.slip-modal img,
.slip-modal iframe {
  width: 100%;
  max-height: 72vh;
  border: 0;
  border-radius: 12px;
  background: #0b0f1c;
  object-fit: contain;
}
@media (max-width: 720px) {
  .modal-backdrop {
    padding: 8px;
  }
  .modal-card {
    width: 96vw;
    max-height: 94vh;
    border-radius: 16px;
  }
  .modal-header {
    padding: 12px 14px;
  }
  .slip-modal .slip-preview {
    padding: 8px;
    min-height: 200px;
  }
  .slip-modal img,
  .slip-modal iframe {
    max-height: 76vh;
  }
}
.requests-page .request-modal-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.requests-page .request-modal-title {
  font-size: 16px;
  font-weight: 700;
}
.requests-page .request-modal-body {
  display: grid;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.requests-page .request-modal-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: start;
}
.requests-page .request-modal-poster {
  width: 200px;
  height: 300px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      rgba(245, 193, 108, 0.18),
      rgba(77, 188, 233, 0.18));
  position: relative;
}
.requests-page .request-modal-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.requests-page .request-modal-info {
  display: grid;
  gap: 10px;
}
.requests-page .request-modal-row {
  display: grid;
  gap: 4px;
}
.requests-page .request-modal-overview {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
}
.admin-requests-page .request-expand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.admin-requests-page .request-caret {
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}
.admin-requests-page .request-caret.is-open {
  transform: rotate(90deg);
  color: var(--text);
}
.admin-requests-page .request-thumb {
  width: 96px;
  height: 144px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.admin-requests-page .request-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-requests-page .request-thumb-fallback {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  padding: 4px;
}
.admin-requests-page .request-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
}
.admin-requests-page .request-title-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.admin-requests-page .request-meta-line {
  flex-wrap: nowrap;
  overflow: hidden;
}
.admin-requests-page .request-meta-line {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.admin-requests-page .request-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.admin-requests-page .request-status-stack {
  display: grid;
  gap: 4px;
  justify-items: start;
}
.admin-requests-page .admin-request-search-row {
  margin-top: 8px;
  gap: 8px;
  align-items: center;
}
.admin-requests-page .admin-request-search-row .request-search {
  flex: 1 1 320px;
  min-width: 220px;
  max-width: 560px;
  font-size: 14px;
  padding: 9px 12px;
}
.admin-requests-page .request-chip.request-chip-available-date {
  white-space: normal;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: normal;
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(37, 99, 235, 0.12);
}
.admin-requests-page .detail-overview {
  grid-column: 1 / -1;
}
.admin-requests-page .col-request-lang {
  width: 110px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-size: 11px;
}
.admin-requests-page .table {
  table-layout: fixed;
}
.admin-requests-page {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 170px);
  overflow: hidden;
}
.admin-requests-page .admin-request-list-container {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 8px;
  max-height: none;
  overflow-y: auto;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 14px;
  padding: 6px;
  background: rgba(8, 14, 30, 0.55);
}
.admin-requests-page .col-request-title {
  width: 41%;
}
.admin-requests-page .col-request-lang {
  width: 12%;
}
.admin-requests-page .col-request-user {
  width: 17%;
}
.admin-requests-page .col-request-status {
  width: 12%;
}
.admin-requests-page .col-request-actions {
  width: 18%;
  text-align: right;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.admin-requests-page .col-request-actions .btn {
  min-width: 82px;
  margin-left: 6px;
  padding-left: 10px;
  padding-right: 10px;
}
.admin-requests-page td {
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-requests-page td.col-request-actions {
  overflow: visible;
  text-overflow: clip;
}
.admin-requests-page .delete-dialog {
  max-width: 520px;
}
.btn.danger {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}
.btn.danger:hover {
  filter: brightness(0.95);
}
.admin-requests-page .request-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-requests-page .request-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 14, 0.7);
}
.admin-requests-page .request-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 92vw);
  max-height: 85vh;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  padding: 16px;
  display: grid;
  gap: 12px;
}
.admin-requests-page .request-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-requests-page .request-modal-title {
  font-size: 16px;
  font-weight: 700;
}
.admin-requests-page .request-modal-body {
  display: grid;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.admin-requests-page .request-server-select,
.admin-requests-page .request-root-select,
.admin-requests-page .request-root-input,
.admin-requests-page .request-profile-select,
.admin-requests-page .request-profile-input {
  margin-top: 6px;
  width: 100%;
}
.admin-requests-page .request-cinema-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(78, 103, 171, 0.35);
  background:
    linear-gradient(
      180deg,
      rgba(28, 41, 78, 0.9),
      rgba(22, 33, 66, 0.9));
}
.admin-requests-page .request-cinema-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(7, 13, 34, 0.95);
  border: 1px solid rgba(109, 131, 187, 0.28);
}
.admin-requests-page .request-cinema-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-requests-page .request-cinema-content {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}
.admin-requests-page .request-cinema-title {
  font-size: 2rem;
  font-weight: 700;
  color: #edf3ff;
  line-height: 1.2;
}
.admin-requests-page .request-cinema-meta {
  color: #a9b8dc;
  font-size: 1.05rem;
  font-weight: 600;
}
.admin-requests-page .request-cinema-overview {
  color: #c6d2f0;
  line-height: 1.6;
  max-width: 900px;
}
.admin-requests-page .request-cinema-actions {
  margin-top: 6px;
  gap: 10px;
}
.admin-requests-page .request-cinema-note {
  margin-top: 6px;
  color: #f0c274;
  font-weight: 600;
}
@media (max-width: 900px) {
  .admin-requests-page {
    max-height: none;
    overflow: visible;
  }
  .admin-requests-page .admin-request-list-container {
    max-height: none;
    overflow: visible;
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
  }
  .admin-requests-page .request-cinema-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .admin-requests-page .request-cinema-poster {
    max-width: 220px;
  }
  .admin-requests-page .request-cinema-title {
    font-size: 1.45rem;
  }
  .requests-page .request-modal-grid {
    grid-template-columns: 1fr;
  }
  .requests-page .request-modal-poster {
    width: 100%;
    height: 280px;
  }
  .requests-page .request-modal-card {
    width: 100vw;
    height: 100vh;
    max-height: none;
    border-radius: 0;
    padding: 14px;
  }
  .requests-page .request-modal {
    align-items: stretch;
    justify-content: stretch;
  }
  .requests-page .request-modal-backdrop {
    display: none;
  }
}
.users-page .user-search {
  min-width: 220px;
  max-width: 320px;
}
.requests-page .col-search-title {
  width: 60%;
}
.requests-page .col-search-type {
  width: 22%;
}
.requests-page .col-search-year {
  width: 18%;
}
.requests-page .col-request-title {
  width: 55%;
}
.requests-page .col-request-user {
  width: 25%;
}
.requests-page .col-request-status {
  width: 20%;
}
.request-status.open {
  background: rgba(251, 191, 36, 0.85);
  color: #1b1202;
}
.request-status.done {
  background: rgba(52, 211, 153, 0.85);
  color: #0b1a12;
}
.request-status.declined {
  background: rgba(248, 113, 113, 0.85);
  color: #1b0d0d;
}
.request-status-note {
  display: block;
  font-size: 11px;
  line-height: 1.25;
  color: #fcd34d;
  max-width: 320px;
}
.plans-page .plan-expand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.plans-page .plan-caret {
  font-size: 11px;
  color: var(--muted);
}
.plans-page .plan-name-text {
  font-weight: 600;
}
.plans-page .plan-detail-row td {
  white-space: normal;
  overflow: visible;
  background: rgba(15, 22, 39, 0.6);
  border-bottom: 1px solid var(--border);
}
.plans-page .plan-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 12px;
  padding: 8px 6px;
}
.plans-page .col-plan-name {
  width: 50%;
}
.plans-page .col-plan-status {
  width: 20%;
}
.plans-page .col-plan-price {
  width: 30%;
}
.users-page .col-user {
  width: 30%;
}
.users-page .col-status {
  width: 10%;
}
.users-page .col-days {
  width: 10%;
}
.users-page .col-play {
  width: 10%;
}
.users-page .col-last-active {
  width: 18%;
}
.users-page .col-action {
  width: 22%;
}
.role-admin .users-page {
  padding: 10px;
}
.role-admin .users-page .card-header {
  margin-bottom: 6px;
}
.role-admin .users-page .card-header h2 {
  font-size: 14px;
}
.role-admin .users-page .count {
  font-size: 10px;
}
.role-admin .users-page .tab-row {
  margin-bottom: 6px;
  gap: 4px;
}
.role-admin .users-page .tab-button {
  padding: 3px 8px;
  font-size: 10px;
}
.role-admin .users-page .table th,
.role-admin .users-page .table td {
  padding: 5px 5px;
  font-size: 10px;
}
.role-admin .users-page .actions {
  gap: 4px;
}
.role-admin .users-page input[type=date] {
  padding: 3px 5px;
  font-size: 9px !important;
  height: 22px;
}
.role-admin .users-page .user-cell {
  gap: 4px;
}
.role-admin .users-page .user-name {
  font-size: 11px;
}
.role-admin .users-page .creator-tag {
  padding: 1px 5px;
  font-size: 8px;
}
.role-admin .users-page .tag-row {
  margin-top: 3px;
  gap: 3px;
}
.role-admin .users-page .tag-chip {
  padding: 1px 4px;
  font-size: 9px;
}
.role-admin .users-page .tag-add-input,
.role-admin .users-page .tag-edit-input {
  height: 20px;
  padding: 2px 5px;
  font-size: 9px;
  min-width: 80px;
}
.role-admin .users-page .btn.small,
.role-admin .users-page .btn.ghost.small {
  padding: 3px 6px;
  font-size: 10px;
}
.user-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.creator-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border: 1px solid rgba(118, 140, 168, 0.4);
  background: rgba(15, 22, 39, 0.55);
  color: var(--muted);
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(118, 140, 168, 0.35);
  background: rgba(11, 17, 30, 0.8);
  color: var(--text);
  font-size: 11px;
}
.theme-light .creator-tag,
.theme-light .tag-chip {
  background: rgba(226, 232, 240, 0.9);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.6);
}
.theme-light .tag-remove {
  color: var(--text);
}
.tag-label {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.tag-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 0 2px;
}
.tag-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tag-add-input,
.tag-edit-input {
  height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 22, 39, 0.6);
  color: var(--text);
  font-size: 12px;
  min-width: 120px;
}
.tag-edit {
  display: inline-flex;
  align-items: center;
}
.sortable button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}
.sort-indicator {
  font-size: 10px;
  color: var(--muted);
}
.sortable.active .sort-indicator {
  color: var(--accent-2);
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-grid {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.profile-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 22, 39, 0.6);
}
.profile-label {
  color: var(--muted);
  font-size: 13px;
}
.profile-value {
  font-weight: 600;
}
.welcome h2 {
  margin: 0 0 6px;
}
.info-line {
  margin: 12px 0 18px;
  color: var(--muted);
}
.subscription-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(18, 26, 43, 0.8);
  display: grid;
  gap: 14px;
}
.status-title {
  font-size: 16px;
  font-weight: 700;
}
.info-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.info-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.info-value {
  font-weight: 600;
}
.user-home {
  display: grid;
  gap: 14px;
}
.welcome-title {
  font-size: 22px;
  margin: 0;
}
.welcome-subtitle {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.mini-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(18, 26, 43, 0.6);
  padding: 12px;
  display: grid;
  gap: 10px;
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 193, 108, 0.4);
}
.mini-card-streaming {
  gap: 8px;
  padding: 12px 14px;
}
.mini-card-streaming-copy {
  max-width: 760px;
  line-height: 1.45;
}
.mini-card-streaming-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.mini-title {
  font-size: 13px;
  font-weight: 600;
}
.mini-app-copy {
  display: grid;
  gap: 4px;
}
.mini-download-hint {
  font-size: 12px;
  color: var(--muted);
}
.mini-download-hint-strong {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 193, 108, 0.75);
  background: rgba(245, 193, 108, 0.18);
  color: #ffd57a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dashboard-page .dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.dashboard-page .mini-pill {
  background: rgba(245, 193, 108, 0.15);
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.dashboard-page .mini-body {
  font-size: 11px;
  color: var(--muted);
}
.dashboard-page .dashboard-grid {
  display: grid;
  gap: 12px;
}
.dashboard-page .dashboard-grid .card {
  padding: 12px;
}
.dashboard-page .dashboard-grid h3 {
  font-size: 13px;
  margin: 0;
}
.dashboard-page .col-dash-user {
  width: 32%;
}
.dashboard-page .col-dash-plan {
  width: 28%;
}
.dashboard-page .col-dash-date {
  width: 20%;
}
.dashboard-page .col-dash-amount {
  width: 20%;
}
.dashboard-page .table th,
.dashboard-page .table td {
  padding: 6px 6px;
  font-size: 11px;
}
.mini-actions {
  display: flex;
  gap: 6px;
}
.mini-actions-download {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mini-download-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  white-space: nowrap;
}
.mono-line {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(15, 22, 39, 0.8);
  color: var(--text);
  font-size: 10px;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  text-align: left;
  padding: 6px 8px;
  border-radius: 8px;
}
.mono-line .mono-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mono-line .mono-copy {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.status-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 12px;
  background: rgba(18, 26, 43, 0.7);
}
.status-card.danger {
  border-color: rgba(248, 113, 113, 0.5);
}
.status-card.success {
  border-color: rgba(52, 211, 153, 0.5);
}
.status-card.warning {
  border-color: rgba(251, 191, 36, 0.5);
}
.registrations-page .registrations-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.registrations-page .registration-pill {
  min-width: 96px;
  box-shadow: none;
}
.registrations-page .registration-pill.success {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.5);
  color: #86efac;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.18);
}
.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.status-title {
  font-size: 13px;
  font-weight: 600;
}
.status-title.danger {
  color: #f87171;
}
.status-title.success {
  color: #34d399;
}
.status-title.warning {
  color: #fbbf24;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.badge.danger {
  background: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
}
.badge.success {
  background: rgba(52, 211, 153, 0.2);
  color: #6ee7b7;
}
.badge.warning {
  background: rgba(251, 191, 36, 0.2);
  color: #fcd34d;
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  text-align: center;
  background: rgba(15, 22, 39, 0.6);
  border-radius: 10px;
  padding: 10px;
}
.status-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5f5;
}
.status-pill.ok {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}
.status-pill.bad {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5;
}
.status-note {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}
.status-grid.danger {
  background: rgba(248, 113, 113, 0.08);
}
.status-grid.success {
  background: rgba(52, 211, 153, 0.08);
}
.status-grid.warning {
  background: rgba(251, 191, 36, 0.08);
}
.status-label {
  margin: 0 0 4px;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}
.status-value {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}
.status-value.danger {
  color: #f87171;
}
.status-value.success {
  color: #34d399;
}
.status-value.warning {
  color: #fbbf24;
}
.btn.tiny {
  padding: 4px 8px;
  font-size: 10px;
}
.play-status {
  padding: 2px 8px;
  font-weight: 700;
  cursor: default;
  box-shadow: none;
}
.play-status.on {
  background: rgba(52, 211, 153, 0.85);
  color: #0b1a12;
}
.play-status.off {
  background: rgba(248, 113, 113, 0.85);
  color: #1b0d0d;
}
.play-status.unknown {
  background: rgba(148, 163, 184, 0.6);
  color: #0f172a;
}
.btn.copied {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.15);
}
.btn.full {
  width: 100%;
  justify-content: center;
}
.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 110px;
  display: grid;
  gap: 8px;
  z-index: 80;
  max-width: min(320px, 90vw);
}
.toast {
  background: rgba(12, 18, 32, 0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow-1);
  color: var(--text);
}
.toast-title {
  font-size: 12px;
  font-weight: 700;
}
.toast-message {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.toast.success {
  border-color: rgba(34, 197, 94, 0.4);
}
.toast.danger {
  border-color: rgba(239, 68, 68, 0.4);
}
@media (max-width: 820px) {
  .toast-stack {
    right: 12px;
    bottom: 96px;
  }
}
@media (max-width: 820px) {
  html {
    -webkit-text-size-adjust: 100%;
  }
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
  :root {
    --topbar-height: 64px;
  }
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
  }
  body {
    overflow-x: hidden;
  }
  .app.role-user .app-shell {
    transform: none;
    width: 100%;
    margin-left: 0;
  }
  .app {
    padding: 14px 12px 18px;
    gap: 12px;
    padding-bottom: calc(132px + env(safe-area-inset-bottom));
  }
  .topbar {
    flex-direction: row;
    align-items: center;
    padding: 8px 10px;
    gap: 8px;
    min-height: var(--topbar-height);
    height: var(--topbar-height);
    margin-bottom: 0;
    width: 100%;
    border-radius: var(--radius-md);
  }
  .topbar-left,
  .topbar-user,
  .topbar-actions {
    height: 100%;
    align-items: center;
  }
  .role-admin .topbar {
    min-height: var(--topbar-height);
    height: var(--topbar-height);
  }
  .role-admin .topbar-user,
  .role-admin .topbar-actions,
  .role-admin .topbar-left {
    height: 100%;
    align-items: center;
    flex-wrap: nowrap;
  }
  .role-admin .topbar .btn {
    height: 34px;
    line-height: 1;
    padding: 6px 12px;
    font-size: 12px;
  }
  .role-admin .topbar .session {
    line-height: 1;
    margin: 0;
    font-size: 12px;
  }
  .topbar .brand {
    font-size: 16px;
  }
  .topbar .session {
    font-size: 12px;
  }
  .requests-page .request-modal {
    transform: none;
    width: 100%;
    height: 100%;
  }
  .nav {
    display: none;
  }
  .sidebar {
    display: none;
  }
  .session {
    margin-left: 0;
    display: block;
    max-width: 45vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar-user {
    margin-left: 0;
    width: auto;
    flex-direction: row;
    align-items: center;
    align-self: center;
  }
  .role-user .topbar .btn.ghost:not(.topbar-logout):not(.theme-toggle) {
    display: none;
  }
  .brand {
    font-size: 15px;
  }
  .bottom-nav {
    display: flex;
    gap: 10px;
    padding: 12px calc(14px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
  }
  .bottom-link {
    font-size: 12px;
    padding: 8px 10px;
    min-width: 84px;
    gap: 6px;
    border-radius: 14px;
  }
  .bottom-link .nav-icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
    border-radius: 11px;
  }
  .bottom-link .nav-icon svg {
    width: 18px;
    height: 18px;
  }
  .bottom-badge {
    top: 1px;
    right: 8px;
    font-size: 10px;
  }
  .topbar-logout {
    align-self: center;
  }
  .subscriptions-page {
    padding: 16px;
  }
  .subscriptions-page .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 12px;
  }
  .subscriptions-page .count {
    font-size: 11px;
  }
  .subscriptions-page .plan-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .subscriptions-page .plan-card {
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
  }
  .subscriptions-page .plan-name {
    font-size: 15px;
  }
  .subscriptions-page .plan-meta {
    font-size: 10px;
  }
  .subscriptions-page .plan-price {
    font-size: 18px;
  }
  .subscriptions-page .plan-period {
    font-size: 11px;
  }
  .subscriptions-page .plan-feature {
    font-size: 12px;
  }
  .subscriptions-page .plan-check {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
  .subscriptions-page .transfer-card {
    padding: 10px;
    margin-top: 10px;
  }
  .subscriptions-page .transfer-card h3 {
    font-size: 13px;
  }
  .subscriptions-page .note {
    font-size: 12px;
    margin: 4px 0 8px;
  }
  .subscriptions-page .transfer-line {
    font-size: 12px;
    gap: 4px;
  }
  .subscriptions-page .file-input {
    padding: 8px 10px;
  }
  .subscriptions-page .stack {
    gap: 10px;
  }
  .subscriptions-page .row .btn {
    width: 100%;
    justify-content: center;
  }
  .subscriptions-page .table-wrap {
    margin-top: 12px;
  }
  .subscriptions-page .table th,
  .subscriptions-page .table td {
    padding: 8px 6px;
    font-size: 12px;
  }
  .users-page input[type=date] {
    padding: 2px 4px;
    font-size: 9px;
    height: 20px;
  }
  .users-page .col-user {
    width: 30%;
  }
  .users-page .col-status {
    width: 12%;
  }
  .users-page .col-days {
    width: 12%;
  }
  .users-page .col-play {
    width: 10%;
  }
  .users-page .col-last-active {
    width: 18%;
  }
  .users-page .col-action {
    width: 18%;
  }
  .users-page .table-wrap {
    max-height: none;
    overflow: visible;
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
  }
  .payments-page .col-payment-date {
    width: 20%;
  }
  .payments-page .col-payment-plan {
    width: 32%;
  }
  .payments-page .col-payment-status {
    width: 18%;
  }
  .payments-page .col-payment-amount {
    width: 15%;
  }
  .payments-page .col-payment-slip {
    width: 15%;
  }
  .payments-received-page .col-received-date {
    width: 18%;
  }
  .payments-received-page .col-received-user {
    width: 20%;
  }
  .payments-received-page .col-received-plan {
    width: 22%;
  }
  .payments-received-page .col-received-amount {
    width: 14%;
  }
  .payments-received-page .col-received-status {
    width: 10%;
  }
  .payments-received-page .col-received-slip {
    width: 10%;
  }
  .payments-received-page .col-received-actions {
    width: 6%;
  }
  .payments-received-page .table th,
  .payments-received-page .table td {
    white-space: nowrap;
  }
  .payments-received-page .table {
    table-layout: auto;
    width: 100%;
  }
  .payments-received-page .table-wrap {
    overflow-x: hidden;
  }
  .payments-received-page .col-received-plan,
  .payments-received-page .col-received-user {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .payments-received-page .table-wrap {
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
  }
  .payments-received-page .table-scroll {
    display: none;
  }
  .payments-page.card {
    padding-top: 8px;
  }
  .payments-page .card-header {
    display: none;
  }
  .payments-page .table-wrap {
    margin-top: 0;
  }
  .plans-page .col-plan-name {
    width: 52%;
  }
  .plans-page .col-plan-status {
    width: 20%;
  }
  .plans-page .col-plan-price {
    width: 28%;
  }
  .requests-page .col-request-title {
    width: 52%;
  }
  .requests-page .col-request-user {
    width: 28%;
  }
  .requests-page .col-request-status {
    width: 20%;
  }
  .requests-page .col-search-title {
    width: 58%;
  }
  .requests-page .col-search-type {
    width: 24%;
  }
  .requests-page .col-search-year {
    width: 18%;
  }
  .user-home {
    gap: 16px;
  }
  .user-home .welcome-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
  }
  .user-home .welcome-subtitle {
    font-size: 15px;
    margin-top: 6px;
    line-height: 1.35;
  }
  .user-home .mini-card,
  .user-home .status-card {
    border-radius: 20px;
    padding: 16px;
    gap: 12px;
    border-color: rgba(80, 100, 138, 0.55);
    background:
      linear-gradient(
        180deg,
        rgba(21, 31, 52, 0.95) 0%,
        rgba(16, 25, 44, 0.94) 100%);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  .user-home .mini-card-streaming {
    padding: 18px 16px;
    gap: 10px;
  }
  .user-home .mini-card-streaming .section-title,
  .user-home .mini-title {
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }
  .user-home .mini-card-streaming-copy {
    font-size: 16px;
    line-height: 1.5;
    color: #d9e3f5;
  }
  .user-home .mini-header {
    align-items: flex-start;
    gap: 12px;
  }
  .user-home .mini-download-hint {
    font-size: 14px;
    line-height: 1.35;
  }
  .user-home .mini-download-hint-strong {
    font-size: 15px;
    padding: 8px 12px;
    letter-spacing: 0.05em;
  }
  .user-home .mini-actions-download {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }
  .user-home .mini-download-label {
    width: 100%;
    font-size: 13px;
    letter-spacing: 0.08em;
  }
  .user-home .store-badge {
    height: 46px;
    border-radius: 10px;
  }
  .user-home .mono-line {
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 12px;
    gap: 10px;
  }
  .user-home .mono-line .btn.tiny {
    padding: 6px 10px;
    font-size: 11px;
  }
  .user-home .status-title {
    font-size: 28px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .user-home .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
  }
  .user-home .status-label {
    font-size: 11px;
  }
  .user-home .status-value {
    font-size: 16px;
  }
  .user-home .badge {
    font-size: 12px;
    padding: 4px 10px;
  }
  .app.role-user .card {
    border-radius: 20px;
    padding: 16px;
  }
  .app.role-user .card-header {
    margin-bottom: 14px;
  }
  .app.role-user .card-header h2 {
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }
  .app.role-user .count {
    font-size: 14px;
  }
  .app.role-user .tab-row {
    gap: 8px;
    margin-bottom: 10px;
  }
  .app.role-user .tab-button {
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 999px;
  }
  .app.role-user .stack {
    gap: 12px;
  }
  .app.role-user .section-title {
    font-size: 20px;
    line-height: 1.2;
  }
  .app.role-user .muted,
  .app.role-user .note {
    font-size: 14px;
    line-height: 1.45;
  }
  .app.role-user input,
  .app.role-user select,
  .app.role-user .textarea,
  .app.role-user textarea {
    font-size: 16px;
    padding: 11px 12px;
    border-radius: 12px;
  }
  .app.role-user .btn {
    font-size: 14px;
    padding: 10px 14px;
    min-height: 40px;
    border-radius: 12px;
  }
  .app.role-user .btn.small {
    font-size: 13px;
    min-height: 36px;
  }
  .app.role-user .table th,
  .app.role-user .table td {
    font-size: 13px;
    padding: 10px 8px;
  }
  .app.role-user .table .badge,
  .app.role-user .status-pill,
  .app.role-user .pill {
    font-size: 12px;
    padding: 4px 10px;
  }
  .app.role-user .plan-card,
  .app.role-user .transfer-card,
  .app.role-user .request-card,
  .app.role-user .settings-group,
  .app.role-user .slip-preview {
    border-radius: 16px;
    padding: 14px;
  }
  .app.role-user .request-card-title,
  .app.role-user .plan-name {
    font-size: 18px;
    line-height: 1.25;
  }
  .app.role-user .plan-price {
    font-size: 24px;
  }
  .app.role-user .support-chat-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: calc(100dvh - 190px);
    padding-bottom: calc(122px + env(safe-area-inset-bottom));
  }
  .app.role-user .support-chat-window {
    flex: 1 1 auto;
    min-height: 280px;
    max-height: none;
    padding-bottom: 16px;
  }
  .app.role-user .support-chat-compose {
    position: sticky;
    bottom: calc(88px + env(safe-area-inset-bottom));
    z-index: 6;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(9, 18, 37, 0.94);
    backdrop-filter: blur(10px);
  }
  .app.role-user .support-chat-compose textarea {
    font-size: 16px;
    line-height: 1.4;
    min-height: 88px;
  }
}
@media (min-width: 821px) {
  .app-shell.has-session {
    grid-template-columns: 240px 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "sidebar main";
    align-items: start;
  }
  .app-shell.sidebar-collapsed {
    grid-template-columns: 76px 1fr;
  }
  .topbar {
    grid-area: topbar;
  }
  .sidebar {
    grid-area: sidebar;
    display: block;
    position: sticky;
    top: calc(var(--topbar-height) + 24px);
    transition: width 0.2s ease;
  }
  .grid {
    grid-area: main;
  }
  .sidebar-toggle {
    display: inline-flex;
  }
  .app-shell.sidebar-collapsed .sidebar {
    display: block;
    width: 68px;
    padding: 12px 8px;
  }
  .app-shell.sidebar-collapsed .sidebar .nav-link {
    justify-content: center;
    padding: 6px;
    border-radius: 16px;
    gap: 0;
  }
  .app-shell.sidebar-collapsed .sidebar .nav-text {
    display: none;
  }
  .app-shell.sidebar-collapsed .sidebar .nav-badge {
    position: absolute;
    top: 2px;
    right: 6px;
  }
}
@media (min-width: 1024px) {
  .app {
    padding: 28px 24px 40px;
  }
  .card {
    padding: 20px;
  }
  .card-header {
    margin-bottom: 14px;
  }
  .card-header h2 {
    font-size: 18px;
  }
  .count {
    font-size: 12px;
  }
  .table th,
  .table td {
    padding: 10px 8px;
    font-size: 14px;
  }
  .users-page .table th,
  .users-page .table td {
    padding: 8px 8px;
    font-size: 12px;
  }
  .role-admin .users-page .table th,
  .role-admin .users-page .table td {
    padding: 8px 8px;
    font-size: 12px;
  }
  .payments-received-page .table th,
  .payments-received-page .table td {
    padding: 8px 8px;
    font-size: 12px;
  }
  .users-page .user-name {
    font-size: 12px;
  }
  .users-page input[type=date] {
    padding: 6px 8px;
    font-size: 12px;
    height: 28px;
  }
  .requests-page .request-card {
    padding: 2px;
  }
  .requests-page .request-card-button {
    padding: 14px;
  }
  .settings-page .card-header h2 {
    font-size: 18px;
  }
  .settings-page label {
    font-size: 13px;
  }
  .settings-page input,
  .settings-page .textarea {
    padding: 10px 12px;
    font-size: 14px;
  }
}
.support-chat-page,
.support-admin-page {
  display: grid;
  gap: 16px;
}
.support-overview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: stretch;
}
.support-overview-item {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: rgba(8, 18, 43, 0.84);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}
.support-overview-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-text);
}
.support-overview-item strong {
  font-size: 0.95rem;
}
.support-refresh-btn {
  align-self: center;
}
.support-help-card {
  border: 1px solid rgba(238, 135, 26, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(
      160deg,
      rgba(238, 135, 26, 0.12),
      rgba(16, 34, 82, 0.68));
  padding: 14px;
  display: grid;
  gap: 10px;
}
.support-help-title {
  font-size: 1.02rem;
  font-weight: 700;
}
.support-help-copy {
  color: var(--muted-text);
  line-height: 1.5;
  font-size: 0.95rem;
}
.support-help-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.support-help-badge {
  border: 1px solid rgba(238, 135, 26, 0.35);
  background: rgba(238, 135, 26, 0.12);
  border-radius: 999px;
  font-size: 0.76rem;
  padding: 4px 10px;
  color: var(--accent-color);
  font-weight: 700;
}
.support-quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.support-quick-chip {
  border: 1px solid var(--border-color);
  background: rgba(9, 18, 43, 0.92);
  color: var(--text-color);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.support-quick-chip:hover {
  border-color: rgba(238, 135, 26, 0.5);
  transform: translateY(-1px);
}
.support-chat-window {
  min-height: 360px;
  max-height: 58vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: rgba(7, 16, 38, 0.9);
}
.support-chat-window.admin {
  min-height: 420px;
}
.support-chat-empty {
  color: var(--muted-text);
}
.support-chat-bubble {
  max-width: min(680px, 92%);
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 6px;
}
.support-chat-bubble.user {
  align-self: flex-end;
  background: rgba(238, 135, 26, 0.16);
  border-color: rgba(238, 135, 26, 0.28);
}
.support-chat-bubble.admin {
  align-self: flex-start;
  background: rgba(41, 94, 255, 0.14);
  border-color: rgba(41, 94, 255, 0.28);
}
.support-chat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted-text);
}
.support-chat-text {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}
.support-chat-attachment {
  margin-top: 8px;
}
.support-chat-attachment img {
  display: block;
  max-width: min(320px, 100%);
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.support-chat-upload-preview {
  display: grid;
  gap: 10px;
}
.support-chat-upload-preview img {
  display: block;
  max-width: min(240px, 100%);
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.support-chat-attach {
  position: relative;
  overflow: hidden;
}
.support-chat-via {
  font-size: 0.78rem;
  color: var(--muted-text);
}
.support-chat-compose {
  display: grid;
  gap: 12px;
}
.support-chat-compose textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background: rgba(8, 18, 43, 0.84);
  color: inherit;
  padding: 14px 16px;
  font: inherit;
}
.support-chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.support-chat-hint {
  color: var(--muted-text);
  font-size: 0.82rem;
  margin-right: auto;
}
.support-admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
}
.support-chat-sidebar {
  display: grid;
  gap: 10px;
  align-content: start;
}
.support-chat-thread {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background: rgba(9, 18, 43, 0.76);
  color: inherit;
}
.support-chat-thread.active {
  border-color: rgba(238, 135, 26, 0.45);
  box-shadow: 0 0 0 1px rgba(238, 135, 26, 0.15);
}
.support-chat-thread-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.support-chat-thread-subtitle,
.support-chat-thread-time,
.support-chat-thread-preview,
.support-chat-panel-header p,
.support-chat-panel-id {
  color: var(--muted-text);
  font-size: 0.92rem;
}
.support-chat-thread-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.support-chat-unread {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(238, 135, 26, 0.18);
  border: 1px solid rgba(238, 135, 26, 0.34);
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 700;
}
.support-chat-panel {
  display: grid;
  gap: 14px;
}
.support-chat-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.support-chat-panel-header h3 {
  margin: 0;
}
@media (max-width: 900px) {
  .support-overview-strip {
    grid-template-columns: 1fr;
  }
  .support-refresh-btn {
    justify-self: start;
  }
  .support-admin-layout {
    grid-template-columns: 1fr;
  }
  .support-chat-window,
  .support-chat-window.admin {
    min-height: 320px;
    max-height: none;
  }
  .support-chat-actions,
  .support-chat-panel-header {
    grid-template-columns: 1fr;
    display: grid;
  }
  .support-chat-hint {
    margin-right: 0;
  }
}
@media (max-width: 820px) {
  .app.role-admin .users-page,
  .app.role-admin .users-page .card,
  .app.role-admin .users-page .table-wrap {
    box-sizing: border-box;
  }
  .app.role-admin .users-page {
    padding-bottom: calc(180px + env(safe-area-inset-bottom)) !important;
  }
  .app.role-admin .users-page .table-wrap {
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: calc(220px + env(safe-area-inset-bottom)) !important;
    margin-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 820px) {
  .app-shell.route-table-scroll .table-wrap,
  .app-shell.route-table-scroll .request-list-container,
  .app-shell.route-table-scroll .admin-request-list-container,
  .app-shell.route-table-scroll .users-page .table-wrap {
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: calc(240px + env(safe-area-inset-bottom)) !important;
    margin-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 820px) {
  :root {
    --bottom-nav-height: 96px;
  }
  .app {
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 20px) !important;
  }
  .app-shell.has-session .page-transition {
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 36px) !important;
  }
  .app-shell.route-table-scroll .page-transition,
  .app-shell.route-table-scroll .table-wrap,
  .app-shell.route-table-scroll .request-list-container,
  .app-shell.route-table-scroll .admin-request-list-container,
  .app-shell.route-table-scroll .users-page .table-wrap {
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 52px) !important;
    margin-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
  }
}
@media (max-width: 820px) {
  .app.role-admin .users-page {
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 28px) !important;
  }
  .app.role-admin .users-page .table-wrap {
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  .app.role-admin .users-page .table-wrap::after {
    content: "";
    display: block;
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 56px);
  }
}
@media (max-width: 820px) {
  .users-page,
  .plans-page,
  .approvals-page,
  .payments-page,
  .payments-received-page,
  .registrations-page,
  .requests-page,
  .subscriptions-page,
  .admin-requests-page {
    max-height: none !important;
    overflow: visible !important;
  }
  .users-page .table-wrap,
  .plans-page .table-wrap,
  .approvals-page .table-wrap,
  .payments-page .table-wrap,
  .payments-received-page .table-wrap,
  .registrations-page .table-wrap,
  .subscriptions-page .table-wrap,
  .requests-page .request-list-container,
  .admin-requests-page .admin-request-list-container {
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: calc(var(--bottom-nav-height, 96px) + env(safe-area-inset-bottom) + 56px) !important;
    margin-bottom: calc(18px + env(safe-area-inset-bottom)) !important;
  }
}
@media (max-width: 820px) {
  html,
  body,
  #root {
    min-height: 100%;
  }
  body {
    padding-bottom: calc(var(--bottom-nav-height, 96px) + env(safe-area-inset-bottom)) !important;
  }
  .app-shell.has-session,
  .grid,
  .page-transition,
  .users-page,
  .users-page .card {
    max-height: none !important;
    overflow: visible !important;
  }
  .users-page .table-wrap {
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: calc(var(--bottom-nav-height, 96px) + env(safe-area-inset-bottom) + 72px) !important;
    margin-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    scroll-padding-bottom: calc(var(--bottom-nav-height, 96px) + env(safe-area-inset-bottom) + 72px) !important;
  }
}
.bottom-nav-spacer {
  display: none;
}
@media (max-width: 820px) {
  .bottom-nav-spacer {
    display: block;
    height: calc(var(--bottom-nav-height, 96px) + env(safe-area-inset-bottom) + 8px);
    width: 100%;
    pointer-events: none;
    flex: 0 0 auto;
  }
}
@media (max-width: 820px) {
  .bottom-nav {
    width: 100%;
    max-width: 100vw;
    overflow-x: scroll;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #0c1220;
  }
  .theme-light .bottom-nav {
    background: #ffffff;
  }
  .bottom-nav .bottom-link {
    flex: 0 0 auto;
  }
  .app-shell.route-payments-received,
  .app-shell.route-payments-received .page-transition {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .payments-received-page {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-bottom: 0;
  }
  .payments-received-page .table-wrap {
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  .payments-received-page::after {
    content: "";
    display: block;
    width: 100%;
    height: calc(var(--bottom-nav-height, 96px) + env(safe-area-inset-bottom) + 36px);
    flex: 0 0 calc(var(--bottom-nav-height, 96px) + env(safe-area-inset-bottom) + 36px);
  }
}
@media (max-width: 820px) {
  @supports (height: 100dvh) {
    .app:has(> .app-shell.route-payments-received) {
      height: 100dvh;
      min-height: 100dvh;
      overflow: hidden;
      padding-bottom: calc(var(--bottom-nav-height, 96px) + env(safe-area-inset-bottom) + 10px) !important;
    }
    .app:has(> .app-shell.route-payments-received) > .app-shell.route-payments-received {
      height: auto;
      min-height: 0;
      flex: 1 1 auto;
      overflow-x: hidden;
      overflow-y: auto;
      overscroll-behavior-y: contain;
      -webkit-overflow-scrolling: touch;
    }
    .app-shell.route-payments-received .page-transition {
      height: auto;
      min-height: 0;
      overflow: visible;
      padding-bottom: 12px !important;
      margin-bottom: 0 !important;
    }
    .app-shell.route-payments-received .payments-received-page::after {
      height: 20px;
      flex-basis: 20px;
    }
  }
}
@media (max-width: 820px) {
  html,
  body,
  #root {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  .app,
  .app-shell,
  .page-transition,
  .grid,
  .card,
  .users-page,
  .plans-page,
  .approvals-page,
  .payments-page,
  .payments-received-page,
  .registrations-page,
  .requests-page,
  .subscriptions-page,
  .admin-requests-page {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .app-shell.route-table-scroll .table-wrap,
  .app-shell.route-table-scroll .request-list-container,
  .users-page .table-wrap,
  .plans-page .table-wrap,
  .approvals-page .table-wrap,
  .payments-page .table-wrap,
  .payments-received-page .table-wrap,
  .registrations-page .table-wrap,
  .subscriptions-page .table-wrap {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .app-shell.route-table-scroll .table-wrap > .table {
    width: 640px;
    min-width: 640px;
    max-width: none;
  }
  .payments-received-page .table-wrap > .table {
    width: 760px;
    min-width: 760px;
    table-layout: fixed;
  }
  .admin-requests-page .admin-request-list-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}
.user-home .user-setup-card {
  display: grid;
  gap: 14px;
}
.user-settings-shortcut,
.payment-history-mobile {
  display: none;
}
.emby-guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.user-setup-heading,
.user-setup-row,
.user-setup-copy {
  min-width: 0;
}
.user-setup-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.user-setup-step {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
.user-setup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.user-setup-copy {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}
.user-setup-number {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}
.user-setup-copy > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.user-setup-copy strong {
  font-size: 14px;
  line-height: 1.25;
}
.user-setup-copy > div > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
@media (max-width: 820px) {
  .app.role-user .requests-page {
    padding: 2px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .app.role-user .requests-page .card-header {
    align-items: center;
    margin-bottom: 10px;
  }
  .app.role-user .requests-page .card-header h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: 0;
  }
  .app.role-user .requests-page .count {
    font-size: 11px;
  }
  .requests-page .request-primary-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 10px;
  }
  .requests-page .request-search {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 40px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 16px;
  }
  .app.role-user .requests-page .request-primary-controls .tab-button {
    min-height: 40px;
    margin: 0;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
  }
  .requests-page .request-status-tabs {
    display: flex;
    width: 100%;
    max-width: 100%;
    gap: 6px;
    margin: 0 0 10px;
    padding: 0 0 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .requests-page .request-status-tabs::-webkit-scrollbar {
    display: none;
  }
  .app.role-user .requests-page .request-status-tabs .tab-button {
    flex: 0 0 auto;
    min-height: 34px;
    margin: 0;
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 10px;
    white-space: nowrap;
  }
  .requests-page .request-list-container {
    width: 100%;
    max-width: 100%;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 0 12px !important;
    overflow: visible !important;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .requests-page .request-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .requests-page .request-mine-card,
  .requests-page .skeleton-card {
    gap: 7px;
    padding: 6px;
    border-radius: 8px;
    box-shadow: none;
  }
  .requests-page .request-mine-header {
    gap: 7px;
  }
  .requests-page .request-mine-poster,
  .requests-page .skeleton-poster {
    border-radius: 6px;
  }
  .requests-page .request-mine-info,
  .requests-page .request-meta-stack {
    gap: 3px;
  }
  .requests-page .request-mine-title {
    font-size: 11px;
    line-height: 1.25;
  }
  .requests-page .request-chip,
  .requests-page .request-chip.request-chip-type,
  .requests-page .request-status {
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 8px;
    letter-spacing: 0;
  }
  .requests-page .request-available-text {
    margin-top: 2px;
    font-size: 9px;
    letter-spacing: 0;
    text-shadow: none;
  }
  .requests-page .poster-available {
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
  .app.role-user .requests-page .btn.tiny {
    min-height: 30px;
    padding: 5px 7px;
    border-radius: 6px;
    font-size: 10px;
  }
  .requests-page .request-mine-details {
    gap: 5px;
    font-size: 10px;
  }
  .requests-page .request-empty {
    grid-column: 1 / -1;
    padding: 18px 10px;
    border-radius: 8px;
    font-size: 12px;
  }
  .requests-page .request-modal-card {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    padding: 12px;
    border-radius: 0;
  }
  .requests-page .request-modal-title {
    font-size: 15px;
    line-height: 1.3;
  }
  .requests-page .request-modal-poster {
    width: min(180px, 54vw);
    height: auto;
    aspect-ratio: 2 / 3;
    margin-inline: auto;
    border-radius: 8px;
  }
  .app.role-user .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 8px;
    overflow: hidden;
  }
  .app.role-user .topbar-left,
  .app.role-user .topbar-user,
  .app.role-user .topbar-actions {
    min-width: 0;
  }
  .app.role-user .topbar-left {
    overflow: hidden;
  }
  .app.role-user .topbar .brand {
    display: block;
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .app.role-user .topbar .session,
  .app.role-user .topbar .theme-toggle {
    display: none;
  }
  .app.role-user .topbar-actions {
    gap: 6px;
  }
  .app.role-user .topbar .topbar-logout {
    width: auto;
    min-width: 0;
    height: 36px;
    min-height: 36px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }
  .app.role-user .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    overflow: hidden;
    padding: 8px calc(6px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(6px + env(safe-area-inset-left));
  }
  .app.role-user .bottom-nav .bottom-link {
    min-width: 0;
    padding: 7px 2px;
    gap: 4px;
    border-radius: 8px;
    font-size: 10px;
  }
  .app.role-user .bottom-nav .bottom-link[href="/settings"] {
    display: none;
  }
  .app.role-user .bottom-nav .bottom-icon {
    width: 20px;
    height: 20px;
  }
  .role-user .topbar .user-settings-shortcut {
    display: inline-grid !important;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    place-items: center;
    border-radius: 8px;
  }
  .role-user .topbar .user-settings-shortcut .bottom-icon {
    width: 18px;
    height: 18px;
  }
  .payment-history-page .table-wrap {
    display: none;
  }
  .payment-history-mobile {
    display: grid;
    gap: 10px;
  }
  .payment-history-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(10, 18, 34, 0.42);
  }
  .payment-history-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 18px;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 10px;
    padding: 13px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
  }
  .payment-history-main,
  .payment-history-side {
    display: grid;
    min-width: 0;
    gap: 4px;
  }
  .payment-history-main strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .payment-history-main span,
  .payment-history-side span {
    color: var(--muted);
    font-size: 10px;
  }
  .payment-history-side {
    justify-items: end;
  }
  .payment-history-side > strong {
    font-size: 13px;
    white-space: nowrap;
  }
  .payment-history-side .status-pill {
    padding: 3px 6px;
    color: inherit;
    font-size: 9px;
  }
  .payment-history-chevron {
    color: var(--muted);
    font-size: 18px;
    text-align: center;
  }
  .payment-history-card-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 13px 13px;
    border-top: 1px solid var(--border);
  }
  .payment-history-card-details > div {
    display: grid;
    min-width: 0;
    gap: 3px;
  }
  .payment-history-card-details span {
    color: var(--muted);
    font-size: 10px;
  }
  .payment-history-card-details strong {
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  .payment-history-slip {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }
  .payment-history-empty {
    padding: 24px 12px;
  }
  .theme-light .payment-history-card {
    background: rgba(255, 255, 255, 0.72);
  }
  .support-chat-page.keyboard-open {
    padding-bottom: 8px !important;
  }
  .support-chat-page.keyboard-open .support-chat-compose {
    bottom: 0;
  }
  body:has(.support-chat-page.keyboard-open) .bottom-nav {
    display: none;
  }
  .support-chat-attach.disabled {
    opacity: 0.65;
    pointer-events: none;
  }
  .support-chat-actions .note.error {
    width: 100%;
    color: #fca5a5;
  }
  .emby-guide-carousel {
    touch-action: pan-y;
  }
  .emby-guide-footer {
    min-height: 40px;
  }
  .app.role-user .user-home {
    gap: 12px;
    padding: 2px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .user-home .welcome-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: 0;
  }
  .user-home .welcome-subtitle {
    margin: 3px 0 0;
    font-size: 13px;
    line-height: 1.4;
  }
  .user-home .status-card,
  .user-home .mini-card {
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    box-shadow: none;
  }
  .user-home .status-header {
    gap: 10px;
  }
  .user-home .status-title {
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0;
  }
  .user-home .status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }
  .user-home .status-grid > div {
    min-width: 0;
    padding: 10px 8px;
    border-top: 1px solid var(--border);
  }
  .user-home .status-grid > div:nth-child(odd) {
    padding-left: 0;
  }
  .user-home .status-grid > div:nth-child(even) {
    padding-right: 0;
    border-left: 1px solid var(--border);
  }
  .user-home .status-label {
    margin: 0 0 4px;
    font-size: 10px;
    line-height: 1.2;
  }
  .user-home .status-value {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  .user-home .badge {
    padding: 3px 7px;
    font-size: 10px;
  }
  .user-home .btn.primary.full {
    min-height: 42px;
  }
  .user-setup-card .mini-title {
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: 0;
  }
  .user-setup-card .mini-download-hint {
    font-size: 12px;
    line-height: 1.4;
  }
  .user-setup-row {
    display: grid;
    gap: 10px;
    padding-top: 12px;
  }
  .user-setup-copy {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 9px;
  }
  .user-setup-number {
    width: 24px;
    height: 24px;
  }
  .user-setup-copy strong {
    font-size: 13px;
  }
  .user-setup-copy > div > span {
    font-size: 11px;
  }
  .user-setup-card .mini-actions-download {
    display: flex;
    width: 100%;
    min-width: 0;
    gap: 8px;
    justify-content: flex-start;
  }
  .user-setup-card .mini-actions-download a {
    min-width: 0;
  }
  .user-setup-card .store-badge {
    width: auto;
    max-width: 100%;
    height: 38px;
  }
  .user-setup-card .user-setup-row > .btn {
    width: 100%;
    min-height: 40px;
    justify-content: center;
  }
}
.admin-requests-page {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 170px);
  overflow: hidden;
  gap: 12px;
}
.admin-requests-page .admin-request-list-container {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(8, 14, 30, 0.38);
}
.admin-requests-page .request-expand {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
}
.admin-requests-page .request-thumb {
  width: 48px;
  height: 72px;
  border-radius: 5px;
}
.admin-requests-page .request-title {
  gap: 7px;
  font-size: 13px;
}
.admin-requests-page .request-chip {
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 9px;
  letter-spacing: 0;
}
.admin-requests-page .col-request-title {
  width: 32%;
}
.admin-requests-page .col-request-user {
  width: 15%;
}
.admin-requests-page .col-request-date {
  width: 11%;
}
.admin-requests-page .col-request-status {
  width: 15%;
}
.admin-requests-page .col-request-actions {
  width: 27%;
}
.admin-requests-page .col-request-actions .btn {
  min-width: 0;
  margin: 0;
  padding: 6px 8px;
}
.admin-requests-page .request-modal-card {
  border-radius: 8px;
}
.admin-requests-page .admin-request-mobile-list {
  display: none;
}
@media (max-width: 820px) {
  .admin-requests-page {
    max-height: none;
    overflow: visible;
    gap: 10px;
  }
  .admin-requests-page .admin-request-desktop {
    display: none;
  }
  .admin-requests-page .admin-request-mobile-list {
    display: grid;
    gap: 8px;
    padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }
  .admin-requests-page .admin-request-mobile-main .request-thumb {
    width: 64px;
    height: 96px;
  }
  .admin-requests-page .request-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-requests-page .request-row-actions .btn {
    min-height: 42px;
    width: 100%;
  }
  .admin-requests-page .request-detail-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 10px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
  .admin-requests-page .request-modal {
    align-items: flex-end;
  }
  .admin-requests-page .request-modal-card {
    width: 100%;
    max-height: 90vh;
    border-radius: 8px 8px 0 0;
  }
}
@media (min-width: 821px) {
  .admin-requests-page .admin-request-list-container {
    height: calc(100vh - 390px);
    min-height: 300px;
    max-height: 700px;
    flex: 0 0 auto;
    scrollbar-gutter: stable;
    overflow-anchor: none;
  }
}
@media (min-width: 821px) and (max-height: 700px) {
  .admin-requests-page .admin-request-list-container {
    min-height: 240px;
  }
}
@media (max-width: 820px) {
  .app.role-user .support-chat-page {
    display: flex;
    height: calc(100dvh - var(--topbar-height, 64px) - var(--bottom-nav-height, 96px) - env(safe-area-inset-bottom) - 42px);
    min-height: 420px;
    max-height: none;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    box-shadow: none;
  }
  .support-chat-page .section-heading {
    flex: 0 0 auto;
    margin: 0;
    padding: 11px 12px 10px;
    border-bottom: 1px solid var(--border);
  }
  .support-chat-page .section-heading h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0;
  }
  .support-chat-page .section-copy {
    margin: 2px 0 0;
    font-size: 10px;
    line-height: 1.3;
  }
  .app.role-user .support-chat-window {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    gap: 7px;
    padding: 10px 8px;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
  .support-chat-empty {
    margin: auto;
    padding: 20px;
    font-size: 12px;
    text-align: center;
  }
  .support-chat-bubble {
    max-width: 82%;
    gap: 3px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 13px;
  }
  .support-chat-bubble.user {
    border-bottom-right-radius: 4px;
  }
  .support-chat-bubble.admin {
    border-bottom-left-radius: 4px;
  }
  .support-chat-meta {
    gap: 8px;
    font-size: 9px;
  }
  .support-chat-text {
    line-height: 1.35;
  }
  .support-chat-attachment {
    margin-top: 4px;
  }
  .support-chat-attachment img {
    max-width: 220px;
    border-radius: 8px;
  }
  .app.role-user .support-chat-compose {
    position: static;
    bottom: auto;
    flex: 0 0 auto;
    gap: 6px;
    padding: 8px;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: rgba(9, 18, 37, 0.96);
    backdrop-filter: blur(10px);
  }
  .theme-light .app.role-user .support-chat-compose {
    background: rgba(255, 255, 255, 0.96);
  }
  .support-chat-compose-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: end;
    gap: 6px;
  }
  .app.role-user .support-chat-compose textarea {
    field-sizing: content;
    width: 100%;
    min-height: 40px;
    max-height: 96px;
    margin: 0;
    padding: 9px 11px;
    overflow-y: auto;
    resize: none;
    border-radius: 18px;
    font-size: 16px;
    line-height: 1.3;
  }
  .app.role-user .support-chat-compose .support-chat-icon {
    display: inline-grid;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    place-items: center;
    border-radius: 50%;
  }
  .support-chat-icon svg {
    width: 18px;
    height: 18px;
  }
  .support-chat-send:disabled {
    opacity: 0.42;
  }
  .support-chat-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: support-chat-spin 0.7s linear infinite;
  }
  .support-chat-upload-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 2px;
  }
  .support-chat-upload-preview img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
  }
  .app.role-user .support-chat-upload-preview .btn {
    min-height: 30px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 10px;
  }
  .support-chat-feedback {
    margin: 0;
    padding: 4px 6px;
    font-size: 10px !important;
    line-height: 1.3 !important;
  }
  .support-chat-page.keyboard-open {
    height: calc(100dvh - var(--topbar-height, 64px) - 24px);
    min-height: 280px;
    padding-bottom: 0 !important;
  }
}

/* src/AdminMobileShell.css */
.support-chat-back {
  display: none;
}
@media (max-width: 820px) {
  html:has(.app.role-admin),
  body:has(.app.role-admin),
  #root:has(.app.role-admin) {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
  }
  body:has(.app.role-admin) {
    padding-bottom: 0 !important;
  }
  .app.role-admin {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 0 calc(12px + env(safe-area-inset-right)) 0 calc(12px + env(safe-area-inset-left)) !important;
    gap: 0;
    overflow: hidden;
  }
  .app.role-admin .app-shell.has-session,
  .app.role-admin .app-shell.has-session.route-table-scroll,
  .app.role-admin .app-shell.has-session.route-payments-received {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    padding-top: calc(var(--topbar-height, 64px) + env(safe-area-inset-top) + 16px);
    padding-bottom: calc(var(--bottom-nav-height, 96px) + env(safe-area-inset-bottom));
    overflow: hidden !important;
  }
  .app.role-admin::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: calc(var(--topbar-height, 64px) + env(safe-area-inset-top) + 16px);
    z-index: 999;
    pointer-events: none;
    background: #0b0f1a;
  }
  .app.role-admin > .topbar {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 8px);
    left: calc(12px + env(safe-area-inset-left));
    right: calc(12px + env(safe-area-inset-right));
    width: auto;
    z-index: 1000;
    isolation: isolate;
    border-radius: 8px;
    background: #121a2b;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 8px 16px rgba(2, 6, 23, 0.28);
  }
  .theme-light .app.role-admin > .topbar {
    background: #ffffff;
  }
  .theme-light .app.role-admin::before {
    background: #f5f7fb;
  }
  .app.role-admin .topbar .session {
    display: none;
  }
  .app.role-admin .topbar .theme-toggle {
    display: none;
  }
  .app.role-admin .topbar-left {
    min-width: 0;
  }
  .app.role-admin .topbar .brand {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .app.role-admin .app-shell.has-session > .grid {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100% !important;
    margin: 0;
    padding: 0 0 8px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .app.role-admin .app-shell.has-session > .grid::-webkit-scrollbar {
    display: none;
  }
  .app.role-admin .app-shell.has-session > .grid > .page-transition,
  .app.role-admin .app-shell.route-table-scroll .page-transition,
  .app.role-admin .app-shell.route-payments-received .page-transition {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .app.role-admin .users-page,
  .app.role-admin .plans-page,
  .app.role-admin .approvals-page,
  .app.role-admin .payments-page,
  .app.role-admin .payments-received-page,
  .app.role-admin .registrations-page,
  .app.role-admin .requests-page,
  .app.role-admin .admin-requests-page,
  .app.role-admin .settings-page,
  .app.role-admin .support-admin-page {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
  }
  .app.role-admin .users-page .table-wrap,
  .app.role-admin .plans-page .table-wrap,
  .app.role-admin .approvals-page .table-wrap,
  .app.role-admin .payments-page .table-wrap,
  .app.role-admin .payments-received-page .table-wrap,
  .app.role-admin .registrations-page .table-wrap,
  .app.role-admin .requests-page .request-list-container,
  .app.role-admin .admin-requests-page .admin-request-list-container,
  .app.role-admin .app-shell.route-table-scroll .table-wrap {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    max-height: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .app.role-admin .users-page .table-wrap::after,
  .app.role-admin .payments-received-page::after {
    content: none !important;
    display: none !important;
  }
  .app.role-admin .bottom-nav-spacer {
    display: none !important;
    height: 0 !important;
  }
  .app.role-admin .grid .card {
    padding: 12px;
    border-radius: 8px;
    box-shadow: none;
  }
  .app.role-admin .grid .card-header {
    gap: 8px;
    margin-bottom: 10px;
  }
  .app.role-admin .grid .card-header h2 {
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: 0;
  }
  .app.role-admin .grid .btn,
  .app.role-admin .grid input,
  .app.role-admin .grid select,
  .app.role-admin .grid textarea,
  .app.role-admin .grid .tab-button,
  .app.role-admin .grid .settings-group,
  .app.role-admin .grid .plan-card,
  .app.role-admin .grid .slip-preview {
    border-radius: 8px;
  }
  .app.role-admin .app-shell.has-session > .grid:has(.support-admin-page),
  .app.role-admin .page-transition:has(.support-admin-page) {
    overflow: hidden !important;
  }
  .app.role-admin .page-transition:has(.support-admin-page),
  .app.role-admin .support-admin-page {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
  }
  .app.role-admin .support-admin-page {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    overflow: hidden !important;
  }
  .app.role-admin .support-admin-page > .section-heading {
    flex: 0 0 auto;
    margin: 0;
  }
  .app.role-admin .support-admin-page.conversation-open > .section-heading {
    display: none;
  }
  .app.role-admin .support-admin-layout {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
  }
  .app.role-admin .support-chat-sidebar {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .app.role-admin .support-chat-sidebar::-webkit-scrollbar {
    display: none;
  }
  .app.role-admin .support-chat-thread {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    gap: 4px;
    padding: 11px 12px;
    border-radius: 8px;
  }
  .app.role-admin .support-chat-thread-title-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .app.role-admin .support-chat-thread-subtitle,
  .app.role-admin .support-chat-thread-preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .app.role-admin .support-chat-thread-preview {
    display: block;
  }
  .app.role-admin .support-chat-thread-time {
    font-size: 10px;
  }
  .app.role-admin .support-chat-panel {
    display: none;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
  }
  .app.role-admin .support-admin-page.conversation-open .support-chat-sidebar {
    display: none;
  }
  .app.role-admin .support-admin-page.conversation-open .support-chat-panel {
    display: flex;
  }
  .app.role-admin .support-chat-panel-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
  }
  .app.role-admin .support-chat-back {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 36px;
    align-items: center;
    gap: 4px;
    padding: 7px 9px;
    border-radius: 8px;
  }
  .app.role-admin .support-chat-back svg {
    width: 18px;
    height: 18px;
  }
  .app.role-admin .support-chat-panel-header > div {
    min-width: 0;
  }
  .app.role-admin .support-chat-panel-header h3,
  .app.role-admin .support-chat-panel-header p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .app.role-admin .support-chat-window.admin {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 10px 8px;
    overflow-y: auto;
    border-radius: 8px;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
  .app.role-admin .support-chat-compose {
    flex: 0 0 auto;
    gap: 7px;
  }
  .app.role-admin .support-chat-compose textarea {
    min-height: 48px;
    max-height: 84px;
    padding: 9px 10px;
    resize: none;
  }
  .app.role-admin .support-chat-actions {
    display: flex;
    grid-template-columns: none;
    gap: 7px;
  }
  .app.role-admin .support-chat-actions .btn {
    min-height: 36px;
    padding: 7px 10px;
  }
  .app.role-admin .support-chat-hint {
    display: none;
  }
}
