/* ============================================
   MODERN PRICING PAGE STYLES - FLICKOFORM
   ============================================ */

/* Force Dark Theme Overrides for Standard Cart Parent */
body,
html {
    background-color: #0a0d27 !important;
    color: #ffffff !important;
}

#main-body {
    background-color: #0a0d27 !important;
}

/* Hide or Style Standard Cart Header Elements if they clash */
.header-lined,
.breadcrumb,
#header,
.navbar-main {
    background-color: #0a0d27 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.navbar-main {
    margin-bottom: 0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #ffffff !important;
}

/* Color Variables */
:root {
    --bg-page: #0a0d27;
    /* Matches Header */
    --bg-card: #0a0e27;
    /* Dark Contrast */
    --accent-blue: #0066FF;
    --text-white: #ffffff;
    --text-gray: #8b9dc3;
    --text-muted: #6b7a9d;
    --border-blue: rgba(0, 102, 255, 0.3);
}

/* Page Container */
.products-page-container {
    display: flex;
    gap: 24px;
    padding: 20px;
    background: #0a0d27;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Sidebar Styles */
.products-sidebar {
    width: 220px;
    flex-shrink: 0;
    min-width: 0;
}

.products-main-content {
    min-width: 0;
}

.category-list {
    display: block !important;
}
.category-item {
    display: block;
    width: 100%;
}
.category-item a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 15px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 4px;
}

.category-item a {
    display: block;
    padding: 10px 12px;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    font-size: 13px;
}

.category-item.active a,
.category-item a:hover {
    background: var(--accent-blue);
    color: var(--text-white);
}

/* Main Content Area */
.products-main-content {
    flex: 1;
    max-width: 1200px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

/* Pricing Cards Grid */
.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

/* ============================================
   MODERN PRICING CARD — IPTV PROMOTION
   ============================================ */
.pricing-card-modern {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #11163a 0%, #0a0d27 100%);
    border: 1px solid rgba(79, 125, 243, 0.25);
    border-radius: 16px;
    padding: 28px 22px 22px;
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    overflow: hidden;
}

/* Subtle blue glow strip at top */
.pricing-card-modern::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #4F7DF3 50%, transparent 100%);
    opacity: 0.7;
}

.pricing-card-modern:hover {
    transform: translateY(-6px);
    border-color: #4F7DF3;
    box-shadow:
        0 18px 40px rgba(79, 125, 243, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Featured "Most Popular" card */
.pricing-card-modern.is-featured {
    border-color: #4F7DF3;
    background:
        linear-gradient(160deg, rgba(79, 125, 243, 0.18) 0%, #0a0d27 60%);
    box-shadow:
        0 12px 36px rgba(79, 125, 243, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pricing-card-modern.is-featured::before { opacity: 1; }

.popular-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #4F7DF3 0%, #3B5FC7 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(79, 125, 243, 0.45);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.popular-badge i { font-size: 10px; }

/* Plan Title */
.plan-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff !important;
    text-align: center;
    margin: 0 0 6px 0;
    letter-spacing: 0.3px;
}

/* Plan Duration */
.plan-duration {
    font-size: 13px;
    font-weight: 500;
    color: #8b9dc3;
    text-align: center;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Price Container */
.price-container {
    text-align: center;
    margin: 0 0 22px;
    padding-bottom: 18px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.price-amount {
    font-size: 38px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #cfd8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 4px;
}

.price-label {
    font-size: 11px;
    color: #8b9dc3;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* Features Container */
.features-container {
    flex: 1;
    margin-bottom: 22px;
}

.plan-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #c8d0e0;
    line-height: 1.45;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.plan-features-list li i {
    color: #4F7DF3;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Order Button */
.card-footer {
    margin-top: auto;
    padding-top: 4px;
}

.btn-order-modern {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #4F7DF3 0%, #3B5FC7 100%);
    border: 1px solid transparent;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 6px 18px rgba(79, 125, 243, 0.35);
}

.btn-order-modern i {
    transition: transform 0.25s ease;
}

.btn-order-modern:hover {
    background: linear-gradient(135deg, #5b89ff 0%, #4060ce 100%);
    color: #ffffff !important;
    box-shadow: 0 10px 26px rgba(79, 125, 243, 0.5);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-order-modern:hover i {
    transform: translateX(3px);
}

/* Featured card uses a slightly brighter button */
.pricing-card-modern.is-featured .btn-order-modern {
    background: linear-gradient(135deg, #5b89ff 0%, #4060ce 100%);
    box-shadow: 0 8px 22px rgba(79, 125, 243, 0.5);
}

/* Responsive Design */
@media (max-width: 1100px) {
    .products-sidebar {
        width: 190px;
    }
}

@media (max-width: 900px) {
    .pricing-cards-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .products-page-container {
        flex-direction: column;
        padding: 16px;
    }

    .products-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .pricing-cards-grid {
        gap: 20px;
    }

    .pricing-card-modern {
        max-width: 100%;
    }

    .page-title {
        font-size: 32px;
    }

    .plan-title {
        font-size: 28px;
    }

    .price-amount {
        font-size: 42px;
    }
}

@media (max-width: 480px) {
    .pricing-cards-grid {
        grid-template-columns: 1fr;
    }

    .plan-title {
        font-size: 24px;
    }

    .price-amount {
        font-size: 36px;
    }
}