/**
 * Offplanet FOSSBilling client skin (loads after Huraga + vendor).
 * Pairs with html/layout_*.html.twig (theme-offplanet class + default dark).
 */

.theme-offplanet {
  --op-bg0: #05050c;
  --op-bg1: #0c1020;
  --op-card: rgba(14, 18, 32, 0.92);
  --op-border: rgba(255, 255, 255, 0.1);
  --op-text: #e8ecf4;
  --op-muted: #9aa6bc;
  --op-accent: #5aa8ff;
  --op-gold: #fbbf24;
  --op-mint: #5eead4;
}

html.theme-offplanet,
body.theme-offplanet {
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  background: var(--op-bg0) !important;
  color: var(--op-text) !important;
  min-height: 100vh;
}

body.theme-offplanet {
  background-image:
    radial-gradient(ellipse 100% 60% at 20% -10%, rgba(90, 168, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 80% 50% at 95% 0%, rgba(167, 139, 250, 0.1), transparent 45%),
    linear-gradient(180deg, var(--op-bg0), var(--op-bg1)) !important;
  background-attachment: fixed;
}

.theme-offplanet .op-fb-shell {
  max-width: min(120rem, 100%);
  width: 100%;
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
}

.theme-offplanet .op-main-site-btn {
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: var(--op-text) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.theme-offplanet .op-main-site-btn:hover {
  border-color: rgba(90, 168, 255, 0.45) !important;
  background: rgba(90, 168, 255, 0.12) !important;
  color: #fff !important;
}

.theme-offplanet .navbar {
  background: rgba(8, 12, 24, 0.75) !important;
  backdrop-filter: blur(12px);
  border: 1px solid var(--op-border);
  border-radius: 14px;
  margin-bottom: 1rem;
}

.theme-offplanet .navbar-brand,
.theme-offplanet .nav-link {
  color: var(--op-text) !important;
}

.theme-offplanet .nav-link:hover {
  color: var(--op-accent) !important;
}

.theme-offplanet .navbar-toggler {
  border-color: var(--op-border);
}

.theme-offplanet .navbar-toggler-icon {
  filter: invert(0.92);
}

.theme-offplanet .form-select,
.theme-offplanet .form-control {
  background: rgba(0, 0, 0, 0.35);
  border-color: var(--op-border);
  color: var(--op-text);
  font-size: 1rem;
}

.theme-offplanet .form-select:focus,
.theme-offplanet .form-control:focus {
  border-color: rgba(90, 168, 255, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(90, 168, 255, 0.2);
  color: var(--op-text);
  background: rgba(0, 0, 0, 0.45);
}

.theme-offplanet .btn-primary {
  background: linear-gradient(135deg, var(--op-accent), #7eb8ff) !important;
  border: none !important;
  color: #061018 !important;
  font-weight: 600;
}

.theme-offplanet .btn-primary:hover {
  filter: brightness(1.06);
}

.theme-offplanet .btn-outline-primary {
  border-color: rgba(90, 168, 255, 0.55) !important;
  color: var(--op-accent) !important;
}

.theme-offplanet .btn-outline-primary:hover {
  background: rgba(90, 168, 255, 0.15) !important;
  color: #fff !important;
}

.theme-offplanet .card,
.theme-offplanet .box,
.theme-offplanet .panel,
.theme-offplanet .content-block > .card,
.theme-offplanet .table-responsive {
  background: var(--op-card) !important;
  border: 1px solid var(--op-border) !important;
  border-radius: 12px !important;
  color: var(--op-text) !important;
}

.theme-offplanet .card-header,
.theme-offplanet .table thead th {
  background: rgba(0, 0, 0, 0.35) !important;
  border-color: var(--op-border) !important;
  color: var(--op-text) !important;
  font-weight: 600;
}

.theme-offplanet .table {
  color: var(--op-text) !important;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-hover-bg: rgba(90, 168, 255, 0.08);
}

.theme-offplanet .table td,
.theme-offplanet .table th {
  border-color: var(--op-border) !important;
}

.theme-offplanet .alert {
  border-radius: 10px;
  border: 1px solid var(--op-border);
}

.theme-offplanet .alert-info,
.theme-offplanet .alert-primary {
  background: rgba(90, 168, 255, 0.12) !important;
  color: var(--op-text) !important;
  border-color: rgba(90, 168, 255, 0.25) !important;
}

.theme-offplanet .alert-success {
  background: rgba(94, 234, 212, 0.1) !important;
  color: var(--op-text) !important;
  border-color: rgba(94, 234, 212, 0.25) !important;
}

.theme-offplanet .alert-warning {
  background: rgba(251, 191, 36, 0.12) !important;
  color: var(--op-text) !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
}

.theme-offplanet .alert-danger {
  background: rgba(248, 113, 113, 0.12) !important;
  color: var(--op-text) !important;
}

.theme-offplanet .op-showcase {
  padding: 1.35rem 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--op-border);
  background: linear-gradient(145deg, rgba(20, 28, 48, 0.95), rgba(10, 14, 28, 0.88)) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.theme-offplanet .op-showcase-hero {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 768px) {
  .theme-offplanet .op-showcase-hero {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 34%);
    gap: 1.5rem 2rem;
    padding: 1.5rem 1.75rem;
  }
}

.theme-offplanet .op-showcase-art {
  justify-self: center;
  width: 100%;
  max-width: 22rem;
}

@media (min-width: 768px) {
  .theme-offplanet .op-showcase-art {
    justify-self: end;
    max-width: none;
  }
}

.theme-offplanet .op-space-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.theme-offplanet .op-showcase h2 {
  color: var(--op-text);
  letter-spacing: -0.02em;
}

.theme-offplanet .op-showcase .op-lead {
  color: var(--op-muted);
  max-width: min(42rem, 100%);
  line-height: 1.55;
}

.theme-offplanet .op-showcase .op-sub {
  color: var(--op-muted);
  opacity: 0.92;
}

.theme-offplanet .navbar-brand.op-brand .op-wordmark {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--op-text), var(--op-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.theme-offplanet .breadcrumb {
  background: transparent !important;
}

.theme-offplanet .breadcrumb-item a {
  color: var(--op-accent) !important;
}

.theme-offplanet .breadcrumb-item.active,
.theme-offplanet .text-muted,
.theme-offplanet #footer {
  color: var(--op-muted) !important;
}

.theme-offplanet #footer a {
  color: var(--op-muted) !important;
}

.theme-offplanet #footer a:hover {
  color: var(--op-accent) !important;
}

.theme-offplanet .dropdown-menu {
  background: var(--op-card);
  border: 1px solid var(--op-border);
}

.theme-offplanet .dropdown-item {
  color: var(--op-text);
}

.theme-offplanet .dropdown-item:hover {
  background: rgba(90, 168, 255, 0.12);
  color: #fff;
}

.theme-offplanet .list-group-item {
  background: rgba(0, 0, 0, 0.2);
  border-color: var(--op-border);
  color: var(--op-text);
}

.theme-offplanet .list-group-item:hover {
  background: rgba(90, 168, 255, 0.08);
}

.theme-offplanet a {
  color: var(--op-accent);
}

.theme-offplanet a:hover {
  color: #93c5fd;
}

.theme-offplanet h1,
.theme-offplanet h2,
.theme-offplanet h3,
.theme-offplanet h4,
.theme-offplanet h5 {
  color: var(--op-text) !important;
}

.theme-offplanet .badge {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.04em;
}

.theme-offplanet .modal-content {
  background: var(--op-card);
  border: 1px solid var(--op-border);
  color: var(--op-text);
}

.theme-offplanet .modal-header,
.theme-offplanet .modal-footer {
  border-color: var(--op-border);
}

.theme-offplanet .pagination .page-link {
  background: rgba(0, 0, 0, 0.35);
  border-color: var(--op-border);
  color: var(--op-text);
}

.theme-offplanet .pagination .page-link:hover {
  background: rgba(90, 168, 255, 0.15);
  color: #fff;
}

.theme-offplanet .pagination .active .page-link {
  background: var(--op-accent);
  border-color: var(--op-accent);
  color: #061018;
}

/* Side menu blocks (Huraga / partial_menu) */
.theme-offplanet .list-group-flush .list-group-item,
.theme-offplanet aside .nav-link {
  border-radius: 8px;
}

.theme-offplanet .content-block {
  font-size: 1.05rem;
  line-height: 1.55;
}

.theme-offplanet .small,
.theme-offplanet small {
  font-size: 0.92rem !important;
}

/* Huraga sidebar / offcanvas (partial_menu) */
.theme-offplanet .offcanvas,
.theme-offplanet .offcanvas-md {
  background: var(--op-bg1) !important;
  border-color: var(--op-border) !important;
}

.theme-offplanet .offcanvas-header {
  border-bottom: 1px solid var(--op-border);
}

.theme-offplanet .nav.flex-column .nav-link {
  border-radius: 10px;
  color: var(--op-text) !important;
  margin-bottom: 0.15rem;
}

.theme-offplanet .nav.flex-column .nav-link:hover,
.theme-offplanet .nav.flex-column .nav-link:focus {
  background: rgba(90, 168, 255, 0.1) !important;
  color: #fff !important;
}

.theme-offplanet .nav.flex-column .svg-icon {
  opacity: 0.9;
}

.theme-offplanet .btn-secondary,
.theme-offplanet .btn-dark {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--op-border) !important;
  color: var(--op-text) !important;
}

