

/* CARDS — homepage panel language */
.pg-root .pg-card{
    border-radius:20px;
    border:1px solid #eef1f5;
    box-shadow:0 1px 2px rgba(15,23,42,.03),0 8px 24px -14px rgba(15,23,42,.08);
    transition:border-color .18s ease,box-shadow .18s ease;
}
.pg-root .pg-card:hover{box-shadow:0 2px 4px rgba(15,23,42,.04),0 16px 40px -18px rgba(15,23,42,.14)}

/* PROMPT CARD */
.pg-root .pg-prompt-body{padding:20px 22px 16px}
.pg-root .pg-textarea{
    font:400 15.5px/1.7 'Inter',system-ui,-apple-system,sans-serif;
    color:#0f172a;letter-spacing:-.005em;min-height:130px;
}
.pg-root .pg-textarea::placeholder{color:#94a3b8}
.pg-root .pg-prompt-footer{border-top:1px solid #f1f5f9;padding-top:12px;margin-top:10px}
.pg-root .pg-char-count{
    font:500 12px/1 'Inter',system-ui,sans-serif;
    color:#94a3b8;font-variant-numeric:tabular-nums;letter-spacing:.02em;
}
.pg-root .pg-random-btn{
    display:inline-flex;align-items:center;gap:6px;
    padding:6px 12px;border-radius:999px;
    background:transparent;border:1px solid transparent;
    color:#2060C0;font:600 12.5px/1 'Inter',system-ui,sans-serif;
    cursor:pointer;transition:all .18s ease;
}
.pg-root .pg-random-btn:hover{background:#EAF2FD;border-color:#EAF2FD;transform:translateY(-1px)}
.pg-root .pg-random-btn i{font-size:11px}

/* LABEL ROW — "Choose AI Model:" heading */
.pg-root .pg-label-row{
    display:inline-flex;align-items:center;gap:10px;
    margin:6px 2px 10px;
    font:700 13px/1 'Inter',system-ui,sans-serif;
    color:#0f172a;letter-spacing:-.005em;
}
.pg-root .pg-label-row .icon{
    width:28px;height:28px;border-radius:9px;
    background:linear-gradient(135deg,#EAF2FD,#EAF2FD);
    color:#2060C0;display:grid;place-items:center;font-size:12.5px;
    box-shadow:inset 0 0 0 1px rgba(54,128,237,.08);
}

/* MODEL SELECTOR TRIGGER */
.pg-root .pg-model-trigger{
    display:flex;align-items:center;gap:12px;
    padding:14px 16px;
    border:1px solid #e2e8f0;border-radius:14px;
    background:var(--pg-white,#fff);
    box-shadow:0 1px 2px rgba(15,23,42,.03);
    transition:all .18s ease;cursor:pointer;
}
.pg-root .pg-model-trigger:hover{border-color:#3680ED;box-shadow:0 4px 12px -4px rgba(54,128,237,.15)}
.pg-root .pg-trigger-img{
    width:28px;height:28px;border-radius:8px;padding:3px;
    background:#f8fafc;object-fit:contain;flex-shrink:0;
}
.pg-root .pg-model-trigger .t-name{
    flex:1;font:600 13.5px/1.3 'Inter',system-ui,sans-serif;
    color:#0f172a;letter-spacing:-.005em;text-align:left;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.pg-root .pg-model-trigger .t-chev{color:#94a3b8;font-size:12px;transition:transform .2s ease}
.pg-root .pg-model-trigger.open .t-chev{transform:rotate(180deg)}

/* MODEL DROPDOWN */
.pg-root .pg-model-dropdown{
    top:calc(100% + 8px);border-radius:16px;
    border:1px solid #e2e8f0;
    box-shadow:0 24px 60px -20px rgba(15,23,42,.2),0 4px 12px -4px rgba(15,23,42,.06);
    padding:8px;
}
.pg-root .pg-model-item{padding:10px 12px;border-radius:11px;gap:12px}
.pg-root .pg-model-item:hover{background:#f8fafc}
.pg-root .pg-model-item.active{background:#EAF2FD}
.pg-root .pg-model-item img{width:24px;height:24px;border-radius:7px;padding:2px;background:#f8fafc}
.pg-root .pg-model-item .m-name{font:700 13px/1.3 'Inter',system-ui,sans-serif;color:#0f172a;letter-spacing:-.005em}
.pg-root .pg-model-item .m-desc{font:500 11.5px/1.4 'Inter',system-ui,sans-serif;color:#94a3b8}
.pg-root .pg-model-item .m-badge{
    font:800 10px/1 'Inter',system-ui,sans-serif;
    padding:3px 8px;letter-spacing:.04em;
    background:#EAF2FD;color:#2060C0;border-radius:999px;
}
.pg-root .pg-model-item .m-badge.free{background:#E6FCF3;color:#087F5B}
.pg-root .pg-model-group{
    padding:8px 10px 6px;
    font:800 10.5px/1 'Inter',system-ui,sans-serif;
    letter-spacing:.08em;color:#94a3b8;text-transform:uppercase;
}

/* ADVANCED OPTIONS ACCORDION */
.pg-root .pg-acc{
    background:var(--pg-white,#fff);border:1px solid #eef1f5;border-radius:20px;
    box-shadow:0 1px 2px rgba(15,23,42,.03),0 8px 24px -14px rgba(15,23,42,.08);
    overflow:hidden;
    transition:border-color .18s,box-shadow .18s;
}
.pg-root .pg-acc:hover{border-color:#e2e8f0}
.pg-root .pg-acc.open{box-shadow:0 2px 4px rgba(15,23,42,.04),0 16px 40px -18px rgba(15,23,42,.14)}
.pg-root .pg-acc-trigger{
    padding:16px 20px;background:transparent;color:#0f172a;
    font:700 13.5px/1 'Inter',system-ui,sans-serif;
    letter-spacing:-.005em;gap:12px;
}
.pg-root .pg-acc-trigger:hover{background:transparent}
.pg-root .pg-acc-trigger .icon{
    width:28px;height:28px;border-radius:9px;
    background:linear-gradient(135deg,#EAF2FD,#EAF2FD);
    color:#2060C0;display:grid;place-items:center;font-size:12.5px;
    box-shadow:inset 0 0 0 1px rgba(54,128,237,.08);flex-shrink:0;
}
.pg-root .pg-acc-trigger .label{flex:1;font:700 13.5px/1 'Inter',system-ui,sans-serif;color:#0f172a}
.pg-root .pg-acc-trigger .acc-chev{color:#94a3b8;font-size:12px;transition:transform .2s ease}
.pg-root .pg-acc.open .pg-acc-trigger .acc-chev{transform:rotate(180deg)}
.pg-root .pg-acc-body{padding:4px 20px 20px;border-top:1px solid #f1f5f9;margin-top:0}

/* GENERATE BUTTON — see assets/css/ai-generate-btn.css (linked once above).
   This shell used to carry a second, divergent copy of the CTA on top of the
   base one; both are gone so all ~2,000 tools share one button. */

/* ACTIVITY HISTORY */
.pg-root .pg-hist-wrap{margin-top:28px}
.pg-root .pg-hist-head{
    display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 16px;
}
.pg-root .pg-hist-head h3{
    margin:0;
    font:800 16px/1.25 'Inter',system-ui,sans-serif;
    letter-spacing:-.015em;color:#0f172a;
    display:inline-flex;align-items:center;gap:10px;
}
.pg-root .pg-hist-head h3 i{
    width:30px;height:30px;border-radius:10px;
    background:linear-gradient(135deg,#EAF2FD,#EAF2FD);
    color:#2060C0;display:grid;place-items:center;
    font-size:13px;
    box-shadow:inset 0 0 0 1px rgba(54,128,237,.08);
}
.pg-root .pg-hist-count,.pg-root .pg-hist-head .pg-hist-count{
    display:inline-flex;align-items:center;
    padding:4px 12px;
    background:#EAF2FD;color:#2060C0;border-radius:999px;
    font:800 11.5px/1 'Inter',system-ui,sans-serif;
    letter-spacing:.04em;
    border:1px solid rgba(54,128,237,.14);
}

.pg-root .pg-hist-list{display:flex;flex-direction:column;gap:10px}
.pg-root .pg-hist-item{
    background:var(--pg-white,#fff);border:1px solid #eef1f5;border-radius:16px;
    box-shadow:0 1px 2px rgba(15,23,42,.03);
    overflow:hidden;
    transition:border-color .18s ease,box-shadow .18s ease;
}
.pg-root .pg-hist-item:hover{
    border-color:rgba(54,128,237,.25);
    box-shadow:0 12px 32px -14px rgba(15,23,42,.16);
}
.pg-root .pg-hist-head-row{padding:14px 16px;gap:14px}
.pg-root .pg-hist-head-row .hi-ic{
    width:32px;height:32px;border-radius:10px;
    background:linear-gradient(135deg,#EAF2FD,#EAF2FD);
    color:#2060C0;display:grid;place-items:center;
    font:800 12.5px/1 'Inter',system-ui,sans-serif;
    flex-shrink:0;
    box-shadow:inset 0 0 0 1px rgba(54,128,237,.08);
}
.pg-root .pg-hist-head-row .hi-title{
    font:700 13.5px/1.35 'Inter',system-ui,sans-serif;
    color:#0f172a;letter-spacing:-.005em;
}
.pg-root .pg-hist-head-row .hi-meta{
    display:flex;gap:8px;flex-wrap:wrap;margin-top:6px;
}
.pg-root .pg-hist-head-row .hi-meta > *{
    display:inline-flex;align-items:center;gap:5px;
    padding:4px 10px;
    background:#f8fafc;border:1px solid #eef1f5;
    color:#475569;border-radius:999px;
    font:600 10.5px/1 'Inter',system-ui,sans-serif;
    letter-spacing:.04em;
}
.pg-root .pg-hist-head-row .hi-meta > *:first-child{
    background:#EAF2FD;border-color:rgba(54,128,237,.16);color:#2060C0;
}
.pg-root .pg-hist-head-row .hi-actions{display:inline-flex;gap:4px;align-items:center}
.pg-root .pg-hist-head-row .hi-actions .pg-icon-btn,
.pg-root .pg-hist-head-row .hi-actions button{
    width:34px;height:34px;border-radius:10px;
    border:1px solid transparent;background:transparent;color:#64748b;
    display:inline-grid;place-items:center;cursor:pointer;
    transition:all .18s ease;font-size:13px;
}
.pg-root .pg-hist-head-row .hi-actions .pg-icon-btn:hover,
.pg-root .pg-hist-head-row .hi-actions button:hover{
    background:#EAF2FD;color:#2060C0;border-color:rgba(54,128,237,.16);
}
.pg-root .pg-hist-head-row .hi-chev{color:#94a3b8;transition:transform .2s ease}
.pg-root .pg-hist-item.open .pg-hist-head-row .hi-chev{transform:rotate(180deg)}

/* HISTORY HINT (login CTA above history) */
.pg-root .pg-hist-hint{
    padding:12px 16px;border-radius:14px;
    background:linear-gradient(135deg,#EAF2FD,#F4F8FE);
    border:1px solid rgba(54,128,237,.16);
    color:#2060C0;
    font:600 13px/1.4 'Inter',system-ui,sans-serif;
    box-shadow:0 1px 2px rgba(54,128,237,.05);
}

/* HISTORY EMPTY STATE */
.pg-root .pg-hist-empty{
    padding:36px 24px;border-radius:18px;
    border:1px dashed #e2e8f0;background:#f8fafc;
    color:#64748b;text-align:center;
}
.pg-root .pg-hist-empty > i{
    display:grid;place-items:center;
    width:46px;height:46px;margin:0 auto 12px;
    border-radius:14px;
    background:linear-gradient(135deg,#EAF2FD,#EAF2FD);
    color:#2060C0;font-size:18px;
    box-shadow:inset 0 0 0 1px rgba(54,128,237,.1);
}
.pg-root .pg-hist-empty p{
    font:500 13.5px/1.55 'Inter',system-ui,sans-serif;
    color:#64748b;max-width:40ch;margin:4px auto;
}

/* FREE NOTE (bottom banner) */
.pg-root .pg-free-note{
    display:flex;align-items:center;justify-content:center;gap:10px;
    padding:18px 22px;margin-top:22px;
    border-radius:16px;
    background:linear-gradient(135deg,#EAF2FD 0%,#F4F8FE 100%);
    border:1px solid rgba(54,128,237,.14);
    color:#2060C0;
    font:600 13.5px/1.5 'Inter',system-ui,sans-serif;
    letter-spacing:-.005em;
    box-shadow:0 1px 2px rgba(54,128,237,.06);
}
.pg-root .pg-free-note i{
    display:inline-grid;place-items:center;
    width:30px;height:30px;border-radius:10px;
    background:linear-gradient(135deg,#3680ED,#2060C0);
    color:#fff;font-size:14px;
    box-shadow:0 4px 10px -3px rgba(54,128,237,.4);flex-shrink:0;
}
.pg-root .pg-free-note span,.pg-root .pg-free-note strong{color:#2060C0;font-weight:700}

/* Responsive tuning */
@media (max-width:768px){
    /* (Generate CTA responsive sizing lives in ai-generate-btn.css, which is
       mobile-first and widens from 576px up — nothing to override here.) */
    .pg-root .pg-free-note{padding:14px 16px;font-size:12.5px;text-align:center;flex-wrap:wrap}
    .pg-root .pg-hist-head h3{font-size:15px}
    .pg-root .pg-hist-head-row{padding:12px;gap:10px}
    .pg-root .pg-hist-head-row .hi-title{font-size:13px}
}

/* Dark-mode parity — canonical design tokens */
body.theme-dark .pg-root .pg-card,
body.theme-dark .pg-root .pg-acc,
body.theme-dark .pg-root .pg-hist-item{background:#17171A;border-color:rgba(255,255,255,.09)}
body.theme-dark .pg-root .pg-prompt-footer{border-color:rgba(255,255,255,.09)}
body.theme-dark .pg-root .pg-textarea{color:#F5F5F6}
body.theme-dark .pg-root .pg-textarea::placeholder{color:#77777D}
body.theme-dark .pg-root .pg-label-row{color:#F5F5F6}
body.theme-dark .pg-root .pg-model-trigger,
body.theme-dark .pg-root .pg-model-dropdown{background:#17171A;border-color:rgba(255,255,255,.09)}
body.theme-dark .pg-root .pg-model-trigger .t-name{color:#F5F5F6}
body.theme-dark .pg-root .pg-model-item:hover{background:#1C1C1F}
body.theme-dark .pg-root .pg-model-item.active{background:rgba(54,128,237,.16);color:#60A4F5}
body.theme-dark .pg-root .pg-model-item .m-name{color:#F5F5F6}
body.theme-dark .pg-root .pg-model-item .m-badge{background:rgba(54,128,237,.16);color:#60A4F5}
body.theme-dark .pg-root .pg-acc-trigger{color:#F5F5F6}
body.theme-dark .pg-root .pg-acc-body{border-color:rgba(255,255,255,.09)}
body.theme-dark .pg-root .pg-hist-head h3{color:#F5F5F6}
body.theme-dark .pg-root .pg-hist-head-row .hi-title{color:#F5F5F6}
body.theme-dark .pg-root .pg-hist-head-row .hi-meta > *{background:#1C1C1F;border-color:rgba(255,255,255,.09);color:#C9C9CE}
body.theme-dark .pg-root .pg-hist-head-row .hi-meta > *:first-child{background:rgba(54,128,237,.16);border-color:rgba(96,164,245,.28);color:#60A4F5}
body.theme-dark .pg-root .pg-free-note{background:rgba(54,128,237,.10);border-color:rgba(96,164,245,.28);color:#60A4F5}
body.theme-dark .pg-root .pg-free-note span,body.theme-dark .pg-root .pg-free-note strong{color:#60A4F5}
body.theme-dark .pg-root .pg-hist-empty{background:#17171A;border-color:rgba(255,255,255,.09);color:#A0A0A6}
body.theme-dark .pg-root .pg-hist-empty > i{background:rgba(54,128,237,.16);color:#60A4F5}

/* OUTPUT TOOLBAR ICON BUTTONS — premium hover */
.pg-root .pg-icon-btn{
    width:36px;height:36px;
    background:transparent;
    border:1px solid transparent;
    border-radius:10px;
    color:#64748b;font-size:13px;
    display:inline-grid;place-items:center;
    cursor:pointer;transition:all .18s ease;
    flex-shrink:0;padding:0;
}
.pg-root .pg-icon-btn:hover{
    background:#EAF2FD;
    color:#2060C0;
    border-color:rgba(54,128,237,.16);
    transform:translateY(-1px);
    box-shadow:0 4px 10px -4px rgba(54,128,237,.24);
}
.pg-root .pg-icon-btn:active{transform:translateY(0)}
.pg-root .pg-icon-btn.on,
.pg-root .pg-icon-btn.tts.playing{
    background:linear-gradient(135deg,#3680ED,#2060C0);
    color:#fff;border-color:transparent;
    box-shadow:0 6px 14px -4px rgba(54,128,237,.5);
}
.pg-root .pg-icon-btn.on:hover,
.pg-root .pg-icon-btn.tts.playing:hover{
    background:linear-gradient(135deg,#60A4F5,#2060C0);color:#fff;transform:translateY(-1px);
}
body.theme-dark .pg-root .pg-icon-btn{color:#A0A0A6}
body.theme-dark .pg-root .pg-icon-btn:hover{background:rgba(54,128,237,.16);color:#60A4F5;border-color:rgba(96,164,245,.28)}

/* META PILLS (word count, read time in output header) — homepage pill language */
.pg-root .pg-meta-pill{
    display:inline-flex;align-items:center;gap:6px;
    background:#f8fafc;border:1px solid #eef1f5;border-radius:999px;
    padding:5px 12px;
    font:700 11px/1 'Inter',system-ui,sans-serif;
    color:#475569;letter-spacing:.05em;text-transform:uppercase;
    transition:all .18s ease;
}
.pg-root .pg-meta-pill:hover{border-color:rgba(54,128,237,.2);color:#2060C0}
.pg-root .pg-meta-pill i{color:#2060C0;font-size:11px}
body.theme-dark .pg-root .pg-meta-pill{background:#1C1C1F;border-color:rgba(255,255,255,.09);color:#DCDCDF}
body.theme-dark .pg-root .pg-meta-pill i{color:#60A4F5}

/* OUTPUT PROMPT PILL (tool label chip above article title) */
.pg-root .pg-tool-chip,
.pg-root .pg-out-header .tool-tag,
.pg-root .pg-out-header [class*="tool-tag"],
.pg-root .pg-out-header a[href*="category"]{
    display:inline-flex;align-items:center;gap:6px;
    padding:5px 12px;border-radius:999px;
    background:#EAF2FD;color:#2060C0;
    border:1px solid rgba(54,128,237,.16);
    font:800 10.5px/1 'Inter',system-ui,sans-serif;
    letter-spacing:.08em;text-transform:uppercase;
    text-decoration:none;
    transition:all .18s ease;
}
.pg-root .pg-tool-chip:hover{background:#EAF2FD;transform:translateY(-1px)}

/* ═══════════ INLINE NEWSLETTER (replaces "Join Our Community" pill) ═══════════ */
.pg-root .pg-out-footer .foot-right{gap:8px;flex-wrap:wrap;justify-content:flex-end}
.pg-root .pg-nl-mini{
    display:inline-flex;align-items:stretch;gap:6px;
    background:linear-gradient(135deg,#EAF2FD,#F4F8FE);
    border:1px solid rgba(54,128,237,.18);
    border-radius:14px;
    padding:5px;
    box-shadow:0 4px 12px -6px rgba(54,128,237,.2);
    max-width:100%;
}
.pg-root .pg-nl-mini input[type=email]{
    flex:1;min-width:0;width:200px;
    border:0;outline:0;background:transparent;
    padding:6px 12px;
    font:500 13px/1.3 'Inter',system-ui,sans-serif;
    color:#0f172a;
}
.pg-root .pg-nl-mini input[type=email]::placeholder{color:#94a3b8}
.pg-root .pg-nl-mini button{
    display:inline-flex;align-items:center;gap:6px;
    background:linear-gradient(135deg,#3680ED 0%,#2060C0 100%);
    color:#fff;border:0;border-radius:10px;
    padding:8px 16px;
    font:800 12.5px/1 'Inter',system-ui,sans-serif;
    letter-spacing:.02em;cursor:pointer;
    box-shadow:0 4px 12px -4px rgba(54,128,237,.5);
    transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
    white-space:nowrap;flex-shrink:0;
}
.pg-root .pg-nl-mini button:hover{
    transform:translateY(-1px);
    box-shadow:0 8px 18px -6px rgba(54,128,237,.6);
    filter:brightness(1.03);
}
.pg-root .pg-nl-mini button:disabled{opacity:.6;cursor:not-allowed;transform:none}
.pg-root .pg-nl-mini button i{font-size:11px}
.pg-root .pg-nl-lead{
    display:none;
    font:600 12px/1.4 'Inter',system-ui,sans-serif;
    color:#64748b;margin-right:6px;align-self:center;
}
.pg-root .pg-nl-msg{
    width:100%;font:600 11.5px/1.4 'Inter',system-ui,sans-serif;
    text-align:right;color:#94a3b8;padding:2px 4px 0;min-height:14px;
}
.pg-root .pg-nl-msg.ok{color:#087F5B}
.pg-root .pg-nl-msg.err{color:#2060C0}
@media (max-width:640px){
    .pg-root .pg-out-footer .foot-right{width:100%;justify-content:stretch}
    .pg-root .pg-nl-mini{width:100%}
    .pg-root .pg-nl-mini input[type=email]{width:auto}
}
body.theme-dark .pg-root .pg-nl-mini{background:rgba(54,128,237,.10);border-color:rgba(96,164,245,.28)}
body.theme-dark .pg-root .pg-nl-mini input[type=email]{color:#F5F5F6}
body.theme-dark .pg-root .pg-nl-mini input[type=email]::placeholder{color:#77777D}

/* ═══════════ TRUST STRIP (replaces "AIToolsay is completely free" note) ═══════════
   4-column horizontal row of value props with circular red-outline icons.
   Collapses to 2-col at ≤900px, 1-col at ≤520px. */
.pg-root .pg-trust-strip{
    display:grid;grid-template-columns:repeat(4,1fr);gap:16px;
    padding:22px 4px;margin:22px 0 4px;
    border-top:1px solid #f1f5f9;
    border-bottom:1px solid #f1f5f9;
}
.pg-root .pg-trust-item{
    display:flex;align-items:center;gap:12px;
    padding:4px 4px;
}
.pg-root .pg-trust-ic{
    width:38px;height:38px;border-radius:50%;
    display:grid;place-items:center;
    color:#2060C0;
    background:transparent;
    border:1.5px solid rgba(54,128,237,.28);
    flex-shrink:0;
    transition:all .18s ease;
}
.pg-root .pg-trust-ic svg{width:18px;height:18px}
.pg-root .pg-trust-item:hover .pg-trust-ic{
    background:#EAF2FD;border-color:#2060C0;
    transform:translateY(-1px);
    box-shadow:0 4px 10px -4px rgba(54,128,237,.28);
}
.pg-root .pg-trust-body{min-width:0}
.pg-root .pg-trust-body strong{
    display:block;
    font:800 14.5px/1.3 'Inter',system-ui,sans-serif;
    color:#0f172a;letter-spacing:-.01em;
    margin-bottom:2px;
}
.pg-root .pg-trust-body span{
    font:500 12.5px/1.4 'Inter',system-ui,sans-serif;
    color:#64748b;
}
@media (max-width:900px){
    .pg-root .pg-trust-strip{grid-template-columns:repeat(2,1fr);gap:14px;padding:20px 4px}
}
@media (max-width:520px){
    .pg-root .pg-trust-strip{grid-template-columns:1fr;gap:14px;padding:18px 4px}
}
body.theme-dark .pg-root .pg-trust-strip{border-color:rgba(255,255,255,.09)}
body.theme-dark .pg-root .pg-trust-body strong{color:#F5F5F6}
body.theme-dark .pg-root .pg-trust-body span{color:#A0A0A6}
body.theme-dark .pg-root .pg-trust-ic{border-color:rgba(96,164,245,.28);color:#60A4F5}
body.theme-dark .pg-root .pg-trust-item:hover .pg-trust-ic{background:rgba(54,128,237,.16);border-color:#60A4F5}

/* ═══════════ PREMIUM PILL BUTTONS — Buy me a Coffee + Join Our Community ═══════════
   Both share the same red-gradient language with hover lift + shine sweep,
   matching the homepage CTAs. */
.pg-root .pg-coffee-btn,
.pg-root .pg-tg-btn{
    position:relative;overflow:hidden;
    display:inline-flex;align-items:center;gap:8px;
    padding:9px 18px;border-radius:999px;
    background:linear-gradient(135deg,#3680ED 0%,#2060C0 100%);
    color:#fff;
    border:0;
    font:800 12.5px/1 'Inter',system-ui,sans-serif;
    letter-spacing:.02em;
    text-decoration:none;
    box-shadow:0 8px 20px -8px rgba(54,128,237,.5),0 2px 8px -2px rgba(54,128,237,.35);
    transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
    cursor:pointer;
    white-space:nowrap;
    margin-left:auto;
}
.pg-root .pg-coffee-btn::after,
.pg-root .pg-tg-btn::after{
    content:'';position:absolute;inset:0;
    background:linear-gradient(120deg,transparent 30%,rgba(255,255,255,.22) 50%,transparent 70%);
    transform:translateX(-100%);
    pointer-events:none;
    transition:transform .55s ease;
}
.pg-root .pg-coffee-btn:hover,
.pg-root .pg-tg-btn:hover{
    color:#fff;
    transform:translateY(-2px);
    box-shadow:0 14px 30px -10px rgba(54,128,237,.6),0 6px 16px -4px rgba(54,128,237,.45);
    filter:brightness(1.04);
}
.pg-root .pg-coffee-btn:hover::after,
.pg-root .pg-tg-btn:hover::after{transform:translateX(100%)}
.pg-root .pg-coffee-btn:active,
.pg-root .pg-tg-btn:active{transform:translateY(0)}
.pg-root .pg-coffee-btn i,
.pg-root .pg-tg-btn i{
    font-size:13px;
    /* Icon glyph sits above the shine sweep */
    position:relative;z-index:1;
}
.pg-root .pg-coffee-btn > *:not(::after),
.pg-root .pg-tg-btn > *:not(::after){position:relative;z-index:1}
/* .pg-tg-btn shouldn't have the auto-margin (it's already in the flexed footer's right slot) */
.pg-root .pg-tg-btn{margin-left:0}
@media (max-width:560px){
    .pg-root .pg-coffee-btn{width:100%;justify-content:center;margin-left:0;margin-top:6px}
    .pg-root .pg-tg-btn{width:100%;justify-content:center}
}

/* ═══════════ DARK MODE — model dropdown logos + tool-category chip ═══════════ */
body.theme-dark .pg-root .pg-trigger-img,
body.theme-dark .pg-root .pg-model-item img{background:#1C1C1F}
body.theme-dark .pg-root .pg-tool-chip,
body.theme-dark .pg-root .pg-out-header .tool-tag,
body.theme-dark .pg-root .pg-out-header [class*="tool-tag"],
body.theme-dark .pg-root .pg-out-header a[href*="category"]{background:rgba(54,128,237,.16);color:#60A4F5;border-color:rgba(96,164,245,.28)}
body.theme-dark .pg-root .pg-tool-chip:hover{background:rgba(54,128,237,.22)}

