/* Modern Order Summary - Conversion Optimized Design */
/* Using Simple Game Hosting design system for consistent branding */

@import url("./variables.css");

/* Order Summary Container */
.modern-order-summary {
  background: linear-gradient(
    135deg,
    var(--deep-violet) 0%,
    var(--card) 50%,
    var(--deep-violet) 100%
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(108, 51, 252, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-order-summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--violet) 0%,
    var(--aqua) 50%,
    var(--amethyst) 100%
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.modern-order-summary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(108, 51, 252, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Product Header */
.product-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(108, 51, 252, 0.2);
  position: relative;
}

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

.product-name .quantity {
  display: inline-block;
  background: var(--violet);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  margin-right: 0.5rem;
  box-shadow: 0 2px 8px rgba(108, 51, 252, 0.3);
}

.product-name .name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  background: linear-gradient(135deg, var(--white), var(--aquamarine));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--aqua);
  text-shadow: 0 0 20px rgba(57, 246, 248, 0.5);
  white-space: nowrap;
}

/* Features Section */
.features-section {
  margin: 0.75rem 0;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  position: relative;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 0.4rem 0;
  transition: all 0.2s ease;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.02);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: var(--radius-sm);
}

.feature-item i {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-right: 0.6rem;
  width: 1rem;
  text-align: center;
  transition: all 0.2s ease;
}

.feature-name {
  flex: 1;
  color: var(--muted-foreground);
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1.3;
}

.feature-badge {
  background: rgba(131, 240, 199, 0.15);
  color: var(--aquamarine);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Add-ons */
.addon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  background: rgba(131, 240, 199, 0.05);
  border: 1px solid rgba(131, 240, 199, 0.2);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  position: relative;
}

.addon-item::before {
  content: "+";
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--aquamarine);
  font-weight: 800;
  font-size: 1.1rem;
}

.addon-item:hover {
  background: rgba(131, 240, 199, 0.1);
  border-color: rgba(131, 240, 199, 0.4);
  transform: scale(1.02);
}

.addon-name {
  color: var(--white);
  font-weight: 500;
  margin-left: 1.5rem;
}

.addon-price {
  color: var(--aquamarine);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(131, 240, 199, 0.3);
}

/* Pricing Breakdown */
.pricing-breakdown {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(10, 6, 16, 0.3);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.price-line:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-line:hover {
  background: rgba(255, 255, 255, 0.02);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: var(--radius-sm);
}

.price-line.setup-fee span:first-child {
  color: var(--muted-foreground);
}

.price-line.setup-fee span:last-child {
  color: var(--gold);
  font-weight: 600;
}

.price-line.recurring span:first-child {
  color: var(--muted-foreground);
}

.price-line.recurring span:last-child {
  color: var(--white);
  font-weight: 600;
}

.price-line.tax span:first-child {
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

.price-line.tax span:last-child {
  color: var(--amethyst);
  font-weight: 500;
}

.price-line.subtotal {
  font-weight: 600;
  font-size: 1rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(108, 51, 252, 0.3);
}

.price-line.subtotal span:first-child {
  color: var(--white);
}

.price-line.subtotal span:last-child {
  color: var(--aqua);
}

/* Total Section */
.total-section {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(108, 51, 252, 0.1) 0%,
    rgba(57, 246, 248, 0.05) 100%
  );
  border: 2px solid var(--violet);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.total-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(57, 246, 248, 0.1) 90deg,
    transparent 180deg,
    rgba(108, 51, 252, 0.1) 270deg,
    transparent 360deg
  );
  animation: rotate 8s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.total-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.total-price {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--aqua), var(--aquamarine));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(57, 246, 248, 0.5);
  position: relative;
}

.total-price::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--aqua), var(--aquamarine));
  border-radius: 1px;
  animation: pulse 2s ease-in-out infinite;
}

/* Period text styling for recurring prices */
.total-price .period-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-left: 0.25rem;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleX(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Promo Section */
.promo-section {
  margin-bottom: 1rem;
}

.promo-code {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: transparent !important;
  border: 1px solid var(--aquamarine);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(57, 246, 248, 0.3);
}

.promo-code::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  50%,
  100% {
    left: 100%;
  }
}

