/* ============================================ */
/* VIEWER PLANS EXPANDER - Styles               */
/* ============================================ */
.viewer-plans-expander-section {
    padding: 40px 0;
}

.viewer-plans-toggle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px;
    padding: 20px 40px;
    background: linear-gradient(145deg, #1a1a2e 0%, #141414 100%);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-family: inherit;
}

.viewer-plans-toggle-btn:hover {
    border-color: #e50914;
    box-shadow: 0 8px 25px rgba(229,9,20,0.15);
}

.viewer-plans-toggle-btn .vpt-title {
    font-size: 22px;
    font-weight: 700;
}

.viewer-plans-toggle-btn .vpt-sub {
    font-size: 13px;
    color: #aaa;
}

.viewer-plans-toggle-btn .vpt-arrow {
    font-size: 14px;
    color: #e50914;
    margin-top: 4px;
}

/* Shared Pricing Section Styles */
.pricing-section {
    background: transparent;
    padding: 40px 20px;
}

.pricing-scroll-wrapper {
    position: relative;
    margin: 30px 0;
    background: transparent;
    box-shadow: none;
}

.pricing-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    gap: 20px;
    scroll-behavior: smooth;
    padding: 20px 12px 30px 12px;
    -webkit-overflow-scrolling: touch;
}

.pricing-scroll::-webkit-scrollbar {
    height: 4px;
}
.pricing-scroll::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 2px;
}
.pricing-scroll::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 2px;
}
.pricing-scroll::-webkit-scrollbar-thumb:hover {
    background: #e50914;
}




/* ============================================ */
/* GLASSMORPHISM CAROUSEL OVERLAY               */
/* Drop-in replacement for pricing-scroll       */
/* Keep all existing PHP logic intact           */
/* ============================================ */

/* CSS Variables for admin controls */
:root {
    --card-glass-opacity: 0.07;
    --card-glass-blur: 20px;
    --overlay-darkness: 0.55;
    --active-card-glass-opacity: 0.12;
}

/* Body background setup — apply your custom image here */
.glass-carousel-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: background-image 1s ease-in-out;
    position: relative;
}

.glass-carousel-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, var(--overlay-darkness));
    z-index: 0;
    pointer-events: none;
    transition: background 0.5s ease;
}

.glass-carousel-body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

/* ──────────────────────────────────────
   ADMIN CONTROLS PANEL
   ────────────────────────────────────── */
.glass-controls-panel {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 220px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.glass-controls-panel.collapsed {
    min-width: auto;
    padding: 10px;
    gap: 0;
}

.glass-controls-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    transition: all 0.3s ease;
}

.glass-controls-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
}

.glass-controls-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-controls-panel.collapsed .glass-controls-content {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

.glass-control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.glass-control-group label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.glass-control-group input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.glass-control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e50914;
    cursor: pointer;
    border: 2px solid rgba(229, 9, 20, 0.4);
}

.glass-range-value {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.6rem;
}

.glass-btn-random {
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid rgba(229, 9, 20, 0.35);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    width: 100%;
}

.glass-btn-random:hover {
    background: rgba(229, 9, 20, 0.35);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.3);
}

/* Background indicator */
.glass-bg-indicator {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 1000;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ──────────────────────────────────────
   CAROUSEL CONTAINER
   Replaces .pricing-scroll-wrapper
   ────────────────────────────────────── */
.glass-carousel-outer {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100vw;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glass-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    overflow: hidden;
    padding: 30px 0 40px;
}

.glass-carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 520px;
    position: relative;
}

/* ──────────────────────────────────────
   GLASS CARDS (Applied to .plan-card)
   ────────────────────────────────────── */
.pricing-section.glass-mode .plan-card {
    position: absolute;
    width: 290px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, var(--card-glass-opacity)) !important;
    backdrop-filter: blur(var(--card-glass-blur)) !important;
    -webkit-backdrop-filter: blur(var(--card-glass-blur)) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 24px !important;
    padding: 28px 22px 24px !important;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    box-shadow: none !important;
}

.pricing-section.glass-mode .plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(90deg, #e50914, #ff6b6b, #e50914);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
    opacity: 1;
    z-index: 2;
    transition: all 0.5s ease;
}

