@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Share+Tech+Mono&family=EB+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

/* ============================================================
   PACKAGES COMPONENT — THEME 6 (Neo Brutal)
   File: ebpcr6.css | HTML prefix: ebpcr2
   ============================================================ */

.ebpcr2-section {
  /* =========================================================
     CSS TOKENS
     ========================================================= */

  /* — Typography — */
  --ebpcr2-font-family: 'Inter', sans-serif;
  --ebpcr2-title-font-size: 2.25rem;
  --ebpcr2-subtitle-font-size: 1rem;
  --ebpcr2-card-title-font-size: 1.35rem;
  --ebpcr2-card-desc-font-size: 0.88rem;
  --ebpcr2-amount-font-size: 2.2rem;
  --ebpcr2-currency-font-size: 0.95rem;

  /* — Colors — */
  --ebpcr2-bg: #f0ece4;
  --ebpcr2-title-color: #0a0a0a;
  --ebpcr2-subtitle-color: #333333;
  --ebpcr2-badge-bg: #ff4400;
  --ebpcr2-badge-color: #f2ede4;

  /* — Cards — */
  --ebpcr2-card-bg: #ffffff;
  --ebpcr2-card-border: 4px solid #0a0a0a;
  --ebpcr2-card-featured-bg: #fff4ec;
  --ebpcr2-card-featured-border: 4px solid #0a0a0a;
  --ebpcr2-card-radius: 0px;
  --ebpcr2-card-shadow: 6px 6px 0px #0a0a0a;
  --ebpcr2-neumorphic-shadow: none;
  --ebpcr2-shine-bg: linear-gradient(90deg, transparent, rgba(255,68,0,0.4), transparent);

  /* — Interior Card Living Elements — */
  --ebpcr2-card-orb1: rgba(255, 68, 0, 0.12);
  --ebpcr2-card-orb2: rgba(234, 179, 8, 0.16);
  --ebpcr2-card-accent-bg: linear-gradient(135deg, rgba(255, 68, 0, 0.12), transparent 55%);
  --ebpcr2-card-corner: #ff4400;

  /* — Card Content — */
  --ebpcr2-card-title-color: #0a0a0a;
  --ebpcr2-card-desc-color: #333333;

  /* — Section Labels — */
  --ebpcr2-label-text-color: #0a0a0a;
  --ebpcr2-label-line-color: #0a0a0a;
  --ebpcr2-label-dot-color: #0a0a0a;

  /* — Pricing — */
  --ebpcr2-amount-color: #0a0a0a;
  --ebpcr2-currency-color: #0a0a0a;
  --ebpcr2-period-color: #333333;
  --ebpcr2-note-color: #555555;

  /* — Features & Custom Theme Check Icon — */
  --ebpcr2-feature-text-color: #0a0a0a;
  --ebpcr2-check-icon-color: #0a0a0a;
  --ebpcr2-check-icon-content: "\f00c";

  /* — Buttons — */
  --ebpcr2-btn-primary-bg: #ff4400;
  --ebpcr2-btn-primary-color: #f2ede4;
  --ebpcr2-btn-secondary-bg: #ffffff;
  --ebpcr2-btn-secondary-color: #0a0a0a;
  --ebpcr2-btn-secondary-border: 3px solid #0a0a0a;
  --ebpcr2-btn-shadow: 4px 4px 0px #0a0a0a;

  /* — Ribbon — */
  --ebpcr2-ribbon-bg: #ff4400;
  --ebpcr2-ribbon-color: #f2ede4;
  --ebpcr2-ribbon-shadow: 3px 3px 0px #0a0a0a;

  /* — Section Background Orbs & Living Elements — */
  --ebpcr2-orb1: rgba(255, 68, 0, 0.10);
  --ebpcr2-orb2: rgba(234, 179, 8, 0.14);
  --ebpcr2-mesh-bg: none;
  --ebpcr2-lines-bg: none;
  --ebpcr2-particle-bg: none;
  --ebpcr2-particle-shadow: none;

  /* — Dot Grid Decor — */
  --ebpcr2-dots-bg: radial-gradient(rgba(10, 10, 10, 0.20) 1.5px, transparent 1.5px);
  --ebpcr2-dots-size: 26px 26px;
  --ebpcr2-dots-opacity: 0.55;
  --ebpcr2-dots-mask: linear-gradient(180deg, #000, transparent 72%);

  /* — Transitions — */
  --ebpcr2-transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --ebpcr2-reveal-distance: 35px;
  --ebpcr2-reveal-duration: 0.6s;

  /* =========================================================
     BASE RULES
     ========================================================= */
  position: relative;
  background: var(--ebpcr2-bg);
  font-family: var(--ebpcr2-font-family);
  direction: rtl;
  padding: 5rem 1.5rem;
  overflow: visible;
}

/* Background Decor Layer — Vibrant & Living at all times */
.ebpcr2-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ebpcr2-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.ebpcr2-bg-orb-1 {
  width: 550px;
  height: 550px;
  top: -120px;
  right: -120px;
  background: var(--ebpcr2-orb1);
}

.ebpcr2-bg-orb-2 {
  width: 500px;
  height: 500px;
  bottom: -120px;
  left: -120px;
  background: var(--ebpcr2-orb2);
}

/* Living Theme Animation Rules */

.ebpcr2-bg-lines {
  position: absolute;
  inset: 0;
  background-image: var(--ebpcr2-dots-bg);
  background-size: var(--ebpcr2-dots-size);
  opacity: var(--ebpcr2-dots-opacity);
  mask-image: var(--ebpcr2-dots-mask);
  -webkit-mask-image: var(--ebpcr2-dots-mask);
  pointer-events: none;
}

/* Container */
.ebpcr2-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.ebpcr2-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.ebpcr2-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  background: var(--ebpcr2-badge-bg);
  color: var(--ebpcr2-badge-color);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transform: rotate(-2deg);
  box-shadow: 3px 3px 0 #0a0a0a;
}