.promo-code i {
  color: var(--deep-violet);
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.promo-code span {
  color: var(--deep-violet);
  font-weight: 700;
  font-size: 0.95rem;
}

.total-amount.discounted .total-price {
  background: linear-gradient(135deg, var(--gold), var(--aquamarine));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Recurring Price After Discount */
.recurring-after {
  margin-top: 0.75rem;
  text-align: center;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.recurring-text {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 400;
  font-style: italic;
  opacity: 0.8;
}

/* Renewals Styling */
.modern-order-summary.renewals {
  background: linear-gradient(
    135deg,
    var(--deep-violet) 0%,
    rgba(160, 110, 239, 0.1) 50%,
    var(--deep-violet) 100%
  );
}

.renewal-section {
  margin: 1.5rem 0;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amethyst);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-left: 1rem;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.2em;
  background: linear-gradient(180deg, var(--amethyst), var(--violet));
  border-radius: 2px;
}

.renewal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin: 0.75rem 0;
  background: rgba(30, 17, 60, 0.4);
  border: 1px solid rgba(160, 110, 239, 0.2);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.renewal-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(180deg, var(--amethyst), var(--violet));
  transition: width 0.3s ease;
}

.renewal-item:hover {
  background: rgba(30, 17, 60, 0.6);
  border-color: rgba(160, 110, 239, 0.4);
  transform: translateX(4px);
}

.renewal-item:hover::before {
  width: 4px;
}

.renewal-info {
  flex: 1;
}

.service-name,
.domain-name {
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.service-domain,
.domain-period {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.billing-cycle {
  color: var(--amethyst);
  font-size: 0.8rem;
  font-weight: 500;
}

.domain-extras {
  margin-top: 0.5rem;
}

.domain-extras .extra {
  display: inline-block;
  background: rgba(160, 110, 239, 0.2);
  color: var(--amethyst);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
}

.renewal-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.renewal-price {
  font-weight: 700;
  color: var(--aquamarine);
  font-size: 1.1rem;
  text-shadow: 0 0 10px rgba(131, 240, 199, 0.3);
}

.remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: 50%;
  color: #ff6b6b;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.remove-btn:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.5);
  transform: scale(1.1);
  color: #ff5252;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modern-order-summary {
    padding: 1.5rem;
    margin: 1rem 0;
  }

  .product-header {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .product-price {
    font-size: 1.25rem;
    margin-top: 0.5rem;
  }

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

  .product-name .name {
    font-size: 1.1rem;
  }

  /* General Order Summary Heading adjustments for 768px */
  .order-summary h2 {
    font-size: 1.6rem; /* Slightly smaller than desktop */
    margin-bottom: 1.25rem;
  }

  .order-summary h2::after {
    width: 70px; /* Adjust underline width */
  }

  .total-price {
    font-size: 1.5rem;
  }

  .recurring-after {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }

  .recurring-text {
    font-size: 0.8rem;
  }

  .renewal-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .renewal-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .modern-order-summary {
    padding: 1rem;
  }

  .total-section {
    padding: 1rem;
  }

  .feature-item,
  .addon-item {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .feature-item {
    padding: 0.5rem 0;
  }

  .feature-item i {
    margin-right: 0;
    margin-bottom: 0.2rem;
  }

  .feature-badge,
  .addon-price {
    font-size: 0.75rem; /* Slightly larger for readability */
  }

  .feature-name {
    font-size: 0.75rem; /* Reduce feature name font size */
    text-align: center;
    width: 100%;
  }

  .addon-name {
    text-align: center;
    width: 100%;
    margin-left: 0;
  }

  /* Added for 480px responsiveness */
  .product-name .name {
    /* Further reduce font size */
    font-size: 1rem;
  }

  .product-header .product-price {
    /* Specific to price in header */
    font-size: 1.1rem; /* Further reduce font size */
  }

  .feature-name {
    font-size: 0.75rem; /* Reduce feature name font size */
  }
  /* End of 480px additions */
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .modern-order-summary,
  .feature-item,
  .addon-item,
  .renewal-item,
  .remove-btn {
    transition: none;
  }

  .modern-order-summary::before,
  .total-section::before,
  .promo-code::before,
  .total-price::after {
    animation: none;
  }
}

/* Focus States for Accessibility */
.remove-btn:focus {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
}

/* Trust Indicators */
.trust-indicators {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(10, 6, 16, 0.2);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.security-badges {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1rem;
}

.security-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  padding: 0.5rem;
  transition: all 0.2s ease;
}

.security-item:hover {
  transform: translateY(-2px);
}

.security-item i {
  font-size: 1.5rem;
  color: var(--aquamarine);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(131, 240, 199, 0.3);
}

.security-item span {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Money Back Guarantee */
.guarantee-section {
  margin-top: 1rem;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    rgba(131, 240, 199, 0.1),
    rgba(57, 246, 248, 0.05)
  );
  border: 1px solid var(--aquamarine);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.guarantee-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--aquamarine), var(--aqua));
  animation: shimmer 3s ease-in-out infinite;
}

.guarantee-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.guarantee-badge i {
  font-size: 2rem;
  color: var(--gold);
  text-shadow: 0 0 15px rgba(133, 77, 14, 0.5);
  animation: float 4s ease-in-out infinite;
}

.guarantee-text {
  flex: 1;
}

.guarantee-text strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.guarantee-text small {
  color: var(--muted-foreground);
  font-size: 0.85rem;
  font-weight: 400;
}

/* Conversion Optimization - Urgency Indicators */
.urgency-indicator {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(
    135deg,
    rgba(255, 165, 0, 0.1),
    rgba(255, 69, 0, 0.05)
  );
  border: 1px solid rgba(255, 165, 0, 0.3);
  border-radius: var(--radius-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.urgency-indicator::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 165, 0, 0.1),
    transparent
  );
  animation: urgencyPulse 2s ease-in-out infinite;
}

