@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
  --primary-900: hsl(256, 43%, 7%);
  --primary-800: hsl(240, 24%, 13%);
  --primary-700: hsl(243, 26%, 15%);
  --primary-600: hsl(252, 9%, 22%);
  --primary-500: hsl(259, 13%, 28%);
  --primary-400: hsl(254, 22%, 32%);

  --primary-300: hsl(251, 13%, 68%);
  --primary-200: hsl(240, 15%, 76%);
  --primary-100: hsl(240, 21%, 88%);
  --primary-50: hsl(0, 0%, 100%);

  --neutral-100: hsl(0, 0%, 100%);

  --accent-400: hsl(93, 60%, 69%);

  --text-1: var(--neutral-100);
  --text-2: var(--primary-100);
  --text-3: var(--primary-50);

  --surface-1: var(--primary-900);
  --surface-2: var(--primary-800);
  --surface-3: var(--primary-700);

  --border-1: var(--primary-500); /* top */
  --border-2: var(--primary-600); /* bottom */
}

*,
::before,
::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  color-scheme: dark;
  font-family: system-ui;
}

body {
  min-block-size: 100vb !important;
  background-size: cover !important;
  color: var(--text-3) !important;
  /*text-shadow: 0px 0px 20px #000000b5;*/
  background-color: var(--primary-900) !important;
  background-image: linear-gradient(
      hsl(from var(--primary-700) h s l / 0.7) 0 0
    ),
    url("https://pulire-tunisie.com/wp-content/plugins/prodypanda-multisite-product-aggregator/bg/5.png") !important;
  background-position: top left !important;
  background-size: 100% !important;
  line-height: 1.5 !important;
  padding: 10rem 2rem !important;
      background-attachment: fixed;
}

h3 {
  color: var(--text-1);
}

h3 {
  font-size: 1.325rem;
  font-weight: 700;
}

h2 {
  font-size: 1.125rem;
  font-weight: 400;
}

.text-accent {
  color: var(--accent-400);
}

.flex-between {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.mspa-product-card {
  max-inline-size: 500px;

    display: flex; /* Key change: enables side-by-side layout */
    padding: 15px; /* Add padding to the card itself */
    gap: 15px;     /* Creates space between image and content */
}
.mspa-product-card.gridtwo {
  max-inline-size: 550px;

    display: flex; /* Key change: enables side-by-side layout */
    padding: 15px; /* Add padding to the card itself */
    gap: 15px;     /* Creates space between image and content */

    position: relative;
    overflow: hidden; /* Hide anything that goes outside the card's boundaries */
    
}

/* NEW: Image container styles */
.mspa-card-image-container {
    flex: 0 0 100px; /* Fixed width of 100px */
    height: 100px;
}

.mspa-card-image-container.gridtwo {
    flex: 0 0 160px;
    height: 160px;
    overflow: hidden;
    border-radius: 0.75rem;
}

.mspa-card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the container */
}

/* Style the image in its default state and add a smooth transition. */
.mspa-card-image-container.gridtwo img {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth ease-out effect */
}

/* When you hover over the PARENT CARD, scale up the image. */
.mspa-product-card.gridtwo:hover .mspa-card-image-container.gridtwo img {
    transform: scale(1.11); /* Zoom in by 15% */
}

.referral-code {
  display: flex;
  align-items: center;
  gap: 10px;
  background: hsl(from var(--surface-1) h s l / 0.5);
  padding: 0.5ex 1ch;
  font-size: 1.125rem;
  border-radius: 12px;
  color: var(--text-1);
  letter-spacing: 2px;
  width: fit-content;
  padding-right: 20px;
}
.referral-code kbd{
    margin: 0 10px;
    font-size: 12px;
    line-height: 12px;
}


.referral-code button.mspa-copy-button {
  cursor: pointer;
  background: 0;
  border: 0;
  margin: 0;
  padding: 0;
  height: 0.8lh;
  width: 0.8lh;
  /* Add transition for smooth animation */
  transition: transform 0.2s ease-in-out;
}

.referral-code button.mspa-copy-button svg {
    width: 2.3ch;
    height: 2.3ch;
    /* Add transition for smooth color change */
    transition: fill 0.2s ease-in-out;
}

.referral-code button.mspa-copy-button:hover:not(:disabled) {
    background-color: initial;
    transform: scale(1.1); /* Slight scale on hover */
}

svg {
    fill: var(--text-1);
    width: 3ch;
    height: 3ch;
}

/* Style for the "copied" state */
.referral-code button.mspa-copy-button.copied {
    transform: scale(1.2); /* "Pop" effect */
}

.referral-code button.mspa-copy-button.copied svg {
    /* Use the accent color from your theme for the checkmark */
    fill: var(--accent-400); 
}
.referred-users {
  text-align: end;
}

