/* Billing workspace */
.billing-page { width:100%;min-width:0;color:#16324f; }
.billing-page svg { display:block;width:1em;height:1em;flex:0 0 auto;fill:none !important;stroke:currentColor !important; }
.billing-page svg :is(path,rect,circle,ellipse,line,polyline,polygon) { fill:none !important;stroke:currentColor !important;stroke-opacity:1 !important; }
.billing-header { display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px; }
.billing-header__title { display:flex;align-items:center;gap:15px;min-width:0; }
.billing-header__icon { display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;border-radius:14px;background:linear-gradient(145deg,#8c5cfc,#6f3ddb);color:#fff !important;box-shadow:0 10px 22px rgba(111,61,219,.2);font-size:25px; }
.billing-header__icon svg { width:27px;height:27px;color:#fff !important;stroke-width:2.35; }
.billing-header__icon svg { display:none !important; }
.billing-header__icon::before { width:28px;height:28px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='24' height='22' rx='4'/%3E%3Cpath d='M4 11h24M10 17h5M10 22h9'/%3E%3C/svg%3E");content:""; }
.billing-header h1 { margin:0;color:#102b48;font-size:28px;line-height:1.25;letter-spacing:-.025em; }
.billing-header p { margin:5px 0 0;color:#64748b;font-size:13px;line-height:1.5; }
.billing-status { display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;min-height:32px;padding:6px 11px;border:1px solid #bde7d4;border-radius:999px;background:#effbf5;color:#087954;font-size:12px;font-weight:650;white-space:nowrap; }
.billing-status > span { width:7px;height:7px;border-radius:50%;background:#10b981;box-shadow:0 0 0 4px rgba(16,185,129,.12); }
.billing-portal-card { position:relative;display:flex;align-items:center;justify-content:space-between;gap:32px;min-height:270px;margin-bottom:24px;padding:38px 42px;overflow:hidden;border:1px solid #e5dcfc;border-radius:18px;background:linear-gradient(120deg,#fff 0%,#fbf9ff 54%,#f2ecff 100%);box-shadow:0 12px 32px rgba(34,42,68,.07); }
.billing-portal-card::before { position:absolute;right:-80px;bottom:-120px;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle,rgba(140,92,252,.16),rgba(140,92,252,0) 68%);content:"";pointer-events:none; }
.billing-portal-copy { position:relative;z-index:1;max-width:700px;min-width:0; }
.billing-eyebrow { display:block;margin-bottom:9px;color:#7545de;font-size:11px;font-weight:750;letter-spacing:.095em;text-transform:uppercase; }
.billing-portal-copy h2,.billing-section-heading h2,.billing-plan-summary h2 { margin:0;color:#102b48;line-height:1.25;letter-spacing:-.02em; }
.billing-portal-copy h2 { font-size:27px; }
.billing-portal-copy > p { max-width:650px;margin:12px 0 22px;color:#536a83;font-size:14px;line-height:1.72; }
.billing-actions { display:flex;align-items:center;gap:10px;flex-wrap:wrap; }
.billing-actions a { display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;text-decoration:none; }
.billing-actions svg { width:17px;height:17px; }
.billing-actions .billing-primary-action,.billing-actions .billing-primary-action svg { color:#fff !important; }
.billing-actions .billing-primary-action svg { display:none !important; }
.billing-actions .billing-primary-action::before { color:#fff;font-size:17px;font-weight:800;line-height:1;content:"↗"; }
.billing-primary-action { box-shadow:0 8px 18px rgba(111,61,219,.18); }
.billing-portal-visual { position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 170px;width:170px;height:170px; }
.billing-portal-visual__ring { position:absolute;inset:0;border:1px solid rgba(131,82,241,.16);border-radius:50%;background:rgba(255,255,255,.5);box-shadow:inset 0 0 0 17px rgba(255,255,255,.35); }
.billing-portal-visual__icon { position:relative;display:flex;align-items:center;justify-content:center;width:90px;height:90px;border-radius:26px;background:linear-gradient(145deg,#9062fa,#6f3ddb);color:#fff !important;font-size:46px;box-shadow:0 18px 35px rgba(111,61,219,.25);transform:rotate(-3deg); }
.billing-portal-visual__icon svg { width:48px;height:48px;color:#fff !important;stroke-width:2.25; }
.billing-portal-visual__icon svg { display:none !important; }
.billing-portal-visual__icon::before { width:50px;height:50px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23fff' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3h16v26l-4-2-4 2-4-2-4 2V3Z'/%3E%3Cpath d='M12 10h8M12 16h8M12 22h5'/%3E%3C/svg%3E");content:""; }
.billing-portal-visual__check { position:absolute;right:12px;bottom:15px;display:flex;align-items:center;justify-content:center;width:38px;height:38px;border:5px solid #f7f3ff;border-radius:50%;background:#10b981;color:#fff !important;font-size:18px;box-sizing:border-box; }
.billing-portal-visual__check svg { color:#fff !important;stroke-width:2.7; }
.billing-portal-visual__check svg { display:none !important; }
.billing-portal-visual__check::before { color:#fff;font-size:19px;font-weight:900;line-height:1;content:"✓"; }
.billing-section { margin-bottom:24px;padding:27px;border:1px solid #e2e8f0;border-radius:15px;background:#fff;box-shadow:0 8px 24px rgba(26,42,68,.055); }
.billing-section-heading { display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:20px; }
.billing-section-heading h2 { font-size:20px; }
.billing-section-heading p { max-width:460px;margin:0;color:#64748b;font-size:12px;line-height:1.6;text-align:right; }
.billing-operation-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px; }
.billing-operation-card { display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:13px;min-width:0;padding:17px;border:1px solid #e5e9f0;border-radius:12px;background:#fff;color:#16324f;text-decoration:none;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.billing-operation-card:hover { border-color:#cfc0f7;box-shadow:0 8px 20px rgba(80,59,126,.09);transform:translateY(-1px); }
.billing-operation-card:focus-visible,.billing-page a:focus-visible { outline:3px solid rgba(131,82,241,.32);outline-offset:3px; }
.billing-operation-icon { display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:#f4f0fe;color:#7545de;font-size:22px; }
.billing-operation-card > span:nth-child(2) { min-width:0; }
.billing-operation-card strong,.billing-operation-card small { display:block;overflow-wrap:anywhere; }
.billing-operation-card strong { color:#173653;font-size:13px;line-height:1.4; }
.billing-operation-card small { margin-top:4px;color:#718096;font-size:11px;line-height:1.45; }
.billing-card-arrow { color:#8a9aaf;font-size:17px; }
.billing-info-strip { display:flex;align-items:flex-start;gap:14px;padding:19px 21px;border:1px solid #d7e6f5;border-radius:13px;background:#f7fbff; }
.billing-info-strip__icon { display:flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:#e5f7ef;color:#09815b;font-size:18px; }
.billing-info-strip strong { display:block;color:#193b5d;font-size:13px; }
.billing-info-strip p { margin:5px 0 0;color:#60758c;font-size:12px;line-height:1.65; }
.billing-plan-card { overflow:hidden;border:1px solid #e2e8f0;border-radius:15px;background:#fff;box-shadow:0 8px 24px rgba(26,42,68,.055); }
.billing-plan-summary { display:flex;align-items:center;justify-content:space-between;gap:24px;padding:25px 27px;border-bottom:1px solid #e8edf3; }
.billing-plan-summary h2 { font-size:22px; }
.billing-plan-summary p { margin:7px 0 0;color:#64748b;font-size:12px;overflow-wrap:anywhere; }
.billing-account-meta { display:flex;align-items:flex-end;flex-direction:column;gap:8px;color:#64748b;font-size:11px; }
.billing-account-meta strong { color:#193b5d; }
.billing-account-status { display:inline-flex;align-items:center;min-height:25px;padding:4px 10px;border:1px solid #e2e8f0;border-radius:999px;background:#f8fafc;color:#52667a;font-size:11px;font-weight:700;text-transform:capitalize; }
.billing-account-status.is-active { border-color:#bde7d4;background:#effbf5;color:#087954; }
.billing-resource-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#e8edf3; }
.billing-resource { display:flex;align-items:center;gap:12px;min-width:0;padding:20px;background:#fff; }
.billing-resource > span { display:flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;border-radius:10px;background:#f4f0fe;color:#7545de;font-size:19px; }
.billing-resource > div { min-width:0; }
.billing-resource small,.billing-resource strong { display:block;overflow-wrap:anywhere; }
.billing-resource small { margin-bottom:4px;color:#718096;font-size:10px;text-transform:uppercase;letter-spacing:.045em; }
.billing-resource strong { color:#183958;font-size:14px;line-height:1.35; }
.billing-plan-footer { display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 27px;background:#fbfcfe; }
.billing-plan-footer p { margin:0;color:#64748b;font-size:11px;line-height:1.6; }
.billing-plan-footer a { display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;color:#7545de;font-size:12px;font-weight:650;text-decoration:none; }
.billing-plan-footer svg { width:14px;height:14px; }
.billing-page #billing-content > .wp-table-card { margin:0; }
@media (max-width:1000px) {
    .billing-resource-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:800px) {
    .billing-portal-card { padding:30px; }
    .billing-portal-visual { flex-basis:130px;width:130px;height:130px; }
    .billing-portal-visual__icon { width:74px;height:74px;border-radius:21px;font-size:38px; }
    .billing-operation-grid { grid-template-columns:1fr; }
}
@media (max-width:650px) {
    .billing-header,.billing-section-heading,.billing-plan-summary,.billing-plan-footer { align-items:flex-start;flex-direction:column; }
    .billing-status { align-self:flex-start; }
    .billing-portal-card { min-height:0;padding:25px 21px; }
    .billing-portal-visual { display:none; }
    .billing-portal-copy h2 { font-size:23px; }
    .billing-actions { align-items:stretch;flex-direction:column; }
    .billing-actions a { width:100%;box-sizing:border-box; }
    .billing-section { padding:20px; }
    .billing-section-heading p { text-align:left; }
    .billing-account-meta { align-items:flex-start; }
    .billing-resource-grid { grid-template-columns:1fr; }
}
