/* ==========================================================
 * Ameen License Server – Frontend Styles
 * Drop-in replacement for als-frontend.css
 * - Product pages (plans, hero, etc.)
 * - My Licenses dashboard
 * - Shared buttons, badges, alerts
 * ======================================================= */

/* ----------------------------------------------------------
 * Design Tokens
 * ------------------------------------------------------- */

:root {
  /* Colors */
  --als-color-bg:           #f8fafc;
  --als-color-bg-soft:      #edf2f7;
  --als-color-card:         #ffffff;
  --als-color-border:       #e2e8f0;

  --als-color-primary:      #0f766e;
  --als-color-primary-soft: rgba(15, 118, 110, 0.08);
  --als-color-primary-deep: #115e59;

  --als-color-text:         #0f172a;
  --als-color-muted:        #64748b;
  --als-color-muted-soft:   #e5e7eb;

  --als-color-success:      #16a34a;
  --als-color-success-soft: rgba(22, 163, 74, 0.10);

  --als-color-warning:      #f97316;
  --als-color-warning-soft: rgba(249, 115, 22, 0.10);

  --als-color-danger:       #dc2626;
  --als-color-danger-soft:  rgba(220, 38, 38, 0.10);

  --als-color-badge-active:   #ecfdf3;
  --als-color-badge-trial:    #eff6ff;
  --als-color-badge-grace:    #fffbeb;
  --als-color-badge-expired:  #fef2f2;

  /* Typography */
  --als-font-sans:        system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --als-font-size-h1:     2rem;
  --als-font-size-h2:     1.5rem;
  --als-font-size-h3:     1.25rem;
  --als-font-size-body:   0.95rem;
  --als-font-size-small:  0.82rem;

  --als-line-height-tight: 1.2;
  --als-line-height-body:  1.6;

  /* Spacing */
  --als-space-xs:         0.25rem;
  --als-space-sm:         0.5rem;
  --als-space-md:         0.75rem;
  --als-space-lg:         1rem;
  --als-space-xl:         1.5rem;
  --als-space-2xl:        2rem;

  /* Radii */
  --als-radius-pill:      999px;
  --als-radius-sm:        0.375rem;
  --als-radius-md:        0.75rem;
  --als-radius-card:      1rem;

  /* Shadows */
  --als-shadow-soft:      0 18px 45px rgba(15, 23, 42, 0.10);
  --als-shadow-subtle:    0 5px 18px rgba(15, 23, 42, 0.05);

  /* Transitions */
  --als-transition-fast:  150ms ease-out;
  --als-transition-med:   220ms ease-out;
}

/* ----------------------------------------------------------
 * Base Shell & Layout
 * ------------------------------------------------------- */

.als-shell {
  font-family: var(--als-font-sans);
  background: var(--als-color-bg);
  color: var(--als-color-text);
  line-height: var(--als-line-height-body);
  padding: var(--als-space-2xl) var(--als-space-lg);
}

.als-shell-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* Tighter padding on very small screens */
@media (max-width: 640px) {
  .als-shell {
    padding: var(--als-space-xl) var(--als-space-md);
  }
}

/* ----------------------------------------------------------
 * Page Titles & Intro
 * ------------------------------------------------------- */

.als-page-title {
  font-size: var(--als-font-size-h1);
  line-height: var(--als-line-height-tight);
  margin-bottom: var(--als-space-sm);
  letter-spacing: -0.02em;
}

.als-page-subtitle {
  font-size: var(--als-font-size-body);
  color: var(--als-color-muted);
  margin-bottom: var(--als-space-xl);
  max-width: 40rem;
}

/* Simple page header row (optional) */
.als-page-header {
  display: flex;
  flex-direction: column;
  gap: var(--als-space-sm);
  margin-bottom: var(--als-space-xl);
}

@media (min-width: 768px) {
  .als-page-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

/* ----------------------------------------------------------
 * Cards
 * ------------------------------------------------------- */

.als-card {
  background: var(--als-color-card);
  border-radius: var(--als-radius-card);
  box-shadow: var(--als-shadow-subtle);
  border: 1px solid var(--als-color-border);
  padding: var(--als-space-xl);
}

.als-card + .als-card {
  margin-top: var(--als-space-lg);
}

/* Clickable card variation */
.als-card--clickable {
  cursor: pointer;
  transition:
    box-shadow var(--als-transition-med),
    transform var(--als-transition-fast),
    border-color var(--als-transition-med);
}

.als-card--clickable:hover {
  box-shadow: var(--als-shadow-soft);
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.35);
}

/* Compact card option */
.als-card--compact {
  padding: var(--als-space-lg);
}

/* ----------------------------------------------------------
 * Buttons
 * ------------------------------------------------------- */

.als-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: var(--als-space-sm) var(--als-space-xl);
  border-radius: var(--als-radius-pill);
  font-size: var(--als-font-size-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--als-transition-med),
    box-shadow var(--als-transition-med),
    transform var(--als-transition-fast),
    color var(--als-transition-med);
  white-space: nowrap;
}

/* Primary */
.als-btn-primary {
  background: var(--als-color-primary);
  color: #ffffff;
  box-shadow: var(--als-shadow-soft);
}

.als-btn-primary:hover {
  background: var(--als-color-primary-deep);
  transform: translateY(-1px);
}

.als-btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--als-shadow-subtle);
}

/* Secondary */
.als-btn-secondary {
  background: var(--als-color-bg-soft);
  color: var(--als-color-text);
  box-shadow: none;
}

.als-btn-secondary:hover {
  background: #e0e7ff;
}

/* Ghost */
.als-btn-ghost {
  background: transparent;
  color: var(--als-color-primary);
  border: 1px solid rgba(15, 118, 110, 0.2);
}