/* LEFT position (previous card) */
.pricing-section.glass-mode .plan-card.position-left {
    transform: translateX(-115%) scale(0.85) !important;
    opacity: 0.45 !important;
    filter: blur(1px);
    z-index: 1;
}

/* CENTER position (active card) */
.pricing-section.glass-mode .plan-card.position-center {
    transform: translateX(0) scale(1) !important;
    opacity: 1 !important;
    filter: blur(0);
    z-index: 10;
    border-color: rgba(229, 9, 20, 0.5) !important;
    background-color: rgba(255, 255, 255, var(--active-card-glass-opacity)) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(229, 9, 20, 0.15) inset, 0 0 80px rgba(229, 9, 20, 0.08) !important;
}

.pricing-section.glass-mode .plan-card.position-center::before {
    height: 4px;
    left: 10px;
    right: 10px;
}

/* RIGHT position (next card) */
.pricing-section.glass-mode .plan-card.position-right {
    transform: translateX(115%) scale(0.85) !important;
    opacity: 0.45 !important;
    filter: blur(1px);
    z-index: 1;
}

/* HIDDEN position (all other cards) */
.pricing-section.glass-mode .plan-card.position-hidden {
    transform: translateX(0) scale(0.7) !important;
    opacity: 0 !important;
    filter: blur(3px);
    z-index: 0;
    pointer-events: none;
}

/* Override hover transforms in glass mode */
.pricing-section.glass-mode .plan-card:hover {
    transform: none !important;
}

.pricing-section.glass-mode .plan-card.position-center:hover {
    transform: translateX(0) scale(1) !important;
}