@keyframes urgencyPulse {
  0%,
  100% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
}

.urgency-text {
  color: #ffa500;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.urgency-text i {
  margin-right: 0.5rem;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Social Proof */
.social-proof {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(30, 17, 60, 0.3);
  border-radius: var(--radius-md);
  text-align: center;
}

.social-proof-text {
  color: var(--muted-foreground);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.customer-count {
  color: var(--aqua);
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 0 10px rgba(57, 246, 248, 0.3);
}

/* Responsive adjustments for trust elements */
@media (max-width: 768px) {
  .security-badges {
    flex-direction: column;
    gap: 0.75rem;
  }

  .security-item {
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
  }

  .security-item i {
    font-size: 1.25rem;
    margin-bottom: 0;
  }

  .guarantee-badge {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .features-section,
  .guarantee-section {
    padding: 0.5rem;
  }

  .security-item span {
    font-size: 0.75rem;
  }

  .guarantee-text strong {
    font-size: 0.9rem;
  }

  .guarantee-text small {
    font-size: 0.8rem;
  }

  .order-summary h2 {
    font-size: 1.25rem !important;
    margin-bottom: 1rem !important;
  }

  .order-summary h2::after {
    width: 40px;
  }
}

/* Order Summary Header & Loader Styling */
.order-summary h2 {
  color: var(--white) !important;
  font-weight: 600 !important;
  font-size: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  text-align: center !important;
  background: linear-gradient(
    135deg,
    var(--white),
    var(--aquamarine)
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  position: relative !important;
}

.order-summary h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--aqua));
  border-radius: 1px;
}

/* Loading Skeleton Styles - Accurate Sizing */
.skeleton-loader {
  background: transparent;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 10;
  /* Match exact modern-order-summary dimensions */
  margin: 1.5rem 0;
}

/* Add spacing between skeleton sections to match real content */
.skeleton-content > .skeleton-item:not(:last-child) {
  margin-bottom: 1rem;
}

.skeleton-content {
  background: linear-gradient(
    135deg,
    var(--deep-violet) 0%,
    var(--card) 50%,
    var(--deep-violet) 100%
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(108, 51, 252, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  /* Match actual content height - much taller */
  width: 100%;
  min-height: 420px;
  max-width: none;
}

.skeleton-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--violet) 0%,
    var(--aqua) 50%,
    var(--amethyst) 100%
  );
  animation: shimmer 3s ease-in-out infinite;
}

