/* Pricing page (Packages.html), AppDera theme.
   Only the pricing rules from the old home.css are kept: its nav, footer, hero and
   homepage rules clashed with the AppDera header and hid the navigation. */

        :root {
            /* tokens the page's own styles still use */
            --bexon-dark: #4a0039;
            --bexon-accent: #D4A85A;
            --bexon-border: #E5E1DA;
            --bexon-text-dark: #10213B;
            --bexon-text-muted: #586379;
            --pricing-navy: #4a0039;
            --pricing-gold: #D4A85A;
            --pricing-panel: #ffffff;
            --pricing-text: #10213B;
            --pricing-muted: #586379;
        }

        .italic-accent {
            font-family: 'Mona Sans', sans-serif;
            font-style: italic;
            font-weight: 800;
            color: var(--bexon-accent);
            letter-spacing: -0.03em;
        }

        .pad {
            padding: 80px 0;
        }

        .reveal-hero {
            opacity: 0;
            transform: translateY(25px);
            animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        .d1 {
            animation-delay: .1s;
        }

        .d2 {
            animation-delay: .25s;
        }

        .d3 {
            animation-delay: .4s;
        }

        .d4 {
            animation-delay: .55s;
        }

        .d5 {
            animation-delay: .7s;
        }

        @keyframes fadeUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .page-pricing {
            padding: 0 0 40px;
        }

        .our-pricing-box {
            text-align: center;
        }

        .manage-pricing__plan-toggle-wrap {
            display: flex;
            justify-content: center;
            margin-top: 2rem;
            margin-bottom: 2.5rem;
        }

        .manage-pricing__plan-toggle {
            position: relative;
            display: inline-grid;
            grid-template-columns: 1fr 1fr;
            align-items: stretch;
            min-width: 16.5rem;
            padding: 0;
            background: #fff;
            border: 1px solid rgba(74, 0, 57, 0.14);
            border-radius: 50px;
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 8px 24px rgba(74, 0, 57, 0.08);
        }

        .manage-pricing__plan-slider {
            position: absolute;
            top: 5px;
            left: 5px;
            width: calc(50% - 5px);
            height: calc(100% - 10px);
            background: #4a0039;
            border-radius: 50px;
            transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 0;
            pointer-events: none;
        }

        .manage-pricing__plan-slider--yearly {
            transform: translateX(100%);
        }

        .manage-pricing__plan-btn {
            position: relative;
            z-index: 1;
            min-width: 7.25rem;
            padding: 0.65rem 1.5rem;
            font-family: inherit;
            font-size: 0.9375rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            color: var(--pricing-muted);
            background: transparent;
            border: none;
            border-radius: 7px;
            cursor: pointer;
            transition: color 0.25s ease;
        }

        .manage-pricing__plan-btn:hover:not(.manage-pricing__plan-btn--active) {
                color: var(--pricing-text);
            }

        .manage-pricing__plan-btn--active {
            color: #fff;
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
        }

        .manage-pricing__plan-btn:focus-visible {
            outline: 2px solid var(--pricing-gold);
            outline-offset: 2px;
        }

        .manage-pricing__empty {
            text-align: center;
            padding: 2rem 1rem;
            color: var(--pricing-muted);
            grid-column: 1 / -1;
        }

        .manage-pricing__empty p {
                margin: 0;
                font-size: 1rem;
            }

        .packages-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1.5rem;
        }

        .pricing-item {
            height: 100%;
            display: flex;
            flex-direction: column;
            text-align: left;
            background: var(--pricing-panel);
            border: 1px solid rgba(74, 0, 57, 0.1);
            border-radius: 12px;
            overflow: hidden;
            transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
        }

        .pricing-item:hover {
                box-shadow: 0 12px 28px rgba(74, 0, 57, 0.12);
                transform: translateY(-2px);
            }

        .highlighted-box .pricing-header {
            background: var(--pricing-navy);
            color: #fff;
            padding: 1.25rem 1.35rem;
        }

        .pricing-header h2 {
            font-size: 1.15rem;
            font-weight: 800;
            margin: 0;
            color: #fff;
        }

        .pricing-header h2 span {
                display: none;
                font-size: 0.75rem;
                font-weight: 600;
                opacity: 0.85;
                margin-top: 0.35rem;
                text-transform: uppercase;
                letter-spacing: 0.06em;
            }

        .pricing-content {
            padding: 1rem 1.35rem;
            font-size: 0.9rem;
            color: var(--pricing-text);
            flex: 1;
            line-height: 1.55;
        }

        .pricing-content ul {
                list-style: disc;
                padding-left: 1.25rem;
                margin: 0.5rem 0;
            }

        .pricing-body {
            padding: 1rem 1.35rem 1.35rem;
            border-top: 1px solid rgba(74, 0, 57, 0.08);
            background: rgba(255, 255, 255, 0.45);
        }

        .pricing-body h3 {
			       font-size: 1.75rem;
					font-weight: 800;
					color: var(--pricing-navy);
					margin: 0 0 1rem;
					text-align: center;
					display: flex;
					line-height: 1.1;
					align-items: center;
					width: 100%;
					justify-content: center;
					gap: 0.25rem 0.2rem;
					padding-top: 25px;
					position: relative;
            }

        .pricing-body h3 span.price-period {
				position: relative;
				top: 2px;
			}

        .pricing-body h3 span.free-trial-price {
				position: absolute;
				top: 1px;
			}

        .pricing-body h3 span {
				font-size: 1rem;
				font-weight: 600;
				color: var(--pricing-muted);
				margin-top: 0.25rem;
				margin-right: 6px;
			}

        .pricing-body h3 span.free-trial-price {
				display: block;
			}

        .pricing-body h3 span.price-period, .pricing-body h3 span.free-trial-price {
				color: #4a0039;
			}

        .pricing-content ul {
            margin: 0;
            padding: 0;
        }

        .pricing-content ul li {
                position: relative;
                padding-left: 25px;
                margin-bottom: 10px;
            }

        .pricing-content ul li svg {
                    position: absolute;
                    left: 0;
                    top: 0;
                }

        .btn-default {
            display: inline-block;
            width: 100%;
            padding: 0.75rem 1.25rem;
            font-family: inherit;
            font-size: 0.9rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--pricing-navy);
            background: var(--pricing-gold);
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: background 0.2s ease, transform 0.15s ease;
        }

        .btn-default:hover {
                background: #B98D41;
                color: #fff;
            }

        .btn-default:focus-visible {
                outline: 2px solid var(--pricing-navy);
                outline-offset: 2px;
            }

        .manage-pricing__card {
            position: relative;
        }

        .manage-pricing__card--selected {
            box-shadow: 0 0 0 2px #D4A85A, 0 12px 28px rgba(212, 168, 90, .28);
            transform: translateY(-2px);
        }

        .manage-pricing__selected-pill {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 2;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 10px;
            font-size: 0.75rem;
            font-weight: 600;
            color: #fff;
            background: linear-gradient(135deg, #4a0039 0%, #792056 100%);
            border-radius: 999px;
            box-shadow: 0 2px 8px rgba(74, 0, 57, 0.3);
            pointer-events: none;
        }

        .load-more-btn {
            margin-top: 2rem;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.85rem 2rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            background: var(--pricing-navy);
            color: #fff;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: background 0.2s ease;
        }

        .load-more-btn:hover {
                background: #35002a;
            }

        .packages-message {
            margin-bottom: 1.5rem;
            padding: 1rem 1.25rem;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .packages-message--error {
            background: #fef2f2;
            color: #b91c1c;
            border: 1px solid #fecaca;
        }

        .packages-loading {
            position: fixed;
            inset: 0;
            z-index: 200;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(74, 0, 57, 0.45);
            backdrop-filter: blur(4px);
        }

        .packages-loading__spinner {
            width: 48px;
            height: 48px;
            border: 4px solid rgba(255,255,255,0.25);
            border-top-color: var(--bexon-accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .packages-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1.5rem;
        }

        .manage-pricing__col {
            flex: 0 1 100%;
            max-width: 100%;
        }

        @media (min-width: 768px) {
        .manage-pricing__col {
                flex: 0 1 calc(50% - 0.75rem);
                max-width: calc(50% - 0.75rem);
            }

        }

        @media (min-width: 992px) {
        .manage-pricing__col {
                flex: 0 1 calc(25% - 1.125rem);
                max-width: calc(25% - 1.125rem);
            }

        }

        .manage-pricing__card {
            position: relative;
        }

        .manage-pricing__card--selected {
            box-shadow: 0 0 0 2px #D4A85A, 0 12px 28px rgba(212, 168, 90, .28);
            transform: translateY(-2px);
        }

        .manage-pricing__selected-pill {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 2;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 10px;
            font-size: 0.75rem;
            font-weight: 600;
            color: #fff;
            background: linear-gradient(135deg, #4a0039 0%, #792056 100%);
            border-radius: 999px;
            box-shadow: 0 2px 8px rgba(74, 0, 57, 0.3);
            pointer-events: none;
        }

        .load-more-btn {
            margin-top: 2rem;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.85rem 2rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            background: var(--pricing-navy);
            color: #fff;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: background 0.2s ease;
        }

        .load-more-btn:hover {
                background: #35002a;
            }

        .packages-message {
            margin-bottom: 1.5rem;
            padding: 1rem 1.25rem;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .packages-message--error {
            background: #fef2f2;
            color: #b91c1c;
            border: 1px solid #fecaca;
        }

        .packages-loading {
            position: fixed;
            inset: 0;
            z-index: 200;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(74, 0, 57, 0.45);
            backdrop-filter: blur(4px);
        }

        .packages-loading__spinner {
            width: 48px;
            height: 48px;
            border: 4px solid rgba(255,255,255,0.25);
            border-top-color: var(--bexon-accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @media (max-width: 900px) {
        .pad {
                padding: 80px 0;
            }

        }

        /* Plan descriptions come from the admin/database as rich text. Text pasted from
           another site can carry its old highlight colour (the light-blue box on one plan).
           Strip pasted backgrounds and text colours so every plan matches the theme. */
        .pricing-content [style*="background"] { background: transparent !important; }
        .pricing-content [style*="color"] { color: inherit !important; }
        .pricing-content mark { background: transparent; color: inherit; }