.als-btn-ghost:hover {
  background: var(--als-color-primary-soft);
}

/* Danger */
.als-btn-danger {
  background: var(--als-color-danger);
  color: #ffffff;
}

.als-btn-danger:hover {
  background: #b91c1c;
}

/* Sizes */
.als-btn-sm {
  padding: var(--als-space-xs) var(--als-space-md);
  font-size: var(--als-font-size-small);
}

.als-btn-full {
  width: 100%;
}

/* States */
.als-btn:focus-visible {
  outline: 3px solid var(--als-color-primary-soft);
  outline-offset: 2px;
}

.als-btn:disabled,
.als-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.als-btn:disabled:hover,
.als-btn.is-disabled:hover {
  background: inherit;
  transform: none;
}

/* ----------------------------------------------------------
 * Badges & Status Chips
 * ------------------------------------------------------- */

.als-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: var(--als-radius-pill);
  font-size: var(--als-font-size-small);
  font-weight: 500;
  border: 1px solid transparent;
}

/* Variants match your license states */
.als-badge--active {
  background: var(--als-color-badge-active);
  color: var(--als-color-success);
  border-color: rgba(22, 163, 74, 0.25);
}

.als-badge--trial {
  background: var(--als-color-badge-trial);
  color: var(--als-color-primary);
  border-color: rgba(37, 99, 235, 0.25);
}

.als-badge--grace {
  background: var(--als-color-badge-grace);
  color: var(--als-color-warning);
  border-color: rgba(249, 115, 22, 0.25);
}

.als-badge--expired {
  background: var(--als-color-badge-expired);
  color: var(--als-color-danger);
  border-color: rgba(220, 38, 38, 0.25);
}

/* Generic status pill */
.als-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.6rem;
  border-radius: var(--als-radius-pill);
  font-size: var(--als-font-size-small);
}

.als-status-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}

/* Map to same colors */
.als-status--active {
  background: var(--als-color-badge-active);
  color: var(--als-color-success);
}

.als-status--trial {
  background: var(--als-color-badge-trial);
  color: var(--als-color-primary);
}

.als-status--grace {
  background: var(--als-color-badge-grace);
  color: var(--als-color-warning);
}

.als-status--expired {
  background: var(--als-color-badge-expired);
  color: var(--als-color-danger);
}

/* ----------------------------------------------------------
 * Alerts & Messages
 * ------------------------------------------------------- */

.als-alert {
  border-radius: var(--als-radius-md);
  padding: var(--als-space-md) var(--als-space-lg);
  border: 1px solid var(--als-color-border);
  background: var(--als-color-bg-soft);
  display: flex;
  gap: var(--als-space-md);
  font-size: var(--als-font-size-body);
  margin-bottom: var(--als-space-lg);
}

.als-alert-title {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.als-alert-body {
  margin: 0;
  color: var(--als-color-muted);
}

/* Variants */
.als-alert--success {
  border-color: rgba(22, 163, 74, 0.3);
  background: var(--als-color-success-soft);
}

.als-alert--warning {
  border-color: rgba(249, 115, 22, 0.4);
  background: var(--als-color-warning-soft);
}

.als-alert--danger {
  border-color: rgba(220, 38, 38, 0.4);
  background: var(--als-color-danger-soft);
}

/* ----------------------------------------------------------
 * Product Page
 * ------------------------------------------------------- */

.als-product-hero {
  margin-bottom: var(--als-space-2xl);
}

.als-product-name {
  font-size: var(--als-font-size-h1);
  line-height: var(--als-line-height-tight);
  margin-bottom: var(--als-space-xs);
}

.als-product-kicker {
  font-size: var(--als-font-size-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--als-color-primary);
  margin-bottom: var(--als-space-xs);
}

.als-product-description {
  margin-top: var(--als-space-md);
  font-size: var(--als-font-size-body);
  line-height: var(--als-line-height-body);
  color: var(--als-color-muted);
  max-width: 42rem;
}

.als-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--als-space-md);
  margin-top: var(--als-space-md);
  font-size: var(--als-font-size-small);
  color: var(--als-color-muted);
}

.als-product-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Section titles */
.als-section-title {
  font-size: var(--als-font-size-h2);
  margin-bottom: var(--als-space-lg);
}

/* Plans container */
.als-product-plans {
  margin-top: var(--als-space-xl);
}

/* Plan grid */
.als-grid-plans {
  display: grid;
  gap: var(--als-space-lg);
}

@media (min-width: 640px) {
  .als-grid-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .als-grid-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Plan cards */
.als-plan-card {
  position: relative;
  background: var(--als-color-card);
  border-radius: var(--als-radius-card);
  border: 1px solid var(--als-color-border);
  padding: var(--als-space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--als-space-md);
  box-shadow: var(--als-shadow-subtle);
  transition:
    border-color var(--als-transition-med),
    box-shadow var(--als-transition-med),
    transform var(--als-transition-fast);
}

.als-plan-card:hover {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: var(--als-shadow-soft);
  transform: translateY(-2px);
}

/* Featured plan */
.als-plan-card--featured {
  border: 2px solid var(--als-color-primary);
  box-shadow: var(--als-shadow-soft);
}

.als-plan-badge {
  position: absolute;
  top: var(--als-space-md);
  right: var(--als-space-md);
}

/* Plan header */
.als-plan-name {
  font-size: var(--als-font-size-h3);
  margin-bottom: var(--als-space-xs);
}

.als-plan-tagline {
  font-size: var(--als-font-size-small);
  color: var(--als-color-muted);
}

/* Price row */
.als-plan-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--als-space-sm);
  margin: var(--als-space-md) 0;
}

