:root {
  --brand-teal: #00878b;
  --brand-teal-dark: #006e72;
  --brand-sky: #F1BF87;
  --brand-navy-deep: #0b2540;
  --border: #e5e7eb;
  --muted: #6b7280;
  --secondary: #f3f4f6;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #111827; }
a { text-decoration: none; }

/* ============ NAVBAR ============ */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 30;
  background-color: var(--brand-teal);
}
.site-header .container-nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
}
.site-header .brand img { height: 40px; width: auto; display: block; }
@media (min-width: 992px) { .site-header .brand img { height: 48px; } }

.nav-main {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
@media (min-width: 992px) { .nav-main { display: flex; } }

.nav-item { position: relative; }
.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--brand-sky);
}
.nav-caret { width: 10px; height: 10px; opacity: 0.7; }

.submenu {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  min-width: 180px;
  padding-top: 12px;
  display: none;
  z-index: 40;
}
.nav-item:hover .submenu { display: block; }
.submenu-inner {
  background: var(--brand-teal);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.35);
}
.submenu a {
  display: block;
  padding: 10px 16px;
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.submenu a:hover { background: rgba(255,255,255,0.1); color: #fff; }

.nav-tools { display: none; align-items: center; gap: 8px; }
@media (min-width: 992px) { .nav-tools { display: flex; } }

.icon-btn {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  padding: 4px;
}
.icon-btn:hover { color: #fff; }
.login-btn {
  margin-left: 4px;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  color: #fff;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.login-btn:hover { background: #fff; color: var(--brand-teal); }

.burger { display: inline-flex; background: transparent; border: 0; color: #fff; cursor: pointer; }
@media (min-width: 992px) { .burger { display: none; } }

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: var(--brand-teal);
}
.mobile-menu.open { display: block; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 16px; }
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  padding: 12px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ============ HOMEPAGE HERO ============ */
.home-hero {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 112px 16px 64px;
  background: #000;
}
.home-hero .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.home-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.10);
}
.home-hero .content {
  position: relative;
  width: 100%;
  max-width: 1024px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.home-hero .logo-img { width: 60%; height: auto; }
.home-hero .tagline-img { width: 55%; height: auto; }

/* ============ PAGE HERO (teal) ============ */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-teal);
  padding: 128px 0 80px;
  color: #fff;
}
@media (min-width: 992px) { .page-hero { padding: 160px 0 112px; } }
.page-hero .container-hero { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; }
.page-hero .hero-image {
  position: absolute;
  inset: 0 0 0 auto;
  width: 50%;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to right, transparent, black 35%);
  mask-image: linear-gradient(to right, transparent, black 35%);
  display: none;
}
@media (min-width: 768px) { .page-hero .hero-image { display: block; } }
.page-hero .col-text { max-width: 560px; position: relative; }
.page-hero .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.3em; color: var(--brand-sky); text-transform: uppercase; }
.page-hero .rule { margin-top: 8px; height: 3px; width: 112px; background: var(--brand-sky); }
.page-hero h1 { margin-top: 32px; font-weight: 300; font-size: 32px; line-height: 1.15; }
@media (min-width: 640px) { .page-hero h1 { font-size: 36px; } }
@media (min-width: 992px) { .page-hero h1 { font-size: 42px; } }
.page-hero p { margin-top: 24px; max-width: 460px; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.85); }
.page-hero .cta {
  margin-top: 48px;
  border: 1px solid rgba(255,255,255,0.7);
  background: transparent;
  color: #fff;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.page-hero .cta:hover { background: #fff; color: var(--brand-teal-dark); }

/* ============ TABLE SECTION ============ */
.table-section {
  background: var(--brand-teal);
  padding: 48px 0;
}
@media (min-width: 992px) { .table-section { padding: 64px 0; } }
.table-section .container-t { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.table-card {
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
@media (min-width: 992px) { .table-card { padding: 32px; } }
.table-toolbar {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 640px) { .table-toolbar { flex-direction: row; align-items: center; justify-content: space-between; } }
.search-wrap { position: relative; width: 100%; }
@media (min-width: 640px) { .search-wrap { max-width: 320px; } }
.search-wrap input {
  height: 40px;
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0 12px 0 36px;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
}
.search-wrap input:focus { border-color: var(--brand-sky); }
.search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.status-select {
  height: 40px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 14px;
}

.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: 14px; }
.data-table thead { background: var(--secondary); }
.data-table th { text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-navy-deep); }
.data-table td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: top; }
.data-table tbody tr:hover { background: rgba(243,244,246,0.4); }
.badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 11px; font-weight: 700; }
.badge-active { background: rgba(0,135,139,0.15); color: var(--brand-teal-dark); }
.badge-done { background: rgba(16,185,129,0.15); color: #047857; }
.badge-draft { background: rgba(245,158,11,0.15); color: #b45309; }
.badge-cancel { background: rgba(239,68,68,0.15); color: #b91c1c; }

.pagination { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.pagination .btns { display: flex; gap: 4px; }
.pagination button { border: 1px solid var(--border); background: #fff; border-radius: 4px; padding: 6px 12px; font-size: 12px; cursor: pointer; }
.pagination button:hover:not(:disabled) { background: var(--secondary); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 767px) {
  .data-table { display: none; }
}
.mobile-cards { display: none; }
@media (max-width: 767px) { .mobile-cards { display: block; } }
.mobile-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin-bottom: 12px; }
.mobile-card .row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; }
.mobile-card .lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ============ FOOTER ============ */
.site-footer { background: var(--brand-teal); color: #fff; }
.site-footer .inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
}
@media (min-width: 640px) { .site-footer .inner { flex-direction: row; } }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--brand-sky); }
.site-footer .links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; }

