:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: #10141b;
  --panel-2: #141922;
  --line: rgba(255, 255, 255, 0.085);
  --muted: #8e98a8;
  --text: #f3f6fa;
  --cyan: #1bd3e6;
  --cyan-2: #1397ad;
  --green: #31d889;
  --red: #ff5d68;
  --amber: #ffb44a;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--text); background: radial-gradient(circle at 70% -20%, rgba(19, 151, 173, .11), transparent 36%), var(--bg); }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }

.noise { position: fixed; inset: 0; opacity: .035; pointer-events: none; z-index: -1; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.app-shell { width: min(1420px, 100%); margin: 0 auto; padding: 0 38px; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(27, 211, 230, .35); border-radius: 11px; background: linear-gradient(145deg, rgba(27, 211, 230, .16), rgba(27, 211, 230, .03)); box-shadow: inset 0 0 15px rgba(27, 211, 230, .05); }
.brand-mark svg { width: 29px; height: 29px; fill: none; stroke: var(--cyan); stroke-width: 2.3; stroke-linecap: round; }
.brand-mark circle { fill: var(--cyan); stroke: none; }
.brand b { display: block; letter-spacing: -.03em; font-size: 17px; }
.brand small { display: block; margin-top: 2px; color: #687383; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.status-pill { height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255, 255, 255, .025); font-size: 11px; }
.status-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(255, 93, 104, .45); }
.status-pill.status-online span { background: var(--green); box-shadow: 0 0 10px rgba(49, 216, 137, .55); }
.status-pill.status-demo span { background: var(--amber); box-shadow: 0 0 10px rgba(255, 180, 74, .55); }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .025); cursor: pointer; transition: .2s ease; }
.icon-button:hover { border-color: rgba(27, 211, 230, .35); background: rgba(27, 211, 230, .06); }
.icon-button svg { width: 17px; fill: none; stroke: #b8c0cc; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-button.is-loading svg { animation: spin .7s linear infinite; }

main { padding: 56px 0 72px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.eyebrow { margin: 0 0 8px; color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.hero h1 { margin: 0; font-size: clamp(31px, 4.1vw, 53px); line-height: 1.02; letter-spacing: -.055em; }
.hero > div > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.primary-button, .secondary-button, .danger-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 0 17px; border: 1px solid transparent; cursor: pointer; font-size: 12px; font-weight: 750; transition: .18s ease; }
.primary-button { color: #041114; background: linear-gradient(135deg, #31deef, #13afc8); box-shadow: 0 8px 26px rgba(27, 211, 230, .15); }
.primary-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.primary-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.primary-button:disabled, .danger-button:disabled { opacity: .55; cursor: wait; transform: none; }
.secondary-button { border-color: var(--line); background: #121720; }
.secondary-button:hover { border-color: rgba(255,255,255,.18); }
.danger-button { color: #fff; background: var(--red); }

.overview-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.metric-card { min-height: 132px; position: relative; display: grid; grid-template-columns: 39px 1fr; align-items: center; gap: 14px; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(19, 24, 33, .96), rgba(12, 16, 22, .96)); box-shadow: 0 10px 35px rgba(0, 0, 0, .12); }
.metric-card.metric-accent::after { content: ""; position: absolute; width: 120px; height: 120px; right: -58px; top: -58px; border-radius: 50%; background: rgba(27, 211, 230, .08); filter: blur(8px); }
.metric-card p { margin: 0 0 3px; color: var(--muted); font-size: 11px; }
.metric-card strong { display: block; font-size: 24px; letter-spacing: -.04em; }
.metric-card small { color: #667180; font-size: 9px; }
.metric-icon { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(27, 211, 230, .17); border-radius: 11px; background: rgba(27, 211, 230, .065); }
.metric-icon span { width: 18px; height: 18px; border: 2px solid var(--cyan); border-radius: 4px; position: relative; }
.ram-icon span::before, .ram-icon span::after { content:""; position: absolute; left: 3px; right: 3px; height: 2px; background: var(--cyan); }
.ram-icon span::before { top: 4px; }.ram-icon span::after { bottom: 4px; }
.disk-icon span { height: 14px; border-radius: 3px; }
.disk-icon span::after { content: ""; position: absolute; right: 2px; bottom: 2px; width: 3px; height: 3px; border-radius: 50%; background: var(--cyan); }
.cpu-icon span { border-style: dashed; }
.uptime-icon span { border-radius: 50%; }
.uptime-icon span::after { content: ""; position: absolute; width: 1px; height: 6px; left: 7px; top: 2px; background: var(--cyan); transform-origin: bottom; transform: rotate(35deg); }
.service-icon span { border-radius: 50%; box-shadow: inset 0 0 0 4px rgba(27,211,230,.13); }
.metric-bar { position: absolute; height: 2px; left: 0; bottom: 0; width: 100%; background: rgba(255,255,255,.03); }
.metric-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); box-shadow: 0 0 10px var(--cyan); transition: width .45s ease; }

.filterbar { margin: 38px 0 30px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #0d1117; }
.tab { min-height: 32px; border: 0; padding: 0 14px; border-radius: 7px; background: transparent; color: #7d8796; cursor: pointer; font-size: 11px; font-weight: 700; }
.tab.active { color: #eaf8fa; background: #1a222c; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.searchbox { width: min(230px, 34vw); height: 39px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #0d1117; }
.searchbox:focus-within { border-color: rgba(27,211,230,.4); box-shadow: 0 0 0 3px rgba(27,211,230,.05); }
.searchbox svg { width: 16px; flex: 0 0 auto; fill: none; stroke: #687383; stroke-width: 1.7; }
.searchbox input { width: 100%; border: 0; outline: none; color: var(--text); background: transparent; font-size: 11px; }
.searchbox input::placeholder { color: #596372; }

.resource-section { margin-top: 28px; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 13px; }
.section-title > div { display: flex; align-items: center; gap: 9px; }
.section-title h2 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.section-title em { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.055); font-size: 10px; font-style: normal; font-weight: 700; }
.section-title small { color: #596372; font-size: 10px; }
.title-icon { color: var(--cyan); font-size: 18px; font-weight: 700; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(18,23,31,.98), rgba(12,16,22,.98)); box-shadow: 0 10px 38px rgba(0,0,0,.12); transition: border-color .2s ease, transform .2s ease; }
.service-card:hover { border-color: rgba(255,255,255,.13); transform: translateY(-1px); }
.service-card.is-stopped { opacity: .74; }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.service-identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.service-logo { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(27,211,230,.2); border-radius: 11px; color: var(--cyan); background: rgba(27,211,230,.07); font-size: 14px; font-weight: 900; }
.service-identity > div { min-width: 0; }
.service-identity h3 { margin: 0 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; letter-spacing: -.01em; }
.service-link, .service-subtitle { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #697586; font-size: 9.5px; text-decoration: none; }
.service-link:hover { color: var(--cyan); }
.state-badge { min-height: 24px; display: flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 0 9px; border: 1px solid rgba(49,216,137,.16); border-radius: 99px; color: var(--green); background: rgba(49,216,137,.065); font-size: 9px; }
.state-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.state-badge.stopped { border-color: rgba(255,93,104,.14); color: #ff7a83; background: rgba(255,93,104,.055); }
.state-badge.unknown { border-color: rgba(255,180,74,.14); color: var(--amber); background: rgba(255,180,74,.055); }
.usage-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 22px 0 19px; }
.usage-row > div { display: grid; grid-template-columns: auto auto; justify-content: space-between; align-items: end; gap: 6px; }
.usage-row span { color: #647080; font-size: 9px; font-weight: 700; }
.usage-row strong { font-size: 11px; }
.usage-bar { grid-column: 1 / -1; width: 100%; height: 3px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.055); }
.usage-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); transition: width .4s ease; }
.card-footer { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.055); }
.runtime-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #5e6978; font-size: 9px; }
.service-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.service-actions button { min-height: 29px; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; background: rgba(255,255,255,.025); color: #a3acb9; cursor: pointer; font-size: 9px; font-weight: 700; }
.service-actions button:hover { border-color: rgba(27,211,230,.28); color: #e3f8fa; }
.service-actions .state-button.stop { color: #ff8790; }
.service-actions .state-button.start { color: var(--green); }
.service-actions button:disabled { opacity: .35; cursor: not-allowed; }
.empty-state { display: none; min-height: 150px; place-items: center; align-content: center; gap: 3px; padding: 28px; border: 1px dashed rgba(255,255,255,.1); border-radius: 15px; color: #707b8a; text-align: center; }
.empty-state.visible { display: grid; }
.empty-state > span { color: #566170; font-size: 25px; }.empty-state b { color: #a3adbb; font-size: 12px; }.empty-state p { margin: 2px 0 0; font-size: 10px; }

footer { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: #596473; font-size: 9px; }
footer span { display: flex; align-items: center; gap: 7px; }
footer i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.modal { width: min(440px, calc(100vw - 28px)); padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; color: var(--text); background: #11161e; box-shadow: 0 28px 90px rgba(0,0,0,.62); }
.modal::backdrop { background: rgba(1,3,6,.76); backdrop-filter: blur(6px); }
.modal form { position: relative; padding: 30px; }
.modal-close { position: absolute; right: 16px; top: 14px; width: 31px; height: 31px; border: 0; color: #7d8796; background: transparent; cursor: pointer; font-size: 22px; }
.modal-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 13px; font-size: 19px; font-weight: 900; }
.warning-icon { color: var(--amber); border: 1px solid rgba(255,180,74,.22); background: rgba(255,180,74,.08); }
.secure-icon { border: 1px solid rgba(27,211,230,.22); background: rgba(27,211,230,.08); }
.secure-icon svg { width: 22px; fill: none; stroke: var(--cyan); stroke-width: 1.7; }
.modal h2 { margin: 0 0 9px; font-size: 24px; letter-spacing: -.035em; }
.modal h2 + p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.target-row { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); font-size: 11px; }
.target-row span { color: var(--muted); }.target-row strong { max-width: 65%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 21px; }
.settings-modal label { display: grid; gap: 7px; margin-top: 16px; color: #a5aebb; font-size: 10px; font-weight: 700; }
.settings-modal input { width: 100%; height: 43px; border: 1px solid var(--line); border-radius: 9px; outline: none; padding: 0 12px; color: var(--text); background: #0b0f15; font-size: 11px; }
.settings-modal input:focus { border-color: rgba(27,211,230,.42); box-shadow: 0 0 0 3px rgba(27,211,230,.05); }
.form-error { min-height: 16px; margin: 9px 0 -5px; color: #ff7c85; font-size: 10px; }
.text-button { width: 100%; margin-top: 14px; border: 0; color: #718092; background: transparent; cursor: pointer; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); padding: 12px 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; color: var(--text); background: #151b24; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 14px); transition: .25s ease; font-size: 11px; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(255,93,104,.35); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1120px) {
  .overview-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .app-shell { padding: 0 16px; }
  .topbar { height: 68px; }
  .status-pill { padding: 0 10px; }
  .status-pill b { display: none; }
  main { padding: 37px 0 48px; }
  .hero { align-items: stretch; flex-direction: column; margin-bottom: 24px; }
  .hero h1 { max-width: 330px; }
  .hero .primary-button { width: 100%; }
  .overview-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 122px; grid-template-columns: 31px 1fr; gap: 10px; padding: 15px 13px; }
  .metric-icon { width: 31px; height: 31px; border-radius: 9px; }.metric-icon span { transform: scale(.78); }
  .metric-card strong { font-size: 19px; }.metric-card small { font-size: 8px; }
  .filterbar { align-items: stretch; flex-direction: column; margin: 28px 0 23px; }
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); }.tab { padding: 0 8px; }
  .searchbox { width: 100%; }
  .section-title { align-items: center; }.section-title > small { display: none; }
  .service-card { padding: 15px; }
  .usage-row { gap: 18px; }
  .card-footer { align-items: flex-end; }
  .runtime-label { max-width: 120px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
  .modal form { padding: 25px 20px 20px; }
}

@media (max-width: 380px) {
  .overview-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 104px; }
  .usage-row { grid-template-columns: 1fr; gap: 13px; }
  .card-footer { align-items: stretch; flex-direction: column; }
  .runtime-label { max-width: none; }
  .service-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* VPS Control Center v3 — układ operacyjny */
:root {
  --bg: #0b0c10;
  --panel: #15171d;
  --panel-2: #1a1d24;
  --line: rgba(255, 255, 255, .09);
  --muted: #969ba8;
  --text: #f5f5f2;
  --cyan: #98f26f;
  --cyan-2: #4fc776;
  --green: #98f26f;
  --red: #ff6d6d;
  --amber: #ffbe63;
}

body { background: radial-gradient(circle at 78% 0%, rgba(118, 91, 255, .13), transparent 34%), #0b0c10; }
.app-shell { width: 100%; max-width: none; min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); grid-template-rows: 1fr auto; padding: 0; }
.topbar { position: sticky; top: 0; grid-column: 1; grid-row: 1 / 3; width: 238px; height: 100vh; align-items: stretch; flex-direction: column; padding: 28px 22px; border-right: 1px solid var(--line); border-bottom: 0; background: rgba(12, 13, 17, .92); backdrop-filter: blur(18px); }
.brand { align-items: flex-start; flex-direction: column; gap: 16px; }
.brand-mark { width: 48px; height: 48px; border-color: rgba(152, 242, 111, .25); border-radius: 15px; background: #1b1e21; }
.brand-mark svg { stroke: var(--green); }
.brand-mark circle { fill: var(--green); }
.brand b { font-size: 20px; letter-spacing: -.045em; }
.brand small { margin-top: 5px; color: #696f7b; font-size: 8px; line-height: 1.5; }
.header-actions { align-items: stretch; flex-direction: column; margin-top: auto; }
.status-pill { width: 100%; height: 42px; justify-content: flex-start; padding: 0 12px; border-radius: 10px; background: #15171c; }
.status-pill b { display: block; }
.icon-button { width: 100%; height: 42px; display: flex; justify-content: flex-start; gap: 10px; padding: 0 12px; }
.icon-button::after { color: #969ba8; font-size: 11px; font-weight: 700; }
#refreshButton::after { content: "Odśwież dane"; }
#settingsButton::after { content: "Ustawienia konta"; }

main { grid-column: 2; grid-row: 1; width: min(1260px, 100%); margin: 0 auto; padding: 48px clamp(24px, 4vw, 62px) 70px; }
.hero { min-height: 230px; align-items: center; margin-bottom: 22px; padding: 36px clamp(25px, 4vw, 48px); overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; background: linear-gradient(118deg, #26213f 0%, #1e2941 55%, #15363a 100%); box-shadow: 0 24px 80px rgba(0,0,0,.22); }
.hero::after { content: ""; width: 260px; height: 260px; position: absolute; right: 5%; border: 52px solid rgba(152,242,111,.08); border-radius: 50%; }
.hero { position: relative; }
.hero > * { position: relative; z-index: 1; }
.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.create-button { min-height: 42px; padding: 0 18px; border: 1px solid rgba(91,185,255,.38); border-radius: 10px; color: #07121a; background: #67c5ff; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.create-button:hover { background: #8ed5ff; }
.create-button:disabled { opacity: .55; cursor: wait; }
.hero h1 { max-width: 650px; font-size: clamp(39px, 5vw, 66px); }
.hero .eyebrow { color: #b5a9ff; }
.primary-button { color: #10130e; background: var(--green); box-shadow: none; }
.primary-button:hover { background: #adff88; }

.overview-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.metric-card { min-height: 118px; padding: 17px; border-radius: 13px; background: #15171d; box-shadow: none; }
.metric-card.metric-accent { border-color: rgba(152,242,111,.27); background: #181d19; }
.metric-icon { border: 0; background: rgba(152,242,111,.08); }
.metric-icon span { border-color: var(--green); }
.ram-icon span::before, .ram-icon span::after, .disk-icon span::after, .uptime-icon span::after { background: var(--green); }
.metric-bar i { background: var(--green); box-shadow: none; }

.filterbar { position: sticky; top: 15px; z-index: 5; margin: 31px 0 22px; padding: 9px; border: 1px solid var(--line); border-radius: 14px; background: rgba(13,14,18,.84); backdrop-filter: blur(16px); }
.tabs { border: 0; background: transparent; }
.tab.active { color: #121511; background: var(--green); }
.searchbox { border-color: transparent; background: #191c22; }
.resource-section { position: relative; margin-top: 24px; padding: 23px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.resource-section::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; }
.services-section { background: linear-gradient(135deg, rgba(115,223,114,.055), #111318 42%); }
.services-section::before { background: #73df72; }
.sites-section { background: linear-gradient(135deg, rgba(139,124,255,.075), #111318 42%); }
.sites-section::before { background: #8b7cff; }
.containers-section { background: linear-gradient(135deg, rgba(87,168,255,.075), #111318 42%); }
.containers-section::before { background: #57a8ff; }
.services-section .title-icon { color: #73df72; }.sites-section .title-icon { color: #a596ff; }.containers-section .title-icon { color: #67c5ff; }
.section-title h2 { font-size: 18px; }
.title-icon { color: var(--green); }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.service-card { padding: 17px; border-radius: 13px; border-left: 4px solid var(--service-accent, rgba(152,242,111,.55)); background: #15171d; box-shadow: none; }
.service-card.is-stopped { border-left-color: rgba(255,109,109,.55); }
.service-card:hover { border-color: color-mix(in srgb, var(--service-accent, var(--green)) 35%, transparent); border-left-color: var(--service-accent, var(--green)); transform: translateY(-2px); }
.service-logo { border: 1px solid color-mix(in srgb, var(--service-accent, var(--green)) 26%, transparent); color: var(--service-accent, var(--green)); background: color-mix(in srgb, var(--service-accent, var(--green)) 9%, #15171d); font-size: 11px; }
.state-badge { color: var(--green); background: rgba(152,242,111,.07); border-color: rgba(152,242,111,.17); }
.usage-bar i { background: var(--service-accent, var(--green)); }
.service-actions { flex-wrap: wrap; justify-content: flex-end; }
.service-actions button { background: #1c1f26; }
.service-actions .settings-button { border-color: color-mix(in srgb, var(--service-accent, #b5a9ff) 32%, transparent); color: var(--service-accent, #b5a9ff); }
.category-label { display: inline-flex; margin-top: 5px; padding: 3px 6px; border-radius: 5px; color: var(--service-accent, #b5a9ff); background: color-mix(in srgb, var(--service-accent, #b5a9ff) 8%, transparent); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.limit-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -5px 0 15px; padding: 9px 10px; border-radius: 8px; color: #747b88; background: #101217; font-size: 8px; }
.limit-summary b { color: #bdc2ca; }
.service-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.055); border-radius: 9px; background: rgba(255,255,255,.055); }
.service-details div { min-width: 0; padding: 9px 10px; background: #101217; }
.service-details dt { margin-bottom: 4px; color: #666e7b; font-size: 7px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.service-details dd { margin: 0; overflow: hidden; color: #c8ccd3; font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.service-details .storage-detail { grid-column: 1 / -1; }
.storage-detail dd { position: relative; padding-bottom: 7px; }
.storage-detail dd span { position: relative; z-index: 1; }
.storage-detail dd i { height: 3px; position: absolute; right: 0; bottom: 0; left: 0; border-radius: 3px; background: var(--service-accent, var(--gaming-blue)); box-shadow: 0 0 10px color-mix(in srgb, var(--service-accent) 35%, transparent); }
.containers-section .service-details { border-color: rgba(87,168,255,.09); }
.sites-section .service-details { border-color: rgba(139,124,255,.09); }

footer { grid-column: 2; width: calc(100% - clamp(48px, 8vw, 124px)); margin: 0 auto; }
.settings-section { margin-top: 22px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #0e1014; }
.settings-section h3 { margin: 0 0 12px; font-size: 14px; }
.settings-section > p { color: var(--muted); font-size: 10px; line-height: 1.55; }
.settings-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.settings-section-title h3 { margin: 0; }
.two-factor-setup { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.two-factor-setup code { display: block; padding: 12px; overflow-wrap: anywhere; border-radius: 8px; color: var(--green); background: #171b16; font-size: 12px; letter-spacing: .08em; }
.logout-button { width: 100%; min-height: 40px; margin-top: 18px; border: 1px solid rgba(255,109,109,.25); border-radius: 9px; color: #ff8b8b; background: rgba(255,109,109,.05); cursor: pointer; }
.auth-modal #totpStep[hidden], .two-factor-setup[hidden] { display: none; }
.service-settings-modal { width: min(650px, calc(100vw - 28px)); }
.service-settings-modal select { width: 100%; height: 43px; border: 1px solid var(--line); border-radius: 9px; outline: none; padding: 0 12px; color: var(--text); background: #0b0f15; font-size: 11px; }
.service-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.service-settings-modal .settings-section { margin-top: 16px; }
.settings-section-title > span { color: #6f7682; font-size: 9px; }
.confirm-check { display: flex !important; grid-template-columns: 16px 1fr !important; align-items: center; gap: 9px !important; margin-top: 14px !important; padding: 11px; border: 1px solid rgba(255,190,99,.17); border-radius: 8px; color: #d8c29f !important; background: rgba(255,190,99,.045); }
.confirm-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--amber); }
.resource-settings > p { margin-bottom: 0; }
.create-docker-modal { width: min(720px, calc(100vw - 28px)); }
.create-docker-modal form { max-height: calc(100vh - 30px); overflow-y: auto; }
.docker-network-section { border-color: rgba(87,168,255,.2); background: rgba(87,168,255,.035); }
.final-confirm { margin-top: 17px !important; border-color: rgba(87,168,255,.25); color: #b9dcf4 !important; background: rgba(87,168,255,.055); }

@media (max-width: 1180px) {
  .overview-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .topbar { position: sticky; z-index: 10; width: 100%; height: 70px; align-items: center; flex-direction: row; padding: 0 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { align-items: center; flex-direction: row; gap: 10px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .brand b { font-size: 16px; }
  .brand small { display: none; }
  .header-actions { align-items: center; flex-direction: row; margin: 0 0 0 auto; }
  .status-pill { width: 34px; padding: 0; justify-content: center; }
  .status-pill b, .icon-button::after { display: none; }
  .icon-button { width: 36px; height: 36px; justify-content: center; padding: 0; }
  main { width: 100%; padding: 24px 16px 48px; }
  .hero { min-height: 205px; align-items: stretch; border-radius: 18px; }
  .hero-actions { justify-content: flex-start; }
  .resource-section { padding: 18px 14px; border-radius: 16px; }
  .hero::after { right: -80px; }
  .hero h1 { font-size: 39px; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .filterbar { top: 80px; }
  footer { width: calc(100% - 32px); }
  .service-settings-grid { grid-template-columns: 1fr; }
  .service-settings-modal form { max-height: calc(100vh - 28px); overflow-y: auto; }
}

@media (max-width: 380px) {
  .overview-grid { grid-template-columns: 1fr; }
}

/* VPS Control Center v5 — wyrazisty interfejs operacyjny */
:root { --gaming-blue: #4bbcff; --gaming-violet: #8f7cff; --gaming-lime: #8df56d; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { background: radial-gradient(circle at 72% -8%, rgba(82,83,221,.2), transparent 30%), radial-gradient(circle at 30% 100%, rgba(0,148,188,.08), transparent 34%), #080a0f; }
.noise { opacity: .035; }
.topbar { background: linear-gradient(180deg, rgba(14,16,24,.98), rgba(8,10,15,.96)); }
.brand-mark { position: relative; overflow: visible; background: linear-gradient(145deg, #252b36, #11151c); box-shadow: 0 0 30px rgba(75,188,255,.12); }
.brand-mark::after { content: ""; position: absolute; inset: -5px; z-index: -1; border-radius: 19px; background: linear-gradient(135deg, rgba(75,188,255,.35), transparent 46%, rgba(141,245,109,.25)); filter: blur(7px); }
.brand b { background: linear-gradient(90deg, #fff, #b8dfff); -webkit-background-clip: text; color: transparent; }
.side-nav { display: grid; gap: 6px; margin: 45px -7px 0; }
.side-nav a { min-height: 43px; display: flex; align-items: center; gap: 12px; padding: 0 13px; border: 1px solid transparent; border-radius: 10px; color: #818996; font-size: 11px; font-weight: 750; text-decoration: none; transition: .18s ease; }
.side-nav a span { width: 20px; color: #556171; font-size: 16px; text-align: center; }
.side-nav a:hover { border-color: rgba(75,188,255,.15); color: #e8f3ff; background: rgba(75,188,255,.07); transform: translateX(3px); }
.side-nav a:hover span { color: var(--gaming-blue); }
.hero { min-height: 286px; border-color: rgba(111,145,255,.18); background: linear-gradient(112deg, rgba(27,31,49,.98), rgba(23,29,48,.96) 44%, rgba(12,43,51,.93)); box-shadow: 0 28px 90px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.04); }
.hero::before { content: ""; width: 1px; position: absolute; inset: 0 auto 0 62%; background: linear-gradient(transparent, rgba(111,174,255,.2), transparent); transform: rotate(18deg); }
.hero::after { width: 330px; height: 330px; right: 2%; border: 1px solid rgba(75,188,255,.13); box-shadow: 0 0 0 45px rgba(75,188,255,.025), 0 0 0 90px rgba(141,245,109,.018); }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; color: #76ccff; }
.hero .eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--gaming-lime); box-shadow: 0 0 13px var(--gaming-lime); }
.hero h1 { line-height: .96; letter-spacing: -.065em; }
.hero h1 em { color: var(--gaming-blue); font-style: normal; text-shadow: 0 0 35px rgba(75,188,255,.2); }
.hero #lastUpdated { margin-top: 19px; }
.hero-actions { max-width: 200px; align-items: stretch; flex-direction: column; }
.hero-actions button { width: 100%; justify-content: center; }
.create-button { border: 0; background: linear-gradient(110deg, #50c6ff, #7f9eff); box-shadow: 0 10px 30px rgba(75,188,255,.18); }
.overview-grid { gap: 12px; margin-top: -45px; position: relative; z-index: 2; padding: 0 22px; }
.metric-card { min-height: 132px; border-color: rgba(255,255,255,.075); background: linear-gradient(145deg, rgba(27,30,39,.98), rgba(16,18,24,.98)); box-shadow: 0 13px 35px rgba(0,0,0,.25); }
.metric-card strong { font-size: 24px; letter-spacing: -.04em; }
.metric-icon { background: linear-gradient(145deg, rgba(75,188,255,.12), rgba(141,245,109,.06)); }
.filterbar { margin-top: 40px; border-color: rgba(75,188,255,.13); box-shadow: 0 13px 45px rgba(0,0,0,.18); }
.resource-section { padding: 27px; border-radius: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.16); }
.resource-section::before { width: 5px; box-shadow: 0 0 24px currentColor; }
.section-title { margin-bottom: 20px; }
.section-title h2 { font-size: 21px; letter-spacing: -.025em; }
.section-title > div { gap: 10px; }
.section-title em { min-width: 26px; height: 26px; display: inline-grid; place-items: center; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; background: rgba(255,255,255,.04); }
.service-grid { gap: 14px; }
.service-card { isolation: isolate; min-height: 355px; position: relative; overflow: hidden; padding: 19px; border: 1px solid rgba(255,255,255,.075); border-top-color: color-mix(in srgb, var(--service-accent) 28%, transparent); border-left: 1px solid rgba(255,255,255,.075); border-radius: 16px; background: linear-gradient(145deg, #191c24, #111319); box-shadow: 0 12px 35px rgba(0,0,0,.18); }
.card-glow { width: 140px; height: 140px; position: absolute; z-index: -1; top: -70px; left: -55px; border-radius: 50%; background: var(--service-accent); opacity: .09; filter: blur(30px); }
.service-card::after { content: attr(data-kind); position: absolute; right: 14px; bottom: 52px; z-index: -1; color: rgba(255,255,255,.018); font-size: 31px; font-weight: 950; letter-spacing: -.05em; text-transform: uppercase; }
.service-card:hover { border-color: color-mix(in srgb, var(--service-accent) 42%, rgba(255,255,255,.06)); box-shadow: 0 18px 45px rgba(0,0,0,.28), 0 0 35px color-mix(in srgb, var(--service-accent) 7%, transparent); transform: translateY(-4px); }
.service-logo { width: 45px; height: 45px; border-radius: 13px; font-weight: 900; box-shadow: inset 0 1px rgba(255,255,255,.06); }
.service-identity h3 { margin-top: 5px; font-size: 15px; }
.category-label { margin: 0; padding: 0; background: transparent; font-size: 7px; }
.state-badge { min-height: 28px; border-radius: 8px; font-size: 8px; }
.usage-row { margin-top: 22px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.05); }
.usage-row strong { font-size: 17px; }
.usage-bar { height: 4px; background: #0b0d12; }
.limit-summary { margin: 0 0 12px; border: 1px solid rgba(255,255,255,.035); background: rgba(5,7,10,.42); }
.service-details { border-radius: 11px; }
.service-details div { background: rgba(9,11,16,.72); }
.card-footer { margin-top: auto; }
.service-actions button { min-height: 32px; border-radius: 8px; }

@media (max-width: 820px) {
  .side-nav { display: none; }
  .hero { min-height: 275px; padding: 27px 23px; }
  .hero h1 { font-size: clamp(37px, 11vw, 50px); }
  .hero-actions { max-width: none; width: 100%; flex-direction: row; }
  .overview-grid { margin-top: -30px; padding: 0 9px; }
  .metric-card { min-height: 120px; }
  .resource-section { padding: 21px 15px; }
  .service-card { min-height: 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .overview-grid { gap: 8px; }
  .service-details { grid-template-columns: 1fr; }
  .service-details div { padding: 8px 10px; }
}
