input[type="checkbox"], 
input[type="radio"] {
    accent-color: var(--orange); /* This is the modern one-line fix */
    cursor: pointer;
    width: 18px; 
    height: 18px;
}

:root {
  --bg: #FFFDF7;
  --navy: #183149;
  --orange: #ff7a4d;
}

html, body {
  margin: 0;
  
  height: auto;
  
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--navy);
  
  display: flex;
  flex-direction: column;

  min-height: 100vh; 
}

.container {
  height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

h1 {
  margin: 0 0 30px 0;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
}

.btn {
  background: var(--orange);
  padding: 16px 40px;
  border-radius: 50px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(255, 122, 77, 0.18);
  transition: 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 122, 77, 0.25);
}

.sub {
  margin-top: 16px;
  color: #94a3b8;
  font-size: 14px;
  text-align: center;
}

/* Navigation Bar */ /*
.navbar {
  position: sticky;
  top: 0px;
}

.navbar ul {
  list-style-type: none;
  background-color: var(--orange);
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.navbar a {
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  display: block;
  padding: 1em;
}

.navbar li {
  float: left;
}
*/

/* --- Modern Navigation Bar --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensures it floats above the 3D viewer */
    width: 100%;
    
    /* The "Glass" Effect */
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    height: 80px; /* Taller bars feel more premium */
    
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 1. Logo Styling */
.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-logo .dot {
    color: var(--orange); /* The branding dot */
}

/* 2. Link Layout */
.nav-links {
    list-style: none;
    display: flex;
    gap: 40px; /* Generous spacing = Luxury */
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    /* Removes old float behavior */
    display: block; 
}

/* Standard Links */
.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 0;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--orange);
    opacity: 1;
}

/* 3. The "Call To Action" Button */
/* This overrides the standard link style for the last item */
.nav-links a.nav-btn {
    background-color: var(--orange);
    color: white;
    opacity: 1;
    padding: 12px 28px;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 122, 77, 0.25); /* Glow effect */
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.nav-links a.nav-btn:hover {
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 8px 25px rgba(255, 122, 77, 0.35);
    color: white; /* Ensure text stays white */
}


.button {
  margin-top: 12px;
  padding: 10px 20px;
  background: #333;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  font-size: 16px;
}

.button.purchase {
  background: #0a8a0a;
}

.loading-screen {
  margin-top: 15px;
  padding: 15px;
  background: #f2f2f2;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
}

.action-btn {
    background-color: var(--orange); /* Was #007bff (Blue) */
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 50px; /* Match your pill shape from the nav */
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    width: 100%;
    
    /* Add the glow effect */
    box-shadow: 0 4px 15px rgba(255, 122, 77, 0.25);
}

.action-btn:hover {
    background-color: #e66030; /* A slightly darker orange for hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 122, 77, 0.35);
}

.purchase-btn {
  background-color: #28a745;
  /* Green for money */
}

.purchase-btn:hover {
  background-color: #218838;
}

.loading-box {
  display: none;
  /* Hidden by default */
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
  color: #555;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--orange); /* Was Blue */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

footer {
    background-color: var(--navy);
    /* width: 100%; */
    margin-top: auto;
    
    /* Layout Logic */
    display: flex;
    justify-content: center; /* Centers the links */
    align-items: center;     /* Centers items vertically */
    position: relative;      /* Important: Acts as the anchor for the copyright */
    
    /* Size & Spacing */
    padding: 10px 20px;      /* 10px top/bottom, 20px left/right */
    min-height: 20px;        /* Ensures the bar has a minimum thickness */
}

/* The Central Links */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px; /* Space between links */
}

.footer-list li a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-list li a:hover {
    color: var(--orange);
}

/* The Corner Copyright */
.copyright {
    position: absolute; /* Takes it out of the flow */
    left: 20px;         /* Sticks it to the left */
    bottom: 10px;       /* Sticks it to the bottom padding area */
    
    /* Styling */
    margin: 0;
    font-size: 0.75rem;
    color: #61798a;
    opacity: 0.8;
    white-space: nowrap; /* Prevents it from wrapping awkwardly */
}