/* ============ LOGIN MODAL ============ */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.login-overlay.open { display: flex; }
body.no-scroll { overflow: hidden; }

.login-card {
  position: relative;
  width: 100%;
  max-width: 384px;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.45);
  ring: 1px solid rgba(0,0,0,0.05);
}
.login-card .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.login-card .head h2 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.close-btn {
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: #111827;
}
.close-btn:hover { background: var(--secondary); }
.field { position: relative; margin-bottom: 16px; }
.field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.field input {
  height: 48px;
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(243,244,246,0.4);
  padding: 0 12px 0 40px;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.field input:focus { border-color: var(--brand-teal); background: #fff; box-shadow: 0 0 0 3px rgba(0,135,139,0.2); }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.check-row input { width: 14px; height: 14px; accent-color: var(--brand-teal); }
.submit-btn {
  height: 48px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #3a8489;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 20px -5px rgba(0,0,0,0.2);
  margin-top: 8px;
}
.submit-btn:hover { opacity: 0.95; }
.forgot { display: block; text-align: center; margin-top: 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(17,24,39,0.7); }
.forgot:hover { color: var(--brand-teal); }

/* ============ COMERCIAL CARD ============ */
.comercial-card {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 110, 114, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
}
.comercial-card-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
}

/* ============ LOGIN PAGE ============ */
.login-page {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 112px 16px 64px;
  background: rgb(36, 73, 49);
}
.login-page .bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.2;
}
.login-page .overlay {
  position: absolute; inset: 0;
  background: rgba(22, 45, 38, 0.7);
}
.login-page-inner {
  position: relative;
  width: 100%;
  max-width: 384px;
}

/* ============ COMPONENTE PAGE ============ */
.components-page { background: #f8fafc; }
.comp-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.comp-title {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-navy-deep);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.btn-primary-brand {
  background: #00878b;
  border-color: #00878b;
  color: #fff;
}
.btn-primary-brand:hover,
.btn-primary-brand:focus {
  background: #006e72;
  border-color: #006e72;
  color: #fff;
}
.swatch {
  height: 80px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ============ PRELOADER ============ */
body.np-lock { overflow: hidden; }
.np-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00878b;
  opacity: 1;
  transition: opacity 450ms ease-out;
}
.np-root.s7 { opacity: 0; pointer-events: none; }

.np-frame {
  width: min(900px, 92vw);
  aspect-ratio: 1420 / 635; /* ROW_W / N_H */
  position: relative;
  overflow: visible;
}
.np-row {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  transition: transform 450ms cubic-bezier(.2,.7,.2,1);
}
.np-n {
  position: relative;
  height: 100%;
  flex-shrink: 0;
}
.np-slice {
  position: absolute;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform: scale(0.2);
  opacity: 0;
  transform-origin: center center;
  transition: transform 350ms cubic-bezier(.2,.7,.2,1), opacity 300ms ease-out;
}
.np-stanga  { background-image: url("../assets/preloader/linie_stanga.png");  z-index: 3; }
.np-mijloc  { background-image: url("../assets/preloader/linie_mijloc.png");  z-index: 2; }
.np-dreapta { background-image: url("../assets/preloader/linie_dreapta.png"); z-index: 1; }

.np-root.s1 .np-stanga  { transform: scale(1); opacity: 1; }
.np-root.s2 .np-mijloc  { transform: scale(1); opacity: 1; }
.np-root.s3 .np-dreapta { transform: scale(1); opacity: 1; }

.np-text {
  position: relative;
  height: 100%;
  flex-shrink: 0;
  padding-left: 2%;
}
.np-text img {
  position: absolute;
  left: 2%;
  top: 50%;
  width: 96%;
  opacity: 0;
  transform: translateY(-50%);
}
.np-novera  { transition: opacity 1200ms ease-out, transform 450ms cubic-bezier(.2,.7,.2,1); }
.np-tagline { transition: opacity 450ms ease-out; }

.np-root.s5 .np-novera  { opacity: 1; }
.np-root.s6 .np-novera  { opacity: 1; transform: translateY(calc(-50% - 40.386px)); }
.np-root.s6 .np-tagline { opacity: 1; transform: translateY(calc(-50% + 44.45px)); }
