/*
 * v509 — the deployed RCON visual contract on every admin page.
 *
 * The declarations below are copied from the live RCON page. Only the
 * selector list is expanded so each page's equivalent components receive
 * the same surface, control, input, text and hover treatment.
 */

html body.ll-admin-shell {
  --bg: #030813;
  --panel: #0a1526;
  --panel2: #0d1b31;
  --line: rgba(70, 128, 199, .28);
  --line2: rgba(100, 170, 255, .36);
  --text: #f3f8ff;
  --muted: #9eb4d3;
  --blue: #0f68ea;
  --blue2: #4fa5ff;
  --accent2: #5fa1ff;
  --green: #29d57f;
  --yellow: #ffbd3d;
  --red: #ff525f;
  --purple: #7d5cff;
  --radius: 18px;
}

/* Exact RCON surface declarations, with equivalent page selectors mapped. */
html body.ll-admin-shell :where(
  .panel,
  .admin-panel,
  .dash-card,
  .dash-panel,
  .stat-card,
  .stat-cell,
  .store-v470-stat,
  .admin-stats article,
  .delivery-stat,
  .staff-stat,
  .command-card,
  .server-dropdown,
  .server-dropdown-item,
  .activity-item,
  .queue-wrap,
  .manual-banlist-card,
  .llp-panel,
  .llp-player-card,
  .llp-inline-profile,
  .player-row-card,
  .content-card,
  .section-card,
  .card,
  .admin-order-card,
  .admin-subscription-card,
  .block-card,
  .manual-unblock,
  .staff-card,
  .staff-panel,
  .staff-role-box,
  .staff-roster-panel,
  .staff-permission-panel,
  .staff-section-card,
  .delivery-head,
  .delivery-panel,
  .delivery-row,
  .delivery-command-card,
  .delivery-setup-card,
  .delivery-subscription-card,
  .store-v470-header,
  .store-v470-tabs,
  .store-v470-panel,
  .store-v470-catalogue-head,
  .store-v470-product-card,
  .admin-item-list-card,
  .item-option-panel,
  .editor-section,
  .editor-settings-panel,
  .editor-settings-rich-panel,
  .editor-settings-tools-panel,
  .editor-settings-actions-panel,
  .price-adjuster-card,
  .editor-thumbnail-panel,
  .quick-choice-card,
  .dino-help-card,
  .admin-step-card,
  .admin-recipe-card,
  .admin-preview-card,
  .admin-result-card,
  .selected-item-summary-card,
  .admin-setup-card,
  .command-placeholder-card,
  .command-preview-control-card,
  .command-stage-card,
  .primary-command-stage-card,
  .subscription-command-stage-card,
  .subscription-config-card,
  .discord-delivery-card,
  .product-media-help-card,
  .fb-builder-card,
  .feedback-access-card,
  .feedback-form-panel,
  .feedback-list-card,
  .feedback-admin-row,
  .feedback-server-card,
  .ll-feedback-card,
  .death-context-card,
  .death-search-form,
  .death-name-results,
  .death-overview-card,
  .death-entry,
  .death-record,
  .owner-preset-run-card,
  .notice,
  .notice-card,
  .preview-card,
  .toggle-row,
  .option-toggle-row,
  .table-wrap,
  .table-shell,
  .memorial-list-panel,
  .memorial-editor-panel,
  .memorial-image-preview,
  .memorial-toggle,
  .announcement-stats article,
  .announcement-composer,
  .announcement-preview-card,
  .announcement-history-card,
  .announcement-history-row,
  .announcement-toggle
) {
  background: linear-gradient(160deg, rgba(10, 18, 32, .96), rgba(4, 8, 16, .96)) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
  position: relative !important;
  overflow: hidden !important;
}

