
.bundle-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}
.bundle-card{
    overflow:hidden;
    border:1px solid #e2e7ef;
    border-radius:17px;
    background:#fff;
    box-shadow:0 7px 22px rgba(15,23,42,.035);
}
.bundle-card-image{
    height:190px;
    position:relative;
    overflow:hidden;
    background:linear-gradient(135deg,#eef0ff,#f7f9fc);
    display:grid;
    place-items:center;
    color:#9aa6b8;
    font-size:42px;
}
.bundle-card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.bundle-card-price{
    position:absolute;
    right:10px;
    bottom:10px;
    min-height:31px;
    padding:0 10px;
    border-radius:999px;
    color:#fff;
    background:rgba(27,34,51,.88);
    display:flex;
    align-items:center;
    font-size:11px;
    font-weight:900;
}
.bundle-card-body{
    padding:14px;
}
.bundle-card-body h3{
    margin:0;
    color:#24324a;
    font-size:16px;
    font-weight:850;
}
.bundle-card-body p{
    min-height:42px;
    margin:6px 0;
    color:#6e7b8f;
    font-size:11.5px;
    line-height:1.6;
}

/* V17.3 Website CMS / Rich Editor / Payment / Blog */
.cms-page{
    max-width:1580px;
    margin:0 auto;
}
.cms-head{
    margin-bottom:18px;
    padding:20px 22px;
    border:1px solid #e1e6ee;
    border-radius:18px;
    background:
        radial-gradient(circle at 90% 10%,rgba(91,92,226,.12),transparent 35%),
        #fff;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
}
.cms-head h1{
    margin:0;
    color:#172033;
    font:800 29px/1.2 Poppins,Inter,sans-serif;
    letter-spacing:-.03em;
}
.cms-head p{
    max-width:850px;
    margin:7px 0 0;
    color:#667085;
    font-size:13.5px;
    line-height:1.65;
}
.cms-kicker{
    display:block;
    margin-bottom:5px;
    color:#5b5ce2;
    font-size:10.5px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.cms-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 390px;
    gap:14px;
    align-items:start;
}
.cms-main,.cms-side{
    display:grid;
    gap:13px;
}
.cms-side{
    position:sticky;
    top:96px;
}
.cms-card{
    padding:16px;
    border:1px solid #e1e6ee;
    border-radius:15px;
    background:#fff;
    box-shadow:0 6px 20px rgba(15,23,42,.025);
}
.cms-card-head{
    margin-bottom:14px;
    display:flex;
    align-items:center;
    gap:10px;
}
.cms-card-head>span{
    width:40px;
    height:40px;
    border-radius:11px;
    color:#5b5ce2;
    background:#efedff;
    display:grid;
    place-items:center;
    font-size:17px;
}
.cms-card-head strong{
    display:block;
    color:#334155;
    font-size:14px;
    font-weight:850;
}
.cms-card-head small{
    display:block;
    margin-top:2px;
    color:#7b8799;
    font-size:10px;
}
.cms-form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}
.cms-form-grid .full{
    grid-column:1/-1;
}
.cms-stat-grid{
    margin-bottom:14px;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:10px;
}
.cms-stat{
    min-height:105px;
    padding:14px;
    border:1px solid #e2e7ef;
    border-radius:15px;
    background:#fff;
    display:flex;
    align-items:center;
    gap:11px;
}
.cms-stat>span{
    width:44px;
    height:44px;
    flex:0 0 auto;
    border-radius:12px;
    color:#5b5ce2;
    background:#efedff;
    display:grid;
    place-items:center;
    font-size:18px;
}
.cms-stat small{
    display:block;
    color:#7b8798;
    font-size:10px;
    font-weight:750;
}
.cms-stat strong{
    display:block;
    margin-top:3px;
    color:#172033;
    font-size:24px;
    font-weight:900;
}
.cms-quick-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
}
.cms-quick{
    min-height:128px;
    padding:15px;
    border:1px solid #e2e7ef;
    border-radius:14px;
    background:#fff;
    text-decoration:none;
    transition:.16s ease;
}
.cms-quick:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 28px rgba(15,23,42,.07);
}
.cms-quick i{
    width:42px;
    height:42px;
    border-radius:11px;
    color:#5b5ce2;
    background:#efedff;
    display:grid;
    place-items:center;
    font-size:18px;
}
.cms-quick strong{
    display:block;
    margin-top:10px;
    color:#28354b;
    font-size:13px;
    font-weight:850;
}
.cms-quick small{
    display:block;
    margin-top:4px;
    color:#7b8798;
    font-size:10px;
    line-height:1.55;
}
.rich-editor-shell{
    border:1px solid #d9e0ea;
    border-radius:12px;
    overflow:hidden;
    background:#fff;
}
.rich-editor-shell .ql-toolbar.ql-snow{
    border:0;
    border-bottom:1px solid #e4e8ef;
    background:#f8fafc;
}
.rich-editor-shell .ql-container.ql-snow{
    border:0;
}
.rich-editor-shell .ql-editor{
    min-height:260px;
    color:#28354a;
    font-size:14px;
    line-height:1.75;
}
.rich-editor-shell .rich-editor-fallback{
    width:100%;
    min-height:280px;
    padding:14px;
    border:0;
    outline:none;
    resize:vertical;
    font:14px/1.65 Inter,sans-serif;
}
.rich-editor-note{
    margin-top:6px;
    color:#8692a4;
    font-size:9.5px;
}
.cms-toggle-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
}
.cms-toggle{
    min-height:70px;
    padding:10px;
    border:1px solid #e1e6ee;
    border-radius:11px;
    display:flex;
    align-items:flex-start;
    gap:9px;
    cursor:pointer;
}
.cms-toggle input{
    margin-top:3px;
}
.cms-toggle strong{
    display:block;
    color:#344054;
    font-size:11.5px;
}
.cms-toggle small{
    display:block;
    margin-top:2px;
    color:#7d899a;
    font-size:9px;
}
.cms-image-preview{
    min-height:190px;
    border:1px dashed #cfd7e4;
    border-radius:12px;
    background:#f8fafc;
    overflow:hidden;
    display:grid;
    place-items:center;
    color:#98a2b3;
    font-size:38px;
}
.cms-image-preview img{
    width:100%;
    max-height:320px;
    object-fit:cover;
}
.payment-method-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}
.payment-method-card{
    padding:13px;
    border:1px solid #e1e6ee;
    border-radius:13px;
    background:#fff;
}
.payment-method-card h3{
    margin:0;
    color:#344054;
    font-size:13px;
    font-weight:850;
}
.payment-method-card p{
    margin:4px 0 0;
    color:#7c8798;
    font-size:10px;
    line-height:1.55;
}
.secret-status{
    display:inline-flex;
    align-items:center;
    gap:5px;
    min-height:28px;
    padding:0 9px;
    border-radius:999px;
    background:#eef8f1;
    color:#08783b;
    font-size:9.5px;
    font-weight:850;
}
.secret-status.warning{
    background:#fff5e6;
    color:#9a5b00;
}
.cms-table-wrap{
    overflow:auto;
}
.cms-table{
    width:100%;
    border-collapse:collapse;
}
.cms-table th,
.cms-table td{
    padding:11px 12px;
    border-bottom:1px solid #edf0f4;
    text-align:left;
    vertical-align:middle;
    font-size:11px;
}
.cms-table th{
    color:#667085;
    background:#fafbfc;
    font-size:9.5px;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.cms-table td{
    color:#4b596f;
}
.cms-badge{
    display:inline-flex;
    align-items:center;
    min-height:27px;
    padding:0 9px;
    border-radius:999px;
    background:#f0f2f6;
    color:#667085;
    font-size:9.5px;
    font-weight:850;
}
.cms-badge.published,
.cms-badge.active,
.cms-badge.approved{
    background:#e9f8ef;
    color:#08783b;
}
.cms-badge.pending,
.cms-badge.new,
.cms-badge.scheduled{
    background:#fff4df;
    color:#986000;
}
.cms-badge.rejected,
.cms-badge.inactive{
    background:#fff0ef;
    color:#b42318;
}
.public-rich-content{
    color:#4e5d72;
    font-size:15px;
    line-height:1.85;
}
.public-rich-content h1,
.public-rich-content h2,
.public-rich-content h3,
.public-rich-content h4{
    margin:1.35em 0 .5em;
    color:#202b3c;
    font-family:Poppins,Inter,sans-serif;
    font-weight:800;
}
.public-rich-content img{
    max-width:100%;
    height:auto;
    border-radius:12px;
}
.public-rich-content table{
    width:100%;
    border-collapse:collapse;
}
.public-rich-content th,
.public-rich-content td{
    padding:9px;
    border:1px solid #e1e6ee;
}
.blog-public-grid,
.library-collection-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
}
.blog-public-card,
.library-collection-card{
    overflow:hidden;
    border:1px solid #e1e6ee;
    border-radius:17px;
    background:#fff;
    box-shadow:0 7px 22px rgba(15,23,42,.035);
}
.blog-public-image,
.library-collection-image{
    height:200px;
    background:linear-gradient(135deg,#eef0ff,#f7f9fc);
    display:grid;
    place-items:center;
    color:#9aa6b8;
    font-size:38px;
    overflow:hidden;
}
.blog-public-image img,
.library-collection-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.blog-public-body,
.library-collection-body{
    padding:15px;
}
.blog-public-body h3,
.library-collection-body h3{
    margin:0;
    color:#26344b;
    font-size:16px;
    font-weight:850;
}
.blog-public-body p,
.library-collection-body p{
    margin:7px 0 0;
    color:#6f7c8f;
    font-size:11px;
    line-height:1.65;
}
@media(max-width:1200px){
    .cms-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .cms-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .cms-grid{grid-template-columns:1fr}
    .cms-side{position:static}
}
@media(max-width:900px){
    .bundle-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

    .blog-public-grid,
    .library-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .payment-method-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
    .bundle-grid{grid-template-columns:1fr}

    .cms-head{flex-direction:column}
    .cms-head h1{font-size:25px}
    .cms-stat-grid,
    .cms-quick-grid,
    .cms-form-grid,
    .cms-toggle-grid,
    .blog-public-grid,
    .library-collection-grid{
        grid-template-columns:1fr;
    }
    .cms-form-grid .full{grid-column:auto}
}

/* V19 advanced rich editor */
.rich-editor-shell .rich-editor-utility-group{
    margin-left:4px;
    padding-left:6px;
    border-left:1px solid #dfe4ec;
}
.rich-editor-shell .rich-editor-tool-btn{
    width:auto!important;
    min-width:28px;
    padding:0 5px!important;
    color:#475467!important;
    font:800 13px/1 Inter,sans-serif!important;
}
.rich-editor-shell .rich-editor-tool-btn:hover,
.rich-editor-shell .rich-editor-tool-btn.active{
    color:#5b5ce2!important;
    background:#ecebff!important;
    border-radius:5px;
}
.rich-editor-shell .rich-editor-source{
    width:100%;
    min-height:320px;
    padding:14px;
    border:0;
    outline:0;
    resize:vertical;
    background:#111827;
    color:#e5e7eb;
    font:13px/1.65 Consolas,"Courier New",monospace;
}
.rich-editor-shell.rich-editor-source-mode .ql-container{
    display:none;
}
.rich-editor-shell.rich-editor-fullscreen{
    position:fixed!important;
    inset:14px!important;
    z-index:12000!important;
    display:flex;
    flex-direction:column;
    border-radius:14px;
    box-shadow:0 22px 70px rgba(15,23,42,.3);
}
.rich-editor-shell.rich-editor-fullscreen .ql-container{
    flex:1;
    min-height:0;
    overflow:auto;
}
.rich-editor-shell.rich-editor-fullscreen .ql-editor,
.rich-editor-shell.rich-editor-fullscreen .rich-editor-source{
    min-height:calc(100vh - 120px);
}
body.rich-editor-body-lock{
    overflow:hidden!important;
}
.rich-editor-shell .ql-picker.ql-font{
    width:110px;
}
.rich-editor-shell .ql-picker.ql-size{
    width:78px;
}

/* Quill formatting retained after sanitization */
.public-rich-content .ql-align-center{text-align:center}
.public-rich-content .ql-align-right{text-align:right}
.public-rich-content .ql-align-justify{text-align:justify}
.public-rich-content .ql-indent-1{padding-left:3em}
.public-rich-content .ql-indent-2{padding-left:6em}
.public-rich-content .ql-indent-3{padding-left:9em}
.public-rich-content .ql-size-small{font-size:.8em}
.public-rich-content .ql-size-large{font-size:1.5em}
.public-rich-content .ql-size-huge{font-size:2.2em}
.public-rich-content .ql-font-serif{font-family:Georgia,"Times New Roman",serif}
.public-rich-content .ql-font-monospace{font-family:Consolas,"Courier New",monospace}
.public-rich-content table{
    width:100%;
    margin:12px 0;
    border-collapse:collapse;
}
.public-rich-content th,
.public-rich-content td{
    padding:8px 10px;
    border:1px solid #dfe4ec;
    vertical-align:top;
}
.public-rich-content img{
    max-width:100%;
    height:auto;
}
