/* Atelierul Tău Digital — sistem de design în limbajul Google / Material */

:root {
  --blue: #1a73e8; --blue-hover: #1967d2; --blue-container: #e8f0fe; --on-blue-container: #174ea6;
  --red: #d93025; --red-container: #fce8e6; --on-red-container: #a50e0e;
  --yellow: #f9ab00; --yellow-container: #fef7e0; --on-yellow-container: #b06000;
  --green: #188038; --green-container: #e6f4ea; --on-green-container: #0d652d;
  --g-blue: #4285f4; --g-red: #ea4335; --g-yellow: #fbbc04; --g-green: #34a853;
  --text: #202124; --text-2: #5f6368; --text-3: #80868b;
  --border: #dadce0; --surface: #fff; --surface-1: #f8f9fa; --surface-2: #f1f3f4;
  --elev-1: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
  --elev-2: 0 1px 2px rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15);
  --elev-3: 0 4px 8px 3px rgba(60,64,67,.15), 0 1px 3px rgba(60,64,67,.3);
  --radius-s: 8px; --radius-m: 12px; --radius-l: 20px; --radius-xl: 28px; --pill: 100px;
  --font: 'Google Sans', 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --drawer: 264px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--surface); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; color: var(--text); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 400; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; word-break: break-all; }
