/* ============================================================
   LayerBrick shared shell — light, luxury, straight lines.
   Comphive accent. Noisy mesh gradients. Shadow.tech-inspired.
   ============================================================ */
:root {
  --bg: #f5f4f1;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --surface-3: #f0efeb;
  --ink: #16150f;
  --ink-2: #5c5b52;
  --ink-3: #8f8e83;
  --line: #e6e4dd;
  --line-strong: #d4d2c8;
  --accent: #c07d1a;          /* Comphive bronze-amber, readable on light */
  --accent-soft: #f9efdc;
  --primary: #17160f;         /* near-black luxury primary */
  --primary-hover: #000;
  --green: #1f8a4c;
  --green-soft: #e4f2e9;
  --red: #c0392b;
  --red-soft: #f7e7e4;
  --blue: #2f5fd0;
  --amber: #b8791a;
  --radius: 4px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(20,20,15,.04), 0 1px 3px rgba(20,20,15,.06);
  --shadow-md: 0 4px 16px rgba(20,20,15,.08);
  --shadow-lg: 0 12px 40px rgba(20,20,15,.14);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5; -webkit-font-smoothing: antialiased; letter-spacing: -0.006em;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.15; letter-spacing: -0.02em; font-weight: 650; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--ink-2); }
.mono { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em; }
svg.ic { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
svg.ic-sm { width: 15px; height: 15px; }

/* Noisy mesh gradient — the luxury texture */
.noise-mesh {
  background-color: var(--surface);
  background-image:
    radial-gradient(at 12% 8%, rgba(192,125,26,.10) 0px, transparent 45%),
    radial-gradient(at 88% 4%, rgba(47,95,208,.08) 0px, transparent 40%),
    radial-gradient(at 60% 60%, rgba(31,138,76,.05) 0px, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

/* ===== Top bar (shared shell) ===== */
.topbar {
  display: flex; align-items: center; gap: 1.25rem; height: 60px; padding: 0 1.5rem;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40;
}
.topbar .logo { display: flex; align-items: center; height: 100%; }
.topbar .logo img { height: 22px; display: block; }
.topbar .divider { width: 1px; height: 26px; background: var(--line-strong); }
.topbar .ctx { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; cursor: pointer;
  padding: .4rem .6rem; border-radius: var(--radius); }
.topbar .ctx:hover { background: var(--surface-3); }
.searchbox { flex: 1; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: .55rem;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .8rem; color: var(--ink-3); }
.searchbox input { flex: 1; background: transparent; border: none; color: var(--ink); font-size: .9rem; padding: 0; }
.searchbox input:focus { outline: none; }
.searchbox kbd { font-family: inherit; font-size: .72rem; color: var(--ink-3); border: 1px solid var(--line-strong);
  border-radius: 3px; padding: .05rem .35rem; }
.topbar .right { display: flex; align-items: center; gap: .35rem; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 50%; color: var(--ink-2); cursor: pointer; border: none; background: transparent; }
.iconbtn:hover { background: var(--surface-3); color: var(--ink); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: .85rem; cursor: pointer;
  border: 2px solid var(--surface); box-shadow: 0 0 0 1.5px var(--accent); }

/* ===== Apps launcher (Google-style) ===== */
.launcher { position: absolute; top: 56px; right: 1rem; width: 340px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1rem; z-index: 60; }
.launcher .lh { display: flex; align-items: center; justify-content: space-between; padding: .25rem .25rem .75rem; }
.launcher .lh span { font-size: .8rem; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.launcher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; }
.launcher-tile { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .9rem .4rem;
  border-radius: var(--radius); text-align: center; cursor: pointer; }
.launcher-tile:hover { background: var(--surface-3); }
.launcher-tile.soon { opacity: .5; cursor: default; }
.launcher-tile .mark { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center;
  justify-content: center; color: #fff; font-weight: 700; font-size: 1.05rem; box-shadow: var(--shadow-sm); }
.launcher-tile .lname { font-size: .78rem; color: var(--ink); font-weight: 500; }
.launcher-tile .lsub { font-size: .68rem; color: var(--ink-3); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); padding: .55rem .95rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 550; transition: background .12s, border-color .12s; font-family: inherit; }
.btn:hover { border-color: var(--ink-3); background: var(--surface-2); color: var(--ink); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--amber); color: #fff; }
.btn-danger { color: var(--red); border-color: var(--line-strong); }
.btn-danger:hover { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.btn-sm { padding: .38rem .7rem; font-size: .8rem; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-3); }

/* ===== Cards / surfaces ===== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem; box-shadow: var(--shadow-sm); }
.card h3 { font-size: 1rem; }
.card .icon { color: var(--accent); margin-bottom: .5rem; }
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ===== Hero (marketing/dev) ===== */
.hero { padding: 5rem 0 3.5rem; text-align: center; }
.hero h1 { font-size: 3rem; letter-spacing: -.03em; font-weight: 680; }
.hero h1 .accent { color: var(--accent); }
.hero p { font-size: 1.15rem; color: var(--ink-2); max-width: 640px; margin: 1rem auto 2rem; }
.hero .cta { display: flex; gap: .7rem; justify-content: center; }
.eyebrow { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.section { padding: 4rem 0; border-top: 1px solid var(--line); }
.section h2 { font-size: 2rem; text-align: center; }
.section .sub { text-align: center; color: var(--ink-2); margin-bottom: 2.5rem; }

/* ===== SKU cards ===== */
.sku-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.sku { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow .12s, transform .12s; }
.sku:hover { box-shadow: var(--shadow-md); }
.sku .name { font-weight: 650; font-size: 1.05rem; }
.sku .provider { font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.sku .price { font-size: 1.7rem; font-weight: 680; }
.sku .price span { font-size: .85rem; color: var(--ink-3); font-weight: 400; }
.sku .specs { margin: 1rem 0; font-size: .88rem; color: var(--ink-2); }
.badges { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0 1rem; }
.badge { font-size: .7rem; padding: .2rem .55rem; border-radius: 3px; border: 1px solid var(--line-strong); color: var(--ink-2); background: var(--surface-2); }
.badge.on { color: var(--green); border-color: #bfe0cc; background: var(--green-soft); }
.badge.manual { color: var(--amber); border-color: #e6ceag; background: var(--accent-soft); }

/* ===== Tables ===== */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .8rem .75rem; border-bottom: 1px solid var(--line); }
th { color: var(--ink-3); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
tbody tr { transition: background .1s; }
tbody tr:hover td { background: var(--surface-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }

/* ===== Status pills ===== */
.pill { font-size: .74rem; padding: .22rem .6rem; border-radius: 3px; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.active { background: var(--green-soft); color: var(--green); }
.pill.queued, .pill.provisioning, .pill.open, .pill.pending_infra { background: var(--accent-soft); color: var(--amber); }
.pill.in_progress { background: #e6edfb; color: var(--blue); }
.pill.suspended { background: #fbeede; color: #a56a12; }
.pill.terminated, .pill.done { background: var(--surface-3); color: var(--ink-3); }
.pill.low, .pill.failed { background: var(--red-soft); color: var(--red); }

/* ===== Forms ===== */
label { display: block; font-size: .82rem; color: var(--ink-2); margin: .9rem 0 .35rem; font-weight: 500; }
input, select, textarea { width: 100%; padding: .6rem .75rem; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius); color: var(--ink); font-size: .92rem; font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a6472' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 14px; }
select:disabled { cursor: not-allowed; opacity: .6; }
select::-ms-expand { display: none; }
.form { max-width: 420px; margin: 0 auto; }

/* ===== Panel shell (console) ===== */
.panel-shell { display: flex; min-height: calc(100vh - 60px); }
.sidebar { width: 232px; background: var(--surface); border-right: 1px solid var(--line); padding: 1.25rem .9rem; flex-shrink: 0; }
.sidebar nav a { display: flex; align-items: center; gap: .6rem; color: var(--ink-2); padding: .5rem .65rem;
  border-radius: var(--radius); font-size: .9rem; margin-bottom: .1rem; font-weight: 500; }
.sidebar nav a:hover { background: var(--surface-3); color: var(--ink); }
.sidebar nav a.active { background: var(--accent-soft); color: var(--amber); font-weight: 600; }
.sidebar nav a.active svg { stroke: var(--amber); }
.sidebar .nav-label { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 1.3rem .65rem .4rem; font-weight: 700; }
.main { flex: 1; padding: 2rem 2.25rem; min-width: 0; }
.main > header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.75rem; gap: 1rem; }
.main h1 { font-size: 1.7rem; }
@media (max-width: 820px) {
  .panel-shell { flex-direction: column; }
  .sidebar { width: auto; border-right: none; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; gap: .3rem; padding: .5rem .6rem; }
  .sidebar nav { display: flex; gap: .3rem; }
  .sidebar nav a { white-space: nowrap; padding: .4rem .6rem; }
  .sidebar .nav-label { display: none; }
  .main { padding: 1.5rem 1rem; }
}
.chip { font-size: .74rem; padding: .22rem .6rem; border-radius: 3px; background: var(--surface-3); border: 1px solid var(--line); color: var(--ink-2); display: inline-flex; align-items: center; gap: .35rem; }

/* stat tiles */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.15rem 1.3rem; box-shadow: var(--shadow-sm); }
.stat .label { font-size: .74rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.stat .value { font-size: 1.75rem; font-weight: 680; margin-top: .3rem; }

/* ===== Project rows (console list) ===== */
.proj-row { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.15rem 1.4rem; margin-bottom: .7rem; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color .12s, box-shadow .12s; }
.proj-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.proj-row .pname { font-size: 1.02rem; font-weight: 600; flex: 1; display: flex; align-items: center; gap: .6rem; }
.proj-row .res-badge { position: relative; color: var(--ink-2); display: inline-flex; }
.proj-row .res-badge sup { position: absolute; top: -7px; right: -9px; font-size: .62rem; background: var(--accent);
  color: #fff; border-radius: 999px; padding: 0 .32rem; font-weight: 700; }
.proj-new { border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 1.1rem; text-align: center;
  color: var(--ink-2); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 500; }
.proj-new:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Subnav / tabs ===== */
.subnav, .tabs { display: flex; gap: 1.7rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; flex-wrap: wrap; }
.subnav a, .tabs a { color: var(--ink-2); padding: .7rem 0; font-size: .9rem; border-bottom: 2px solid transparent; cursor: pointer; font-weight: 500; }
.subnav a.active, .tabs a.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.subnav a:hover, .tabs a:hover { color: var(--ink); }
.tabs a.disabled { opacity: .4; cursor: default; }
.tabs a.disabled:hover { color: var(--ink-2); }

/* ===== Server detail head ===== */
.srv-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.srv-head .type { font-size: 1.9rem; font-weight: 720; letter-spacing: -.02em; }
.srv-head .sid { color: var(--ink-3); font-size: .8rem; font-weight: 400; }
.srv-head .status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.srv-head .hostname { font-size: 1.3rem; font-weight: 600; }
.srv-ips { display: flex; gap: 1.5rem; color: var(--ink-2); font-size: .9rem; margin-bottom: 1rem; flex-wrap: wrap; align-items: center; }
.srv-ips span { display: inline-flex; align-items: center; gap: .4rem; }
.spec-row { display: flex; gap: 2.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem 1.7rem; margin-bottom: 1.5rem; flex-wrap: wrap; box-shadow: var(--shadow-sm); }
.spec { display: flex; flex-direction: column; gap: .1rem; }
.spec .v { font-size: 1.4rem; font-weight: 680; }
.spec .l { font-size: .7rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* ===== Activities ===== */
.act-item { display: flex; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .89rem; align-items: center; }
.act-item:last-child { border-bottom: none; }
.act-item .aic { color: var(--ink-3); display: inline-flex; }
.act-item .when { color: var(--ink-3); margin-left: auto; font-size: .78rem; white-space: nowrap; }

/* ===== Location map ===== */
.map-block { position: relative; background:
  radial-gradient(ellipse at 45% 40%, #eef1f6 0%, #f5f4f1 72%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  border: 1px solid var(--line); border-radius: var(--radius-lg); min-height: 230px; overflow: hidden; box-shadow: var(--shadow-sm); }
.map-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(192,125,26,.18); }
.map-dot span { position: absolute; left: 13px; top: -5px; font-size: .72rem; color: var(--ink-2); white-space: nowrap; font-weight: 500; }

/* ===== Utilities ===== */
.hidden { display: none !important; }
.toast { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--primary); color: #fff; border-radius: var(--radius);
  padding: .8rem 1.1rem; font-size: .88rem; box-shadow: var(--shadow-lg); max-width: 360px; z-index: 80; }
.toast.err { background: var(--red); }
.toast.ok { background: var(--green); }
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--ink-3); font-size: .85rem; text-align: center; }
.playground-tag { display: inline-flex; align-items: center; font-size: .68rem; padding: .18rem .5rem; border-radius: 3px;
  background: var(--accent-soft); color: var(--amber); font-weight: 600; }
.terminal { background: #17160f; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: .8rem; color: #e6e4dd; box-shadow: var(--shadow-md); }
.terminal .bar { display: flex; gap: .4rem; padding: .6rem .9rem; border-bottom: 1px solid #2a281f; }
.terminal .bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a3830; }
.terminal pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; line-height: 1.6; }
.t-str{color:#c7a86a} .t-key{color:#8fb8e0} .t-cmt{color:#6b6a5e} .t-flag{color:#9a9788}

/* Compatibility: marketing/login/dev top nav (light) */
.nav { display:flex; align-items:center; justify-content:space-between; padding:1rem 1.5rem;
  border-bottom:1px solid var(--line); position:sticky; top:0; background:rgba(255,255,255,.85);
  backdrop-filter:blur(12px); z-index:30; }
.nav .brand { display:flex; align-items:center; gap:.55rem; font-weight:700; font-size:1.1rem; }
.nav .brand .dot { width:11px; height:11px; border-radius:3px; background:var(--accent); }
.nav .links { display:flex; gap:1.25rem; align-items:center; }
.nav .links a { color:var(--ink); font-size:.9rem; font-weight:500; }
.sidebar .brand { display:flex; align-items:center; gap:.5rem; font-weight:700; margin-bottom:1.25rem; }
.sidebar .brand .dot { width:11px; height:11px; border-radius:3px; background:var(--accent); }
.stat-row + .table-wrap, .card + .card { margin-top:0; }
.dev-hero { display:grid; grid-template-columns:1.1fr 1fr; gap:2.5rem; align-items:center; padding:4rem 0 3rem; }
@media (max-width:900px){ .dev-hero{grid-template-columns:1fr} }
.method { display:inline-block; font-size:.66rem; font-weight:700; padding:.12rem .45rem; border-radius:3px; margin-right:.5rem; font-family:"JetBrains Mono",monospace; min-width:42px; text-align:center; }
.m-get{background:#e6edfb;color:var(--blue)} .m-post{background:var(--green-soft);color:var(--green)} .m-del{background:var(--red-soft);color:var(--red)}
.res-item{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:.55rem .85rem;font-family:"JetBrains Mono",monospace;font-size:.85rem}
.res-item span{color:var(--ink-3)} .res-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.5rem}
.ev-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.5rem}
.ev{background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:.35rem .9rem;font-family:"JetBrains Mono",monospace;font-size:.78rem;text-align:center}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}@media(max-width:900px){.two-col{grid-template-columns:1fr}}
.code-label{font-size:.72rem;color:#9a9788;text-transform:uppercase;letter-spacing:.08em;padding:.6rem .9rem;border-bottom:1px solid #2a281f}

/* Brand colors — official, do not tweak. Each brand panel uses its own as accent. */
:root {
  --brand-layerbrick:#9d3333; --brand-comphive:#c07d1a;
  --brand-tldname:#f38b09; --brand-tldname-2:#4fc898;
  --brand-netdns:#000000;
  --brand-dakrelay:#004d99; --brand-dakrelay-2:#f5c700;
  --brand-evallot:#ff4000;
  --brand-webons:#385633; --brand-webons-2:#5d8f4b;
}
