/**
 * Spider Elements Dashboard - Enhanced Styles
 * Modern UI/UX improvements with animations and better visual hierarchy
 */

// ===== CSS Custom Properties (Design Tokens) =====
:root {
  // Brand Colors
  --spel-primary: #7460ff;
  --spel-primary-light: #9d70ff;
  --spel-primary-dark: #5a4ad9;
  --spel-secondary: #6d27e5;

  // Accent Colors
  --spel-success: #22c55e;
  --spel-success-light: #dcfce7b5;
  --spel-warning: #f59e0b;
  --spel-warning-light: #fef3c7;
  --spel-error: #ef4444;
  --spel-error-light: #fee2e2;
  --spel-info: #3b82f6;
  --spel-info-light: #dbeafe;

  // Neutral Colors
  --spel-bg-primary: #f8fafc;
  --spel-bg-secondary: #fff;
  --spel-bg-tertiary: #f1f5f9;
  --spel-text-primary: #0f172a;
  --spel-text-secondary: #475569;
  --spel-text-muted: #94a3b8;
  --spel-border: #e2e8f0;
  --spel-border-light: #f1f5f9;

  // Shadows
  --spel-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --spel-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --spel-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --spel-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --spel-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);

  // Transitions
  --spel-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --spel-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --spel-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  // Border Radius
  --spel-radius-sm: 6px;
  --spel-radius: 8px;
  --spel-radius-md: 12px;
  --spel-radius-lg: 16px;
  --spel-radius-xl: 24px;
}

// ===== Enhanced Dashboard Container =====
.spel_dashboard {
  background: var(--spel-bg-primary);
  min-height: calc(100vh - 32px);
  position: relative;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(
      135deg,
      var(--spel-primary) 0%,
      var(--spel-primary-light) 50%,
      #c084fc 100%
    );
    opacity: 0.05;
    pointer-events: none;
  }
}

// ===== Enhanced Sidebar Navigation =====
.spel_dashboard .sidebar_navigation {
  .sticky_sidebar {
    background: var(--spel-bg-secondary);
    border-radius: var(--spel-radius-lg);
    box-shadow: var(--spel-shadow-md);
    overflow: hidden;
    border: 1px solid var(--spel-border-light);
  }

  .tab_left_content {
    padding: 8px;
    margin: 0;

    li {
      margin-bottom: 4px;

      &:last-child {
        margin-bottom: 0;
      }

      .icon {
        width: 40px;
        height: 40px;
        border-radius: var(--spel-radius);
        transition: all var(--spel-transition);
        box-shadow: var(--spel-shadow-sm);

        i {
          font-size: 18px;
          transition: transform var(--spel-transition);
        }
      }
    }

    .tab-menu-link {
      border-radius: var(--spel-radius);
      overflow: hidden;
      position: relative;
      box-shadow: none;

      &::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 0;
        background: linear-gradient(
          180deg,
          var(--spel-primary) 0%,
          var(--spel-primary-light) 100%
        );
        border-radius: 0 3px 3px 0;
        transition: height var(--spel-transition);
      }

      &:hover {
        .tab_menu_contents {
          background: linear-gradient(
            90deg,
            rgba(116, 96, 255, 0.08) 0%,
            rgba(157, 112, 255, 0.04) 100%
          );
        }

        .icon {
          transform: scale(1.05);

          i {
            transform: scale(1.1);
          }
        }
      }

      .tab_menu_contents {
        padding: 16px 20px;
        transition: all var(--spel-transition);
        border-radius: var(--spel-radius);

        .content {
          h3 {
            font-size: 15px;
            font-weight: 600;
            color: var(--spel-text-primary);
            margin-bottom: 2px;
            transition: color var(--spel-transition);
          }

          p {
            font-size: 13px;
            color: var(--spel-text-secondary);
            transition: color var(--spel-transition);
          }
        }
      }

      &.active {
        background: linear-gradient(
          90deg,
          rgba(116, 96, 255, 0.08) 0%,
          rgba(157, 112, 255, 0.02) 100%
        );

        &::before {
          height: 60%;
        }

        .tab_menu_contents {
          background: transparent; // Removed the intense gradient
          box-shadow: none;

          .icon {
            background: linear-gradient(
              135deg,
              var(--spel-primary) 0%,
              var(--spel-primary-light) 100%
            ) !important;
            box-shadow: var(--spel-shadow-md);
            i {
              color: #fff;
            }
          }

          .content h3 {
             color: var(--spel-primary) !important;
          }
          .content p {
            color: var(--spel-text-secondary) !important;
          }
        }
      }
    }
  }
}

