/*
 * No external font CDN. WP.org plugins must not @import from googleapis.com.
 * See assets/css/admin.css header for the full reasoning. System font stack
 * is used; bundling fonts locally is a future enhancement.
 */
.woocommerce-account .entry-title,
.woocommerce-account h1.page-title,
.woocommerce-account .page-header,
.woocommerce-account .page-title-wrap {
    display: none !important;
}
.woocommerce-account .entry-content,
.woocommerce-account article.page,
.woocommerce-account .site-main > article,
.woocommerce-account main.site-main,
.woocommerce-account .elementor-widget-wrap,
.woocommerce-account .elementor-widget-container,
.woocommerce-account .elementor-section-wrap {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none !important;
}
.woocommerce-account,
.woocommerce-account body {
    background: #f7f6fa !important;
    font-family: "Plus Jakarta Sans", sans-serif !important;
}
.woocommerce-account .woocommerce {
    display: grid !important;
    grid-template-columns: 216px 1fr !important;
    gap: 0 20px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 1060px !important;
    margin: 32px auto 48px !important;
    padding: 0 32px !important;
    box-sizing: border-box !important;
}
.slm-account-hero {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
}
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-account .woocommerce > .woocommerce-message,
.woocommerce-account .woocommerce > .woocommerce-error,
.woocommerce-account .woocommerce > .woocommerce-info {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
}
.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce > nav.woocommerce-MyAccount-navigation {
    grid-column: 1 !important;
    grid-row: 2 !important;
    transform: translateY(-28px);
    min-width: 0;
    align-self: start;
}
.woocommerce-account .woocommerce > .woocommerce-MyAccount-content {
    grid-column: 2 !important;
    grid-row: 2 !important;
    transform: translateY(-28px);
    min-width: 0;
    align-self: start;
}
.slm-account-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #0f0a1e 0%, #1a1030 50%, #0f0a1e 100%);
    padding: 72px 36px 60px;
    border-radius: 20px;
    margin-bottom: 0;
}
.slm-account-hero-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.025;
    pointer-events: none;
}
.slm-account-hero-glow {
    position: absolute;
    top: -20%;
    right: 10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(235, 52, 128, 0.09) 0%, transparent 70%);
    filter: blur(48px);
    pointer-events: none;
}
.slm-account-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}
.slm-account-hero-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eb3480, #9333ea);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    font-size: 24px !important;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(235, 52, 128, 0.35);
}
.slm-account-hero-text {
    flex: 1;
    min-width: 0;
}
.slm-account-hero-title {
    font-family: "Manrope", sans-serif !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.5px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
.slm-account-hero-sub {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.4) !important;
    margin: 5px 0 0 !important;
    line-height: 1.5;
}
.slm-account-hero-logout {
    margin-left: auto;
    flex-shrink: 0;
    padding: 9px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5) !important;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px !important;
    font-weight: 600;
    text-decoration: none !important;
    transition:
        border-color 0.2s,
        color 0.2s,
        background 0.2s;
    white-space: nowrap;
}
.slm-account-hero-logout:hover {
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
}
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8e6ef;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(15, 10, 30, 0.04);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
    padding: 0 !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 11px 14px !important;
    border-radius: 10px !important;
    border-left: 3px solid transparent !important;
    color: #5a566b !important;
    font-family: "Plus Jakarta Sans", sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition:
        background 0.14s,
        color 0.14s,
        border-color 0.14s !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: #f7f6fa !important;
    color: #1e1b2e !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active > a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--active > a {
    background: rgba(235, 52, 128, 0.06) !important;
    color: #eb3480 !important;
    border-left-color: #eb3480 !important;
    font-weight: 700 !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a::before,