.als-plan-price {
  font-size: 1.4rem;
  font-weight: 700;
}

.als-plan-billing {
  font-size: var(--als-font-size-small);
  color: var(--als-color-muted);
}

/* Summary & feature list */
.als-plan-summary {
  font-size: var(--als-font-size-body);
  color: var(--als-color-muted);
}

.als-plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--als-font-size-small);
  display: flex;
  flex-direction: column;
  gap: var(--als-space-xs);
}

.als-plan-features li {
  display: flex;
  align-items: center;
  gap: var(--als-space-xs);
}

.als-plan-features li::before {
  content: "•";
  color: var(--als-color-primary);
  font-weight: 700;
}

/* CTA area stays pinned at bottom */
.als-plan-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--als-space-sm);
}

/* Small helper text under button */
.als-plan-note {
  font-size: var(--als-font-size-small);
  color: var(--als-color-muted);
}

/* ----------------------------------------------------------
 * My Licenses
 * ------------------------------------------------------- */

.als-my-licenses-header {
  margin-bottom: var(--als-space-xl);
}

.als-license-list {
  display: flex;
  flex-direction: column;
  gap: var(--als-space-lg);
}

.als-license-card {
  display: flex;
  flex-direction: column;
  gap: var(--als-space-md);
}

@media (min-width: 900px) {
  .als-license-card {
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
  }
}

/* License left column (product + key + meta) */
.als-license-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--als-space-md);
}

/* License right column (actions, status) */
.als-license-aside {
  display: flex;
  flex-direction: column;
  gap: var(--als-space-sm);
  min-width: 220px;
}

@media (max-width: 899px) {
  .als-license-aside {
    border-top: 1px dashed var(--als-color-muted-soft);
    padding-top: var(--als-space-md);
  }
}

/* Header row within a license card */
.als-license-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--als-space-md);
}

.als-license-product {
  font-size: var(--als-font-size-h3);
  margin: 0 0 var(--als-space-xs);
}

.als-license-plan {
  margin: 0;
  font-size: var(--als-font-size-small);
  color: var(--als-color-muted);
}

/* License key row */
.als-license-key-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--als-space-sm);
  background: var(--als-color-bg-soft);
  border-radius: var(--als-radius-md);
  padding: var(--als-space-sm) var(--als-space-md);
}

.als-license-key-label {
  font-size: var(--als-font-size-small);
  color: var(--als-color-muted);
}

.als-license-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: var(--als-font-size-small);
  padding: 2px 6px;
  background: #0b11201a;
  border-radius: var(--als-radius-sm);
  word-break: break-all;
}

/* Meta line items (sites, next renewal, etc.) */
.als-license-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--als-space-md);
  font-size: var(--als-font-size-small);
  color: var(--als-color-muted);
}

.als-license-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.als-license-meta-item::before {
  content: "•";
  color: var(--als-color-muted);
}

/* License actions */
.als-license-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--als-space-sm);
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .als-license-actions {
    justify-content: flex-start;
  }
}

/* ----------------------------------------------------------
 * Generic Layout Utility
 * ------------------------------------------------------- */

.als-stack {
  display: flex;
  flex-direction: column;
  gap: var(--als-space-md);
}

.als-stack-lg {
  display: flex;
  flex-direction: column;
  gap: var(--als-space-lg);
}

.als-row {
  display: flex;
  align-items: center;
  gap: var(--als-space-md);
}

/* ----------------------------------------------------------
 * Utility Classes
 * ------------------------------------------------------- */

.als-text-center {
  text-align: center;
}

.als-text-right {
  text-align: right;
}

.als-text-muted {
  color: var(--als-color-muted);
}

.als-mb-xs { margin-bottom: var(--als-space-xs); }
.als-mb-sm { margin-bottom: var(--als-space-sm); }
.als-mb-md { margin-bottom: var(--als-space-md); }
.als-mb-lg { margin-bottom: var(--als-space-lg); }
.als-mb-xl { margin-bottom: var(--als-space-xl); }

.als-pill {
  border-radius: var(--als-radius-pill);
}

.als-muted-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: var(--als-radius-pill);
  background: var(--als-color-bg-soft);
  font-size: var(--als-font-size-small);
  color: var(--als-color-muted);
}

/* Subtle divider */
.als-divider {
  border: 0;
  border-top: 1px solid var(--als-color-muted-soft);
  margin: var(--als-space-md) 0;
}

/* Empty state */
.als-empty-state {
  padding: var(--als-space-xl);
  text-align: center;
  color: var(--als-color-muted);
}

.als-empty-state-title {
  font-weight: 600;
  margin-bottom: var(--als-space-xs);
}

.als-empty-state-body {
  font-size: var(--als-font-size-body);
}

/* Small inline code / tag style */
.als-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: var(--als-font-size-small);
  padding: 2px 6px;
  border-radius: var(--als-radius-sm);
  background: #0b11201a;
}

/* Loading skeleton blocks (if you want them later) */
.als-skeleton {
  border-radius: 999px;
  background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
  background-size: 200% 100%;
  animation: als-skeleton 1.4s ease-in-out infinite;
}

@keyframes als-skeleton {
  0% { background-position: -40% 0; }
  100% { background-position: 140% 0; }
}

/* ==========================================================================
   ALS Frontend (Sidebar + Buybox + Categories + More Plugins)
   Uses your --als-* tokens (with safe fallbacks).
   ========================================================================== */

