:root {
  --dark-bg: linear-gradient(145deg, #1e1e2f, #16161f);
  --card-bg: #2a2a3d;
  --highlight: #ffd54f;
  --primary: #6a11cb;
  --primary-hover: #8e44ec;
  --light-text: #e0e0e0;
  --border: #3a3a4f;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --transition: 0.3s ease;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--dark-bg);
  color: var(--light-text);
}

header {
  text-align: center;
  padding: 60px 20px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85em;
  background-color: #444;
  color: #fff;
  font-weight: 500;
}

.badge.expire {
  background-color: #e53935;
}

.abonnement-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
}

.plan {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  width: 320px;
  height: auto;
  min-height: 540px;
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.plan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  opacity: 0;
  transition: opacity 0.3s;
}

.plan.pro::before {
  opacity: 1;
  background: linear-gradient(90deg, #ffd54f, #ff9800);
}

.plan:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 32px rgba(106, 17, 203, 0.4);
}

.plan.pro:hover {
  box-shadow: 0 10px 32px rgba(255, 213, 79, 0.5);
}

.plan h2 {
  font-size: 1.9em;
  color: var(--highlight);
  margin-bottom: 20px;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  color: #ccc;
  text-align: left;
}

.plan ul li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s;
}

.plan ul li:hover {
  padding-left: 5px;
  color: var(--light-text);
}

.plan ul li i {
  margin-top: 2px;
  flex-shrink: 0;
}

.plan ul li:last-child {
  border-bottom: none;
}

.plan button,
.stripe-button {
  background: linear-gradient(135deg, #0f1123, #1e2a78);
  color: #ffffff;
  border: none;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 12px;
}

.plan button::before,
.stripe-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  transform: rotate(25deg);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}

.plan button:hover::before,
.stripe-button:hover::before {
  opacity: 1;
}

.plan button:hover,
.stripe-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  opacity: 0.95;
}

.plan button:focus-visible,
.stripe-button:focus-visible {
  outline: 2px solid #6a11cb;
  outline-offset: 3px;
}

.plan button.disabled {
  background: #333;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.carousel-wrapper {
  margin-top: 20px;
  overflow: hidden;
}

.carousel-container {
  display: grid;
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.carousel-container::-webkit-scrollbar {
  height: 6px;
}

.carousel-container::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 8px;
}

.feature-card {
  flex: 0 0 auto;
  scroll-snap-align: center;
  background: linear-gradient(145deg, #2a2a3d, #242437);
  border-radius: 14px;
  padding: 24px;
  min-width: 260px;
  max-width: 260px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(106, 17, 203, 0.2);
}

.feature-card:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 8px 24px rgba(106, 17, 203, 0.4);
  border-color: rgba(106, 17, 203, 0.5);
}

.feature-card h4 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--highlight);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.6;
  margin: 0;
}

.feature-card i {
  color: var(--primary);
  width: 20px;
  height: 20px;
}

.usage-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.usage-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.usage-item:last-child {
  margin-bottom: 0;
}

.usage-label {
  color: #ccc;
  font-weight: 500;
}

.usage-value {
  color: var(--highlight);
  font-weight: 600;
  font-size: 1.1em;
}

.usage-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 12px;
  color: #fbbf24;
  text-align: center;
  margin-top: 12px;
}

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

.carousel-btn {
  background: rgba(42, 42, 61, 0.8);
  border: 1px solid var(--border);
  color: var(--light-text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.carousel-btn.left {
  left: -20px;
}

.carousel-btn.right {
  right: -20px;
}

.carousel-btn:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(106, 17, 203, 0.4);
}

.carousel-wrapper {
  position: relative;
}

.value-proposition {
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.1), rgba(255, 213, 79, 0.1));
  border: 1px solid rgba(106, 17, 203, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin: 30px 0;
  text-align: center;
}

.value-proposition h3 {
  color: var(--highlight);
  margin-bottom: 10px;
  font-size: 1.3em;
}

.value-proposition p {
  color: #ccc;
  line-height: 1.6;
}

.comparison-table {
  margin: 30px 0;
  background: rgba(42, 42, 61, 0.5);
  border-radius: 12px;
  padding: 20px;
  display: none;
}

.comparison-table.show {
  display: block;
}

.is-hidden {
  display: none !important;
}

.login-warning a {
  color: #ffd54f;
  text-decoration: underline;
}

.abonnement-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #ffd54f, #ff9800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.abonnement-subtitle {
  font-size: 1.2em;
  color: #bbb;
  max-width: 700px;
  margin: 0 auto;
}

.text-gold {
  color: #ffd54f;
}

.plan-subtitle {
  color: #999;
  font-size: 0.9em;
  margin-bottom: 20px;
}

.icon-ok {
  color: #10b981;
}

.icon-bad {
  color: #ef4444;
}

.muted {
  opacity: 0.6;
}

.plan-reco-badge {
  background: linear-gradient(135deg, #ffd54f, #ff9800);
  color: #222;
  font-weight: bold;
  margin-bottom: 12px;
  padding: 8px 16px;
  font-size: 0.9em;
  box-shadow: 0 2px 8px rgba(255, 213, 79, 0.3);
  animation: pulse 2s infinite;
}

.plan-pro-title {
  position: relative;
}

.plan-pro-price {
  font-size: 0.7em;
  color: #999;
  display: block;
  margin-top: 5px;
}

.pro-kicker {
  color: #ffd54f;
  font-size: 0.95em;
  margin: 10px 0 20px;
  font-weight: 500;
}

.coming-soon {
  color: #ffd54f;
  font-size: 0.85em;
}

.btn-pro {
  font-size: 1.1em;
  padding: 16px 28px;
  margin-top: 20px;
  display: inline-block;
  text-decoration: none;
}

.secure-note {
  font-size: 0.85em;
  color: #999;
  margin-top: 10px;
  margin-bottom: 0;
}

.guarantee-box {
  margin-top: 20px;
  padding: 15px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.guarantee-text {
  margin: 0;
  color: #10b981;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.guarantee-icon {
  width: 18px;
  height: 18px;
}

#cancelPro {
  margin-top: 15px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

#btnGererAbonnement {
  margin-top: 10px;
  background: linear-gradient(135deg, #374151, #1f2937);
}

#notifBellContainer {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  display: flex;
  justify-content: center;
  width: auto;
}

#openNotifBtn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  padding: 0;
}

#notifBellIcon {
  width: 32px;
  height: 32px;
  color: #4c82ff;
}

#notifCount {
  display: none;
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff4757;
  color: white;
  font-size: 13px;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 12px;
  min-width: 22px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

#notifPopup {
  display: none;
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  max-width: 98vw;
  height: 600px;
  z-index: 2000;
  background: white;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

#closeNotifPopup {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
}

#notifPopup iframe {
  width: 100%;
  height: 100%;
  border: none;
}