.woocommerce-account nav.woocommerce-MyAccount-navigation ul li a::before {
    display: inline-block;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-style: normal;
    filter: grayscale(0.3) opacity(0.8);
}
.woocommerce-MyAccount-navigation-link--dashboard a::before {
    content: "⊞" !important;
}
.woocommerce-MyAccount-navigation-link--orders a::before {
    content: "📦" !important;
}
.woocommerce-MyAccount-navigation-link--downloads a::before {
    content: "↓" !important;
}
.woocommerce-MyAccount-navigation-link--licenses a::before {
    content: "🔑" !important;
}
.woocommerce-MyAccount-navigation-link--edit-address a::before {
    content: "📍" !important;
}
.woocommerce-MyAccount-navigation-link--payment-methods a::before {
    content: "💳" !important;
}
.woocommerce-MyAccount-navigation-link--edit-account a::before {
    content: "⚙" !important;
}
.woocommerce-MyAccount-navigation-link--customer-logout a::before {
    content: "→" !important;
    filter: none;
    opacity: 0.5;
}
.woocommerce-MyAccount-navigation-link--customer-logout a {
    margin-top: 6px;
    border-top: 1px solid #f0eef4;
    padding-top: 14px !important;
    color: #8e8a9d !important;
}
.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05) !important;
}
.is-active a::before,
.woocommerce-MyAccount-navigation-link--active a::before {
    filter: none !important;
}
.woocommerce-account .woocommerce-MyAccount-content {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8e6ef;
    padding: 36px !important;
    box-shadow: 0 4px 20px rgba(15, 10, 30, 0.04);
    min-height: 400px;
}
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
    font-family: "Manrope", sans-serif !important;
    font-weight: 800 !important;
    color: #1e1b2e !important;
    letter-spacing: -0.2px;
}
.woocommerce-account .woocommerce-MyAccount-content h2 {
    font-size: 20px !important;
    margin-bottom: 20px !important;
}
.woocommerce-account .woocommerce-MyAccount-content h3 {
    font-size: 16px !important;
}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
    font-family: "Plus Jakarta Sans", sans-serif;
    border-collapse: collapse;
    width: 100%;
}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table th {
    font-family: "JetBrains Mono", monospace;
    font-size: 10.5px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8e8a9d;
    background: #f7f6fa;
    padding: 10px 14px;
    border-bottom: 1px solid #e8e6ef;
}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td {
    padding: 13px 14px;
    border-bottom: 1px solid #f0eef4;
    font-size: 13.5px !important;
    color: #1e1b2e;
    vertical-align: middle;
}
.woocommerce-account .woocommerce-MyAccount-content mark.order-status {
    background: rgba(20, 184, 166, 0.09) !important;
    color: #0d9488 !important;
    padding: 3px 9px !important;
    border-radius: 6px !important;
    font-family: "JetBrains Mono", monospace !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-form input {
    font-family: "Plus Jakarta Sans", sans-serif;
    border-radius: 8px;
    border-color: #e8e6ef;
    font-size: 14px !important;
}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-form input:focus {
    border-color: #eb3480;
    box-shadow: 0 0 0 2px rgba(235, 52, 128, 0.12);
    outline: none;
}
.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"] {
    background: linear-gradient(135deg, #eb3480, #9333ea) !important;
    border: none !important;
    color: #fff !important;
    font-family: "Plus Jakarta Sans", sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    padding: 10px 22px !important;
    box-shadow: 0 2px 12px rgba(235, 52, 128, 0.2) !important;
    transition:
        opacity 0.15s,
        transform 0.15s,
        box-shadow 0.15s !important;
    text-shadow: none !important;
    cursor: pointer !important;
}
.woocommerce-account .woocommerce-MyAccount-content .button:hover,
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"]:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 20px rgba(235, 52, 128, 0.3) !important;
}
.woocommerce-account .woocommerce-MyAccount-content p {
    font-size: 14px !important;
    color: #5a566b;
    line-height: 1.7;
}
@media (max-width: 760px) {
    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr !important;
    }
    .slm-account-hero,
    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        grid-column: 1 !important;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        transform: translateY(-16px);
    }
    .slm-account-hero {
        padding: 48px 24px 44px;
        border-radius: 16px;
    }
    .slm-account-hero-title {
        font-size: 22px !important;
    }
    .slm-account-hero-logout {
        display: none;
    }
    .slm-account-hero-inner {
        gap: 14px;
    }
    .slm-account-hero-avatar {
        width: 44px;
        height: 44px;
        font-size: 18px !important;
        border-radius: 12px;
    }
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 24px !important;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        padding: 8px 12px !important;
        font-size: 12.5px !important;
    }
    /* ── Kill the stray WooCommerce float overrides ── */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
}
}