.skeleton-item {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 2s infinite;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-title {
  /* Match exact "ORDER SUMMARY" title dimensions */
  height: 1.5rem;
  width: 160px;
  margin: 0 auto 1.5rem auto;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 2s infinite;
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  line-height: 1.5rem;
}

.skeleton-header {
  /* Match exact product header section with proper spacing */
  height: 1.25rem;
  width: 280px;
  margin: 0 auto 1.5rem auto;
  border-bottom: 1px solid rgba(108, 51, 252, 0.2);
  padding-bottom: 1.5rem;
  /* Match product-header styling */
  display: flex;
  justify-content: center;
  align-items: center;
}

.skeleton-product-name {
  /* Match exact product name dimensions with proper spacing */
  height: 1.25rem;
  width: 220px;
  margin: 0 auto 2rem auto;
  /* Match product-name font size */
  font-size: 1.25rem;
  line-height: 1.4;
}

.skeleton-features {
  /* Match exact features-section dimensions with proper spacing */
  margin: 1.5rem 0;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  height: 120px; /* Taller to match real features section */
  position: relative;
}

.skeleton-feature {
  /* Match exact feature-item dimensions with proper spacing */
  height: 1.2rem;
  width: calc(100% - 1rem);
  margin-bottom: 0.8rem;
  padding: 0.8rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  /* Match feature-item styling */
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.skeleton-feature:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.skeleton-feature::before {
  /* Match exact icon dimensions */
  content: "";
  width: 0.875rem;
  height: 0.875rem;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 2s infinite;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  margin-right: 0.6rem;
}

.skeleton-feature::after {
  /* Match exact feature badge dimensions */
  content: "";
  width: 32px;
  height: 18px;
  background: rgba(131, 240, 199, 0.15);
  border-radius: var(--radius-sm);
  margin-left: auto;
  flex-shrink: 0;
}

.skeleton-feature:last-child {
  margin-bottom: 0;
}

.skeleton-total-section {
  /* Match exact total-section dimensions with proper spacing */
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(108, 51, 252, 0.1) 0%,
    rgba(57, 246, 248, 0.05) 100%
  );
  border: 2px solid var(--violet);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  height: 100px; /* Taller to match real total section */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skeleton-total-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(57, 246, 248, 0.1) 90deg,
    transparent 180deg,
    rgba(108, 51, 252, 0.1) 270deg,
    transparent 360deg
  );
  animation: rotate 8s linear infinite;
  z-index: -1;
}

.skeleton-total-label {
  /* Match exact total-label dimensions */
  height: 1.1rem;
  width: 140px;
  /* Match total-label styling */
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skeleton-total-price {
  /* Match exact total-price dimensions */
  height: 2rem;
  width: 160px;
  /* Match total-price styling */
  font-size: 2rem;
  font-weight: 900;
  position: relative;
}

.skeleton-total-price::after {
  /* Match the underline from total-price */
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--aqua), var(--aquamarine));
  border-radius: 1px;
  animation: pulse 2s ease-in-out infinite;
}

.skeleton-guarantee {
  /* Match exact guarantee-section dimensions with proper spacing */
  margin-top: 1.5rem;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    rgba(131, 240, 199, 0.1),
    rgba(57, 246, 248, 0.05)
  );
  border: 1px solid var(--aquamarine);
  border-radius: var(--radius-md);
  height: 85px; /* Taller to match real guarantee section */
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.skeleton-guarantee::before {
  /* Match the shimmer effect from guarantee-section */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--aquamarine), var(--aqua));
  animation: shimmer 3s ease-in-out infinite;
}