.theme-offplanet .btn-secondary:hover,
.theme-offplanet .btn-dark:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}

.theme-offplanet .btn-success {
  background: linear-gradient(135deg, #0d9488, var(--op-mint)) !important;
  border: none !important;
  color: #04120f !important;
}

.theme-offplanet .btn-danger {
  background: rgba(220, 38, 38, 0.85) !important;
  border: none !important;
}

.theme-offplanet .form-check-input {
  background-color: rgba(0, 0, 0, 0.4);
  border-color: var(--op-border);
}

.theme-offplanet .form-check-input:checked {
  background-color: var(--op-accent);
  border-color: var(--op-accent);
}

.theme-offplanet .form-label,
.theme-offplanet label {
  color: var(--op-muted);
}

.theme-offplanet .input-group-text {
  background: rgba(0, 0, 0, 0.45);
  border-color: var(--op-border);
  color: var(--op-muted);
}

.theme-offplanet .progress {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
}

.theme-offplanet .progress-bar {
  background: linear-gradient(90deg, var(--op-accent), var(--op-mint));
}

.theme-offplanet .text-bg-primary,
.theme-offplanet .bg-primary {
  background: rgba(90, 168, 255, 0.25) !important;
  color: var(--op-text) !important;
}

.theme-offplanet .border,
.theme-offplanet .border-top,
.theme-offplanet .border-bottom {
  border-color: var(--op-border) !important;
}

.theme-offplanet pre,
.theme-offplanet code {
  background: rgba(0, 0, 0, 0.45);
  color: var(--op-mint);
  border: 1px solid var(--op-border);
  border-radius: 8px;
}

.theme-offplanet .toast {
  background: var(--op-card);
  border: 1px solid var(--op-border);
  color: var(--op-text);
}

.theme-offplanet .toast-header {
  background: rgba(0, 0, 0, 0.35);
  color: var(--op-text);
  border-bottom-color: var(--op-border);
}

.theme-offplanet hr {
  border-color: var(--op-border);
  opacity: 1;
}

.theme-offplanet .text-dark {
  color: var(--op-text) !important;
}

.theme-offplanet .bg-light {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--op-text) !important;
}
