/* BayiFlow Lite RC16: account-only semantic premium dashboard.
   All commerce/cart/account processing remains owned by WooCommerce/Core. */
html[data-bf-theme="dark"] .bf-premium-shell,
html[data-bf-theme="dark"] .bf-premium-notice-page{
  --bfp-text:#f7f4ff; --bfp-muted:#bab6d4; --bfp-surface:#1e1b37;
  --bfp-surface-2:#25203f; --bfp-border:#464066;
  --bfp-raised:#342952; --bfp-soft:#282140; --bfp-accent:#bd9aff;
  --bfp-strong:#d4b9ff; --bfp-positive:#69eac0;
  --bfp-shadow:0 18px 38px rgba(3,3,20,.22); --bfp-chartline:#34304e;
}
html[data-bf-theme="dim"] .bf-premium-shell,
html[data-bf-theme="dim"] .bf-premium-notice-page{
  --bfp-text:#faf6ff; --bfp-muted:#cbc8e3; --bfp-surface:#302c49;
  --bfp-surface-2:#3b3556; --bfp-border:#5d537a;
  --bfp-raised:#50416f; --bfp-soft:#403958; --bfp-accent:#d0b7ff;
  --bfp-strong:#e1d2ff; --bfp-positive:#9af2ce;
  --bfp-shadow:0 15px 35px rgba(5,5,25,.16); --bfp-chartline:#554e6d;
}
html:not([data-bf-theme="dark"]):not([data-bf-theme="dim"]) .bf-premium-shell,
html:not([data-bf-theme="dark"]):not([data-bf-theme="dim"]) .bf-premium-notice-page,
html[data-bf-theme="light"] .bf-premium-shell,
html[data-bf-theme="light"] .bf-premium-notice-page{
  --bfp-text:#282044; --bfp-muted:#66617e; --bfp-surface:#fff;
  --bfp-surface-2:#f7f4ff; --bfp-border:#dcd5f0;
  --bfp-raised:#e8defd; --bfp-soft:#f1ecff; --bfp-accent:#5b35cb;
  --bfp-strong:#6743c7; --bfp-positive:#137d5b;
  --bfp-shadow:0 13px 32px rgba(50,39,106,.085); --bfp-chartline:#e8e1f5;
}
body.bf-premium-active .bf-content.bf-profile-shell{
  width:100%;max-width:1610px;margin:0 auto;padding:clamp(18px,2.4vw,36px) clamp(16px,3.1vw,52px) 68px;
  background:transparent;border:0;box-shadow:none;
}
body.bf-premium-active .bf-header-inner{max-width:1610px}
.bf-premium-shell{color:var(--bfp-text);min-width:0;font-size:14px;max-width:100%}
.bf-premium-shell :is(h1,h2,h3,h4,p){margin-top:0}
.bf-premium-shell :is(a,button,select,summary,[tabindex]):focus-visible,
.bf-premium-notice-page :is(a,button):focus-visible{
  outline:3px solid var(--bfp-accent);outline-offset:3px;
}
.bf-premium-page-title{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin:0 0 19px;padding:0 6px}
.bf-premium-page-kicker{display:block;text-transform:uppercase;letter-spacing:.19em;font-weight:800;font-size:10px;color:var(--bfp-accent);margin-bottom:7px}
.bf-premium-page-title h1{font-size:clamp(24px,2.9vw,36px);font-weight:850;letter-spacing:-.045em;line-height:1.13;color:var(--bfp-text);margin:0 0 6px}
.bf-premium-page-title p{margin:0;color:var(--bfp-muted);font-size:13px}
/* Welcome hero: campaign is within the card, never a second content row. */
.bf-premium-hero{
  position:relative;isolation:isolate;overflow:hidden;min-height:181px;
  display:grid;grid-template-columns:minmax(0,1.17fr) minmax(102px,.26fr) minmax(0,1.24fr);
  align-items:center;gap:clamp(12px,1.5vw,25px);
  margin-bottom:21px;padding:clamp(18px,2vw,30px) clamp(18px,2.8vw,38px);
  border:1px solid rgba(215,189,255,.45);border-radius:23px;
  background:linear-gradient(112deg,#332778 0%,#36297c 37%,#5c29a6 73%,#6731b7 100%);
  box-shadow:0 17px 38px rgba(61,27,129,.18);color:#fff;
}
.bf-premium-hero:before{content:"";position:absolute;inset:-220px -80px auto auto;width:600px;height:550px;z-index:-1;background:radial-gradient(ellipse,rgba(203,143,255,.28),transparent 60%);pointer-events:none}
.bf-premium-hero:after{content:"";position:absolute;inset:auto -4% -170px 52%;height:300px;border-radius:50%;border:1px solid rgba(245,226,255,.2);box-shadow:0 0 0 43px rgba(245,226,255,.025),0 0 0 98px rgba(245,226,255,.02);pointer-events:none;z-index:-1}
.bf-premium-welcome,.bf-premium-hero-announcement{min-width:0;position:relative;z-index:1}
.bf-premium-eyebrow{font-size:9px;letter-spacing:.17em;color:#e9ddff;display:block;font-weight:800;margin-bottom:8px}
.bf-premium-eyebrow span{color:#ebcf91}
.bf-premium-welcome h2{font-size:clamp(22px,2.25vw,33px);line-height:1.17;letter-spacing:-.04em;color:#fff;font-weight:870;margin:0 0 11px;overflow-wrap:anywhere}
.bf-premium-welcome h2>span{color:#fff}
.bf-premium-welcome p{font-size:clamp(12px,1.02vw,14px);line-height:1.58;color:#eae5ff;margin:0;max-width:460px}
.bf-premium-hero-count{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:115px;padding:13px 8px;text-align:center;border:1px solid rgba(255,255,255,.18);border-radius:16px;background:rgba(231,202,255,.10);backdrop-filter:blur(4px)}
.bf-premium-count-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:9px;color:#e7d8ff}
.bf-premium-count-icon svg{width:21px;height:21px}
.bf-premium-hero-count>span:not(.bf-premium-count-icon){font-size:10px;line-height:1.25;color:#f3eaff}
.bf-premium-hero-count strong{font-size:clamp(27px,2.6vw,36px);font-weight:900;line-height:1.1;letter-spacing:-.04em;color:#fff}
.bf-premium-hero-count small{font-size:10px;color:#ddd0ff}
.bf-premium-hero-announcement{border-inline-start:1px solid rgba(255,255,255,.23);padding-inline-start:clamp(17px,2vw,29px);padding-inline-end:75px;min-height:112px;display:flex;align-items:center}
.bf-premium-campaign-tag{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(231,214,255,.42);border-radius:100px;padding:4px 11px;background:rgba(184,121,255,.22);color:#fff;font-size:10px;font-weight:850;letter-spacing:.035em;text-transform:uppercase;margin-bottom:7px;max-width:100%}
.bf-premium-hero-announcement h3{font-size:clamp(16px,1.38vw,21px);font-weight:860;color:#fff;line-height:1.2;letter-spacing:-.025em;margin:0 0 6px;overflow-wrap:anywhere}
.bf-premium-hero-announcement p{font-size:12px;line-height:1.43;max-width:350px;color:#eee7ff;margin:0 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bf-premium-campaign-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.bf-premium-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:#decaff;color:#291643!important;padding:10px 14px;border:1px solid #decaff;border-radius:10px;min-height:40px;font-weight:850;font-size:11px;line-height:1.2;white-space:normal;text-align:center;transition:background .2s,transform .2s;box-shadow:0 5px 16px rgba(49,13,104,.1)}
.bf-premium-button:hover{background:#f5eaff;color:#26123f!important;transform:translateY(-1px)}
.bf-premium-button--outline{background:rgba(33,20,71,.17);border:1px solid rgba(250,236,255,.48);color:#fff!important;box-shadow:none}
.bf-premium-button--outline:hover{background:rgba(245,226,255,.16);color:#fff!important}
.bf-premium-gift{position:absolute;width:110px;height:114px;inset-inline-end:-16px;top:50%;transform:translateY(-50%);filter:drop-shadow(0 12px 15px rgba(25,6,73,.32));pointer-events:none}
.bf-premium-gift svg{width:100%;height:100%}
.bf-premium-hero-announcement--empty .bf-premium-campaign-copy h3{font-size:17px}
/* True tab navigation: one tab fetches only its own private reports, no hidden heavy modules. */
.bf-premium-tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;padding:7px;margin:0 0 29px;border:1px solid var(--bfp-border);background:var(--bfp-surface);border-radius:18px;box-shadow:var(--bfp-shadow)}
.bf-premium-tab{min-width:0;display:flex;align-items:center;justify-content:center;gap:10px;min-height:51px;padding:11px 8px;font-size:13px;font-weight:800;line-height:1.3;color:var(--bfp-text)!important;border-radius:12px;border:1px solid transparent;text-align:center;transition:border .15s,background .15s,transform .15s}
.bf-premium-tab-icon{display:grid;place-items:center;flex:none;width:22px;height:22px}
.bf-premium-tab-icon svg{width:21px;height:21px}
.bf-premium-tab.is-active{background:linear-gradient(128deg,#7842d8,#9e67ec);border-color:#c69dff;color:#fff!important;box-shadow:0 5px 13px rgba(105,53,203,.24)}
.bf-premium-tab:hover:not(.is-active){background:var(--bfp-soft);color:var(--bfp-accent)!important;border-color:var(--bfp-border)}
.bf-premium-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;min-width:0;margin-bottom:16px}
.bf-premium-section-head>div{min-width:0}
.bf-premium-section-head h2{font-size:clamp(19px,1.8vw,25px);line-height:1.25;font-weight:870;letter-spacing:-.032em;color:var(--bfp-text);margin:0 0 3px}
.bf-premium-section-head p{font-size:12px;color:var(--bfp-muted);margin:0}
.bf-premium-text-link{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:760;color:var(--bfp-accent)!important;text-decoration:none;flex:none}
.bf-premium-text-link:hover{text-decoration:underline;text-underline-offset:4px}
.bf-premium-overview>.bf-premium-section-head{margin-top:4px}
.bf-premium-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:34px}
.bf-premium-stat{display:flex;flex-direction:column;min-width:0;min-height:152px;padding:18px 19px;border:1px solid var(--bfp-border);border-radius:16px;background:linear-gradient(145deg,var(--bfp-surface-2),var(--bfp-surface));box-shadow:var(--bfp-shadow)}
.bf-premium-stat--featured{border-color:#9d7de0;box-shadow:0 12px 28px rgba(113,69,191,.15)}
.bf-premium-stat-icon{width:37px;height:37px;border-radius:11px;display:grid;place-items:center;flex:none;margin-bottom:12px;color:var(--bfp-accent);background:var(--bfp-soft)}
.bf-premium-stat:nth-child(2) .bf-premium-stat-icon{color:#c59448}
.bf-premium-stat:nth-child(4) .bf-premium-stat-icon{color:var(--bfp-positive)}
.bf-premium-stat-icon svg{width:23px;height:23px}
.bf-premium-stat h3{margin:0 0 6px;font-size:12px;line-height:1.35;font-weight:700;color:var(--bfp-text)}
.bf-premium-stat strong{font-weight:900;color:var(--bfp-text);font-size:clamp(17px,1.8vw,27px);line-height:1.2;letter-spacing:-.025em;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;max-width:100%}
.bf-premium-stat small{color:var(--bfp-muted);font-size:10px;line-height:1.5;margin-top:9px;overflow-wrap:anywhere}
.bf-premium-analytics-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.bf-premium-analytics-head>.bf-premium-section-head{margin-bottom:14px}
.bf-premium-period{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid var(--bfp-border);border-radius:10px;background:var(--bfp-surface);margin-bottom:14px;flex-wrap:wrap}
.bf-premium-period a{display:inline-flex;padding:7px 12px;border-radius:8px;font-size:11px;font-weight:780;line-height:1.2;color:var(--bfp-muted)!important;white-space:nowrap}
.bf-premium-period a:hover{color:var(--bfp-accent)!important;background:var(--bfp-soft)}
.bf-premium-period a.is-active{background:var(--bfp-soft);color:var(--bfp-accent)!important;box-shadow:inset 0 0 0 1px var(--bfp-border)}
.bf-premium-chart-grid,.bf-premium-report-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.bf-premium-chart-card{background:linear-gradient(147deg,var(--bfp-surface-2),var(--bfp-surface));border:1px solid var(--bfp-border);border-radius:17px;padding:20px 23px 17px;min-width:0;min-height:279px;box-shadow:var(--bfp-shadow);color:var(--bfp-text)}
.bf-premium-chart-heading{display:flex;align-items:center;gap:11px;margin-bottom:16px;min-width:0}
.bf-premium-chart-icon{flex:none;width:39px;height:39px;display:grid;place-items:center;background:var(--bfp-soft);color:var(--bfp-accent);border-radius:11px}
.bf-premium-chart-icon svg{width:24px;height:24px}
.bf-premium-chart-heading h3{font-size:16px;line-height:1.25;font-weight:820;letter-spacing:-.023em;margin:0 0 2px;color:var(--bfp-text)}
.bf-premium-chart-heading p{margin:0;font-size:11px;color:var(--bfp-muted)}
.bf-premium-chart-card .bf-dash-chart-wrap{margin-top:0}
.bf-premium-chart-card .bf-dash-bars{height:171px;border-color:var(--bfp-border)}
.bf-premium-chart-card .bf-dash-chart-grid{background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),var(--bfp-chartline) calc(25% - 1px),var(--bfp-chartline) 25%);border-radius:8px}
.bf-premium-chart-card .bf-dash-bar-fill{max-width:19px;border-radius:5px 5px 0 0;opacity:1;background:linear-gradient(180deg,#d5b5ff 0%,#9f70f4 54%,#7655d9 100%)}
.bf-premium-chart-card .bf-dash-chart-axis{font-size:10px;color:var(--bfp-muted)}
.bf-premium-chart-card .bf-dash-chart-tip{margin:9px 0!important;font-size:10px!important;min-height:14px;color:var(--bfp-muted)}
.bf-premium-chart-card .bf-dash-chart-data{font-size:10px}
.bf-premium-chart-card .bf-dash-chart-data summary{font-size:11px;color:var(--bfp-accent)}
.bf-premium-chart-card .bf-dash-chart-data table,.bf-premium-data-toggle table{width:100%;font-size:11px;border-collapse:collapse;color:var(--bfp-text)}
.bf-premium-chart-card table :is(th,td),.bf-premium-data-toggle table :is(th,td){padding:5px 7px;border-bottom:1px solid var(--bfp-border);text-align:start}
.bf-premium-status-chart{display:grid;grid-template-columns:175px minmax(0,1fr);gap:16px;align-items:center;min-height:178px}
.bf-premium-donut{width:min(170px,100%);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;box-shadow:0 0 0 1px var(--bfp-border)}
.bf-premium-donut>div{width:73%;height:73%;border-radius:50%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:var(--bfp-surface);text-align:center;padding:5px}
.bf-premium-donut strong{font-size:clamp(20px,2.1vw,26px);font-weight:900;letter-spacing:-.035em;color:var(--bfp-text)}
.bf-premium-donut small{font-size:11px;color:var(--bfp-muted)}
.bf-premium-status-legend{min-width:0}
.bf-premium-status-legend>div{display:flex;justify-content:space-between;align-items:center;gap:11px;padding:8px 0;border-bottom:1px solid var(--bfp-border);font-size:11px}
.bf-premium-status-legend>div:last-child{border:0}
.bf-premium-status-legend strong{font-variant-numeric:tabular-nums;color:var(--bfp-text)}
.bf-premium-legend-item{display:flex;align-items:center;gap:9px;color:var(--bfp-text);min-width:0}
.bf-premium-legend-item i{display:inline-block;width:10px;height:10px;flex:none;border-radius:50%}
.bf-premium-line-chart{margin-top:5px}
.bf-premium-line-chart svg{display:block;width:100%;height:auto;max-height:206px;color:var(--bfp-chartline)}
.bf-premium-week-legend{display:flex;justify-content:space-between;align-items:center;padding:1px 21px;color:var(--bfp-muted);font-size:10px}
.bf-premium-data-toggle{font-size:11px;margin-top:6px;color:var(--bfp-muted)}
.bf-premium-data-toggle>summary{cursor:pointer;color:var(--bfp-accent)}
.bf-premium-top-products{display:grid;gap:14px;padding:10px 1px 3px;max-width:100%}
.bf-premium-product-row{display:grid;grid-template-columns:minmax(120px,1.12fr) minmax(50px,1.2fr) 38px;gap:11px;align-items:center;min-width:0;font-size:11px}
.bf-premium-product-label{display:flex;align-items:center;gap:9px;min-width:0;color:var(--bfp-text)}
.bf-premium-product-label i{display:grid;place-items:center;border-radius:8px;background:var(--bfp-soft);font-weight:900;color:var(--bfp-accent);font-style:normal;width:26px;height:26px;flex:none}
.bf-premium-product-label span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bf-premium-product-bar{display:block;background:var(--bfp-soft);border-radius:8px;height:11px;min-width:0;overflow:hidden}
.bf-premium-product-bar>span{display:block;background:linear-gradient(90deg,#875ee2,#c7a0ff);height:100%;border-radius:inherit}
.bf-premium-product-row strong{color:var(--bfp-text);font-weight:850;text-align:end;font-size:11px;font-variant-numeric:tabular-nums}
.bf-premium-empty{display:flex;align-items:center;justify-content:center;min-height:156px;border-radius:12px;background:var(--bfp-soft);color:var(--bfp-muted);font-size:12px;text-align:center;padding:18px}
.bf-premium-disclosure{margin:22px 0 2px!important;display:flex;align-items:center;gap:10px;border:1px solid var(--bfp-border);border-radius:14px;padding:13px 17px;background:var(--bfp-soft);color:var(--bfp-muted);font-size:11px;line-height:1.6}
.bf-premium-disclosure:before{content:"i";display:grid;place-items:center;border:1px solid var(--bfp-accent);border-radius:50%;font-weight:900;font-size:11px;width:19px;height:19px;flex:none;color:var(--bfp-accent)}
/* Tab details re-use original trusted RC12 panel helpers, only once and only when selected. */
.bf-premium-detail-header{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:7px 4px 2px}
.bf-premium-detail-header .bf-premium-section-head{flex:1}
.bf-premium-detail{width:100%;min-width:0;margin:12px 0 25px}
.bf-premium-detail>.bf-dash-panel,.bf-premium-detail>.bf-dash-widget{margin-bottom:14px}
.bf-premium-detail .bf-dash-widget--products{grid-column:auto}
.bf-premium-detail .bf-dash-widget--insights,.bf-premium-detail .bf-dash-widget--planning{max-width:none}
.bf-premium-detail .bf-dash-panel{border-radius:17px}
.bf-premium-detail-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.bf-premium-detail-panel{border:1px solid var(--bfp-border);background:var(--bfp-surface);border-radius:17px;padding:20px;margin-bottom:14px;min-width:0}
.bf-premium-table-scroll{max-width:100%;overflow-x:auto}
.bf-premium-table{width:100%;min-width:550px;border-collapse:collapse;text-align:start;font-size:12px}
.bf-premium-table :is(th,td){padding:12px 11px;border-bottom:1px solid var(--bfp-border);text-align:start}
.bf-premium-table th{color:var(--bfp-muted);font-size:11px}
.bf-premium-table td{color:var(--bfp-text)}
.bf-premium-table a{color:var(--bfp-accent)}
.bf-premium-status-badge{display:inline-flex;padding:4px 9px;border-radius:7px;background:var(--bfp-soft);font-weight:720}
.bf-premium-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.bf-premium-setting-card{display:flex;align-items:center;gap:11px;padding:16px;border:1px solid var(--bfp-border);background:var(--bfp-surface);border-radius:14px;color:var(--bfp-text)!important;font-size:12px;font-weight:740;min-height:70px;min-width:0}
.bf-premium-setting-card>:last-child{margin-inline-start:auto;color:var(--bfp-accent)}
.bf-premium-setting-icon{width:33px;height:33px;flex:none;border-radius:10px;background:var(--bfp-soft);color:var(--bfp-accent);display:grid;place-items:center}
.bf-premium-setting-icon svg{width:21px;height:21px}
.bf-premium-setting-card:hover{background:var(--bfp-soft);border-color:var(--bfp-accent)}
.bf-premium-report-charts{margin-bottom:17px}
/* Announcement detail page: links must work even if the admin did not configure a CTA. */
.bf-premium-notice-page{color:var(--bfp-text);max-width:1180px;margin:0 auto 60px}
.bf-premium-notice-page>h1{font-size:clamp(25px,3vw,36px);margin:18px 0}
.bf-premium-notice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:25px}
.bf-premium-notice-card,.bf-premium-notice-detail{background:var(--bfp-surface);border:1px solid var(--bfp-border);border-radius:18px;padding:clamp(20px,3vw,36px)}
.bf-premium-notice-card .bf-premium-campaign-tag,.bf-premium-notice-detail .bf-premium-campaign-tag{background:var(--bfp-soft);border-color:var(--bfp-border);color:var(--bfp-accent)}
.bf-premium-notice-card h2,.bf-premium-notice-detail h1{color:var(--bfp-text);margin:8px 0 10px}
.bf-premium-notice-card p,.bf-premium-notice-detail p{color:var(--bfp-muted)}
.bf-premium-notice-card .bf-premium-button,.bf-premium-notice-detail .bf-premium-button{margin-top:12px;background:var(--bfp-accent);color:var(--bfp-surface)!important;border-color:var(--bfp-accent)}
.bf-premium-notice-detail{margin-top:20px}
.bf-premium-notice-content{color:var(--bfp-text);font-size:14px;line-height:1.75}
.bf-premium-notice-content a{color:var(--bfp-accent)}
/* Responsive – no new independent navigation row; scrollable section tabs only. */
@media(max-width:1180px){
  .bf-premium-hero{grid-template-columns:minmax(0,1.15fr) 103px minmax(0,1fr);padding:20px;gap:11px}
  .bf-premium-hero-announcement{padding-inline-start:17px;padding-inline-end:56px}
  .bf-premium-gift{width:86px;height:92px;inset-inline-end:-23px}
  .bf-premium-tabs{display:flex;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
  .bf-premium-tab{min-width:124px;flex:1;white-space:nowrap}
}
@media(max-width:940px){
  .bf-premium-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .bf-premium-chart-grid,.bf-premium-report-charts{gap:12px}
  .bf-premium-chart-card{padding:16px}
  .bf-premium-status-chart{grid-template-columns:135px minmax(0,1fr)}
  .bf-premium-donut{width:135px}
  .bf-premium-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:740px){
  .bf-premium-hero{grid-template-columns:minmax(0,1fr) 90px;gap:15px;min-height:0}
  .bf-premium-welcome{grid-column:1;grid-row:1}
  .bf-premium-hero-count{grid-column:2;grid-row:1;min-height:106px}
  .bf-premium-hero-announcement{grid-column:1/-1;grid-row:2;border-inline-start:0;border-top:1px solid rgba(255,255,255,.23);padding:16px 94px 0 0;min-height:95px}
  html[dir=rtl] .bf-premium-hero-announcement{padding:16px 0 0 94px}
  .bf-premium-gift{width:100px;height:100px;inset-inline-end:-14px}
  .bf-premium-chart-grid,.bf-premium-report-charts{grid-template-columns:1fr}
  .bf-premium-chart-card{min-height:258px;padding:19px}
  .bf-premium-status-chart{grid-template-columns:165px minmax(0,1fr)}
  .bf-premium-donut{width:165px}
  .bf-premium-detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:510px){
  body.bf-premium-active .bf-content.bf-profile-shell{padding:17px 12px 55px}
  .bf-premium-page-title{margin-bottom:16px;padding:0 2px}
  .bf-premium-page-title h1{font-size:27px}
  .bf-premium-hero{padding:17px;border-radius:18px;margin-bottom:14px;gap:10px}
  .bf-premium-welcome h2{font-size:22px}
  .bf-premium-welcome p{font-size:11px}
  .bf-premium-hero-count{padding:9px 5px;min-height:100px}
  .bf-premium-hero-count strong{font-size:25px}
  .bf-premium-hero-count>span:not(.bf-premium-count-icon){font-size:9px}
  .bf-premium-hero-announcement{padding-top:14px;padding-inline-end:72px}
  html[dir=rtl] .bf-premium-hero-announcement{padding-inline-end:72px;padding-inline-start:0}
  .bf-premium-gift{width:75px;height:82px;inset-inline-end:-14px}
  .bf-premium-hero-announcement h3{font-size:17px}
  .bf-premium-hero-announcement p{font-size:11px;margin-bottom:9px}
  .bf-premium-campaign-actions{gap:6px}
  .bf-premium-button{padding:9px 11px;min-height:37px;font-size:10px}
  .bf-premium-tabs{margin-bottom:23px;padding:6px;gap:4px;border-radius:13px}
  .bf-premium-tab{min-width:112px;min-height:44px;font-size:11px;gap:7px;padding:9px 11px}
  .bf-premium-tab-icon svg{width:18px;height:18px}
  .bf-premium-section-head h2{font-size:21px}
  .bf-premium-section-head p{font-size:11px}
  .bf-premium-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:24px}
  .bf-premium-stat{min-height:142px;padding:13px 12px}
  .bf-premium-stat-icon{width:32px;height:32px;margin-bottom:10px}
  .bf-premium-stat h3{font-size:11px}
  .bf-premium-stat strong{font-size:clamp(16px,4.4vw,23px)}
  .bf-premium-stat small{font-size:10px}
  .bf-premium-chart-card{padding:16px;min-height:245px}
  .bf-premium-status-chart{grid-template-columns:115px minmax(0,1fr);gap:13px}
  .bf-premium-donut{width:115px}
  .bf-premium-status-legend>div{padding:6px 0;font-size:10px}
  .bf-premium-chart-card .bf-dash-bars{height:133px}
  .bf-premium-product-row{grid-template-columns:minmax(110px,1.1fr) minmax(40px,.85fr) 25px;gap:6px;font-size:10px}
  .bf-premium-detail-metrics{grid-template-columns:1fr}
  .bf-premium-settings-grid,.bf-premium-notice-grid{grid-template-columns:1fr}
  .bf-premium-detail-header .bf-premium-section-head{flex-wrap:wrap}
}
@media(max-width:350px){
  .bf-premium-welcome h2{font-size:20px}
  .bf-premium-hero-announcement{padding-inline-end:0!important}
  .bf-premium-gift{display:none}
  .bf-premium-stats{grid-template-columns:1fr}
  .bf-premium-stat{min-height:125px}
}
html[dir=rtl] .bf-premium-hero:after{right:auto;left:-4%}
html[dir=rtl] .bf-premium-gift{inset-inline-start:auto;inset-inline-end:-16px}
html[dir=rtl] .bf-premium-product-row strong{text-align:start}
@media(prefers-reduced-motion:reduce){
  .bf-premium-shell :is(.bf-premium-button,.bf-premium-tab){transition:none!important;transform:none!important}
}
