/** === Codestar options / Pro Alert === **/
.csf-field-image_select figure {
  width: 100px;
  border-radius: 10px;

  img {
    border-radius: 10px;
  }
}

.csf-field .csf-title {
  width: 30%;
}

.csf-field .csf-fieldset {
  width: calc(70% - 25px);
}

.csf-nav.csf-nav-normal.csf-nav-options {
  ul li a {
    display: flex;
    align-items: baseline;
  }
}

/** === Codestar Fontawesome replaced with Dashicons === **/
.csf-field .chosen-container-single .chosen-single div b:before,
.csf-nav ul li .csf-arrow:after {
  content: "\f347";
  font-family: dashicons;
  font-size: 12px;
}

.csf-field .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:before {
  content: "\f335" !important;
  font-family: dashicons;
}

.csf-field .chosen-container-active.chosen-with-drop .chosen-single div b:before {
  content: "\f343";
  font-family: dashicons;
}

.csf-cloneable-remove {
    position: absolute;
    top: -2px;
    right: 15px;
    color: #d63638 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    width: 69px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 5;

  &:before {
    font-family: dashicons !important;
    content: "\f182" !important;
    /* dashicons-trash */
  }

  &:hover {
    color: #b32d2e !important;
  }
}

.csf-cloneable-title {
  cursor: move;
}

body {
  &.bbpc-no-pro {
    .st-pro-notice {
      &.csf-field {
        position: relative;
        cursor: pointer;

        &::before {
          content: "Pro";
          background-color: #f1bd6c;
          color: #000;
          padding: 3px 10px;
          border-radius: 3px;
          margin-bottom: 10px;
        }

        &::after {
          position: absolute;
          content: "";
          width: 100%;
          height: 100%;
          top: 0;
          left: 0;
          background-color: transparent;
          z-index: 2;
        }
      }

      .csf-fieldset,
      .csf-title {
        opacity: 0.5;
        pointer-events: none;
      }
    }
  }

  &.bbpc-no-promax {
    .st-promax-notice {
      &.csf-field {
        position: relative;
        cursor: pointer;

        &::before {
          content: "ProMax";
          background-color: #f1bd6c;
          color: #000;
          padding: 3px 10px;
          border-radius: 3px;
          margin-bottom: 10px;
        }

        &::after {
          position: absolute;
          content: "";
          width: 100%;
          height: 100%;
          top: 0;
          left: 0;
          background-color: transparent;
          z-index: 2;
        }
      }

      .csf-fieldset,
      .csf-title {
        opacity: 0.5;
        pointer-events: none;
      }
    }
  }
}

.upgrade-link {
  background-color: #f1bd6c;
  color: #000;
  padding: 2px 6px;
}

.swal2-styled.swal2-confirm.upgrade-premium-button {
  background-color: #f1bd6c;
  outline: none;
  box-shadow: none !important;
}

.swal2-title.upgrade-premium-heading {
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
  margin-bottom: -15px;
}

.pro-notification-body-text {
  font-size: 15px;
  display: block;
  margin-bottom: 25px;
}

.swal2-styled.swal2-confirm.upgrade-premium-button>a {
  color: black;
  font-weight: normal;
}

.swal2-footer.notification-pro-footer-wrap {
  border-top: none;
  margin: 8px 0px 0px;
  padding: 0px;
}

.swal2-html-container {
  line-height: 1.6;
}

#customize-controls .csf-field-image_select img {
  width: 85px;
  height: auto;
}

.notice.is-dismissible.bottom-10 {
  padding-bottom: 15px;
}

.notice-warning.eaz-notice {
  background: #ffffbe;
}

.header-notify-icon .notify-icon {
  padding-top: 10px;
  margin: auto;
}

.bbpc-core-main * {
  box-sizing: border-box;
}

.forumax-main .forumax-intro {
  font-size: 16px;
}

.bbpc-stat-cards {
  display: flex;
  gap: 30px;
}

.bbpc-stat-card {
  background-color: #fff;
}

.bbpc-dashboard {
  display: flex
}

.bbpc-panel {
  width: 250px;
  border-right: 1px solid #ccc;
  margin-right: 20px;
}

