/* Admin-only styles for Elementor controls and plugin settings UI. No remote assets; URLs point to plugin-local images. All rules intentionally one-line for WP.org review clarity. */
 /* Elementor controls (one-line rules) */
.elementor-control-fallback_image .elementor-control-media__preview{background-image:url('./images/placeholder.jpg');background-size:100%;background-position:center;background-repeat:no-repeat;}
.elementor-control-grid_style .elementor-control-content{display:flex;flex-direction:column;align-items:flex-start;}
.elementor-control-grid_style .elementor-control-field{display:flex;flex-direction:column;width:100%;align-content:flex-start;align-items:flex-start;}
.elementor-control-grid_style .elementor-control-input-wrapper{width:100%;}
.elementor-control.elementor-control-grid_style .elementor-control-title{line-height:1;margin-bottom:5px;color:#000;}
.elementor-control-grid_style .elementor-choices{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:10px!important;max-width:100%;height:auto!important;}
.elementor-control-grid_style .elementor-choices label{display:block!important;width:100%!important;height:155px!important;border:2px solid #ddd!important;border-radius:6px!important;cursor:pointer!important;opacity:.7!important;transition:opacity .3s,border-color .3s;position:relative;background-size:120px 110px!important;background-repeat:no-repeat!important;background-position:center 5px!important;background-color:#fff!important;}
.elementor-control-grid_style .elementor-choices label:hover,.elementor-control-grid_style .elementor-choices input:checked+label{opacity:1!important;border-color:#0073aa!important;}
.elementor-control-grid_style .elementor-choices label .elementor-screen-only{position:absolute;bottom:0;width:100%;padding:5px;left:0;margin:0;right:0;text-align:center;top:auto;background-color:#ededed;z-index:999999999;visibility:visible;opacity:1;clip:auto;color:#000;height:auto;line-height:1;}
.elementor-control-grid_style .elementor-choices input[value="grid-layout"]+label{background-image:url('./images/simple-grid.jpg')!important;}
.elementor-control-grid_style .elementor-choices input[value="list-layout"]+label{background-image:url('./images/simple-list-view-grid.jpg')!important;}
.elementor-control-grid_style .elementor-choices input[value="list-view"]+label{background-image:url('./images/blog-grid.jpg')!important;}
.elementor-control-grid_style .elementor-choices input[value="blog-grid-layout"]+label{background-image:url('./images/simple-news-grid.jpg')!important;}
.elementor-control-grid_style .elementor-choices input[value="blog-grid-layout-1"]+label{background-image:url('./images/blog-grid-2.jpg')!important;}
.elementor-control-grid_style .elementor-choices input[value="news-grid-layout"]+label{background-image:url('./images/news-grid.jpg')!important;}
.elementor-control-grid_style .elementor-choices input[value="news-grid-layout-2"]+label{background-image:url('./images/news-grid-2.jpg')!important;}
.elementor-control-grid_style .elementor-choices input[value="news-grid-layout-3"]+label{background-image:url('./images/simple-news-list-view-grid.jpg')!important;}
.elementor-control-grid_style .elementor-choices input[value="news-grid-layout-4"]+label{background-image:url('./images/blog-grid-3.jpg')!important;}
.elementor-control-grid_style .elementor-choices input[value="news-grid-layout-5"]+label{background-image:url('./images/news-grid-3.jpg')!important;}
.elementor-control-grid_style .elementor-choices input[value="alternativ-grid"]+label{background-image:url('./images/alternative-grid.jpg')!important;}
.elementor-control-grid_style .elementor-choices input[value="full-width-alternativ-grid"]+label{background-image:url('./images/alternative-full-width-grid.jpg')!important;}
.elementor-control-grid_style .elementor-choices input[value="portfolio-grid-layout"]+label{background-image:url('./images/portfolio-grid.jpg')!important;}
.elementor-control-grid_style .elementor-choices input[value="event-grid"]+label{background-image:url('./images/event-grid.jpg')!important;}
.elementor-control-grid_style .elementor-choices input[value="team-member-layout"]+label{background-image:url('./images/team-grid.jpg')!important;}

/* Upsell card (Elementor panel) */
.pg-upsell-card{display:flex;flex-direction:column;align-items:center;text-align:center;padding:20px 18px;border-radius:18px;gap:12px;}
.pg-upsell-dark{color:#fff;background-image:linear-gradient(29deg,#090275F5 46%,#800071FC 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06),0 8px 24px rgba(75,0,198,.25);}
.pg-upsell-icon-blob{width:46px;height:46px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.94);color:#6f3ae1;margin-top:2px;box-shadow:0 6px 18px rgba(111,58,225,.25);}
.pg-upsell-icon-blob svg{fill:currentColor;}
.pg-upsell-title{font-weight:700;font-size:14px;line-height:1.3;color:#fff;margin:6px 0 2px;}
.pg-upsell-desc{margin:0;font-size:12px;line-height:1.45;color:#d6dbff;}
.pg-cta-pill{display:inline-flex;align-items:center;gap:8px;margin-top:6px;padding:9px 16px;border-radius:999px;text-decoration:none;font-weight:700;font-size:13px;color:#fff!important;background:linear-gradient(90deg,#7c3aed 0%,#9333ea 50%,#a855f7 100%);box-shadow:0 0 0 2px rgba(255,255,255,.06) inset,0 8px 26px rgba(147,51,234,.45),0 0 24px rgba(147,51,234,.35);transition:transform .12s ease,box-shadow .2s ease,filter .2s ease;}
.pg-cta-pill:hover{transform:translateY(-1px);filter:saturate(1.12);box-shadow:0 0 0 2px rgba(255,255,255,.08) inset,0 12px 32px rgba(147,51,234,.55),0 0 28px rgba(147,51,234,.45);}
.pg-cta-pill:active{transform:translateY(0);}
.pg-cta-arrow{display:block;}
.elementor-panel .pg-upsell-card{border:none;}
#toplevel_page_flexipostgridbuilder-settings .wp-submenu a.pg-upgrade-link{padding:9px 16px;margin:5px 13px;text-decoration:none;font-weight:700;font-size:13px;text-align:center;color:#fff!important;background:linear-gradient(90deg,#7c3aed 0%,#9333ea 50%,#a855f7 100%);box-shadow:0 0 0 2px rgba(255,255,255,.06) inset,0 8px 26px rgba(147,51,234,.45),0 0 24px rgba(147,51,234,.35);transition:transform .12s ease,box-shadow .2s ease,filter .2s ease;}

/* Admin Settings UI (deduped & one-line) */
.pg-admin-wrap{max-width:1180px;}
.pg-admin-title{margin:0 0 16px;font-size:24px;font-weight:700;color:#111827;}
.pg-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:20px;margin:16px 0;box-shadow:0 1px 2px rgba(0,0,0,.04);}
.pg-card--elev{box-shadow:0 6px 18px rgba(17,24,39,.06);}
.pg-card__header{margin-bottom:14px;}
.pg-card__eyebrow{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#6b7280;margin-bottom:6px;}
.pg-card__title{margin:0 0 6px;font-size:18px;line-height:1.35;font-weight:700;color:#111827;}
.pg-card__desc{margin:6px 0 0;color:#6b7280;font-size:13px;}
.pg-card__actions{margin-top:16px;}
.pg-pt-grid{display:grid;gap:12px;grid-template-columns:repeat(4,minmax(220px,1fr));}
@media (max-width:1100px){.pg-pt-grid{grid-template-columns:repeat(3,1fr);}}
@media (max-width:782px){.pg-pt-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:480px){.pg-pt-grid{grid-template-columns:1fr;}}
.pg-pt-pill{position:relative;display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #e5e7eb;border-radius:12px;background:#fbfbfd;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;}
.pg-pt-pill:hover{border-color:#7c3aed;background:#fff;box-shadow:0 0 0 4px rgba(124,58,237,.12);}
.pg-pt-pill__checkbox{margin:0;accent-color:#7c3aed;}
.pg-pt-pill__label{font-weight:600;color:#111827;}
.pg-pt-pill__slug{margin-left:auto;background:#eef2ff;color:#374151;border-radius:7px;padding:2px 6px;font-size:12px;line-height:1.4;}
.pg-pt-pill__status{position:absolute;right:10px;bottom:10px;width:10px;height:10px;border-radius:999px;background:#d1d5db;}
.pg-pt-pill__status--active{background:#7c3aed;}
.pg-pt-pill:focus-within{box-shadow:0 0 0 4px rgba(124,58,237,.18);}
.pg-btn{--pg-btn-bg:#111827;--pg-btn-color:#fff;--pg-btn-shadow:0 4px 12px rgba(17,24,39,.16);display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border:0;border-radius:10px;background:var(--pg-btn-bg);color:var(--pg-btn-color)!important;text-decoration:none;font-weight:600;transition:transform .14s ease,box-shadow .14s ease,background .14s ease,border-color .14s ease;}
.pg-btn:focus{outline:2px solid #7c3aed;outline-offset:2px; box-shadow: none;}
.pg-btn:hover{transform:translateY(-1px);box-shadow:var(--pg-btn-shadow);}
.pg-btn--lg{padding:12px 20px;font-size:15px;}
.pg-btn--pill{border-radius:999px;}
.pg-btn__icon{flex:0 0 auto;transition:transform .2s ease;}
.pg-btn:hover .pg-btn__icon{transform:translateX(3px);}
.pg-btn--primary{background:linear-gradient(90deg,#7c3aed 0%,#9333ea 50%,#a855f7 100%);color:#fff!important;font-weight:700;border-radius:999px;padding:10px 20px;box-shadow:0 8px 26px rgba(147,51,234,.45),0 0 24px rgba(147,51,234,.35);transition:all .25s ease-in-out;}
.pg-btn--primary:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(147,51,234,.55);}
.pg-btn--ghost{background:#fff;color:#111827!important;border:1px solid #e5e7eb;}
.pg-btn--ghost:hover{background:#f9fafb;box-shadow:0 2px 10px rgba(17,24,39,.06);}
/*.pg-help-card{display:flex;align-items:center;justify-content:space-between;gap:16px;}
.pg-help-card__left{display:flex;align-items:center;gap:16px;min-width:0;}
.pg-help-card__icon{width:40px;height:40px;border-radius:12px;background:#eef2ff;color:#6f3ae1;display:flex;align-items:center;justify-content:center;font-size:20px;flex:0 0 auto;}
.pg-help-card__body{min-width:0;}
.pg-help-card__title{margin:0 0 2px;font-size:15px;color:#111827;}
.pg-help-card__text{margin:0;color:#6b7280;line-height:1.5;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
@media (max-width:782px){.pg-help-card{flex-wrap:wrap;row-gap:12px;}.pg-docs-btn{margin-left:0;}.pg-help-card__text{white-space:normal;}}*/ 
.pg-upgrade-admin{max-width:1180px;}
.pg-upgrade__heading{margin:12px 0 8px;font-size:20px;}
.pg-upgrade__intro{color:#50575e;margin:0 0 18px;}
.pg-pro-card{border-radius:20px;padding:30px 24px;color:#fff;text-align:center;background:radial-gradient(120% 120% at 0% 0%,#1b2a5b 0%,#070f2b 35%),linear-gradient(135deg,#0b1a4a 0%,#2a005f 60%,#4b00c6 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06),0 8px 24px rgba(75,0,198,.25);}
.pg-pro-card__icon{display:inline-flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:14px;background:#fff;color:#6f3ae1;box-shadow:0 6px 18px rgba(111,58,225,.25);margin-bottom:12px;}
.pg-pro-card__title{margin:6px 0 6px;color:#fff;font-size:22px;}
.pg-pro-card__subtitle{margin:0 0 16px;color:#d6dbff;}
.pg-pro-card__cta{box-shadow:0 8px 26px rgba(147,51,234,.45),0 0 24px rgba(147,51,234,.35);}


.pg-top-boxes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:24px 0;}
.pg-top-card{display:flex;flex-direction:column;justify-content:space-between;min-height:50px;padding:22px 24px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;box-shadow:0 6px 18px rgba(17,24,39,.06);}
.pg-top-card__top{display:flex;align-items:flex-start;gap:16px;}
/*.pg-top-card__icon{width:48px;height:48px;min-width:48px;border-radius:999px;background:#f3edff;color:#6f3ae1;display:flex;align-items:center;justify-content:center;font-size:22px;line-height:1;}*/
.pg-top-card__icon{width:56px;height:56px;min-width:56px;border-radius:999px;background:#f3edff;color:#a142f4;display:flex;align-items:center;justify-content:center;line-height:1;flex-shrink:0;}
.pg-top-card__icon svg{width:30px;height:30px;display:block;}
.pg-top-card__icon svg path{fill:currentColor !important;}
.pg-top-card__content{min-width:0;}
.pg-top-card__title{margin:0 0 8px;font-size:18px;line-height:1.35;font-weight:700;color:#111827;}
.pg-top-card__text{margin:0 0 20px 0;color:#5b6475;font-size:14px;line-height:1.7;}
.pg-top-card__btn{min-width:150px; }
@media (max-width:900px){.pg-top-boxes{grid-template-columns:1fr;}.pg-top-card{min-height:auto;}}