/* Customer panel: Subscriptions table, change-plan spec preview and the shop plan cards. */
/* IT4Y_SUBS_TABLE_POLISH_2026_06_11 — AWS-grade customer subscriptions table.
   Scoped overrides: `.card .subs-tbl ...` outranks the global layout-safety
   rule `.card table td/th { word-break:break-word; overflow-wrap:anywhere }`
   so cells never split mid-word; the wrapper scrolls horizontally instead. */
.card .subs-tbl{overflow-x:auto;-webkit-overflow-scrolling:touch}
.card .subs-tbl table{width:100%;min-width:0;border-collapse:collapse}
.card .subs-tbl td,.card .subs-tbl th{white-space:nowrap;word-break:normal;overflow-wrap:normal}
.card .subs-tbl th{font-size:11px;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.08em;padding:12px 16px}
.card .subs-tbl td{padding:14px 16px;vertical-align:middle}
.card .subs-tbl .st-id{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;color:#64748b}
.card .subs-tbl .pill{display:inline-block; white-space:nowrap; border-radius:999px; padding:3px 12px; font-size:11px; font-weight:600; letter-spacing:.04em;
  background:#dbeafe; color:#1e40af}
.card .subs-tbl .pill.green{background:#dcfce7;color:#15803d}
.card .subs-tbl .pill.amber{background:#fef3c7;color:#b45309}
.card .subs-tbl .pill.red{background:#fee2e2;color:#b91c1c}
.card .subs-tbl .st-act{display:flex;align-items:center}
.card .subs-tbl .st-menu-btn{display:inline-flex; align-items:center; justify-content:center; width:34px; height:30px; padding:0; border-radius:8px;
  border:1px solid #cbd5e1; background:transparent; color:#64748b; cursor:pointer}
.card .subs-tbl .st-menu-btn:hover{background:rgba(100,116,139,.12);color:#334155}
.card .subs-tbl .st-menu-btn svg{width:17px;height:17px}
@media (max-width:1280px){.card .subs-tbl th,.card .subs-tbl td{padding:10px 10px}}
.subs-pop{position:fixed; z-index:9300; min-width:208px; background:#fff; border:1px solid #e2e8f0; border-radius:10px;
  box-shadow:0 12px 32px rgba(15,23,42,.18); padding:6px; display:flex; flex-direction:column; gap:2px}
.subs-pop .sp-item{display:block; width:100%; text-align:left; border:0; background:transparent; border-radius:7px; padding:9px 12px; font-size:13px;
  cursor:pointer; white-space:nowrap; font-family:inherit}
.subs-pop .sp-primary{color:#1d4ed8;font-weight:600}
.subs-pop .sp-secondary{color:#334155}
.subs-pop .sp-danger{color:#dc2626}
.subs-pop .sp-item:hover{background:#f1f5f9}
.subs-pop .sp-danger:hover{background:#fef2f2}
html[data-theme="dark"] .card .subs-tbl th{color:#94a3b8}
html[data-theme="dark"] .card .subs-tbl .st-id{color:#94a3b8}
html[data-theme="dark"] .card .subs-tbl .st-menu-btn{border-color:#334155;color:#94a3b8}
html[data-theme="dark"] .card .subs-tbl .st-menu-btn:hover{background:rgba(148,163,184,.15);color:#e2e8f0}
html[data-theme="dark"] .subs-pop{background:#0f172a;border-color:#1e293b;box-shadow:0 12px 32px rgba(0,0,0,.55)}
html[data-theme="dark"] .subs-pop .sp-primary{color:#93c5fd}
html[data-theme="dark"] .subs-pop .sp-secondary{color:#cbd5e1}
html[data-theme="dark"] .subs-pop .sp-danger{color:#f87171}
html[data-theme="dark"] .subs-pop .sp-item:hover{background:#1e293b}
html[data-theme="dark"] .subs-pop .sp-danger:hover{background:rgba(248,113,113,.12)}

/* IT4Y_CUST_SUBS_IP_COLUMN_2026_06_12 — customer subscriptions grid IP ADDRESS column:
   low-contrast monospaced system identifier + inline VPS-card copy control. */
.sub-ip-wrap{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.sub-ip{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;color:#64748b;letter-spacing:.01em}
.sub-ip-wrap .ip-copy{margin-left:0;width:22px;height:22px}
html[data-theme="dark"] .sub-ip{color:#94a3b8}

/* IT4Y_SUBS_TBL_DENSITY_2026_06_12 - subscriptions grid: fluid width + density tiers
   (intrinsic mins measured live: base 1164 / mid 887 / tight 690; container = viewport-320).
   Zero horizontal scrollbar at 1024px+ viewports; overflow-x:auto stays as fallback below. */
.card .subs-tbl table{width:100%}
.card .subs-tbl th{padding:12px}
.card .subs-tbl td{padding:12px}
.card .subs-tbl td.st-id{max-width:172px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1499px){
  .card .subs-tbl th,.card .subs-tbl td{padding:10px 8px}
  .card .subs-tbl th{white-space:normal}
  .card .subs-tbl td.st-id{max-width:110px}
  .card .subs-tbl .sub-ip-wrap{gap:4px}
  .card .subs-tbl td.small{white-space:normal;min-width:74px}
}
@media(max-width:1229px){
  .card .subs-tbl th,.card .subs-tbl td{padding:8px 4px}
  .card .subs-tbl td{font-size:11px}
  .card .subs-tbl th{font-size:10px;letter-spacing:.04em}
  .card .subs-tbl td.st-id{max-width:64px}
  .card .subs-tbl .sub-ip-wrap{gap:3px}
  .card .subs-tbl .sub-ip{font-size:11px}
  .card .subs-tbl .sub-ip-wrap .ip-copy{width:18px;height:18px}
  .card .subs-tbl td.small{min-width:66px}
  .card .subs-tbl .pill{padding:2px 6px;font-size:10px}
}

/* IT4Y_CP_SPEC_PREVIEW_2026_06_12 - hardware spec preview card in the Change-plan modal:
   neutral slate-50 surface, slate-100 border, rounded-lg, 2x2 grid of
   monochrome line-art icon chips + grey labels / high-contrast values. */
.cp-specs{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 14px; margin:12px 0 4px; padding:12px 14px; background:#f8fafc;
  border:1px solid #f1f5f9; border-radius:10px}
.cp-specs:empty{display:none}
.cp-spec{display:flex;align-items:center;gap:10px;min-width:0}
.cp-spec-ic{flex:0 0 auto; width:28px; height:28px; display:inline-flex; align-items:center; justify-content:center; color:#64748b; background:#fff;
  border:1px solid #e2e8f0; border-radius:8px}
.cp-spec-ic svg{width:15px;height:15px}
.cp-spec-kv{display:flex;flex-direction:column;min-width:0}
.cp-spec-k{font-size:10px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:#64748b}
.cp-spec-v{font-size:13px;font-weight:600;color:#0f172a;white-space:nowrap}
html[data-theme="dark"] .cp-specs{background:#1b2430;border-color:#26303f}
html[data-theme="dark"] .cp-spec-ic{background:#222d3d;border-color:#334155;color:#94a3b8}
html[data-theme="dark"] .cp-spec-k{color:#94a3b8}
html[data-theme="dark"] .cp-spec-v{color:#f1f5f9}
@media(max-width:480px){.cp-specs{grid-template-columns:1fr}}

/* IT4Y_CARD_PERIOD_PILLS_2026_06_12 - card-level billing-period pills on /shop:
   active = solid #2563eb white pill, inactive = neutral gray; pastel-green
   savings badge; struck base price; billed-total line. */
.shop-pp-row{display:flex;gap:4px;flex-wrap:wrap;margin:8px 0 10px}
.shop-pp{flex:1 1 auto; min-width:34px; background:#f1f5f9; color:#475569; border:1px solid #e2e8f0; border-radius:999px; padding:4px 2px; font-size:11px;
  font-weight:600; cursor:pointer; text-align:center; line-height:1.4; transition:background .15s,color .15s,border-color .15s}
.shop-pp:hover{background:#e2e8f0;color:#1e293b}
.shop-pp.active,.shop-pp.active:hover{background:#2563eb;color:#fff;border-color:#2563eb}
.shop-pp:focus-visible{outline:2px solid #3b82f6;outline-offset:1px}
.shop-save-badge{display:inline-block; background:#dcfce7; color:#15803d; border:1px solid rgba(34,197,94,.35); padding:1px 8px; border-radius:999px;
  font-size:11px; font-weight:700; vertical-align:2px}
.shop-billed{font-size:12px;font-weight:400;margin-top:2px}
.shop-strike{text-decoration:line-through;opacity:.55;font-size:13px;font-weight:500;margin-right:6px}
html[data-theme="dark"] .shop-pp{background:#1e293b;color:#94a3b8;border-color:#334155}
html[data-theme="dark"] .shop-pp:hover{background:#263448;color:#e2e8f0}
html[data-theme="dark"] .shop-pp.active,html[data-theme="dark"] .shop-pp.active:hover{background:#2563eb;color:#fff;border-color:#2563eb}
html[data-theme="dark"] .shop-save-badge{background:#14331a;color:#b3f5c4;border-color:rgba(34,197,94,.4)}

/* IT4Y_UNIFIED_PCARD_2026_06_16 — premium AWS-grade plan card (shared shop + marketing component) */
.it4-pcard{display:flex; flex-direction:column; background:var(--panel,#fff); border:1px solid var(--border-soft,#e2e8f0); border-radius:16px; padding:18px;
  position:relative; transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
  box-shadow:0 1px 2px rgba(15,23,42,.05),0 1px 3px rgba(15,23,42,.04)}
.it4-pcard:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(15,23,42,.12),0 6px 14px rgba(15,23,42,.07);border-color:#cbd5e1}
.it4-pcard.is-popular{border-color:#2563eb;box-shadow:0 0 0 1px #2563eb,0 14px 32px rgba(37,99,235,.18)}
.pc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:10px}
.pc-name{margin:0;font-size:18px;font-weight:800;line-height:1.2;color:var(--text,#0f172a)}
.pc-instant{display:inline-flex; align-items:center; gap:4px; background:rgba(34,197,94,.12); color:#16a34a; border:1px solid rgba(34,197,94,.35);
  padding:2px 9px; border-radius:999px; font-size:11px; font-weight:700; white-space:nowrap; flex:0 0 auto}
.pc-bolt{width:11px;height:11px;fill:currentColor;stroke:none;animation:pc-pulse 1.6s ease-in-out infinite}
@keyframes pc-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.18)}}
.pc-price{font-size:30px;font-weight:800;color:var(--text,#0f172a);line-height:1.12;margin:2px 0 2px}
.pc-price .muted,.pc-price .small{font-weight:600}
.pc-specs{display:grid; grid-template-columns:1fr 1fr; gap:9px 12px; border:1px solid var(--border-soft,#e2e8f0); border-radius:12px; padding:11px 12px;
  margin:12px 0 14px}
.pc-spec{display:flex;align-items:center;gap:8px;min-width:0}
.pc-spec svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:#64748b;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.pc-spec>div{min-width:0;line-height:1.2}
.pc-spec b{font-size:13px;font-weight:700;color:var(--text,#0f172a)}
.pc-spec span{font-size:11px;color:var(--muted,#64748b)}
.pc-desc{margin:0 0 12px}
.pc-cta{width:100%; padding:11px 14px; border:0; border-radius:10px; background:#2563eb; color:#fff; font-size:14px; font-weight:700; cursor:pointer;
  transition:background .15s,transform .08s; margin-top:auto}
.pc-cta:hover{background:#1d4ed8}
.pc-cta:active{transform:translateY(1px)}
.pc-cta:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}
html[data-theme="dark"] .it4-pcard{background:var(--panel,#0f1a28);border-color:#1e3148;box-shadow:0 2px 6px rgba(0,0,0,.4)}
html[data-theme="dark"] .it4-pcard:hover{border-color:#33507a}
html[data-theme="dark"] .pc-specs{border-color:#1e3148}
html[data-theme="dark"] .pc-spec svg{stroke:#94a3b8}

/* IT4Y_PCARD_COMPACT_2026_06_16 — AWS-density compaction pass (shop). Later in file = wins on equal specificity. */
.it4-pcard{padding:13px}
.it4-pcard .pc-head{margin-bottom:7px}
.it4-pcard .pc-name{font-size:16px}
.it4-pcard .pc-instant{padding:2px 8px;font-size:10px}
.it4-pcard .pc-price{font-size:24px;margin:1px 0 1px}
.it4-pcard .shop-pp-row{margin:7px 0 8px}
.it4-pcard .shop-pp{padding:4px 2px;font-size:10px}
.it4-pcard .shop-billed{margin-top:1px}
.it4-pcard .pc-specs{gap:6px 10px;padding:8px 10px;margin:8px 0 10px}
.it4-pcard .pc-spec b{font-size:13px}
.it4-pcard .pc-spec span{font-size:11px}
.it4-pcard .pc-desc{margin:0 0 8px;font-size:12px}
.it4-pcard .pc-cta{padding:9px 14px;font-size:13px}

/* IT4Y_SUBS_INLINE_ACTIONS_2026_06_29 — /subs row actions: kebab dropdown replaced by explicit inline text buttons
   (Modify subscription [primary] + dynamic Turn on/off auto-renewal [ghost, semantic colour]). Table
   density tuned + the long sub-id ellipsised (full id stays in the cell title tooltip) so BOTH buttons
   sit fully visible in the Actions column without horizontal scroll on standard laptop widths.
   Mobile card-stacking (body.is-mobile table[data-it4y-mcard], higher specificity) overrides these. */
.card .subs-tbl th,.card .subs-tbl td{padding-left:10px;padding-right:10px}
.card .subs-tbl td.st-id{max-width:86px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card .subs-tbl .st-act{display:flex;flex-direction:column;gap:6px;align-items:stretch;min-width:140px}
.card .subs-tbl .st-act .btn{width:100%;justify-content:center;white-space:nowrap;font-weight:600;font-size:12px;padding:7px 10px;min-height:34px}
.card .subs-tbl .sub-ar-off{color:#b45309;border-color:#fcd9a4}
.card .subs-tbl .sub-ar-off:hover{background:#fffbeb;border-color:#f59e0b;color:#92400e}
.card .subs-tbl .sub-ar-on{color:#15803d;border-color:#bbf7d0}
.card .subs-tbl .sub-ar-on:hover{background:#f0fdf4;border-color:#22c55e;color:#166534}
html[data-theme="dark"] .card .subs-tbl .sub-ar-off{color:#fbbf24;border-color:rgba(251,191,36,.42)}
html[data-theme="dark"] .card .subs-tbl .sub-ar-off:hover{background:rgba(251,191,36,.13)}
html[data-theme="dark"] .card .subs-tbl .sub-ar-on{color:#4ade80;border-color:rgba(74,222,128,.42)}
html[data-theme="dark"] .card .subs-tbl .sub-ar-on:hover{background:rgba(74,222,128,.13)}

/* IT4Y_SUBS_RENEW_CTA_2026_06_29 — premium CTA restyle for the "Generate renewal invoice" button (was a muted
   .btn ghost that blended into the row). Indigo->violet gradient, white bold label, depth + refined
   hover/active/focus. Scoped .card .subs-tbl .it4-renew-btn (0,3,0) beats .btn.ghost + the adopted
   Days-Left sheet; !important on the props the base .btn forces. Mobile mcard makes it full-width 44px. */
.card .subs-tbl .it4-renew-btn{display:inline-flex !important; align-items:center; justify-content:center; gap:7px; margin-top:13px;
  padding:10px 18px !important; border:0 !important; border-radius:10px !important; background:linear-gradient(135deg,#4f46e5 0%,#7c3aed 100%) !important;
  color:#fff !important; font-weight:700 !important; font-size:13px !important; letter-spacing:.01em; line-height:1.25;
  box-shadow:0 6px 16px -5px rgba(91,52,217,.5),inset 0 1px 0 rgba(255,255,255,.2) !important; cursor:pointer;
  transition:transform .14s ease,box-shadow .14s ease,filter .14s ease; text-align:left; white-space:normal}
.card .subs-tbl .it4-renew-btn:hover{filter:brightness(1.08); transform:translateY(-1px);
  box-shadow:0 10px 24px -6px rgba(91,52,217,.6),inset 0 1px 0 rgba(255,255,255,.25) !important; color:#fff !important}
.card .subs-tbl .it4-renew-btn:active{transform:translateY(0);box-shadow:0 4px 12px -4px rgba(91,52,217,.5) !important}
.card .subs-tbl .it4-renew-btn:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(124,58,237,.4),0 7px 18px -6px rgba(91,52,217,.6) !important}
html[data-theme="dark"] .card .subs-tbl .it4-renew-btn{background:linear-gradient(135deg,#6366f1 0%,#8b5cf6 100%) !important;
  box-shadow:0 6px 18px -5px rgba(99,102,241,.5),inset 0 1px 0 rgba(255,255,255,.16) !important}
html[data-theme="dark"] .card .subs-tbl .it4-renew-btn:hover{box-shadow:0 10px 26px -6px rgba(99,102,241,.6),inset 0 1px 0 rgba(255,255,255,.2) !important}

/* IT4Y_SHOP_IPV4_DARKSPECS_2026_07_05 — darker-tone VPS specs (unified with homepage shop-parity cards). Same spacing as before; only the tone is darker. */
.it4-pcard .pc-specs{background:#f8fafc}
.it4-pcard .pc-spec svg{stroke:#475569}
.it4-pcard .pc-spec span{color:#5a6578}
html[data-theme="dark"] .it4-pcard .pc-specs{background:rgba(148,163,184,.06)}
html[data-theme="dark"] .it4-pcard .pc-spec svg{stroke:#94a3b8}
html[data-theme="dark"] .it4-pcard .pc-spec span{color:#94a3b8}
