:root {
    --bg: #0b0507;
    --bg-2: #12080b;
    --surface: #170b0f;
    --surface-2: #211015;
    --border: #3a1a22;
    --border-soft: rgba(255, 255, 255, .06);
    --text: #f7eef0;
    --muted: #b49aa1;
    --red: #e3123a;
    --red-2: #ff3b5c;
    --wine: #7a0d24;
    --gold: #d9b38c;
    --danger: #ff6b7d;
    --ok: #5ee39a;
    --radius: 18px;
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 540px; }
.muted { color: var(--muted); }

/* Header */
.topbar {
    position: sticky; top: 0; z-index: 10;
    background: rgba(11, 5, 7, .78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 12px; }
.topbar form { margin: 0; }

.logo {
    display: inline-flex; align-items: center; gap: 12px;
    text-decoration: none;
    font-family: var(--serif); font-weight: 600; font-size: 1.55rem; letter-spacing: .01em; line-height: 1;
}
.logo small {
    display: block; margin-top: 4px;
    font-family: var(--sans); font-size: .62rem; font-weight: 600;
    letter-spacing: .32em; text-transform: uppercase; color: var(--red-2);
}
.logo-mark {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: radial-gradient(circle at 35% 35%, var(--red-2), var(--red) 45%, var(--wine) 100%);
    box-shadow: 0 0 0 4px rgba(227, 18, 58, .15), 0 0 24px rgba(227, 18, 58, .55);
}
.logo.small { font-size: 1.15rem; gap: 8px; }
.logo.small .logo-mark { width: 18px; height: 18px; box-shadow: 0 0 12px rgba(227, 18, 58, .5); }

/* Buttons */
.btn {
    display: inline-block;
    border: 0; border-radius: 999px;
    padding: 15px 32px;
    background: linear-gradient(135deg, var(--red-2), var(--red) 55%, #b30d2e);
    color: #fff; font: inherit; font-weight: 600; letter-spacing: .01em;
    text-decoration: none; cursor: pointer;
    box-shadow: 0 10px 30px -10px rgba(227, 18, 58, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(227, 18, 58, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-small { padding: 9px 20px; font-size: .9rem; }
.btn-block { width: 100%; margin-top: 12px; padding: 17px; font-size: 1.02rem; }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--border); box-shadow: none; }
.btn-ghost:hover { box-shadow: none; }

.link { color: var(--muted); text-decoration: none; font-weight: 500; transition: color .2s; }
.link:hover { color: var(--text); }

/* Live dot */
.live-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--red-2);
    box-shadow: 0 0 0 0 rgba(255, 59, 92, .7);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 92, .7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 59, 92, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 92, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .live-dot { animation: none; }
    html { scroll-behavior: auto; }
}

/* Hero */
.hero {
    position: relative;
    padding: 96px 0 88px;
    background:
        radial-gradient(800px 480px at 78% 30%, rgba(227, 18, 58, .22), transparent 65%),
        radial-gradient(700px 420px at 0% 0%, rgba(122, 13, 36, .45), transparent 70%),
        linear-gradient(180deg, var(--bg-2), var(--bg));
    border-bottom: 1px solid var(--border-soft);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 56px; align-items: center; }

.eyebrow, .kicker {
    display: inline-flex; align-items: center; gap: 10px;
    margin: 0 0 22px;
    font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
    color: var(--gold);
}
.eyebrow {
    padding: 8px 16px; border-radius: 999px;
    background: rgba(227, 18, 58, .08); border: 1px solid rgba(227, 18, 58, .3);
    color: #ffb3c0; letter-spacing: .14em;
}
.kicker { margin-bottom: 10px; }

.hero h1 {
    margin: 0 0 22px;
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.01em;
}
.hero h1 em {
    display: block;
    font-style: italic; font-weight: 500;
    background: linear-gradient(120deg, #ff8fa3, var(--red-2) 40%, var(--red));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 540px; margin: 0 0 28px; color: var(--muted); font-size: 1.12rem; }

/* Faux camera screen */
.screen {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 59, 92, .55), rgba(122, 13, 36, .55) 35%, transparent 70%),
        linear-gradient(160deg, #2a0d15, #0d0508);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 40px 100px -30px rgba(227, 18, 58, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.screen img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 25%;
}
.screen-glow {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11, 5, 7, .4), transparent 20%, transparent 62%, rgba(11, 5, 7, .9));
    z-index: 1;
}
.screen-top, .screen-bottom { position: absolute; left: 20px; right: 20px; z-index: 2; display: flex; }
.screen-top { top: 20px; justify-content: space-between; }
.screen-bottom { bottom: 22px; justify-content: center; gap: 12px; }
.screen-bottom span {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
}
.screen-bottom span:nth-child(2) { width: 52px; height: 52px; margin-top: -5px; background: var(--red); border-color: var(--red-2); box-shadow: 0 0 24px rgba(227, 18, 58, .7); }
.rec, .hd {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px);
    font-size: .72rem; font-weight: 600; letter-spacing: .18em;
}
.hd { color: var(--muted); }