/* Make plan badge always visible on center card */
.pricing-section.glass-mode .plan-card .plan-badge {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.pricing-section.glass-mode .plan-card.position-center .plan-badge {
    opacity: 1;
    transform: scale(1);
}

/* Semi-transparent inner elements for glass effect */
.pricing-section.glass-mode .plan-card .plan-header {
    border-bottom-color: rgba(229, 9, 20, 0.2) !important;
}

.pricing-section.glass-mode .plan-card .plan-name {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-section.glass-mode .plan-card .plan-features li {
    color: rgba(255, 255, 255, 0.65) !important;
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

.pricing-section.glass-mode .plan-card.position-center .plan-features li {
    color: rgba(255, 255, 255, 0.9) !important;
}

.pricing-section.glass-mode .plan-card .duration-select {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* CTA button glassmode */
.pricing-section.glass-mode .plan-card .plan-button {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.pricing-section.glass-mode .plan-card:not(.position-center) .plan-button {
    pointer-events: none;
    opacity: 0.5;
}

/* ──────────────────────────────────────
   CAROUSEL DOTS
   ────────────────────────────────────── */
.glass-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 0;
    position: relative;
    z-index: 5;
}

.glass-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.glass-carousel-dot.active {
    background: #e50914;
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.6);
    width: 24px;
    border-radius: 10px;
}

/* Swipe hint */
.glass-swipe-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    margin-top: 10px;
    animation: pulse-hint-glass 2s ease-in-out infinite;
    position: relative;
    z-index: 5;
}

@keyframes pulse-hint-glass {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* ──────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────── */
@media (max-width: 768px) {
    .glass-carousel-wrapper {
        max-width: 100%;
        padding: 20px 0 30px;
    }
    .glass-carousel-track {
        min-height: 460px;
    }
    .pricing-section.glass-mode .plan-card {
        width: 250px;
        padding: 22px 16px 20px !important;
        border-radius: 20px !important;
    }
    .pricing-section.glass-mode .plan-card.position-left {
        transform: translateX(-105%) scale(0.82) !important;
    }
    .pricing-section.glass-mode .plan-card.position-right {
        transform: translateX(105%) scale(0.82) !important;
    }
    .glass-controls-panel {
        top: 8px;
        right: 8px;
        padding: 12px;
        min-width: 180px;
        border-radius: 12px;
    }
}

@media (max-width: 380px) {
    .pricing-section.glass-mode .plan-card {
        width: 210px;
        padding: 18px 14px 16px !important;
        border-radius: 18px !important;
    }
    .pricing-section.glass-mode .plan-card.position-left {
        transform: translateX(-100%) scale(0.78) !important;
    }
    .pricing-section.glass-mode .plan-card.position-right {
        transform: translateX(100%) scale(0.78) !important;
    }
    .glass-carousel-track {
        min-height: 420px;
    }
}













/* Plan Card Styles */
.plan-card {
    flex: 0 0 auto;
    width: 260px;
    background: linear-gradient(145deg, #1a1a2e 0%, #141414 100%);
    border-radius: 16px;
    padding: 24px 18px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5), 0 0 0 1px rgba(229,9,20,0.05) inset;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e50914, #ff6b6b, #e50914);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-8px);
    border-color: #e50914;
    box-shadow: 0 20px 30px -5px rgba(229,9,20,0.3), 0 0 0 1px #e50914 inset;
}
.plan-card:hover::before {
    opacity: 1;
}

.plan-card.featured {
    border-color: #e50914;
    background: linear-gradient(145deg, #1f1f3a 0%, #1a1a1a 100%);
    box-shadow: 0 8px 25px rgba(229,9,20,0.2), 0 0 0 1px #e50914 inset;
}
.plan-card.featured::before {
    opacity: 1;
}

.plan-header {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(229,9,20,0.2);
}

.plan-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-badge {
    display: inline-block;
    background: #e50914;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.plan-price {
    text-align: center;
    margin-bottom: 20px;
}

.plan-price .amount {
    font-size: 36px;
    font-weight: 800;
    color: #e50914;
    text-shadow: 0 0 20px rgba(229,9,20,0.5);
}

.plan-price .period {
    font-size: 13px;
    color: #8a929e;
    margin-left: 2px;
}

.plan-price .free-badge {
    font-size: 28px;
    font-weight: 700;
    color: #4CAF50;
    text-shadow: 0 0 15px rgba(76,175,80,0.3);
}

.duration-select {
    width: 100%;
    padding: 12px 16px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #e4e6eb;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e50914' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    margin-bottom: 12px;
}

.duration-select:hover {
    border-color: rgba(229, 9, 20, 0.4);
}

.duration-select:focus {
    outline: none;
    border-color: #e50914;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex: 1;
}

.plan-features li {
    padding: 8px 0;
    color: #ccc;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
}

.plan-button {
    display: block;
    text-align: center;
    padding: 12px 16px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: auto;
    border: 1px solid transparent;
}

.plan-button-primary {
    background: #e50914;
    color: white;
    box-shadow: 0 4px 15px rgba(229,9,20,0.3);
}

.plan-button-primary:hover {
    background: #ff0a16;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(229,9,20,0.5);
}

.plan-button-outline {
    background: transparent;
    color: #e50914;
    border-color: #e50914;
}

.plan-button-outline:hover {
    background: rgba(229,9,20,0.1);
    color: #ff0a16;
    border-color: #ff0a16;
}

@media (max-width: 768px) {
    .viewer-plans-toggle-btn {
        max-width: 90vw;
        padding: 16px 24px;
    }
    .viewer-plans-toggle-btn .vpt-title {
        font-size: 18px;
    }
    .plan-card {
        width: 240px;
    }
    .pricing-section {
        padding-left: 0;
        padding-right: 0;
    }
    .pricing-scroll {
        padding-left: 16px;
        padding-right: 16px;
    }
}
@media (max-width: 480px) {
    .plan-card {
        width: 250px;
    }
    .plan-name {
        font-size: 18px;
    }
    .plan-price .amount {
        font-size: 30px;
    }
}

/* Padding for both viewer & creator sections */
.viewer-plans-expander-section .pricing-scroll {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

.pricing-section .pricing-container {
    padding-left: 24px !important;
    padding-right: 24px !important;
}

@media (max-width: 768px) {
    .viewer-plans-expander-section .pricing-scroll,
    .pricing-section .pricing-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* Desktop centering */
@media (min-width: 769px) {
    .pricing-scroll-wrapper {
        display: flex !important;
        justify-content: center !important;
    }
    .pricing-scroll {
        max-width: 1200px !important;
        justify-content: center !important;
    }
    .pricing-section .pricing-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    [id^="creator-pkg-"] {
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .viewer-plans-expander-section .pricing-scroll,
    [id^="creator-pkg-"] {
        justify-content: flex-start !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}