html body.ll-admin-shell :where(
  .panel,
  .admin-panel,
  .dash-card,
  .dash-panel,
  .stat-card,
  .stat-cell,
  .store-v470-stat,
  .admin-stats article,
  .delivery-stat,
  .staff-stat,
  .command-card,
  .server-dropdown,
  .manual-banlist-card,
  .player-tools,
  .llp-panel,
  .llp-player-card,
  .llp-inline-profile,
  .content-card,
  .section-card,
  .admin-order-card,
  .admin-subscription-card,
  .block-card,
  .staff-card,
  .staff-panel,
  .staff-roster-panel,
  .staff-permission-panel,
  .delivery-panel,
  .delivery-row,
  .store-v470-header,
  .store-v470-tabs,
  .store-v470-panel,
  .store-v470-product-card,
  .editor-section,
  .editor-settings-panel,
  .feedback-form-panel,
  .feedback-list-card,
  .feedback-admin-row,
  .feedback-server-card,
  .death-context-card,
  .death-search-form,
  .death-name-results,
  .death-overview-card,
  .death-entry,
  .death-record,
  .memorial-list-panel,
  .memorial-editor-panel,
  .announcement-stats article,
  .announcement-composer,
  .announcement-preview-card,
  .announcement-history-card
)::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: linear-gradient(to right, transparent, rgba(15, 104, 234, .55), transparent) !important;
  opacity: .65 !important;
  pointer-events: none !important;
}

html body.ll-admin-shell :where(
  .panel,
  .admin-panel,
  .dash-card,
  .dash-panel,
  .stat-card,
  .stat-cell,
  .store-v470-stat,
  .admin-stats article,
  .delivery-stat,
  .staff-stat,
  .command-card,
  .server-dropdown-item,
  .manual-banlist-card,
  .llp-panel,
  .llp-player-card,
  .llp-inline-profile,
  .player-row-card,
  .content-card,
  .section-card,
  .admin-order-card,
  .admin-subscription-card,
  .block-card,
  .staff-card,
  .staff-panel,
  .delivery-panel,
  .delivery-row,
  .store-v470-product-card,
  .feedback-admin-row,
  .feedback-server-card,
  .death-context-card,
  .death-overview-card,
  .death-entry,
  .death-record,
  .memorial-list-panel,
  .memorial-editor-panel,
  .announcement-stats article,
  .announcement-composer,
  .announcement-preview-card,
  .announcement-history-card,
  .announcement-history-row
):hover {
  border-color: rgba(15, 104, 234, .55) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .48), 0 0 32px rgba(15, 104, 234, .14) !important;
}

/* Exact final RCON rules: page surfaces never lift, slide, fade or brighten. */
html body.ll-admin-shell,
html body.ll-admin-shell :where(
  .panel,
  .admin-panel,
  .dash-card,
  .dash-panel,
  .stat-card,
  .stat-cell,
  .store-v470-stat,
  .admin-stats article,
  .delivery-stat,
  .staff-stat,
  .command-card,
  .server-dropdown,
  .server-dropdown-item,
  .activity-item,
  .queue-wrap,
  .manual-banlist-card,
  .llp-panel,
  .llp-player-card,
  .llp-inline-profile,
  .player-row-card,
  .content-card,
  .section-card,
  .card,
  .admin-order-card,
  .admin-subscription-card,
  .block-card,
  .staff-card,
  .staff-panel,
  .staff-roster-panel,
  .staff-permission-panel,
  .staff-section-card,
  .delivery-panel,
  .delivery-row,
  .store-v470-header,
  .store-v470-tabs,
  .store-v470-panel,
  .store-v470-product-card,
  .editor-section,
  .editor-settings-panel,
  .feedback-form-panel,
  .feedback-list-card,
  .feedback-admin-row,
  .feedback-server-card,
  .death-context-card,
  .death-search-form,
  .death-name-results,
  .death-overview-card,
  .death-entry,
  .death-record,
  .memorial-list-panel,
  .memorial-editor-panel,
  .announcement-stats article,
  .announcement-composer,
  .announcement-preview-card,
  .announcement-history-card,
  .announcement-history-row
) {
  transform: none !important;
  transition: border-color .14s ease, background-color .14s ease, box-shadow .14s ease !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}