/* Showcase: imagine + avantaje */
.showcase { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.perks { display: grid; gap: 20px; }
.perks article {
    position: relative;
    background: linear-gradient(180deg, var(--surface), var(--bg));
    border: 1px solid var(--border-soft); border-radius: var(--radius);
    padding: 32px 28px;
    transition: border-color .25s, transform .25s;
}
.perks article:hover { border-color: rgba(227, 18, 58, .35); transform: translateY(-3px); }
.perks article::before {
    content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--red-2), transparent);
}
.num { display: block; margin-bottom: 18px; font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--red-2); }
.perks h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.15; }
.perks p { margin: 0; color: var(--muted); }

/* Steps */
.steps {
    padding: 88px 0;
    background: linear-gradient(180deg, var(--bg), var(--bg-2) 50%, var(--bg));
    border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
    text-align: center;
}
.section-title { margin: 0 0 48px; font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; }
.steps ol {
    list-style: none; counter-reset: step;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    margin: 0; padding: 0;
}
.steps li { counter-increment: step; padding: 0 12px; }
.steps li::before {
    content: counter(step);
    display: grid; place-items: center;
    width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
    font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
    color: var(--red-2);
    border: 1px solid rgba(227, 18, 58, .45);
    background: radial-gradient(circle, rgba(227, 18, 58, .18), transparent 70%);
}
.steps strong { display: block; margin-bottom: 4px; font-size: 1.08rem; font-weight: 600; }
.steps span { color: var(--muted); }

/* Apply */
#aplica { scroll-margin-top: 88px; }

