:root {
  --navy-950: #07152f;
  --navy-900: #0c2148;
  --navy-800: #14366d;
  --navy-700: #1c4a8d;
  --gold-500: #c69731;
  --gold-400: #dfb45a;
  --bg: #edf2fb;
  --panel: #ffffff;
  --ink: #152542;
  --muted: #5f708b;
  --line: #d8e2f2;
  --ok: #2b9743;
  --warn: #d39a18;
  --stop: #7e8da3;
  --error: #c03a3a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 8% 0%, #dce8ff 0%, transparent 25%), var(--bg);
}

h1, h2, h3, h4 {
  margin: 0 0 0.55rem;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.01em;
}

a { color: #0f579f; text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.9rem 1.3rem;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(5px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.brand-logo-inti {
  width: 210px;
  max-width: 46vw;
  height: auto;
}

.brand-logo-odoo {
  width: 98px;
  height: auto;
  opacity: 0.85;
}

.pipe { color: #a1b3cc; font-weight: 700; }

.public-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.4rem 1rem 2.3rem;
  display: grid;
  gap: 0.95rem;
}

.kicker {
  color: var(--navy-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
  font-weight: 700;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.62;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 1rem;
  margin-top: 0.6rem;
}

.hero-strong {
  padding: 1.1rem;
  border: 1px solid #d7e3f8;
  border-radius: 18px;
  background: linear-gradient(125deg, #f4f8ff 0%, #f8fbff 42%, #fff7e8 100%);
  box-shadow: 0 10px 24px rgba(16, 39, 78, 0.06);
}

.hero-commercial {
  background:
    radial-gradient(circle at 90% 10%, rgba(201, 157, 57, 0.17) 0%, transparent 28%),
    radial-gradient(circle at 8% 88%, rgba(28, 74, 141, 0.17) 0%, transparent 34%),
    linear-gradient(125deg, #f4f8ff 0%, #f8fbff 40%, #fff8ec 100%);
}

.hero-note {
  margin-top: 0.9rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #f1f6ff;
  border: 1px solid #d9e4f8;
  color: #334e75;
}

.hero-card,
.plan,
.panel-card,
.metric-card {
  background: var(--panel);
  border: 1px solid #d9e5f7;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 28px rgba(14, 34, 68, 0.07);
}

.spotlight {
  border-color: #e7cf97;
  background: linear-gradient(180deg, #fffaf1 0%, #ffffff 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.stats-grid div {
  padding: 0.55rem;
  border: 1px solid #f0e0bd;
  border-radius: 10px;
  background: #fff;
  display: grid;
  gap: 0.12rem;
}

.stats-grid strong { font-size: 0.9rem; }
.stats-grid span { font-size: 0.84rem; color: var(--muted); }

.value-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.value-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.hero-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn {
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.56rem 0.9rem;
  font-family: "Sora", sans-serif;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(100deg, #10356f 0%, #1d5ab0 100%);
  border-color: rgba(9, 28, 59, 0.15);
}

.btn-gold {
  color: #352300;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
}

.btn-outline {
  color: var(--ink);
  background: #fff;
  border-color: #cdd9ea;
}

.btn-ghost {
  background: #edf3ff;
  color: var(--navy-800);
  border-color: #d3e1fb;
}

.btn-danger {
  background: #fff;
  color: #b92a2a;
  border-color: #ecb2b2;
}

.btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.plans { margin-top: 0.2rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.plan.highlight {
  background: linear-gradient(180deg, #fff9ee 0%, #fff 100%);
  border-color: #f0d79f;
}

.plan-table-wrap {
  border: 1px solid #dbe4f5;
  border-radius: 14px;
  background: #fff;
  padding: 0.2rem;
}

.plan-table th,
.plan-table td {
  vertical-align: top;
}

.partner-focus ul {
  margin: 0.2rem 0 0 1rem;
  padding: 0;
  line-height: 1.6;
}

.contact-block {
  margin-top: 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: #fff;
  padding: 1rem 1.1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1rem;
}

.contact-block a { color: #ffe09d; }

.contact-form input,
.contact-form textarea,
.contact-form select {
  background: rgba(255, 255, 255, 0.95);
}

.login-bg {
  background: radial-gradient(circle at top right, #d7e4ff 0%, transparent 34%),
              linear-gradient(180deg, #edf1f9 0%, #d9e3f5 100%);
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-card {
  width: min(560px, 94vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
  display: grid;
  gap: 0.6rem;
  box-shadow: 0 10px 24px rgba(16, 39, 78, 0.08);
}

.auth-brand {
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #ebeff7;
}

.admin-bg { background: #f1f4fa; }

.app-topbar {
  background:
    radial-gradient(circle at 12% -45%, rgba(255, 255, 255, 0.22) 0%, transparent 52%),
    radial-gradient(circle at 88% -40%, rgba(235, 183, 80, 0.22) 0%, transparent 40%),
    linear-gradient(112deg, #06162f 0%, #0d2f62 52%, #12488c 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 22px rgba(7, 24, 51, 0.2);
}

.app-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.95rem 1.1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.brand-admin .brand-logo-inti { width: 180px; }
.brand-sub {
  color: #f8d486;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.main-menu {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  overflow-x: auto;
}

.main-menu a {
  color: #d5e6ff;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.38rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all 0.18s ease;
}

.main-menu a.active,
.main-menu a:hover {
  color: #fff;
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(3px);
}

.app-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.35rem 1rem 2rem;
  display: grid;
  gap: 0.95rem;
}

.toolbar-row,
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.toolbar-actions,
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.search-form { display: flex; align-items: center; gap: 0.45rem; }

.form-grid { display: grid; gap: 0.55rem; }

.form-inline {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  align-items: end;
}

.form-quick-login {
  grid-template-columns: 2.4fr 0.8fr;
}

.align-end { align-self: end; }

label {
  font-size: 0.87rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.2rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cdd7ea;
  border-radius: 8px;
  padding: 0.56rem 0.62rem;
  font: inherit;
  background: #fff;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.66rem 0.62rem;
  border-bottom: 1px solid #e6edf7;
  vertical-align: top;
}

th {
  color: #647791;
  font-weight: 600;
}

.status,
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.83rem;
  font-weight: 600;
}

.status.running { color: #136429; background: #d8f3df; }
.status.warning { color: #7e4e00; background: #fde9bf; }
.status.stopped { color: #4b5a73; background: #e2e9f3; }

.pill { color: #5f3d7a; background: #f0e6fa; }

.badge.ok { color: #136429; background: #d8f3df; }
.badge.error { color: #7d1b1b; background: #f7d9d9; }
.badge.info { color: #18467b; background: #dbe9fb; }

.flash {
  border-radius: 10px;
  padding: 0.62rem 0.76rem;
  white-space: pre-wrap;
}

.flash.ok { background: #d8f3df; color: #0f4b20; }
.flash.error { background: #f9dddd; color: #781a1a; }
.flash.info { background: #dbe9fb; color: #133f72; }

.meta-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  color: #5d6f87;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  border-bottom: 1px solid #d7e0ef;
  padding-bottom: 0.2rem;
}

.tabs a {
  color: #334f72;
  padding: 0.55rem 0.76rem;
  border-radius: 8px 8px 0 0;
}

.tabs a.active {
  background: #e7eefb;
  color: #112f63;
  border-bottom: 3px solid var(--navy-700);
  text-decoration: none;
}

.log-view {
  max-height: 540px;
  overflow: auto;
  background: #0d1831;
  color: #d9e5ff;
  border: 1px solid #273c6a;
  border-radius: 10px;
  padding: 0.8rem;
  font-family: "SFMono-Regular", Consolas, Monaco, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
}

.plain-box {
  margin: 0;
  max-height: 180px;
  overflow: auto;
  border: 1px solid #dbe5f4;
  border-radius: 10px;
  background: #f7f9ff;
  padding: 0.7rem;
  font-family: "SFMono-Regular", Consolas, Monaco, monospace;
  font-size: 0.8rem;
}

.inline-actions { display: flex; gap: 0.5rem; align-items: center; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  border: 1px solid #d5e1f7;
  border-radius: 999px;
  background: #f4f8ff;
  padding: 0.24rem 0.6rem;
  font-size: 0.86rem;
  color: #294b78;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.stack-form { display: grid; gap: 0.55rem; }

.inside-card {
  background: #fafcff;
}

.deploy-key-box {
  display: grid;
  gap: 0.55rem;
  border-color: #d3e3ff;
}

.deploy-key-box textarea {
  min-height: 150px;
  font-family: "SFMono-Regular", Consolas, Monaco, monospace;
  font-size: 0.82rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 22, 48, 0.52);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 60;
}

.modal.open {
  display: flex;
}

.modal-card {
  position: relative;
  width: min(820px, 96vw);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #d6e2f5;
  box-shadow: 0 18px 38px rgba(13, 35, 70, 0.24);
  padding: 1rem;
}

.modal-card-compact {
  width: min(520px, 96vw);
}

.modal-close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  border: 0;
  background: transparent;
  color: #6f819c;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.radio-line,
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.2rem 0;
  color: #344f73;
}

.addon-picker {
  border: 1px solid #d7e3f8;
  border-radius: 10px;
  background: #f8fbff;
  padding: 0.6rem;
}

.addon-list {
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 0.22rem;
}

.hidden {
  display: none;
}

.settings-form {
  display: grid;
  gap: 0.8rem;
}

.settings-table td {
  vertical-align: middle;
}

.settings-name {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #1f365f;
  font-weight: 600;
}

.settings-description {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.settings-help {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #18253f;
  background: #18253f;
  color: #fff;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: help;
}

.settings-op {
  width: 180px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
}

.switch input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c4cfde;
  border: 1px solid #aebcd2;
  transition: all 0.2s ease;
}

.slider:before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 2px;
  top: 2px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(13, 35, 70, 0.24);
  transition: transform 0.2s ease;
}

.switch input:checked + .slider {
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  border-color: #d3a441;
}

.switch input:checked + .slider:before {
  transform: translateX(26px);
}

.switch input:disabled + .slider {
  opacity: 0.58;
  cursor: not-allowed;
}

.mt-16 { margin-top: 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }

code {
  background: #edf1fa;
  border-radius: 6px;
  padding: 0.15rem 0.4rem;
}

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .grid-3,
  .value-grid,
  .value-grid-4,
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .form-inline { grid-template-columns: 1fr 1fr; }
  .app-topbar-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .grid-3,
  .grid-2,
  .value-grid,
  .value-grid-4,
  .form-inline,
  .stats-grid,
  .form-quick-login {
    grid-template-columns: 1fr;
  }

  .brand-logo-inti { width: 165px; }
  .brand-logo-odoo { width: 72px; }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
}