html body.ll-admin-shell :where(
  .panel,
  .admin-panel,
  .dash-card,
  .dash-panel,
  .stat-card,
  .stat-cell,
  .store-v470-stat,
  .admin-stats article,
  .delivery-stat,
  .staff-stat,
  .command-card,
  .server-dropdown-item,
  .manual-banlist-card,
  .llp-panel,
  .llp-player-card,
  .llp-inline-profile,
  .player-row-card,
  .content-card,
  .section-card,
  .card,
  .admin-order-card,
  .admin-subscription-card,
  .block-card,
  .staff-card,
  .staff-panel,
  .delivery-panel,
  .delivery-row,
  .store-v470-product-card,
  .feedback-admin-row,
  .feedback-server-card,
  .death-context-card,
  .death-overview-card,
  .death-entry,
  .death-record,
  .memorial-list-panel,
  .memorial-editor-panel,
  .announcement-stats article,
  .announcement-composer,
  .announcement-preview-card,
  .announcement-history-card,
  .announcement-history-row
):hover {
  transform: none !important;
}

html body.ll-admin-shell :where(.panel, .admin-panel, .command-card, .stat-card) {
  box-shadow: 0 14px 34px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(95, 161, 255, .035) !important;
}

/* Exact RCON panel headings and copy. */
html body.ll-admin-shell :where(.panel-head, .announcement-panel-head, .memorial-panel-head, .llp-panel-head) {
  background: transparent !important;
  border-bottom: 1px solid rgba(15, 104, 234, .18) !important;
}

html body.ll-admin-shell :where(
  .panel-head h3,
  .panel-head h2,
  .announcement-panel-head h2,
  .memorial-panel-head h2,
  .command-card h4,
  .stat-card b,
  .activity-copy strong
) {
  color: #f7fbff !important;
  font-weight: 950 !important;
  letter-spacing: .02em !important;
  text-shadow: none !important;
}

html body.ll-admin-shell :where(
  .command-card p,
  .activity-copy span,
  .queue-footer span,
  small,
  .meta-line,
  .section-desc,
  .panel-copy,
  .data-table td,
  .data-table td div,
  table td
) {
  color: #d8e9ff !important;
  font-weight: 850 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html body.ll-admin-shell :where(
  .panel-head h3,
  .command-card h4,
  .stat-card small,
  .field-label,
  .cell-mini-head,
  .data-table th,
  table th
) {
  font-family: "Cinzel", Georgia, serif !important;
  text-transform: uppercase !important;
  letter-spacing: .14em !important;
  color: var(--accent2) !important;
  font-weight: 900 !important;
}

html body.ll-admin-shell :where(.command-card h4, .panel-head h3) {
  color: #fff !important;
}

/* Exact RCON controls. */
html body.ll-admin-shell :where(
  .btn,
  button,
  .view-btn,
  .filter-btn,
  .use-server,
  .edit-art,
  .staff-btn,
  .staff-link,
  .delivery-btn,
  .death-btn,
  .row-save-btn,
  .store-v470-button,
  .item-editor-back,
  .item-editor-view-product,
  .manual-banlist-btn,
  .copy-eos-btn,
  .kick-player-btn,
  .ban-player-btn,
  .unban-player-btn,
  .player-confirm-btn,
  .player-command-result-close,
  .rcon-command-result-close,
  .rcon-confirm-cancel,
  .rcon-confirm-accept,
  .dash-btn,
  .llp-refresh,
  .memorial-btn,
  .announcement-button
) {
  font-family: "Cinzel", serif !important;
  text-transform: uppercase !important;
  letter-spacing: 1.6px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(15, 104, 234, .35) !important;
  background: rgba(15, 104, 234, .06) !important;
  color: var(--accent2) !important;
  box-shadow: none !important;
  transition: all .22s ease !important;
}

html body.ll-admin-shell :where(
  .btn,
  button,
  .view-btn,
  .filter-btn,
  .use-server,
  .edit-art,
  .staff-btn,
  .staff-link,
  .delivery-btn,
  .death-btn,
  .row-save-btn,
  .store-v470-button,
  .item-editor-back,
  .item-editor-view-product,
  .manual-banlist-btn,
  .copy-eos-btn,
  .kick-player-btn,
  .ban-player-btn,
  .unban-player-btn,
  .dash-btn,
  .llp-refresh,
  .memorial-btn,
  .announcement-button
):hover {
  background: rgba(15, 104, 234, .14) !important;
  border-color: var(--accent2) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .38), 0 0 18px rgba(15, 104, 234, .12) !important;
  transform: translateY(-1px) !important;
}

