:root {
  --blue: #006CA9;
  --blue-dark: #00588A;
  --purple: #2D1676;
  --grad: linear-gradient(135deg, #006CA9, #2D1676);
  --wa: #25D366;
  --ink: #0B0E14;
  --ink-2: #161B26;
  --white: #ffffff;
  --off: #F8F9FB;
  --canvas: #F5F6F8;
  --border: #E5E7EB;
  --line: #DBDFE6;
  --line-dark: rgba(255,255,255,.14);
  --dark: #111827;
  --mid: #4B5563;
  --light: #9CA3AF;
  --heading: 'Bricolage Grotesque', sans-serif;
  --body: 'Inter', sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
  --s2: 0 4px 16px rgba(11,14,20,.06);
  --s3: 0 14px 36px rgba(11,14,20,.12);
  --danger: #d93025;
  --success: #1e8e3e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--off);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }
button { font-family: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* =============== HEADER (Matches VB Dynamics Main Site) =============== */
.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.hdr.scrolled {
  box-shadow: 0 4px 20px rgba(11, 14, 20, 0.07);
}
.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px clamp(16px, 4vw, 40px);
  max-width: 1320px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.logo-name {
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--heading);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.logo-sub {
  font-size: 0.7rem;
  color: var(--light);
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mid);
  padding: 8px 13px;
  border-radius: 7px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.nav a:hover {
  color: var(--blue);
  background: rgba(0, 108, 169, 0.06);
}
.nav a.active {
  color: var(--blue);
  background: rgba(0, 108, 169, 0.09);
  font-weight: 600;
}

.hdr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.hdr-util-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--mid);
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.hdr-util-link:hover,
.hdr-util-link.active {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0, 108, 169, 0.05);
}
.hdr-wa {
  background: var(--wa);
  color: #fff;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.hdr-wa:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.32);
}

/* Mobile Menu & Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 23px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s var(--ease);
}
.mob {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px clamp(24px, 6vw, 48px) 40px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
}
.mob.open {
  transform: translateX(0);
}
.mob-nav {
  list-style: none;
  width: 100%;
}
.mob-nav li {
  border-bottom: 1px solid var(--line-dark);
}
.mob-nav a {
  display: block;
  font-family: var(--heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  padding: 13px 0;
}
.mob-nav a.active,
.mob-nav a:hover {
  color: #38bdf8;
}
.mob-wa-btn {
  margin-top: 24px;
  background: var(--wa);
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: var(--wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.65rem;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.42);
  transition: transform 0.2s var(--ease);
}
.wa-float:hover {
  transform: scale(1.06);
}

/* =============== CARDS & BUTTONS =============== */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.btn-primary-grad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--grad);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.96rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary-grad:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 108, 169, 0.3);
}

.btn-wa-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--wa);
  color: #fff;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.96rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-wa-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.35);
}

/* =============== AUTH & FORMS =============== */
.auth-wrap {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 130px 20px 64px;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--s3);
}
.auth-card h1 {
  font-family: var(--heading);
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.auth-card .sub {
  color: var(--mid);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.875rem;
  color: var(--dark);
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--body);
  font-size: 0.96rem;
  transition: border 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-group input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 108, 169, 0.12);
}
.form-hint { font-size: 0.78rem; color: var(--light); margin-top: 4px; }

.btn-submit {
  width: 100%;
  background: var(--grad);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 108, 169, 0.28);
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-links {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--mid);
}
.auth-links a { color: var(--blue); font-weight: 600; }
.auth-links a:hover { text-decoration: underline; }

.alert, .upload-error {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.alert-error, .upload-error {
  background: rgba(217, 48, 37, 0.08);
  color: var(--danger);
  border: 1px solid rgba(217, 48, 37, 0.2);
}
.alert-success {
  background: rgba(30, 142, 62, 0.08);
  color: var(--success);
  border: 1px solid rgba(30, 142, 62, 0.2);
}

/* =============== FOOTER (Matches VB Dynamics Main Site) =============== */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 0 0 32px;
  margin-top: 0;
  position: relative;
}
.footer-top-bar {
  height: 3px;
  background: var(--grad);
  margin-bottom: 52px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-grid h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.88rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s var(--ease);
}
.footer-links a:hover {
  color: #fff;
}
.footer-contact-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer-contact-list i {
  color: #38bdf8;
  width: 18px;
}
.footer-contact-list a:hover {
  color: #fff;
}
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .hdr-wa span { display: none; }
  .burger { display: flex; }
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .hdr-util-link span { display: none; }
  .hdr-wa { display: none; }
  .logo-sub { display: none; }
  .auth-card { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
