/* ============ Font logo: Ambroise ============
   Pune fișierele licențiate în assets/fonts/ (Ambroise-Regular.woff2 / .woff).
   Până atunci se folosește Playfair Display, un font Didone asemănător. */
@font-face {
  font-family: "Ambroise";
  src: url("../fonts/Ambroise-Regular.woff2") format("woff2"),
       url("../fonts/Ambroise-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

/* ============ Tokens ============ */
:root {
  --black: #0a0a0a;
  --black-2: #111312;
  --black-3: #171a18;
  --green: #0b4a32;        /* verde închis, tip Rolex */
  --green-deep: #06301f;
  --green-light: #127a52;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f2ef;
  --muted: #9a9e9b;
  --radius: 14px;
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-logo: "Ambroise", "Playfair Display", "Didot", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 300;
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-weight: 500; font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--green-light);
}
h1, h2, h3 { font-weight: 300; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: clamp(38px, 6.5vw, 84px); }
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: 22px; font-weight: 500; }
strong, .medium { font-weight: 500; }
.muted { color: var(--muted); }
section { padding: 120px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head h2 { margin-top: 14px; max-width: 640px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-light); }
.btn-ghost { border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: #fff; background: #fff; color: var(--black); }

/* ============ Header ============ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled { background: rgba(10,10,10,.82); backdrop-filter: blur(14px); border-color: var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-name { font-family: var(--font-logo); font-weight: 400; font-size: 24px; letter-spacing: .08em; }
.logo-sig { margin-top: 5px; font-size: 9px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--green-light); }
.nav { display: flex; gap: 40px; align-items: center; }
.nav a { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav .btn { color: #fff; padding: 11px 22px; }
.menu-toggle { display: none; width: 28px; height: 18px; position: relative; }
.menu-toggle span { position: absolute; left: 0; right: 0; height: 1px; background: #fff; transition: .3s var(--ease); }
.menu-toggle span:nth-child(1) { top: 2px; }
.menu-toggle span:nth-child(2) { bottom: 2px; }
.menu-open .menu-toggle span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { bottom: 9px; transform: rotate(-45deg); }

/* ============ Hero ============ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; padding: 130px 0 100px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media video, .hero-media .ph { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,.55) 55%, var(--black) 100%);
}
.hero h1 { max-width: 980px; margin: 20px 0 32px; }
.hero h1 em { font-style: normal; font-weight: 500; color: #fff; }
.hero p { max-width: 520px; font-size: 18px; color: #c9ccca; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ Placeholder media (până pui materialele reale) ============ */
.ph {
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(18,122,82,.45), transparent 60%),
    radial-gradient(100% 70% at 90% 100%, rgba(11,74,50,.6), transparent 60%),
    var(--black-3);
}

/* ============ Stats strip ============ */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat b { display: block; font-weight: 300; font-size: 44px; }
.stat span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ============ Reels grid ============ */
.reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.reel {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden;
  background: var(--black-3); cursor: pointer; isolation: isolate;
}
.reel video, .reel img, .reel .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.reel:hover video, .reel:hover img, .reel:hover .ph { transform: scale(1.04); }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.75)); z-index: 1; }
.reel-info { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; }
.reel-info small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--green-light); font-weight: 500; }
.reel-info p { font-weight: 500; font-size: 15px; margin-top: 4px; }
.play {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  display: grid; place-items: center; transition: background .3s;
}
.reel:hover .play { background: var(--green); }
.play svg { width: 14px; height: 14px; margin-left: 2px; }

/* ============ Services ============ */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 34px;
  background: var(--black-2); display: flex; flex-direction: column;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.service:hover { border-color: rgba(18,122,82,.6); transform: translateY(-4px); }
