/* ===================================================
   DASHBOARD BILLING PRO MAX - OBSIDIAN NEON THEME
   Scoped for #view-billing container
   =================================================== */

/* Container overrides */
#view-billing {
    background: transparent !important;
    /* Let dashboard bg show or override */
    padding-bottom: 50px;
}

/* Typography Imports */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

/* Variables Scope */
.pro-max-container {
    --glass-surface: rgba(10, 15, 30, 0.7);
    /* Deeper, richer dark */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);

    --neon-cyan: #22d3ee;
    /* Lighter Cyan for better contrast */
    --neon-purple: #c084fc;
    /* Lighter Purple */
    --neon-gold: #fbbf24;
    /* Lighter Gold */
    --neon-green: #34d399;
    /* Lighter Green */

    --blur-xl: 16px;
    /* Increased blur */
    --transition-slow: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy feel */

    font-family: 'Outfit', sans-serif;
}

/* Atmospheric Background Mesh */
#view-billing::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15), transparent 60%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

/* Grid Layout */
/* Grid Layout */
.pro-max-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
    max-width: 1400px;
    /* Limit width */
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1400px) {
    .pro-max-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .pro-max-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Styles */
.pro-max-card {
    position: relative;
    background: var(--glass-surface);
    backdrop-filter: blur(var(--blur-xl));
    -webkit-backdrop-filter: blur(var(--blur-xl));
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    /* Softer rounded corners */
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-slow);
    overflow: hidden;
    min-height: 500px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Subtle Noise Texture */
.pro-max-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

/* Spotlight Border Effect */
.pro-max-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.5s;
}

/* Hover Effects */
/* Hover Effects */
.pro-max-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.pro-max-card.basic:hover {
    box-shadow: 0 25px 50px -12px rgba(255, 255, 255, 0.1);
}

.pro-max-card.standard:hover {
    box-shadow: 0 25px 50px -12px rgba(168, 85, 247, 0.15);
}

.pro-max-card.pro:hover {
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.15);
}

.pro-max-card.max:hover {
    box-shadow: 0 25px 50px -12px rgba(245, 158, 11, 0.15);
}

.pro-max-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, var(--neon-cyan), transparent 60%);
}

.pro-max-card.standard:hover::before {
    background: linear-gradient(135deg, var(--neon-purple), transparent 60%);
}

.pro-max-card.pro:hover::before {
    background: linear-gradient(135deg, #3b82f6, transparent 60%);
}

.pro-max-card.max:hover::before {
    background: linear-gradient(135deg, var(--neon-gold), transparent 60%);
}

/* Valid Badges */
.pm-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.pm-badge.gold {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFBEB;
    border: none;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

/* Header */
.pm-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

/* Pricing Display */
.pm-price-box {
    margin-bottom: 24px;
}

.pm-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 700;
    color: white;
    letter-spacing: -1px;
}

.pm-period {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
}

/* Color Accents */
.pro-max-card.basic .pm-price {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.pro-max-card.standard .pm-price {
    color: var(--neon-purple);
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.pro-max-card.pro .pm-price {
    color: #60a5fa;
    text-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
}

.pro-max-card.max .pm-price {
    color: var(--neon-gold);
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.pro-max-card.standard h3 {
    color: var(--neon-purple);
}

.pro-max-card.pro h3 {
    color: #60a5fa;
}

.pro-max-card.max h3 {
    color: var(--neon-gold);
}

/* Features List */
.pm-features {
    list-style: none;
    margin-bottom: 24px;
    flex-grow: 1;
}

.pm-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.4;
}

.pm-features li i {
    color: var(--neon-green);
    font-size: 14px;
    flex-shrink: 0;
}

.pm-features li strong {
    color: white;
    font-weight: 600;
}

/* Buttons */
.pm-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: var(--transition-slow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    display: block;
}

.pm-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-2px);
}

.pm-btn.primary {
    background: white;
    color: black;
    border: none;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    animation: pulse-white 3s infinite;
}

.pm-btn.gold {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border: none;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    position: relative;
    overflow: hidden;
}

.pm-btn.gold:hover,
.pm-btn.primary:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.pm-btn.gold:hover {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
}

.pm-btn.gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.pm-btn.gold:hover::after {
    left: 100%;
    transition: 0.5s;
}

@keyframes pulse-white {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
    }
}

/* Header Section in Dashboard */
.pm-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    align-items: flex-end;
    margin-bottom: 32px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.pm-section-head h2 {
    font-size: 24px;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 15px;
}

.pm-section-head p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 5px;
}