.muted { color: var(--text-2); } .small { font-size: .875rem; } .center { text-align: center; } .spacer { flex: 1; }
.lead { font-size: 1.2rem; color: var(--text-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.mi { font-family: 'Material Symbols Rounded'; font-variation-settings: 'FILL' 0; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; vertical-align: middle; user-select: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.section { padding: 72px 0; }
.section.alt { background: var(--surface-1); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.eyebrow { font-family: var(--font); font-weight: 500; color: var(--blue); letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; margin-bottom: 12px; display: block; }
.display-code { font-family: var(--font); font-size: 6rem; line-height: 1; margin: 0; color: var(--blue); }

/* ---------- Butoane ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 24px; border-radius: var(--pill); border: 1px solid transparent; font: 500 .9rem/1 var(--font); cursor: pointer; text-decoration: none !important; transition: background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn .mi { font-size: 20px; }
.btn-filled { background: var(--blue); color: #fff; }
.btn-filled:hover { background: var(--blue-hover); box-shadow: var(--elev-1); }
.btn-tonal { background: var(--blue-container); color: var(--on-blue-container); }
.btn-tonal:hover { background: #d2e3fc; }
.btn-outlined { background: transparent; color: var(--blue); border-color: var(--border); }
.btn-outlined:hover { background: var(--blue-container); border-color: #d2e3fc; }
.btn-text { background: transparent; color: var(--blue); padding: 0 12px; }
.btn-text:hover { background: var(--blue-container); }
.btn-danger { background: transparent; color: var(--red); border-color: var(--border); }
.btn-danger:hover { background: var(--red-container); }
.btn-lg { height: 48px; padding: 0 32px; font-size: 1rem; }
.btn-sm { height: 32px; padding: 0 16px; font-size: .8rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--text-2); display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.linklike { background: none; border: 0; font: inherit; cursor: pointer; text-align: left; width: 100%; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Bara de sus (site) ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.bar-inner { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; max-width: 220px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav > a { padding: 8px 16px; border-radius: var(--pill); color: var(--text-2); font: 500 .95rem var(--font); text-decoration: none; }
.site-nav > a:hover, .site-nav > a.active { background: var(--blue-container); color: var(--on-blue-container); }
.nav-cta { display: flex; gap: 8px; margin-left: 12px; }
.nav-toggle { display: none; margin-left: auto; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--g-blue), var(--g-red) 40%, var(--g-yellow) 70%, var(--g-green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .actions-row { margin-top: 32px; gap: 12px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; margin-left: auto; width: 100%; }
.blob { position: absolute; border-radius: 50%; }
.blob.b1 { width: 62%; height: 62%; background: var(--g-blue); top: 0; left: 8%; }
.blob.b2 { width: 34%; height: 34%; background: var(--g-red); top: 8%; right: 0; border-radius: 50% 50% 50% 8%; }
.blob.b3 { width: 38%; height: 38%; background: var(--g-yellow); bottom: 4%; left: 0; border-radius: 12px; transform: rotate(12deg); }
.blob.b4 { width: 52%; height: 52%; background: var(--g-green); bottom: 0; right: 6%; border-radius: 50% 50% 8% 50%; }
.hero-art .panel { position: absolute; inset: 22% 14%; background: #fff; border-radius: var(--radius-l); box-shadow: var(--elev-3); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.panel .bar { height: 10px; border-radius: 6px; background: var(--surface-2); } .panel .bar.w60 { width: 60%; } .panel .bar.w80 { width: 80%; } .panel .bar.accent { background: var(--blue-container); height: 44px; border-radius: 10px; }

/* ---------- Carduri ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 24px; }
.card.elevated { border-color: transparent; box-shadow: var(--elev-1); }
.card-hover { transition: box-shadow .2s, transform .2s; }
.card-hover:hover { box-shadow: var(--elev-3); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title h3 { margin: 0; }
.icon-circle { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px; }
.icon-circle.blue { background: var(--blue-container); color: var(--blue); } .icon-circle.red { background: var(--red-container); color: var(--red); }
.icon-circle.yellow { background: var(--yellow-container); color: var(--on-yellow-container); } .icon-circle.green { background: var(--green-container); color: var(--green); }
.project-card { padding: 0; overflow: hidden; display: block; color: inherit; text-decoration: none !important; }
.project-card .thumb { aspect-ratio: 16/10; background: var(--surface-2); display: grid; place-items: center; color: var(--text-3); overflow: hidden; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card .body { padding: 20px 24px 24px; }
.cta-band { background: var(--blue); color: #fff; border-radius: var(--radius-xl); padding: 56px 40px; text-align: center; }
.cta-band h2 { color: #fff; } .cta-band p { color: #d2e3fc; }
.cta-band .btn-filled { background: #fff; color: var(--blue); } .cta-band .btn-filled:hover { background: var(--blue-container); }
.steps { counter-reset: s; display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.step { counter-increment: s; } .step::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-container); color: var(--blue); font: 500 1.1rem var(--font); margin-bottom: 12px; }

/* ---------- Chip-uri ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 8px; font: 500 .78rem var(--font); background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.chip .mi { font-size: 16px; }
.chip-blue { background: var(--blue-container); color: var(--on-blue-container); } .chip-green { background: var(--green-container); color: var(--on-green-container); }
.chip-red { background: var(--red-container); color: var(--on-red-container); } .chip-yellow { background: var(--yellow-container); color: var(--on-yellow-container); }
.badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font: 500 .72rem/20px var(--font); text-align: center; }

/* ---------- Formulare ---------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font: 500 .85rem var(--font); color: var(--text-2); }
.field input, .field select, .field textarea, .input { width: 100%; font: inherit; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-s); padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.field .hint { font-size: .8rem; color: var(--text-3); }
.field input[type=checkbox] { width: 18px; height: 18px; padding: 0; accent-color: var(--blue); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--text-2); cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.auth-wrap { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 40px 16px; background: var(--surface-1); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--elev-1); }
.auth-card .brand img { height: 44px; margin-bottom: 24px; }

/* ---------- Notificări ---------- */
.snack { display: flex; align-items: center; gap: 12px; max-width: 1200px; margin: 16px auto 0; padding: 14px 20px; border-radius: var(--radius-m); background: var(--blue-container); color: var(--on-blue-container); font-size: .95rem; }
.snack-success { background: var(--green-container); color: var(--on-green-container); } .snack-error { background: var(--red-container); color: var(--on-red-container); }
.site-nav ~ * .snack, main > .snack { margin-left: auto; margin-right: auto; }
.app-content > .snack { margin: 0 0 16px; max-width: none; }
main > .snack:first-child { margin-top: 16px; width: calc(100% - 48px); }

/* ---------- Tabele ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-m); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font: 500 .78rem var(--font); text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); padding: 12px 16px; background: var(--surface-1); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--surface-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-1); }
.table th.num { text-align: right; }
.table .row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.table a.row-link { color: var(--text); font-weight: 500; }

/* ---------- Panou (shell) ---------- */
.shell { display: grid; grid-template-columns: var(--drawer) 1fr; min-height: 100vh; background: var(--surface-1); }
.drawer { background: #fff; border-right: 1px solid var(--border); padding: 16px 12px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40; }
.drawer .brand { padding: 8px 12px 16px; } .drawer .brand img { height: 36px; }
.drawer-label { font: 500 .72rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 8px 16px; margin: 0; }
.drawer nav { display: flex; flex-direction: column; gap: 2px; }
.drawer-link { display: flex; align-items: center; gap: 14px; padding: 0 16px; height: 44px; border-radius: var(--pill); color: var(--text-2); font: 500 .92rem var(--font); text-decoration: none !important; }
.drawer-link:hover { background: var(--surface-2); }
.drawer-link.active { background: var(--blue-container); color: var(--on-blue-container); }
.drawer-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.shell-main { min-width: 0; display: flex; flex-direction: column; }
.app-bar { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 24px; background: #fff; }
.app-title { font: 400 1.35rem var(--font); margin: 0; }
.user-pill { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font: 500 .95rem var(--font); }
.user-name { font-size: .9rem; color: var(--text-2); }
.app-content { padding: 24px; max-width: 1280px; width: 100%; }
.scrim { display: none; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h2 { font-size: 1.6rem; margin: 0 0 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stat { padding: 20px 24px; }
.stat .label { display: block; margin-bottom: 6px; }
.stat .value { font: 400 2rem/1.1 var(--font); }
.stat .sub { font-size: .82rem; color: var(--text-2); margin-top: 6px; }
.stat.accent-blue { border-left: 4px solid var(--g-blue); } .stat.accent-green { border-left: 4px solid var(--g-green); }
.stat.accent-red { border-left: 4px solid var(--g-red); } .stat.accent-yellow { border-left: 4px solid var(--g-yellow); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.split { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--surface-2); }
.list-plain li:last-child { border-bottom: 0; }
.list-plain .grow { flex: 1; min-width: 0; }
.list-plain .title { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { text-align: center; padding: 48px 16px; color: var(--text-2); }
.empty .mi { font-size: 48px; color: var(--text-3); }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filter-bar .input { width: auto; min-width: 180px; padding: 8px 12px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab { padding: 12px 20px; color: var(--text-2); font: 500 .92rem var(--font); border-bottom: 3px solid transparent; text-decoration: none !important; white-space: nowrap; }
.tab:hover { background: var(--surface-1); } .tab.active { color: var(--blue); border-color: var(--blue); }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 160px; padding-top: 8px; }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; font-size: .75rem; color: var(--text-2); }
.bars .bar { width: 100%; max-width: 48px; background: var(--g-blue); border-radius: 8px 8px 0 0; min-height: 3px; }
.progress { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; } .progress > span { display: block; height: 100%; background: var(--g-green); }

/* ---------- Agendă ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; background: #fff; }
.cal .dow { padding: 10px; text-align: center; font: 500 .75rem var(--font); color: var(--text-2); background: var(--surface-1); border-bottom: 1px solid var(--border); text-transform: uppercase; }
.cal .day { min-height: 104px; padding: 6px; border-right: 1px solid var(--surface-2); border-bottom: 1px solid var(--surface-2); position: relative; }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day.out { background: var(--surface-1); color: var(--text-3); }
.cal .day .dnum { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .8rem; color: inherit; text-decoration: none !important; }
.cal .day.today .dnum { background: var(--blue); color: #fff; }
.cal .ev { display: block; margin-top: 3px; padding: 2px 6px; border-radius: 4px; font-size: .72rem; line-height: 1.4; background: var(--blue-container); color: var(--on-blue-container); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none !important; }
.cal .ev.requested { background: var(--yellow-container); color: var(--on-yellow-container); }
.cal .ev.deadline { background: var(--red-container); color: var(--on-red-container); }
.cal .ev.done, .cal .ev.cancelled { background: var(--surface-2); color: var(--text-2); text-decoration: line-through !important; }
.cal-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.cal-nav h3 { margin: 0 8px; min-width: 170px; font-size: 1.3rem; font-weight: 400; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot input { position: absolute; opacity: 0; } .slot span { display: inline-block; padding: 10px 18px; border: 1px solid var(--border); border-radius: var(--pill); cursor: pointer; font: 500 .9rem var(--font); }
.slot input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; } .slot input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.slot.taken span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.kcol { background: var(--surface-2); border-radius: var(--radius-m); padding: 12px; min-height: 160px; }
.kcol > h3 { font: 500 .9rem var(--font); margin: 4px 8px 12px; display: flex; justify-content: space-between; }
.kcard { background: #fff; border-radius: var(--radius-s); padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--elev-1); }
.kcard .t { font-weight: 500; margin-bottom: 6px; display: block; }
.kcard .meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: .78rem; color: var(--text-2); align-items: center; }

/* ---------- Fișiere ---------- */
.dropzone { border: 2px dashed var(--border); border-radius: var(--radius-l); padding: 32px; text-align: center; background: var(--surface-1); transition: border-color .15s, background .15s; }
.dropzone.drag { border-color: var(--blue); background: var(--blue-container); }
.dropzone .mi { font-size: 40px; color: var(--blue); }
.dropzone input[type=file] { margin-top: 12px; max-width: 100%; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.file-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; display: flex; flex-direction: column; }
.file-card .preview { aspect-ratio: 16/10; background: var(--surface-2); display: grid; place-items: center; color: var(--text-3); overflow: hidden; }
.file-card .preview img, .file-card .preview video { width: 100%; height: 100%; object-fit: cover; }
.file-card .preview audio { width: 90%; }
.file-card .info { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.file-card .name { font-weight: 500; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .78rem; color: var(--text-2); }

/* ---------- Documente (contract, factură) ---------- */
.doc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-m); padding: 48px; max-width: 860px; margin: 0 auto; line-height: 1.65; }
.doc h2 { font-size: 1.4rem; } .doc h3 { font-size: 1.05rem; margin-top: 1.4em; }
.doc-logo { height: 44px; margin-bottom: 8px; }
.invoice-head { display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 20px; }
.invoice-meta { text-align: right; } .invoice-meta h2 { margin: 0; text-transform: uppercase; letter-spacing: .06em; }
.invoice-client { margin-bottom: 20px; }
.totals { margin-left: auto; max-width: 320px; margin-top: 16px; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals .grand { border-top: 2px solid var(--text); font: 500 1.15rem var(--font); margin-top: 6px; padding-top: 10px; }
.sig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.sig-role { font: 500 .8rem var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin-bottom: 4px; }
.sig-img { max-height: 90px; display: block; margin: 8px 0; }
.sig-audit { margin-top: 24px; padding: 12px 16px; background: var(--surface-1); border-radius: var(--radius-s); font-size: .78rem; color: var(--text-2); }
.sigpad-wrap { border: 1px solid var(--border); border-radius: var(--radius-m); background: #fff; position: relative; }
.sigpad { display: block; width: 100%; height: 180px; touch-action: none; cursor: crosshair; border-radius: var(--radius-m); }
.sigpad-hint { position: absolute; left: 16px; bottom: 10px; font-size: .78rem; color: var(--text-3); pointer-events: none; }
.sign-panel { max-width: 860px; margin: 24px auto 0; }

/* ---------- Mesaje ---------- */
.chat { display: flex; flex-direction: column; gap: 12px; max-height: 520px; overflow-y: auto; padding: 8px 4px; }
.bubble { max-width: 78%; padding: 10px 16px; border-radius: 18px; background: var(--surface-2); align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; }
.bubble.mine { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.bubble:not(.mine) { border-bottom-left-radius: 4px; }
.bubble time { display: block; font-size: .7rem; opacity: .7; margin-top: 4px; }

/* ---------- Subsol ---------- */
.site-footer { background: var(--surface-1); border-top: 1px solid var(--border); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid h3 { font-size: .9rem; margin-bottom: 12px; }
.footer-grid a, .footer-grid span.muted { display: block; color: var(--text-2); padding: 3px 0; font-size: .92rem; }
.footer-logo { height: 40px; margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px; margin-top: 40px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-2); }
.footer-bottom a { display: inline; color: var(--text-2); }
.prose { max-width: 720px; } .prose h2 { margin-top: 1.6em; font-size: 1.4rem; } .prose li { margin-bottom: .4em; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); } .hero-art { margin: 0 auto; max-width: 360px; }
  .steps { grid-template-columns: repeat(2, 1fr); } .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--border); box-shadow: var(--elev-2); margin: 0; }
  .site-nav.open { display: flex; } .site-nav > a { padding: 12px 16px; } .nav-cta { flex-direction: column; margin: 8px 0 0; } .nav-cta .btn { width: 100%; }
  .shell { grid-template-columns: 1fr; }
  .drawer { position: fixed; left: 0; top: 0; bottom: 0; width: var(--drawer); transform: translateX(-100%); transition: transform .25s; box-shadow: var(--elev-3); }
  .shell.nav-open .drawer, body.nav-open .drawer { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(32,33,36,.5); z-index: 35; }
  .app-bar .nav-toggle { margin-left: 0; } .user-name { display: none; } .app-content { padding: 16px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .form-grid, .kanban, .steps, .footer-grid, .sig-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; } .hero { padding: 48px 0 40px; } .doc { padding: 24px 18px; } .cta-band { padding: 40px 20px; }
  .invoice-head { flex-direction: column; } .invoice-meta { text-align: left; } .cal .day { min-height: 64px; } .cal .ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; }
  .bubble { max-width: 92%; } .auth-card { padding: 28px 20px; }
}
@media print {
  .topbar, .drawer, .site-footer, .no-print, .page-head, .snack, .sign-panel, .scrim { display: none !important; }
  .shell { display: block; background: #fff; } .app-content, .container { padding: 0; max-width: none; }
  .doc { border: 0; padding: 0; max-width: none; } body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Editor de text (contracte, șabloane) ---------- */
.rt { border: 1px solid var(--border); border-radius: var(--radius-m); background: #fff; overflow: hidden; }
.rt:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.rt-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 8px; background: var(--surface-1); border-bottom: 1px solid var(--border); }
.rt-btn { min-width: 34px; height: 34px; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font: 500 .85rem var(--font); cursor: pointer; display: inline-grid; place-items: center; }
.rt-btn:hover { background: var(--surface-2); color: var(--text); }
.rt-btn .mi { font-size: 20px; }
.rt-sep { width: 1px; height: 22px; background: var(--border); margin: 0 6px; }
.rt-vars { margin-left: auto; font: inherit; font-size: .85rem; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--pill); background: #fff; max-width: 220px; }
.rt-area { min-height: 360px; max-height: 70vh; overflow-y: auto; padding: 24px 28px; border: 0 !important; border-radius: 0 !important; max-width: none !important; outline: none; }

/* ---------- Linii factură / ofertă ---------- */
.items-table { width: 100%; border-collapse: collapse; }
.items-table th { text-align: left; font: 500 .75rem var(--font); text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); padding: 8px 6px; }
.items-table td { padding: 4px 6px; vertical-align: middle; }
.items-table input { width: 100%; font: inherit; border: 1px solid var(--border); border-radius: var(--radius-s); padding: 9px 10px; background: #fff; }
.items-table input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.items-table .w-qty { width: 90px; } .items-table .w-price { width: 140px; } .items-table .w-total { width: 120px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .items-table .w-act { width: 44px; }
.items-summary { margin-left: auto; max-width: 320px; margin-top: 12px; }
.items-summary div { display: flex; justify-content: space-between; padding: 4px 0; }
.items-summary .grand { border-top: 2px solid var(--text); font: 500 1.1rem var(--font); margin-top: 4px; padding-top: 8px; }

/* ---------- Diverse module admin ---------- */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 16px; font-size: .92rem; } .kv dt { color: var(--text-2); } .kv dd { margin: 0; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; }
.var-chip { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .78rem; background: var(--surface-2); border-radius: 6px; padding: 3px 8px; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius-m); background: var(--yellow-container); color: var(--on-yellow-container); font-size: .92rem; margin-bottom: 16px; }
.callout.info { background: var(--blue-container); color: var(--on-blue-container); } .callout.ok { background: var(--green-container); color: var(--on-green-container); } .callout.bad { background: var(--red-container); color: var(--on-red-container); }
.callout .mi { flex: none; }
.inline-form { display: inline; }
.tag-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stat-link { color: inherit; text-decoration: none !important; display: block; }
.report-bar { display: grid; grid-template-columns: 160px 1fr 120px; gap: 12px; align-items: center; padding: 6px 0; font-size: .9rem; }
.report-bar .progress { height: 10px; }
.timer-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .items-table thead { display: none; } .items-table tr { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--surface-2); }
  .items-table td { padding: 0; } .items-table td:first-child { grid-column: 1 / -1; } .items-table .w-qty, .items-table .w-price { width: auto; } .items-table .w-total { grid-column: 1 / 3; text-align: left; }
  .kv { grid-template-columns: 1fr; } .report-bar { grid-template-columns: 1fr 90px; } .report-bar .progress { grid-column: 1 / -1; order: 3; }
}
@media print { .rt, .rt-toolbar { display: none !important; } }

/* ---------- Bibliotecă media ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.media-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.media-preview { background: var(--surface-1); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; gap: 8px; align-content: center; padding: 0; }
.media-preview img, .media-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-preview audio { width: 90%; }
.media-preview a { display: block; width: 100%; height: 100%; }
.media-preview .doc-icon { display: grid; place-items: center; text-decoration: none !important; }
.media-preview .mi.big { font-size: 56px; color: var(--text-3); }
.media-meta { padding: 12px 14px 6px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.media-meta .clamp { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-actions { padding: 8px 14px 14px; display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; align-items: flex-start; }
.media-edit { position: relative; }
.media-edit summary { list-style: none; cursor: pointer; } .media-edit summary::-webkit-details-marker { display: none; }
.media-edit[open] form { position: absolute; z-index: 20; left: 0; bottom: calc(100% + 8px); width: 260px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-m); box-shadow: var(--elev-3); padding: 14px; }
.check { display: flex; gap: 8px; align-items: center; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }

/* ---------- Mesagerie admin ---------- */
.msg-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.msg-list { padding: 16px; display: flex; flex-direction: column; gap: 4px; max-height: 76vh; overflow-y: auto; }
.msg-thread { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 12px; border-radius: var(--radius-m); text-decoration: none !important; color: var(--text); }
.msg-thread:hover { background: var(--surface-2); } .msg-thread.active { background: var(--blue-container); }
.msg-thread .clamp { grid-column: 1 / -1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) { .msg-layout { grid-template-columns: minmax(0, 1fr); } .msg-list { max-height: 260px; } }

/* ---------- Servicii, portofoliu, echipă, setări ---------- */
.row-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
.row-card .grow { flex: 1 1 260px; min-width: 0; }
.row-card .icon-circle { flex: none; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 0; }

.icon-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.icon-picker label { cursor: pointer; display: block; position: relative; }
.icon-picker input, .color-picker input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.icon-picker label > span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 1px solid var(--border); border-radius: var(--radius-m); text-align: center; background: var(--surface); transition: background .15s, border-color .15s; }
.icon-picker label > span .mi { color: var(--text-2); }
.icon-picker small { font-size: .75rem; color: var(--text-2); line-height: 1.2; }
.icon-picker label:hover > span { background: var(--surface-1); }
.icon-picker input:checked + span { border-color: var(--blue); background: var(--blue-container); box-shadow: inset 0 0 0 1px var(--blue); }
.icon-picker input:checked + span .mi, .icon-picker input:checked + span small { color: var(--on-blue-container); }
.icon-picker input:focus-visible + span, .color-picker input:focus-visible + .icon-circle { outline: 2px solid var(--blue); outline-offset: 2px; }

.color-picker { display: flex; gap: 16px; flex-wrap: wrap; }
.color-picker label { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; position: relative; }
.color-picker .icon-circle { opacity: .55; transition: opacity .15s, transform .15s; }
.color-picker .icon-circle .mi { opacity: 0; }
.color-picker input:checked + .icon-circle { opacity: 1; transform: scale(1.08); }
.color-picker input:checked + .icon-circle .mi { opacity: 1; }
.color-picker small { font-size: .75rem; color: var(--text-2); }

.thumb-sm { display: block; width: 72px; height: 48px; object-fit: cover; border-radius: var(--radius-s); background: var(--surface-2); }
.thumb-sm.empty { display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.cover-preview { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.cover-preview img { width: 180px; max-height: 120px; object-fit: cover; border-radius: var(--radius-m); border: 1px solid var(--border); }
.logo-preview { display: flex; align-items: center; justify-content: center; min-height: 110px; padding: 16px; margin-bottom: 12px; border: 1px dashed var(--border); border-radius: var(--radius-m); background: var(--surface-1); }
.logo-preview img { max-width: 100%; max-height: 80px; }

.inline-edit summary { cursor: pointer; list-style: none; }
.inline-edit summary::-webkit-details-marker { display: none; }
.inline-edit[open] summary { margin-bottom: 12px; }
.inline-edit form { padding: 16px; background: var(--surface-1); border-radius: var(--radius-m); display: grid; gap: 12px; max-width: 360px; }
.field .check.hint { margin-top: 6px; }

/* ---------- Rapoarte ---------- */
.bars-multi { gap: 8px; height: 200px; }
.bars-multi .col { min-width: 0; }
.bars-multi .trio { display: flex; align-items: flex-end; justify-content: center; gap: 3px; flex: 1; width: 100%; }
.bars-multi .trio .bar { flex: 1; max-width: 18px; border-radius: 4px 4px 0 0; }
.bar.blue { background: var(--g-blue) !important; } .bar.green { background: var(--g-green) !important; } .bar.red { background: var(--g-red) !important; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--text-2); flex-wrap: wrap; }
.legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.legend .dot.blue { background: var(--g-blue); } .legend .dot.green { background: var(--g-green); } .legend .dot.red { background: var(--g-red); }
.nowrap { white-space: nowrap; }
a.link-card { text-decoration: none !important; color: inherit; transition: box-shadow .15s, transform .15s; }
a.link-card:hover { box-shadow: var(--shadow-2, 0 2px 8px rgba(60,64,67,.25)); transform: translateY(-1px); }

/* ---------- Cookie-uri ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l, 20px);
  box-shadow: 0 6px 24px rgba(60,64,67,.28); padding: 16px 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 280px; font-size: .9375rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; }

/* ---------- Installer ---------- */
.install-wrap { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
.install-card { padding: 32px; }
@media (max-width: 600px) { .install-card { padding: 20px; } }

/* Coloanele de grilă nu se lasă împinse de conținutul lor (tabele, URL-uri lungi) */
.split > *, .hero-grid > *, .msg-layout > * { min-width: 0; }
@media (max-width: 640px) { .doc { overflow-x: auto; } .doc .table { min-width: 460px; } }