// ===== Enhanced Tab Contents Area =====
.spel_dashboard .tab_contents {
  position: relative;

  // Animated Tab Transition
  .tab-box {
    animation: fadeIn var(--spel-transition-slow) ease-out;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  // Enhanced Dashboard Banner
  .dashboard_banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--spel-radius-lg);
    padding: 50px 60px;
    background: linear-gradient(
      135deg,
      var(--spel-primary) 0%,
      var(--spel-primary-light) 50%,
      #a78bfa 100%
    );
    box-shadow: var(--spel-shadow-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    &::before {
      content: "";
      position: absolute;
      top: -50%;
      right: -20%;
      width: 500px;
      height: 500px;
      background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 70%
      );
      animation: floatBubble 15s infinite ease-in-out;
    }

    &::after {
      content: "";
      position: absolute;
      bottom: -30%;
      left: -10%;
      width: 400px;
      height: 400px;
      background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 60%
      );
      animation: floatBubble 20s infinite ease-in-out reverse;
    }

    @keyframes floatBubble {
      0%,
      100% {
        transform: translate(0, 0) scale(1);
      }
      50% {
        transform: translate(30px, -30px) scale(1.1);
      }
    }

    // Banner content styling
    .banner_content {
      position: relative;
      z-index: 2;
      flex: 1;
      padding-right: 40px;
    }

    .version_badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 14px;
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(8px);
      border-radius: 50px;
      font-size: 12px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 16px;
      border: 1px solid rgba(255, 255, 255, 0.2);

      i {
        font-size: 14px;
      }
    }

    h2 {
      font-size: 32px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 12px;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    p {
      font-size: 15px;
      color: rgba(255, 255, 255, 0.9);
      max-width: 600px;
      line-height: 1.7;
    }

    img {
      filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.2));
      transition: transform var(--spel-transition);
      max-width: 280px;
      height: auto;
      object-fit: contain;
      flex-shrink: 0;

      &:hover {
        transform: scale(1.02);
      }
    }
  }

  // ===== Quick Stats Cards =====
  .quick_stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 24px;
    margin-bottom: 24px;

    @media (max-width: 1200px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 768px) {
      grid-template-columns: 1fr;
    }
  }

  .stat_card {
    background: var(--spel-bg-secondary);
    border-radius: var(--spel-radius-md);
    padding: 24px;
    box-shadow: var(--spel-shadow);
    border: 1px solid var(--spel-border-light);
    transition: all var(--spel-transition);
    position: relative;
    overflow: hidden;

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 100%;
      border-radius: 4px 0 0 4px;
      transition: width var(--spel-transition);
    }

    &:hover {
      transform: translateY(-2px);
      box-shadow: var(--spel-shadow-lg);

      &::before {
        width: 100%; // Full background fill on hover
        opacity: 0.1;
      }

      .stat_icon {
        transform: scale(1.1) rotate(5deg);
      }

      .stat_icon {
        transform: scale(1.1);
      }
    }

    &.stat_elements::before {
      background: linear-gradient(
        180deg,
        var(--spel-primary) 0%,
        var(--spel-primary-light) 100%
      );
    }
    &.stat_features::before {
      background: linear-gradient(180deg, var(--spel-success) 0%, #34d399 100%);
    }
    &.stat_active::before {
      background: linear-gradient(180deg, var(--spel-info) 0%, #60a5fa 100%);
    }
    &.stat_pro::before {
      background: linear-gradient(180deg, #ec4899 0%, #f472b6 100%);
    }

    .stat_header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }

    .stat_icon {
      width: 48px;
      height: 48px;
      border-radius: var(--spel-radius);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      transition: transform var(--spel-transition);
    }

    &.stat_elements .stat_icon {
      background: linear-gradient(
        135deg,
        rgba(116, 96, 255, 0.12) 0%,
        rgba(157, 112, 255, 0.08) 100%
      );
      color: var(--spel-primary);
    }
    &.stat_features .stat_icon {
      background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.12) 0%,
        rgba(52, 211, 153, 0.08) 100%
      );
      color: var(--spel-success);
    }
    &.stat_active .stat_icon {
      background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.12) 0%,
        rgba(96, 165, 250, 0.08) 100%
      );
      color: var(--spel-info);
    }
    &.stat_pro .stat_icon {
      background: linear-gradient(
        135deg,
        rgba(236, 72, 153, 0.12) 0%,
        rgba(244, 114, 182, 0.08) 100%
      );
      color: #ec4899;
    }

    .stat_value {
      font-size: 32px;
      font-weight: 700;
      color: var(--spel-text-primary);
      font-family: $rob;
      line-height: 1;
    }

    .stat_label {
      font-size: 13px;
      color: var(--spel-text-secondary);
      margin-top: 4px;
      font-weight: 500;
    }

    .stat_trend {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 12px;
      font-weight: 600;
      padding: 4px 8px;
      border-radius: 50px;

      &.trend_up {
        color: var(--spel-success);
        background: var(--spel-success-light);
      }

      &.trend_info {
        color: var(--spel-info);
        background: var(--spel-info-light);
      }
    }
  }

  .support_item {
    background: var(--spel-bg-secondary);
    border-radius: var(--spel-radius-md);
    padding: 32px;
    border: 1px solid var(--spel-border-light);
    box-shadow: var(--spel-shadow);
    transition: all var(--spel-transition);
    // height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    .dashboard_btn {
        // margin-top: auto;
        // width: 100%;
    }

    &:hover {
      box-shadow: var(--spel-shadow-lg);
      transform: translateY(-2px);
      border-color: rgba(116, 96, 255, 0.2);

      .icon {
        transform: scale(1.1) rotate(-5deg);
      }
    }

    .icon {
      width: 60px;
      height: 60px;
      background: linear-gradient(
        135deg,
        rgba(116, 96, 255, 0.12) 0%,
        rgba(157, 112, 255, 0.08) 100%
      );
      border-radius: var(--spel-radius-md);
      font-size: 26px;
      color: var(--spel-primary);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
      transition: transform var(--spel-transition);
    }

    .dashboard_title {
      font-size: 20px;
      font-weight: 600;
      color: var(--spel-text-primary);
      margin-bottom: 0;
    }

    p {
      font-size: 14px;
      color: var(--spel-text-secondary);
      line-height: 1.7;
      margin-bottom: 20px;
    }
  }

  .quick_links_grid {
    margin-top: 30px;

    .ezd-lg-col-6 {
        margin-bottom: 24px;
    }
  }

  // ===== Enhanced System Requirements =====
  .section_header.has_flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 10px;
  }

  .badge_success {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    background: var(--spel-success-light);
    color: var(--spel-success);
    border: 1px solid rgba(34, 197, 94, 0.2);

    i {
        font-size: 14px;
    }
  }

  .note {
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(59, 130, 246, 0.08); // Soft blue
    border-radius: var(--spel-radius);
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    gap: 16px;
    align-items: flex-start;

    i {
        font-size: 20px;
        color: var(--spel-info);
        flex-shrink: 0;
        margin-top: 2px;
    }

    p {
        margin: 0;
        font-size: 14px;
        color: var(--spel-text-secondary);
        line-height: 1.6;
    }
  }

  .requirement_list {
    border-radius: var(--spel-radius);
    overflow: hidden;
    border: 1px solid var(--spel-border-light);

    li {
      background: var(--spel-bg-secondary);
      padding: 18px 24px;
      border-bottom: 1px solid var(--spel-border-light);
      display: flex;
      align-items: center;
      transition: background var(--spel-transition);

      &:nth-child(odd) {
         background: rgba(241, 245, 249, 0.7); // Deeper zebra stripe
      }

      &:last-child {
        border-bottom: none;
      }

      &:hover {
        background: var(--spel-bg-tertiary);
      }

      strong {
        font-size: 14px;
        font-weight: 600;
        color: var(--spel-text-primary);
        flex: 0 0 50%;
      }

      span {
        font-size: 14px;
        color: var(--spel-text-secondary);
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 500;

        &.valid {
          i {
            background: var(--spel-success);
            box-shadow: 0 2px 4px rgba(34, 197, 94, 0.4);
            transform: scale(1.1);
          }
        }

        &.invalid {
          i {
            background: var(--spel-error);
            box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
          }
        }
      }

      i {
        font-size: 10px;
        width: 24px;
        height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%; // Circular status icons
        color: #fff;
        transition: transform var(--spel-transition);
      }
    }
  }

  // ===== Enhanced Buttons =====
  .dashboard_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--spel-primary);
    background: transparent;
    border: 2px solid var(--spel-primary);
    border-radius: var(--spel-radius);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--spel-transition);
    position: relative;
    overflow: hidden;

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(
        90deg,
        var(--spel-primary) 0%,
        var(--spel-primary-light) 100%
      );
      opacity: 0;
      transition: opacity var(--spel-transition);
      z-index: -1;
    }

    &:hover {
      color: #fff;
      color: #fff;
      border-color: var(--spel-primary);
      transform: translateY(-2px); // Slightly more lift
      box-shadow: 0 4px 15px rgba(116, 96, 255, 0.35);

      &::before {
        opacity: 1;
      }

      i {
        transform: translateX(3px);
      }
    }

    i {
      transition: transform var(--spel-transition);
    }

    &.save_btn {
      color: #fff;
      background: linear-gradient(
        90deg,
        var(--spel-primary) 0%,
        var(--spel-primary-light) 100%
      );
      border: none;
      padding: 14px 28px;
      box-shadow: 0 2px 8px rgba(116, 96, 255, 0.25);

      &:hover {
        box-shadow: 0 6px 20px rgba(116, 96, 255, 0.4);
        transform: translateY(-2px);
      }

      &.save-now {
        animation: pulse 1.5s infinite;
      }

      @keyframes pulse {
        0%,
        100% {
          box-shadow: 0 2px 8px rgba(116, 96, 255, 0.25);
        }
        50% {
          box-shadow: 0 2px 20px rgba(116, 96, 255, 0.5);
        }
      }
    }

    &.activated {
      background: var(--spel-success-light);
      color: var(--spel-success);
      border-color: var(--spel-success-light);
      pointer-events: none;

      &::before {
        display: none;
      }
    }
  }

  // ===== Enhanced Elements Tab Menu Header =====
  .elements_tab_menu {
    background: var(--spel-bg-secondary);
    border-radius: var(--spel-radius-md);
    padding: 20px 24px;
    box-shadow: var(--spel-shadow);
    border: 1px solid var(--spel-border-light);
    margin-bottom: 0;

    .tab_contents {
      .icon {
        width: 44px;
        height: 44px;
        border-radius: var(--spel-radius);
        font-size: 20px;
      }

      .content h3 {
        font-size: 18px;
        font-weight: 700;
        color: var(--spel-text-primary);
      }
    }

    .menu_right_content {
      gap: 20px;

      .plugin_active_switcher {
        background: var(--spel-bg-tertiary);
        padding: 8px 16px;
        border-radius: var(--spel-radius);

        .toggler {
          font-size: 13px;
          font-weight: 500;
          color: var(--spel-text-secondary);
          transition: color var(--spel-transition);
          line-height: 2;

          &:hover {
            color: var(--spel-text-primary);
          }
        }

        .switch {
          width: 44px;
          height: 24px;
          background: var(--spel-text-muted);
          border-radius: 50px;
          margin: 0 16px;

          &::before {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            left: 3px;
            top: 3px;
            box-shadow: var(--spel-shadow-sm);
          }
        }

        input:checked + .switch {
          background: linear-gradient(
            90deg,
            var(--spel-success) 0%,
            #34d399 100%
          );

          &::before {
            transform: translateX(20px);
          }
        }
      }
    }
  }

  // ===== Enhanced Filter Tabs =====
  .elements_tab {
    background: var(--spel-bg-secondary);
    padding: 12px 16px;
    border-radius: var(--spel-radius);
    margin: 20px 0;
    display: flex;
    gap: 8px;
    box-shadow: var(--spel-shadow-sm);
    border: 1px solid var(--spel-border-light);

    .filter_data {
      padding: 10px 20px;
      font-size: 14px;
      font-weight: 500;
      color: var(--spel-text-secondary);
      border-radius: var(--spel-radius-sm);
      cursor: pointer;
      transition: all var(--spel-transition);
      display: flex;
      align-items: center;
      gap: 8px;

      i {
        font-size: 14px;
        transition: transform var(--spel-transition);
      }

      &:hover {
        background: var(--spel-bg-tertiary);
        color: var(--spel-text-primary);

        i {
          transform: scale(1.15);
        }
      }

      &.active {
        background: linear-gradient(
          90deg,
          var(--spel-primary) 0%,
          var(--spel-primary-light) 100%
        );
        color: #fff;
        box-shadow: 0 2px 8px rgba(116, 96, 255, 0.25);
      }
    }
  }

  // ===== Search Box Enhancement =====
  .spel_search_box {
    background: var(--spel-bg-secondary);
    padding: 16px 20px;
    border-radius: var(--spel-radius);
    margin-bottom: 20px;
    box-shadow: var(--spel-shadow-sm);
    border: 1px solid var(--spel-border-light);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 5px;

    .search_icon {
      color: var(--spel-text-muted);
      font-size: 18px;
    }

    input {
      flex: 1;
      border: none;
      background: transparent;
      font-size: 14px;
      color: var(--spel-text-primary);
      outline: none;

      &::placeholder {
        color: var(--spel-text-muted);
      }
    }

    .search_count {
      font-size: 13px;
      color: var(--spel-text-muted);
      padding: 4px 10px;
      background: var(--spel-bg-tertiary);
      border-radius: var(--spel-radius-sm);
    }
  }

  // ===== Enhanced Element Box Cards =====
  .element_box {
    background: var(--spel-bg-secondary);
    border-radius: var(--spel-radius-md);
    padding: 26px;
    box-shadow: var(--spel-shadow);
    border: 1px solid var(--spel-border-light);
    transition: all var(--spel-transition);
    position: relative;
    overflow: hidden;

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(
        90deg,
        var(--spel-primary) 0%,
        var(--spel-primary-light) 100%
      );
      opacity: 0;
      transition: opacity var(--spel-transition);
    }

    &:hover {
      transform: translateY(-3px);
      box-shadow: var(--spel-shadow-lg);
      border-color: rgba(116, 96, 255, 0.2);

      &::before {
        opacity: 1;
      }

      .element_content i {
        transform: scale(1.15);
        color: var(--spel-primary);
      }

      .element_right .link {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
      }
    }

    .element_content {
      i {
        font-size: 28px;
        color: var(--spel-text-primary);
        margin-right: 16px;
        transition: all var(--spel-transition);
      }

      label {
        font-size: 14px;
        font-weight: 500;
        color: var(--spel-text-primary);
      }
    }

    .element_right {
      .link {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-5px);
        transition: all var(--spel-transition);
        display: flex;
        gap: 8px;

        a {
          width: 28px;
          height: 28px;
          display: flex !important;
          align-items: center;
          justify-content: center;
          background: var(--spel-bg-tertiary);
          border-radius: var(--spel-radius-sm);
          transition: all var(--spel-transition);

          &:hover {
            background: var(--spel-primary);

            img {
              filter: brightness(0) invert(1);
            }
          }

          img {
            width: 14px;
            height: 14px;
            transition: filter var(--spel-transition);
          }
        }
      }

      .switch_label {
        cursor: pointer;

        .widget_switcher {
          width: 44px;
          height: 24px;
          background: var(--spel-text-muted);
          border-radius: 50px;
          position: relative;
          transition: background var(--spel-transition);

          &::before {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            left: 3px;
            top: 3px;
            box-shadow: var(--spel-shadow-sm);
            transition: transform var(--spel-transition);
          }
        }

        input:checked + .widget_switcher {
          background: linear-gradient(
            90deg,
            var(--spel-success) 0%,
            #34d399 100%
          );

          &::before {
            transform: translateX(20px);
          }
        }

        input:disabled + .widget_switcher {
          opacity: 0.5;
          cursor: not-allowed;
        }
      }
    }
  }

  // Pro Badge Enhancement
  .filter_content .pro .badge::before {
    width: 70px;
    height: 70px;
    left: -38px;
    top: -38px;
    font-size: 9px;
    font-weight: 700;
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    letter-spacing: 0.5px;
  }

  // ===== Enhanced Integration Section =====
  .integration_banner {
    background: linear-gradient(
      135deg,
      var(--spel-primary) 0%,
      var(--spel-primary-light) 50%,
      #a78bfa 100%
    ) !important;
    padding: 45px 50px !important;
    border-radius: var(--spel-radius-lg) !important;

    h2 {
      font-size: 28px !important;
      font-weight: 700 !important;
    }

    p {
      font-size: 15px !important;
      max-width: 700px;
    }
  }

  .integration_item {
    background: var(--spel-bg-secondary);
    border-radius: var(--spel-radius-md);
    padding: 32px;
    box-shadow: var(--spel-shadow);
    border: 1px solid var(--spel-border-light);
    transition: all var(--spel-transition);

    &:hover {
      transform: translateY(-4px);
      box-shadow: var(--spel-shadow-lg);
      border-color: rgba(116, 96, 255, 0.2);

      img {
        transform: scale(1.1);
      }
    }

    img {
      width: 52px;
      height: auto;
      transition: transform var(--spel-transition);
    }

    h3 {
      font-size: 17px;
      font-weight: 600;
      color: var(--spel-text-primary);
      margin-top: 16px;
      margin-bottom: 10px;
    }

    p {
      font-size: 14px;
      color: var(--spel-text-secondary);
      line-height: 1.65;
      min-height: 50px;
    }

    .action_buttons {
      display: flex;
      gap: 10px;
      justify-content: center;
      align-items: center;
      margin-top: 20px;

      .dashboard_btn {
        width: 100%;

        &.learn_more_btn {
          background: var(--spel-bg-tertiary);
          color: var(--spel-text-secondary);
          border: 1px solid var(--spel-border-light);

          &:hover {
            background: var(--spel-bg-primary);
            color: #fff;
            border-color: var(--spel-border);
          }
        }
      }
    }
  }

  // ===== Enhanced Note Section =====
  .note {
    background: linear-gradient(
      135deg,
      rgba(116, 96, 255, 0.08) 0%,
      rgba(157, 112, 255, 0.04) 100%
    );
    border: 1px solid rgba(116, 96, 255, 0.1);
    padding: 16px 24px;
    margin-top: 20px;
    border-radius: var(--spel-radius);
    display: flex;
    align-items: flex-start;
    gap: 12px;

    &::before {
      content: "\f05a"; // Info icon
      font-family: "Font Awesome 6 Pro", "Font Awesome 5 Free", sans-serif;
      font-weight: 900;
      color: var(--spel-primary);
      font-size: 18px;
      margin-top: 2px;
    }

    p {
      font-size: 13px !important;
      color: var(--spel-text-secondary) !important;
      line-height: 1.6 !important;
      margin: 0 !important;
    }
  }

  // ===== Pro Popup Enhancement =====
  .elements_pro_popup {
    .message_content {
      border-radius: var(--spel-radius-lg);
      padding: 48px 40px;
      max-width: 420px;
      box-shadow: var(--spel-shadow-xl);

      .pro-close {
        position: absolute;
        right: 16px;
        top: 16px;
        width: 32px;
        height: 32px;
        background: var(--spel-bg-tertiary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all var(--spel-transition);

        &:hover {
          background: var(--spel-error-light);
        }

        img {
          width: 12px;
          opacity: 0.7;
        }
      }

      .pro-icon {
        width: 72px;
        height: 72px;
        background: linear-gradient(
          135deg,
          rgba(236, 72, 153, 0.1) 0%,
          rgba(244, 114, 182, 0.05) 100%
        );
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;

        img {
          width: 36px;
        }
      }

      h3 {
        font-size: 24px;
        font-weight: 700;
        color: var(--spel-text-primary);
        margin-bottom: 10px;
      }

      p {
        font-size: 15px;
        color: var(--spel-text-secondary);
        line-height: 1.6;
      }

      .dashboard_btn {
        margin-top: 16px;
        background: linear-gradient(90deg, #ec4899 0%, #f472b6 100%);
        border: none;
        color: #fff;

        &:hover {
          box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
        }
      }
    }
  }
}

// ===== Toast Notifications =====
.spel_toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--spel-bg-secondary);
  padding: 16px 24px;
  border-radius: var(--spel-radius);
  box-shadow: var(--spel-shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--spel-transition-slow);
  border-left: 4px solid var(--spel-success);

  &.show {
    transform: translateY(0);
    opacity: 1;
  }

  &.toast_error {
    border-left-color: var(--spel-error);

    .toast_icon {
      background: var(--spel-error-light);
      color: var(--spel-error);
    }
  }

  .toast_icon {
    width: 36px;
    height: 36px;
    background: var(--spel-success-light);
    color: var(--spel-success);
    border-radius: var(--spel-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }

  .toast_content {
    h4 {
      font-size: 14px;
      font-weight: 600;
      color: var(--spel-text-primary);
      margin: 0 0 2px;
    }

    p {
      font-size: 13px;
      color: var(--spel-text-secondary);
      margin: 0;
    }
  }

  .toast_close {
    margin-left: 16px;
    cursor: pointer;
    color: var(--spel-text-muted);
    transition: color var(--spel-transition);

    &:hover {
      color: var(--spel-text-primary);
    }
  }
}

// ===== Responsive Adjustments =====
@media (max-width: 1400px) {
  .spel_dashboard {
    .tab_contents {
      .dashboard_banner {
        padding: 40px;

        h2 {
          font-size: 28px;
        }
      }

      .stat_card {
        padding: 20px;

        .stat_value {
          font-size: 28px;
        }
      }
    }
  }
}

@media (max-width: 1200px) {
  .spel_dashboard {
    .tab_contents {
      .quick_stats {
        grid-template-columns: repeat(2, 1fr);
      }
    }
  }
}

@media (max-width: 768px) {
  .spel_dashboard {
    .tab_contents {
      .quick_stats {
        grid-template-columns: 1fr;
      }

      .elements_tab_menu {
        flex-direction: column;
        gap: 16px;

        .menu_right_content {
          width: 100%;
          justify-content: space-between;
        }
      }

      .elements_tab {
        flex-wrap: wrap;
      }
    }
  }
}
