@import "tailwindcss";

  html, body {
    font-family: 'Noto Sans Hebrew', sans-serif;
    overflow-x: hidden;
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  body {
    font-family: 'Rubik', Arial, sans-serif;
    background-color: #ffffff; /* Fallback color */
    /* Soft gradient background */
    background-image: radial-gradient(circle at 10% 20%, rgba(120, 87, 255, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 85% 90%, rgba(5, 178, 255, 0.1) 0%, transparent 40%);
    direction: rtl;
    padding: 20px;
    margin: 0;
    position: relative;
    min-height: 100vh;
  }
  

  /* Subtle noise layer */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/images/noise.svg');
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}

body {
    background: #f7f9ff; /* רקע אפרפר-סגלגל בהיר */
}


  img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
  }

/* style.css - הקוד המתוקן */
.container {
  max-width: 1600px; /* ✅ התיקון כאן */
  margin: auto;
  padding: 30px;
}
/* העיצוב הזה יחול רק על כפתורים עם הקלאס "btn-blue" */
.btn-blue {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-blue:hover {
    background-color: #0056b3;
}
  button:hover {
    background: #006f9a;
  }

  .result {
    background: #e8f4fa;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
  }

  .section {
    margin-bottom: 40px;
  }

  ul {
    padding: 0;
    list-style: none;
  }

  /* ✨ START: Premium Keyword List Styling */
  #keyword-list li {
    background: #ffffff;
    margin-bottom: 12px;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-direction: column;
    align-items: stretch;
  }

  #keyword-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  }

  .keyword-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }
  
  .keyword-text-display {
    font-weight: 600;
    font-size: 1.1em;
    color: #334155;
    flex-grow: 1;
  }
  
  .keyword-stats-container {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
    color: #475569;
  }

  .keyword-status, .search-volume-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .search-volume-row {
      gap: 5px;
  }
  /* ✨ END: Premium Keyword List Styling */

  .spinner {
    margin: 0 auto;
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid #008cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  @media (max-width: 600px) {
    .container {
      padding: 15px;
    }

    h1 {
      font-size: 20px;
    }

    input,
    select,
    button {
      font-size: 16px;
    }

    button {
      width: 100%;
      margin: 5px 0;
    }

    #chart-title {
      font-size: 16px;
    }
    .keyword-stats-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

  }

  #background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: none !important; /* Hide old background image */
  }

  #auth-section, #plans-section, .logo-container-premium {
    position: relative;
    z-index: 2;
  }

.small-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

.rank-arrow {
  display: inline-block;
  margin-left: 5px;
  font-size: 1.1em;
  vertical-align: middle;
}

.arrow-up {
  color: #28a745;
}

.arrow-down {
  color: #dc3545;
}

.arrow-no-change {
  color: #6c757d;
}
.selected-keyword {
  background-color: #e0f2fe !important;
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15) !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: #bdc3c7;
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #95a5a6;
}

#last-check-time {
  margin-top: 15px;
  font-weight: bold;
  font-size: 1.1em;
  color: #2c3e50;
  background-color: #eaf6ff;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  direction: rtl;
}

#last-check-time .fa-clock {
  color: #008cba;
  font-size: 1.2em;
}

.chart-container {
  position: relative;
  width: 100%;
  min-height: 250px;
  overflow-x: auto;
}

.domain-controls-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.domain-controls-row select {
  margin-bottom: 0;
  flex-grow: 1;
  width: auto;
}

.domain-controls-row button {
  margin: 0;
}
h1, h2, h3, h4, h5, h6, button {
  font-family: 'Rubik', Arial, sans-serif;
}

.add-domain-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #007BFF, #0056b3);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  direction: rtl;
}
.add-domain-btn:hover {
  background: linear-gradient(135deg, #0056b3, #004494);
  transform: translateY(-2px);
}
.add-domain-btn i {
  font-size: 18px;
}

.delete-domain-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #dc3545, #b02a37);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  direction: rtl;
}
.delete-domain-btn:hover {
  background: linear-gradient(135deg, #b02a37, #8e222d);
  transform: translateY(-2px);
}
.delete-domain-btn i {
  font-size: 18px;
}


.upgrade-plan-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e67e22, #d35400);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  direction: rtl;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}
.upgrade-plan-btn:hover {
  background: linear-gradient(135deg, #d35400, #c0392b);
  transform: translateY(-2px);
}


/* START: Premium Backlinks Table CSS */
.premium-swal-table {
  min-width: 600px;
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.07);
  border-radius: 10px;
  overflow: hidden;
}
.premium-swal-table td {
  padding: 14px 10px;
  border: 1px solid #e0e4ea;
  text-align: right;
  font-size: 1em;
  white-space: nowrap;      /* ודא שורה זו מונעת מעבר שורה */
  overflow: hidden;         /* הוסף שורה זו כדי להסתיר את הטקסט העודף */
  text-overflow: ellipsis;  /* הוסף שורה זו כדי להוסיף "..." */
  max-width: 250px;         /* הוסף שורה זו כדי להגביל את רוחב התא. שנה את הערך לפי הצורך */
}.premium-swal-table th {
  background: linear-gradient(90deg, #008cba 70%, #a76bff 100%);
  color: #fff;
  font-weight: bold;
  font-size: 1.05em;
}
.premium-swal-table tr:nth-child(even) {
  background: #f8fafd;
}
.premium-swal-table tr:hover {
  background-color: #e8f4fd;
}
.premium-swal-table a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}
.premium-swal-table a:hover {
    text-decoration: underline;
}

/* ============================================= */
/* תיקון רספונסיביות לטבלה בקופץ (מובייל)     */
/* ============================================= */

@media (max-width: 650px) {
  /* 1. הסתרת שורת הכותרות המקורית במובייל */
  .table-responsive .premium-swal-table thead {
    display: none;
  }

  /* 2. הפיכת כל תא ושורה לבלוק נפרד (כדי שיסתדרו אחד מתחת לשני) */
  .table-responsive .premium-swal-table, 
  .table-responsive .premium-swal-table tbody, 
  .table-responsive .premium-swal-table tr, 
  .table-responsive .premium-swal-table td {
    display: block;
    width: 100%;
  }

  /* 3. עיצוב כל שורה כ"כרטיס" */
  .table-responsive .premium-swal-table tr {
    margin-bottom: 15px;
    border: 1px solid #e0e4ea;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
    padding: 10px;
  }

  /* 4. עיצוב כל תא בתוך הכרטיס */
  .table-responsive .premium-swal-table td {
    text-align: right; /* יישור התוכן לימין */
    padding-left: 45%; /* יצירת רווח בצד שמאל עבור הכותרת */
    position: relative;
    border: none;
    border-bottom: 1px solid #eee;
    white-space: normal;      /* ✅ תיקון: מאפשר גלישת טקסט */
    overflow-wrap: break-word;/* ✅ תיקון: שובר מילים ארוכות (כמו URL) */
  }

  .table-responsive .premium-swal-table tr td:last-child {
      border-bottom: none;
  }

  /* 5. יצירת הכותרת לצד כל נתון באמצעות ה-data-label */
  .table-responsive .premium-swal-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px; /* מיקום הכותרת בצד שמאל */
    width: 40%; /* רוחב הכותרת */
    text-align: left;
    font-weight: bold;
    color: #555;
    white-space: nowrap;
  }
}
/* END: Premium Backlinks Table CSS */


.swal2-html-container {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 1em;
}

.show-table-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #007BFF, #0056b3);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  direction: rtl;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.show-table-btn:hover {
  background: linear-gradient(135deg, #0056b3, #004494);
  transform: translateY(-2px);
}
.show-table-btn i {
  font-size: 18px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.check-ranks-btn.locked {
    background: linear-gradient(135deg, #b0b0b0, #8c8c8c);
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

.check-ranks-btn.locked:hover {
    background: linear-gradient(135deg, #8c8c8c, #7a7a7a);
    transform: none;
}

.lock-icon {
    margin-right: 8px;
    color: #ffd700;
}

div:where(.swal2-container) div:where(.swal2-popup) {
    max-height: 85vh;
    overflow-y: auto;
}

.swal2-transparent-popup {
    background: transparent !important;
}
.premium-gold-btn {
  background: linear-gradient(90deg, #ffd700 0%, #ffc700 40%, #bfa042 100%);
  color: #332200;
  font-weight: bold;
  font-size: 20px;
  padding: 14px 40px;
  border: none;
  border-radius: 18px;
  box-shadow: 0 4px 24px #ffecb566, 0 2px 0 #bfa042;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, transform 0.12s, box-shadow 0.2s;
  letter-spacing: 1.2px;
  text-shadow: 0 2px 8px #fff9d7bb, 0 0 0 #fff;
  outline: none;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  direction: rtl; /* כי הכפתור בעברית */
}
.premium-gold-btn i {
  margin-left: 10px;
  color: #a8881e;
  filter: drop-shadow(0 2px 2px #fff7d2bb);
  font-size: 23px;
}
.premium-gold-btn .shine {
  position: absolute;
  top: 0; left: -75%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.45) 55%, rgba(255,255,255,0.0) 100%);
  transform: skewX(-22deg);
  pointer-events: none;
  z-index: 2;
}
.premium-gold-btn:hover .shine {
  animation: shine-move 1s linear forwards;
}
@keyframes shine-move {
  from { left: -70%; }
  to { left: 120%; }
}
@media (max-width: 600px) {
  .premium-gold-btn {
    font-size: 17px;
    padding: 10px 15px;
    min-width: 120px;
  }
  .premium-gold-btn i {
    font-size: 19px;
    margin-left: 7px;
  }
  .premium-gold-btn .gold-btn-bot {
    height: 1em;
    margin-left: 4px;
    margin-bottom: -2px;
  }
}
.gold-btn-bot {
  height: 67px;
  width: auto;
  margin-left: 12px;   /* ! שים לב – margin-left, לא right */
  vertical-align: middle;
}

/* ================================================================
   START: CSS FOR THE NEW FUTURISTIC BUTTON
   ================================================================ */

:root {
    /* Palette */
    --gold-main: #FFD700;
    --gold-mid: #FFC700;
    --gold-dark: #BFA042;
    --platinum-light: #F6F8FA;
    --platinum-dark: #EEE;
    --shadow-color: #8C7005;
    --body-bg: #E4E9F2;
    --text-color: #44380B;
    --focus-outline-color: #FFA500;

    /* Sizing & Spacing */
    --button-height: 75px;
    --button-padding: 0 40px;
    --icon-size: 65px;
    --icon-spacing: 20px;
    --border-radius: 99px;
    --font-size: 26px;
    --letter-spacing: 1.5px;

    /* Animation Timings */
    --transition-main: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-fast: 0.2s ease;
}

.futuristic-cta-button {
    /* Layout & Sizing */
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    height: var(--button-height);
    padding: var(--button-padding);
    border-radius: var(--border-radius);
    text-decoration: none;
    
    /* The Glassmorphism Effect */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    
    /* Multilayered Shadow for Depth */
    box-shadow: 
        /* Deep drop shadow */
        10px 10px 30px rgba(0, 0, 0, 0.15),
        /* Inner shadow for 3D effect */
        inset 1px 1px 1px var(--platinum-light),
        inset -1px -1px 2px rgba(0, 0, 0, 0.1);

    /* Animations & Interactivity */
    transform: scale(1);
    transition: transform var(--transition-main), box-shadow var(--transition-main);
    overflow: hidden; /* Crucial for shine and border effects */
    z-index: 1;
    font-family: 'Heebo', sans-serif; /* Use the new font */
    border: none; /* remove default button border */
}

/* Pulsing Glow Border */
.futuristic-cta-button::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--border-radius);
    padding: 2px; /* Thickness of the glow */
    background: linear-gradient(45deg, var(--gold-main), var(--platinum-light), var(--gold-mid));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    opacity: 0.7;
    transition: opacity var(--transition-main);
}

/* Shimmer/Shine Animation Layer */
.futuristic-cta-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 1s ease-in-out;
    z-index: 1;
}

/* Shared style for both icon containers */
.btn-icon-container {
    position: relative;
    width: var(--icon-size);
    height: var(--icon-size);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    
    /* Glassy effect for the icon circles */
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3), 0 2px 5px rgba(0,0,0,0.1);
    
    transition: transform var(--transition-main);
}

/* The icons themselves (Robot and Google Logo) */
.btn-icon-container img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: transform 0.5s ease-out; /* Add transition for smooth stop */
}

/* Specific style for the smaller Google icon */
.google-icon-container img {
    width: 60%;
    height: 60%;
}


/* The main button text */
.btn-text {
    /* Gradient Text Effect */
    background: linear-gradient(180deg, var(--gold-main), var(--shadow-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;

    /* Font and Spacing */
    font-size: var(--font-size);
    font-weight: 900;
    letter-spacing: var(--letter-spacing);
    
    /* Readability Shadow */
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.2);
    z-index: 2;
}

/* Hover State: The button floats up and effects intensify */
.futuristic-cta-button:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 
        20px 20px 40px rgba(0, 0, 0, 0.2),
        inset 1px 1px 1px var(--platinum-light),
        inset -1px -1px 2px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1)); /* Brighter on hover */
}

/* Triggering the shine animation */
.futuristic-cta-button:hover::after {
    left: 150%;
}

/* Making the glow border pulse on hover */
.futuristic-cta-button:hover::before {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Scaling up the icons on hover for a dynamic feel */
.futuristic-cta-button:hover .btn-icon-container {
    transform: scale(1.1);
}

/* Active/Click State: Simulates pressing the button down */
.futuristic-cta-button:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 
        5px 5px 15px rgba(0, 0, 0, 0.15),
        inset 1px 1px 3px rgba(0,0,0,0.2);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

/* Accessibility: Strong visible focus outline */
.futuristic-cta-button:focus-visible {
    outline: 3px solid var(--focus-outline-color);
    outline-offset: 5px;
}

/* Animation for the pulsing glow border on hover */
@keyframes pulse-glow {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

/* Animation for the spinning Google icon */
@keyframes spin-icon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.google-icon-container.is-checking img {
  animation: spin-icon 1.2s linear infinite;
}


/* Disables animations if the user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .futuristic-cta-button,
    .futuristic-cta-button::before,
    .futuristic-cta-button::after,
    .btn-icon-container {
        transition: none;
        animation: none;
    }
    .futuristic-cta-button:hover {
         transform: none;
    }
    .futuristic-cta-button:active {
         transform: scale(0.98);
    }
}

/* Mobile Responsiveness: Scales the button down gracefully */
@media (max-width: 600px) {
    .futuristic-cta-button {
      --button-height: 60px;
      --button-padding: 0 20px;
      --icon-size: 45px;
      --font-size: 18px;
      --letter-spacing: 1px;
      gap: 10px;
    }
}

/* ================================================================
   END: CSS FOR THE NEW FUTURISTIC BUTTON
   ================================================================ */

/* ================================================================
   START: CSS FOR THE NEW PREMIUM TITLE
   ================================================================ */
.premium-title {
    font-family: 'Heebo', sans-serif;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 30px;
    padding: 10px;
}
.premium-title .main {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.premium-title .sub {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    color: #7f8c8d;
    margin-top: 8px;
    letter-spacing: 0.5px;
}
.premium-title .ai-highlight {
    font-weight: 700;
    background: -webkit-linear-gradient(45deg, #a76bff, #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
@media (max-width: 600px) {
    .premium-title .main {
        font-size: 1.8rem;
    }
    .premium-title .sub {
        font-size: 0.9rem;
    }
}
/* ================================================================
   END: CSS FOR THE NEW PREMIUM TITLE
   ================================================================ */

/* ================================================================
   START: CSS FOR THE NEW CHART CONTROLS SECTION
   ================================================================ */
.premium-chart-controls {
    display: flex;
    flex-direction: column; /* ✅ שינוי: מסדר את הלחצנים בטור (אחד מתחת לשני) */
    align-items: center;   /* ✅ שינוי: ממקם כל לחצן במרכז הטור */
    gap: 15px;             /* שומר על הרווח בין הלחצנים */
    
    /* --- שאר המאפיינים נשארים זהים --- */
    background: linear-gradient(135deg, hsl(255, 81%, 79%), #40516C);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
    border-radius: 22px;
    padding: 25px 30px;
    text-align: center;
    max-width: 1080px;
    margin: 40px auto;
    animation: fadeIn 0.8s ease-out;
}

.premium-chart-controls button {
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 150px; /* ✅ שינוי: מינימום רוחב לכל כפתור */
}

.premium-chart-controls .date-controls-wrapper {
    flex-grow: 2; /* ✅ שינוי: נותן לקונטיינר של התאריכים יותר מקום */
    flex-basis: 100%; /* ✅ שינוי: גורם לו לרדת שורה */
    justify-content: center;
}

#averageRankChartToggle.premium-action-btn {
    background: linear-gradient(135deg, #e0e0e0, #c0c0c0); /* רקע כסף אחיד */
    color: #333 !important; /* צבע טקסט כהה לקריאות טובה */
    font-family: 'Heebo', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 35px;
    border-radius: 16px;
    border: none;
    box-shadow: 
        0 10px 20px -5px rgba(0, 0, 0, 0.1), 
        0 4px 8px rgba(0,0,0,0.1),               
        inset 0 1px 0 rgba(255,255,255,0.8),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    text-shadow: none;
}

averageRankChartToggle.premium-action-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 14px 28px -5px rgba(0, 0, 0, 0.2), 
        0 8px 12px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.8),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #dcdcdc, #c0c0c0);
}


#averageRankChartToggle.premium-action-btn:active {
    transform: translateY(1px) scale(1);
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.1);
}

#averageRankChartToggle.premium-action-btn .icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    color: #333 !important; /* צבע כהה לאייקון */
}

#averageRankChartToggle.premium-action-btn .shine-effect {
    position: absolute;
    top: -50%;
    left: -150%;
    width: 40px;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(35deg);
    pointer-events: none;
    transition: left 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

#averageRankChartToggle.premium-action-btn:hover .shine-effect {
    left: 150%;
}


.date-input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.date-input-wrapper label {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #6c7a89;
    margin-bottom: 8px;
}

.date-input-field {
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05);
}

.date-input-field .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #34495e;
    font-size: 16px;
    pointer-events: none;
}

.date-input-field input[type="date"] {
    background: transparent;
    border: none;
    padding: 10px 15px 10px 40px;
    border-radius: 12px;
    color: #2c3e50;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 15px;
    outline: none;
    width: 170px;
}
/* ================================================================
   END: CSS FOR THE NEW CHART CONTROLS SECTION
   ================================================================ */

/* ================================================================
   START: CSS FOR THE NEW PREMIUM LOGIN/WELCOME SECTION
   ================================================================ */