.ebpcr2-title {
  font-size: var(--ebpcr2-title-font-size);
  font-weight: 700;
  color: var(--ebpcr2-title-color);
  margin: 0 0 0.8rem 0;
  line-height: 1.3;
}

.ebpcr2-title-highlight {
  color: #ff4400;
  background-image: linear-gradient(180deg, transparent 62%, rgba(234, 179, 8, 0.45) 62%);
  padding: 0 0.1em;
}

.ebpcr2-subtitle {
  font-size: var(--ebpcr2-subtitle-font-size);
  color: var(--ebpcr2-subtitle-color);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grid Layout */
.ebpcr2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

/* Card Base — Glassmorphism & Position relative */
.ebpcr2-card {
  position: relative;
  background: var(--ebpcr2-card-bg);
  border: var(--ebpcr2-card-border);
  border-radius: var(--ebpcr2-card-radius);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ebpcr2-card-shadow);
  transition: var(--ebpcr2-transition);
  overflow: visible;
  backdrop-filter: blur(12px);
}

.ebpcr2-card:hover {
  transform: translateY(-8px);
}

/* Creative Brutalist Corner Accent */
.ebpcr2-card::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 32px;
  height: 32px;
  background: var(--ebpcr2-card-corner);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  z-index: 5;
  transition: var(--ebpcr2-transition);
}

.ebpcr2-card:hover::before {
  width: 44px;
  height: 44px;
}

/* Interior Card Living Background Layer */
.ebpcr2-card-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ebpcr2-card-mesh {
  position: absolute;
  inset: -50%;
  background: var(--ebpcr2-mesh-bg);
  opacity: 0.7;
  animation: ebpcr-card-mesh-spin 16s linear infinite;
}

.ebpcr2-card-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.ebpcr2-card-orb-1 {
  width: 220px;
  height: 220px;
  top: -50px;
  right: -50px;
  background: var(--ebpcr2-card-orb1);
  animation: ebpcr-card-orb1-float 7s ease-in-out infinite alternate;
}

.ebpcr2-card-orb-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
  background: var(--ebpcr2-card-orb2);
  animation: ebpcr-card-orb2-float 9s ease-in-out infinite alternate-reverse;
}

.ebpcr2-card-lines {
  position: absolute;
  inset: 0;
  background: var(--ebpcr2-card-accent-bg);
  pointer-events: none;
}

@keyframes ebpcr-card-mesh-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes ebpcr-card-orb1-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 35px) scale(1.25); }
}

@keyframes ebpcr-card-orb2-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(35px, -30px) scale(1.3); }
}

/* Interior Card Content Z-Index Fix */
.ebpcr2-card-header,
.ebpcr2-section-label,
.ebpcr2-price-row,
.ebpcr2-features,
.ebpcr2-buttons {
  position: relative;
  z-index: 2;
}

/* Interior Card Shine Sweep Layer */
.ebpcr2-card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.ebpcr2-card-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: var(--ebpcr2-shine-bg);
  transform: skewX(-20deg);
  pointer-events: none;
}

.ebpcr2-card:hover .ebpcr2-card-shine::after {
  animation: ebpcr2-shine-sweep 1.2s ease-in-out;
}

@keyframes ebpcr2-shine-sweep {
  0% { left: -150%; }
  100% { left: 150%; }
}

/* Featured Card */
.ebpcr2-card.ebpcr2-featured {
  background: var(--ebpcr2-card-featured-bg);
  border: var(--ebpcr2-card-featured-border);
}

/* Neumorphic shadow override if enabled */
.ebpcr2-card {
  box-shadow: var(--ebpcr2-neumorphic-shadow, var(--ebpcr2-card-shadow));
}

