/* === VARIABLES & RESET === */
:root { 
    --wcsc-primary: #0f172a; 
    --wcsc-accent: #3b82f6; 
    --wcsc-bg: #ffffff; 
    --wcsc-text: #1e293b; 
    --wcsc-muted: #64748b;
    --wcsc-border: #e2e8f0;
    --wcsc-success: #10b981;
    --wcsc-danger: #ef4444;
    --wcsc-slide-width: 280px; 
    --wcsc-slide-gap: 24px; 
    --wcsc-radius: 16px;
    --wcsc-blur: 10px;
    --wcsc-dot-color: #0f172a;
}

.wcsc-container { 
    margin: 30px 0; 
    position: relative; 
    box-sizing: border-box; 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Loaders */
.wcsc-coupon-loader { padding: 20px; text-align: center; color: var(--wcsc-muted); font-size: 0.9em; }
.wcsc-spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid rgba(0,0,0,0.1); border-radius: 50%; border-top-color: var(--wcsc-accent); animation: wcsc-spin 1s linear infinite; margin-right: 8px; vertical-align: middle; }
.wcsc-spinner.small { width: 14px; height: 14px; border-width: 2px; }
@keyframes wcsc-spin { to { transform: rotate(360deg); } }

/* === SYMMETRY CORE CARD === */
.wcsc-card {
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    background: var(--wcsc-bg); 
    border: 1px solid var(--wcsc-border); 
    border-radius: var(--wcsc-radius);
    padding: 24px; 
    min-height: 180px; 
    position: relative; 
    overflow: hidden; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
.wcsc-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02); 
    border-color: var(--wcsc-accent);
}