.service.featured { background: linear-gradient(180deg, var(--green-deep), var(--black-2)); border-color: rgba(18,122,82,.45); }
.service .num { font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.service h3 { margin: 26px 0 12px; font-size: 26px; font-weight: 300; }
.service > p { color: var(--muted); }
.price { margin: 30px 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price b { font-size: 40px; font-weight: 300; }
.price span { color: var(--muted); font-size: 14px; }
.service ul { list-style: none; display: grid; gap: 12px; margin-bottom: 36px; flex: 1; }
.service li { padding-left: 26px; position: relative; font-size: 15px; }
.service li::before { content: ""; position: absolute; left: 0; top: 10px; width: 12px; height: 1px; background: var(--green-light); }
.service .btn { justify-content: center; }

/* ============ Process ============ */
.process { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { padding: 36px 28px 0 0; }
.step b { font-weight: 500; font-size: 13px; letter-spacing: .2em; color: var(--green-light); }
.step h3 { margin: 16px 0 10px; font-weight: 500; font-size: 18px; }
.step p { color: var(--muted); font-size: 15px; }

/* ============ Filters ============ */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.filter {
  padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  transition: .3s var(--ease);
}
.filter:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.filter.active { background: var(--green); border-color: var(--green); color: #fff; }
.reel.hide { display: none; }

/* ============ Page hero ============ */
.page-hero { padding: 200px 0 60px; }
.page-hero h1 { font-size: clamp(38px, 5.5vw, 72px); margin-top: 18px; max-width: 900px; }
.page-hero p { margin-top: 24px; max-width: 560px; color: var(--muted); font-size: 18px; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }
.contact-info p { color: var(--muted); margin: 24px 0 40px; max-width: 420px; }
.contact-line { padding: 20px 0; border-top: 1px solid var(--line); }
.contact-line small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact-line a, .contact-line span { font-size: 18px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--black-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 15px 16px;
  outline: none; transition: border-color .3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-light); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form-status { grid-column: 1 / -1; font-size: 14px; color: var(--green-light); min-height: 20px; }

/* ============ CTA band ============ */
.cta-band { background: var(--green-deep); border-radius: 22px; padding: 80px 60px; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { max-width: 620px; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding: 80px 0 40px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .logo { align-items: flex-start; }
.footer-brand p { margin: 18px 0 22px; max-width: 260px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text); font-weight: 500; margin-bottom: 6px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--text); }
.footer-anpc { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 56px; }
.footer-anpc { align-items: center; }
.footer-anpc a { display: block; width: 250px; opacity: .95; transition: opacity .3s; }
.footer-anpc img { display: block; width: 100%; height: auto; border-radius: 10px; }
.footer-anpc a:hover { opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .footer-anpc a { width: 100%; max-width: 260px; } }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(5,5,5,.94);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; height: min(88vh, 900px); aspect-ratio: 9 / 16; max-width: 100%; }
.lightbox-inner.wide { aspect-ratio: 16 / 9; height: auto; width: min(92vw, 1400px); }
.lightbox video, .lightbox img, .lightbox .ph { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius); background: #000; }
.lightbox-close {
  position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); font-size: 22px; line-height: 1;
}
.lightbox-close:hover { background: #fff; color: #000; }
.ph-note { display: grid; place-items: center; color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 20px; }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .reels { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: 1fr; max-width: 560px; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
}
@media (max-width: 760px) {
  section { padding: 80px 0; }
  .container { padding: 0 16px; }
  .menu-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: var(--black); flex-direction: column; justify-content: center;
    gap: 30px; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
  }
  .nav a { font-size: 18px; }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  .reels { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .reel-info { left: 12px; right: 12px; bottom: 12px; }
  .reel-info p { font-size: 13px; }
  .stats .container { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .process { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .cta-band { padding: 50px 28px; }
  .page-hero { padding: 140px 0 40px; }
  .hero { padding-bottom: 70px; }
}

/* ============ Pagina privată de livrare ============ */
.delivery-hero { padding: 180px 0 70px; border-bottom: 1px solid var(--line); }
.delivery-hero h1 { font-size: clamp(36px, 5.5vw, 72px); margin: 18px 0 26px; max-width: 900px; }
.delivery-meta { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.delivery-meta div small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.delivery-meta div span { font-weight: 500; }
.delivery-hero > .container > p { color: var(--muted); max-width: 620px; margin-bottom: 36px; }

.seg-nav { position: sticky; top: 80px; z-index: 20; background: rgba(10,10,10,.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.seg-nav .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px; scrollbar-width: none; }
.seg-nav .container::-webkit-scrollbar { display: none; }
.seg-nav a { white-space: nowrap; }
.seg-nav a span { opacity: .6; margin-left: 6px; }

.segment { padding: 90px 0 0; scroll-margin-top: 150px; }
.segment:last-of-type { padding-bottom: 120px; }
.segment-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.segment-head h2 { font-size: clamp(26px, 3vw, 38px); margin-top: 10px; }
.segment-head p { color: var(--muted); margin-top: 8px; max-width: 560px; }

.card-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.card-actions p { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  color: var(--green-light); padding: 7px 0; transition: color .3s;
}
.dl:hover { color: #fff; }
.dl svg { width: 14px; height: 14px; }

.wides { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.wide { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--black-3); cursor: pointer; }
.wide video, .wide img, .wide .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wide .play { top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%); width: 64px; height: 64px; }
.wide:hover .play { background: var(--green); }

.photos { columns: 3 280px; column-gap: 16px; }
.photo { break-inside: avoid; margin-bottom: 16px; }
.photo-img { border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--black-3); }
.photo-img img { width: 100%; transition: transform .8s var(--ease); }
.photo-img:hover img { transform: scale(1.03); }
.photo-img .ph { aspect-ratio: 4 / 5; }

.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.gate form { width: 100%; max-width: 380px; text-align: center; display: grid; gap: 18px; }
.gate h1 { font-size: 30px; margin: 10px 0 6px; }
.gate input { font: inherit; color: var(--text); background: var(--black-2); border: 1px solid var(--line); border-radius: 10px; padding: 15px 16px; text-align: center; outline: none; }
.gate input:focus { border-color: var(--green-light); }
.gate .btn { justify-content: center; }
.gate .err { color: #d98080; font-size: 14px; min-height: 20px; }

@media (max-width: 760px) {
  .wides { grid-template-columns: 1fr; }
  .seg-nav { top: 80px; }
  .delivery-hero { padding: 130px 0 50px; }
  .segment { padding-top: 64px; }
}

/* ============ Prețuri cu TVA ============ */
.price .from { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.price small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.service .price-mini { margin-top: 18px; font-size: 14px; color: var(--muted); }
.service .price-mini b { color: var(--text); font-weight: 500; }

/* ============ Beneficii ============ */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.benefit { padding: 40px 36px 0 0; }
.benefit + .benefit { padding-left: 36px; border-left: 1px solid var(--line); }
.benefit h3 { font-size: 20px; margin-bottom: 12px; }
.benefit p { color: var(--muted); font-size: 15px; }

/* ============ Clienți (bandă care se mișcă) ============ */
.clients { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.clients-track { display: flex; gap: 64px; width: max-content; animation: marquee 40s linear infinite; }
.clients-track span { font-family: var(--font-logo); font-size: 26px; color: #c9ccca; white-space: nowrap; }
.clients-track span.dot { color: var(--green-light); font-family: inherit; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .clients-track { animation: none; } }

@media (max-width: 1024px) {
  .benefits { grid-template-columns: 1fr; }
  .benefit, .benefit + .benefit { padding: 32px 0 0; border-left: 0; }
}

/* ============ Galerie: grupuri + carduri ============ */
.wide.card { position: relative; }
.wide.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.75)); z-index: 1; }
.wide.card .reel-info { z-index: 2; }
.wide.card .play { top: 16px; right: 16px; left: auto; transform: none; width: 40px; height: 40px; }
.wide img, .wide video { transition: transform .8s var(--ease); }
.wide:hover img, .wide:hover video { transform: scale(1.03); }
.g-group + .g-group { margin-top: 80px; }
.g-title { font-weight: 300; font-size: 26px; margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.hide { display: none !important; }

/* ============ Hero video ============ */
.hero-media video { position: absolute; inset: 0; }

/* ============ Despre ============ */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-media .about-small { position: absolute; width: 46%; aspect-ratio: 3 / 2; right: -8%; bottom: -8%; border: 6px solid var(--black); }
.about h2 { margin: 14px 0 24px; }
.about p { color: var(--muted); margin-bottom: 18px; max-width: 520px; }
.about .sig { font-family: var(--font-logo); font-size: 28px; color: var(--text); margin-top: 30px; }
@media (max-width: 1024px) {
  .about { grid-template-columns: 1fr; gap: 60px; }
  .about-media .about-small { right: 0; }
}

/* ============ Portal client & admin ============ */
.lightbox iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); background: #000; }
.portal { padding: 140px 0 120px; min-height: 100vh; }
.auth { max-width: 420px; margin: 40px auto 0; }
.auth h1 { font-size: 36px; margin: 14px 0 10px; }
.auth > p { color: var(--muted); margin-bottom: 30px; }
.auth .form { grid-template-columns: 1fr; }
.auth .form .btn { justify-self: stretch; justify-content: center; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.auth-links button { color: var(--green-light); font-size: 13px; }
.auth-links button:hover { color: #fff; }
.msg { font-size: 14px; min-height: 20px; color: var(--green-light); }
.msg.err { color: #e08a8a; }
.demo-note { margin-top: 30px; padding: 16px 18px; border: 1px dashed rgba(18,122,82,.6); border-radius: 10px; font-size: 13px; color: var(--muted); }
.demo-note b { color: var(--text); font-weight: 500; }

.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 50px; }
.dash-head h1 { font-size: clamp(32px, 4.5vw, 54px); margin-top: 12px; }
.dash-head p { color: var(--muted); margin-top: 8px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.tile { background: var(--black-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.tile small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.tile b { display: block; font-size: 40px; font-weight: 300; margin: 10px 0 2px; line-height: 1.1; }
.tile span { font-size: 13px; color: var(--muted); }
.panels { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 70px; }
.panel { background: var(--black-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel h3 { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.panel .sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

.meter + .meter { margin-top: 22px; }
.meter-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.meter-top span { color: var(--muted); }
.meter-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.meter-bar i { display: block; height: 100%; border-radius: 99px; background: var(--green-light); }

.chart { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding-top: 24px; border-bottom: 1px solid var(--line); position: relative; }
.chart .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; cursor: default; }
.chart .bar { width: min(36px, 100%); background: var(--green-light); border-radius: 4px 4px 0 0; min-height: 2px; transition: background .2s; }
.chart .col:hover .bar { background: #1aa36e; }
.chart .val { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.chart-x { display: flex; gap: 10px; margin-top: 8px; }
.chart-x span { flex: 1; text-align: center; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #fff; color: #0a0a0a; font-size: 12px; padding: 8px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 3; }
.col:hover .tip, .col:focus .tip { opacity: 1; }

.timeline { list-style: none; border-left: 1px solid var(--line); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 26px 24px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--green-light); }
.timeline small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.timeline b { display: block; font-weight: 500; margin: 2px 0; }
.timeline p { font-size: 14px; color: var(--muted); }

.deliveries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.delivery { text-align: left; background: var(--black-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .3s, transform .3s var(--ease); }
.delivery:hover { border-color: rgba(18,122,82,.6); transform: translateY(-3px); }
.delivery small { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--green-light); font-weight: 500; }
.delivery h3 { font-size: 20px; font-weight: 300; margin: 10px 0 16px; }
.delivery .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.chip.ok { border-color: rgba(18,122,82,.6); color: var(--green-light); }
.chip.warn { border-color: rgba(214,170,80,.5); color: #d6aa50; }
.back { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; display: inline-block; }
.back:hover { color: #fff; }
.card-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* admin */
.admin-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; }
.admin-bar input { flex: 1; min-width: 200px; }
.input, .admin-bar input, .admin select { font: inherit; color: var(--text); background: var(--black-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; outline: none; }
.input:focus { border-color: var(--green-light); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.t th { text-align: left; font-weight: 500; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--black-2); }
.t td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { cursor: pointer; transition: background .2s; }
.t tbody tr:hover { background: rgba(255,255,255,.03); }
.t .num { text-align: right; font-variant-numeric: tabular-nums; }
.t td b { font-weight: 500; }
.btn-sm { padding: 9px 16px; font-size: 11px; }
.btn-danger { border: 1px solid rgba(224,138,138,.4); color: #e08a8a; }
.btn-danger:hover { background: #e08a8a; color: #0a0a0a; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.admin .field input, .admin .field select, .admin .field textarea { padding: 12px 14px; }
.admin h2 { font-size: 30px; }
.admin-section { margin-top: 56px; }
.admin-section > h3 { font-size: 20px; font-weight: 300; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.item-row { display: grid; grid-template-columns: 1.1fr 110px 1fr 2fr 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.item-row .input { padding: 10px 12px; font-size: 14px; width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-size: 18px; }
.icon-btn:hover { border-color: #e08a8a; color: #e08a8a; }
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(5,5,5,.85); display: none; align-items: flex-start; justify-content: center; padding: 60px 16px; overflow-y: auto; }
.modal.open { display: flex; }
.modal-box { width: 100%; max-width: 980px; background: var(--black); border: 1px solid var(--line); border-radius: 18px; padding: 34px; }
.modal-box h2 { font-size: 26px; margin-bottom: 24px; }
.modal-actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 28px; flex-wrap: wrap; }
.paste { width: 100%; min-height: 90px; margin-top: 10px; }

@media (max-width: 1024px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .panels { grid-template-columns: 1fr; }
  .deliveries { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .portal { padding-top: 110px; }
  .deliveries, .grid2, .grid3 { grid-template-columns: 1fr; }
  .tile b { font-size: 32px; }
  .item-row { grid-template-columns: 1fr 1fr; }
  .item-row .url { grid-column: 1 / -1; }
  .modal-box { padding: 22px; }
}

/* ============ Bară de progres (livrat din abonament) ============ */
.progress + .progress { margin-top: 24px; }
.progress-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 8px; }
.progress-top span:last-child { color: var(--muted); white-space: nowrap; }
.progress-top b { color: var(--text); font-weight: 500; }
.progress-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress-bar i { display: block; height: 100%; border-radius: 99px; background: var(--green-light); transition: width .8s var(--ease); }
.progress.low .progress-bar i { background: #d6aa50; }
.progress.done .progress-bar i { background: #1aa36e; }
.progress small { display: block; margin-top: 8px; font-size: 12px; color: var(--green-light); }
.progress.compact .progress-top { font-size: 12px; margin-bottom: 6px; }
.progress.compact .progress-top span:first-child { color: var(--muted); }
.progress.compact .progress-bar { height: 6px; }

/* ============ WhatsApp ============ */
.wa-card { background: var(--black-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px; align-self: start; }
.wa-card h2 { margin: 12px 0 16px; font-size: clamp(28px, 3vw, 40px); }
.wa-card p { color: var(--muted); margin-bottom: 30px; max-width: 460px; }
.btn-wa { background: #1fa855; color: #fff; }
.btn-wa:hover { background: #25c063; }
.btn-wa svg { width: 20px; height: 20px; }
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 999px;
  background: #1fa855; color: #fff; font-weight: 500; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: transform .3s var(--ease), background .3s;
}
.wa-fab:hover { transform: translateY(-3px); background: #25c063; }
.wa-fab svg { width: 26px; height: 26px; }
@media (max-width: 760px) { .wa-fab { padding: 0; width: 56px; justify-content: center; } .wa-fab span { display: none; } .wa-card { padding: 28px; } }

/* ============ Pagini legale ============ */
.legal { padding: 170px 0 110px; }
.legal .container { max-width: 860px; }
.legal h1 { font-size: clamp(34px, 5vw, 56px); margin: 16px 0 12px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 50px; }
.legal h2 { font-size: 22px; font-weight: 500; margin: 46px 0 14px; }
.legal p, .legal li { color: #c9ccca; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal a { color: var(--green-light); text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--black-2); font-weight: 500; color: var(--text); }
.legal .box { background: var(--black-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin: 20px 0; }
.legal .table-scroll { overflow-x: auto; }
@media (max-width: 760px) { .legal { padding-top: 130px; } }

/* ============ Banner cookies ============ */
.cookie-bar { position: fixed; left: 20px; bottom: 20px; z-index: 85; max-width: 420px; background: var(--black-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; font-size: 14px; color: #c9ccca; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.cookie-bar a { color: var(--green-light); text-decoration: underline; }
.cookie-bar .btn { margin-top: 14px; padding: 10px 20px; }
@media (max-width: 760px) { .cookie-bar { left: 12px; right: 84px; bottom: 12px; max-width: none; } }