/* Scope-friendly box sizing */
.alsSidebar,
.alsSidebar * ,
.alsBuybox,
.alsBuybox *,
.alsCatBadges,
.alsCatBadges *,
.alsIncludes,
.alsIncludes *,
.alsMeta,
.alsMeta *,
.alsMorePlugins,
.alsMorePlugins * {
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Sidebar shell
   -------------------------------------------------------------------------- */

.alsSidebar {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.alsSidebar__card {
	background: var(--als-color-bg-soft, #ffffff);
	border: 1px solid var(--als-color-border, #e5e7eb);
	border-radius: var(--als-radius-xl, 16px);
	padding: 16px;
	box-shadow: var(--als-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.06));
}

.alsSidebar__title {
	margin: 0 0 10px 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--als-color-text, #0f172a);
}

/* --------------------------------------------------------------------------
   Category badges
   -------------------------------------------------------------------------- */

.alsCatBadges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.alsCatBadges__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;

	padding: 7px 10px;
	border-radius: 999px;

	background: var(--als-color-bg, #f8fafc);
	border: 1px solid var(--als-color-border, #e5e7eb);

	color: var(--als-color-text, #0f172a);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1;
	transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.alsCatBadges__badge:hover {
	border-color: var(--als-color-primary, #0ea5e9);
	box-shadow: var(--als-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.06));
	transform: translateY(-1px);
}

.alsCatBadges__badge:focus-visible {
	outline: 2px solid var(--als-color-primary, #0ea5e9);
	outline-offset: 2px;
}

.alsCatBadges__badge.is-static {
	cursor: default;
}

.alsCatBadges__empty {
	color: var(--als-color-muted, #64748b);
	font-size: 13px;
	line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Includes list
   -------------------------------------------------------------------------- */

.alsIncludes__empty {
	color: var(--als-color-muted, #64748b);
	font-size: 13px;
	line-height: 1.35;
}

.alsIncludes__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.alsIncludes__item {
	position: relative;
	padding-left: 18px;
	color: var(--als-color-text, #0f172a);
	font-size: 13px;
	line-height: 1.45;
}

.alsIncludes__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--als-color-primary, #0ea5e9);
	opacity: 0.9;
	transform: translateY(-50%);
}

/* --------------------------------------------------------------------------
   Meta rows (Details)
   -------------------------------------------------------------------------- */

.alsMeta {
	display: grid;
	gap: 10px;
}

.alsMetaRow {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	align-items: baseline;

	padding: 10px 0;
	border-top: 1px solid var(--als-color-border, #e5e7eb);
}

.alsMetaRow:first-child {
	border-top: 0;
	padding-top: 0;
}

.alsMetaKey {
	color: var(--als-color-muted, #64748b);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.alsMetaVal {
	color: var(--als-color-text, #0f172a);
	font-size: 13px;
	font-weight: 700;
	text-align: right;
}

.alsMetaPill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	border-radius: 999px;

	background: var(--als-color-bg, #f8fafc);
	border: 1px solid var(--als-color-border, #e5e7eb);

	color: var(--als-color-text, #0f172a);
	font-size: 12px;
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   Buybox
   -------------------------------------------------------------------------- */

.alsBuybox {
	display: grid;
	gap: 12px;
}

.alsBuyboxTop {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.alsBuyboxTitle {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	color: var(--als-color-text, #0f172a);
	letter-spacing: 0.01em;
}

.alsBuyboxMuted {
	margin: 6px 0 0 0;
	font-size: 13px;
	line-height: 1.35;
	color: var(--als-color-muted, #64748b);
}

.alsBuyboxTabs {
	display: inline-flex;
	gap: 6px;
	padding: 4px;
	border-radius: 999px;
	background: var(--als-color-bg, #f8fafc);
	border: 1px solid var(--als-color-border, #e5e7eb);
}

.alsBuyboxTab {
	appearance: none;
	border: 0;
	cursor: pointer;

	padding: 8px 10px;
	border-radius: 999px;

	background: transparent;
	color: var(--als-color-muted, #64748b);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1;

	transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}

.alsBuyboxTab:hover {
	transform: translateY(-1px);
}

.alsBuyboxTab.is-active {
	background: var(--als-color-primary, #0ea5e9);
	color: var(--als-color-on-primary, #ffffff);
}

.alsBuyboxTab:focus-visible {
	outline: 2px solid var(--als-color-primary, #0ea5e9);
	outline-offset: 2px;
}

.alsBuyboxRow {
	display: grid;
	gap: 10px;
}

.alsBuyboxSelect {
	width: 100%;
	padding: 10px 12px;
	border-radius: var(--als-radius-lg, 12px);
	border: 1px solid var(--als-color-border, #e5e7eb);
	background: var(--als-color-bg, #f8fafc);
	color: var(--als-color-text, #0f172a);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}

.alsBuyboxSelect:focus {
	outline: none;
	border-color: var(--als-color-primary, #0ea5e9);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--als-color-primary, #0ea5e9) 22%, transparent);
}

.alsBuyboxPrice {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;

	padding: 12px;
	border-radius: var(--als-radius-lg, 12px);
	background: var(--als-color-bg, #f8fafc);
	border: 1px solid var(--als-color-border, #e5e7eb);
}

.alsBuyboxPrice [data-role="label"] {
	color: var(--als-color-muted, #64748b);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.alsBuyboxPrice [data-role="price"] {
	color: var(--als-color-text, #0f172a);
	font-size: 18px;
	font-weight: 900;
	letter-spacing: 0.01em;
}

.alsBuyboxCTA {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;

	width: 100%;
	padding: 12px 14px;
	border-radius: var(--als-radius-lg, 12px);

	background: var(--als-color-primary, #0ea5e9);
	color: var(--als-color-on-primary, #ffffff);

	font-size: 13px;
	font-weight: 900;
	text-decoration: none;
	line-height: 1;

	border: 1px solid color-mix(in srgb, var(--als-color-primary, #0ea5e9) 70%, #0000);
	box-shadow: var(--als-shadow-md, 0 6px 16px rgba(0, 0, 0, 0.10));

	transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.alsBuyboxCTA:hover {
	transform: translateY(-1px);
	filter: brightness(1.02);
	box-shadow: var(--als-shadow-lg, 0 10px 22px rgba(0, 0, 0, 0.14));
}

.alsBuyboxCTA:focus-visible {
	outline: 2px solid var(--als-color-primary, #0ea5e9);
	outline-offset: 2px;
}

.alsBuyboxNote {
	margin: 0;
	color: var(--als-color-muted, #64748b);
	font-size: 12px;
	line-height: 1.45;
}

/* --------------------------------------------------------------------------
   More Plugins
   -------------------------------------------------------------------------- */

.alsMorePlugins {
	display: grid;
	gap: 12px;
}

.alsMorePlugins__empty {
	color: var(--als-color-muted, #64748b);
	font-size: 13px;
	line-height: 1.35;
}

/* Switcher */
.alsMoreSwitch {
	display: grid;
	gap: 8px;
	margin-bottom: 4px;
}

.alsMoreSwitch__row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.alsMoreSwitch__pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 10px;
	border-radius: 999px;

	background: var(--als-color-bg, #f8fafc);
	border: 1px solid var(--als-color-border, #e5e7eb);
	color: var(--als-color-text, #0f172a);

	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
	line-height: 1;

	transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.alsMoreSwitch__pill:hover {
	transform: translateY(-1px);
	border-color: var(--als-color-primary, #0ea5e9);
	box-shadow: var(--als-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.06));
}

.alsMoreSwitch__pill.is-active {
	background: color-mix(in srgb, var(--als-color-primary, #0ea5e9) 12%, var(--als-color-bg, #f8fafc));
	border-color: color-mix(in srgb, var(--als-color-primary, #0ea5e9) 55%, var(--als-color-border, #e5e7eb));
}

.alsMoreSwitch__pill.is-child {
	font-weight: 700;
	opacity: 0.95;
}

.alsMoreSwitch__clear {
	margin-left: auto;
	color: var(--als-color-muted, #64748b);
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
	padding: 6px 8px;
	border-radius: 10px;
	transition: background 120ms ease, color 120ms ease;
}

.alsMoreSwitch__clear:hover {
	background: var(--als-color-bg, #f8fafc);
	color: var(--als-color-text, #0f172a);
}

.alsMoreSwitch__clear:focus-visible {
	outline: 2px solid var(--als-color-primary, #0ea5e9);
	outline-offset: 2px;
}

/* List container */
.alsMorePlugins__list {
	display: grid;
	gap: 10px;
}

/* Item base */
.alsMorePlugins__item {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 12px;
	align-items: start;

	padding: 10px;
	border-radius: var(--als-radius-lg, 12px);
	border: 1px solid var(--als-color-border, #e5e7eb);
	background: var(--als-color-bg, #f8fafc);

	text-decoration: none;
	transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

.alsMorePlugins__item:hover {
	transform: translateY(-1px);
	border-color: color-mix(in srgb, var(--als-color-primary, #0ea5e9) 35%, var(--als-color-border, #e5e7eb));
	box-shadow: var(--als-shadow-md, 0 6px 16px rgba(0, 0, 0, 0.10));
	background: color-mix(in srgb, var(--als-color-bg, #f8fafc) 70%, #ffffff);
}

.alsMorePlugins__item:focus-visible {
	outline: 2px solid var(--als-color-primary, #0ea5e9);
	outline-offset: 2px;
}

.alsMorePlugins__thumb {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	border: 1px solid var(--als-color-border, #e5e7eb);
	background: #ffffff;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.alsMorePlugins__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.alsMorePlugins__body {
	display: grid;
	gap: 8px;
	min-width: 0;
}

.alsMorePlugins__top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
}

.alsMorePlugins__title {
	color: var(--als-color-text, #0f172a);
	font-size: 13px;
	font-weight: 900;
	line-height: 1.2;

	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.alsMorePlugins__price {
	color: var(--als-color-muted, #64748b);
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}

.alsMorePlugins__desc {
	color: var(--als-color-muted, #64748b);
	font-size: 12px;
	line-height: 1.45;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.alsMorePlugins__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.alsMorePlugins__pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 9px;
	border-radius: 999px;

	background: #ffffff;
	border: 1px solid var(--als-color-border, #e5e7eb);
	color: var(--als-color-text, #0f172a);

	font-size: 11px;
	font-weight: 800;
	line-height: 1;
}

.alsMorePlugins__pill.is-muted {
	color: var(--als-color-muted, #64748b);
}

/* Grid layout variant */
.alsMorePlugins--grid .alsMorePlugins__list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.alsMorePlugins--grid .alsMorePlugins__item {
	grid-template-columns: 1fr;
	gap: 10px;
	align-items: stretch;
	padding: 12px;
}

.alsMorePlugins--grid .alsMorePlugins__thumb {
	width: 100%;
	height: 120px;
	border-radius: var(--als-radius-lg, 12px);
}/* ==========================================================
 * Ameen License Suite – Frontend Styles (Premium Refresh)
 * Drop-in replacement for als-frontend.css
 * Scoped to ALS classes to avoid theme conflicts.
 * ======================================================= */

/* ----------------------------------------------------------
 * Design Tokens
 * ------------------------------------------------------- */

:root {
  /* Core surfaces */
  --als-color-bg:           #f7fafc;
  --als-color-bg-soft:      #eef2f7;
  --als-color-card:         #ffffff;
  --als-color-border:       #e4e9f1;

  /* Brand */
  --als-color-primary:      #0f766e;
  --als-color-primary-deep: #115e59;
  --als-color-primary-soft: rgba(15, 118, 110, 0.10);

  /* Text */
  --als-color-text:         #0b1220;
  --als-color-muted:        #5b6b82;
  --als-color-muted-soft:   #e6ebf2;

  /* Status */
  --als-color-success:      #16a34a;
  --als-color-success-soft: rgba(22, 163, 74, 0.10);
  --als-color-warning:      #f97316;
  --als-color-warning-soft: rgba(249, 115, 22, 0.10);
  --als-color-danger:       #dc2626;
  --als-color-danger-soft:  rgba(220, 38, 38, 0.10);

  --als-color-badge-active:   #ecfdf3;
  --als-color-badge-trial:    #eff6ff;
  --als-color-badge-grace:    #fffbeb;
  --als-color-badge-expired:  #fef2f2;

  /* Typography */
  --als-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --als-font-size-h1:     2.05rem;
  --als-font-size-h2:     1.45rem;
  --als-font-size-h3:     1.15rem;
  --als-font-size-body:   0.98rem;
  --als-font-size-small:  0.84rem;

  --als-line-height-tight: 1.15;
  --als-line-height-body:  1.62;

  /* Spacing */
  --als-space-xs:  0.25rem;
  --als-space-sm:  0.5rem;
  --als-space-md:  0.75rem;
  --als-space-lg:  1rem;
  --als-space-xl:  1.5rem;
  --als-space-2xl: 2rem;

  /* Radii */
  --als-radius-pill:  999px;
  --als-radius-sm:    0.5rem;
  --als-radius-md:    0.85rem;
  --als-radius-card:  1.05rem;
  --als-radius-xl:    1.25rem;

  /* Shadows (cleaner, less “puffy”) */
  --als-shadow-subtle: 0 1px 0 rgba(15, 23, 42, 0.03), 0 10px 24px rgba(15, 23, 42, 0.06);
  --als-shadow-soft:   0 1px 0 rgba(15, 23, 42, 0.03), 0 18px 44px rgba(15, 23, 42, 0.10);

  /* Transitions */
  --als-transition-fast:  140ms ease-out;
  --als-transition-med:   220ms ease-out;
}

/* ----------------------------------------------------------
 * Scoped Base Shell (optional but recommended)
 * ------------------------------------------------------- */

.als-shell {
  font-family: var(--als-font-sans);
  color: var(--als-color-text);
  line-height: var(--als-line-height-body);
  padding: var(--als-space-2xl) var(--als-space-lg);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(15,118,110,0.10), transparent 55%),
    radial-gradient(700px 360px at 95% 0%, rgba(59,130,246,0.08), transparent 58%),
    linear-gradient(180deg, var(--als-color-bg), #ffffff 55%);
}

.als-shell-inner {
  max-width: 1040px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .als-shell {
    padding: var(--als-space-xl) var(--als-space-md);
  }
}

/* Typography inside ALS content areas (safe + modern) */
.als-shell h1, .als-shell h2, .als-shell h3 {
  letter-spacing: -0.02em;
}
.als-shell a {
  color: var(--als-color-primary);
  text-decoration: none;
}
.als-shell a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------
 * Page Header
 * ------------------------------------------------------- */

.als-page-header {
  display: flex;
  flex-direction: column;
  gap: var(--als-space-sm);
  margin-bottom: var(--als-space-xl);
}

@media (min-width: 768px) {
  .als-page-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.als-page-title {
  font-size: var(--als-font-size-h1);
  line-height: var(--als-line-height-tight);
  margin: 0;
}

.als-page-subtitle {
  font-size: var(--als-font-size-body);
  color: var(--als-color-muted);
  margin: 0;
  max-width: 46rem;
}

/* ----------------------------------------------------------
 * Premium Card
 * ------------------------------------------------------- */

.als-card {
  background: var(--als-color-card);
  border-radius: var(--als-radius-card);
  border: 1px solid var(--als-color-border);
  box-shadow: var(--als-shadow-subtle);
  padding: var(--als-space-xl);
}

.als-card + .als-card {
  margin-top: var(--als-space-lg);
}

.als-card--compact {
  padding: var(--als-space-lg);
}

/* ----------------------------------------------------------
 * Product Layout Helpers (if you can add these wrappers)
 * ------------------------------------------------------- */

.als-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

@media (min-width: 980px) {
  .als-product-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: start;
  }
}

.als-product-main {
  min-width: 0;
}

.als-product-aside {
  min-width: 0;
}

@media (min-width: 980px) {
  .als-product-aside .alsSidebar {
    position: sticky;
    top: 18px;
  }
}

/* ----------------------------------------------------------
 * Buttons (ALS-only)
 * ------------------------------------------------------- */

.als-btn,
.alsBuyboxCTA {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 800;
  border-radius: var(--als-radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--als-transition-fast),
    box-shadow var(--als-transition-med),
    background var(--als-transition-med),
    border-color var(--als-transition-med),
    filter var(--als-transition-fast);
}

.als-btn:focus-visible,
.alsBuyboxCTA:focus-visible {
  outline: 3px solid rgba(15,118,110,0.22);
  outline-offset: 2px;
}

.als-btn-primary {
  background: var(--als-color-primary);
  color: #fff;
  border: 1px solid rgba(15,118,110,0.30);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
}
.als-btn-primary:hover {
  background: var(--als-color-primary-deep);
  transform: translateY(-1px);
}
.als-btn-secondary {
  background: rgba(15, 23, 42, 0.04);
  color: var(--als-color-text);
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.als-btn-secondary:hover {
  background: rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}
.als-btn-ghost {
  background: transparent;
  color: var(--als-color-primary);
  border: 1px solid rgba(15,118,110,0.22);
}
.als-btn-ghost:hover {
  background: rgba(15,118,110,0.08);
  transform: translateY(-1px);
}

/* ----------------------------------------------------------
 * Badges / Status
 * ------------------------------------------------------- */

.als-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--als-radius-pill);
  font-size: var(--als-font-size-small);
  font-weight: 700;
  border: 1px solid transparent;
}

.als-badge--active {
  background: var(--als-color-badge-active);
  color: var(--als-color-success);
  border-color: rgba(22, 163, 74, 0.22);
}
.als-badge--trial {
  background: var(--als-color-badge-trial);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.22);
}
.als-badge--grace {
  background: var(--als-color-badge-grace);
  color: var(--als-color-warning);
  border-color: rgba(249, 115, 22, 0.22);
}
.als-badge--expired {
  background: var(--als-color-badge-expired);
  color: var(--als-color-danger);
  border-color: rgba(220, 38, 38, 0.22);
}

/* ==========================================================
 * ALS Frontend (Sidebar + Buybox + Categories + More Plugins)
 * ======================================================= */

/* Scope-friendly box sizing */
.alsSidebar,
.alsSidebar * ,
.alsBuybox,
.alsBuybox *,
.alsCatBadges,
.alsCatBadges *,
.alsIncludes,
.alsIncludes *,
.alsMeta,
.alsMeta *,
.alsMorePlugins,
.alsMorePlugins * {
  box-sizing: border-box;
}

/* ----------------------------------------------------------
 * Sidebar shell (premium card feel)
 * ------------------------------------------------------- */

.alsSidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.alsSidebar__card {
  background:
    linear-gradient(180deg, #ffffff, #ffffff),
    radial-gradient(520px 180px at 20% 0%, rgba(15,118,110,0.10), transparent 55%);
  border: 1px solid var(--als-color-border);
  border-radius: var(--als-radius-xl);
  padding: 16px;
  box-shadow: var(--als-shadow-subtle);
}

.alsSidebar__title {
  margin: 0 0 10px 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.78);
}

/* subtle divider in cards (optional helper) */
.alsSidebar__divider {
  height: 1px;
  background: rgba(228,233,241,0.9);
  margin: 12px 0;
}

/* ----------------------------------------------------------
 * Category badges (clean chips)
 * ------------------------------------------------------- */

.alsCatBadges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alsCatBadges__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 8px 12px;
  border-radius: 999px;

  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);

  color: var(--als-color-text);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;

  transition:
    transform var(--als-transition-fast),
    box-shadow var(--als-transition-med),
    border-color var(--als-transition-med),
    background var(--als-transition-med);
}

/* tiny “dot” accent for chips */
.alsCatBadges__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15,118,110,0.70);
  box-shadow: 0 0 0 3px rgba(15,118,110,0.10);
}

.alsCatBadges__badge:hover {
  background: rgba(15,118,110,0.08);
  border-color: rgba(15,118,110,0.22);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.alsCatBadges__badge:focus-visible {
  outline: 3px solid rgba(15,118,110,0.22);
  outline-offset: 2px;
}

.alsCatBadges__badge.is-static {
  cursor: default;
}

.alsCatBadges__empty {
  color: var(--als-color-muted);
  font-size: 13px;
  line-height: 1.45;
}

/* ----------------------------------------------------------
 * Includes list (more “designed”)
 * ------------------------------------------------------- */

.alsIncludes__empty {
  color: var(--als-color-muted);
  font-size: 13px;
  line-height: 1.45;
}

.alsIncludes__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.alsIncludes__item {
  position: relative;
  padding-left: 18px;
  color: var(--als-color-text);
  font-size: 13px;
  line-height: 1.5;
}

.alsIncludes__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(15,118,110,0.85);
  box-shadow: 0 0 0 3px rgba(15,118,110,0.12);
  transform: translateY(-50%);
}

/* ----------------------------------------------------------
 * Meta rows (tight + premium)
 * ------------------------------------------------------- */

.alsMeta {
  display: grid;
  gap: 10px;
}

.alsMetaRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;

  padding: 10px 0;
  border-top: 1px solid rgba(228,233,241,0.9);
}

.alsMetaRow:first-child {
  border-top: 0;
  padding-top: 0;
}

.alsMetaKey {
  color: rgba(91, 107, 130, 0.95);
  font-size: 12px;
  font-weight: 800;
}

.alsMetaVal {
  color: var(--als-color-text);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.alsMetaPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;

  background: rgba(15,118,110,0.08);
  border: 1px solid rgba(15,118,110,0.18);

  color: var(--als-color-primary-deep);
  font-size: 12px;
  font-weight: 900;
}

/* ----------------------------------------------------------
 * Buybox (major facelift)
 * ------------------------------------------------------- */

.alsBuybox {
  display: grid;
  gap: 12px;
}

.alsBuyboxTop {
  display: grid;
  gap: 8px;
}

.alsBuyboxTitle {
  margin: 0;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.01em;
  color: var(--als-color-text);
}

.alsBuyboxMuted {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--als-color-muted);
}

/* segmented control */
.alsBuyboxTabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.alsBuyboxTab {
  appearance: none;
  border: 0;
  cursor: pointer;

  padding: 9px 12px;
  border-radius: 999px;

  background: transparent;
  color: rgba(91, 107, 130, 0.98);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1;

  transition:
    background var(--als-transition-med),
    color var(--als-transition-med),
    transform var(--als-transition-fast);
}

.alsBuyboxTab:hover {
  transform: translateY(-1px);
}

.alsBuyboxTab.is-active {
  background: linear-gradient(180deg, rgba(15,118,110,1), rgba(17,94,89,1));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.20);
}

.alsBuyboxTab:focus-visible {
  outline: 3px solid rgba(15,118,110,0.22);
  outline-offset: 2px;
}

.alsBuyboxRow {
  display: grid;
  gap: 10px;
}

.alsBuyboxSelect {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--als-radius-md);
  border: 1px solid rgba(228,233,241,1);
  background: #ffffff;
  color: var(--als-color-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.alsBuyboxSelect:focus {
  outline: none;
  border-color: rgba(15,118,110,0.40);
  box-shadow: 0 0 0 4px rgba(15,118,110,0.10);
}

.alsBuyboxPrice {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;

  padding: 12px 12px;
  border-radius: var(--als-radius-md);
  background: rgba(15,118,110,0.06);
  border: 1px solid rgba(15,118,110,0.14);
}

.alsBuyboxPrice [data-role="label"] {
  color: rgba(91, 107, 130, 0.98);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alsBuyboxPrice [data-role="price"] {
  color: var(--als-color-text);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.01em;
}

.alsBuyboxCTA {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--als-radius-md);

  background: linear-gradient(180deg, rgba(15,118,110,1), rgba(17,94,89,1));
  color: #ffffff;

  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.01em;

  border: 1px solid rgba(15,118,110,0.35);
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.20);
}

.alsBuyboxCTA:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 22px 44px rgba(15, 118, 110, 0.24);
}

.alsBuyboxNote {
  margin: 0;
  color: var(--als-color-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* ----------------------------------------------------------
 * More Plugins (clean, modern list + grid)
 * ------------------------------------------------------- */

.alsMorePlugins {
  display: grid;
  gap: 12px;
}

.alsMorePlugins__empty {
  color: var(--als-color-muted);
  font-size: 13px;
  line-height: 1.45;
}

/* Switcher */
.alsMoreSwitch {
  display: grid;
  gap: 8px;
  margin-bottom: 2px;
}

.alsMoreSwitch__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.alsMoreSwitch__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;

  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--als-color-text);

  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  line-height: 1;

  transition:
    transform var(--als-transition-fast),
    border-color var(--als-transition-med),
    background var(--als-transition-med),
    box-shadow var(--als-transition-med);
}

.alsMoreSwitch__pill:hover {
  transform: translateY(-1px);
  border-color: rgba(15,118,110,0.24);
  background: rgba(15,118,110,0.08);
  box-shadow: 0 16px 26px rgba(15, 23, 42, 0.08);
}

.alsMoreSwitch__pill.is-active {
  background: rgba(15,118,110,0.12);
  border-color: rgba(15,118,110,0.28);
}

.alsMoreSwitch__pill.is-child {
  font-weight: 850;
}

.alsMoreSwitch__clear {
  margin-left: auto;
  color: rgba(91, 107, 130, 0.98);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(15, 23, 42, 0.03);
  transition: transform var(--als-transition-fast), background var(--als-transition-med);
}

.alsMoreSwitch__clear:hover {
  background: rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.alsMoreSwitch__clear:focus-visible {
  outline: 3px solid rgba(15,118,110,0.22);
  outline-offset: 2px;
}

/* List container */
.alsMorePlugins__list {
  display: grid;
  gap: 10px;
}

/* Item base */
.alsMorePlugins__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;

  padding: 11px;
  border-radius: var(--als-radius-md);
  border: 1px solid rgba(228,233,241,1);
  background: #ffffff;

  text-decoration: none;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);

  transition:
    transform var(--als-transition-fast),
    box-shadow var(--als-transition-med),
    border-color var(--als-transition-med);
}

.alsMorePlugins__item:hover {
  transform: translateY(-1px);
  border-color: rgba(15,118,110,0.22);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10);
}

.alsMorePlugins__item:focus-visible {
  outline: 3px solid rgba(15,118,110,0.22);
  outline-offset: 2px;
}

.alsMorePlugins__thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(228,233,241,1);
  background:
    radial-gradient(36px 36px at 30% 25%, rgba(15,118,110,0.14), transparent 60%),
    #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alsMorePlugins__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.alsMorePlugins__body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.alsMorePlugins__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.alsMorePlugins__title {
  color: var(--als-color-text);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alsMorePlugins__price {
  color: rgba(91, 107, 130, 0.98);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.alsMorePlugins__desc {
  color: var(--als-color-muted);
  font-size: 12px;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.alsMorePlugins__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.alsMorePlugins__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 999px;

  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--als-color-text);

  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.alsMorePlugins__pill.is-muted {
  color: rgba(91, 107, 130, 0.98);
}

/* Grid layout variant */
.alsMorePlugins--grid .alsMorePlugins__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.alsMorePlugins--grid .alsMorePlugins__item {
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  padding: 12px;
}

.alsMorePlugins--grid .alsMorePlugins__thumb {
  width: 100%;
  height: 120px;
  border-radius: var(--als-radius-md);
}

.alsMorePlugins--grid .alsMorePlugins__top {
  align-items: flex-start;
}

.alsMorePlugins--grid .alsMorePlugins__title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 860px) {
  .alsMorePlugins--grid .alsMorePlugins__list {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------
 * Optional: Small helpers
 * ------------------------------------------------------- */

.als-divider {
  border: 0;
  border-top: 1px solid rgba(228,233,241,0.9);
  margin: var(--als-space-md) 0;
}

.als-text-muted { color: var(--als-color-muted); }
.als-text-center { text-align: center; }


.alsMorePlugins--grid .alsMorePlugins__top {
	align-items: flex-start;
}

.alsMorePlugins--grid .alsMorePlugins__title {
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* Responsive: grid -> single column on narrow sidebars */
@media (max-width: 860px) {
	.alsMorePlugins--grid .alsMorePlugins__list {
		grid-template-columns: 1fr;
	}
}