.card {
    position: relative;
    background: linear-gradient(180deg, rgba(33, 16, 21, .92), rgba(18, 8, 11, .96));
    border: 1px solid var(--border); border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 40px 90px -40px rgba(227, 18, 58, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.card h1, .card h2 { margin: 0 0 6px; font-family: var(--serif); font-weight: 600; font-size: 2.2rem; line-height: 1.1; }
.card > .muted { margin: 0 0 28px; }

.success { text-align: center; }
.success h2 { margin-bottom: 10px; }
.success p { margin: 0; color: var(--muted); }
.check-icon {
    display: grid; place-items: center;
    width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
    font-size: 1.6rem; color: #fff;
    background: linear-gradient(135deg, var(--red-2), var(--red));
    box-shadow: 0 0 40px rgba(227, 18, 58, .6);
}

.field { display: block; margin-bottom: 18px; }
.field span { display: block; margin-bottom: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, .35); color: var(--text);
    border: 1px solid var(--border); border-radius: 12px;
    font: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #6e5259; }
.field input:focus, select:focus { outline: none; border-color: var(--red-2); box-shadow: 0 0 0 4px rgba(227, 18, 58, .18); }

.choice { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.choice-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
    display: grid; place-items: center;
    min-height: 54px; padding: 10px 8px;
    background: rgba(0, 0, 0, .35); color: var(--muted);
    border: 1px solid var(--border); border-radius: 12px;
    font-weight: 600; text-align: center; line-height: 1.2; cursor: pointer;
    transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.choice span:hover { border-color: rgba(255, 59, 92, .6); color: var(--text); }
.choice input:checked + span {
    color: #fff; border-color: var(--red-2);
    background: linear-gradient(135deg, rgba(255, 59, 92, .32), rgba(227, 18, 58, .18));
    box-shadow: 0 0 0 1px var(--red-2), 0 10px 26px -12px rgba(227, 18, 58, .8);
}
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 4px; color: var(--muted); font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--red); }

.secure { margin: 16px 0 0; text-align: center; font-size: .82rem; color: var(--muted); }

.error { display: block; margin-top: 6px; color: var(--danger); font-size: .85rem; }
.alert { padding: 12px 16px; border-radius: 12px; background: rgba(255, 107, 125, .1); border: 1px solid rgba(255, 107, 125, .3); color: var(--danger); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: .85rem; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* Admin */
.admin .card h1 { font-size: 2rem; margin-bottom: 20px; }
.login { padding-top: 15vh; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.filters a {
    padding: 7px 16px; border-radius: 999px; text-decoration: none;
    background: var(--surface); border: 1px solid var(--border); font-size: .9rem;
}
.filters a.active { border-color: var(--red); background: rgba(227, 18, 58, .14); }
.filters b { margin-left: 4px; color: var(--muted); font-weight: 600; }
.filters .export { margin-left: auto; }

.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
th { color: var(--muted); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
tr:last-child td { border-bottom: 0; }
td a { text-decoration: none; }
td a:hover { color: var(--red-2); }
td form { margin: 0; }
select.status { width: auto; padding: 7px 12px; font-size: .9rem; }
.status-nou { border-color: var(--red-2); }
.status-contactat { border-color: var(--gold); }
.status-acceptat { border-color: var(--ok); }
.status-respins { border-color: var(--border); color: var(--muted); }

/* Chat live */
.chat { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-launcher {
    position: relative; display: grid; place-items: center;
    width: 60px; height: 60px; border: 0; border-radius: 50%; cursor: pointer; color: #fff;
    background: linear-gradient(135deg, var(--red-2), var(--red) 55%, #b30d2e);
    box-shadow: 0 14px 34px -10px rgba(227, 18, 58, .85), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.chat-launcher:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.chat-dot { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--ok); border: 2px solid var(--bg); }
.chat-teaser {
    position: relative; max-width: 250px; padding: 14px 34px 14px 16px; cursor: pointer;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px 16px 4px 16px;
    font-size: .92rem; line-height: 1.4;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
}
.chat-teaser-close, .chat-close {
    border: 0; background: none; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.chat-teaser-close { position: absolute; top: 4px; right: 4px; }
.chat-panel {
    display: flex; flex-direction: column;
    width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100dvh - 110px);
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(227, 18, 58, .12);
}
.chat-panel[hidden], .chat-teaser[hidden], .chat-dot[hidden] { display: none; }
.chat-panel header { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border-soft); }
.chat-panel header strong { display: block; font-family: var(--serif); font-size: 1.25rem; line-height: 1.1; }
.chat-status { color: var(--muted); font-size: .8rem; }
.chat-status.is-online { color: var(--ok); }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.chat-msg { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg time { display: block; margin-top: 2px; font-size: .68rem; opacity: .65; }
.chat-msg-admin { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border-soft); border-bottom-left-radius: 4px; }
.chat-msg-visitor { align-self: flex-end; background: linear-gradient(135deg, var(--red-2), var(--red)); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg-system { align-self: center; max-width: 100%; padding: 4px 8px; text-align: center; color: var(--muted); font-size: .82rem; }
.chat-form { display: flex; gap: 8px; margin: 0; padding: 12px; border-top: 1px solid var(--border-soft); background: var(--bg-2); }
.chat-form[hidden] { display: none; }
.chat-form input {
    flex: 1; min-width: 0; padding: 11px 14px;
    background: rgba(0, 0, 0, .35); color: var(--text);
    border: 1px solid var(--border); border-radius: 999px; font: inherit;
}
.chat-form input:focus { outline: none; border-color: var(--red-2); }
.chat-form .btn { flex-shrink: 0; }
.chat-attach { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; color: var(--muted); cursor: pointer; transition: color .2s, background .2s; }
.chat-attach:hover { color: var(--text); background: var(--surface-2); }
.chat-attach.is-busy { opacity: .4; pointer-events: none; }
.chat-image { display: block; }
.chat-image img { display: block; max-width: 100%; width: 220px; max-height: 280px; object-fit: cover; border-radius: 10px; }
.chat-msg:has(.chat-image) { padding: 5px 5px 6px; }
.chat-msg:has(.chat-image) time { padding: 0 8px; }

/* Chat — admin */
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.badge { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 600; text-align: center; }
.badge[hidden] { display: none; }
.chat-presence { display: flex; align-items: center; gap: 10px; margin: 24px 0 16px; color: var(--muted); font-size: .9rem; }
.achat { display: grid; grid-template-columns: 300px 1fr; height: calc(100dvh - 190px); min-height: 380px; margin-bottom: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.achat-list { overflow-y: auto; border-right: 1px solid var(--border-soft); }
.achat-empty { margin: 0; padding: 20px; }
.achat-item { position: relative; display: block; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--border-soft); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.achat-item:hover, .achat-item.active { background: var(--surface-2); }
.achat-item-head { display: flex; justify-content: space-between; gap: 8px; }
.achat-item-head small { color: var(--muted); flex-shrink: 0; }
.achat-item-last { display: block; padding-right: 30px; color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.achat-item .badge { position: absolute; right: 14px; bottom: 14px; }
.achat-on { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.achat-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.achat-thread header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border-soft); }
.achat-back { display: none; }
.achat-typing { margin: 0; padding: 0 16px 10px; color: var(--ok); font-size: .85rem; }
.achat-typing[hidden] { display: none; }
.achat-item-last.is-typing { color: var(--ok); font-style: italic; }
.typing-dots i { display: inline-block; width: 4px; height: 4px; margin-left: 3px; border-radius: 50%; background: currentColor; animation: typing 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .2s; }
.typing-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.topnav { display: flex; align-items: center; gap: 18px; }
.topnav-login { color: var(--muted); font-weight: 500; text-decoration: none; transition: color .2s; }
.topnav-login:hover { color: var(--text); }

/* Utilizatori — admin */
.users { padding-top: 28px; padding-bottom: 40px; }
.user-card { margin-bottom: 20px; padding: 28px; scroll-margin-top: 90px; }
.user-card h2 { font-size: 1.7rem; }
.user-card form { margin: 0; }
.user-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.user-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.user-foot { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.user-foot .field { margin-bottom: 0; }
.user-foot form:last-child { justify-self: end; }
.field .input-action { display: flex; gap: 8px; margin: 0; text-transform: none; letter-spacing: 0; }
.input-action input { flex: 1; min-width: 0; }
.input-action .btn { flex-shrink: 0; }
.field textarea {
    width: 100%; padding: 14px 16px; resize: vertical;
    background: rgba(0, 0, 0, .35); color: var(--text);
    border: 1px solid var(--border); border-radius: 12px; font: inherit; line-height: 1.5;
}
.field textarea:focus { outline: none; border-color: var(--red-2); box-shadow: 0 0 0 4px rgba(227, 18, 58, .18); }
.btn-danger { color: var(--danger); }
.notice { padding: 12px 16px; border-radius: 12px; background: rgba(94, 227, 154, .08); border: 1px solid rgba(94, 227, 154, .3); color: var(--ok); }
.achat-account { margin-left: auto; }
.achat-account[hidden] { display: none; }

/* Contul utilizatorului */
.account-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; padding-top: 28px; padding-bottom: 28px; }
.account-info h2 { margin-top: 24px; font-size: 1.5rem; }
.account-data { margin: 12px 0 0; padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; background: rgba(0, 0, 0, .35); border: 1px solid var(--border); border-radius: 12px; line-height: 1.6; }
.account-chat { min-width: 0; }
.chat-inline { position: static; display: block; }
.chat-inline .chat-launcher, .chat-inline .chat-teaser, .chat-inline .chat-close { display: none; }
.chat-inline .chat-panel { width: 100%; max-width: none; height: calc(100dvh - 130px); min-height: 420px; max-height: none; }

/* Responsive */
@media (max-width: 900px) {
    .hero { padding: 48px 0 64px; }
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero-grid > .card { width: 100%; max-width: 540px; margin: 0 auto; }
    .hero-more { display: none; }
    .lead { margin-bottom: 0; }
    .showcase { grid-template-columns: 1fr; gap: 40px; }
    .screen { max-width: 360px; width: 100%; margin: 0 auto; aspect-ratio: 4 / 3.4; }
    .steps ol { grid-template-columns: 1fr; }
    .account-grid { grid-template-columns: 1fr; }
    .chat-inline .chat-panel { height: 70dvh; }
    .steps ol { gap: 36px; }
}

@media (max-width: 700px) {
    .topbar .wrap { height: 60px; }
    .topnav { gap: 12px; }
    .topnav .btn-small, .topnav-login { white-space: nowrap; }
    .topnav .btn-small { padding: 8px 14px; font-size: .85rem; }
    .topbar .logo { font-size: 1.15rem; gap: 8px; white-space: nowrap; }
    .topbar .logo-mark { width: 24px; height: 24px; }
    .topbar .logo small { font-size: .52rem; letter-spacing: .22em; }
    .chat { right: 12px; bottom: 12px; }
    .user-row { grid-template-columns: 1fr; }
    .user-foot form:last-child { justify-self: start; }
    .user-card { padding: 22px 18px; }
    .input-action { flex-wrap: wrap; }
    .topbar-actions { gap: 4px; }
    .topbar-actions .btn-small { padding: 8px 12px; font-size: .82rem; }
    .chat.is-open { left: 12px; }
    .chat.is-open .chat-launcher { display: none; }
    .chat-panel { width: 100%; max-width: none; height: min(520px, calc(100dvh - 96px)); }
    .achat { grid-template-columns: 1fr; height: calc(100dvh - 170px); }
    .achat-thread, .achat.has-thread .achat-list { display: none; }
    .achat.has-thread .achat-thread { display: flex; }
    .achat-back { display: inline-block; }
    #aplica { scroll-margin-top: 72px; }
    .hero { padding: 22px 0 48px; }
    .hero-grid { gap: 20px; }
    .eyebrow { margin-bottom: 14px; padding: 6px 12px; font-size: .68rem; letter-spacing: .1em; }
    .hero h1 { margin-bottom: 12px; font-size: 2.15rem; }
    .lead { font-size: 1rem; line-height: 1.5; }
    .lead-extra { display: none; }
    .showcase { padding-top: 56px; padding-bottom: 56px; }
    .steps { padding: 64px 0; }
    .card { padding: 24px 18px; border-radius: 20px; }
    .card h2 { font-size: 1.8rem; }
    .card > .muted { margin-bottom: 20px; font-size: .95rem; }
    .field { margin-bottom: 14px; }
    .check { font-size: .9rem; }
    .check input { width: 22px; height: 22px; margin-top: 1px; }
    .logo { font-size: 1.3rem; }
    thead { display: none; }
    tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
    tr:last-child { border-bottom: 0; }
    td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 18px; border: 0; word-break: break-word; }
    td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; }
    .filters .export { margin-left: 0; }
}

/* Email în chat + ștergere conversație */
.chat-email { align-self: stretch; padding: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; font-size: .9rem; }
.chat-email p { margin: 0 0 10px; line-height: 1.4; }
.chat-email form { display: flex; gap: 8px; margin: 0; }
.chat-email input[type=email] { flex: 1; min-width: 0; padding: 10px 12px; background: rgba(0, 0, 0, .35); color: var(--text); border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.chat-email input[type=email]:focus { outline: none; border-color: var(--red-2); }
.chat-email .error { margin: 8px 0 0; }
.chat-email-skip { display: inline-block; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: .82rem; text-decoration: underline; cursor: pointer; }
.achat-contact { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.achat-contact[hidden], #achat-delete[hidden] { display: none; }
.achat-contact a { color: var(--gold); text-decoration: none; }

/* Pornirea chatului (nume obligatoriu) + link de creare cont */
.chat-profile form { flex-direction: column; }
.chat-profile input[type=text], .chat-profile input[type=tel] { flex: none; width: 100%; padding: 10px 12px; background: rgba(0, 0, 0, .35); color: var(--text); border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.chat-profile input[type=text]:focus, .chat-profile input[type=tel]:focus, .chat-profile input[type=email]:focus { outline: none; border-color: var(--red-2); }
.chat-profile input[type=email] { flex: none; width: 100%; }
.chat-profile .btn { width: 100%; }
.chat-profile-hint { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.chat-form input:disabled { opacity: .55; cursor: not-allowed; }
.chat-attach:has(input:disabled) { opacity: .4; pointer-events: none; }
.chat-account { margin-left: auto; margin-right: 4px; color: var(--gold); font-size: .8rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.chat-account:hover { text-decoration: underline; }

/* Vizitatori live — antetul adminului */
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .85rem; white-space: nowrap; cursor: default; }
.live-pill b { color: var(--text); font-weight: 600; }
.live-pill small { color: var(--muted); font-size: .78rem; }
.live-pill .live-dot { background: var(--muted); animation: none; }
.live-pill.is-on { border-color: rgba(94, 227, 154, .45); }
.live-pill.is-on .live-dot { background: var(--ok); animation: pulse-ok 1.8s infinite; }
@keyframes pulse-ok { 0% { box-shadow: 0 0 0 0 rgba(94, 227, 154, .6); } 70% { box-shadow: 0 0 0 8px rgba(94, 227, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 227, 154, 0); } }
@media (max-width: 700px) { .live-pill { padding: 6px 10px; font-size: .8rem; } .live-pill small { display: none; } }

@media (max-width: 700px) {
    .admin .topbar .wrap { height: auto; min-height: 60px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; row-gap: 8px; }
    .admin .topbar .logo { font-size: 1.05rem; }
    .admin .topbar-actions { flex-wrap: wrap; gap: 6px; }
}
