/* Modern Thank You Page Styles */
* {
   box-sizing: border-box;
}

body {
   background: #f8f9fa;
   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.modern-thankyou-page {
   max-width: 1200px;
   margin: 0 auto;
   padding: 2rem 1rem;
}

.modern-header {
   background: white;
   border-radius: 12px;
   padding: 1.5rem;
   margin-bottom: 2rem;
   box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
   justify-content: space-between;
    align-items: center;
}

.modern-header a {
   color: #6c757d;
   text-decoration: none;
   font-weight: 500;
   transition: color 0.3s;
}

.modern-header a:hover {
   color: #28a745;
}

.success-hero {
   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
   border-radius: 16px;
   padding: 3rem 2rem;
   text-align: center;
   color: white;
   margin-bottom: 2rem;
   box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.success-icon {
   width: 80px;
   height: 80px;
   background: white;
   border-radius: 50%;
   display: inline-flex;
    align-items: center;
    justify-content: center;
   margin-bottom: 1.5rem;
   animation: scaleIn 0.5s ease-out;
}

.success-icon svg {
   width: 50px;
   height: 50px;
   stroke: #28a745;
   stroke-width: 3;
   fill: none;
   stroke-linecap: round;
   stroke-linejoin: round;
   stroke-dasharray: 100;
   stroke-dashoffset: 100;
   animation: drawCheck 0.8s ease-out 0.3s forwards;
}

@keyframes scaleIn {
   from {
      transform: scale(0);
      opacity: 0;
   }
   to {
      transform: scale(1);
      opacity: 1;
   }
}

@keyframes drawCheck {
   to {
      stroke-dashoffset: 0;
   }
}

.success-hero h1 {
   font-size: 2rem;
   font-weight: 700;
   margin-bottom: 0.5rem;
}

.success-hero p {
   font-size: 1.1rem;
   opacity: 0.95;
   margin: 0;
}

.order-number {
   background: rgba(255,255,255,0.2);
   padding: 0.5rem 1.5rem;
   border-radius: 50px;
   display: inline-block;
   margin-top: 1rem;
   font-weight: 600;
}

.modern-card {
   background: white;
   border-radius: 12px;
   padding: 2rem;
   margin-bottom: 2rem;
   box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.modern-card h2 {
   font-size: 1.5rem;
   font-weight: 700;
   margin-bottom: 1.5rem;
   color: #212529;
}

.product-item {
    display: flex;
   gap: 1.5rem;
   padding: 1.5rem;
   border: 1px solid #e9ecef;
   border-radius: 8px;
   margin-bottom: 1rem;
   transition: all 0.3s;
}

.product-item:hover {
   box-shadow: 0 4px 12px rgba(0,0,0,0.08);
   transform: translateY(-2px);
}

.product-image {
   width: 100px;
   height: 100px;
   border-radius: 8px;
   object-fit: cover;
   flex-shrink: 0;
}

.product-details {
   flex: 1;
}

.product-name {
   font-size: 1.1rem;
   font-weight: 600;
   color: #212529;
   margin-bottom: 0.5rem;
}

.product-meta {
    display: flex;
   gap: 2rem;
   color: #6c757d;
   font-size: 0.95rem;
}

.order-summary {
   background: #f8f9fa;
   border-radius: 8px;
   padding: 1.5rem;
   margin-top: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
   padding: 0.75rem 0;
   border-bottom: 1px solid #dee2e6;
}

.summary-row:last-child {
   border-bottom: none;
   font-size: 1.2rem;
   font-weight: 700;
   color: #28a745;
}

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

.info-item {
   padding: 1rem;
   background: #f8f9fa;
   border-radius: 8px;
}

.info-label {
   font-size: 0.85rem;
   color: #6c757d;
   margin-bottom: 0.25rem;
   text-transform: uppercase;
   letter-spacing: 0.5px;
}

.info-value {
   font-size: 1rem;
   color: #212529;
   font-weight: 600;
}

.action-buttons {
   display: flex;
   gap: 1rem;
   margin-top: 2rem;
   flex-wrap: wrap;
}

.btn-modern {
   padding: 0.75rem 2rem;
   border-radius: 8px;
   font-weight: 600;
   text-decoration: none;
   display: inline-flex;
   align-items: center;
   gap: 0.5rem;
   transition: all 0.3s;
   border: none;
   cursor: pointer;
}

.btn-primary-modern {
   background: #667eea;
   color: white;
}

.btn-primary-modern:hover {
   background: #5568d3;
   transform: translateY(-2px);
   box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary-modern {
   background: white;
   color: #667eea;
   border: 2px solid #667eea;
}

.btn-secondary-modern:hover {
   background: #667eea;
   color: white;
}

/* Funnel Upsells Styles */
.upsell-card-modern {
   background: white;
   border-radius: 12px;
   padding: 2rem;
   margin-bottom: 1.5rem;
   transition: all 0.3s;
}

.pricing-modern {
   display: flex;
   flex-direction: column;
}

.upsell-buy-btn {
   background: #28a745 !important;
   border: none !important;
   color: white !important;
   transition: all 0.3s;
}

.upsell-buy-btn:hover {
   background: #218838 !important;
   transform: translateY(-2px);
   box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.upsell-skip-btn {
   background: white !important;
   color: #6c757d !important;
   border: 2px solid rgba(108, 117, 125, 0.3) !important;
   transition: all 0.3s;
}

.upsell-skip-btn:hover {
   background: #f8f9fa !important;
   color: #495057 !important;
   border-color: #6c757d !important;
}

/* Responsive Design */
@media print {
   .no-print {
      display: none !important;
   }
}

@media (max-width: 768px) {
   .modern-thankyou-page {
      padding: 1rem 0.5rem;
   }
   
   .modern-header {
      flex-direction: column;
      gap: 1rem;
      text-align: center;
   }
   
   .success-hero {
      padding: 2rem 1rem;
   }
   
   .success-hero h1 {
      font-size: 1.5rem;
   }
   
   .modern-card {
      padding: 1.5rem;
   }
   
   .product-item {
      flex-direction: column;
   }
   
   .product-meta {
      flex-direction: column;
      gap: 0.5rem;
   }
   
   .info-grid {
      grid-template-columns: 1fr;
   }
   
   .action-buttons {
      flex-direction: column;
   }
   
   .btn-modern {
      width: 100%;
      justify-content: center;
   }
}

@media (max-width: 576px) {
   .success-icon {
      width: 60px;
      height: 60px;
   }
   
   .success-icon svg {
      width: 40px;
      height: 40px;
   }
   
   .success-hero h1 {
      font-size: 1.25rem;
   }
   
   .success-hero p {
      font-size: 1rem;
   }
   
   .order-number {
      font-size: 0.9rem;
      padding: 0.4rem 1rem;
   }
   
   .modern-card h2 {
      font-size: 1.25rem;
   }
   
   .product-name {
      font-size: 1rem;
   }
   
   .product-meta {
      font-size: 0.85rem;
    }
}