:root {
  --primary: #0b6b7a;
  --primary-dark: #052d3c;
  --accent: #f5a524;
  --accent-soft: rgba(245, 165, 36, 0.16);
  --dark: #0f1d26;
  --light: #f4f6fb;
  --muted: rgba(15, 29, 38, 0.7);
}

body {
  font-family: 'Tajawal', 'Poppins', sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(11, 107, 122, 0.14), transparent 55%),
    radial-gradient(circle at 80% 5%, rgba(245, 165, 36, 0.12), transparent 50%),
    var(--light);
  color: var(--dark);
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

.cosmo-toast {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1080;
  direction: rtl;
  min-width: 280px;
  max-width: 92vw;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  border: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  box-shadow: 0 18px 45px rgba(11, 107, 122, 0.35);
  pointer-events: none;
}

.cosmo-toast.alert-success {
  background: linear-gradient(130deg, #38c26d, #0f8c3a);
}

.cosmo-toast.alert-danger {
  background: linear-gradient(130deg, #f76666, #c62828);
}

.cosmo-toast.alert-warning {
  background: linear-gradient(130deg, #f5c14a, #f08e24);
  color: #402400;
  box-shadow: 0 18px 45px rgba(240, 142, 36, 0.35);
}

.cosmo-toast.alert-info {
  background: linear-gradient(130deg, #4cb0f7, #0d6efd);
}
.hero {
  position: relative;
  padding: 9rem 0 7rem;
  color: #fff;
  border-radius: 0 0 60px 60px;
  overflow: visible;
  z-index: 0;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0 0 60px 60px;
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(135deg, rgba(5, 28, 41, 0.9), rgba(11, 107, 122, 0.88)),
    url('images/web assets-01.png') center/cover no-repeat;
  z-index: -2;
}

.hero::after {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 60%);
  z-index: -1;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.accent-pill {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  line-height: 1.1;
  margin: 1.75rem 0 1.1rem;
}

.hero p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 2rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1rem 0.75rem;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.metric-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
}

.metric-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.hero-actions {
  margin-top: 2rem !important;
}

.hero-guarantee {
  font-size: 0.9rem;
}

.hero-showcase {
  position: relative;
  max-width: 340px;
}

.hero-product-card {
  position: relative;
  border-radius: 32px;
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 25px 45px rgba(9, 8, 31, 0.35);
}

.hero-product-img {
  border-radius: 26px;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 22px 32px rgba(13, 6, 56, 0.35);
}

.hero-product-info {
  margin-top: 1.25rem;
}

.hero-highlights {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.1rem 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
}

.hero-highlights li {
  font-size: 0.95rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-highlights li:last-child {
  border-bottom: none;
}

.hero-highlights i {
  color: var(--accent);
  font-size: 1.1rem;
}

.floating-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  animation: float 12s ease-in-out infinite;
}

.floating-bubble.bubble-large {
  width: 200px;
  height: 200px;
  top: 12%;
  left: 10%;
}

.floating-bubble.bubble-small {
  width: 110px;
  height: 110px;
  bottom: 18%;
  right: 12%;
  animation-delay: -4s;
}

.floating-bubble.bubble-tiny {
  width: 70px;
  height: 70px;
  bottom: 26%;
  left: 32%;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-20px) translateX(-12px);
  }
}

.carousel-wrapper {
  margin-top: -90px;
  padding: 0 0 4.5rem;
}

.glam-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  margin: 0 auto;
  max-width: 980px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.6));
  box-shadow: 0 28px 52px rgba(18, 9, 64, 0.12);
  padding: 0 1rem;
}

.glam-carousel-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
  direction: ltr;
}

.glam-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0 0.75rem;
  opacity: 0.4;
  transform: scale(0.94);
  transition: transform 0.6s ease, opacity 0.6s ease;
  box-sizing: border-box;
  direction: rtl;
}

.glam-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-card {
  background: #fff;
  border-radius: 28px;
  border: none;
  overflow: hidden;
  height: 100%;
}

.carousel-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
}

.carousel-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 5, 44, 0), rgba(11, 5, 44, 0.55));
}

.carousel-card img {
  height: 270px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.glam-slide.active .carousel-card img {
  transform: scale(1.05);
}

.carousel-caption {
  position: static;
  padding: 2rem 2.1rem 2.5rem;
  text-align: right;
}

.carousel-caption h5 {
  font-size: 1.3rem;
}

.carousel-caption p {
  font-size: 1rem;
  line-height: 1.7;
}

.caption-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.glam-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
}

.carousel-arrow {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 36px rgba(18, 9, 64, 0.18);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.carousel-arrow:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(18, 9, 64, 0.22);
  color: var(--primary);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(91, 53, 242, 0.25);
  transition: transform 0.3s ease, background 0.3s ease;
}

.carousel-dots .dot.active {
  background: var(--primary);
  transform: scale(1.15);
}