.user-count {
  font-size: 1.125rem;
  color: var(--text-1);
}

.mspa-card-footer {
  text-align: center;
  color: var(--text-1) !important;
  background: hsl(from hsl(0, 0%, 0%) h s l / 0.8);
  padding: 1ex 3ch;
  border-radius: 12px;
  height: 30px;
    line-height: 15px;
    position: relative;

  h2 {
    color: var(--text-3);
  }
}

/* .card {
  background-color: var(--surface-1);
  border-radius: 1rem;

  border: transparent 1px solid;
  background: radial-gradient(
        circle at 50% 250%,
        var(--primary-500),
        var(--surface-1)
      )
      padding-box,
    linear-gradient(var(--border-1), var(--border-2)) border-box;
} */

.rich-header.page-header.version1.icon-dark{
    display: none;
    visibility: hidden;
}
#nz-content {
    padding: 0px 0 70px 0;
}
.mspa-product-card {
  --border-width: 1px;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;

  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-content-wrap{
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
.forest-background{
    background-image: url(https://pulire-tunisie.com/wp-content/plugins/prodypanda-multisite-product-aggregator/bg/textures/4b.png);
    mix-blend-mode: soft-light;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    inset: 0;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -1;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 1;
}

/* Create the "glass" using a pseudo-element. It's invisible by default. */
.forest-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* This creates a shiny, angled highlight */
    background: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0) 80%
    );

    /* Start with the highlight moved completely to the left (off-screen) */
    transform: translateX(-101%);
    
    /* Add the transition for the sliding animation */
    transition: transform 0.65s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* When you hover over the PARENT CARD, slide the "glass" highlight across. */
.mspa-product-card.gridtwo:hover .forest-background::before {
    transform: translateX(101%);
}

/* --- Final Touches --- */
/* Ensure the content stays on top of the background effect */
.mspa-card-image-container,
.mspa-card-content {
    position: relative;
    z-index: 1;
}


.mspa-card-content {
  position: relative;
  z-index: 1;
}







/* --- Main Container & Controls --- */
.mspa-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.mspa-controls { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px 20px; 
    align-items: flex-end; 
    padding: 15px; 
    background-color: #f9f9f9; 
    border: 1px solid #ddd; 
    margin-bottom: 20px; 
    border-radius: 4px; 
}
.mspa-control-group { 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1;
    min-width: 160px;
}
/* Specific width for per-page to be smaller */
#mspa-per-page-select {
    min-width: 80px;
    flex-grow: 0;
}
.mspa-control-group label { 
    font-weight: bold; 
    margin-bottom: 5px; 
    font-size: 14px; 
    color: #444;
}
.mspa-control-group input[type="text"], 
.mspa-control-group select { 
    padding: 8px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    width: 100%;
}
.mspa-control-group-button {
    flex-grow: 0;
}
.mspa-control-group-button .button {
    padding: 6px 16px;
    height: 37px; /* Align with other inputs */
}

/* --- Table Header (Results Count & Loader) --- */
.mspa-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 5px;
    min-height: 30px;
}
#mspa-results-count {
    color: #f0f0f0;
    font-size: 14px;
    flex-grow: 1;
}

/* --- View Switcher --- */
.mspa-view-switcher {
    display: flex;
    gap: 5px;
    margin: 0 15px;
}
.mspa-view-button {
    background: #f9f9f9;
    border: 1px solid #ccc;
    padding: 4px;
    cursor: pointer;
    border-radius: 3px;
    color: #555;
    line-height: 1;
}
.mspa-view-button:hover {
    background: #fff;
    border-color: #999;
}
.mspa-view-button.active {
    background: #e0e0e0;
    border-color: #999;
    color: #000;
    cursor: default;
}
.mspa-view-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* --- Loader Spinner --- */
.mspa-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: mspa-spin 1s linear infinite;
}
@keyframes mspa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Results Area --- */
#mspa-results-area {
    margin-top: 10px;
}
.mspa-no-results {
    background-color: #fff8e1;
    padding: 20px;
    text-align: center;
    border: 1px solid #ffecb3;
    border-radius: 4px;
}

/* --- Product Table --- */
.mspa-product-table { 
    width: 100%; 
    border-collapse: collapse; 
}
.mspa-product-table th, 
.mspa-product-table td { 
    border: 1px solid #ddd; 
    padding: 12px; 
    text-align: left; 
    vertical-align: top;
}
.mspa-product-table th { 
    background-color: #f2f2f2; 
    font-weight: 600;
}
.mspa-product-table td a {
    font-weight: 500;
}
.mspa-product-table td div {
    margin-bottom: 5px;
}
.mspa-product-table td div:last-child {
    margin-bottom: 0;
}