/* === HEADER AREA === */
.wcsc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.wcsc-discount { font-size: 1.75rem; font-weight: 800; color: var(--wcsc-text); line-height: 1; letter-spacing: -0.5px; }
.wcsc-badges { display: flex; gap: 5px; }
.wcsc-badge { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.wcsc-badge.applied { background: var(--wcsc-success); }
.wcsc-badge.locked { background: var(--wcsc-muted); }
.wcsc-badge.hot { background: var(--wcsc-danger); width: auto; padding: 0 8px; border-radius: 12px; font-weight: 700; font-size: 10px; text-transform: uppercase; }

/* === BODY CONTENT === */
.wcsc-body { flex-grow: 1; margin-bottom: 20px; }
.wcsc-desc { font-size: 0.95rem; color: var(--wcsc-muted); margin: 0 0 10px 0; line-height: 1.5; }
.wcsc-timer { font-size: 0.8rem; font-weight: 700; color: var(--wcsc-danger); background: #fef2f2; padding: 6px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #fee2e2; }

/* === FOOTER & CTAs === */
.wcsc-footer { margin-top: auto; }
.wcsc-copy-row { display: flex; gap: 10px; background: #f8fafc; padding: 6px; border-radius: 12px; border: 1px solid var(--wcsc-border); }
.wcsc-input { flex: 1; border: none; background: transparent; text-align: center; font-family: monospace; font-weight: 700; text-transform: uppercase; font-size: 1.1rem; color: var(--wcsc-primary); outline: none; width: 100%; min-width: 0; }
.wcsc-btn { background: var(--wcsc-primary); color: #fff; border: none; border-radius: 8px; padding: 10px 20px; font-weight: 600; cursor: pointer; font-size: 0.85rem; transition: all 0.2s; white-space: nowrap; }
.wcsc-btn:hover { background: var(--wcsc-accent); transform: scale(1.05); }
.wcsc-btn.animating { animation: ripple 0.6s linear; }
.wcsc-msg-success { color: var(--wcsc-success); font-weight: 700; font-size: 0.9em; text-transform: uppercase; text-align: center; display: block; width: 100%; }

@keyframes ripple {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    100% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
}

/* === PROGRESS WRAP === */
.wcsc-progress-wrap { background: #f1f5f9; padding: 15px; border-radius: 12px; text-align: center; border: 1px dashed var(--wcsc-accent); }
.wcsc-bar { height: 10px; background: #e2e8f0; border-radius: 5px; overflow: hidden; margin-bottom: 8px; position: relative; }
.wcsc-fill { height: 100%; background: linear-gradient(90deg, var(--wcsc-accent), #60a5fa); width: 0; transition: width 0.5s ease; background-size: 20px 20px; background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent); animation: stripe-move 1s linear infinite; }
.wcsc-progress-wrap small { font-size: 0.9rem; font-weight: 700; color: var(--wcsc-text); display: block; }
.wcsc-warning { color: var(--wcsc-danger); font-weight: 700; display: block; margin-top: 5px; animation: pulse-orange 2s infinite; }

@keyframes stripe-move { 0% { background-position: 0 0; } 100% { background-position: 20px 20px; } }
@keyframes pulse-orange { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }


/* =========================================
   10 TEMPLATE STYLES
========================================= */

/* 1. GRID */
.wcsc-style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

/* 2. SLIDER PRO (BASE) */
.wcsc-style-slider .wcsc-slider-wrapper { position: relative; display: flex; align-items: center; overflow: hidden; }
.wcsc-slider-track { display: flex; gap: var(--wcsc-slide-gap); overflow-x: auto; scroll-snap-type: x mandatory; padding: 15px 5px; scrollbar-width: none; width: 100%; }
.wcsc-slider-track::-webkit-scrollbar { display: none; }
.wcsc-style-slider .wcsc-card { min-width: var(--wcsc-slide-width); max-width: var(--wcsc-slide-width); width: var(--wcsc-slide-width); scroll-snap-align: center; flex-shrink: 0; }

/* SLIDER EFFECT: CENTER MODE */
.wcsc-center-mode .wcsc-slider-track { padding-left: calc(50% - (var(--wcsc-slide-width) / 2)); padding-right: calc(50% - (var(--wcsc-slide-width) / 2)); }
.wcsc-center-mode .wcsc-card { transition: transform 0.4s ease, opacity 0.4s ease; opacity: 0.5; transform: scale(0.9); }
.wcsc-center-mode .wcsc-card.is-active { opacity: 1; transform: scale(1.05); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); z-index: 2; border-color: var(--wcsc-accent); }

/* SLIDER EFFECT: COVERFLOW (FIXED - NO OVERLAP) */
.wcsc-effect-coverflow .wcsc-slider-track { perspective: 1200px; transform-style: preserve-3d; padding-left: calc(50% - (var(--wcsc-slide-width) / 2)); padding-right: calc(50% - (var(--wcsc-slide-width) / 2)); }
.wcsc-effect-coverflow .wcsc-card { transition: all 0.5s ease; transform: scale(0.85) rotateY(15deg); opacity: 0.6; z-index: 1; }
.wcsc-effect-coverflow .wcsc-card.is-active { transform: scale(1.05) rotateY(0deg); opacity: 1; z-index: 10; box-shadow: 0 20px 40px rgba(0,0,0,0.15); border-color: var(--wcsc-accent); }
.wcsc-effect-coverflow .wcsc-card.is-active ~ .wcsc-card { transform: scale(0.85) rotateY(-15deg); }

/* SLIDER EFFECT: CONTINUOUS MARQUEE (FIXED 100% WIDTH) */
.wcsc-effect-marquee .wcsc-slider-track { scroll-snap-type: none; overflow: visible; width: max-content; padding: 10px 0; animation: wcsc-marquee linear infinite; }
.wcsc-effect-marquee .wcsc-slider-wrapper:hover .wcsc-slider-track { animation-play-state: paused; }
.wcsc-effect-marquee .wcsc-card { max-width: 100vw; /* Prevent bleed on 100% setting */ }
@keyframes wcsc-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - (var(--wcsc-slide-gap) / 2))); }
}

/* SLIDER EFFECT: VERTICAL SLIDE */
.wcsc-effect-vertical_slide .wcsc-slider-track { flex-direction: column; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; height: 380px; padding: 5px; }
.wcsc-effect-vertical_slide .wcsc-card { width: 100% !important; min-width: 100%; min-height: 160px; scroll-snap-align: start; }
.wcsc-effect-vertical_slide .wcsc-nav.wcsc-prev { top: 0; left: 50%; transform: translateX(-50%) rotate(90deg); }
.wcsc-effect-vertical_slide .wcsc-nav.wcsc-next { bottom: 0; right: auto; left: 50%; transform: translateX(-50%) rotate(90deg); }

/* Hover Arrows (Desktop Only) */
.wcsc-nav { background: #fff; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--wcsc-border); box-shadow: 0 4px 12px rgba(0,0,0,0.1); position: absolute; z-index: 10; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--wcsc-primary); transition: 0.3s; }
.wcsc-nav:hover { background: var(--wcsc-primary); color: #fff; }
.wcsc-nav.wcsc-prev { left: 0px; } .wcsc-nav.wcsc-next { right: 0px; }

@media (min-width: 768px) {
    .wcsc-slider-wrapper:not(.dir-vertical) .wcsc-nav { opacity: 0; pointer-events: none; }
    .wcsc-slider-wrapper:not(.dir-vertical):hover .wcsc-nav { opacity: 1; pointer-events: auto; }
}

/* Dots */
.wcsc-slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; width: 100%; }
.wcsc-dot { width: 10px; height: 10px; background: #cbd5e1; border-radius: 50%; cursor: pointer; transition: 0.3s; }
.wcsc-dot.active { background: var(--wcsc-dot-color); transform: scale(1.3); }

/* 3. CYBER TICKET */
.wcsc-style-cyber_ticket { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.wcsc-style-cyber_ticket .wcsc-card { background: #0f172a; border: 1px solid #334155; color: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%, 95% 100%, 90% 90%, 10% 90%, 5% 100%, 0 100%); padding-bottom: 40px; }
.wcsc-style-cyber_ticket .wcsc-discount { color: #22d3ee; text-shadow: 0 0 10px rgba(34,211,238,0.5); }
.wcsc-style-cyber_ticket .wcsc-desc { color: #94a3b8; }
.wcsc-style-cyber_ticket .wcsc-copy-row { background: #1e293b; border-color: #334155; }
.wcsc-style-cyber_ticket .wcsc-input { color: #fff; }
.wcsc-style-cyber_ticket .wcsc-btn { background: #22d3ee; color: #000; }
.wcsc-style-cyber_ticket .wcsc-tear-line { position: absolute; left: 15px; right: 15px; top: 55px; border-top: 2px dashed #334155; }

/* 4. NEUMORPHISM */
.wcsc-style-neumorph { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.wcsc-style-neumorph .wcsc-card { background: #e0e5ec; border: none; border-radius: 20px; box-shadow: 9px 9px 16px rgb(163,177,198,0.6), -9px -9px 16px rgba(255,255,255, 0.5); padding: 30px; }
.wcsc-style-neumorph .wcsc-copy-row { background: transparent; border: none; box-shadow: inset 3px 3px 7px #a3b1c6, inset -3px -3px 7px #fff; border-radius: 12px; }
.wcsc-style-neumorph .wcsc-btn { box-shadow: 3px 3px 7px #a3b1c6, -3px -3px 7px #fff; background: #e0e5ec; color: var(--wcsc-primary); border: none; }
.wcsc-style-neumorph .wcsc-btn:hover { box-shadow: inset 3px 3px 7px #a3b1c6, inset -3px -3px 7px #fff; transform: none; }

/* 5. MINIMAL PILL */
.wcsc-style-pill { display: flex; flex-wrap: wrap; gap: 15px; }
.wcsc-style-pill .wcsc-card { flex-direction: row; align-items: center; min-height: auto; padding: 8px 20px; border-radius: 100px; width: auto; flex-grow: 0; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.wcsc-style-pill .wcsc-header { margin: 0; margin-right: 15px; border-right: 1px solid var(--wcsc-border); padding-right: 15px; }
.wcsc-style-pill .wcsc-discount { font-size: 1.2rem; }
.wcsc-style-pill .wcsc-body { display: none; }
.wcsc-style-pill .wcsc-footer { margin: 0; }
.wcsc-style-pill .wcsc-copy-row { background: transparent; border: none; padding: 0; gap: 0; }
.wcsc-style-pill .wcsc-input { display: none; }
.wcsc-style-pill .wcsc-btn { padding: 6px 16px; font-size: 0.8rem; border-radius: 20px; }

/* 6. LIST */
.wcsc-style-list { display: flex; flex-direction: column; gap: 15px; }
.wcsc-style-list .wcsc-card { flex-direction: row; align-items: center; min-height: auto; padding: 15px 25px; }
.wcsc-style-list .wcsc-header { margin: 0; min-width: 100px; }
.wcsc-style-list .wcsc-body { margin: 0 20px; }
.wcsc-style-list .wcsc-footer { margin: 0; min-width: 150px; }

/* 7. GLASSMORPHISM */
.wcsc-style-glass { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.wcsc-style-glass .wcsc-card { background: rgba(255, 255, 255, 0.65); backdrop-filter: blur(var(--wcsc-blur)); -webkit-backdrop-filter: blur(var(--wcsc-blur)); border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1); }

/* 8. NEON */
.wcsc-style-neon { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.wcsc-style-neon .wcsc-card { background: #09090b; border: 1px solid #27272a; color: #fff; box-shadow: 0 0 15px rgba(0,0,0,0.5); }
.wcsc-style-neon .wcsc-discount { color: #fff; text-shadow: 0 0 5px #fff, 0 0 10px var(--wcsc-accent), 0 0 20px var(--wcsc-accent); }
.wcsc-style-neon .wcsc-desc { color: #a1a1aa; }
.wcsc-style-neon .wcsc-copy-row { background: #18181b; border-color: #3f3f46; }
.wcsc-style-neon .wcsc-input { color: #fff; }
.wcsc-style-neon .wcsc-btn { background: transparent; border: 1px solid var(--wcsc-accent); color: var(--wcsc-accent); box-shadow: 0 0 5px var(--wcsc-accent); }
.wcsc-style-neon .wcsc-btn:hover { background: var(--wcsc-accent); color: #fff; box-shadow: 0 0 20px var(--wcsc-accent); }

/* 9. PRODUCT TAG */
.wcsc-style-product_tag { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.wcsc-style-product_tag .wcsc-card { border-radius: 0; border: 2px solid var(--wcsc-primary); clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px); background: #fff; }
.wcsc-style-product_tag .wcsc-header::before { content: ''; position: absolute; top: 15px; left: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--wcsc-primary); }

/* 10. PHYSICAL TAG */
.wcsc-style-tag { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.wcsc-style-tag .wcsc-card { border: none; background: radial-gradient(circle at left center, transparent 14px, var(--wcsc-bg) 15px); padding-left: 35px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }

/* Applied State */
.wcsc-card.wcsc-applied { border-color: var(--wcsc-success); background: #f0fdf4; }
.wcsc-style-cyber_ticket .wcsc-card.wcsc-applied, .wcsc-style-neon .wcsc-card.wcsc-applied { background: #064e3b; border-color: #059669; }