@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #119bd2;
  --blue-dark: #0d8bc0;
  --ink: #0f172a;
  --text: #475569;
  --line: rgba(17, 155, 210, 0.12);
  --danger: #b42318;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(to bottom, #ffffff 0%, #f0f9ff 100%);
  color: var(--ink);
  line-height: 1.6;
}

.dev-banner {
  background: linear-gradient(90deg, #0f172a 0%, #17335d 100%);
  color: #e2f3ff;
  text-align: center;
  padding: 0.72rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

a { color: inherit; text-decoration: none; }

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

.nav {
  padding: 1.2rem 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.2rem;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}

.brand {
  position: relative;
  display: inline-block;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
}

.brand::before { display: none; }

.brand img {
  position: absolute;
  inset: 0;
  width: 138px;
  height: 138px;
  object-fit: cover;
  transform: translate(-14px, -14px);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav-links .link {
  color: #334155;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links .link:hover { color: var(--blue); }

.auth {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.btn {
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.58rem 1.3rem;
  cursor: pointer;
  transition: all 0.25s;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover { background: var(--blue-dark); }

.btn.secondary {
  background: transparent;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.btn.secondary:hover { background: #f1f5f9; }
.btn.warn { background: #f59e0b; color: #1f2937; }
.btn.danger { background: var(--danger); }

.hero {
  padding: 7rem 0 8rem;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 7vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}

.accent { color: var(--blue); }

.hero-text p {
  font-size: clamp(1.12rem, 3.4vw, 1.35rem);
  color: var(--text);
  max-width: 48ch;
  margin-bottom: 2.2rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.hero-note span {
  border-radius: 999px;
  background: #f8fbff;
  border: 1px solid #d6e8f8;
  color: #0b5b86;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
}

.btn-xl {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.btn-outline {
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-outline:hover { background: #eff6ff; }

.mockup {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
}

.hero-cta-card {
  background: #0f172a;
  border-radius: 1.2rem;
  color: #fff;
  padding: 1.25rem 1.15rem;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.32);
  text-align: left;
}

.hero-cta-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.hero-cta-card p {
  color: #c9d7ef;
  margin-bottom: 0.85rem;
  font-size: 0.97rem;
}

.hero-cta-card .btn {
  padding: 0.72rem 1rem;
  font-size: 0.9rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3.5rem 4rem;
  margin: 1rem 0 5.8rem;
  text-align: center;
}

.stat {
  font-size: 1.1rem;
  color: #475569;
}

.stat strong {
  display: block;
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.3rem;
  line-height: 1;
}

.integrations {
  text-align: center;
  padding: 5.5rem 5% 6.5rem;
  background: rgba(241, 245, 249, 0.68);
}

.integrations h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 2.4rem;
  color: var(--ink);
}

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.logo-pill {
  border: 1px solid rgba(17,155,210,0.15);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
}

.features {
  padding: 6.2rem 5% 5rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.features h2 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  margin-bottom: 1.3rem;
  color: var(--ink);
  line-height: 1.1;
}

.features p.intro {
  color: var(--text);
  font-size: 1.2rem;
  max-width: 50ch;
  margin: 0 auto 3.2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-section {
  padding: 1rem 0 5rem;
}

.pricing-head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 2rem;
}

.pricing-head h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.8rem;
}

.pricing-head p {
  color: var(--text);
  font-size: 1.08rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.pricing-card {
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid rgba(17, 155, 210, 0.12);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  padding: 1.8rem;
}

.pricing-card.featured {
  background: linear-gradient(180deg, #f8fcff 0%, #ffffff 100%);
  border-color: rgba(17, 155, 210, 0.28);
  box-shadow: 0 18px 40px rgba(17, 155, 210, 0.16);
}

.pricing-kicker {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.pricing-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.price {
  color: var(--ink);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1rem;
}

.price span {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.pricing-card p {
  color: var(--text);
  margin-bottom: 1rem;
}

.pricing-list {
  list-style: none;
  margin-bottom: 1.2rem;
}

.pricing-list li {
  position: relative;
  padding-left: 1.1rem;
  color: #334155;
  margin-bottom: 0.55rem;
}

.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.2rem 1.8rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: all 0.35s ease;
  border: 1px solid rgba(17,155,210,0.08);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(17,155,210,0.15);
  border-color: rgba(17,155,210,0.25);
}

.icon {
  font-size: 3rem;
  color: var(--blue);
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
}

.card p {
  color: #64748b;
  font-size: 1.05rem;
}

.panel {
  max-width: 1120px;
  margin: 0 auto 38px;
  text-align: center;
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(17,155,210,0.08);
  box-shadow: 0 8px 20px rgba(15,23,42,0.06);
}

.kpi-grid,
.card-grid {
  display: grid;
  gap: 12px;
}

.kpi {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid #e2e8f0;
}

.kpi strong { font-size: 1.2rem; display: block; }

.label { display: block; font-size: 0.9rem; margin: 8px 0 4px; font-weight: 600; color: #334155; }

input, select, textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  margin-bottom: 10px;
  background: #fff;
}

.notice {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
}

.notice.error { background: #fdecea; color: #8a1f17; }
.notice.success { background: #e8f7ef; color: #14663f; }

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 9px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.admin-users-actions td {
  vertical-align: middle;
  white-space: normal;
}

.admin-users-actions table {
  table-layout: fixed;
}

.admin-users-actions th:nth-child(1),
.admin-users-actions td:nth-child(1) { width: 60px; }

.admin-users-actions th:nth-child(6),
.admin-users-actions td:nth-child(6) { width: 280px; }

.admin-users-actions th:nth-child(7),
.admin-users-actions td:nth-child(7) { width: 180px; }

.admin-users-actions td:nth-child(6),
.admin-users-actions td:nth-child(7) {
  overflow: hidden;
}

.admin-users-actions .table-action-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.admin-users-actions .table-action-form select {
  margin-bottom: 0;
}

.admin-users-actions .table-action-form .btn {
  width: 100%;
}

.admin-users-actions .login-as-form {
  display: flex;
  width: 100%;
}

.admin-users-actions .login-as-form .btn {
  width: 100%;
}

.admin-submenu-panel {
  margin-top: 14px;
  text-align: left;
  position: sticky;
  top: 82px;
  z-index: 30;
  padding: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #dbe8f5;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.admin-submenu {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: thin;
}

.admin-submenu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  background: #f8fbff;
  color: #334155;
  border: 1px solid #c7d9ec;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.admin-submenu-link:hover {
  background: #ecf6ff;
  border-color: #8ecbf2;
  color: #0b5b86;
}

.admin-submenu-link.is-active {
  background: linear-gradient(135deg, #119bd2 0%, #0b78ae 100%);
  border-color: #0b78ae;
  color: #fff;
  box-shadow: 0 8px 20px rgba(17, 155, 210, 0.26);
}

.footer {
  padding: 2.2rem 0 3rem;
  text-align: center;
  color: #64748b;
}

.small { font-size: 0.88rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.2rem;
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #334155;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--blue);
}

.page-content {
  max-width: 980px;
  margin: 2rem auto 2.4rem;
  text-align: left;
  padding: 1.4rem 1.3rem;
}

.page-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.page-content h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  margin: 1rem 0 0.25rem;
}

.page-content p {
  color: var(--text);
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 10px;
  }

  .nav-links {
    gap: 1.1rem;
    flex-wrap: wrap;
  }

  .admin-submenu-panel {
    top: 0;
    position: static;
    border-radius: 14px;
    padding: 10px;
  }

  .admin-submenu-link {
    min-height: 40px;
    padding: 8px 13px;
    font-size: 0.86rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .hero-text {
    padding-right: 2rem;
  }

  .mockup {
    max-width: 420px;
    margin: 0;
    justify-self: center;
  }

  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

.scanner-panel {
  margin-top: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.scanner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.qr-reader {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 8px;
}