.product-showcase {
  padding: 6rem 0 4rem;
  position: relative;
}

.product-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(91, 53, 242, 0.12), transparent 55%);
  pointer-events: none;
}

.product-card {
  position: relative;
  background: #fff;
  border-radius: 36px;
  padding: 3.5rem;
  box-shadow: 0 35px 65px rgba(18, 9, 64, 0.16);
  border: 1px solid rgba(91, 53, 242, 0.08);
  max-width: 1120px;
  margin: 0 auto;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 1.8rem;
  border: 1px dashed rgba(91, 53, 242, 0.2);
  border-radius: 28px;
  pointer-events: none;
}

.product-bg-shape {
  position: absolute;
  inset: 10% 54% 12% -18%;
  background: radial-gradient(circle at center, rgba(91, 53, 242, 0.18), transparent 70%);
  filter: blur(0px);
  z-index: 0;
}

.product-image-frame {
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(160deg, rgba(91, 53, 242, 0.12), rgba(255, 255, 255, 0.32));
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(91, 53, 242, 0.18);
  z-index: 1;
}

.product-image {
  border-radius: 22px;
  box-shadow: 0 24px 38px rgba(22, 9, 66, 0.25);
}

.price-stack {
  position: relative;
}

.price-tag {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  background: rgba(91, 53, 242, 0.08);
  padding: 0.65rem 1.2rem;
  border-radius: 18px;
}

.price-tag .old-price {
  text-decoration: line-through;
  color: rgba(26, 18, 57, 0.45);
  font-size: 0.95rem;
}

.price-tag .new-price {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary);
}

.saving-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(255, 141, 107, 0.16), rgba(255, 141, 107, 0.05));
  color: var(--primary);
  padding: 0.55rem 1.1rem;
  border-radius: 16px;
  font-weight: 600;
}

.saving-chip i {
  color: var(--accent);
}

.benefits-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.benefit-card {
  display: flex;
  gap: 0.85rem;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background: rgba(245, 243, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(91, 53, 242, 0.12);
}

.benefit-card i {
  font-size: 1.4rem;
}

.benefit-card h6 {
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.benefit-card p {
  margin: 0;
  line-height: 1.6;
}

.purchase-form {
  background: linear-gradient(135deg, #fff, rgba(245, 243, 255, 0.94));
  border-radius: 36px;
  padding: 3rem;
  box-shadow: 0 30px 55px rgba(18, 9, 64, 0.12);
  margin-bottom: 5.5rem;
  border: 1px solid rgba(91, 53, 242, 0.08);
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.form-highlight {
  background: rgba(91, 53, 242, 0.06);
  border-radius: 26px;
  padding: 2rem;
  box-shadow: inset 0 0 0 1px rgba(91, 53, 242, 0.08);
  position: relative;
  overflow: hidden;
}

.form-highlight::after {
  content: '';
  position: absolute;
  inset: 15% -20% 15% auto;
  width: 160px;
  background: radial-gradient(circle at center, rgba(91, 53, 242, 0.22), transparent 65%);
  opacity: 0.6;
}

.form-card {
  background: #fff;
  border-radius: 26px;
  padding: 2.2rem;
  box-shadow: inset 0 0 0 1px rgba(91, 53, 242, 0.06), 0 15px 35px rgba(18, 9, 64, 0.08);
}

.form-card-header {
  background: linear-gradient(135deg, rgba(91, 53, 242, 0.08), rgba(255, 111, 168, 0.08));
  border-radius: 20px;
  padding: 1.1rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: inset 0 0 0 1px rgba(91, 53, 242, 0.08);
}

.form-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.9rem;
  border-radius: 16px;
  background: rgba(91, 53, 242, 0.12);
  min-width: 88px;
}

.form-badge-label {
  font-size: 0.7rem;
  letter-spacing: 0.05rem;
  color: rgba(26, 18, 57, 0.6);
}

.form-badge-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.form-badge-note {
  font-size: 0.75rem;
  color: rgba(26, 18, 57, 0.55);
}

.form-field {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  inset-inline-start: 1rem;
  color: rgba(26, 18, 57, 0.5);
  font-size: 1.1rem;
  pointer-events: none;
}

[dir="rtl"] .field-icon {
  inset-inline-start: auto;
  inset-inline-end: 1rem;
}

.form-perks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-perks i {
  font-size: 1.1rem;
  color: var(--primary);
}

.purchase-form .form-control {
  border-radius: 16px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(26, 18, 57, 0.12);
  background: rgba(245, 243, 255, 0.8);
  box-shadow: none;
  padding-inline-start: 2.8rem;
}

[dir="rtl"] .purchase-form .form-control {
  padding-inline-start: 1rem;
  padding-inline-end: 2.8rem;
}

.purchase-form .form-control:focus {
  border-color: rgba(91, 53, 242, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(91, 53, 242, 0.15);
}

.purchase-form label {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-assurance {
  background: rgba(245, 243, 255, 0.8);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  box-shadow: inset 0 0 0 1px rgba(91, 53, 242, 0.08);
}

.btn-gradient {
  background: linear-gradient(135deg, #ff9d5c, #ff6fa8);
  border: none;
  padding: 0.85rem 2.6rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04rem;
  color: #fff;
  box-shadow: 0 18px 34px rgba(255, 111, 168, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(255, 111, 168, 0.4);
}

.btn-gradient:focus-visible {
  outline: 3px solid rgba(91, 53, 242, 0.45);
  outline-offset: 2px;
}

footer {
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 10%, rgba(91, 53, 242, 0.1), transparent 60%);
  pointer-events: none;
}

body.success-body {
  background:
    radial-gradient(circle at 20% 20%, rgba(11, 107, 122, 0.2), transparent 55%),
    radial-gradient(circle at 90% 0%, rgba(245, 165, 36, 0.22), transparent 50%),
    #03131b;
  color: var(--dark);
}

.success-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 1;
}

.success-card {
  width: 100%;
  max-width: 780px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.98));
  border-radius: 34px;
  padding: 3.5rem;
  box-shadow: 0 30px 80px rgba(6, 30, 45, 0.25);
  position: relative;
  overflow: hidden;
}

.success-card::after {
  content: '';
  position: absolute;
  inset: 1.25rem;
  border-radius: 28px;
  border: 1px solid rgba(11, 107, 122, 0.08);
  pointer-events: none;
}

.success-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  box-shadow: 0 18px 40px rgba(11, 107, 122, 0.4);
}

.success-overline {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.success-card h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
  color: var(--dark);
}

.success-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.9;
}

.success-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}

