/*--------------------------------------------------------------
# Pricing Page - EliteAdmin
--------------------------------------------------------------*/

.page-pricing {

  /* Page Header */
  .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
  }

  .page-header .page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0;
  }

  .page-header .breadcrumb {
    margin: 0;
    font-size: 0.8125rem;
  }

  /* Hero */
  .pricing-hero {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-lg) 0;
  }

  .pricing-hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 var(--spacing-sm);
  }

  .pricing-hero-desc {
    font-size: 1rem;
    color: var(--muted-color);
    margin: 0 0 var(--spacing-xl);
  }

  /* Billing Toggle - Switch Style */
  .pricing-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
  }

  .pricing-toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--light-color);
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;

    &.active {
      color: var(--heading-color);
      font-weight: 600;
    }
  }

  .pricing-save-pill {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    background: var(--success-color);
    color: var(--contrast-color);
    vertical-align: middle;
    margin-left: 0.125rem;
  }

  .pricing-toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    border: none;
    border-radius: 13px;
    background: var(--border-color-dark);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;

    &.active {
      background: var(--accent-color);

      .pricing-toggle-knob {
        transform: translateX(22px);
      }
    }
  }

  .pricing-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--contrast-color);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Pricing Grid */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    align-items: stretch;
  }

  /* Pricing Card - Base */
  .pricing-card {
    position: relative;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    &:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
    }
  }

  .pricing-card-header {
    text-align: center;
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color-light);
  }

  .pricing-card-price {
    text-align: center;
    padding: var(--spacing-lg) 0;
  }

  .pricing-card-body {
    flex: 1;
    padding: var(--spacing-md) 0;
  }

  .pricing-card-footer {
    text-align: center;
    padding-top: var(--spacing-md);
  }

  /* Featured Card */
  .pricing-card-featured {
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 32px color-mix(in srgb, var(--accent-color), transparent 75%);
    z-index: 1;
    overflow: hidden;

    &:hover {
      transform: translateY(-6px);
      box-shadow: 0 12px 40px color-mix(in srgb, var(--accent-color), transparent 65%);
    }

    .pricing-card-header {
      border-bottom-color: color-mix(in srgb, var(--accent-color), transparent 80%);
    }
  }

  .pricing-featured-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: var(--accent-color);
    color: var(--contrast-color);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .pricing-featured-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    pointer-events: none;
    filter: blur(60px);
  }

  .pricing-card-featured .pricing-card-header {
    padding-top: var(--spacing-lg);
  }

  /* Plan Icon */
  .pricing-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    margin: 0 auto var(--spacing-md);
  }

  .pricing-icon-free {
    background: var(--background-color);
    color: var(--muted-color);
  }

  .pricing-icon-pro {
    background: color-mix(in srgb, var(--accent-color), transparent 85%);
    color: var(--accent-color);
  }

  .pricing-icon-enterprise {
    background: var(--warning-color-light);
    color: var(--warning-color);
  }

  .pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 0.25rem;
  }

  .pricing-tagline {
    font-size: 0.8125rem;
    color: var(--muted-color);
    margin: 0;
  }

  /* Price Display */
  .pricing-amount-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.125rem;
    margin-bottom: 0.25rem;
  }

  .pricing-currency {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--heading-color);
    line-height: 1.5;
    margin-top: 0.25rem;
  }

  .pricing-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--heading-color);
    line-height: 1;
    letter-spacing: -0.03em;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .pricing-amount-changing {
    opacity: 0;
    transform: translateY(-6px);
  }

  .pricing-card-featured .pricing-amount {
    color: var(--accent-color);
  }

  .pricing-period {
    font-size: 0.8125rem;
    color: var(--light-color);
  }

  /* Feature List */
  .pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;

    li {
      display: flex;
      align-items: center;
      gap: 0.625rem;
      padding: 0.5rem 0;
      font-size: 0.875rem;
      color: var(--default-color);
    }
  }

  .pricing-check {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--success-color-light);
    color: var(--success-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  .pricing-check-accent {
    background: color-mix(in srgb, var(--accent-color), transparent 85%);
    color: var(--accent-color);
  }

  .pricing-x {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--background-color);
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
  }

  .pricing-feature-disabled {
    color: var(--light-color);
  }

  /* Buttons */
  .pricing-btn {
    width: 100%;
    height: 46px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
  }

  .pricing-btn-outline {
    color: var(--default-color);
    background: transparent;
    border: 1.5px solid var(--border-color-dark);

    &:hover {
      background: var(--background-color);
      border-color: var(--accent-color);
      color: var(--accent-color);
    }
  }

  .pricing-btn-primary {
    color: var(--contrast-color);
    background: var(--accent-color);
    border: 1.5px solid var(--accent-color);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--accent-color), transparent 60%);

    &:hover {
      background: color-mix(in srgb, var(--accent-color), black 10%);
      border-color: color-mix(in srgb, var(--accent-color), black 10%);
      box-shadow: 0 6px 20px color-mix(in srgb, var(--accent-color), transparent 50%);
      transform: translateY(-1px);
    }
  }

  .pricing-btn-dark {
    color: var(--contrast-color);
    background: var(--heading-color);
    border: 1.5px solid var(--heading-color);

    &:hover {
      opacity: 0.9;
    }
  }

  .pricing-trial-note {
    display: block;
    font-size: 0.75rem;
    color: var(--light-color);
    margin-top: var(--spacing-sm);
  }

  /* Trust Indicators */
  .pricing-trust {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-xl);
    border-top: 1px solid var(--border-color-light);
    border-bottom: 1px solid var(--border-color-light);
  }

  .pricing-trust-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted-color);

    i {
      font-size: 1.125rem;
      color: var(--success-color);
    }
  }

  /* Comparison Table */
  .pricing-compare-card {
    margin-bottom: var(--spacing-2xl);
  }

  .pricing-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;

    thead th {
      padding: var(--spacing-md) var(--spacing-lg);
      font-weight: 600;
      color: var(--heading-color);
      border-bottom: 2px solid var(--border-color);
      background: var(--surface-color);
    }

    tbody td {
      padding: 0.75rem var(--spacing-lg);
      border-bottom: 1px solid var(--border-color-light);
      color: var(--default-color);
    }

    tbody tr:last-child td {
      border-bottom: none;
    }

    tbody tr:hover td {
      background: var(--background-color);
    }
  }

  .pricing-compare-feature-col {
    width: 38%;
    font-weight: 500;
    color: var(--heading-color);
  }

  .pricing-compare-plan-col {
    text-align: center;
    width: 20.67%;
  }

  .pricing-compare-plan-featured {
    background: color-mix(in srgb, var(--accent-color), transparent 96%);
    position: relative;
  }

  thead .pricing-compare-plan-featured {
    color: var(--accent-color);
  }

  .pricing-compare-section td {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted-color);
    background: var(--background-color);
    padding: 0.5rem var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
  }

  .pricing-val-yes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    background: var(--success-color-light);
    color: var(--success-color);
    font-size: 0.8125rem;
  }

  .pricing-val-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    background: var(--background-color);
    color: var(--light-color);
    font-size: 0.875rem;
  }

  /* FAQ Section */
  .pricing-faq {
    margin-bottom: var(--spacing-2xl);
  }

  .pricing-faq-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
    text-align: center;
    margin-bottom: var(--spacing-xl);
  }

  .pricing-faq-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;

    &:hover {
      border-color: color-mix(in srgb, var(--accent-color), transparent 50%);
      box-shadow: var(--shadow-sm);
    }
  }

  .pricing-faq-q {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 var(--spacing-sm);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);

    i {
      color: var(--accent-color);
      font-size: 1rem;
      margin-top: 0.125rem;
      flex-shrink: 0;
    }
  }

  .pricing-faq-a {
    font-size: 0.8125rem;
    color: var(--muted-color);
    line-height: 1.6;
    margin: 0;
    padding-left: 1.625rem;
  }

  /* CTA Section */
  .pricing-cta {
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), black 30%));
    padding: var(--spacing-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;

    &::before {
      content: "";
      position: absolute;
      top: -50%;
      right: -20%;
      width: 400px;
      height: 400px;
      border-radius: var(--radius-full);
      background: rgba(255, 255, 255, 0.06);
      pointer-events: none;
    }

    &::after {
      content: "";
      position: absolute;
      bottom: -40%;
      left: -10%;
      width: 300px;
      height: 300px;
      border-radius: var(--radius-full);
      background: rgba(255, 255, 255, 0.04);
      pointer-events: none;
    }
  }

  .pricing-cta-inner {
    position: relative;
    z-index: 1;
  }

  .pricing-cta-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    color: var(--contrast-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto var(--spacing-lg);
  }

  .pricing-cta-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--contrast-color);
    margin: 0 0 var(--spacing-sm);
  }

  .pricing-cta-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 auto var(--spacing-xl);
    max-width: 480px;
    line-height: 1.6;
  }

  .pricing-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
  }

  .pricing-cta-ghost {
    color: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s ease;

    &:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.5);
      color: var(--contrast-color);
    }
  }
}

/* Responsive */
@media (max-width: 991.98px) {
  .page-pricing {
    .pricing-grid {
      grid-template-columns: 1fr;
      max-width: 440px;
      margin-left: auto;
      margin-right: auto;
    }

    .pricing-card-featured {
      order: -1;
    }

    .pricing-trust {
      gap: var(--spacing-lg);
    }
  }
}

@media (max-width: 767.98px) {
  .page-pricing {
    .pricing-hero-title {
      font-size: 1.375rem;
    }

    .pricing-amount {
      font-size: 2.75rem;
    }

    .pricing-icon {
      width: 44px;
      height: 44px;
      font-size: 1.125rem;
    }

    .pricing-trust {
      flex-direction: column;
      align-items: center;
      gap: var(--spacing-md);
    }

    .pricing-cta {
      padding: var(--spacing-xl);
    }

    .pricing-cta-actions {
      flex-direction: column;

      .btn {
        width: 100%;
      }
    }
  }
}
