:root {
    --brand-primary: #6d28d9;
    --brand-accent:  #f59e0b;
    --brand-dark:    #0f172a;
    --brand-light:   #f8fafc;
}

/* =============================================
   CART ANIMATIONS
   ============================================= */
@keyframes cart-pulse {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.3); }
    100% { transform: scale(1); }
}
.cart-pulse {
    animation: cart-pulse 0.6s ease-out;
}

@keyframes slide-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.slide-in {
    animation: slide-in 0.3s ease-out;
}

/* =============================================
   ORDER BUMP CARDS
   ============================================= */
.order-bump-card label,
.order-bump-card {
    cursor: pointer;
}

.order-bump-card input[type="checkbox"] {
    cursor: pointer;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #6d28d9;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    transition: background 0.15s, border-color 0.15s;
    position: relative;
    flex-shrink: 0;
}

.order-bump-card input[type="checkbox"]:checked {
    background: #6d28d9;
    border-color: #6d28d9;
}

.order-bump-card input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* =============================================
   LOADING SPINNER
   ============================================= */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* =============================================
   STICKY MOBILE CTA
   ============================================= */
.sticky-cta {
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}
.sticky-cta.visible {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .sticky-cta {
        transform: translateY(0);
    }
}

/* =============================================
   SALES PAGE ENHANCEMENTS
   ============================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-animate {
    animation: fadeInUp 0.6s ease-out both;
}
.hero-animate:nth-child(2) { animation-delay: 0.1s; }
.hero-animate:nth-child(3) { animation-delay: 0.2s; }
.hero-animate:nth-child(4) { animation-delay: 0.3s; }

/* Glow effect on CTA buttons */
#btn-hero-cta:hover,
#btn-main-cta:hover {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.4), 0 8px 30px rgba(0,0,0,0.3);
}

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.testimonial-card:hover {
    transform: translateY(-2px);
    border-color: rgba(109, 40, 217, 0.4);
}

/* =============================================
   ADMIN PANEL ENHANCEMENTS
   ============================================= */
.sidebar {
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
}

/* Metric cards hover */
#metrics-grid > div {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#metrics-grid > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Table row transitions */
tbody tr {
    transition: background 0.1s ease;
}

/* Funnel bar animation */
.funnel-bar {
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(109, 40, 217, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(109, 40, 217, 0.6);
}

/* =============================================
   UTILITIES
   ============================================= */
.truncate-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