/* MOBILE FIX: On small screens, stack them so they don't overlap */
@media (max-width: 768px) {
    footer {
        flex-direction: column;
        gap: 10px;
        padding-bottom: 15px;
    }
    .copyright {
        position: static; /* Disables absolute positioning on phone */
        text-align: center;
    }
}

/* 1. The Container (The word "Instant*") */
.tooltip {
    position: relative; /* Anchors the popup to this word */
    display: inline-block;
}

/* 2. The Hidden Text (The Popup) */
.tooltip .tooltip-text {
    visibility: hidden;    /* Hidden by default */
    width: 200px;          /* Width of the popup box */
    background-color: var(--navy); /* Dark background */
    color: #fff;           /* White text */
    text-align: center;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 400;      /* Keeps the popup text normal, not bold */
    
    /* Position the popup */
    position: absolute;
    z-index: 1;
    top: 120%;             /* 120% pushes it BELOW the word */
    left: 50%;             /* Centers it horizontally */
    margin-left: -100px;   /* Offsets it by half width (200px/2) to center perfectly */
    
    /* Animation */
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 3. The Arrow (Optional: Little triangle pointing up) */
.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    bottom: 100%; /* At the top of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent var(--navy) transparent;
}

/* 4. The Interaction (Show on Hover) */
.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* --- New Receipt & Control Styling --- */

/* Input + Button on same line */
.controls-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.promo-group {
    display: flex;
    flex: 1; /* Takes available space */
    gap: 5px;
}

.btn-small {
    background-color: var(--navy);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
}
.btn-small:hover { opacity: 0.9; }

/* Itemized Receipt Box */
.receipt-container {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0 20px 0;
    border: 1px solid #e2e8f0;
}

/* The Magic Flexbox for Left/Right alignment */
.receipt-row {
    display: flex;
    justify-content: space-between; /* Pushes items to edges */
    font-size: 0.9rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.receipt-row.discount {
    color: #16a34a; /* Green for discounts */
}

.receipt-row.total-row {
    border-top: 1px solid #cbd5e1;
    padding-top: 10px;
    margin-top: 10px;
    margin-bottom: 0;
    font-weight: 700;
    font-size: 1.1rem;
}

#promoMessage {
    font-size: 0.8rem;
    font-weight: 600;
}
.text-green { color: #16a34a; }
.text-red { color: #dc2626; }

.pill {
    /* CHANGED: Light Orange Background */
    background: #fff0e6; 
    
    /* CHANGED: Burnt Orange Text */
    color: #c2410c;       
    
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    
    /* NEW: Subtle border for extra definition */
    border: 1px solid rgba(255, 122, 77, 0.2); 
}

/* --- Mobile Navigation Fix --- */
@media (max-width: 768px) {
    /* 1. Allow the bar to grow taller so items can stack */
    .nav-container {
        height: auto; 
        flex-direction: column; /* Stack Top-to-Bottom */
        padding: 15px 20px;
        gap: 15px;
    }

    /* 2. Center the links and reduce the huge gap */
    .nav-links {
        gap: 15px; /* Was 40px, which is too big for mobile */
        justify-content: center;
        flex-wrap: wrap; /* Allows links to flow naturally */
        width: 100%;
    }

    /* 3. Optional: Make the button full width on phone for easier tapping */
    .nav-links a.nav-btn {
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }
}

/* Disabled state for buttons */
.action-btn:disabled,
.btn:disabled {
    background-color: #cbd5e1; /* Light grey */
    color: #64748b;
    cursor: not-allowed;
    transform: none; /* No hover lift */
    box-shadow: none; /* No glow */
}

/* Optional: Make the cart count in the nav stand out slightly */
#nav-cart {
    font-weight: 700;
}