.success-pill {
  background: rgba(244, 247, 255, 0.8);
  border-radius: 20px;
  padding: 1.2rem 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(11, 107, 122, 0.08);
  text-align: center;
}

.success-pill strong {
  display: block;
  font-size: 1.1rem;
  color: var(--dark);
  margin-top: 0.35rem;
}

.success-pill-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.success-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.success-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  text-decoration: none;
}

.success-note {
  color: var(--muted);
  margin: 0;
}

.success-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  filter: blur(70px);
  opacity: 0.35;
  z-index: 0;
}

.success-glow-one {
  top: 15%;
  right: 10%;
  background: var(--accent);
}

.success-glow-two {
  bottom: 10%;
  left: 12%;
  background: var(--primary);
}

@media (max-width: 1200px) {
  .hero {
    padding: 8rem 0 6rem;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1052px) {
/*@media (max-width: 992px) {*/
  .hero {
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-grid {
    justify-content: center;
    row-gap: 3rem;
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-content {
    margin: 0 auto;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .hero .col-lg-6 {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-showcase {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .carousel-wrapper {
    margin-top: -70px;
  }

  .glam-carousel {
    border-radius: 24px;
    padding: 0 0.5rem;
  }

  .glam-slide {
    padding: 0 0.5rem;
  }

  .product-card {
    padding: 2.5rem;
    max-width: 920px;
  }

  .product-card::before {
    inset: 1.2rem;
  }

  .purchase-form {
    padding: 2.5rem;
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 6.5rem 15px 4.5rem;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-highlights {
    text-align: center;
  }

  .hero-highlights li {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .carousel-wrapper {
    margin-top: -50px;
  }

  .glam-slide {
    padding: 0;
  }

  .glam-carousel-controls {
    justify-content: center;
    gap: 0.75rem;
  }

  .carousel-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }

  .product-card {
    text-align: center;
    max-width: 100%;
  }

  .form-card {
    padding: 1.8rem;
  }

  .form-card-header {
    flex-direction: column;
    text-align: center;
  }

  .product-bg-shape {
    display: none;
  }

  .price-stack {
    justify-content: center;
  }

  .purchase-form {
    padding: 2rem;
    max-width: 100%;
  }

  .form-highlight {
    text-align: center !important;
  }

  .form-perks li {
    justify-content: center;
  }

  .form-assurance {
    text-align: center;
    gap: 0.5rem;
  }

  .btn-gradient {
    width: 100%;
  }

  .success-card {
    padding: 2.5rem;
  }

  .success-details {
    grid-template-columns: 1fr;
  }

  .success-page {
    padding: 3rem 1rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 5.5rem 10px 3.5rem;
  }

  .hero-grid {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1 {
    font-size: 2rem;
    padding: 0 10px;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .carousel-card img {
    height: 230px;
  }

  .carousel-dots {
    gap: 0.5rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 1.5rem;
  }

  .success-card {
    padding: 2rem 1.5rem;
  }

  .success-home-btn {
    min-width: 0;
    width: 100%;
  }
}
