/* ==========================================================
   DASHBOARD CARDS POSTS
   ==========================================================
   Dashboard polish, Facebook section, token management, post/card visual refinements.
*/

/* v2.0 polish */
.qd-hero{
    position:relative;
    overflow:hidden;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 190px 280px;
    align-items:center;
    gap:24px;
    padding:34px!important;
    background:
        radial-gradient(circle at 8% 0%, rgba(255,214,102,.45), transparent 30%),
        radial-gradient(circle at 72% 14%, rgba(225,48,108,.18), transparent 28%),
        linear-gradient(135deg,#fffaf0,#f7fbff 54%,#eef6ff)!important;
}
.qd-dashboard-kicker{
    display:inline-flex;
    padding:6px 11px;
    border-radius:999px;
    background:rgba(255,255,255,.75);
    border:1px solid rgba(148,163,184,.24);
    color:#c13584;
    font-size:12px;
    font-weight:900;
    letter-spacing:.13em;
    text-transform:uppercase;
    margin-bottom:12px;
}
.qd-hero-copy h2{
    font-size:44px!important;
    letter-spacing:-.045em;
    line-height:.98!important;
    margin-bottom:12px!important;
    background:linear-gradient(135deg,#14213d,#833ab4,#e1306c);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent!important;
}
.qd-hero-copy p{
    max-width:620px;
    font-size:16px;
    line-height:1.55;
    color:#475569!important;
}
.qd-hero-visual{
    position:relative;
    height:150px;
    border-radius:22px;
    background:rgba(255,255,255,.58);
    border:1px solid rgba(148,163,184,.24);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.8), 0 14px 32px rgba(15,23,42,.07);
}
.qd-mini-chart-bars{
    position:absolute;
    left:24px;
    right:24px;
    bottom:24px;
    height:85px;
    display:flex;
    align-items:flex-end;
    gap:10px;
}
.qd-mini-chart-bars span{
    flex:1;
    border-radius:999px 999px 6px 6px;
    background:linear-gradient(180deg,#f77737,#e1306c,#833ab4);
}
.qd-mini-chart-bars span:nth-child(1){height:36%}
.qd-mini-chart-bars span:nth-child(2){height:54%}
.qd-mini-chart-bars span:nth-child(3){height:42%}
.qd-mini-chart-bars span:nth-child(4){height:75%}
.qd-mini-chart-bars span:nth-child(5){height:92%}
.qd-mini-chart-line{
    position:absolute;
    left:24px;
    right:24px;
    top:30px;
    height:34px;
    border-top:4px solid rgba(37,99,235,.75);
    border-radius:50%;
    transform:rotate(-8deg);
}
.qd-status{
    min-width:0!important;
    gap:12px!important;
}
.qd-status-item{
    padding:15px 16px!important;
    border-radius:18px!important;
    background:rgba(255,255,255,.78)!important;
    border:1px solid rgba(148,163,184,.24)!important;
    box-shadow:0 8px 22px rgba(15,23,42,.055);
}
.qd-status-item span{
    display:block;
    color:#64748b;
    font-size:12px;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.08em;
    margin-bottom:6px;
}
.qd-status-item strong{
    display:block;
    color:#0f172a;
    font-size:14px;
    line-height:1.35;
    overflow-wrap:anywhere;
}
.qd-section-title-wrap{
    text-align:center;
    padding-bottom:18px!important;
    margin-bottom:22px!important;
}
.qd-section-title-wrap h3{
    display:inline-block;
    margin:0!important;
    font-size:30px!important;
    line-height:1.1;
    letter-spacing:-.035em;
    color:#111827!important;
}
.qd-section-title-wrap h3::after{
    content:"";
    display:block;
    width:64px;
    height:4px;
    margin:12px auto 0;
    border-radius:999px;
    background:linear-gradient(90deg,#f77737,#e1306c,#833ab4);
}
.qd-email-title h3::after,.qd-green-title h3::after{
    background:linear-gradient(90deg,#22c55e,#14b8a6);
}
.qd-section-title-wrap p{
    max-width:620px;
    margin:10px auto 0!important;
}
.qd-instagram-content-inner .qd-section-title-wrap h3{
    font-size:23px!important;
}
.qd-instagram-content-inner .qd-section-title-wrap h3::after{
    width:44px;
    height:3px;
}
@media(max-width:940px){
    .qd-hero{grid-template-columns:1fr!important}
    .qd-hero-visual{display:none}
}


/* v2.1 Facebook section */
.qd-facebook-section{
    margin-top:34px;
    padding:24px;
    border-radius:24px;
    border:1px solid #bfdbfe;
    background:linear-gradient(180deg,#f8fbff,#eff6ff);
    box-shadow:0 12px 28px rgba(24,119,242,.05);
}
.qd-facebook-title h3::after{
    background:linear-gradient(90deg,#1877f2,#60a5fa)!important;
}
.qd-fb-posts-wrap{
    margin-top:24px;
    padding-top:18px;
    border-top:1px solid rgba(24,119,242,.14);
}
.qd-fb-posts-wrap h4{
    margin:0 0 14px;
    color:#1e3a8a;
    font-size:18px;
}
.qd-fb-grid{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:12px;
}
.qd-fb-card{
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:16px;
    border:1px solid rgba(24,119,242,.22);
    border-radius:16px;
    background:rgba(255,255,255,.9);
    text-decoration:none!important;
    color:#0f172a!important;
    box-shadow:0 2px 8px rgba(15,23,42,.035);
}
.qd-fb-card:hover{
    transform:translateY(-1px);
    box-shadow:0 8px 18px rgba(24,119,242,.08);
}
.qd-fb-thumb{
    width:100%;
    aspect-ratio:1 / 1;
    border-radius:14px;
    overflow:hidden;
    background:#f1f5f9;
    border:1px solid rgba(148,163,184,.22);
}
.qd-fb-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.qd-fb-card strong{
    font-size:14px;
    line-height:1.35;
}
.qd-fb-card small{
    color:#64748b;
}


/* v2.3 Facebook posts permission-safe mode */
.qd-fb-note{
    margin:0 0 14px;
    color:#64748b;
    font-size:13px;
}


@media (max-width:1300px){.qd-media-grid,.qd-fb-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media (max-width:1050px){.qd-media-grid,.qd-fb-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:760px){.qd-media-grid,.qd-fb-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:520px){.qd-media-grid,.qd-fb-grid{grid-template-columns:1fr;}}

/* v2.4 token management */
.qd-token-panel{
    margin-top:24px;
    padding:18px;
    border-radius:18px;
    background:rgba(255,255,255,.86);
    border:1px solid rgba(148,163,184,.26);
}
.qd-token-panel-head{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-start;
    margin-bottom:16px;
}
.qd-token-panel-head h4{
    margin:0 0 5px;
    font-size:18px;
    color:#1f2937;
}
.qd-token-panel-head p{
    margin:0;
    color:#64748b;
    font-size:13px;
}
.qd-token-toggle,.qd-copy-token{
    border:0;
    border-radius:999px;
    padding:9px 13px;
    font-weight:850;
    cursor:pointer;
}
.qd-token-toggle{
    background:#0f172a;
    color:#fff;
    white-space:nowrap;
}
.qd-token-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:14px;
}
.qd-token-card{
    display:flex;
    flex-direction:column;
    gap:9px;
    padding:15px;
    border-radius:16px;
    background:#fff;
    border:1px solid rgba(148,163,184,.25);
}
.qd-token-card-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.qd-token-card-title>span{
    color:#64748b;
    font-size:12px;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.08em;
}
.qd-token-inline{
    display:flex;
    align-items:stretch;
    gap:8px;
}
.qd-token-value{
    display:block;
    flex:1 1 auto;
    min-width:0;
    min-height:34px;
    padding:9px 10px;
    border-radius:12px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    color:#334155;
    white-space:normal;
    overflow-wrap:anywhere;
    font-size:12px;
    line-height:1.35;
}
.qd-copy-token{
    align-self:stretch;
    background:#e0f2fe;
    color:#075985;
    padding:8px 12px;
    white-space:nowrap;
}
.qd-token-card small{
    color:#64748b;
    line-height:1.35;
}
.qd-token-meta{
    display:block;
    white-space:normal;
}
@media(max-width:760px){
    .qd-token-panel-head{flex-direction:column}
}



/* v2.7.2 visual refinements */
.qd-hero{
    grid-template-columns:minmax(0,1fr) 280px!important;
    min-height:230px;
    isolation:isolate;
    background:
        linear-gradient(90deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.88) 42%,rgba(255,255,255,.42) 70%,rgba(255,255,255,.18) 100%),
        radial-gradient(circle at 12% 8%,rgba(255,214,102,.28),transparent 30%),
        linear-gradient(135deg,#fffaf0,#f7fbff 54%,#eef6ff)!important;
}
.qd-hero:before{
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    opacity:.58;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 360'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop stop-color='%23e1306c' stop-opacity='.15'/%3E%3Cstop offset='.52' stop-color='%23833ab4' stop-opacity='.34'/%3E%3Cstop offset='1' stop-color='%232563eb' stop-opacity='.26'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' stroke-width='2'%3E%3Cpath d='M-20 245 C110 245 110 200 220 210 S375 284 500 168 690 120 780 185 925 270 1040 118 1135 42 1220 64'/%3E%3Cpath d='M-30 300 C150 280 180 135 300 160 S430 260 555 110 730 34 835 95 990 245 1095 155 1160 125 1230 145' opacity='.55'/%3E%3Cpath d='M-10 185 C90 150 165 170 245 130 S410 122 500 90 665 138 760 78 930 85 1015 52 1140 44 1225 76' opacity='.35'/%3E%3C/g%3E%3Cg fill='%23e1306c' opacity='.24'%3E%3Ccircle cx='220' cy='210' r='5'/%3E%3Ccircle cx='500' cy='168' r='5'/%3E%3Ccircle cx='780' cy='185' r='5'/%3E%3Ccircle cx='1040' cy='118' r='5'/%3E%3C/g%3E%3Cg fill='%232563eb' opacity='.18'%3E%3Ccircle cx='300' cy='160' r='4'/%3E%3Ccircle cx='555' cy='110' r='4'/%3E%3Ccircle cx='835' cy='95' r='4'/%3E%3Ccircle cx='1095' cy='155' r='4'/%3E%3C/g%3E%3C/svg%3E");
    background-size:cover;
    background-position:center right;
    mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.22) 30%,#000 70%,#000 100%);
    -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.22) 30%,#000 70%,#000 100%);
}
.qd-hero:after{
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.7));
}
.qd-hero-copy,.qd-status{position:relative;z-index:1}
.qd-hero-visual{display:none!important}
.qd-card-icon{
    width:auto!important;
    height:auto!important;
    border-radius:0!important;
    background:transparent!important;
    font-size:17px!important;
    margin-right:2px;
}
.qd-website-card>span{gap:7px!important}
.qd-website-chart .chartjs-legend li span,
.qd-website-chart [class*=legend] span{border-radius:999px!important}
.qd-mini-table th,.qd-mini-table td{padding-top:5px!important;padding-bottom:5px!important;line-height:1.15!important}
@media(max-width:720px){.qd-hero{grid-template-columns:1fr!important}.qd-hero:before{opacity:.28}}


/* v2.7.3 header + subsection title refinements */
.qd-hero{
    grid-template-columns:1fr!important;
    padding:40px 42px!important;
}
.qd-hero-copy{
    max-width:760px;
}
.qd-dashboard-kicker,.qd-status,.qd-hero-visual{
    display:none!important;
}
.qd-centered-subsection-title{
    text-align:center;
}
.qd-centered-subsection-title h4{
    display:inline-block;
    margin:0!important;
    font-size:18px!important;
    line-height:1.2;
    color:#334155!important;
}
.qd-instagram-content-inner .qd-subsection-title{
    margin-bottom:16px;
}
.qd-fb-posts-wrap{
    padding-top:0!important;
}
.qd-fb-posts-wrap .qd-subsection-title{
    margin-top:0;
    margin-bottom:16px;
}


/* v2.7.4 cleanup refinements */
.qd-section-title-wrap h3::after{
    display:none!important;
}
.qd-instagram-content-inner{
    padding-top:0!important;
    border-top:0!important;
}
.qd-fb-posts-wrap{
    border-top:0!important;
}
.qd-hero-copy p{
    max-width:560px!important;
    line-height:1.5!important;
}


/* v2.7.5 alignment, brand headings, post labels, and date polish */
/* v2.7.7 improved post expand/collapse scrolling */
.qd-hero-copy{
    max-width:760px!important;
    margin:0 auto!important;
    text-align:center!important;
}
.qd-hero-copy h2,
.qd-hero-copy p{
    text-align:center!important;
    margin-left:auto!important;
    margin-right:auto!important;
}
.qd-top-nav{
    justify-content:center!important;
    margin-left:auto!important;
    margin-right:auto!important;
}
.qd-section-title-wrap{
    text-align:center!important;
}
.qd-instagram-title h3{
    background:linear-gradient(90deg,#f77737,#e1306c,#833ab4);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent!important;
}
.qd-facebook-title h3{
    background:linear-gradient(90deg,#1877f2,#60a5fa);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent!important;
}
.qd-media-toolbar{
    font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.qd-media-toolbar label{
    color:#334155!important;
    font-size:13px!important;
    font-weight:850!important;
    text-transform:none!important;
    letter-spacing:.01em!important;
}
.qd-media-toolbar select{
    min-width:150px;
    padding:9px 36px 9px 14px!important;
    border:1px solid rgba(148,163,184,.55)!important;
    border-radius:12px!important;
    background-color:#fff!important;
    color:#0f172a!important;
    font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif!important;
    font-size:13px!important;
    font-weight:800!important;
    box-shadow:0 4px 12px rgba(15,23,42,.04)!important;
}
.qd-media-toolbar select option{
    font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif!important;
    font-size:13px!important;
    font-weight:700!important;
    color:#0f172a!important;
}
.qd-media-type{
    padding:2px 0!important;
    border-radius:0!important;
    background:transparent!important;
    color:#64748b!important;
    font-size:11px!important;
    font-weight:750!important;
    letter-spacing:.04em!important;
    text-transform:uppercase!important;
}
.qd-media-card small,
.qd-fb-card small{
    font-size:11px!important;
    font-weight:750!important;
    letter-spacing:.045em!important;
    color:#64748b!important;
    text-transform:uppercase!important;
}


/* v3.8.5 compact token subsection header */
.qd-token-panel-head-compact{justify-content:center!important;margin-bottom:12px!important}

/* v3.8.7 compact token management refinements */
.qd-token-card-title{
    justify-content:flex-start!important;
    gap:8px!important;
}
.qd-token-card-title .qd-health-badge{
    padding:3px 7px!important;
    font-size:10px!important;
    line-height:1!important;
    letter-spacing:.04em!important;
}
.qd-token-inline{
    align-items:center!important;
}
.qd-copy-token{
    align-self:center!important;
    min-height:0!important;
    height:auto!important;
    padding:6px 10px!important;
    font-size:11px!important;
    line-height:1.1!important;
}
.qd-token-panel-actions{
    display:flex;
    justify-content:center;
    margin-top:12px;
}
.qd-token-toggle{
    background:#f1f5f9!important;
    color:#475569!important;
    border:1px solid #cbd5e1!important;
    padding:6px 11px!important;
    font-size:11px!important;
    line-height:1.1!important;
    box-shadow:none!important;
}
.qd-token-toggle:hover{
    background:#e2e8f0!important;
    color:#334155!important;
}

/* v3.9 token management compact card layout */
.qd-token-panel .qd-token-card-title{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:7px!important;
}
.qd-token-panel .qd-token-card-title .qd-health-badge{
    padding:2px 6px!important;
    font-size:9px!important;
    line-height:1!important;
    border-radius:999px!important;
}
.qd-token-panel .qd-token-inline{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
}
.qd-token-panel .qd-token-value{
    flex:1 1 auto!important;
}
.qd-token-panel .qd-copy-token{
    flex:0 0 auto!important;
    align-self:center!important;
    height:auto!important;
    min-height:0!important;
    padding:6px 10px!important;
    font-size:11px!important;
    line-height:1.1!important;
}
.qd-token-panel .qd-token-panel-actions{
    margin-top:12px!important;
    margin-bottom:0!important;
}
.qd-token-panel .qd-token-toggle{
    padding:6px 11px!important;
    font-size:11px!important;
    background:#f8fafc!important;
    color:#475569!important;
    border:1px solid #cbd5e1!important;
    box-shadow:none!important;
}