.bbpc-logo {
  margin-bottom: 50px;
}

.bbpc-stats {
  flex-basis: 3;
}

.bbpc-heading {
  margin-bottom: 60px;
}

.bbpc-card-heading h2 {
  margin: 0;
  background: #ddd;
  padding: 10px;
  line-height: 1;
}

/* Menu */
.bbpc-group-menu li a {
  border: 1px solid #6831c1;
  background: #6831c1;
  color: #fff;
  text-decoration: none;
  box-sizing: border-box;
  display: block;
  font-size: 15px;
  width: calc(100% - 20px);
  padding: 10px 20px;
  font-weight: 500;
  letter-spacing: 0px;
}

.bbpc-card-data {
  padding: 15px 25px;
}

.forum-info {
  display: flex;
  flex-wrap: wrap;
}

.forum-info li {
  flex: 50%;
  margin-bottom: 20px;
  font-size: 14px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 18px;
}

.forum-info li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

#bbpc-forum {
  transition: 0.3s all ease;
}

#bbpc-forum:hover {
  color: var(--clr-white);
}

.bbpc-approve-btn {
  margin-left: 10px;
  margin-right: 3px;
  border: 1px solid #2DB22D;
  color: #2DB22D;
  border-radius: 50%;
  text-decoration: none;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;

  &:hover {
    border: 1px solid #07a207;
    color: #07a207;
  }
}

.bbpc-filter-btn-settings {
  .csf--sibling {
    &.csf--active {
      border: 1px solid #2DB22D;
      background-color: #2DB22D;
    }
  }
}

/** === FS contents === **/
#fs_connect {

  .fs-header .fs-plugin-icon,
  .fs-header .fs-plugin-icon img {
    height: auto;
  }

  .fs-content {
    h2 {
      font-size: 28px;
      margin: 15px auto;
      line-height: 1.2 !important;
    }

    p {
      font-size: 16px !important;
      text-align: center;
      line-height: 1.7;
    }
  }

  .fs-box-container {
    border-radius: 15px;
  }
}

/** === Notification & Mini profile CSS === **/
.csf-field-fieldset {
  .csf-fieldset-content {

    &[data-depend-id='bbpc_notification_location'],
    &[data-depend-id='bbpc_profile_location'] {
      >.csf-field {
        width: 100%;
        display: flex;

        .csf-after-text {
          font-size: 12px;
        }

        input {
          width: 95%;
        }

        &.csf-field-select {
          >.csf-fieldset {
            display: flex;
            gap: 10px;
          }
        }
      }
    }
  }
}

#bbpc_forum_option_link,
#bbpc_topic_option_link {
  text-decoration: none;
  width: 220px;
  background: #050505;
  display: block;
  color: rgba(255, 255, 255, 0.7019607843);
  text-transform: uppercase;
  padding-top: 100px;
  padding-bottom: 100px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px black;
  float: left;
  margin: 0 20px 0 0;
}

/** === Forumax Pro Upgrade Offer Notice === **/

// Variables - Premium Dark Theme with Vibrant Accents
$frmx-offer-primary: #1e1b4b;      // Deep indigo
$frmx-offer-secondary: #312e81;    // Rich purple
$frmx-offer-tertiary: #4338ca;     // Bright indigo
$frmx-offer-accent: #fbbf24;       // Golden yellow
$frmx-offer-accent-hover: #f59e0b;
$frmx-offer-success: #34d399;      // Emerald
$frmx-offer-text: #ffffff;
$frmx-offer-text-muted: rgba(255, 255, 255, 0.75);

// Keyframe Animations
@keyframes frmx-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes frmx-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes frmx-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes frmx-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes frmx-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes frmx-morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

