
*, ::before, ::after {
    font-family: 'Plus Jakarta Sans', 'Kantumruy Pro', sans-serif !important;
}
/* --- កូដស្ទាយចាស់ៗរបស់បង ទុកនៅខាងក្រោមធម្មតា --- */
:root {
    --background: #060608;
    --card: #111115;
    --border: rgba(255, 255, 255, 0.08);
    --primary: #ff0055;
    --secondary: #ff5085;
    --muted-foreground: #a1a1aa;
}

body {
    background-color: var(--bg-main) !important;
    color: var(--text-main) !important;
}

.aspect-portrait {
    aspect-ratio: 9 / 16;
}

.search-input {
    width: 100%;
    background-color: #16161c;
    border: 1px solid var(--border);
    color: #ffffff;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

    .search-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 15px rgba(255, 0, 85, 0.2);
    }
/* សម្រាប់ Chrome, Safari, និង Edge */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* សម្រាប់ Firefox */
.no-scrollbar {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
/* ធ្វើឱ្យចុងសងខាងនៃ Scrollbar Fade បន្តិច បង្កើតភាពទាក់ទាញ */
.mask-image-inline {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100% );
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100% );
}

.vip-btn-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

dialog {
    margin: auto; /* នេះជាចំណុចសំខាន់ដើម្បីឱ្យវាស្ថិតនៅកណ្តាល */
}

    /* បន្ថែមទំហំ និងរចនាប័ទ្មបន្ថែមបន្តិច */
    dialog[open] {
        display: flex;
        flex-direction: column;
    }

    dialog#editModal {
        /* ធានាថាវាស្ថិតនៅលើគេបង្អស់ */
        z-index: 9999;
    }

        dialog#editModal input {
            /* ធានាថា Input មិនត្រូវបានបិទបាំងដោយ pointer-events */
            pointer-events: auto !important;
            user-select: text !important;
        }
.payment-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: #050505;
}

/* 1. Set the unified background on the parent card */
.payment-card {
    display: flex;
    width: 100%;
    max-width: 900px;
    background: #121212; /* This is the background for the ENTIRE card */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* 2. Remove specific background colors from children */
.hero-section {
    flex: 1;
    background: transparent; /* Changed from #000 to transparent */
    color: white;
    padding: 10px;
}

.pricing-section {
    flex: 1;
    background: rgba(255, 255, 255, 0.03); /* Very subtle tint to distinguish the two sides */
    color: white;
    padding: 10px;
}

@media (min-width: 769px) {
    .hero-section, .pricing-section {
        padding: 48px;
    }
}

/* Mobile view fix */
@@media (max-width: 768px) {


    .payment-card {
        flex-direction: column;
        height: auto; /* Allows the card to expand to fit content */
        overflow-y: visible; /* Let the browser handle the scroll */
    }
    /* Ensure pricing section isn't forced off-screen */
    .pricing-section {
        flex: none;
        padding-bottom: 40px; /* Add breathing room at the bottom */
    }
}

.benefit-item p {
    font-family: 'Switzer', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
}
/* Typography & Layout */
.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 32px;
}

.benefit-item {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.check {
    color: #FF4463;
    font-weight: bold;
}

.pricing-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Plan Cards */
.plan-card {
    display: block;
    border: 2px solid #333;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

    .plan-card.active {
        border-color: #FF4463;
        background: #252525;
    }

/* Button Gradient */
.pay-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #F94663, #FB8851);
    color: white;
    font-weight: 800;
    cursor: pointer;
    margin-top: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .payment-card {
        flex-direction: column;
    }
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none; /* Keeps it looking like a button, not a link */
    transition: background 0.3s ease;
    backdrop-filter: blur(4px);
    margin-bottom: 24px;
}

    .back-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }

.price-summary {
    margin-bottom: 20px;
    border-top: 1px solid #333;
    padding-top: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

    .summary-row.total {
        font-size: 1.2rem;
        font-weight: 800;
        color: white;
        margin-top: 10px;
    }

    .summary-row.discount {
        color: #4CAF50; /* Green for savings */
    }

.coupon-section {
    margin: 20px 0;
}

.coupon-input-wrapper {
    display: flex;
    background: #1e1e1e; /* Match the plan card backgrounds */
    border: 2px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

    .coupon-input-wrapper:focus-within {
        border-color: #FF4463; /* Pink highlight when active */
    }

    .coupon-input-wrapper input {
        flex: 1;
        background: transparent;
        border: none;
        padding: 14px 16px;
        color: white;
        font-size: 14px;
        outline: none;
    }

    .coupon-input-wrapper button {
        background: #333;
        color: white;
        border: none;
        padding: 0 20px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s;
    }

        .coupon-input-wrapper button:hover {
            background: #444;
        }

.coupon-message {
    font-size: 12px;
    margin-top: 8px;
    padding-left: 5px;
}
.no-sub-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 68, 99, 0.1); /* Subtle pink/red tint */
    border: 1px solid rgba(255, 68, 99, 0.2);
    color: #FF4463;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

    /* Optional: Add a small icon inside the badge */
    .no-sub-badge::before {
        content: "✓";
        font-weight: bold;
    }
.plan-card.active {
    border-color: #FF4463 !important;
    background: #252525 !important;
}
.coupon-message {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

    .coupon-message.error {
        color: #e74c3c; /* Red */
    }

    .coupon-message.success {
        color: #27ae60; /* Green */
    }

.status-box {
    background: #fff;
    color: #333; /* ADD THIS LINE: Ensures all text inside is dark */
    border-radius: 12px;
    padding: 25px;
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

    .status-box.success {
        border: 2px solid #27ae60;
    }

    .status-box.error {
        border: 2px solid #e74c3c;
    }

    .status-box.expired {
        border: 2px solid #f39c12;
    }

.qr-wrapper {
    max-width: 300px;
    margin: 15px auto;
}

.qr-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.payment-details {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.timer-row {
    margin-top: 10px;
    color: #e74c3c;
    font-weight: bold;
}

.support-warning {
    margin-top: 15px;
    padding: 10px;
    background-color: #fff3f3;
    border: 1px solid #ffdbdb;
    border-radius: 8px;
    font-size: 0.85em;
    color: #d9534f;
}

.btn-primary {
    display: block;
    background: #e74c3c;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
}
/* Ensure all headings inside the boxes are dark */
.status-box h3 {
    color: #222;
    margin-top: 0;
}

/* Ensure buttons have white text so they are readable against the red/green backgrounds */
.btn-primary {
    display: block;
    background: #e74c3c;
    color: #ffffff !important; /* Forces button text to be white */
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
}

/* Explicitly set link color in support warning */
.support-warning a {
    color: #d9534f;
    font-weight: bold;
    text-decoration: underline;
}