.logo-container-premium {
  text-align: center;
  padding: 36px 0 8px 0;
  background: none;
}
.premium-logo {
  max-width: 310px;
  height: auto;
  filter: drop-shadow(0 10px 28px #b2a3ff66) drop-shadow(0 2px 0 #fff);
  border-radius: 18px;
  transition: transform 0.23s cubic-bezier(.37,1.19,.44,.95);
}
.premium-logo:hover {
  transform: scale(1.05) rotate(-1.2deg);
}
.google-signin-premium {
  /* שינויים מאוחדים: הסרת כפילויות ותיקון Flexbox */
  display: flex;
  align-items: center;
  justify-content: flex-start; /* ✅ שונה מ-center, ליישור לימין */
  gap: 12px; 
  direction: rtl; 
  
  /* עיצוב קיים – נשמר */
  background: linear-gradient(90deg, #fff, #ecebff 60%, #a76bff 120%);
  color: #111;
  font-size: 22px;
  font-weight: 700;
  border-radius: 14px;
  padding: 10px 50px; /* ✅ הוגדל מ-38px, להרחבת הכפתור */
  border: 0;
  box-shadow: 0 4px 24px #a58cff44, 0 2px 0 #fff;
  margin: 15px 0 0 0;
  transition: background 0.16s, box-shadow 0.14s, transform 0.13s;
  letter-spacing: 0.7px;
}
.google-signin-premium:hover {
  background: linear-gradient(90deg, #ecebff, #a76bff 60%, #fff 120%);
  color: #222;
  transform: scale(1.04);
  box-shadow: 0 8px 36px #a76bff66, 0 2px 0 #fff;
}
.container-premium {
  background: linear-gradient(145deg, #f6f8ff 70%, #efe4ff 100%);
  border-radius: 30px;
  padding: 40px 20px 32px 20px;
  box-shadow: 0 8px 44px #a76bff33, 0 2px 0 #fff;
  margin: auto;
  max-width: 800px;
  text-align: center;
}
.hero-title-premium {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 1.6px;
  color: #4a2ea4;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #7857ff 30%, #05b2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 8px 28px #b2a3ff88, 0 2px 0 #fff;
}
.hero-title-premium span {
  /* This part of the original CSS was likely for a specific effect,
     but we'll keep it as requested */
  color: #00b1ff;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
}
.welcome-vid-premium {
  max-width: 300px;
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 8px 38px #a76bff66, 0 2px 0 #fff;
  margin: 18px auto 28px auto;
  display: block;
  background: transparent;
}
.welcome-box-premium {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 38px 16px 20px 16px;
  background: linear-gradient(145deg, #fff 60%, #f2f4f8 100%);
  border-radius: 20px;
  box-shadow: 0 8px 24px #b2a3ff0f, 0 2px 0 #fff;
  animation: fadeIn 1.5s ease-in-out;
}
.welcome-box-premium h2 {
  font-size: 26px;
  font-weight: 800;
  color: #7857ff;
  margin-bottom: 20px;
  text-shadow: 0 4px 16px #a76bff44, 0 2px 0 #fff;
}
.welcome-box-premium p {
  font-size: 18px;
  color: #444;
  font-weight: 500;
  line-height: 1.68;
}
/* ================================================================
   END: CSS FOR THE NEW PREMIUM LOGIN/WELCOME SECTION
   ================================================================ */

/* כלל CSS מיוחד למובייל */
@media (max-width: 767px) {
  .google-signin-premium {
    width: 100%; /* הכפתור יתפוס את כל רוחב המסך במובייל */
    padding: 12px 24px; /* הקטנת הריפוד כדי שהכפתור יתאים למסך */
    font-size: 18px; /* הקטנת גודל הפונט */
  }
}

/* ================================================================
   עיצוב 'Next-Gen' לשדות קלט ובחירת דומיין
   ================================================================ */

/* --- תווית ראשית עם גרדיאנט ותאורה --- */
.domain-label-premium {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-family: 'Heebo', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #d8b4fe, #a78bfa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(167, 139, 250, 0.3);
}

/* --- עיצוב אחיד ומתקדם לשדות קלט ותיבת בחירה --- */
.domain-select-premium,
.premium-input-container {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 12px;
    margin-bottom: 25px;
    /* רקע זכוכית חלבית */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* הצללה עדינה ליצירת עומק */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* יצירת מסגרת גרדיאנט */
    border: 1px solid transparent;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image:
        linear-gradient(135deg, #1e1f26, #1e1f26),
        linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(59, 130, 246, 0.3));
}

/* אפקט זוהר בפוקוס */
.domain-select-premium:focus-within,
.premium-input-container:focus-within {
    box-shadow: 0 0 20px 5px rgba(139, 92, 246, 0.2);
    background-image:
        linear-gradient(135deg, #1e1f26, #1e1f26),
        linear-gradient(135deg, #8b5cf6, #3b82f6);
}

.domain-select-premium .icon,
.premium-input-container .icon {
    font-size: 1.2em;
    color: #9ca3af;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.domain-select-premium:focus-within .icon,
.premium-input-container:focus-within .icon {
    color: #c7d2fe;
}

.domain-select-premium select,
.premium-input-container input {
    width: 100%;
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.1em;
    font-family: 'Heebo', sans-serif;
    color: #e5e7eb;
    padding: 15px 10px;
}

.domain-select-premium select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    /* חץ בהיר ומעוצב */
    background-image: url('data:image/svg+xml;utf8,<svg fill="%239ca3af" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: left 15px center;
}

.domain-select-premium select option {
    color: #111827;
    background: #e5e7eb;
}

/* --- תיבת תצוגה של דומיין נבחר עם אפקט 'ברק' --- */
.selected-domain-premium-box {
    position: relative; /* חובה לאפקט הברק */
    overflow: hidden;   /* חובה לאפקט הברק */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    margin-bottom: 18px;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 700;
    color: #f9fafb;
    /* רקע זכוכית זוהר */
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.8s ease-out;
}

/* אנימציית הברק */
.selected-domain-premium-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    transition: left 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.selected-domain-premium-box:hover::before {
    left: 150%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- רספונסיביות (נשאר ללא שינוי מהותי) --- */
@media (max-width: 600px) {
    .domain-label-premium {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .selected-domain-premium-box {
        flex-wrap: wrap;
        gap: 8px;
    }
}

#plans-section {
    background: linear-gradient(160deg, #f7f9ff 0%, #eef2ff 100%);
    padding: 50px 20px;
    border-radius: 32px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    margin: 40px auto;
}

.plans-header {
    text-align: center;
    margin-bottom: 50px;
}

.plans-header h1 {
    font-family: 'Heebo', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(90deg, #7857ff, #05b2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.plans-header p {
    font-size: 1.15rem;
    color: #5c677d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.plan-card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 8px 36px rgba(167, 107, 255, 0.1);
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.plan-card:hover {
    box-shadow: 0 16px 56px rgba(120, 87, 255, 0.25);
    transform: translateY(-10px);
}

.plan-card.popular {
    border-color: #ffd700;
    transform: scale(1.03);
}

.plan-card.popular:hover {
     transform: translateY(-10px) scale(1.08);
}


.plan-badge {
    color: #fff;
    border-radius: 50px;
    padding: 8px 18px;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.95em;
    font-weight: 700;
    font-family: 'Heebo', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.plan-badge.popular-badge { background: linear-gradient(45deg, #ffc107, #ff9800); }
.plan-badge.ai-badge { background: linear-gradient(45deg, #8a2be2, #05b2ff); }


.plan-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.plan-icon.free-tier { color: #28a745; }
.plan-icon.pro-tier { color: #007bff; }
.plan-icon.popular-tier { color: #ff9800; }
.plan-icon.ai-tier { color: #8a2be2; }


.plan-title {
    font-family: 'Heebo', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #2c3e50;
    margin-top: 10px;
    margin-bottom: 5px;
}
.plan-subtitle {
    font-size: 0.95rem;
    color: #6c757d;
    min-height: 40px;
    margin-bottom: 15px;
}

.plan-price {
    font-family: 'Heebo', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #34495e, #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.plan-price .currency { font-size: 1.8rem; vertical-align: super; }
.plan-price .period { font-size: 1rem; font-weight: 500; color: #6c757d; }
.plan-price.free { color: #28a745; background: none; -webkit-text-fill-color: initial; }


.plan-features {
    text-align: right;
    margin-bottom: 25px;
    color: #454545;
    font-size: 1rem;
    padding-right: 10px;
    flex-grow: 1;
}
.plan-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.plan-features li i {
    color: #28a745;
    font-size: 1.2em;
}

.plan-action {
    margin-top: auto;
    padding-top: 20px;
}

.plan-choose-btn {
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.plan-choose-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3, #004494);
}

.plan-choose-btn .shine {
    position: absolute;
    top: -50%;
    left: -150%;
    width: 40px;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(35deg);
    pointer-events: none;
    transition: left 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.plan-choose-btn:hover .shine {
    left: 150%;
}

.paypal-container-wrapper {
    padding: 15px 0 5px 0;
    border-top: 1px solid #eef2ff;
    margin-top: 15px;
}

.trust-seals {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    opacity: 0.7;
}
.trust-seals .seal {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #5c677d;
}
.trust-seals .seal i {
    font-size: 1.4rem;
}

@media (max-width: 992px) {
    .plans-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    .plan-card.popular {
        transform: none;
    }
}

@media (max-width: 768px) {
    #plans-section {
        padding: 30px 15px;
    }
    .plans-header h1 {
        font-size: 2.2rem;
    }
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .plan-card.popular {
        transform: scale(1.03); /* Keep it slightly bigger on mobile too */
    }
}
.domain-metrics-bar-premium {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
  padding: 18px 24px;
  border-radius: 16px;
  background: linear-gradient(145deg, #f5f3ff, #ffffff);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  font-family: 'Heebo', sans-serif;
  direction: rtl;
  flex-wrap: wrap;
}

.metric-box-premium {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}

.metric-box-premium label {
  font-weight: 600;
  font-size: 14px;
  color: #6c63ff;
  margin-bottom: 6px;
}

.metric-value-premium {
  font-size: 22px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 10px;
  background-color: #f0f0ff;
  min-width: 80px;
  text-align: center;
}

.metric-value-premium.red {
  color: #e74c3c;
  background: #ffe8e6;
}
.metric-value-premium.green {
  color: #27ae60;
  background: #eafaf1;
}
.metric-value-premium.blue {
  color: #2980b9;
  background: #e6f2ff;
}

/* ================================================================
   END: ULTRA PREMIUM PLANS PAGE STYLES
   ================================================================ */

.swal2-popup.rounded-popup {
  border-radius: 30px !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 72px;
    height: 72px;
    transform: rotate(-90deg); /* מתחיל את המילוי מלמעלה */
    z-index: 10;
    display: none; /* מוסתר כברירת מחדל */
}

.progress-ring.is-active {
    display: block;
    animation: rotate-gradient 2s linear infinite;
}

@keyframes rotate-gradient {
    from { transform: rotate(-90deg) scale(1); }
    to { transform: rotate(270deg) scale(1); }
}

.progress-ring__circle-bg,
.progress-ring__circle-indicator {
    fill: transparent;
    stroke-width: 4px;
}

.progress-ring__circle-bg {
    stroke: rgba(255, 255, 255, 0.3);
}

.progress-ring__circle-indicator {
    stroke: url(#google-gradient);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease-out;
}
.domain-metrics-bar-premium {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
  padding: 18px 24px;
  border-radius: 16px;
  background: linear-gradient(145deg, #f5f3ff, #ffffff);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  font-family: 'Heebo', sans-serif;
  direction: rtl;
  flex-wrap: wrap;
}

.metric-box-premium {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}

.metric-box-premium label {
  font-weight: 600;
  font-size: 14px;
  color: #6c63ff;
  margin-bottom: 6px;
}

.metric-value-premium {
  font-size: 22px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 10px;
  background-color: #f0f0ff;
  min-width: 80px;
  text-align: center;
}

.metric-value-premium.red {
  color: #e74c3c;
  background: #ffe8e6;
}
.metric-value-premium.green {
  color: #27ae60;
  background: #eafaf1;
}
.metric-value-premium.blue {
  color: #2980b9;
  background: #e6f2ff;
}
/* ===============================================
   כיסוי הקונטיינר הראשי בשחור
   =============================================== */

#main-app .container {
    background: #ffffff !important; /* רקע לבן לכרטיס */
    border-radius: 16px !important; /* פינות מעוגלות */
    box-shadow: 0 10px 30px rgba(22, 28, 45, 0.08) !important; /* הצללה עדינה */
    border: none !important; /* מסירים מסגרת קודמת אם הייתה */

    /* מאפיינים קיימים שנשמרים */
    max-width: 1400px;
    margin: 32px auto; /* רווח מהקצוות */
    padding: 30px;
    color: #2b2f3a !important; /* צבע טקסט כהה לתוכן */
}
/* בנוסף, חשוב לעדכן את צבעי הכותרות
   כדי שיראו אותן על הרקע השחור.
*/
#main-app .premium-title .main,
#main-app .premium-title .sub {
  color: #000000 !important; /* צובע את הכותרות בלבן */
  text-shadow: none !important; /* מסיר צל שיכול להפריע */
  -webkit-text-fill-color: initial !important; /* מבטל צבע גרדיאנט */
}

#main-app .domain-label-premium {
  -webkit-text-fill-color: #a76bff !important; /* משנה את צבע התווית לסגול בהיר וקריא */
}
.spam-circle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px auto;
}

.spam-circle-label {
  margin-top: 10px;
  font-weight: 600;
  font-size: 16px;
  color: #ffffff;
  text-align: center;
}

.spam-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(#ff4d4f 0deg, #e0e0e0 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  position: relative;
  transition: all 0.3s ease;
}

.spam-circle-value {
  font-size: 22px;
  font-weight: bold;
  color: #ff4d4f;
  position: absolute;
}
/* --- START: Upgraded Last Check Time Display --- */
.last-check-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px;
    background: #fdfdff;
    border: 1px solid #e0e7ff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(120, 87, 255, 0.1);
    width: 100%;   /* הוסף/ודא שורה זו כדי שיתפוס את כל הרוחב */
    margin-left: auto; /* הוסף שורה זו למירוכז */
    margin-right: auto; /* הוסף שורה זו למירוכז */
}
.check-time-box {
    background: linear-gradient(135deg, #f4eaff, #c7d2fe);
    color: #4a2ea4;
    border-radius: 16px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
    flex-grow: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1.5px solid #a76bff33;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.check-time-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(120, 87, 255, 0.15);
}

.check-time-box i {
    font-size: 1.8em;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.box-content {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.box-title {
    font-size: 0.9em;
    font-weight: 600;
    opacity: 0.8;
}

.box-value {
    font-size: 1.25em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.relative-time-display {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    font-size: 0.95em;
    color: #7857ff;
    font-weight: 500;
}

.info-placeholder {
    color: #6c7a89;
    font-size: 1em;
    font-weight: 500;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    width: 100%;
}


@media (max-width: 650px) {
    .check-time-box {
        min-width: 100%;
    }
}
/* --- END: Upgraded Last Check Time Display --- */
/* --- START: Fix for Domain Selector on Mobile --- */
@media (max-width: 600px) {
    .domain-select-premium {
        flex-direction: column; /* 1. עורם את הפריטים אנכית */
        align-items: stretch;   /* 2. גורם לפריטים למלא את כל הרוחב */
        gap: 12px;              /* 3. מוסיף רווח בין תיבת הבחירה לכפתור */
    }

    .domain-select-premium .delete-domain-btn {
        margin-right: 0; /* מאפס את המרווח הימני של הכפתור */
    }
}
/* --- END: Fix for Domain Selector on Mobile --- */
/* --- START: Upgraded Spam Score Meter --- */
.spam-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* הקונטיינר הראשי של המד העגול */
.spam-progress-ring {
    position: relative;
    width: 120px;  /* גודל משודרג */
    height: 120px;
}

/* עיצוב הטקסט של האחוזים במרכז */
.spam-ring-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Heebo', sans-serif;
    font-weight: 900;
    font-size: 28px;
    transition: color 0.5s ease; /* אנימציית צבע לטקסט */
}

.spam-progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* גורם לאנימציה להתחיל מלמעלה */
}

/* עיצוב בסיסי לשני העיגולים (רקע ופס התקדמות) */
.spam-ring-circle {
    fill: transparent;
    stroke-width: 12; /* עובי הפס */
    /* אנימציה חלקה למילוי הפס */
    transition: stroke-dashoffset 1s cubic-bezier(0.65, 0, 0.35, 1);
}

/* פס הרקע האפור */
.spam-ring-bg {
    stroke: #00218d;
}

/* פס ההתקדמות הצבעוני */
.spam-ring-bar {
    stroke-linecap: round; /* קצוות מעוגלים לפס */
}

/* הגדרות צבע דינמיות לפי רמת הספאם */
.spam-score-low .spam-ring-bar { stroke: #28a745; }
.spam-score-low .spam-ring-value { color: #28a745; }

.spam-score-medium .spam-ring-bar { stroke: #ffc107; }
.spam-score-medium .spam-ring-value { color: #d9a406; }

.spam-score-high .spam-ring-bar { stroke: #dc3545; }
.spam-score-high .spam-ring-value { color: #dc3545; }

/* עיצוב הכותרת מתחת למד */
.spam-circle-label {
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    margin-top: 0;
}
/* --- END: Upgraded Spam Score Meter --- */
/* --- START: Upgraded Swal Cancel Button --- */
.swal2-popup .swal2-cancel {
    /* עיצוב בסיסי */
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Heebo', sans-serif;
    cursor: pointer;

    /* רקע גרדיאנט והצללה למראה מתקדם */
    background: linear-gradient(135deg, #6c757d, #343a40);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

    /* אנימציה חלקה למעבר עכבר */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* אפקט ריחוף (Hover) */
.swal2-popup .swal2-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.25);
}

/* נראות בעת פוקוס (לנגישות) */
.swal2-popup .swal2-cancel:focus-visible {
    outline: 2px solid #a76bff;
    outline-offset: 2px;
}

.selected-domain-premium-box {
  justify-content: space-between; /* דוחף את האייקון לקצה הימני */
}

.copy-icon {
  color: #c7d2fe; /* צבע סגלגל בהיר שמתאים לרקע */
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  padding: 5px; /* מגדיל את אזור הלחיצה */
}

.copy-icon:hover {
  transform: scale(1.2); /* מגדיל מעט את האייקון במעבר עכבר */
  color: #ffffff; /* הופך את האייקון ללבן להדגשה */
}
.spam-layout-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: row-reverse; /* ✅ זה מכריח את מד הספאם לעבור שמאלה */
}

.spam-legend-container {
  flex: 1 1 300px;
  max-width: 500px;
  background: #f9f9ff;
  border: 1px solid #d4d9ff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 14px rgba(120, 87, 255, 0.06);
  font-size: 0.95em;
  color: #333;
  direction: rtl;
}

.spam-legend-container h3 {
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 1.1em;
  color: #4a4a88;
}

.spam-legend {
  list-style: none;
  padding: 0;
  margin: 0;
}
.spam-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.spam-legend li.low i { color: #28a745; }
.spam-legend li.medium i { color: #ffc107; }
.spam-legend li.high i { color: #dc3545; }

.spam-warning {
  margin-top: 10px;
  background: #fff8e1;
  color: #7a5700;
  border: 1px solid #ffe58f;
  padding: 10px;
  border-radius: 8px;
  line-height: 1.6;
  font-weight: 500;
}

@media (max-width: 768px) {
  .spam-layout-container {
    flex-direction: column;
  }
}
.legend-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  background: linear-gradient(135deg, #fdfdff, #f3f0ff);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  margin-left: 10px;
  flex-shrink: 0;
}

.icon-green i { color: #28a745; }
.icon-yellow i { color: #ffc107; }
.icon-red i { color: #dc3545; }

.spam-legend {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spam-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-weight: 500;
  color: #333;
  font-size: 15px;
}

.spam-warning {
  margin-top: 12px;
  background: #fff8e1;
  color: #7a5700;
  border: 1px solid #ffe58f;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  line-height: 1.6;
  font-size: 14.5px;
}
.spam-layout-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  direction: rtl; /* כדי שקונטיינר המלל יהיה בצד ימין */
}

.spam-legend-container {
  flex: 1 1 300px;
  max-width: 520px;
  background: #f9f9ff;
  border: 1px solid #d4d9ff;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(120, 87, 255, 0.06);
  font-size: 0.95em;
  color: #333;
}

.spam-legend-container h3 {
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 1.1em;
  color: #4a4a88;
}

.spam-legend {
  list-style: none;
  padding: 0;
  margin: 0;
}
.spam-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-weight: 500;
  font-size: 15px;
}

.legend-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: linear-gradient(135deg, #fdfdff, #f3f0ff);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  margin-left: 10px;
  flex-shrink: 0;
}

.icon-green i { color: #28a745; }
.icon-yellow i { color: #ffc107; }
.icon-red i { color: #dc3545; }

.spam-warning {
  margin-top: 12px;
  background: #fff8e1;
  color: #7a5700;
  border: 1px solid #ffe58f;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  line-height: 1.6;
  font-size: 14.5px;
}

/* מובייל – הצגה אנכית */
@media (max-width: 768px) {
  .spam-layout-container {
    flex-direction: column;
  }
  #domain-metrics-bar {
    order: 1;
    margin-bottom: 20px;
  }
  .spam-legend-container {
    order: 2;
  }
}
/* START: Backlinks Rating Meter Styles */
.backlinks-metrics-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    direction: rtl; /* כדי לשמור על כיווניות עברית */
}

.backlinks-meter-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: #fefeff;
    border: 1px solid #e0e7ff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(120, 87, 255, 0.08);
    padding: 20px;
    min-width: 180px;
    flex: 1;
    max-width: 250px;
    text-align: center;
}

.backlinks-meter-label {
    font-weight: 700;
    font-size: 1.1em;
    color: #4a2ea4;
    margin-bottom: 5px;
}

.backlinks-progress-ring {
    position: relative;
    width: 100px; /* גודל המד */
    height: 100px;
}

.backlinks-progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.backlinks-ring-circle {
    fill: transparent;
    stroke-width: 10; /* עובי הפס */
    transition: stroke-dashoffset 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.backlinks-ring-bg {
    stroke: #eef2ff;
}

.backlinks-ring-bar {
    stroke-linecap: round;
}

.backlinks-ring-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Heebo', sans-serif;
    font-weight: 900;
    font-size: 22px;
    transition: color 0.5s ease;
}

/* Color schemes for different levels */
.backlinks-level-very-low .backlinks-ring-bar { stroke: #e74c3c; } /* Red */
.backlinks-level-very-low .backlinks-ring-value { color: #e74c3c; }

.backlinks-level-low .backlinks-ring-bar { stroke: #ff9800; } /* Orange */
.backlinks-level-low .backlinks-ring-value { color: #ff9800; }

.backlinks-level-medium .backlinks-ring-bar { stroke: #ffc107; } /* Yellow */
.backlinks-level-medium .backlinks-ring-value { color: #ffc107; }

.backlinks-level-high .backlinks-ring-bar { stroke: #28a745; } /* Green */
.backlinks-level-high .backlinks-ring-value { color: #28a745; }

.backlinks-level-very-high .backlinks-ring-bar { stroke: #007bff; } /* Blue */
.backlinks-level-very-high .backlinks-ring-value { color: #007bff; }
/* END: Backlinks Rating Meter Styles */
/* --- END: Upgraded Swal Cancel Button --- */
/* --- START: Font size fix for Last Check Time on Mobile --- */

    /* פונטים - ודא שהם נטענים גם בוורדפרס, אם לא, השתמש בפונטים בטוחים */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;700;800;900&display=swap');

    /* כללים גלובליים לקידוד עברי ואיפוס בסיסי */
/* ============================================= */
    .k-rank-header h1 {
        font-family: 'Heebo', sans-serif;
        font-size: 3.5rem;
        font-weight: 900;
        background: linear-gradient(90deg, #7857ff, #05b2ff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 15px;
        line-height: 1.2;
        text-shadow: 0 5px 15px rgba(120, 87, 255, 0.3);
    }

    .k-rank-header p {
        font-size: 1.3rem;
        color: #5c677d;
        max-width: 800px;
        margin: 0 auto;
        line-height: 1.5;
    }

    .k-rank-features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        margin-top: 40px;
    }

    .k-rank-feature-card {
        background: #ffffff;
        border-radius: 25px;
        padding: 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: 2px solid #e0e7ff;
        overflow: hidden;
        position: relative;
    }

    .k-rank-feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 10% 10%, rgba(120, 87, 255, 0.05) 0%, transparent 50%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .k-rank-feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    }
    .k-rank-feature-card:hover::before {
        opacity: 1;
    }

    .k-rank-icon {
        font-size: 3.5rem;
        margin-bottom: 20px;
        background: linear-gradient(45deg, #7857ff, #05b2ff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 3px 8px rgba(120, 87, 255, 0.3));
    }

    .k-rank-feature-card h3 {
        font-family: 'Heebo', sans-serif;
        font-size: 1.8rem;
        font-weight: 800;
        color: #2c3e50;
        margin-bottom: 15px;
    }

    .k-rank-feature-card p {
        font-size: 1.1rem;
        color: #666;
    }

    /* כפתור קריאה לפעולה */
    .k-rank-cta-button {
        display: inline-flex;
        align-items: center;
        gap: 15px;
        font-family: 'Heebo', sans-serif;
        font-weight: 700;
        font-size: 1.4rem;
        color: #fff;
        background: linear-gradient(135deg, #8a2be2, #007bff);
        border: none;
        border-radius: 50px;
        padding: 18px 40px;
        margin-top: 50px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 12px 30px rgba(120, 87, 255, 0.4);
        text-decoration: none; /* לוודא שזה כפתור-קישור נקי */
        position: relative;
        overflow: hidden;
        z-index: 1;
    }

    .k-rank-cta-button:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 20px 45px rgba(120, 87, 255, 0.6);
        background: linear-gradient(135deg, #007bff, #8a2be2);
    }

    .k-rank-cta-button i {
        font-size: 1.8rem;
        filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
    }

    .k-rank-cta-button::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -100%;
        width: 50%;
        height: 200%;
        background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
        transform: skewX(-25deg);
        transition: left 0.8s ease-in-out;
        z-index: 2;
    }

    .k-rank-cta-button:hover::after {
        left: 150%;
    }

    /* רספונסיביות */
    @media (max-width: 768px) {
        .k-rank-section {
            padding: 30px 15px;
        }
        .k-rank-header h1 {
            font-size: 2.5rem;
        }
        .k-rank-header p {
            font-size: 1.1rem;
        }
        .k-rank-feature-card {
            padding: 25px;
        }
        .k-rank-icon {
            font-size: 3rem;
        }
        .k-rank-feature-card h3 {
            font-size: 1.5rem;
        }
        .k-rank-feature-card p {
            font-size: 1rem;
        }
        .k-rank-cta-button {
            font-size: 1.2rem;
            padding: 15px 30px;
        }
        .k-rank-cta-button i {
            font-size: 1.5rem;
        }
    }

    @media (max-width: 480px) {
        .k-rank-header h1 {
            font-size: 2rem;
        }
        .k-rank-cta-button {
            width: 100%;
            justify-content: center;
        }
    }
#introVideo {
  display: block;
  margin: auto;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 200px; /* זה השולט בגודל הסופי */
  height: auto;
}

@media (max-width: 767px) {
  #introVideo {
    max-width: 300px; /* במובייל נגדיל אם רוצים */
  }
}
#start-record-btn {
  background: none;
  border: none;
  font-size: 20px;
  margin-right: 6px;
  color: #5cb85c;
  cursor: pointer;
}
#start-record-btn:hover {
  color: #4cae4c;
}

/* רספונסיביות עבור מסכים קטנים מ-480px */
@media (max-width: 480px) {
    .k-rank-section {
        padding: 20px 3%; /* ✅ שינוי: הקטנת הפדינג במובייל צפוף */
        margin: 20px auto; /* ✅ שינוי: הקטנת המרווח החיצוני */
    }
    .k-rank-header h1 {
        font-size: 2rem;
    }
    .k-rank-cta-button {
        width: 100%;
        justify-content: center;
    }
    /* ✅ וודא שגם הגריד של הפיצ'רים מתאים את עצמו */
    .k-rank-features-grid {
        grid-template-columns: 1fr; /* פיצ'רים אחד מתחת לשני */
        gap: 20px;
    }
    .k-rank-feature-card {
        padding: 20px; /* הקטנת הריפוד בכרטיסים */
    }
}

.rule-btn {
    font-family: 'Heebo', sans-serif;
    border: none;
    border-radius: 12px;
    padding: 12px 18px; /* שומר על הריפוד הקיים */
    display: flex;
    align-items: center; /* יישור אנכי למרכז */
    justify-content: flex-start; /* ✅ שינוי קריטי: מיישר הכל לימין (בגלל RTL) */
    gap: 10px; /* רווח בין אלמנטים ישירים בתוך הלחצן (מספר ותוכן) */
    font-weight: 700;
    font-size: 16px;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex-grow: 1;
    min-width: 200px;
    text-align: right; /* נשמר */
}

.rule-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0,0,0,0.15);
}

.rule-btn:active {
    transform: translateY(0px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rule-btn .shine {
    position: absolute;
    top: -50%;
    /* מיקום ה-shine ביחס לכפתור - יש לוודא שהוא לא מפריע */
    left: -150%; /* מיקום התחלתי לשמאל */
    width: 40px;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(35deg);
    pointer-events: none;
    transition: left 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.rule-btn:hover .shine {
    left: 150%; /* תנועת ה-shine מימין לשמאל */
}

.rule-content {
    display: flex;
    align-items: center; /* יישור אנכי למרכז */
    gap: 10px; /* רווח בין האייקון לטקסט */
    /* אין צורך ב-justify-content כאן, כי flex-start בלחצן הראשי שולט */
    /* אם יש כאן justify-content: flex-end; תמחק אותו! */
}

.rule-icon {
    font-size: 1.4em;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

.rule-number {
    font-size: 1.8em;
    font-weight: 900;
    opacity: 0.8;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
    flex-shrink: 0; /* וודא שלא יתכווץ */
}
/* CSS לכפתור המתחרים החדש */
.rule-btn-competitors {
    background: linear-gradient(135deg, #ff7e5f, #feb47b); /* צבע כתום-אפרסק */
}
/* Color variations - ללא שינוי */
.rule-btn-speed { background: linear-gradient(135deg, #4285F4, #357ae8); }
.rule-btn-backlinks { background: linear-gradient(135deg, #34A853, #2d9648); }
.rule-btn-health { background: linear-gradient(135deg, #EA4335, #d93d30); }
.rule-btn-ai { background: linear-gradient(135deg, #FBBC05, #f2b202); color: #212121; }
.rule-btn-ai-deep { background: linear-gradient(135deg, #004AAD, #003a88); color: #fff; }

/* Lock icon styling within the new buttons */
.rule-btn .lock-icon {
    font-size: 1em;
    color: #FFD700;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 5px;
    margin-right: -5px; /* Adjust positioning */
    flex-shrink: 0; /* וודא שלא יתכווץ */
}

/* ... שאר הקוד CSS של הלחצנים הנעולים (locked state) ... */

/* ================================================================
   END: CSS FOR "FOUR RULES TO GOOGLE'S SUMMIT" BUTTONS
   ================================================================ */
/* קונטיינר הכפתורים החדש */
.date-controls-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px; /* רווח בין הכפתורים */
    flex-wrap: wrap; /* כדי שיתאימו למסכים קטנים */
    margin-top: 25px; /* מרווח מהכפתור הראשי */
}

/* עיצוב כללי לכפתורי טווח התאריכים */
.date-range-btn {
    background-color: #f0f8ff; /* רקע בהיר */
    color: #4a2ea4; /* צבע טקסט סגול-כחול */
    border: 1px solid #d4d9ff; /* גבול עדין */
    border-radius: 8px; /* פינות מעוגלות */
    padding: 8px 15px;
    font-family: 'Heebo', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* צל עדין */
}

.date-range-btn:hover {
    background-color: #e0e7ff; /* רקע מעט כהה יותר בריחוף */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* כפתור פעיל/נבחר */
.date-range-btn.active {
    background: linear-gradient(135deg, #7857ff, #05b2ff); /* גרדיאנט בולט */
    color: #fff;
    border-color: #7857ff;
    box-shadow: 0 4px 15px rgba(120, 87, 255, 0.3); /* צל מודגש יותר */
}

.date-range-btn.active:hover {
    background: linear-gradient(135deg, #05b2ff, #7857ff); /* גרדיאנט הפוך בריחוף */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(120, 87, 255, 0.4);
}
/* בקובץ ה-CSS שלך, ליד הכללים של #averageRankChartToggle.premium-action-btn */
#averageRankTableToggle.premium-action-btn {
    background: linear-gradient(135deg, #7857ff, #a76bff); /* גרדיאנט סגול-כחול */
    /* שאר הכללים יכולים להיות זהים ל-averageRankChartToggle.premium-action-btn */
    color: white;
    font-family: 'Heebo', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 35px;
    border-radius: 16px;
    border: none;
    box-shadow: 
        0 10px 20px -5px rgba(120, 87, 255, 0.4), /* צל עיקרי */
        0 4px 8px rgba(0,0,0,0.1),               /* צל עדין */
        inset 0 1px 0 rgba(255,255,255,0.2),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

#averageRankTableToggle.premium-action-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 14px 28px -5px rgba(120, 87, 255, 0.5), /* צל מודגש */
        0 8px 12px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #a76bff, #7857ff); /* גרדיאנט הפוך בריחוף */
}

#averageRankTableToggle.premium-action-btn:active {
    transform: translateY(1px) scale(1);
    box-shadow: 0 4px 8px -2px rgba(120, 87, 255, 0.3);
}

#averageRankTableToggle.premium-action-btn .icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
/* בקובץ ה-CSS שלך */
#generateReportBtn.premium-action-btn {
    background: linear-gradient(135deg, #20c997, #17a2b8); /* צבע ירוק-כחול רענן */
    /* ודא שהאייקון מוצג נכון עם `fas fa-file-pdf` */
    /* שאר הכללים יכולים להיות זהים לכפתורי ה-premium-action-btn האחרים */
}

#generateReportBtn.premium-action-btn:hover {
    background: linear-gradient(135deg, #17a2b8, #20c997); /* גרדיאנט הפוך בריחוף */
}
/* כללי Shine-effect זהים יכולים לחול עליו אוטומטית כי הוא משתמש באותו קלאס */
    body { font-family: 'Heebo', sans-serif; padding: 20px; background: #f9f9f9; }
    button { padding: 6px 10px; margin: 4px; cursor: pointer; }
    table { border-collapse: collapse; width: 100%; background: white; }
    th, td { padding: 8px 12px; border: 1px solid #ddd; text-align: center; }
    th { background: #4a2ea4; color: white; }
/* קוד זה יש להוסיף לקובץ STYLE.CSS */
.info-btn {
    background: none;
    border: none;
    color: #a76bff; /* צבע האייקון, בהתאמה לאייקונים האחרים */
    cursor: pointer;
    font-size: 1em; /* גודל האייקון */
    padding: 0;
    margin-right: 5px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.info-btn:hover {
    color: #7857ff; /* שינוי צבע בריחוף */
    transform: scale(1.1); /* הגדלה קלה בריחוף */
}
.google-ads-btn {
  background: linear-gradient(135deg, #4285F4, #34A853);
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  direction: rtl;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* אפקט ריחוף (Hover) */
.google-ads-btn:hover {
  background: linear-gradient(135deg, #34A853, #FBBC05); /* גרדיאנט שונה בריחוף */
  transform: translateY(-2px);
}

/* עיצוב האייקון */
.google-ads-btn i {
  font-size: 18px;
}

.rule-btn .rule-text {
  color: white; /* הגדרה גלובלית לצבע טקסט לבן */
}

/* התאמה מיוחדת ללחצן ה-AI הצהוב */
.rule-btn-ai .rule-text {
  color: #212121;
}


/* ================================================================
   START: CSS FOR "FOUR RULES TO GOOGLE'S SUMMIT" BUTTONS
   ================================================================ */
.google-rules-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
    width: 100%; /* <-- יש להוסיף את השורה הזו */
}
.rule-btn {
    /* הכללים הקיימים של הלחצן עצמו */
    font-family: 'Heebo', sans-serif;
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    display: flex; /* שינוי: שימוש ב-flexbox כדי ליישר */
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    color: white; /* כלל זה קובע את צבע הכפתור, לא את התוכן */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex-grow: 1;
    min-width: 200px;
    text-align: right;
}

.rule-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0,0,0,0.15);
}

.rule-btn:active {
    transform: translateY(0px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rule-btn .shine {
    position: absolute;
    top: -50%;
    left: -150%;
    width: 40px;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(35deg);
    pointer-events: none;
    transition: left 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.rule-btn:hover .shine {
    left: 150%;
}

.rule-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rule-icon {
    font-size: 1.4em;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

.rule-number {
    font-size: 1.8em;
    font-weight: 900;
    opacity: 0.8;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}
.rule-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white !important; /* ✅ הכלל החשוב: מוודא שהטקסט בתוך ה-content תמיד לבן */
}

/* התאמה מיוחדת ללחצן ה-AI הצהוב */
.rule-btn-ai .rule-content {
    color: #212121 !important;
}

/* Color variations */
/* Color variations - גרסאות זהב עם טקסט לבן על רקע כהה וטקסט כהה על רקע בהיר */
.rule-btn-speed { 
    background: linear-gradient(135deg, #FFD700, #FFC700);
    color: #212121 !important;
}
.rule-btn-backlinks { 
    background: linear-gradient(135deg, #FFB900, #E6A800);
    color: #212121 !important;
}
.rule-btn-health { 
    background: linear-gradient(135deg, #FFDB58, #EEDC82);
    color: #212121 !important;
}
.rule-btn-ai { 
    background: linear-gradient(135deg, #FFD700, #FFC700);
    color: #212121 !important;
}
.rule-btn-ai-deep { 
    background: linear-gradient(135deg, #004AAD, #003a88); /* שומרים על רקע כהה */
    color: white !important; /* משנים את הטקסט ללבן */
}
/* Lock icon styling within the new buttons */
.rule-btn .lock-icon {
    font-size: 1em;
    color: #FFD700;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 5px;
    margin-right: -5px; /* Adjust positioning */
}

/* ... (קוד CSS קיים לפני הקטע הזה) ... */

/* Disabled/Locked state - זהו הקטע העיקרי שיטופל */
/* ✅ הקוד המתוקן שחל על כל סוגי הכפתורים הנעולים - שימו לב שהכל מאוחד כאן */
.rule-btn.locked,
.add-domain-btn.locked,
.check-ranks-btn.locked,
#floating-ai-chat-btn.locked { /* ✅ תוספת: לחצן הצ'אט הצף */
    background: linear-gradient(135deg, #b0b0b0, #8c8c8c) !important; /* Force grey */
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none; /* כדי למנוע לחיצות */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important; /* לוודא שאין צללית גרדיאנט אחרת */
    transform: none !important; /* ביטול אנימציית ריחוף */
}

/* בנוסף, נבטל את אפקט הריחוף כשהכפתורים נעולים */
.rule-btn.locked:hover,
.add-domain-btn.locked:hover,
.check-ranks-btn.locked:hover,
#floating-ai-chat-btn.locked:hover { /* ✅ תוספת: לחצן הצ'אט הצף */
    transform: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


/* ... (שאר קוד ה-CSS הקיים אחרי הקטע הזה) ... */

/*
   את החלק הזה אתה צריך למחוק (זהו הכפילות של rule-btn.locked שהייתה קיימת):
@media (max-width: 950px) {
    .google-rules-bar {
        flex-direction: column;
        width: 100%;
    }
    .rule-btn {
        width: 100%;
    }
}
/* Color variations - גרסאות לבן-אפור */
.rule-btn-speed,
.rule-btn-backlinks,
.rule-btn-health,
.rule-btn-ai,
.rule-btn-ai-deep,
.rule-btn-spam {
    background: linear-gradient(135deg, #ffffff, #f0f0f0); /* רקע לבן-אפור אחיד */
    color: #333 !important; /* צבע טקסט כהה לקריאות טובה */
}

/* Lock icon styling within the new buttons */
.rule-btn .lock-icon {
    font-size: 1em;
    color: #FFD700;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 5px;
    margin-right: -5px; /* Adjust positioning */
}

/* כללים כלליים ללחצני הקידום */
.add-keyword-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #FF8C00, #FF7F50);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  direction: rtl;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.add-keyword-btn:hover {
  background: linear-gradient(135deg, #E67300, #E65A00);
  transform: translateY(-2px);
}
.add-keyword-btn i {
  font-size: 18px;
}

.check-ranks-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  direction: rtl;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.check-ranks-btn:hover {
  background: linear-gradient(135deg, #0056b3, #004494);
  transform: translateY(-2px);
}
.check-ranks-btn i {
  font-size: 18px;
}

/* קלאסים עבור גדילה ב-Flexbox */
.add-phrase-btn,
.find-ideas-btn,
.search-volume-btn,
.flex-grow-btn {
    flex-grow: 1;
}
.premium-chart-controls {
    background: linear-gradient(145deg, #f9faff, #e8f0ff); /* זהו הרקע הבהיר של הקונטיינר */
    border-radius: 22px;
    padding: 25px 30px;
    box-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
    text-align: center;
    max-width: 1080px;
    margin: 40px auto;
    animation: fadeIn 0.8s ease-out;

    /* ✅ וודא שהתכונות הבאות קיימות ומעודכנות: */
    display: flex; /* הופך את הקונטיינר להורה Flexbox */
    align-items: center; /* מיישר את הפריטים הישירים אנכית למרכז */
    flex-wrap: wrap; /* כדי שהכפתורים ירדו שורה במובייל */
    gap: 15px; /* רווח בין הכפתורים ואלמנטים נוספים בתוך הקונטיינר */
}

#averageRankChartToggle.premium-action-btn {
    background: linear-gradient(135deg, #007bff, #589bff); /* גרדיאנט כחול עשיר יותר */
    color: white;
    font-family: 'Heebo', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 35px;
    border-radius: 16px;
    border: none;
    /* ✅ שינוי: Box-shadow מתקדם יותר */
    box-shadow: 
        0 10px 20px -5px rgba(0, 123, 255, 0.4), /* צל עיקרי כלפי מטה */
        0 4px 8px rgba(0,0,0,0.1),               /* צל עדין יותר */
        inset 0 1px 0 rgba(255,255,255,0.2),     /* הדגשת קצה עליון */
        inset 0 -1px 0 rgba(0,0,0,0.1);          /* הדגשת קצה תחתון */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* ✅ חדש: צל טקסט עדין */
}

#averageRankChartToggle.premium-action-btn:hover {
    transform: translateY(-4px) scale(1.05);
    /* ✅ שינוי: Box-shadow מודגש יותר בריחוף */
    box-shadow: 
        0 14px 28px -5px rgba(0, 123, 255, 0.5), /* צל עיקרי גדול יותר */
        0 8px 12px rgba(0,0,0,0.15),              /* צל עדין יותר */
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #0056b3, #007bff); /* ✅ שינוי: גרדיאנט מעט שונה בריחוף */
}

#averageRankChartToggle.premium-action-btn:active {
    transform: translateY(1px) scale(1);
    box-shadow: 0 4px 8px -2px rgba(0, 123, 255, 0.3);
}

#averageRankChartToggle.premium-action-btn .icon {
    font-size: 24px; /* ✅ שינוי: הגדלת האייקון במעט */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); /* ✅ חדש: צל לאייקון */
}

#averageRankChartToggle.premium-action-btn .shine-effect {
    position: absolute;
    top: -50%;
    left: -150%;
    width: 40px;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(35deg);
    pointer-events: none;
    transition: left 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

#averageRankChartToggle.premium-action-btn:hover .shine-effect {
    left: 150%;
}


.date-input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.date-input-wrapper label {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #6c7a89;
    margin-bottom: 8px;
}

.date-input-field {
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05);
}

.date-input-field .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #34495e;
    font-size: 16px;
    pointer-events: none;
}

.date-input-field input[type="date"] {
    background: transparent;
    border: none;
    padding: 10px 15px 10px 40px;
    border-radius: 12px;
    color: #2c3e50;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 15px;
    outline: none;
    width: 170px;
}

.silver-action-btn {
    background: linear-gradient(135deg, #e0e0e0, #c0c0c0); /* רקע כסף אחיד */
    color: #444; /* צבע טקסט כהה */
    font-family: 'Heebo', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 35px;
    border-radius: 16px;
    border: none;
    box-shadow: 
        0 10px 20px -5px rgba(0, 0, 0, 0.1), 
        0 4px 8px rgba(0,0,0,0.1),               
        inset 0 1px 0 rgba(255,255,255,0.8),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    text-shadow: none;
}

.silver-action-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 14px 28px -5px rgba(0, 0, 0, 0.2), 
        0 8px 12px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.8),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #dcdcdc, #c0c0c0);
}

.silver-action-btn:active {
    transform: translateY(1px) scale(1);
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.1);
}

.silver-action-btn .icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    color: #333 !important;
}
.tool-btn {
    background: linear-gradient(135deg, #007BFF, #0056b3); /* רקע כחול */
    color: white; /* צבע טקסט לבן */
    border: none; /* הסרת גבולות */
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* צל עדין */
}

.tool-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004494); /* כחול כהה יותר בריחוף */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.tool-btn i {
    color: white !important; /* צבע לבן לאייקונים */
}

.tool-btn .lock-icon {
    color: #FFD700 !important; /* צבע מיוחד לאייקון הנעילה */
}
.keyword-action-btn {
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white !important; /* הוסף !important כדי להבטיח עדיפות */
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.keyword-action-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004494);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.keyword-action-btn i {
    color: white !important;
}

.keyword-action-btn .lock-icon {
    color: #FFD700 !important;
}

.domain-metrics-bar-premium {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
  padding: 18px 24px;
  border-radius: 16px;
  background: linear-gradient(145deg, #f5f3ff, #ffffff);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  font-family: 'Heebo', sans-serif;
  direction: rtl;
  flex-wrap: wrap;
}
.metric-item-simple { /* קלאס חדש כדי למנוע התנגשות */
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}
.metric-item-simple label {
  font-weight: 600;
  font-size: 14px;
  color: #6c63ff;
  margin-bottom: 6px;
}
.metric-item-simple span {
  font-size: 22px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 10px;
  background-color: #f0f0ff;
  min-width: 80px;
  text-align: center;
}

/* ============================================= */
/* עדכון צבעי הכפתורים (Variations)     */
/* ============================================= */

/* 1. מהירות טעינה (כחול) */
.rule-btn-speed { 
    background: linear-gradient(135deg, #4285F4, #357ae8);
    color: white !important;
}

/* 2. קישורים נכנסים (ירוק) */
.rule-btn-backlinks { 
    background: linear-gradient(135deg, #34A853, #2d9648);
    color: white !important;
}

/* 3. בריאות אתר (סגול - ✅ הצבע החדש) */
.rule-btn-health { 
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white !important;
}

/* 4. המלצות AI (צהוב) */
.rule-btn-ai { 
    background: linear-gradient(135deg, #FBBC05, #f2b202);
    color: #212121 !important;
}

/* 5. בדיקת ספאם (אדום - נשאר) */
.rule-btn-spam {
    background: linear-gradient(135deg, #EA4335, #d93d30);
    color: white !important;
}

/* 6. בדיקת AI לאתר (כחול כהה) */
.rule-btn-ai-deep { 
    background: linear-gradient(135deg, #004AAD, #003a88);
    color: white !important;
}.silver-action-btn {
    background: linear-gradient(135deg, #007BFF, #0056b3); /* צבע חדש - כחול */
    color: #fff; /* צבע טקסט לבן */
    font-family: 'Heebo', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 35px;
    border-radius: 16px;
    border: none;
    box-shadow: 
        0 10px 20px -5px rgba(0, 123, 255, 0.4), 
        0 4px 8px rgba(0,0,0,0.1),               
        inset 0 1px 0 rgba(255,255,255,0.2),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.silver-action-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 14px 28px -5px rgba(0, 123, 255, 0.5), 
        0 8px 12px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #0056b3, #004494);
}

.silver-action-btn:active {
    transform: translateY(1px) scale(1);
    box-shadow: 0 4px 8px -2px rgba(0, 123, 255, 0.3);
}

.silver-action-btn .icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    color: white !important;
}

#averageRankTableToggle.silver-action-btn {
    background: linear-gradient(135deg, #7857ff, #a76bff);
    color: white !important;
}

#averageRankTableToggle.silver-action-btn:hover {
    background: linear-gradient(135deg, #a76bff, #7857ff);
    transform: translateY(-4px) scale(1.05);
}

#shareWhatsappBtn.silver-action-btn {
    background: linear-gradient(135deg, #25D366, #1DA851);
    color: white !important;
}
#shareWhatsappBtn.silver-action-btn:hover {
    background: linear-gradient(135deg, #1DA851, #25D366);
    transform: translateY(-4px) scale(1.05);
}
.domain-spam-score {
  font-weight: 700;
  font-size: 1.5em;
  padding: 4px 10px;
  border-radius: 16px;
  background-color: #f0f0f0;
  margin-right: 12px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  color: #555;
  border: 1px solid #ddd;
}

.domain-spam-score:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.domain-spam-score.low {
  background: linear-gradient(135deg, #eafaf1, #d4f2dc);
  color: #28a745;
  border-color: #28a74555;
}
.domain-spam-score.medium {
  background: linear-gradient(135deg, #fff4e5, #ffead6);
  color: #ffc107;
  border-color: #ffc10755;
}
.domain-spam-score.high {
  background: linear-gradient(135deg, #ffe8e6, #ffd6d2);
  color: #dc3545;
  border-color: #dc354555;
}

#generateReportBtn.silver-action-btn {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    color: white;
}
#generateReportBtn.silver-action-btn:hover {
    background: linear-gradient(135deg, #17a2b8, #20c997);
}
#generateReportBtn.silver-action-btn .icon {
    color: white !important;
}

#shareWhatsappBtn.silver-action-btn {
    background: linear-gradient(135deg, #25D366, #1DA851);
    color: white;
}
#shareWhatsappBtn.silver-action-btn:hover {
    background: linear-gradient(135deg, #1DA851, #25D366);
}
#shareWhatsappBtn.silver-action-btn .icon {
    color: white !important;
}

.plans-header {
  text-align: center;
  margin-bottom: 40px;
}

.plans-header h1 {
  font-size: 2.5em;
  font-weight: bold;
  color: #4a2ea4;
  margin: 0;
}

.plans-header p {
  font-size: 1.2em;
  color: #6c757d;
  max-width: 600px;
  margin: 10px auto 0;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.plan-card {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.plan-badge {
  position: absolute;
  top: 15px;
  right: -50px;
  background-color: #ffc107;
  color: white;
  padding: 5px 40px;
  font-weight: bold;
  transform: rotate(45deg);
  font-size: 0.9em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.popular-badge {
  background-color: #ffc107;
}

.ai-badge {
  background-color: #6f42c1;
}

.plan-icon {
  font-size: 3em;
  margin-bottom: 15px;
  color: #4a2ea4;
}

.plan-icon.free-tier { color: #28a745; }
.plan-icon.pro-tier { color: #007bff; }
.plan-icon.popular-tier { color: #fd7e14; }
.plan-icon.ai-tier { color: #6f42c1; }

.plan-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #333;
}

.plan-subtitle {
  font-size: 0.9em;
  color: #6c757d;
  min-height: 40px;
}

.plan-price {
  font-size: 2.5em;
  font-weight: bold;
  color: #4a2ea4;
  margin: 20px 0;
}

.plan-price .period {
  font-size: 0.6em;
  color: #6c757d;
  font-weight: normal;
}

.plan-features {
  text-align: right;
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  flex-grow: 1; /* כדי שכל הפיצ'רים יתפסו גובה שווה */
}

.plan-features li {
  margin-bottom: 10px;
  color: #495057;
  font-size: 1em;
  display: flex;
  align-items: center;
}

.plan-features li .fas {
  color: #28a745;
  margin-left: 10px;
}

.plan-action {
  margin-top: auto; /* דוחף את הלחצנים לתחתית הכרטיס */
}

.plan-choose-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

.plan-choose-btn:hover {
  background-color: #0056b3;
}

.paypal-container-wrapper {
  width: 100%;
}

.trust-seals {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  color: #6c757d;
  font-size: 0.9em;
}

.trust-seals .seal {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* התאמה למסכים קטנים */
@media (max-width: 768px) {
  .plans-header h1 {
    font-size: 2em;
  }
}

/* ==================================== */
/* כללי עיצוב לסרגל הניווט (Navbar)    */
/* ==================================== */
.main-nav {
  background-color: #b49ff5; /* צבע רקע כהה ואחיד */
  padding: 15px 50px; /* ריפוד פנימי, מגדיל את גובה הבר */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* הוספת צל עדין */
  color: white;
  position: relative; /* חשוב למיקום התפריט הנפתח */
}

.main-nav ul {
  list-style-type: none; /* מסיר את התבליטים */
  margin: 0;
  padding: 0;
  display: flex; /* מסדר את הקישורים בשורה אחת */
  justify-content: flex-start; /* יישור לשמאל */
  align-items: center;
}

.main-nav li {
  margin-right: 20px; /* מרווח בין קישורים */
}

.main-nav li:last-child {
  margin-right: 0; /* מרווח מיוחד לקישור האחרון */
}

.main-nav a {
  font-family: 'Heebo', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.1rem;
  color: #fff; /* צבע לבן לטקסט */
  text-decoration: none;
  padding: 10px 15px; /* הגדלת שטח הלחיצה של הקישור */
  border-radius: 5px;
  transition: all 0.3s ease; /* אנימציה חלקה בעת שינוי */
}

.main-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ff6347; /* שינוי צבע בעת ריחוף */
}

/* ==================================== */
/* כללי עיצוב לסרגל הניווט (Navbar)    */
/* ==================================== */
/* שנה את צבע הקישורים כדי שיהיו קריאים על הרקע החדש */
.main-nav a {
  font-family: 'Heebo', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.1rem;
  color: #b49ff5; /* <-- שנה מ-#fff לצבע כהה */
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.main-nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex; /* מסדר את הקישורים בשורה במחשב */
  justify-content: flex-start;
  align-items: center;
}

.main-nav li {
  margin-right: 20px;
}

.main-nav li:last-child {
  margin-right: 0;
}

.main-nav a {
  font-family: 'Heebo', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.main-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ff6347;
}

/* ==================================== */
/* מצב מובייל (Mobile)                  */
/* ==================================== */
.hamburger-menu {
  display: none; /* הלחצן מוסתר כברירת מחדל במסכים גדולים */
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin-bottom: 5px;
}

@media (max-width: 767px) {
  .main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }

  .main-nav ul {
    display: none; /* הקישורים מוסתרים במובייל כברירת מחדל */
  }

  .nav-links.open {
    display: flex; /* הקישורים מוצגים רק כשהמחלקה 'open' קיימת */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%; /* מיקום התפריט בדיוק מתחת לבר הניווט */
    left: 0;
    background-color: #2c3e50;
    z-index: 100;
  }
  
  .hamburger-menu {
    display: block; /* הלחצן מוצג במובייל */
  }

  .nav-links li {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    background-color: transparent;
  }

  .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
}

k-rank-ai-links-section .form-control::placeholder {
    color: #6c757d;  /* צבע אפרפר וברור */
    opacity: 1;      /* ודאות מלאה */
}

/* --- Main Results Card Container --- */
.k-rank-results-card {
    background: #EAEAFF; /* <-- הרקע הבהיר שביקשת */
    border: 1px solid #d8d8f0; /* מסגרת עדינה תואמת */
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06); /* הצללה קלה לעומק */
}

/* --- Header of Each Card --- */
.k-rank-results-card .card-header {
    background: #f7f7ff; /* רקע כותרת מעט לבן יותר להבחנה */
    color: #494d6d; /* צבע טקסט כהה וברור לכותרת */
    font-weight: 700;
    font-size: 1.2em;
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #d8d8f0; /* קו הפרדה עדין */
}

/* --- General Table Styles --- */
.k-rank-results-card .card-body {
    padding: 0;
}

.k-rank-results-card .table {
    margin-bottom: 0;
    color: #343a40; /* צבע טקסט ראשי כהה לכל הטבלה */
}

/* --- Table Header (thead) --- */
.k-rank-results-card .table thead th {
    background-color: transparent; /* רקע שקוף שיקבל את צבע הכותרת */
    color: #6c757d; /* צבע אפרפר-כהה לכותרות העמודות */
    border: none;
    font-weight: 600;
    text-align: center;
}

/* --- Table Rows (tbody) --- */
.k-rank-results-card .table tbody tr {
    border-bottom: 1px solid #e0e0f0; /* קו הפרדה בהיר בין שורות */
}

.k-rank-results-card .table tbody tr:last-child {
    border-bottom: none;
}

.k-rank-results-card .table tbody td {
    border: none;
    vertical-align: middle;
    text-align: center;
    padding: 12px 8px;
}

/* --- Hover effect on Table Rows --- */
.k-rank-results-card .table tbody tr:hover {
    background-color: #e0e0f8; /* רקע מעט כהה יותר במעבר עכבר */
}

/* --- Links in the Table --- */
.k-rank-results-card .table a {
    color: #0056b3; /* צבע כחול סטנדרטי ובולט לקישורים */
    font-weight: bold;
    text-decoration: none;
}
.k-rank-results-card .table a:hover {
    text-decoration: underline; /* קו תחתון במעבר עכבר */
}

/* --- Checkbox Styles --- */
.k-rank-results-card .form-check-input,
.link-checkbox { /* To support both checkbox versions */
    width: 1.3em;
    height: 1.3em;
    background-color: #fff;
    border: 1px solid #adb5bd; /* מסגרת אפורה וברורה */
}

.k-rank-results-card .form-check-input:checked,
.link-checkbox:checked {
    background-color: #0056b3; /* צבע כחול במצב בחור */
    border-color: #0056b3;
}

/* ✅ הוסף את התיקון הבא בסוף הקובץ */
@media (max-width: 768px) {
    .premium-chart-controls .silver-action-btn {
        margin-right: 0 !important;
    }
}
/* הוסף את הקוד הזה לקובץ style.css שלך */

.k-rank-ai-links-section {
  position: relative; /* חובה כדי למקם את הסנפירים יחסית לתיבה */
  z-index: 1; /* מוודא שהגוף הראשי יישאר מעל הסנפירים */
}

/* הגדרות משותפות לשני הסנפירים */
.k-rank-ai-links-section::before,
.k-rank-ai-links-section::after {
  content: '';
  position: absolute;
  width: 60px; /* רוחב הסנפיר */
  height: 110%; /* גובה הסנפיר (קצת יותר גבוה מהגוף) */
  background: #B49FF5; /* צבע הסנפיר - מותאם לצבע הבהיר בגרדיאנט */
  bottom: -10px; /* מיקום אנכי - מעט מתחת לבסיס */
  z-index: -1; /* חשוב מאוד! ממקם את הסנפירים מאחורי הגוף הראשי */
  border-radius: 10px; /* עיגול פינות שיתאים לעיצוב הכללי */
}

/* עיצוב הסנפיר השמאלי */
.k-rank-ai-links-section::before {
  left: -30px; /* הזזה של הסנפיר שמאלה */
  transform: skewY(30deg); /* יצירת זווית אלכסונית */
}

/* עיצוב הסנפיר הימני */
.k-rank-ai-links-section::after {
  right: -30px; /* הזזה של הסנפיר ימינה */
  transform: skewY(-30deg); /* יצירת זווית אלכסונית נגדית */
}

.premium-chart-controls {
    /* ✅ החלק המעודכן */
background: linear-gradient(135deg, #E6E0FF, #D8CCFF);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3); /* צל מודגש שמתאים לרקע הכהה */

    /* מאפיינים קיימים שנשארים */
    border-radius: 22px;
    padding: 25px 30px;
    text-align: center;
    max-width: 1080px;
    margin: 40px auto;
    animation: fadeIn 0.8s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}
.k-rank-ai-links-section .form-control::placeholder {
  color: white;   /* צובע את טקסט ה-placeholder בלבן */
  opacity: 1;     /* חשוב! מבטיח שהטקסט יהיה לבן אטום ולא שקוף למחצה */
}
/* ============================================= */
/* עיצוב סרגל עליון (Header) חדש ומעוצב         */
/* ============================================= */

/* 1. עיצוב ה-Header הראשי */
#main-header {
  position: relative;
  padding: 15px 0; /* ריפוד פנימי */
  background: linear-gradient(135deg, #b49ff5, #34495e); /* רקע גרדיאנט כהה */
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

/* 2. סידור התוכן בתוך ה-Header */
#main-header .header-content {
  display: flex;
  justify-content: space-between; /* דוחף את הלוגו והתפריט לקצוות */
  align-items: center; /* ממקם אנכית במרכז */
  width: 100%;
  padding: 0 20px; /* ריפוד פנימי מהצדדים */
}

/* 3. עיצוב הלוגו */
#main-header .header-logo img {
  max-height: 25px; /* גובה מקסימלי ללוגו */
}

/* 4. עיצוב כפתור ההתחברות */
#main-header .header-auth {
  position: absolute;
  top: 50%;
  right: 30px; /* ✅ התיקון: שינינו ל-right */
  transform: translateY(-50%);
}


/* ============================================= */
/* עיצוב פופ-אפ מתקדם למד ציון ספאם        */
/* ============================================= */

/* קונטיינר ראשי שמארגן את המד והמקרא */
.spam-layout-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  direction: rtl; /* כדי שהמקרא יהיה בצד ימין */
}

/* קונטיינר למקרא (ההסברים) */
.spam-legend-container {
  flex: 1 1 300px; /* גמישות בגודל */
  max-width: 520px;
  background: #f9f9ff;
  border: 1px solid #d4d9ff;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(120, 87, 255, 0.06);
  font-size: 0.95em;
  color: #333;
}

.spam-legend-container h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 1.1em;
  color: #4a4a88;
}

.spam-legend {
  list-style: none;
  padding: 0;
  margin: 0;
}
.spam-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-weight: 500;
  font-size: 15px;
}

.legend-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: linear-gradient(135deg, #fdfdff, #f3f0ff);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  margin-left: 10px;
  flex-shrink: 0;
}

.icon-green i { color: #28a745; }
.icon-yellow i { color: #ffc107; }
.icon-red i { color: #dc3545; }

.spam-warning {
  margin-top: 12px;
  background: #fff8e1;
  color: #7a5700;
  border: 1px solid #ffe58f;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  line-height: 1.6;
  font-size: 14.5px;
}

/* הקונטיינר של המד העגול */
.spam-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.spam-progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.spam-ring-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Heebo', sans-serif;
    font-weight: 900;
    font-size: 28px;
    transition: color 0.5s ease;
}

.spam-progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* מתחיל את האנימציה מלמעלה */
}

.spam-ring-circle {
    fill: transparent;
    stroke-width: 12;
    /* אנימציה חלקה למילוי הפס */
    transition: stroke-dashoffset 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.spam-ring-bg {
    stroke: #eef2ff;
}

.spam-ring-bar {
    stroke-linecap: round;
}

/* הגדרות צבע דינמיות לפי רמת הספאם */
.spam-score-low .spam-ring-bar { stroke: #28a745; }
.spam-score-low .spam-ring-value { color: #28a745; }

.spam-score-medium .spam-ring-bar { stroke: #ffc107; }
.spam-score-medium .spam-ring-value { color: #d9a406; }

.spam-score-high .spam-ring-bar { stroke: #dc3545; }
.spam-score-high .spam-ring-value { color: #dc3545; }

.spam-circle-label {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    margin-top: 0;
}

/* התאמה למובייל */
@media (max-width: 768px) {
  .spam-layout-container {
    flex-direction: column-reverse; /* המד יהיה מעל המקרא */
  }
}
/* ============================================= */
/* עיצוב סרגל עליון למידע משתמש (User Info Bar) */
/* ============================================= */

/* 1. הגדרת גודל ברירת המחדל (למחשב) */
.responsive-video {
  max-width: 50px; /* ⬅️ שנה כאן לגודל הרצוי במחשב */
  width: 50%;     /* מוודא שהסרטון לא יחרוג מהאלמנט שעוטף אותו */
  height: auto;
  display: block;
  margin: 20px auto; /* ממקם במרכז ומוסיף רווח */
  border-radius: 15px;
}

/* 2. הגדרת גודל למובייל (חל על מסכים ברוחב 768px ומטה) */
@media (max-width: 768px) {
  .responsive-video {
    max-width: 90%; /* ⬅️ שנה כאן לגודל הרצוי במובייל (למשל 90% מרוחב המסך) */
  }
}
/* ============================================= */
/* תצוגת כרטיסים רספונסיבית לטבלאות בפופ-אפים */
/* ============================================= */

@media (max-width: 768px) {

  /* 1. מסתירים את כותרות הטבלה המקוריות במובייל */
  .table-responsive .premium-swal-table thead {
    display: none;
  }

  /* 2. הופכים כל שורת טבלה ל"כרטיס" נפרד */
  .table-responsive .premium-swal-table tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.5rem;
    background-color: #f8fafc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  }

  /* 3. כל תא בטבלה הופך לשורה בתוך הכרטיס */
  .table-responsive .premium-swal-table td {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 45%; /* יוצר מקום לכותרת בצד שמאל */
    text-align: right;
    position: relative;
    border-bottom: 1px dashed #e2e8f0;
    white-space: normal;
    overflow-wrap: break-word;
    color: #1e293b;
    font-weight: 600; /* הדגשת הנתונים */
  }

  .table-responsive .premium-swal-table tr td:last-child {
    border-bottom: none; /* מסירים את הקו מהשורה האחרונה בכרטיס */
  }

  /* 4. מציגים את הכותרת (מה-data-label) לצד כל נתון */
  .table-responsive .premium-swal-table td::before {
    content: attr(data-label) ": "; /* מוסיף נקודתיים אחרי הכותרת */
    position: absolute;
    left: 1rem;
    width: 40%;
    text-align: left;
    font-weight: 500; /* פונט רגיל לכותרת */
    color: #64748b; /* צבע אפרפר לכותרת */
    white-space: nowrap;
  }
}
/* ============================================= */
/* עיצוב כרטיסים רספונסיביים לתוצאות כלים      */
/* ============================================= */

/* קונטיינר ראשי שמכיל את כל הכרטיסים */
.results-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    direction: rtl;
    
    /* --- הוספנו את השורה הזו --- */
    max-width: 450px; /* מגביל את הרוחב המקסימלי במחשב */
    margin: 0 auto; /* ממקם את הקונטיינר במרכז החלון הקופץ */
}

/* עיצוב הכרטיס הבודד */
.keyword-result-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* כותרת הכרטיס (שם הביטוי + צ'קבוקס) */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.keyword-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #4a2ea4;
    margin: 0;
}

.select-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9em;
    color: #334155;
}

/* גוף הכרטיס (הנתונים) */
.card-body {
    padding: 1rem;
}

/* כל שורת נתונים (למשל, נפח חיפוש) */
.data-point {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eef2ff;
}

.data-point:last-child {
    border-bottom: none;
}

.data-point .label {
    font-weight: 500;
    color: #64748b;
}

.data-point .value {
    font-weight: 600;
    color: #1e293b;
}

/* במובייל, הגריד אוטומטית הופך לטור אחד */
@media (max-width: 768px) {
    .results-cards-container {
        grid-template-columns: 1fr; /* כרטיס אחד בכל שורה */
    }
}
/* ==== DR/PR Result Modal (K-BOT) ==== */
.kdrpr-wrap{direction:rtl;text-align:center}
.kdrpr-domain{font-weight:800;color:#334155;margin-top:6px}
.kdrpr-meters{display:flex;gap:22px;justify-content:center;flex-wrap:wrap;margin:14px 0 6px}
.k-meter{display:flex;flex-direction:column;align-items:center;min-width:140px}
.k-meter .ring::after{content:'';position:absolute;inset:12px;border-radius:50%;background:#fff;
  box-shadow:inset 0 0 0 1px #e0e7ff}
.k-meter .value{position:absolute;inset:0;display:grid;place-items:center;
  font:800 22px/1 'Heebo',sans-serif;color:#4a2ea4}
.k-meter .label{margin-top:10px;font-weight:700;color:#334155}
.kdrpr-updated{margin-top:8px;font-size:12px;color:#667085}
.kdrpr-explain{margin-top:10px;text-align:right;font-size:13px;color:#475569;line-height:1.5}
.kdrpr-note{font-size:12px;color:#6b7280}

/* מספר גולמי מתחת למד */
.k-meter .raw{
  margin-top:6px;
  font-size:12px;
  color:#6b7280;
}
.k-meter .raw b{
  font-weight:800;
  color:#334155;
}
/* ==== DR/PR Result Modal (K-RANK AI) ==== */
.kdrpr-wrap{direction:rtl;text-align:center}
.kdrpr-domain{font-weight:800;color:#334155;margin-top:6px}
.kdrpr-meters{display:flex;gap:22px;justify-content:center;flex-wrap:wrap;margin:14px 0 6px}
.k-meter{display:flex;flex-direction:column;align-items:center;min-width:140px}

/* הטבעת */
.k-meter .ring{
  width:130px;height:130px;border-radius:50%;
  background:conic-gradient(#eef2ff 360deg, #eef2ff 0);
  position:relative;display:grid;place-items:center;
  box-shadow:0 8px 24px rgba(0,0,0,.08)
}
.k-meter .ring::after{
  content:'';position:absolute;inset:12px;border-radius:50%;background:#fff;
  box-shadow:inset 0 0 0 1px #e0e7ff
}

/* המספר בתוך הטבעת (אחוזים) */
.k-meter .value{
  position:absolute;inset:0;display:grid;place-items:center;
  font:900 24px/1 'Heebo',sans-serif;color:#4a2ea4
}

/* תווית מתחת לטבעת */
.k-meter .label{margin-top:10px;font-weight:700;color:#334155}

/* מספר גולמי מתחת למד (0–1000) */
.k-meter .raw{margin-top:6px;font-size:12px;color:#6b7280}
.k-meter .raw b{font-weight:800;color:#334155}

.kdrpr-updated{margin-top:8px;font-size:12px;color:#667085}
.kdrpr-explain{margin-top:10px;text-align:right;font-size:13px;color:#475569;line-height:1.5}
.kdrpr-note{font-size:12px;color:#6b7280}
.rounded-popup{border-radius:16px}
@media (max-width:480px){.kdrpr-meters{gap:16px}}
.k-meter .ring{
  width:130px;height:130px;border-radius:50%;
  background:conic-gradient(#eef2ff 360deg, #eef2ff 0);
  position:relative;display:grid;place-items:center;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}
.k-meter .ring::after{
  content:'';position:absolute;inset:12px;border-radius:50%;background:#fff;
  box-shadow:inset 0 0 0 1px #e0e7ff;
  z-index:0;                /* ✅ שיהיה מתחת לטקסט */
}
.k-meter .value{
  position:relative;        /* ✅ */
  z-index:1;                /* ✅ מעל ::after */
  font:900 24px/1 'Heebo',sans-serif;color:#4a2ea4;
  display:grid;place-items:center;inset:0;
}
/* style.css */

/* --- START: Upgraded Spam Score Modal --- */
.spam-layout-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  direction: rtl; 
}

.spam-legend-container {
  flex: 1 1 300px;
  max-width: 520px;
  background: #f9f9ff;
  border: 1px solid #d4d9ff;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(120, 87, 255, 0.06);
  font-size: 0.95em;
  color: #333;
}

.spam-legend-container h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 1.1em;
  color: #4a4a88;
}

.spam-legend {
  list-style: none;
  padding: 0;
  margin: 0;
}
.spam-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-weight: 500;
  font-size: 15px;
}

.legend-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: linear-gradient(135deg, #fdfdff, #f3f0ff);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  margin-left: 10px;
  flex-shrink: 0;
}

.icon-green i { color: #28a745; }
.icon-yellow i { color: #ffc107; }
.icon-red i { color: #dc3545; }

.spam-warning {
  margin-top: 12px;
  background: #fff8e1;
  color: #7a5700;
  border: 1px solid #ffe58f;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  line-height: 1.6;
  font-size: 14.5px;
}

.spam-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.spam-progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.spam-ring-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Heebo', sans-serif;
    font-weight: 900;
    font-size: 28px;
    transition: color 0.5s ease;
}

.spam-progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.spam-ring-circle {
    fill: transparent;
    stroke-width: 12;
    transition: stroke-dashoffset 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.spam-ring-bg {
    stroke: #eef2ff;
}

.spam-ring-bar {
    stroke-linecap: round;
}

.spam-score-low .spam-ring-bar { stroke: #28a745; }
.spam-score-low .spam-ring-value { color: #28a745; }

.spam-score-medium .spam-ring-bar { stroke: #ffc107; }
.spam-score-medium .spam-ring-value { color: #d9a406; }

.spam-score-high .spam-ring-bar { stroke: #dc3545; }
.spam-score-high .spam-ring-value { color: #dc3545; }

.spam-circle-label {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    margin-top: 0;
}

.swal2-popup.rounded-popup {
  border-radius: 24px !important;
}

@media (max-width: 768px) {
  .spam-layout-container {
    flex-direction: column-reverse; 
  }
}
/* style.css */

@media (max-width: 480px) {
  /* 1. הופך כל שורת נתונים לטור (תווית מעל הערך) */
  .data-point {
    flex-direction: column;
    align-items: flex-start; /* יישור לימין (בהתאם ל-RTL) */
    gap: 4px; /* רווח קטן בין התווית לערך */
    padding-top: 10px;
    padding-bottom: 10px;
  }

  /* 2. מקטין מעט את התווית כדי לתת דגש לערך */
  .data-point .label {
    font-size: 0.85em;
    color: #64748b;
  }

  /* 3. מגדיל ומדגיש את הערך */
  .data-point .value {
    font-size: 1.15em;
    font-weight: 700;
  }

  /* 4. מוודא שהכותרת והצ'קבוקס בכרטיס לא נדחסים מדי */
  .card-header {
    flex-wrap: wrap;
    gap: 8px;
  }
}
.competitor-tag {
    display: inline-flex;
    align-items: center;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 14px;
}
.remove-competitor-btn {
    background: none;
    border: none;
    font-size: 18px;
    margin-right: 8px;
    cursor: pointer;
    color: #6c757d;
    line-height: 1;
}
.remove-competitor-btn:hover {
    color: #dc3545;
}
/*
===============
עיצוב משודרג לתגיות המתחרים
===============
*/

/* עיצוב הרשימה שמכילה את התגיות */
#competitors-list {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* רווח בין התגיות */
}

/* עיצוב התגית עצמה */
.competitor-tag {
    display: inline-flex;
    align-items: center;
    background-color: #f0f2f5; /* רקע אפרפר בהיר */
    border: 1px solid #dfe4ea; /* מסגרת עדינה */
    border-radius: 20px;       /* פינות מעוגלות לחלוטין */
    padding: 6px 8px 6px 14px; /* ריווח פנימי */
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.competitor-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* עיצוב כפתור המחיקה (ה-X) */
.remove-competitor-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 8px; /* רווח בין הטקסט לכפתור */
    background-color: #ced4da;
    border: none;
    border-radius: 50%; /* עיגול מושלם */
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* עיצוב כפתור המחיקה במעבר עכבר */
.remove-competitor-btn:hover {
    background-color: #dc3545; /* צבע אדום למחיקה */
    transform: scale(1.1);
}
/*
=================================
CSS רספונסיבי לטבלת המתחרים
=================================
*/

/* החל מרוחב 768px ומטה, הפעל את העיצוב הרספונסיבי */
@media screen and (max-width: 768px) {
    /* נותן לחלון הקופץ יותר מקום במובייל */
    .competitor-swal {
        width: 95% !important;
    }
    
    .competitor-table-wrapper table {
        border: 0; /* הסרת המסגרת הראשית של הטבלה */
    }

    .competitor-table-wrapper thead {
        /* הסתר את הכותרת המקורית של הטבלה, היא לא נחוצה במובייל */
        display: none;
    }

    .competitor-table-wrapper tr {
        display: block; /* הפוך כל שורה לבלוק (כרטיס) */
        border-radius: 8px;
        border: 1px solid #dee2e6;
        margin-bottom: 1em; /* רווח בין הכרטיסים */
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .competitor-table-wrapper td {
        display: block; /* הצג כל תא בשורה נפרדת */
        text-align: right; /* יישר את התוכן לימין */
        padding-left: 50%; /* צור מרווח בצד שמאל עבור התווית */
        position: relative;
        border-bottom: 1px solid #eee;
    }
    
    .competitor-table-wrapper td:last-child {
        border-bottom: 0;
    }

    /* זה הקסם: הצגת התווית (שם הדומיין) לפני התוכן */
    .competitor-table-wrapper td::before {
        content: attr(data-label); /* קח את הטקסט מהמאפיין data-label */
        position: absolute;
        left: 10px; /* מקם את התווית בצד שמאל */
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #495057;
    }
    
    /* עיצוב מיוחד לשורת הכותרת של כל כרטיס */
    .competitor-table-wrapper td:first-child {
        padding-left: 10px; /* אין צורך בריווח גדול לתא הכותרת */
        background-color: #f8f9fa;
        font-size: 1.1em;
        font-weight: bold;
    }

    .competitor-table-wrapper td:first-child::before {
        /* הסתר את התווית עבור תא הכותרת */
        display: none;
    }
}
/*
=================================
עיצוב למד ספאם עגול וממורכז
=================================
*/

.spam-popup-content {
    text-align: center; /* יישור כל התוכן למרכז */
}

.spam-ring-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 1rem auto; /* רווח ומרכוז אוטומטי */
}

.spam-ring {
    transform: rotate(-90deg); /* התחלת המד מלמעלה */
}

.spam-ring-bg, .spam-ring-bar {
    fill: none;
    stroke-width: 10;
}

.spam-ring-bg {
    stroke: #e6e6e6; /* צבע הרקע של המד */
}

.spam-ring-bar {
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out;
}

.spam-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8em;
    font-weight: 800;
}

/* צבעים דינמיים למד */
.spam-score-low { color: #28a745; stroke: #28a745; } /* ירוק */
.spam-score-medium { color: #ffc107; stroke: #ffc107; } /* צהוב */
.spam-score-high { color: #dc3545; stroke: #dc3545; } /* אדום */

.spam-explanation p {
    margin-top: 1rem;
    font-size: 1.1em;
    line-height: 1.6;
}



/*
=================================
CSS משופר לפופ-אפ ספאם (דסקטופ + מובייל)
=================================
*/

/* עיצוב הקונטיינר הראשי של התוכן בפופ-אפ */
.spam-popup-content {
    display: flex;             /* הפעלת Flexbox */
    flex-direction: column;    /* סדר את הפריטים בטור (אחד מתחת לשני) */
    align-items: center;       /* מרכז את כל הפריטים אופקית */
}

/* עיצוב המד העגול */
.spam-ring-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 1rem auto;
}

.spam-ring {
    transform: rotate(-90deg);
}

.spam-ring-bg, .spam-ring-bar {
    fill: none;
    stroke-width: 10;
}

.spam-ring-bg {
    stroke: #e6e6e6;
}

.spam-ring-bar {
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out;
}

.spam-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8em;
    font-weight: 800;
}

/* צבעים דינמיים למד לפי ציון */
.spam-score-low { color: #28a745; stroke: #28a745; }
.spam-score-medium { color: #ffc107; stroke: #ffc107; }
.spam-score-high { color: #dc3545; stroke: #dc3545; }

/* עיצוב טקסט ההסבר הראשי */
.spam-explanation p {
    margin-top: 1rem;
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
}

/* עיצוב מדריך רמות הסיכון */
/* --- עיצוב מדריך רמות סיכון (עם גרדיאנט) --- */
.spam-risk-guide {
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #444; /* קו הפרדה כהה יותר */
    text-align: right;
    font-size: 0.9em;
}

/* ✅ כאן נמצא השינוי המרכזי לכותרת */
.spam-risk-guide h4 {
    font-weight: 800; /* הגברת הדגשה */
    font-size: 1.1em;
    /* הגדרת רקע גרדיאנט */
    background: linear-gradient(90deg, #7857ff, #05b2ff);
    /* חיתוך הרקע לצורת הטקסט */
    -webkit-background-clip: text;
    background-clip: text;
    /* הפיכת צבע הטקסט לשקוף כדי שהרקע ייראה */
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.spam-risk-guide ul {
    list-style: none;
    padding-right: 0;
    margin: 0.8rem 0 0 0;
}

.spam-risk-guide li {
    margin-bottom: 0.5rem;
    padding-right: 1.5rem;
    position: relative;
    color: #e0e0e0; /* שינוי צבע הטקסט ללבן-אפרפר */
}

/* אייקונים צבעוניים (נשאר ללא שינוי) */
.spam-risk-guide li.low::before { content: '🟢'; }
.spam-risk-guide li.medium::before { content: '🟡'; }
.spam-risk-guide li.high::before { content: '🔴'; }

.spam-risk-guide li::before {
    position: absolute;
    right: 0;
    top: 0;
}

/* ✅ עיצוב מחדש לטיפ התחתון (מותאם לרקע כהה) */
.disavow-tip {
    margin-top: 1.5rem;
    background-color: rgba(120, 87, 255, 0.1); /* רקע סגלגל שקוף */
    border-left: 4px solid #7857ff; /* פס הדגשה בצד */
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    color: #e0e0e0; /* צבע טקסט בהיר */
}
/* START: Premium Keyword Action Icons */
.keyword-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.keyword-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(120deg, #fdfdff 60%, #f3f0ff 100%);
  box-shadow: 0 4px 16px #a76bff1a, 0 1px 0 #fff;
  margin: 0 2px;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  border: none;
  padding: 0;
}

/* כלל מאוחד לאייקוני SVG ו-Font Awesome */
.keyword-action-icon svg,
.keyword-action-icon i {
  transition: all 0.25s ease;
}

/* עיצוב ספציפי לאייקוני SVG */
.keyword-action-icon svg {
  width: 22px;
  height: 22px;
  stroke: #7857ff;
  stroke-width: 2;
  filter: drop-shadow(0 2px 4px #b2a3ff55);
}

/* עיצוב ספציפי לאייקוני Font Awesome (i) */
.keyword-action-icon i {
  font-size: 1.2em;
  color: #7857ff;
}

/* עיצוב מאוחד למעבר עכבר (hover) על הכפתור */
.keyword-action-icon:hover {
  background: linear-gradient(120deg, #a76bff 0%, #05b2ff 100%);
  box-shadow: 0 8px 24px #a76bff55;
  transform: translateY(-3px) scale(1.05);
}

/* עיצוב מאוחד למעבר עכבר על האייקונים עצמם */
.keyword-action-icon:hover svg,
.keyword-action-icon:hover i {
  color: #fff;
  stroke: #fff;
  filter: drop-shadow(0 2px 8px rgba(255,255,255,0.5));
}

/* עיצוב ייחודי לכפתור המחיקה במעבר עכבר */
.keyword-action-icon.delete:hover {
  background: linear-gradient(120deg, #ff6b6b 0%, #ff8e8e 100%);
  box-shadow: 0 8px 24px #ff6b6b55;
}
/* END: Premium Keyword Action Icons */
/* ========================================================================= */
/* ============================================= */
/* --- בקרים עגולים (דוחות ותובנות AI) --- */
/* ============================================= */
.circular-controls-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    margin-top: 80px;
    min-height: 450px;
    background: linear-gradient(145deg, #1e2038, #2a2c4a);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .circular-controls-container {
        margin-top: 40px;
        min-height: 350px;
    }
}
.control-stage {
    position: relative;
    width: 250px;
    height: 250px;
    background: #252742;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 25px rgba(0,0,0,0.5), 0 5px 15px rgba(0,0,0,0.2);
    border: 3px solid #33365a;
}

.central-icon {
    font-size: 37px;
    color: #8a74ff;
    text-shadow: 0 0 15px #8a74ff;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.control-button-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin-top: -30px;
    margin-left: -30px;
    --angle: calc(var(--i) * 90deg);
    transform: rotate(var(--angle)) translate(150px) rotate(calc(-1 * var(--angle)));
}

.control-button {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, #33365a, #252742);
    border: 2px solid #4a4e7a;
    color: #b0a5ff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.control-button:hover {
    background: #8a74ff;
    color: #fff;
    border-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 20px #8a74ff;
}

.control-button .lock-icon {
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 16px;
    color: #ffd700;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    padding: 4px;
}

.control-button:disabled {
    cursor: not-allowed;
    background: #2a2c4a;
    color: #55587a;
    border-color: #33365a;
}
.control-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

.circular-controls-title {
    font-family: 'Heebo', sans-serif;
    font-weight: 600;
    font-size: 1.8em;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    margin-top: 220px;
    position: absolute;
}

.date-controls-wrapper {
    margin-top: 15px;
    padding-top: 270px;
}

/* ============================================= */
/* --- עיצוב משודרג לכרטיסיות תוצאות מחקר --- */
/* ============================================= */

/* קונטיינר ראשי שמכיל את כל הכרטיסים */
.results-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    direction: rtl;
    padding: 1rem;
}

/* עיצוב הכרטיס הבודד */
.keyword-result-card {
    background: #ffffff;
    border: 1px solid #e0e7ff;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(120, 87, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.keyword-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(120, 87, 255, 0.15);
}

/* כותרת הכרטיס */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f7f9ff, #eef2ff);
    border-bottom: 1px solid #e0e7ff;
}

.keyword-title {
    font-size: 1.25em;
    font-weight: 800;
    color: #4a2ea4;
    margin: 0;
}

/* גוף הכרטיס */
.card-body {
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr; /* עמודה אחת כברירת מחדל */
    gap: 1rem;
}

/* כל שורת נתונים */
.data-point {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background-color: #f8fafc;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #eef2ff;
}

.data-point .label {
    font-size: 0.9em;
    font-weight: 500;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.data-point .value {
    font-size: 1.1em;
    font-weight: 700;
    color: #1e293b;
}

/* עיצוב מיוחד לשורת התחרות */
.data-point.competition-data {
    align-items: center;
}

.competition-bar-container {
    flex-grow: 1;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.competition-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
}

.competition-bar-fill.low { background-color: #28a745; }
.competition-bar-fill.medium { background-color: #ffc107; }
.competition-bar-fill.high { background-color: #dc3545; }

.competition-value {
    min-width: 40px;
    text-align: left;
}
/* ============================================= */
/* --- עיצוב טקסט גרדיאנט לכותרות --- */
/* ============================================= */
.gradient-text {
    background: linear-gradient(90deg, #8B5CF6, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-weight: 800; /* מוודא שהכותרת מודגשת */
}
/* ============================================= */
/* --- עיצוב חלק תחתון (פוטר) לתוצאות פופ-אפ --- */
/* ============================================= */
.results-summary-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #eef2ff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* הקוד ל-spam-circle-container וילדיו כבר קיים בקובץ ה-CSS שלך,
   ולכן המד החדש ייראה ויתנהג בדיוק כמו מד הספאם. */
   /* הגדלת רוחב הפופ-אפ במחשב כדי לתת יותר מקום לכרטיסיות */
@media (min-width: 769px) {
    .swal2-popup {
        width: 80vw !important;
        max-width: 1200px !important;
    }
}

/* הסתרת ה-header הישן כדי למנוע כפילות, תוך שמירה על פונקציונליות האימות */
#main-header {
    display: none !important;
}

/* ===== SEO Command Dock ===== */
.seo-dock{
  --violet: #8a74ff; --indigo:#6366f1; --cyan:#22d3ee;
  --fg:#e8eaff; --muted:#aab; --bg:#0b0f1a;
  border: 1px solid #ffffff22;
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(138,116,255,.14), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    #0c1020;
  color: var(--fg);
  border-radius: 18px;
  padding: 14px;
  box-shadow: inset 0 0 0 1px #a892ff22, 0 14px 40px #0008, 0 40px 90px rgba(99,102,241,.2);
  backdrop-filter: blur(10px) saturate(120%);
}

.seo-dock .dock-header{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding: 4px 6px 10px;
}
.seo-dock .title{
  font-weight:800; letter-spacing:.2px;
  background: linear-gradient(90deg,var(--violet),var(--indigo));
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow: 0 0 24px rgba(99,102,241,.45);
}
.seo-dock .dock-metrics{ display:flex; gap:8px; flex-wrap:wrap; }
.seo-dock .chip{
  font-size:12px; font-weight:700; padding:6px 10px; border-radius:999px;
  border:1px solid #ffffff2a;
  background:linear-gradient(180deg,#ffffff14,#ffffff06);
  box-shadow: inset 0 0 0 1px #ffffff1a;
}
.seo-dock .chip.warn{ color:#ffd6a6; border-color:#ffa94d55; }
.seo-dock .chip.ok{ color:#b8ffcf; border-color:#34d39955; }

.seo-dock .dock-actions{
  display:grid; gap:10px;
  grid-template-columns: repeat(6, minmax(0,1fr));
}
@media (max-width: 900px){
  .seo-dock .dock-actions{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .seo-dock .dock-actions{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.dock-btn{
  position:relative; display:grid; place-items:center; gap:8px;
  padding:16px 10px; text-align:center; border-radius:14px;
  border:1px solid #ffffff2a; color:var(--fg); cursor:pointer;
  background:linear-gradient(180deg,#ffffff15,#ffffff07);
  box-shadow: 0 10px 28px #0008, inset 0 0 0 1px #ffffff1a;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.dock-btn:hover{ transform: translateY(-2px) scale(1.02); border-color:#bbaeff55; box-shadow:0 16px 40px rgba(107,70,193,.28); }
.dock-btn:active{ transform: translateY(0) scale(.98); }
.dock-btn:focus{ outline:2px solid #9ad7ff; outline-offset:3px; }

.dock-btn svg{ width:26px; height:26px; }
.dock-btn .lbl{ font-weight:700; font-size:13px; color:#dfe3ff; }

.badge{
  position:absolute; top:8px; inset-inline-end:8px;
  font-size:11px; font-weight:800; padding:3px 7px; border-radius:999px;
  border:1px solid #ffffff30;
  background:linear-gradient(180deg,#ffffff20,#ffffff10);
  box-shadow: inset 0 0 0 1px #ffffff1a, 0 2px 10px #0006;
}
.badge.ok{ color:#b8ffcf; border-color:#34d39955; }

/* קלאס חדש להקטנת כפתורים בפריסת Flex */
.btn-compact {
    flex-grow: 0; /* מונע מהכפתור להתרחב */
    padding-left: 15px;  /* מקטין מעט את הריווח האופקי */
    padding-right: 15px; /* מקטין מעט את הריווח האופקי */
}

/* ============================================= */
/* --- הפיכת כל כפתורי הפעולות לסגולים --- */
/* ============================================= */
.google-rules-bar .rule-btn {
    background: linear-gradient(135deg, #8e44ad, #9b59b6) !important;
    color: white !important;
}

/* בגלל שהגדרנו צבע טקסט שחור לכפתור ה-AI, 
   נוודא שגם הוא יהיה לבן במצב הזה 
*/
.google-rules-bar .rule-btn-ai .rule-content {
    color: white !important;
}
/* ============================================= */
/* --- שדרוג עיצוב שורת הנתונים (ביטויים) --- */
/* ============================================= */

/* הקונטיינר החדש שמחליף את העיצוב הישן */
.stats-grid {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2ff;
    display: grid;
    /* גריד רספונסיבי שמתאים את עצמו לגודל המסך */
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

/* כרטיסיית המידע הבודדת */
.stat-chip {
    background: #f8fafc;
    border: 1px solid #eef2ff;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    transition: background-color 0.2s ease;
}

.stat-chip:hover {
    background: #f1f5f9;
}

/* התווית (למשל, "דסקטופ") */
.stat-chip .label {
    font-size: 0.8em;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* הערך המספרי (המיקום או נפח החיפוש) */
.stat-chip .value {
    font-size: 1.4em;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

/* צבעים ייחודיים לאייקונים */
.stat-chip .label .fa-desktop { color: #3b82f6; }
.stat-chip .label .fa-mobile-alt { color: #8b5cf6; }
.stat-chip .label .fa-search { color: #10b981; }

/* ודואגים שחיצי הדירוג יהיו מיושרים יפה */
.stat-chip .value .rank-arrow {
    font-size: 0.7em;
    vertical-align: middle;
}

/* ========================================================== */
/* ====== עיצוב כפתורים לבחירת תצוגה בגרף (מובייל/דסקטופ) ====== */
/* ========================================================== */
.chart-toggle-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.chart-toggle-btn {
    background-color: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 16px;
    font-family: 'Heebo', sans-serif;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease-in-out;
    color: #475569;
}

.chart-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* עיצוב כפתור במצב "פעיל" */
.chart-toggle-btn.desktop-btn.active {
    background-color: rgb(75, 192, 192);
    border-color: rgb(75, 192, 192);
    color: white;
}

.chart-toggle-btn.mobile-btn.active {
    background-color: rgb(255, 99, 132);
    border-color: rgb(255, 99, 132);
    color: white;
}

/* ============================================= */
/* --- עיצוב HERO בהיר לקונטיינר הראשי --- */
/* ============================================= */
.k-rank-section {
    /* רקע גרדיאנט בהיר וזוהר כמו בדוח */
    background: linear-gradient(145deg, #f9faff, #f0f2ff);
    
    /* מסגרת עדינה תואמת */
    border: 1px solid #eef2ff;
    
    /* פינות מעוגלות יותר */
    border-radius: 24px;
    
    /* הצללה רכה עם גוון סגלגל */
    box-shadow: 0 16px 40px rgba(138, 116, 255, 0.15);

    /* הגדרות קיימות שנשמרות */
    padding: 40px 5%;
    margin: 50px 0;
    box-sizing: border-box;
}

/* מוודאים שדוגמת הרשת הכהה מוסתרת */
.k-rank-section::before {
    display: none;
}
.k-rank-section {
    /* הרקע והמסגרת החדשים שביקשת */
    background: linear-gradient(135deg, #f3f0ff, #eef2ff);
    border: 1px solid #e0e7ff;
    
    /* מאפיינים נוספים המשלימים את מראה ה-HERO */
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(138, 116, 255, 0.15);
    padding: 40px 5%;
    margin: 50px 0;
    box-sizing: border-box;
}

/* מוודאים שדוגמת הרשת הכהה מוסתרת (אם קיימת) */
.k-rank-section::before {
    display: none;
}
/* ============================================= */
/* --- מרכוז גלובלי לכל חלונות ה-Swal --- */
/* ============================================= */
.swal2-popup {
    text-align: center !important; /* הכלל המרכזי: ממקם את כל התוכן במרכז */
}

/* מוודא שגם קונטיינרים פנימיים וכפתורים מתמרכזים */
.swal2-html-container,
.swal2-actions {
    text-align: center !important;
    justify-content: center !important; /* חשוב לכפתורים */
}

/* כלל זה מוודא שסרטונים ותמונות יתמרכזו גם כן */
.swal2-html-container video,
.swal2-html-container img {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================= */
/* --- גודל רספונסיבי לסרטון בפופ-אפ ספאם --- */
/* ============================================= */

/* גודל ברירת המחדל למחשב */
.spam-popup-video {
    width: 270px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 12px;
}

/* גודל מוקטן למובייל (מסכים ברוחב 768px ומטה) */
@media (max-width: 768px) {
    .spam-popup-video {
        width: 180px; /* ⬅️ כאן אפשר לשנות לגודל הרצוי במובייל */
    }
}

/* ================================================= */
/* ====== עיצוב מתקדם למדי התוצאות (Gauges) ====== */
/* ================================================= */

/* רשת המדים - נשאר דומה עם התאמות קלות */
.metrics-grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* העיצוב החדש לכל 'כרטיס' מד */
.chart-container {
    background-color: #374151; /* רקע אפור-כהה */
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    border: 1px solid #4B5563;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.3), 0 10px 15px -8px rgba(0, 0, 0, 0.3);
}

/* כותרת המד */
.chart-container h4 {
    margin: 0 0 10px 0;
    color: #E5E7EB; /* צבע טקסט בהיר */
    font-weight: 500;
    font-size: 1rem;
    font-family: 'Heebo', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* התאמות לספריית התרשימים כדי שתתאים לעיצוב הכהה */
.apexcharts-radialbar-track {
    stroke: #4B5563; /* צבע המסלול האפור */
}

.apexcharts-text.apexcharts-datalabel-value {
    fill: #FFFFFF !important; /* צבע המספר הראשי - לבן */
    font-size: 36px !important;
    font-weight: 700 !important;
    font-family: 'Heebo', sans-serif !important;
}

.apexcharts-text.apexcharts-datalabel-label {
    fill: #9CA3AF !important; /* צבע התווית המשנית - אפור בהיר */
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* אפקט הזוהר (Glow) שמוחל על פס ההתקדמות */
.glow-red {
    filter: drop-shadow(0 0 8px rgba(233, 79, 55, 0.7));
}
.glow-green {
    filter: drop-shadow(0 0 8px rgba(28, 190, 185, 0.7));
}
.glow-orange {
    filter: drop-shadow(0 0 8px rgba(249, 166, 32, 0.7));
}

/* ============================================= */
/* --- תיקון טשטוש כותרות במובייל --- */
/* ============================================= */
@media (max-width: 600px) {
  .domain-label-premium {
    /* מבטלים את אפקט הגרדיאנט */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #7857ff; /* קובעים צבע סגול אחיד וברור */
    
    /* מבטלים את הצל המטושטש */
    text-shadow: none;
  }
}

/* ============================================= */
/* --- התאמת רוחב כפתור "הוסף" במובייל --- */
/* ============================================= */
@media (max-width: 768px) { /* כלל זה יופעל במסכים ברוחב 768px ומטה */
  .btn-compact {
    width: 100px; /* ⬅️ שנה כאן את הרוחב הרצוי */
    justify-content: center; /* ממקם את האייקון והטקסט במרכז הכפתור */
  }
}

/* ============================================= */
/* --- עיצוב גריד למחשב --- */
/* ============================================= */
@media (min-width: 992px) { /* הכללים יחולו רק על מסכים ברוחב 992px ומעלה */
  
  .desktop-grid {
    display: flex; /* מפעיל את Flexbox */
    gap: 20px; /* יוצר רווח של 20px בין העמודות */
    align-items: flex-start; /* מיישר את העמודות לחלק העליון */
  }

  .desktop-grid .section {
    flex: 1; /* גורם לכל עמודה לתפוס חצי מהרוחב הזמין */
    margin-bottom: 0; /* מבטל את הרווח התחתון המיותר בין התיבות */
  }
}

/* ======================================================= */
/* --- עיצוב בהיר ומרשים ל-K-RANK SEO Console --- */
/* ======================================================= */

/* הקונטיינר הראשי - רקע בהיר ומרשים */
.seo-console {
  background: linear-gradient(145deg, #f9faff, #eef2ff); /* רקע גרדיאנט בהיר */
  border: 1px solid #e0e7ff;
  border-radius: 24px;
  padding: 32px;
  margin: 40px 0;
  position: relative;
  box-shadow: 0 20px 40px -15px rgba(138, 116, 255, 0.2);
}

/* כותרת הקונסולה בפינה - עכשיו בצבע כהה */
.console-header {
  position: absolute;
  top: 16px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85em;
  font-weight: 600;
  color: #6b7280; /* צבע אפרפר כהה */
}
.status-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e; /* ירוק חי */
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
}

/* גוף הקונסולה עם הכרטיסים */
.console-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* עיצוב כרטיסים פנימיים - לבנים כדי שיבלטו */
.console-card {
  background: #ffffff;
  border: 1px solid #e0e7ff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 25px -10px rgba(138, 116, 255, 0.15);
}

/* כותרות הכרטיסים - עם צבע המותג */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2ff;
}
.header-icon {
  font-size: 1.1em;
  color: #8B5CF6; /* צבע סגול ראשי */
}
.card-header h3 {
  margin: 0;
  font-size: 1.1em;
  font-weight: 700;
  color: #4a2ea4; /* צבע סגול כהה יותר */
}
.header-icons {
  color: #9ca3af;
}

.card-description {
  font-size: 0.9em;
  color: #4b5563; /* אפור כהה לקריאות */
  margin: 0;
  min-height: 36px;
}

/* שדות קלט בעיצוב בהיר */
.input-wrapper .console-input {
  /* מבוסס על העיצוב הקיים שלך premium-input-container */
  background: #fdfdff;
  border: 1px solid #e0e7ff;
  color: #333;
}
.input-wrapper .console-input:focus {
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
.input-wrapper .input-icon {
  color: #a78bfa;
}

/* גריד הכפתורים */
.actions-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

/* כפתורים בעיצוב בהיר, מבוסס על הכפתורים הקיימים שלך */
.console-btn {
  /* מבוסס על tool-btn */
  background: linear-gradient(135deg, #007BFF, #0056b3);
  color: white;
  border: none;
  font-weight: bold;
}
.console-btn:hover {
  background: linear-gradient(135deg, #0056b3, #004494);
  transform: translateY(-2px);
}
.console-btn.btn-primary {
  /* מבוסס על add-domain-btn */
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
}
.console-btn.btn-primary:hover {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.help-text {
  font-size: 0.8em;
  color: #6b7280;
  text-align: center;
  margin-top: auto;
  padding-top: 10px;
}

/* רספונסיביות למובייל - חוזר לעמודה אחת */
@media (max-width: 1024px) {
  .console-body {
    grid-template-columns: 1fr;
  }
}

/* ============================================= */
/* --- עיצוב מרכז הבקרה והמחקר (K-RANK) --- */
/* ============================================= */

/* הפאנל הראשי */
.k-rank-command-center {
  background: linear-gradient(145deg, #1f2937, #111827);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

/* אפקט תאורה אחורית (Glow) */
.k-rank-command-center::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(17, 24, 39, 0) 60%);
  animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* כותרת הפאנל */
.command-center-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.command-center-header h2 {
  color: #f9fafb;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #9ca3af;
  background: rgba(17, 24, 39, 0.7);
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-status .status-dot {
  width: 8px;
  height: 8px;
  background-color: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
}

/* גוף הפאנל והעמודות */
.command-center-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.command-center-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group label,
.command-center-column > label {
  font-size: 1rem;
  font-weight: 700;
  color: #d1d5db;
  margin-bottom: 0.75rem;
  display: block;
}

/* שדות קלט */
.input-wrapper {
  position: relative;
}

.input-wrapper .icon {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  background-color: rgba(17, 24, 39, 0.8);
  border: 1px solid #4a5568;
  border-radius: 10px;
  padding: 14px 45px 14px 16px;
  color: #f9fafb;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3), inset 0 0 10px rgba(139, 92, 246, 0.1);
}

/* כפתור הוספת דומיין */
.add-btn {
  width: 100%;
  margin-top: 0.75rem;
  background: linear-gradient(95deg, #8B5CF6, #7c3aed);
  border: none;
  color: white;
  font-weight: 700;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.4);
}

/* רשת כפתורי הפעולה */
.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.action-btn {
  background-color: rgba(31, 41, 55, 0.7);
  border: 1px solid #4a5568;
  color: #d1d5db;
  padding: 12px;
  font-weight: 600;
  border-radius: 10px;
  text-align: right;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-btn i {
  color: #a78bfa;
  font-size: 1.1em;
  width: 20px;
  text-align: center;
}
.action-btn:hover {
  background-color: #374151;
  border-color: #8B5CF6;
  color: white;
}

/* רספונסיביות */
@media (max-width: 1024px) {
  .command-center-body {
    grid-template-columns: 1fr;
  }
}

/* =========================================== */
/* --- חדש: עיצוב סרגל סטטוס שימוש --- */
/* =========================================== */
.console-usage-bar {
 background: rgba(17, 24, 39, 0.8); /* רקע תואם לפאנל */
 border: 1px solid var(--console-border);
 border-radius: 12px;
 padding: 12px 16px;
 margin-bottom: 2rem;
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 16px;
 position: relative;
 z-index: 2;
 flex-wrap: wrap; /* למסכים קטנים */
}

.usage-bar-details {
 display: flex;
 align-items: center;
 gap: 12px;
 flex-grow: 1;
}

.usage-bar-details i {
 color: var(--console-accent);
 font-size: 1.25rem;
}

.usage-bar-text {
 color: var(--console-text-primary);
 font-weight: 600;
 white-space: nowrap;
}

.usage-bar-progress-container {
 flex-grow: 2;
 min-width: 150px;
 height: 8px;
 background-color: #374151;
 border-radius: 4px;
 overflow: hidden;
}

.usage-bar-progress-fill {
 height: 100%;
 background: linear-gradient(90deg, var(--console-accent), #34d399);
 border-radius: 4px;
 transition: width 0.5s ease-in-out;
}

.console-upgrade-btn {
 background: linear-gradient(95deg, #f59e0b, #f97316);
 border: none;
 color: white;
 font-weight: 700;
 font-size: 0.875rem;
 padding: 8px 14px;
 border-radius: 8px;
 cursor: pointer;
 transition: all 0.2s ease;
 white-space: nowrap;
}

.console-upgrade-btn:hover {
 transform: translateY(-2px);
 box-shadow: 0 6px 15px -3px rgba(245, 158, 11, 0.4);
}


/* -------------------------------------------------------------------- */
/* ----- עיצוב פרימיום לתיבת סטטוס שימוש (Usage Status Box) ----- */
/* -------------------------------------------------------------------- */

/* עיצוב המעטפת - משמש בעיקר למיקום האלמנט במרכז הדף (אופציונלי) */


/* -------------------------------------------------------------------- */
/* ----- עיצוב פרימיום לתיבת סטטוס שימוש (Usage Status Box) ----- */
/* -------------------------------------------------------------------- */

/* עיצוב המעטפת - משמש בעיקר למיקום האלמנט במרכז הדף */
.usage-status-box-wrapper {
  display: flex;
  justify-content: center; /* ממקם את התיבה במרכז */
  padding: 20px; /* ריווח מהקצוות */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* פונט נקי ומודרני */
}

/* העיצוב המרכזי של כפתור הסטטוס */
.usage-status-btn {
  /* -- מבנה ומיקום -- */
  position: relative; /* חובה! מאפשר למקם את פס ההתקדמות בתוכו */
  overflow: hidden;   /* חובה! מבטיח שפינות פס ההתקדמות לא יגלשו החוצה */
  display: inline-flex;
  align-items: center;
  gap: 12px; /* רווח בין האייקון לטקסט */
  
  /* -- מראה ועיצוב -- */
  background-color: #2c2f33; /* צבע רקע כהה ואלגנטי */
  color: #f0f0f0; /* צבע טקסט ואייקון בהיר וקריא */
  border: 1px solid rgba(255, 255, 255, 0.1); /* מסגרת עדינה ליצירת עומק */
  border-radius: 12px; /* פינות מעוגלות ורכות */
  padding: 12px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* צל שנותן תחושת ריחוף */
  
  /* -- טיפוגרפיה -- */
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap; /* מונע מהטקסט להישבר לשתי שורות */
  
  /* -- התנהגות -- */
  cursor: default; /* משנה את סמן העכבר כי זה אלמנט תצוגה, לא לחיץ */
  transition: all 0.3s ease;
}

/* ★★★ פס ההתקדמות ★★★ */
.usage-status-btn::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0; /* מתחיל מהצד הימני (מתאים ל-RTL) */
  bottom: 0;
  
  /* חישוב הרוחב: 190 מתוך 200 זה 95% */
  width: 95%; 
  
  /* עיצוב הפס - גרדיאנט יפהפה */
  background: linear-gradient(135deg, #3a7bd5, #3a60d5);
  
  z-index: 0; /* מציב את הפס מתחת לטקסט ולאייקון */
  border-radius: 12px;
  transition: width 0.5s ease-out; /* אנימציה למקרה שהערך ישתנה */
}

/* מיקום הטקסט והאייקון מעל פס ההתקדמות */
.usage-status-btn > i,
.usage-status-btn > span {
  position: relative;
  z-index: 1; /* חשוב! כדי שהם יופיעו מעל הפס הכחול */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* צל קטן לטקסט כדי לשפר קריאות */
}

/* אפקט ריחוף (Hover) עדין */
.usage-status-btn:hover {
  transform: translateY(-2px); /* הרמה קטנה של הכפתור */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); /* צל מודגש יותר */
  border-color: rgba(255, 255, 255, 0.2); /* הבהרת המסגרת */
}





/* ================================================================
   שדרוג ויזואלי בטוח (CSS בלבד) לאזור ניהול ופעולות
   ================================================================ */

/* --- עיצוב אחיד לכותרות הסקשנים --- */
.section .domain-label-premium {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Heebo', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #d8b4fe, #a78bfa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(167, 139, 250, 0.3);
}

/* --- שדרוג תיבת הבחירה (המסגרת בלבד) --- */
.domain-select-premium {
    position: relative;
    border-radius: 12px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
.domain-select-premium:focus-within {
    box-shadow: 0 0 20px 5px rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
}
.domain-select-premium .icon {
    position: absolute;
    left: 15px; /* שינוי כיוון ש-RTL */
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.2em;
    pointer-events: none;
}
.domain-select-premium select {
    width: 100%;
    padding: 15px 20px 15px 50px; /* ריווח לחץ ולאייקון */
    background: transparent;
    border: none;
    color: #e5e7eb;
    font-size: 1.1em;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

/* --- שדרוג תיבת הדומיין הנבחר --- */
.selected-domain-premium-box {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 700;
    color: #f9fafb;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}
.selected-domain-premium-box:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    transition: left 0.8s ease;
}
.selected-domain-premium-box:hover::before {
    left: 150%;
}

/* --- שדרוג כפתור מחיקה --- */
.delete-domain-btn {
    background: transparent;
    color: #ff7b7b;
    border: 1px solid #ff5252;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.delete-domain-btn:hover {
    background-color: rgba(255, 82, 82, 0.15);
    color: #ff9a9a;
    box-shadow: 0 0 15px rgba(255, 82, 82, 0.4);
    transform: translateY(-2px);
}


/* --- שדרוג כפתור "בדוק מיקומים" --- */
.futuristic-cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, #583cb3, #8b5cf6);
    color: #f9fafb;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}
.futuristic-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
}
.futuristic-cta-button .btn-text {
    z-index: 1;
}
.futuristic-cta-button .btn-icon-container {
    z-index: 1;
    display: flex;
    align-items: center;
}
.futuristic-cta-button img {
    width: 28px;
    height: 28px;
}
#selected-domain-premium-box #domain-name-display {
    color: #4a2ea4; /* צבע סגול כהה וקריא על רקע בהיר */
}
.selected-domain-premium-box {
    color: #4a2ea4; /* קובע צבע סגול כהה לכל הטקסט והאייקונים שבתוך התיבה */
}

/* ============================================= */
/* --- הרחבה והתאמה למובייל - קונטיינר AI --- */
/* ============================================= */

.k-rank-ai-links-section {
    width: 100%; /* הפקודה שמרחיבה את התיבה לרוחב מלא */
    box-sizing: border-box; /* מוודא שהריפוד לא גורם לגלישה הצידה */
}

/* התאמה למובייל (מסכים ברוחב 768px ומטה) */
@media (max-width: 768px) {
    /* מסתירים את ה"סנפירים" במובייל כדי למנוע גלישה הצידה */
    .k-rank-ai-links-section::before,
    .k-rank-ai-links-section::after {
        display: none;
    }
}


/* ======= MOBILE CONTAINER FIX (Scoped to landing-page-active) ======= */

/* 0) בסיס: בלי מרווחי דפדפן ובלי גלילה לרוחב */
html, body { margin:0; padding:0; overflow-x:hidden; background:#111827; }

/* 1) במובייל – כל הקונטיינרים יהיו 100% רוחב, בלי max-width חוסם */
@media (max-width: 768px){
  body.landing-page-active, 
  body.landing-page-active * { box-sizing: border-box; }

  body.landing-page-active .container,
  body.landing-page-active .container-xl,
  body.landing-page-active .max-w-7xl,
  body.landing-page-active .k-rank-command-center {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 14px !important;
    padding-left: 14px !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    background: transparent !important;
  }

  /* 2) Bootstrap rows/gutters – למנוע גלילת X */
  body.landing-page-active .row{
    --bs-gutter-x: .75rem;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  body.landing-page-active .col,
  body.landing-page-active [class*="col-"]{
    padding-right: .375rem;
    padding-left:  .375rem;
  }

  /* 3) כרטיסים/סקשנים – לא לחרוג מהמסך */
  body.landing-page-active .k-rank-ai-links-section,
  body.landing-page-active .section,
  body.landing-page-active .seo-dock,
  body.landing-page-active .halo-section {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
}

/* 4) הכרטיס הסגלגל – חיתוך נקי של פינות/דקור */
.k-rank-ai-links-section{
  width:100%;
  border-radius:18px;
  overflow:hidden; /* מונע “שפיצים”/זולגות מחוץ לכרטיס */
}

/* 5) שדות בתוך הכרטיס – לא יגלשו */
.k-rank-ai-links-section .premium-input-container{ width:100%; }

/* 6) יוטיליטי אופציונלי ל–Full-Bleed רק כשצריך רקע עד קצות המסך
   (אם תרצה סקשן שיגיע ממש עד קצה המסך, הוסף למחלקות שלו .full-bleed)
*/
.full-bleed{
  margin-right: calc(50% - 50vw);
  margin-left:  calc(50% - 50vw);
  padding-right: max(14px, env(safe-area-inset-right));
  padding-left:  max(14px, env(safe-area-inset-left));
}
/* שמור רקע כהה גלובלי */
html, body { background:#111827 !important; }

/* מובייל: לבטל ל־wrapper את הרקע/פינות/צל כדי שלא ילבין */
@media (max-width: 768px){
  body.landing-page-active .main-wrapper,
  body.landing-page-active #main-app {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* אם יש כרטיס/מיכל שמלבין (card, bg-white) – נטרל רק בתוך הדף הזה */
  body.landing-page-active .card,
  body.landing-page-active .bg-white {
    background: transparent !important;
  }

  /* לכל מקרה – אל תיתן לפסאודו-אלמנטים לצייר “קנבס” לבן */
  body.landing-page-active .main-wrapper::before,
  body.landing-page-active .main-wrapper::after {
    content: none !important;
  }
}

/* הכרטיס הסגלגל שלך נשאר סגול; רק חותכים זליגה בפינות */
.k-rank-ai-links-section{
  border-radius:18px;
  overflow:hidden;
}

/* כותרת ראשית – גרדיאנט מותג */
.console-hero-title .main{
  background:linear-gradient(90deg,#8B5CF6,#3B82F6);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent; /* חשוב לגרדיאנט */
  text-shadow:none;
}
@media (max-width:768px){
  .console-hero-title .main{
    color:#111827 !important;  /* דוגמה – שנה למה שתרצה */
    text-shadow:none;
  }
}

/* Command Center <h2> — Gradient brand style */
.command-center-header h2{
  margin: 0;
  font-family: 'Heebo', sans-serif;
  font-weight: 900;
  letter-spacing: .4px;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  direction: rtl;

  /* טקסט בגרדיאנט כמו .main */
  background: linear-gradient(90deg, #8B5CF6, #3B82F6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;  /* חובה לגרדיאנט */
  text-shadow: none;
}

/* האייקון שיישאר צבע מלא+זוהר עדין */
.command-center-header h2 i{
  color: #8B5CF6;
  filter: drop-shadow(0 0 8px rgba(139,92,246,.35));
  font-size: 1.1em;
}

/* מובייל – כותרת מעט קטנה */
@media (max-width:768px){
  .command-center-header h2{ font-size: 1.35rem; }
}

/* טוקנים (אם כבר הגדרת פעם – אפשר לדלג) */
:root{
  --grad-1:#8B5CF6;  /* סגול */
  --grad-2:#3B82F6;  /* כחול */
}

/* אותו סגנון לכותרת ה־label של הדומיין */
body.landing-page-active label[for="new-domain"]{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-family:'Heebo', sans-serif;
  font-weight:900;
  letter-spacing:.4px;
  margin:0 0 .5rem 0;
  background:linear-gradient(90deg, var(--grad-1), var(--grad-2));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent; /* חובה לגרדיאנט */
  text-shadow:none;
  font-size:clamp(1rem, 2.8vw, 1.25rem);
}

/* מובייל – קצת קטן יותר */
@media (max-width:768px){
  body.landing-page-active label[for="new-domain"]{
    font-size:1.05rem;
  }
}
/* label "הוסף מתחרים להשוואה" – גרדיאנט מותג */
body.landing-page-active label[for="competitor-input-multi"]{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-family:'Heebo',sans-serif;
  font-weight:900;
  letter-spacing:.4px;
  margin:0 0 .5rem 0;
  background:linear-gradient(90deg,#8B5CF6,#3B82F6);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:none;
  font-size:clamp(1rem,2.8vw,1.25rem);
}

@media (max-width:768px){
  body.landing-page-active label[for="competitor-input-multi"]{ font-size:1.05rem; }
}
/* "מתחרים שנוספו:" – אותו גרדיאנט של הכותרות */
body.landing-page-active #competitors-list-container > small{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  font-family:'Heebo',sans-serif;
  font-weight:900;
  letter-spacing:.4px;
  margin:0 0 .35rem 0;

  background:linear-gradient(90deg,#8B5CF6,#3B82F6);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:none;

  font-size:clamp(.95rem,2.4vw,1.1rem);
}

@media (max-width:768px){
  body.landing-page-active #competitors-list-container > small{
    font-size:1rem;
  }
}
/* label "הזן ביטוי מפתח למחקר" – גרדיאנט מותג */
body.landing-page-active label[for="new-keyword"]{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-family:'Heebo',sans-serif;
  font-weight:900;
  letter-spacing:.4px;
  margin:0 0 .5rem 0;
  background:linear-gradient(90deg,#8B5CF6,#3B82F6);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:none;
  font-size:clamp(1rem,2.8vw,1.25rem);
}

@media (max-width:768px){
  body.landing-page-active label[for="new-keyword"]{ font-size:1.05rem; }
}
/* label "כלי מחקר נוספים" – גרדיאנט מותג */
body.landing-page-active .input-group > label:has(+ .actions-grid){
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-family:'Heebo',sans-serif;
  font-weight:900;
  letter-spacing:.4px;
  margin:0 0 .5rem 0;

  /* אותו גרדיאנט כמו בשאר הכותרות */
  background:linear-gradient(90deg,#8B5CF6,#3B82F6);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:none;

  font-size:clamp(1rem,2.8vw,1.25rem);
}

@media (max-width:768px){
  body.landing-page-active .input-group > label:has(+ .actions-grid){
    font-size:1.05rem;
  }
}
/* label "חבר חשבון Google Ads" – גרדיאנט מותג */
body.landing-page-active label[for="google-ads-customer-id"]{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-family:'Heebo',sans-serif;
  font-weight:900;
  letter-spacing:.4px;
  margin:0 0 .5rem 0;

  background:linear-gradient(90deg,#8B5CF6,#3B82F6);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:none;

  font-size:clamp(1rem,2.8vw,1.25rem);
}

@media (max-width:768px){
  body.landing-page-active label[for="google-ads-customer-id"]{ font-size:1.05rem; }
}
/* ====== HERO TITLE (main + sub) ====== */
.console-hero-title .main{
  display:block;
  font-family:'Heebo',sans-serif;
  font-weight:900;
  letter-spacing:.4px;
  font-size:clamp(28px,4.2vw,48px);
  margin:0 0 .35rem 0;

  /* טקסט גרדיאנט */
  background:linear-gradient(90deg,#8B5CF6,#3B82F6);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:none;
}

/* שורת המשנה – אפור נעים לרקע לבן */
.console-hero-title .sub{
  display:block;
  font-family:'Heebo',sans-serif;
  font-weight:500;
  font-size:clamp(14px,1.6vw,19px);
  color:#475569; /* אפור כהה, נראה חד על רקע לבן */
  margin:0;
}

/* היילייט צבעוני בלי FOUC (בלי "בזק" אפור) */
.console-hero-title .sub .ai-highlight{
  display:inline-block;
  color:transparent !important;
  -webkit-text-fill-color:transparent !important;
  background:linear-gradient(90deg,#8B5CF6,#34D399) !important; /* סגול→ירקרק */
  -webkit-background-clip:text !important;
  background-clip:text !important;
  will-change:background;
  transform:translateZ(0);
}

/* מובייל – מעט הקטנות כדי שלא יישבר */
@media (max-width:768px){
  .console-hero-title .main{ font-size:clamp(24px,7vw,34px); }
  .console-hero-title .sub{  font-size:clamp(13px,4vw,16px); }
}

/* Remove any borders from header or any surrounding elements */
header, .container, .main-wrapper {
    border: none;
    box-shadow: none;
}

/* ============================================= */
/* --- עיצוב כפתור שדרוג חבילה סגול --- */
/* ============================================= */
.upgrade-btn-purple {
  display: inline-block;
  background: linear-gradient(135deg, #8B5CF6, #6D28D9); /* גרדיאנט סגול */
  color: white; /* טקסט לבן */
  font-weight: bold; /* טקסט מודגש */
  padding: 10px 20px; /* ריווח פנימי */
  border-radius: 8px; /* פינות מעוגלות */
  text-decoration: none; /* הסרת קו תחתון של הקישור */
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); /* הצללה עדינה */
  transition: all 0.3s ease; /* אנימציה חלקה למעבר עכבר */
}

.upgrade-btn-purple:hover {
  transform: translateY(-2px); /* הרמה קלה של הכפתור */
  box-shadow: 0 7px 20px rgba(139, 92, 246, 0.4); /* הצללה מודגשת יותר */
}


/* הוספה לעיצוב רספונסיבי במובייל */
@media (max-width: 768px) {
  .halo-title {
    /* 1. מבטלים את אפקט הגרדיאנט השקוף */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;

    /* 2. קובעים צבע טקסט חדש שיראה טוב על רקע לבן */
    color: #374151; /* צבע אפור כהה וקריא */
  }
}

:root{
  --krx-bg: rgba(17,24,39,.6);
  --krx-brd: rgba(255,255,255,.08);
  --krx-txt: #e5e7eb;
  --krx-sub: #94a3b8;
  --krx-a1:#05b2ff; --krx-a2:#7857ff; --krx-a3:#a78bfa;
}

.krx-shell{ width:100%; max-width:980px; margin:0 auto 14px; }
.krx{
  background: var(--krx-bg);
  border:1px solid var(--krx-brd);
  border-radius:14px;
  padding:10px 12px;              /* מינימום ריווח */
  color:var(--krx-txt);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 14px 40px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.04);
}

.krx-top{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:6px; line-height:1;
}
.krx-label{ font-weight:700; font-size:.92rem; color:#e5e7eb; display:flex; align-items:center; gap:8px; }
.krx-label i{ color:#B49FF5; filter: drop-shadow(0 0 6px rgba(180,159,245,.5)); }
.krx-chip{
  font-weight:700; font-size:.85rem; padding:4px 8px; border-radius:999px;
  background: linear-gradient(90deg,#2b2f45,#1e2236);
  border:1px solid var(--krx-brd); color:#dbeafe;
}

/* ---- פס דק במיוחד ---- */
.krx-bar{
  position:relative; height:12px;                 /* <<<<<< דק! */
  border-radius:999px; overflow:hidden;
  background:#0b1022; border:1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 6px 16px rgba(0,0,0,.28);
}
.krx-bar-bg{
  position:absolute; inset:0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 26px),
    linear-gradient(90deg,#0b1022,#141a33);
}
.krx-bar-fill{
  position:absolute; inset:0 auto 0 0; height:100%;
  background: linear-gradient(90deg, var(--krx-a1), var(--krx-a2) 60%, var(--krx-a3) 100%);
  box-shadow: inset 0 0 10px rgba(0,0,0,.25), 0 0 18px rgba(120,87,255,.35);
  transition: width .6s cubic-bezier(.2,.8,.2,1);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,1));
}
.krx-bar-flow{
  position:absolute; inset:0; pointer-events:none;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 6px, transparent 6px 18px);
  animation: krxFlow 3s linear infinite;
}
@keyframes krxFlow { to { background-position: 140px 0; } }

.krx-ticks span{
  position:absolute; top:0; bottom:0; width:1px;
  background: rgba(255,255,255,.08);
}

/* מצבי צבע */
.krx-shell[data-state="warn"] .krx-bar-fill{
  background: linear-gradient(90deg,#fbbf24,#f59e0b 60%,#ef4444 100%);
}
.krx-shell[data-state="low"] .krx-bar-fill,
.krx-shell[data-state="empty"] .krx-bar-fill{
  background: linear-gradient(90deg,#f97316,#ef4444 60%,#dc2626 100%);
  animation: krxPulse 1.6s ease-in-out infinite;
}
.krx-shell[data-state="unlimited"] .krx-bar-fill{
  background: linear-gradient(90deg,#34d399,#10b981 60%,#06b6d4 100%);
}
@keyframes krxPulse{ 0%,100%{filter:brightness(1)} 50%{filter:brightness(1.35)} }

/* בועת אינדיקציה קטנה ודקה */
.krx-pointer{
  position:absolute; top:-22px; transform:translateX(-50%);
}
.krx-pointer span{
  display:inline-block; white-space:nowrap;
  font-size:.75rem; font-weight:800; color:#0f172a;
  background: linear-gradient(90deg,#D8F6FF,#EEE7FF);
  border: 1px solid rgba(0,0,0,.08);
  padding: 3px 8px; border-radius:999px;
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}

/* תחתית קומפקטית */
.krx-bottom{
  display:flex; align-items:center; justify-content:space-between;
  margin-top:6px; color:#cbd5e1; line-height:1;
}
.krx-reset{ font-size:.82rem; opacity:.9; }

/* שלד טעינה */
.krx-skeleton .krx-shimmer{ position:relative; overflow:hidden; color:transparent; }
.krx-skeleton .krx-shimmer::after{
  content:''; position:absolute; inset:0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  animation: krxShimmer 1.6s infinite;
}
@keyframes krxShimmer{ from{transform:translateX(-100%)} to{transform:translateX(100%)} }

/* מובייל – שומר על דקיקות, מצמצם עומס ויזואלי */
@media (max-width: 520px){
  .krx{ padding:8px 10px; }
  .krx-top{ gap:8px; }
  .krx-label{ font-size:.86rem; }
  .krx-chip{ font-size:.78rem; padding:3px 7px; }
  .krx-bar{ height:10px; }        /* עוד יותר דק במובייל */
  .krx-pointer{ top:-20px; }
  .krx-bottom{ margin-top:4px; }
}
@media (prefers-reduced-motion: reduce){
  .krx-bar-flow, .krx-shell[data-state="low"] .krx-bar-fill,
  .krx-shell[data-state="empty"] .krx-bar-fill, .krx-skeleton .krx-shimmer::after{
    animation: none !important;
  }
}
/* home.html */
/* START: Premium Logout Button */
.premium-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #5c1cd1, #685f0f); /* אדום כמו כפתור מחיקה */
  color: #6293ff; /* <-- שינוי הצבע כאן */
  font-size: 14px; /* קטן יותר כדי להתאים ל-user-info-display */
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 8px 12px; /* קטן יותר */
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  direction: rtl;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* צל קטן יותר */
  flex-shrink: 0; /* כדי שלא יתכווץ במיקום צפוף */

  /* ✅ תוספות חדשות עבור רספונסיביות */
  white-space: nowrap; /* מונע מעבר שורה של הטקסט */
  overflow: hidden; /* מסתיר טקסט שגולש */
  text-overflow: ellipsis; /* מוסיף "..." אם הטקסט ארוך מדי */
  max-width: 150px; /* רוחב מקסימלי כללי, כדי לאפשר לו להתכווץ */
  justify-content: center; /* כדי שהאייקון והטקסט יהיו ממורכזים אם הכפתור קטן */
}
/* Media Query עבור לחצן ההתנתקות במובייל */
@media (max-width: 600px) {
  .premium-logout-btn {
    font-size: 12px; /* הקטנת הפונט */
    padding: 6px 10px; /* הקטנת הריפוד */
    gap: 5px; /* הקטנת הרווח בין האייקון לטקסט */
    max-width: 120px; /* הקטנת הרוחב המקסימלי במובייל צפוף */
  }
  .premium-logout-btn i {
    font-size: 12px; /* הקטנת גודל האייקון */
  }
}

.premium-logout-btn:hover {
  background: linear-gradient(135deg, #b02a37, #8e222d);
  transform: translateY(-1px); /* ריחוף קטן יותר */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* צל מודגש יותר בריחוף */
}
.premium-logout-btn i {
  font-size: 15px; /* אייקון קטן יותר */
}
/* END: Premium Logout Button */
.premium-logout-btn:hover {
  background: linear-gradient(135deg, #b02a37, #8e222d);
  transform: translateY(-1px); /* ריחוף קטן יותר */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* צל מודגש יותר בריחוף */
}
.premium-logout-btn i {
  font-size: 15px; /* אייקון קטן יותר */
}
#user-info-display {
  position: sticky; /* נדבק לחלק העליון בגלילה */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* מוודא שהוא מעל כל התוכן האחר */
  
  /* עיצוב הגרדיאנט והצללה */
  background: linear-gradient(135deg, #f3f0ff 0%, #e2d9ff 100%);
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  
  /* איפוס עיצובים קודמים */
  border-radius: 0;
  margin-bottom: 0;
}

/* קונטיינר פנימי שממרכז את התוכן */
#user-info-display .user-info-content {
  max-width: 1400px; /* מתאים לרוחב הקונטיינר הראשי שלך */
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* עיצוב טקסט הברכה */
#user-info-display .user-info-content span {
  color: #4a2ea4; /* צבע סגול כהה */
  font-weight: 600;
  font-size: 16px;
}

    /* ============================================= */
    /* ======== תיקון לפס המיותר בסרגל העליון ======== */
    /* ============================================= */
    #user-info-display {
        border: none !important;
        border-bottom: none !important;
        background: none !important;
        background-image: none !important;
        box-shadow: none !important;
        outline: none !important;
    }
    /* ============================================= */
    
    /* ... (המשך קוד ה-CSS הקיים שלך) ... */
/* ======================================================= */
/* --- יישור למרכז לסרגל המשתמש בתצוגת מחשב (Desktop) --- */
/* ======================================================= */

/* הכלל הזה יחול רק על מסכים ברוחב 768px ומעלה */
@media (min-width: 350px) {
  #user-info-display {
    justify-content: right !important; /* דורסים את ההגדרה מה-JS וממרכזים */
  }
}

/* ============================================== */
/* === קוד כוחני לאנימציית ספינר === */
/* ============================================== */
@keyframes force-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* ================================================================
   AI Chatbox — Cleaned, Organized, and Mobile-ready
   ================================================================ */

/* ---- Global Container & States ---- */
#ai-chatbox-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    width: 350px;
    height: 450px;
    max-height: 600px;
    display: none;
    flex-direction: column;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 0 30px rgba(0, 0, 0, .2);
    font-family: 'Heebo', sans-serif;
    overflow: hidden;
    transition: width .3s ease, height .3s ease, bottom .3s ease, right .3s ease;
}

#ai-chatbox-container.maximized {
    width: 90vw;
    height: 90vh;
    max-width: 900px;
    max-height: 800px;
    bottom: 5vh;
    right: 5vw;
    left: auto;
    top: auto;
    transform: none;
    border-radius: 12px;
}

#ai-chatbox-container.maximized #ai-chatbox-messages {
    max-height: none;
    flex-grow: 1;
}

/* ---- Header ---- */
#ai-chatbox-header {
    background: linear-gradient(90deg, #7857ff, #6a45d7);
    color: #fff;
    padding: 14px;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
}

#ai-chatbox-header img,
#ai-chatbox-header video {
    height: 52px;
    border-radius: 50%;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08)
}

.ai-header-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    margin-left: 8px;
    transition: color .2s ease;
    padding: 5px;
    border-radius: 5px;
    width: 40px;
    height: 40px;
    font-size: 1em;
}

.ai-header-btn:hover {
    color: #f0f0f0;
    background: rgba(255, 255, 255, .1);
}

#ai-chatbox-close {
    margin-right: auto;
    margin-left: 0;
}

/* ---- Messages Area ---- */
#ai-chatbox-messages {
    flex: 1;
    max-height: 300px;
    overflow-y: auto;
    padding: 12px;
    background: #f9f9f9;
    direction: rtl;
    font-size: 14px;
    line-height: 1.6;
}

.ai-msg {
    background: #e7eafe;
    color: #333;
    border-radius: 16px 16px 0 16px;
    padding: 10px 16px;
    margin: 6px 0 6px 44px;
    text-align: right;
    width: fit-content;
    max-width: 80%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    font-size: 1em;
    animation: popin .13s;
}

.user-msg {
    background: #dff5e8;
    color: #222;
    border-radius: 16px 16px 16px 0;
    padding: 10px 16px;
    margin: 6px 44px 6px 0;
    text-align: right;
    width: fit-content;
    max-width: 80%;
    margin-right: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
    font-size: 1em;
    animation: popin .13s;
}

/* ---- Input Row ---- */
#ai-chatbox-input-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px;
    gap: 8px;
    border-top: 1px solid #eee;
    background: #fff;
}

#ai-chatbox-input {
    flex: 1 1 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
    color: #222222 !important; /* צבע טקסט כהה וברור */
}

#ai-chatbox-input::placeholder {
    color: #999999 !important; /* צבע Placeholder ברור */
}

#ai-chatbox-input-row button {
    flex: 1;
    min-width: 0;
    padding: 10px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: bold;
    background: #7857ff;
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease;
}

#ai-chatbox-input-row button:hover {
    background: #633fc9;
}

/* ---- Floating Button & Bubble ---- */
#floating-ai-chat-wrapper {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    gap: 12px;
}

#floating-ai-chat-btn {
    position: relative;
    background: linear-gradient(135deg, #f4eaff, #c7d2fe);
    border: none;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow .2s, background .2s;
    outline: none;
    padding: 0;
}

#floating-ai-chat-btn:hover {
    background: linear-gradient(135deg, #c7d2fe, #8a2be2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .24);
}

#floating-ai-chat-btn img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

#ai-chat-bubble {
    background: #fff;
    color: #444;
    border-radius: 18px 18px 0 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
    padding: 12px 22px;
    margin-bottom: 6px;
    font-size: 1.05em;
    font-family: 'Rubik', Arial, sans-serif;
    direction: rtl;
    white-space: nowrap;
    animation: pop-in .7s;
    border: 1.5px solid #e0e7ff;
    position: relative;
}

#ai-chat-bubble::before {
    content: "";
    position: absolute;
    right: -14px;
    bottom: 12px;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 16px solid #fff;
    filter: drop-shadow(1px 0 2px #e0e7ff);
}

#ai-chat-bubble.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s;
}

/* ---- States & Utilities ---- */
.google-rules-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
    width: 100%;
}

.fa-spin.keyword-spinner {
    animation: force-spin 1s linear infinite !important;
}

#floating-ai-chat-btn.locked .lock-icon {
    display: block !important;
}

#floating-ai-chat-btn.locked #floating-btn-img,
#floating-ai-chat-btn.locked #floating-btn-video {
    display: none !important;
}

/* ---- Animations ---- */
@keyframes popin {
    from {
        opacity: 0;
        transform: translateY(40px) scale(.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: scale(.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ---- Mobile Responsive Styles ---- */
@media (max-width: 768px) {
    #floating-ai-chat-wrapper {
        bottom: max(0px, env(safe-area-inset-bottom));
        right: max(0px, env(safe-area-inset-right));
        left: auto;
    }

    #floating-ai-chat-btn {
        width: 56px;
        height: 56px;
    }

    #ai-chatbox-container {
        right: 0;
        width: min(92vw, 380px);
        bottom: calc(56px + 12px + env(safe-area-inset-bottom));
        height: min(75vh, 640px);
        max-height: 85vh;
    }
}
/* הוסף את זה לקובץ ה-CSS הראשי שלך */

.swal-neon-glass {
  background: linear-gradient(180deg, rgba(20,20,33,.75), rgba(12,12,22,.75)) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 60px rgba(0,0,0,.45) !important;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  color: #eef0ff !important;
}

.swal-neon-glass .swal2-title {
  color: #fff !important;
  font-weight: 800 !important;
}

.swal-neon-glass .swal2-html-container {
  color: #a0a5b8 !important;
}

.swal-neon-glass .swal2-confirm,
.swal-neon-glass .swal2-deny,
.swal-neon-glass .swal2-cancel {
  border-radius: 12px !important;
  font-weight: 800 !important;
  transition: transform 0.2s ease !important;
}

.swal-neon-glass .swal2-confirm:hover,
.swal-neon-glass .swal2-deny:hover {
  transform: translateY(-2px);
}

.swal-neon-glass .swal2-confirm {
  background: linear-gradient(90deg,#8a74ff,#6b4bff) !important;
  box-shadow: 0 10px 34px rgba(107,75,255,.35) !important;
}

.swal-neon-glass .swal2-deny {
    background: #22c55e !important;
}

/* עיצוב רשימת הבעיות בתוך החלון הכהה */
.issues-container-dark .issue-item {
  background: #171725 !important;
  border: 1px solid rgba(255,255,255,.1) !important;
}

.issues-container-dark .issue-title {
  color: #eef0ff !important;
}

.issues-container-dark .issue-description {
  border-top: 1px solid rgba(255,255,255,.1) !important;
  color: #a0a5b8 !important;
}

.issues-container-dark .issue-description a {
  color: #8a74ff !important;
}