// Main Notice Container
.frmx-offer-notice {
  position: relative;
  background: linear-gradient(135deg, $frmx-offer-primary 0%, $frmx-offer-secondary 40%, $frmx-offer-tertiary 100%);
  border-radius: 16px;
  padding: 28px 36px;
  margin: 20px 20px 20px 0;
  color: $frmx-offer-text;
  box-shadow: 
    0 4px 6px -1px rgba(30, 27, 75, 0.4),
    0 10px 15px -3px rgba(30, 27, 75, 0.3),
    0 20px 25px -5px rgba(67, 56, 202, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);

  &.frmx-offer-visible {
    opacity: 1;
    transform: translateY(0);
  }

  // Geometric Background Pattern
  .frmx-offer-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
      // Subtle grid pattern
      linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      // Radial glows
      radial-gradient(ellipse at 10% 90%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
      radial-gradient(ellipse at 90% 10%, rgba(99, 102, 241, 0.2) 0%, transparent 40%),
      radial-gradient(ellipse at 50% 50%, rgba(67, 56, 202, 0.1) 0%, transparent 60%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%, 100% 100%;
    pointer-events: none;
  }

  // Animated Glow Orbs
  .frmx-offer-glow {
    position: absolute;
    pointer-events: none;
    
    // Main golden glow (top right)
    &::before {
      content: '';
      position: absolute;
      top: -80px;
      right: -40px;
      width: 250px;
      height: 250px;
      background: radial-gradient(circle, rgba(251, 191, 36, 0.35) 0%, rgba(251, 191, 36, 0.1) 40%, transparent 70%);
      animation: frmx-glow 4s ease-in-out infinite;
      border-radius: 50%;
    }
    
    // Secondary purple orb (bottom left)
    &::after {
      content: '';
      position: absolute;
      bottom: -100px;
      left: -60px;
      width: 200px;
      height: 200px;
      background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(99, 102, 241, 0.1) 50%, transparent 70%);
      animation: frmx-glow 5s ease-in-out infinite reverse;
      animation-delay: 1s;
      border-radius: 50%;
    }
  }

  // Action Buttons (Dismiss & Snooze)
  .frmx-offer-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 10;
  }

  .frmx-offer-snooze,
  .frmx-offer-dismiss {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 10px;
    color: $frmx-offer-text;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;

    .dashicons {
      font-size: 16px;
      width: 16px;
      height: 16px;
    }

    &:hover {
      background: rgba(255, 255, 255, 0.25);
      border-color: rgba(255, 255, 255, 0.4);
    }
  }

  .frmx-offer-dismiss {
    padding: 6px 8px;
  }

  // Container Layout
  .frmx-offer-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.5fr auto;
    gap: 32px;
    align-items: center;
    z-index: 5;
  }

  // Header Section
  .frmx-offer-header {
    .frmx-offer-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(245, 158, 11, 0.2);
      border: 1px solid rgba(245, 158, 11, 0.4);
      border-radius: 20px;
      padding: 4px 12px;
      font-size: 12px;
      font-weight: 600;
      margin-bottom: 12px;
      animation: frmx-pulse 2s ease-in-out infinite;

      .frmx-offer-badge-icon {
        font-size: 14px;
      }
    }

    .frmx-offer-headline {
      font-size: 20px;
      font-weight: 700;
      margin: 0 0 8px 0;
      line-height: 1.3;
      color: $frmx-offer-text;
    }

    .frmx-offer-subheadline {
      font-size: 14px;
      color: $frmx-offer-text-muted;
      margin: 0;
      line-height: 1.5;
    }
  }

  // Features Grid
  .frmx-offer-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .frmx-offer-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    transition: all 0.2s ease;

    &:hover {
      background: rgba(255, 255, 255, 0.15);
      transform: translateY(-2px);
    }

    .dashicons {
      font-size: 20px;
      width: 20px;
      height: 20px;
      color: $frmx-offer-accent;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .frmx-offer-feature-text {
      display: flex;
      flex-direction: column;
      gap: 2px;

      strong {
        font-size: 13px;
        font-weight: 600;
        color: $frmx-offer-text;
      }

      span {
        font-size: 11px;
        color: $frmx-offer-text-muted;
      }
    }
  }

  // CTA Section
  .frmx-offer-cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
  }

  // Discount Badge
  .frmx-offer-discount {
    display: flex;
    align-items: baseline;
    gap: 4px;
    animation: frmx-float 3s ease-in-out infinite;

    .frmx-offer-discount-value {
      font-size: 42px;
      font-weight: 800;
      color: $frmx-offer-accent;
      text-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
      line-height: 1;
    }

    .frmx-offer-discount-label {
      font-size: 18px;
      font-weight: 700;
      color: $frmx-offer-accent;
    }
  }

  // Coupon Box
  .frmx-offer-coupon {
    text-align: center;

    .frmx-offer-coupon-label {
      display: block;
      font-size: 11px;
      color: $frmx-offer-text-muted;
      margin-bottom: 6px;
    }

    .frmx-offer-coupon-box {
      display: flex;
      align-items: center;
      gap: 6px;
      background: rgba(255, 255, 255, 0.15);
      border: 1px dashed rgba(255, 255, 255, 0.4);
      border-radius: 8px;
      padding: 6px 10px;
      position: relative;
    }

    .frmx-offer-coupon-code {
      font-family: 'SF Mono', 'Consolas', monospace;
      font-size: 14px;
      font-weight: 700;
      color: $frmx-offer-text;
      letter-spacing: 1px;
      background: transparent;
      padding: 0;
    }

    .frmx-offer-copy-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.2);
      border: none;
      border-radius: 4px;
      padding: 4px;
      cursor: pointer;
      transition: all 0.2s ease;

      .dashicons {
        font-size: 14px;
        width: 14px;
        height: 14px;
        color: $frmx-offer-text;
      }

      &:hover {
        background: rgba(255, 255, 255, 0.3);
      }

      &.copied {
        background: $frmx-offer-success;
      }
    }

    .frmx-offer-copy-success {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      align-items: center;
      gap: 4px;
      background: $frmx-offer-success;
      color: #fff;
      font-size: 11px;
      font-weight: 600;
      padding: 4px 10px;
      border-radius: 4px;
      margin-top: 6px;
      opacity: 0;
      visibility: hidden;
      transition: all 0.2s ease;
      white-space: nowrap;

      .dashicons {
        font-size: 12px;
        width: 12px;
        height: 12px;
      }

      &.show {
        opacity: 1;
        visibility: visible;
      }
    }
  }

  // CTA Button
  .frmx-offer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, $frmx-offer-accent 0%, darken($frmx-offer-accent, 10%) 100%);
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 
      0 4px 6px -1px rgba(245, 158, 11, 0.3),
      0 2px 4px -1px rgba(245, 158, 11, 0.2);
    transition: all 0.3s ease;
    background-size: 200% 200%;
    animation: frmx-shimmer 3s ease-in-out infinite;

    .dashicons {
      font-size: 16px;
      width: 16px;
      height: 16px;
      transition: transform 0.2s ease;
    }

    &:hover {
      transform: translateY(-2px);
      box-shadow: 
        0 6px 10px -1px rgba(245, 158, 11, 0.4),
        0 4px 6px -1px rgba(245, 158, 11, 0.3);
      color: #1f2937;

      .dashicons {
        transform: translateX(3px);
      }
    }

    &:active {
      transform: translateY(0);
    }
  }

  // Guarantee Text
  .frmx-offer-guarantee {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: $frmx-offer-text-muted;
    margin: 0;

    .dashicons {
      font-size: 14px;
      width: 14px;
      height: 14px;
      color: $frmx-offer-success;
    }
  }
}

// Responsive Design
@media (max-width: 1200px) {
  .frmx-offer-notice {
    .frmx-offer-container {
      grid-template-columns: 1fr 1fr;
      gap: 24px;
    }

    .frmx-offer-cta-section {
      grid-column: 1 / -1;
      flex-direction: row;
      justify-content: center;
      border-left: none;
      border-top: 1px solid rgba(255, 255, 255, 0.15);
      padding-left: 0;
      padding-top: 20px;
    }
  }
}

@media (max-width: 782px) {
  .frmx-offer-notice {
    padding: 20px;
    margin: 15px 10px 15px 0;

    .frmx-offer-container {
      grid-template-columns: 1fr;
      text-align: center;
    }

    .frmx-offer-header {
      .frmx-offer-badge {
        justify-content: center;
      }
    }

    .frmx-offer-features {
      grid-template-columns: 1fr;
    }

    .frmx-offer-cta-section {
      flex-direction: column;
      padding-top: 16px;
    }

    .frmx-offer-snooze-text {
      display: none;
    }
  }
}