html body.ll-admin-shell :where(.danger-btn, .ban-player-btn, .manual-banlist-btn.danger, button.danger, button[data-tone="danger"]) {
  border-color: rgba(255, 107, 125, .45) !important;
  color: #ffd7df !important;
  background: rgba(255, 107, 125, .08) !important;
}

/* Exact RCON inputs. */
html body.ll-admin-shell :where(
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea,
  .staff-editor,
  .command-preview
) {
  background: rgba(3, 10, 22, .88) !important;
  border: 1px solid rgba(15, 104, 234, .28) !important;
  border-radius: 12px !important;
  color: #e8f2ff !important;
  box-shadow: none !important;
}

html body.ll-admin-shell :where(
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea,
  .staff-editor,
  .command-preview
):focus {
  border-color: rgba(95, 161, 255, .64) !important;
  box-shadow: 0 0 18px rgba(15, 104, 234, .16) !important;
  outline: none !important;
}

/* Exact RCON table and pill treatment. */
html body.ll-admin-shell :where(.data-table tbody tr, table tbody tr) {
  background: linear-gradient(160deg, rgba(10, 18, 32, .96), rgba(4, 8, 16, .96)) !important;
  box-shadow: inset 0 0 0 1px var(--line) !important;
  transform: none !important;
  transition: border-color .14s ease, background-color .14s ease, box-shadow .14s ease !important;
}

html body.ll-admin-shell :where(.data-table tbody tr, table tbody tr):hover {
  box-shadow: inset 0 0 0 1px rgba(15, 104, 234, .55), 0 18px 48px rgba(0, 0, 0, .44), 0 0 24px rgba(15, 104, 234, .14) !important;
  transform: none !important;
}

html body.ll-admin-shell :where(.pill.blue, .pill.mini, .server-tags .pill, .player-tools .pill, .tag, .badge) {
  min-height: 31px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: rgba(15, 104, 234, .08) !important;
  border: 1px solid rgba(15, 104, 234, .35) !important;
  color: var(--accent2) !important;
  font-family: "Cinzel", serif !important;
  font-size: 10px !important;
  letter-spacing: 1.4px !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
}

html body.ll-admin-shell .footerbar {
  color: rgba(122, 168, 224, .8) !important;
  font-family: "Cinzel", serif !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  text-align: center !important;
}

/* Remove only the older non-RCON overlays and swipe effects. */
html body.ll-admin-shell::after,
html body.ll-admin-shell :where(
  .dash-card,
  .dash-panel,
  .stat-card,
  .stat-cell,
  .store-v470-stat,
  .admin-stats article,
  .delivery-stat,
  .staff-stat,
  .command-card,
  .admin-tool-card,
  .announcement-status,
  .announcement-toast,
  .announcement-stats article
)::after,
html body.ll-admin-shell :where(
  .chart-wrap,
  .dash-live,
  .manager-control-actions .btn,
  .manager-control-tabs .tab,
  .manager-filter-actions .btn,
  .manager-redesign-library-head .btn,
  .manager-row-actions button
)::after,
html body.ll-admin-shell .preview-image .featured-tag::before,
html body.ll-admin-shell nav.topbar.ll-admin-shared-sidebar .nav-links a::after,
html body.ll-admin-shell nav.topbar.ll-admin-shared-sidebar .admin-top-nav a::after {
  content: none !important;
  display: none !important;
  animation: none !important;
  transform: none !important;
}

html body.ll-admin-shell :where(.chart-wrap)::before,
html body.ll-admin-shell .dashboard-loading :where(.dash-card strong, #playersBody td, .mini-row, .notice, .health-pill)::after {
  content: none !important;
  display: none !important;
  animation: none !important;
  transform: none !important;
}

html body.ll-admin-shell :where(.staff-person.active, .announcement-stats article, .announcement-composer, .announcement-preview-card, .announcement-history-card, .announcement-history-row) {
  animation: none !important;
  filter: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html body.ll-admin-shell *,
  html body.ll-admin-shell *::before,
  html body.ll-admin-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