/* Featured Ribbon — Unclipped & perfectly centered on top border */
.ebpcr2-featured-ribbon {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ebpcr2-ribbon-bg);
  color: var(--ebpcr2-ribbon-color);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 1.2rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--ebpcr2-ribbon-shadow);
  z-index: 10;
}

/* Card Header */
.ebpcr2-card-header {
  text-align: center;
  margin-bottom: 1.2rem;
}

.ebpcr2-card-title {
  font-size: var(--ebpcr2-card-title-font-size);
  font-weight: 700;
  color: var(--ebpcr2-card-title-color);
  margin: 0 0 0.4rem 0;
}

.ebpcr2-card-desc {
  font-size: var(--ebpcr2-card-desc-font-size);
  color: var(--ebpcr2-card-desc-color);
  margin: 0;
  line-height: 1.5;
}

/* Section Label (Line - Text - Line) */
.ebpcr2-section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 1.2rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ebpcr2-label-text-color);
}

.ebpcr2-label-line {
  flex: 1;
  height: 1px;
  background: var(--ebpcr2-label-line-color);
  position: relative;
  display: flex;
  align-items: center;
}

.ebpcr2-label-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ebpcr2-label-dot-color);
  position: absolute;
}

.ebpcr2-section-label .ebpcr2-label-line:first-child .ebpcr2-label-dot {
  left: 0;
}

.ebpcr2-section-label .ebpcr2-label-line:last-child .ebpcr2-label-dot {
  right: 0;
}

/* Price Row */
.ebpcr2-price-row {
  text-align: center;
  margin-bottom: 1rem;
}

.ebpcr2-price-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 0.4rem;
  transition: transform 0.3s ease;
}

.ebpcr2-card:hover .ebpcr2-price-main {
  transform: scale(1.05);
}

.ebpcr2-amount {
  font-size: var(--ebpcr2-amount-font-size);
  font-weight: 800;
  color: var(--ebpcr2-amount-color);
  line-height: 1;
  display: inline-block;
  position: relative;
}

.ebpcr2-amount::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 100%;
  height: 6px;
  background: rgba(255, 68, 0, 0.35);
}

.ebpcr2-currency {
  font-size: var(--ebpcr2-currency-font-size);
  font-weight: 700;
  color: var(--ebpcr2-currency-color);
}

.ebpcr2-period {
  font-size: 0.85rem;
  color: var(--ebpcr2-period-color);
}

.ebpcr2-price-note {
  font-size: 0.78rem;
  color: var(--ebpcr2-note-color);
  margin: 0;
  line-height: 1.4;
}

/* Features List & Theme-Specific Check Icon */
.ebpcr2-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.ebpcr2-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ebpcr2-feature-text-color);
  line-height: 1.5;
  transition: transform 0.25s ease;
}

.ebpcr2-features li:hover {
  transform: translateX(-4px);
}

.ebpcr2-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ebpcr2-check-icon-color);
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands";
  font-weight: 900;
  font-size: 0.95rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.ebpcr2-check-icon::before {
  content: var(--ebpcr2-check-icon-content);
}

/* Buttons */
.ebpcr2-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
}

.ebpcr2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--ebpcr2-transition);
  cursor: pointer;
}

.ebpcr2-btn-primary {
  background: var(--ebpcr2-btn-primary-bg);
  color: var(--ebpcr2-btn-primary-color);
  box-shadow: var(--ebpcr2-btn-shadow);
}

.ebpcr2-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.ebpcr2-btn-secondary {
  background: var(--ebpcr2-btn-secondary-bg);
  color: var(--ebpcr2-btn-secondary-color);
  border: var(--ebpcr2-btn-secondary-border);
}

.ebpcr2-btn-secondary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.ebpcr2-anim-up {
  opacity: 0;
  transform: translateY(var(--ebpcr2-reveal-distance));
  transition: opacity var(--ebpcr2-reveal-duration) cubic-bezier(0.22, 1, 0.36, 1),
              transform var(--ebpcr2-reveal-duration) cubic-bezier(0.22, 1, 0.36, 1);
}

.ebpcr2-anim-up.ebpcr2-in {
  opacity: 1;
  transform: translateY(0);
}

.ebpcr2-delay-1 { transition-delay: 0.1s; }
.ebpcr2-delay-2 { transition-delay: 0.2s; }
.ebpcr2-delay-3 { transition-delay: 0.3s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1023px) {
  .ebpcr2-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .ebpcr2-section {
    padding: 3.5rem 1rem;
  }
  .ebpcr2-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
  .ebpcr2-title {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ebpcr2-anim-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ebpcr2-card-shine { display: none; }
  .ebpcr2-bg-mesh, .ebpcr2-bg-lines, .ebpcr2-particle, .ebpcr2-card-mesh, .ebpcr2-card-orb { animation: none !important; }
}