/* --- Card View --- */
.mspa-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.mspa-card-grid.gridtwo {
    display: grid
;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 30px;
}

#nz-content,html, #gen-wrap, #wrap, #wrap.full{
    background-color: transparent !important;
}
.mspa-product-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.mspa-card-header {
    padding: 5px 15px 5px 15px;
    border-bottom: 1px solid #eeeeee1f;
}
.mspa-card-header h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 16px;
}
.mspa-card-header h3 a:not(.button)  {
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
  text-decoration: none;
  letter-spacing: -0.3px;
  color: #ff0008 !important;
  text-shadow : 0px 0px 5px #01010154;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* When you hover over the PARENT CARD, change the link's color and add a shadow. */
.mspa-product-card.gridtwo:hover .mspa-card-header h3 a {
    color: #ff131b !important;
  text-shadow : 0px 0px 5px #2b2b2b54;
}



.mspa-card-price {
    font-size: 14px;
    font-weight: bold;
    color: #444;
}
.mspa-card-body {
    padding: 5px 15px 15px 15px;
    flex-grow: 1;
    font-size: 14px;
    /*color: #555;*/
}
.mspa-card-body div {
    margin-bottom: 8px;
}
.mspa-card-footer>div>a {
    color: #f9f9f9 !important;
    font-size: 13px;
}













/* --- Pagination --- */
.mspa-pagination-wrapper { 
    margin-top: 20px; 
    text-align: center; 
}
.mspa-pagination-wrapper button { 
    color: #161616; 
    background: #fff; 
    border: 1px solid #ccc; 
    padding: 8px 12px; 
    margin: 0 2px; 
    cursor: pointer; 
    border-radius: 4px; 
    transition: background-color 0.2s;
    vertical-align: middle; /* Ajout pour un meilleur alignement */
}
.mspa-pagination-wrapper button:hover:not(:disabled) { 
    background-color: #e9e9e9; 
    border-color: #999;
}
.mspa-pagination-wrapper button.current { 
    color: #3b3b3b; 
    background-color: #f2f2f2; 
    font-weight: bold; 
    cursor: default;
    border-color: #999;
}
.mspa-pagination-wrapper button:disabled { 
    background-color: #fafafa; 
    color: #969696; 
    cursor: not-allowed; 
}

/* **NOUVEAU: Style pour l'ellipsis de la pagination** */
.mspa-pagination-ellipsis {
    display: inline-block;
    padding: 8px 6px;
    color: #555;
    vertical-align: middle;
}


/* --- Notices --- */
.mspa-notice {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}
.mspa-notice-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
}





/* --- View Switcher --- */
.mspa-view-switcher {
    display: flex;
    gap: 5px;
    margin: 0 15px;
}
.mspa-view-button {
    background: #f9f9f9;
    border: 1px solid #ccc;
    padding: 4px;
    cursor: pointer;
    border-radius: 3px;
    color: #555;
    line-height: 1;
}
.mspa-view-button:hover {
    background: #fff;
    border-color: #999;
}
.mspa-view-button.active {
    background: #e0e0e0;
    border-color: #999;
    color: #000;
    cursor: default;
}
.mspa-view-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* --- Theme Switcher (NEW) --- */
.mspa-theme-switcher {
    display: flex;
    gap: 5px;
    align-items: center;
}
.mspa-theme-button {
    background: #f9f9f9;
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    color: #555;
    font-size: 12px;
    line-height: 1;
}
.mspa-theme-button:hover {
    background: #fff;
    border-color: #999;
}
.mspa-theme-button.active {
    background: #e0e0e0;
    border-color: #999;
    color: #000;
    cursor: default;
    font-weight: bold;
}

/* --- Loader Spinner --- */
.mspa-loader {
    border: 4px solid rgba(255,255,255,0.2);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: mspa-spint 1s linear infinite;
    margin-left: 15px;
}
@keyframes mspa-spint {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* First, we register a custom property to allow for smooth animation */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Define the keyframe animation for rotating the angle */
@keyframes rotate {
  to {
    --angle: 360deg;
  }
}





.mspa-product-card-before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 5px; /* border thickness */
  
  /* 
    CHANGE #1: Use the --angle variable in your gradient.
    The "from var(--angle)" part tells the gradient where to start,
    and since --angle is changing, the gradient will rotate.
  */
  background: conic-gradient(from var(--angle), #e2e2e204, #17d4f1d8, #ffffff08, #09dcfca8, #ff000000);

  /* 
    CHANGE #2: Apply the correct animation.
    You already created the "rotate" keyframes, so we just need to use them here.
  */
  animation: rotate 10s linear infinite; 
  
  border-radius: inherit;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1; /* Was -1, but should be above the card's background to be visible */
}

/* Keep this keyframe definition for your loader icon */
@keyframes mspa-spinc {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