/* ── Mobile: single-column vertical stack ── */
@media (max-width: 760px) {

  /* Grid collapses to one column */
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr !important;
    gap: 16px 0 !important;
    padding: 0 16px !important;
    margin: 20px auto 32px !important;
  }

  /* Every direct grid child spans full width */
  .slm-account-hero,
  .woocommerce-account .woocommerce > .woocommerce-notices-wrapper,
  .woocommerce-account .woocommerce > .woocommerce-message,
  .woocommerce-account .woocommerce > .woocommerce-error,
  .woocommerce-account .woocommerce > .woocommerce-info,
  .woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce > .woocommerce-MyAccount-content {
    grid-column: 1 !important;
    float: none !important;
    width: 100% !important;
    transform: none !important;
    grid-row: auto !important;
  }

  /* Explicit row order: hero → nav → content */
  .slm-account-hero                                      { grid-row: 1 !important; }
  .woocommerce-account .woocommerce-MyAccount-navigation { grid-row: 2 !important; }
  .woocommerce-account .woocommerce-MyAccount-content    { grid-row: 3 !important; }

  /* Hero */
  .slm-account-hero {
    padding: 36px 20px 32px !important;
    border-radius: 14px !important;
    margin-bottom: 0 !important;
  }
  .slm-account-hero-title  { font-size: 20px !important; }
  .slm-account-hero-inner  { gap: 12px !important; }
  .slm-account-hero-avatar { width: 42px !important; height: 42px !important; font-size: 17px !important; border-radius: 11px !important; }
  .slm-account-hero-logout { display: none !important; }

  /* Sidebar nav: vertical list (override the flex-wrap pill style) */
  .woocommerce-account .woocommerce-MyAccount-navigation {
    border-radius: 12px !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex !important;
    flex-direction: column !important;   /* ← vertical, NOT wrap */
    flex-wrap: nowrap !important;
    gap: 2px !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul li {
    width: 100% !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    padding: 11px 14px !important;
    font-size: 13px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Content panel */
  .woocommerce-account .woocommerce-MyAccount-content {
    padding: 20px !important;
    min-height: unset !important;
    border-radius: 12px !important;
  }
}
:root {
    --slm-pink: #eb3480;
    --slm-pink-light: #fdf2f8;
    --slm-pink-hover: #d42d73;
    --slm-purple: #8b5cf6;
    --slm-green: #16a34a;
    --slm-amber: #d97706;
    --slm-red: #dc2626;
    --slm-text: #1a1a2e;
    --slm-muted: #6b7280;
    --slm-border: #e5e7eb;
    --slm-bg: #f9fafb;
    --slm-white: #ffffff;
    --slm-radius: 12px;
    --slm-radius-sm: 8px;
    --slm-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
    --slm-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.08);
    --slm-transition: 0.18s ease;
}
.slm-my-account {
    /* Phase 4.2 FIX 10 — establish explicit base font-size + family so child
     * selectors that use rem/em units don't inherit the theme's reduced
     * scale. Some WC themes set body font-size to 14px or smaller; without
     * this anchor, `font-size: 13px` deactivate buttons rendered below
     * 11px on the live site. !important pushes back against the theme
     * reset; the scope is contained to .slm-my-account and its descendants. */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5;
    color: var(--slm-text, #1a1a2e);
    max-width: 860px;
}
/* Phase 4.3 FIX 16 — explicit cascade reset for unstyled descendants. The
 * theme can target `.slm-my-account p`, `.slm-my-account h3`, etc. with
 * rules like `body.woocommerce-account .woocommerce-MyAccount-content p { font-size: 12px }`.
 * Forces font-family inheritance from the 16px anchor above; per-selector
 * sizes below carry their own !important so they win the cascade
 * regardless of what the host theme does. */
.slm-my-account p,
.slm-my-account h2,
.slm-my-account h3,
.slm-my-account h4,
.slm-my-account label,
.slm-my-account span,
.slm-my-account small,
.slm-my-account a,
.slm-my-account button,
.slm-my-account input,
.slm-my-account select,
.slm-my-account textarea,
.slm-my-account li {
    font-family: inherit;
}
.slm-empty-state {
    text-align: center;
    padding: 56px 24px;
    background: var(--slm-white, #ffffff);
    border: 1px solid var(--slm-border, #e5e7eb);
    border-radius: var(--slm-radius, 12px);
    box-shadow: var(--slm-shadow, 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05));
}
.slm-empty-icon {
    margin-bottom: 16px;
}
.slm-empty-state h3 {
    font-size: 19px !important;
    font-weight: 700;
    margin: 0 0 8px;
}
.slm-empty-state p {
    color: var(--slm-muted, #6b7280);
    margin: 0 0 24px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}
.slm-plugin-group {
    margin-bottom: 36px;
}
.slm-plugin-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.slm-plugin-heading h3 {
    font-size: 16px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slm-muted, #6b7280);
    margin: 0;
}
.slm-plugin-heading-icon {
    flex-shrink: 0;
}
.slm-license-card {
    background: var(--slm-white, #ffffff);
    border: 1px solid var(--slm-border, #e5e7eb);
    border-radius: var(--slm-radius, 12px);
    box-shadow: var(--slm-shadow, 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05));
    padding: 20px 22px;
    margin-bottom: 16px;
    transition: box-shadow var(--slm-transition, 0.18s ease);
    position: relative;
    overflow: hidden;
}
.slm-license-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--slm-border, #e5e7eb);
    border-radius: var(--slm-radius, 12px) var(--slm-radius, 12px) 0 0;
}
.slm-license-card.slm-status-active::before {
    background: var(--slm-pink, #eb3480);
}
.slm-license-card.slm-status-expired::before {
    background: var(--slm-amber, #d97706);
}
.slm-license-card.slm-status-suspended::before,
.slm-license-card.slm-status-cancelled::before {
    background: var(--slm-red, #dc2626);
}
.slm-license-card.slm-status-on-hold::before {
    background: var(--slm-purple, #8b5cf6);
}
.slm-license-card:hover {
    box-shadow: var(--slm-shadow-lg, 0 10px 25px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.08));
}
.slm-license-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.slm-license-icon {
    flex-shrink: 0;
    margin-top: 2px;
}
.slm-license-title-block {
    flex: 1;
    min-width: 0;
}
.slm-license-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.slm-license-plan {
    /* Phase 4.3 FIX 16 — !important on the critical child selectors that the
     * theme cascade was overriding into sub-12px territory. */
    font-size: 17px !important;
    font-weight: 700;
    color: var(--slm-text, #1a1a2e);
    line-height: 1.3;
}
.slm-license-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 12px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.6;
}
.slm-badge-active {
    background: #dcfce7;
    color: #15803d;
}
.slm-badge-expired {
    background: #fef3c7;
    color: #b45309;
}
.slm-badge-suspended {
    background: #fee2e2;
    color: #b91c1c;
}
.slm-badge-cancelled {
    background: #fee2e2;
    color: #b91c1c;
}
.slm-badge-on-hold {
    background: #ede9fe;
    color: #6d28d9;
}
.slm-badge-inactive {
    background: #f3f4f6;
    color: #6b7280;
}
.slm-license-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    font-size: 13px !important;
    line-height: 1.5;
    color: var(--slm-muted, #6b7280);
}
.slm-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.slm-meta-sep {
    color: var(--slm-border, #e5e7eb);
}
.slm-expired-label {
    color: var(--slm-red, #dc2626);
    font-weight: 600;
}
.slm-slot-ring {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: default;
}
.slm-slot-ring svg {
    display: block;
}
.slm-slot-label {
    font-size: 11px !important;
    color: var(--slm-muted, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.4;
}
.slm-renewal-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0 0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 1.4;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.slm-renewal-chip.slm-urgency-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}
.slm-renewal-chip.slm-urgency-critical {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}
.slm-renewal-chip.slm-urgency-normal {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}
.slm-activate-instructions {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 14px;
    padding: 10px 14px;
    background: var(--slm-pink-light, #fdf2f8);
    border-left: 3px solid var(--slm-pink, #eb3480);
    border-radius: 0 var(--slm-radius-sm, 8px) var(--slm-radius-sm, 8px) 0;
    font-size: 13px !important;
    color: #5b0f3a;
    line-height: 1.5;
}
.slm-activate-instructions svg {
    flex-shrink: 0;
    margin-top: 2px;
}
.slm-sub-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--slm-border, #e5e7eb);
}
.slm-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 7px;
    /* Phase 4.3 FIX 16 — !important so the theme can't shrink action buttons. */
    font-size: 14px !important;
    font-weight: 600;
    cursor: pointer;
    transition:
        background var(--slm-transition, 0.18s ease),
        color var(--slm-transition, 0.18s ease),
        border-color var(--slm-transition, 0.18s ease),
        box-shadow var(--slm-transition, 0.18s ease);
    text-decoration: none;
    border: 1.5px solid transparent;
    line-height: 1.4;
    white-space: nowrap;
}
.slm-btn:focus-visible {
    outline: 2px solid var(--slm-pink, #eb3480);
    outline-offset: 2px;
}
.slm-btn-primary {
    background: var(--slm-pink, #eb3480);
    color: #fff !important;
    border-color: var(--slm-pink, #eb3480);
}
.slm-btn-primary:hover {
    background: var(--slm-pink-hover, #d42d73);
    border-color: var(--slm-pink-hover, #d42d73);
    color: #fff;
}
.slm-btn-ghost {
    background: transparent;
    color: var(--slm-text, #1a1a2e);
    border-color: var(--slm-border, #e5e7eb);
}
.slm-btn-ghost:hover {
    background: var(--slm-bg, #f9fafb);
    border-color: #d1d5db;
}
.slm-btn-danger {
    background: var(--slm-red, #dc2626);
    color: #fff !important;
    border-color: var(--slm-red, #dc2626);
}
.slm-btn-danger:hover {
    background: #b91c1c;
    color: #fff;
}
.slm-btn-danger-ghost {
    background: transparent;
    color: var(--slm-red, #dc2626);
    border-color: #fca5a5;
}
.slm-btn-danger-ghost:hover {
    background: #fff1f2;
    border-color: var(--slm-red, #dc2626);
}
.slm-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.slm-activations {
    margin-top: 16px;
}
.slm-activations h4 {
    font-size: 13px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--slm-muted, #6b7280);
    line-height: 1.4;
    margin: 0 0 10px;
}
.slm-domain-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.slm-domain-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--slm-bg, #f9fafb);
    border-radius: var(--slm-radius-sm, 8px);
    border: 1px solid var(--slm-border, #e5e7eb);
}
.slm-health-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1.5px solid transparent;
}
.slm-health-good {
    background: var(--slm-green, #16a34a);
    border-color: #86efac;
}
.slm-health-warn {
    background: var(--slm-amber, #d97706);
    border-color: #fcd34d;
}
.slm-health-stale {
    background: #9ca3af;
    border-color: #d1d5db;
}
.slm-domain-details {
    flex: 1;
    min-width: 0;
}
.slm-domain-name {
    display: block;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.slm-domain-url,
.slm-activated-date {
    display: block;
    font-size: 12px !important;
    line-height: 1.4;
    color: var(--slm-muted, #6b7280);
}
.slm-deactivate-btn {
    /* Phase 4.2 FIX 10 — explicit color + background so theme button styling
     * doesn't bleed through. The button used to render as "barely-visible
     * blue on dark background" because it inherited the theme's default
     * <button> appearance. Below: white background, brand-pink text, brand
     * border. Hover swaps to a fully-pink destructive treatment.
     * Phase 4.3 FIX 16 — !important on font-size so the theme cascade can't
     * shrink it below 13px. */
    flex-shrink: 0;
    font-size: 13px !important;
    line-height: 1.4;
    color: var(--slm-pink, #eb3480) !important;
    background: #ffffff !important;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1.5px solid var(--slm-pink, #eb3480) !important;
    cursor: pointer;
    font-weight: 600;
    appearance: none;
    transition:
        color var(--slm-transition, 0.18s ease),
        border-color var(--slm-transition, 0.18s ease),
        background var(--slm-transition, 0.18s ease);
}
.slm-deactivate-btn:hover,
.slm-deactivate-btn:focus-visible {
    color: #ffffff !important;
    background: var(--slm-pink, #eb3480) !important;
    border-color: var(--slm-pink, #eb3480) !important;
    outline: none;
}
.slm-no-activations {
    font-size: 13px !important;
    color: var(--slm-muted, #6b7280);
    margin: 12px 0 0;
}
.slm-billing-history {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--slm-border, #e5e7eb);
}
.slm-billing-history h4 {
    font-size: 12px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--slm-muted, #6b7280);
    margin: 0 0 10px;
}
.slm-billing-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.slm-billing-timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--slm-border, #e5e7eb);
}
.slm-billing-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0 5px 22px;
    position: relative;
    font-size: 13px !important;
}
.slm-billing-dot {
    position: absolute;
    left: 3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--slm-border, #e5e7eb);
    border: 1.5px solid var(--slm-white, #ffffff);
    box-shadow: 0 0 0 1px var(--slm-border, #e5e7eb);
}
.slm-billing-item.slm-billing-completed .slm-billing-dot {
    background: var(--slm-green, #16a34a);
}
.slm-billing-item.slm-billing-failed .slm-billing-dot {
    background: var(--slm-red, #dc2626);
}
.slm-billing-item.slm-billing-pending .slm-billing-dot {
    background: var(--slm-amber, #d97706);
}
.slm-billing-date {
    color: var(--slm-muted, #6b7280);
    min-width: 90px;
}
.slm-billing-amount {
    font-weight: 600;
}
.slm-billing-status {
    color: var(--slm-muted, #6b7280);
    font-size: 12px !important;
}
/* Phase 4.2 FIX 10 — license-key row CSS removed. The matching template
 * block in templates/my-account/licenses.php was deleted because SLM stores
 * bcrypt hashes only and the plaintext is unrecoverable post-issuance.
 * Customers receive their key once via the WC purchase email. The selectors
 * .slm-license-key-row, .slm-key-label, .slm-key-value, .slm-copy-key-btn
 * are no longer emitted by any template; rules have been removed to avoid
 * shipping dead CSS. */

.slm-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.slm-modal[hidden] {
    display: none;
}
.slm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}
.slm-modal-box {
    position: relative;
    background: var(--slm-white, #ffffff);
    border-radius: var(--slm-radius, 12px);
    box-shadow: var(--slm-shadow-lg, 0 10px 25px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.08));
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
}
.slm-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}
.slm-modal-title {
    font-size: 17px !important;
    font-weight: 700;
    margin: 0;
    padding-right: 16px;
    line-height: 1.3;
}
.slm-modal-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 16px !important;
    color: var(--slm-muted, #6b7280);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 5px;
    line-height: 1;
    transition:
        background var(--slm-transition, 0.18s ease),
        color var(--slm-transition, 0.18s ease);
}
.slm-modal-close:hover {
    background: var(--slm-bg, #f9fafb);
    color: var(--slm-text, #1a1a2e);
}
.slm-modal-subtitle {
    font-size: 14px !important;
    color: var(--slm-muted, #6b7280);
    margin: 0 0 20px;
    line-height: 1.5;
}
.slm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.slm-reason-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.slm-reason-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--slm-radius-sm, 8px);
    border: 1.5px solid var(--slm-border, #e5e7eb);
    cursor: pointer;
    font-size: 14px !important;
    transition:
        border-color var(--slm-transition, 0.18s ease),
        background var(--slm-transition, 0.18s ease);
}
.slm-reason-label:hover {
    border-color: var(--slm-pink, #eb3480);
    background: var(--slm-pink-light, #fdf2f8);
}
.slm-reason-label input[type="radio"] {
    accent-color: var(--slm-pink, #eb3480);
}
.slm-reason-detail {
    margin-top: 12px;
}
.slm-reason-textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--slm-radius-sm, 8px);
    border: 1.5px solid var(--slm-border, #e5e7eb);
    font-size: 14px !important;
    resize: vertical;
    transition: border-color var(--slm-transition, 0.18s ease);
    font-family: inherit;
    box-sizing: border-box;
}
.slm-reason-textarea:focus {
    outline: none;
    border-color: var(--slm-pink, #eb3480);
}
.slm-offer-coupon,
.slm-offer-message {
    font-size: 14px !important;
    line-height: 1.6;
}
.slm-offer-title {
    display: block;
    font-size: 16px !important;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--slm-text, #1a1a2e);
}
.slm-offer-code-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--slm-bg, #f9fafb);
    border-radius: var(--slm-radius-sm, 8px);
    border: 1px dashed var(--slm-pink, #eb3480);
}
.slm-offer-code {
    font-family: ui-monospace, monospace;
    font-size: 14px !important;
    font-weight: 700;
    color: var(--slm-pink, #eb3480);
    flex: 1;
    letter-spacing: 0.1em;
}
.slm-cancel-confirm-body {
    font-size: 14px !important;
    line-height: 1.6;
}
.slm-cancel-warning-icon {
    font-size: 36px !important;
    text-align: center;
    margin-bottom: 12px;
}
.slm-cancel-consequences {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--slm-muted, #6b7280);
}
.slm-cancel-consequences li {
    margin-bottom: 6px;
}
.slm-plan-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.slm-plan-item {
    border: 2px solid var(--slm-border, #e5e7eb);
    border-radius: var(--slm-radius-sm, 8px);
    padding: 12px 16px;
    cursor: pointer;
    transition:
        border-color var(--slm-transition, 0.18s ease),
        background var(--slm-transition, 0.18s ease);
}
.slm-plan-item:hover {
    border-color: var(--slm-pink, #eb3480);
    background: var(--slm-pink-light, #fdf2f8);
}
.slm-plan-item.slm-plan-selected {
    border-color: var(--slm-pink, #eb3480);
    background: var(--slm-pink-light, #fdf2f8);
}
.slm-plan-item-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}
.slm-plan-item-name {
    font-weight: 600;
    flex: 1;
}
.slm-plan-item-price {
    font-size: 13px !important;
    color: var(--slm-muted, #6b7280);
}
.slm-plan-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.slm-badge-upgrade {
    background: #dcfce7;
    color: #15803d;
}
.slm-badge-downgrade {
    background: #f3f4f6;
    color: #6b7280;
}
#slm-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.slm-toast {
    padding: 12px 18px;
    border-radius: var(--slm-radius-sm, 8px);
    font-size: 14px !important;
    font-weight: 500;
    box-shadow: var(--slm-shadow-lg, 0 10px 25px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.08));
    color: #fff;
    max-width: 320px;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
    pointer-events: auto;
}
.slm-toast-visible {
    opacity: 1;
    transform: translateY(0);
}
.slm-toast-success {
    background: var(--slm-green, #16a34a);
}
.slm-toast-error {
    background: var(--slm-red, #dc2626);
}
.slm-toast-info {
    background: var(--slm-purple, #8b5cf6);
}
@media (max-width: 600px) {
    .slm-license-header {
        flex-wrap: wrap;
    }
    .slm-slot-ring {
        display: none;
    }
    .slm-sub-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .slm-modal-box {
        padding: 20px 16px;
    }
    .slm-modal-footer {
        flex-direction: column-reverse;
    }
    .slm-modal-footer .slm-btn {
        width: 100%;
        justify-content: center;
    }
    #slm-toast-container {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
    .slm-toast {
        max-width: 100%;
    }
}
.woocommerce-account .woocommerce-MyAccount-navigation {
    float: left;
    width: 100%;
}
.woocommerce-account .woocommerce-MyAccount-content {
    float: right;
    width: 100%;
}

/* Self-activation form CSS removed in Phase 4.1 — login-based REST flow */
/* is the canonical activation path; the form here was redundant.        */

.slm-activate-limit-reached {
    margin: 12px 0;
    padding: 8px 12px;
    background: #fcf9e8;
    border-left: 3px solid #dba617;
    color: #50575e;
    font-size: 13px !important;
}
