/* Shared borderless surfaces: translucent dark gradient and soft corners. */
:is(
  .ae-home .home-audience .ae-audience-grid article,
  .ae-home .ae-product,
  .ae-home .coming-soon-card,
  .ae-home .home-testimonial,
  .ae-home .ae-review-grid article,
  .ae-home .ae-final-card,
  .products-page .pc-product,
  .products-page .pc-filter-group,
  .free-plugins-page .fp-card-surface,
  .free-plugins-page .fp-steps article,
  .free-plugins-page .fp-feature-review,
  .plugin-detail-page .pd-summary-buy,
  .plugin-detail-page .pd-detail-features article,
  .plugin-detail-page .pd-detail-related > a,
  .shop-page .shop-panel,
  .shop-page .shop-summary,
  .shop-page .shop-item,
  .account-dashboard .ac-panel,
  .account-dashboard .ac-stats a,
  .account-dashboard .ac-download-card,
  .tn-panel, .tn-card, .tn-coming-card, .tn-offer,
  .toolio-mini-cart, .auth-popup, .auth-entry-card,
  .plugin-connect .connect-card,
  .admin-panel, .admin-stat, .plan-card, .wallet-admin-form
) {
  background-color:transparent;
  background-image:linear-gradient(180deg,rgb(255 255 255 / .05),rgb(255 255 255 / .016));
  border-color:transparent;
  border-radius:28px;
  outline:none;
}

/* Smaller surfaces use the same finish with proportionate corners. */
:is(body, .ae-home .ae-page) :is(
  .ae-home .coming-soon-card,
  .products-page .pc-filter-group,
  .plugin-detail-page .pd-detail-features article,
  .plugin-detail-page .pd-detail-related > a,
  .account-dashboard .ac-stats a,
  .tn-coming-card,
  .admin-stat, .plan-card, .wallet-admin-form
) { border-radius:20px; }

/* Retain the cart's layout while replacing its more specific surface rules. */
#shop-cart-page .shop-item,
#shop-checkout-page .shop-summary{
 background-color:transparent;
 background-image:linear-gradient(180deg,rgb(255 255 255 / .05),rgb(255 255 255 / .016));
 border-radius:28px;
}

/* Floating panels need a solid underlay so the page cannot show through their text. */
:is(body, .ae-home .ae-page) :is(aside.toolio-mini-cart, dialog.auth-popup){
 background-color:#101115;
}

/* Remove the frame around icon holders without changing the SVG strokes. */
:is(body, .ae-home .ae-page) :is(
  .home-audience .audience-icon, .coming-soon-icon,
  .shop-bank-icon, .ac-download-empty-icon, .orders-empty-icon
){border-color:transparent;outline:none}

:is(
  .ae-home .ae-product, .ae-home .home-example-tile,
  .plugin-detail-page .pd-detail-related > a,
  .account-dashboard .ac-stats a, .tn-card
):focus-visible{
 outline:2px solid var(--toolio-green, #c7ff3d);
 outline-offset:4px;
}

@media (forced-colors:active) {
  :is(
    .ae-home .home-audience .ae-audience-grid article,
    .ae-home .ae-product, .ae-home .home-example-tile,
    .ae-home .coming-soon-card, .ae-home .home-testimonial,
    .ae-home .ae-review-grid article, .ae-home .ae-final-card,
    .products-page .pc-product, .products-page .pc-filter-group,
    .free-plugins-page .fp-card-surface, .free-plugins-page .fp-steps article,
    .free-plugins-page .fp-feature-review,
    .plugin-detail-page .pd-summary-buy, .plugin-detail-page .pd-detail-features article,
    .plugin-detail-page .pd-detail-related > a,
    .shop-page .shop-panel, .shop-page .shop-summary, .shop-page .shop-item,
    .account-dashboard .ac-panel, .account-dashboard .ac-stats a,
    .account-dashboard .ac-download-card,
    .tn-panel, .tn-card, .tn-coming-card, .tn-offer,
    .toolio-mini-cart, .auth-popup, .auth-entry-card,
    .plugin-connect .connect-card,
    .admin-panel, .admin-stat, .plan-card, .wallet-admin-form
  ) { outline-color:CanvasText; }
}