.skeleton-guarantee-content {
  /* Match exact guarantee text dimensions */
  height: 2.5rem;
  width: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.skeleton-guarantee-content::before {
  /* Strong text skeleton */
  content: "";
  height: 1rem;
  width: 180px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 2s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-guarantee-content::after {
  /* Small text skeleton */
  content: "";
  height: 0.85rem;
  width: 160px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 2s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-guarantee-icon {
  /* Match exact guarantee icon dimensions */
  width: 2rem;
  height: 2rem;
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0.1) 25%,
    rgba(255, 215, 0, 0.2) 50%,
    rgba(255, 215, 0, 0.1) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 2s infinite;
  border-radius: 50%;
  flex-shrink: 0;
  /* Match the gold color theme */
  box-shadow: 0 0 15px rgba(133, 77, 14, 0.3);
}

/* Skeleton loader visibility control */
.skeleton-loader {
  display: none;
  position: relative;
  z-index: 10;
}

/* Container with active skeleton should hide all other content */
.order-summary:has(.skeleton-loader.show) .modern-order-summary,
.order-summary:has(.skeleton-loader.show) .summary-container,
#orderSummary:has(.skeleton-loader.show) .modern-order-summary,
#orderSummary:has(.skeleton-loader.show) #producttotal {
  display: none !important;
  visibility: hidden !important;
}

.skeleton-loader.show {
  display: block !important;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.skeleton-loader.hide {
  display: none !important;
  opacity: 0;
}

/* When skeleton is showing, hide ALL content after it */
.skeleton-loader.show ~ * {
  display: none !important;
}

/* Specifically target modern order summary */
.skeleton-loader.show + .modern-order-summary,
.skeleton-loader.show ~ .modern-order-summary {
  display: none !important;
}

/* Hide the order summary title when skeleton is showing */
.order-summary:has(.skeleton-loader.show) h2 {
  display: none !important;
}

/* Fallback for browsers that don't support :has() */
.skeleton-loader.show ~ h2,
.skeleton-loader.show + * h2 {
  display: none !important;
}

/* Hide summary container when skeleton is active */
.order-summary:has(.skeleton-loader.show) .summary-container {
  display: none !important;
}

/* Fallback for summary container */
.skeleton-loader.show ~ .summary-container {
  display: none !important;
}

/* Force hide any content that might appear after skeleton */
.skeleton-loader.show ~ div,
.skeleton-loader.show ~ span,
.skeleton-loader.show ~ p,
.skeleton-loader.show ~ section {
  display: none !important;
}

/* Additional aggressive hiding for skeleton active state */
.skeleton-active .modern-order-summary,
.skeleton-active .summary-container,
.skeleton-active #producttotal {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.skeleton-active .skeleton-loader.show {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Smooth transitions for order summary */
.modern-order-summary {
  transition: opacity 0.3s ease;
}

.modern-order-summary.loading {
  opacity: 0.3;
  pointer-events: none;
}

/* Responsive skeleton adjustments - maintain accuracy */
@media (max-width: 768px) {
  .skeleton-content {
    padding: 1.5rem;
    min-height: 380px;
  }

  .skeleton-title {
    width: 140px;
    font-size: 1.25rem;
  }

  .skeleton-header {
    width: 240px;
  }

  .skeleton-product-name {
    width: 200px;
    font-size: 1.1rem;
  }

  .skeleton-total-section {
    padding: 1rem;
    height: 88px;
  }

  .skeleton-total-price {
    height: 1.5rem;
    width: 140px;
    font-size: 1.5rem;
  }

  .skeleton-features {
    height: 110px;
  }

  .skeleton-guarantee {
    height: 78px;
  }

  .skeleton-guarantee-content {
    width: 200px;
  }

  .skeleton-guarantee-content::before {
    width: 160px;
  }

  .skeleton-guarantee-content::after {
    width: 140px;
  }
}

@media (max-width: 480px) {
  .skeleton-content {
    padding: 1rem;
    min-height: 360px;
  }

  .skeleton-title {
    width: 120px;
    font-size: 1.25rem;
  }

  .skeleton-header {
    width: 200px;
  }

  .skeleton-product-name {
    width: 180px;
    font-size: 1rem;
  }

  .skeleton-total-section {
    height: 85px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .skeleton-total-price {
    height: 1.25rem;
    width: 120px;
    font-size: 1.25rem;
  }

  .skeleton-features {
    height: 105px;
  }

  .skeleton-feature {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    height: auto;
    padding: 0.5rem 0;
  }

  .skeleton-feature::before {
    margin-right: 0;
    margin-bottom: 0.2rem;
  }

  .skeleton-feature::after {
    margin-left: 0;
    align-self: flex-end;
  }

  .skeleton-guarantee {
    height: 75px;
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .skeleton-guarantee-content {
    width: 180px;
  }

  .skeleton-guarantee-content::before {
    width: 140px;
  }

  .skeleton-guarantee-content::after {
    width: 120px;
  }
}

/* Order Summary Container */
.order-summary {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  margin: 0 !important;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .modern-order-summary {
    border-width: 2px;
  }

  .features-section,
  .addon-item,
  .renewal-item {
    border-width: 2px;
  }

  .trust-indicators,
  .guarantee-section {
    border-width: 2px;
  }
}
