﻿:root {
  --bg: #e8f3fb;
  --surface: #ffffff;
  --surface-soft: #f6fbff;
  --ink: #17364f;
  --muted: #5f7487;
  --blue: #1c6fab;
  --teal: #2aa6a3;
  --deep: #0e2d4a;
  --line: #c9ddec;
  --shadow: 0 16px 34px rgba(15, 52, 83, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(circle at 16% -10%, #d8ecf9 0, transparent 34%),
    radial-gradient(circle at 96% -12%, #e8faf5 0, transparent 30%),
    var(--bg);
}

img { max-width: 100%; display: block; }

.container {
  width: min(1260px, 94vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.45rem 0 0.7rem;
  background: linear-gradient(to bottom, rgba(232, 243, 251, 0.95), rgba(232, 243, 251, 0.8));
  backdrop-filter: blur(7px);
}

.header-pill {
  background: var(--surface);
  border: 1px solid #d8e7f3;
  border-radius: 44px;
  min-height: 120px;
  padding: 0 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
}

.brand-logo {
  width: 232px;
  height: auto;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  color: #114a73;
}

.brand-tag {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #4e92b1;
  font-weight: 500;
}

.tab-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tab-link {
  text-decoration: none;
  color: #3f5f74;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.25s ease;
  cursor: pointer;
}

.tab-link:hover,
.tab-link.active {
  color: #ffffff;
  background: linear-gradient(130deg, var(--blue), var(--teal));
}

.logout-btn {
  font-family: inherit;
  background: #fff;
}

.hero {
  padding: 2.8rem 0 2.2rem;
}

.inner-hero {
  padding-top: 3rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.7rem;
}

h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  margin-bottom: 0.7rem;
}

.lead {
  max-width: 840px;
  color: #35576d;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.1rem;
  align-items: start;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: #1c6697;
  border-color: #97c2de;
}

.hero-panel {
  background: linear-gradient(160deg, #ffffff 0%, #f0f9ff 100%);
  border: 1px solid #cae0ef;
  border-radius: 20px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.hero-panel h3 {
  margin-bottom: 0.5rem;
}

.hero-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.section {
  padding: 2.9rem 0;
}

.section-soft {
  background: linear-gradient(180deg, #f0f8ff 0%, #f8fffc 100%);
}

.section-head {
  margin-bottom: 1rem;
}

.section-head p { color: var(--muted); margin: 0; }

.card-grid {
  display: grid;
  gap: 0.95rem;
}

.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(15, 52, 83, 0.07);
}

.info-card h3 {
  margin-bottom: 0.35rem;
  color: #12456a;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

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

.soft-card {
  background: #ffffff;
  border: 1px solid #d3e4f0;
  border-radius: 18px;
  padding: 1.1rem;
}

.soft-card p { margin: 0; color: var(--muted); }

.contact-section {
  background: linear-gradient(130deg, #133a5d, #1f6f95);
  color: #e8f7ff;
}

.contact-section .eyebrow,
.contact-section h2 { color: #d6f3ff; }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.contact-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.contact-list li { margin-bottom: 0.6rem; }

.contact-list a { color: #9fe8ff; text-decoration: none; }

.map-frame {
  border: 3px solid #62a9ca;
  border-radius: 14px;
  overflow: hidden;
  min-height: 300px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}

.site-footer {
  background: #f6fbff;
  border-top: 1px solid #d1e2ef;
  padding: 1rem 0;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.legal-links a {
  text-decoration: none;
  color: #1d638f;
  font-weight: 600;
  border: 1px solid #b8d5e9;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: #ffffff;
}

.site-footer p { margin: 0; color: var(--muted); }

.legal-page .legal-main {
  padding: 2rem 0 3rem;
}

.legal-card {
  background: #ffffff;
  border: 1px solid #d0e2ef;
  border-radius: 16px;
  padding: 1.3rem;
}

.legal-card h1 { margin-bottom: 0.7rem; }
.legal-card h2 { margin-top: 1.2rem; margin-bottom: 0.45rem; font-size: 1.3rem; }
.legal-card p, .legal-card li { color: #2d475b; }
.legal-card a { color: #1d6a9e; }

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

.auth-card {
  background: #fff;
  border: 1px solid #d0e2ef;
  border-radius: 16px;
  padding: 1.2rem;
}

.auth-subcard {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #c8dbe9;
}

.auth-form {
  display: grid;
  gap: 0.65rem;
}

.auth-form input,
.auth-form textarea,
.po-form input,
.po-form textarea {
  width: 100%;
  border: 1px solid #bdd5e6;
  border-radius: 10px;
  padding: 0.62rem 0.72rem;
  font: inherit;
}

.otp-methods {
  display: grid;
  gap: 0.4rem;
  margin: 0.8rem 0;
  color: var(--muted);
}

.form-message {
  margin: 0.3rem 0 0;
  font-size: 0.92rem;
}

.form-message.success { color: #0d8d58; }
.form-message.error { color: #b53b3b; }
.form-message.info { color: #1b5c8c; }

.po-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.po-card,
.po-preview {
  background: #fff;
  border: 1px solid #d0e2ef;
  border-radius: 16px;
  padding: 1rem;
}

.po-card.full-width {
  width: 100%;
}

.po-form {
  display: grid;
  gap: 0.9rem;
}

.po-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.po-meta-box {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

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

.form-grid.two {
  grid-template-columns: 1fr 1fr;
}

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

.item-table,
.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.item-table th,
.item-table td,
.preview-table th,
.preview-table td {
  border: 1px solid #d4e4ef;
  padding: 0.46rem;
  text-align: left;
}

.item-table th,
.preview-table th {
  background: #f1f8fe;
}

.row-remove {
  border: 1px solid #efb1b1;
  background: #fff5f5;
  color: #9d3030;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.summary-box,
.preview-summary {
  background: #f7fcff;
  border: 1px solid #d7e7f2;
  border-radius: 12px;
  padding: 0.7rem;
}

.po-summary-inline {
  width: min(340px, 100%);
  margin-left: auto;
}

.analytics-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.analytics-summary .info-card p {
  font-size: 1.55rem;
  font-weight: 700;
  color: #114e77;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1rem;
}

.summary-box p,
.preview-summary p {
  margin: 0.2rem 0;
}

.grand {
  font-size: 1.06rem;
}

.preview-head p {
  margin: 0.2rem 0;
}

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

.preview-party pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .po-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header-pill {
    border-radius: 28px;
    padding: 1rem 1.2rem;
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid,
  .split,
  .contact-wrap,
  .card-grid.three,
  .auth-grid,
  .preview-party,
  .form-grid.two,
  .po-top-row {
    grid-template-columns: 1fr;
  }

  .analytics-summary {
    grid-template-columns: 1fr 1fr;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .tab-nav { width: 100%; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .brand { gap: 0.5rem; }
  .brand-logo { width: 154px; }
  .brand-name { font-size: 1.2rem; }
  .card-grid.four { grid-template-columns: 1fr; }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .po-card {
    display: none !important;
  }

  .po-layout {
    display: block;
  }

  .po-preview {
    border: 0;
    padding: 0;
    box-shadow: none;
  }

  .no-print {
    display: none !important;
  }
}
