* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%) fixed;
}

a { color: #64ffda; }

h2 { margin: 10px 0 16px; font-size: 22px; }
h3 { margin-bottom: 10px; }

.masthead {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #0b1220;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
    flex: none;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #042f2e;
    background: linear-gradient(160deg, #5eead4, #0d9488);
}
.brand-row { display: flex; align-items: center; gap: 8px; flex: none; min-width: 0; }
.brand-msg {
    position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 9px; background: #134e4a; color: #fff;
    text-decoration: none; font-size: 18px; line-height: 1;
}
.brand-msg.on { background: #115e59; }
.brand-msg.has { background: #b45309; }
.msg-note { margin-bottom: 8px; padding: 8px 10px; font-size: 12.5px; line-height: 1.4; }
.msg-note .msg-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.msg-note small { display: block; color: #0f766e; font-weight: 700; font-size: 11px; margin: 0; }
.msg-note p { margin: 0 0 6px; }
.msg-note .msg-k { margin: 8px 0 2px; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #0f766e; }
.msg-note ul, .msg-note ol { margin: 2px 0 6px; padding-left: 16px; }
.msg-note li { margin: 0; }
.msg-note strong { font-weight: 800; }
.msg-note .msg-thanks { margin-top: 8px; }
.msg-note.is-new { border-color: #b45309; }
.msg-del {
    border: 1px solid #b91c1c; background: transparent; color: #b91c1c;
    border-radius: 999px; font-size: 11px; line-height: 1.2; padding: 3px 8px; cursor: pointer;
}
.site .msg-note { padding: 8px 10px; font-size: 12.5px; }
.site .msg-note strong { color: #5eead4; }
.site .msg-note .msg-k { color: #99f6e4; }
.site .msg-del { color: #fecaca; border-color: #f87171; }
.site .msg-del:hover { background: #7f1d1d; color: #fff; }
.brand-msg .msg-badge {
    position: absolute; top: -5px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 800;
    line-height: 16px; text-align: center;
}
.brand-video {
    flex: none; padding: 5px 10px; border-radius: 999px; background: #0d9488; color: #fff;
    font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.brand-video.on { background: #115e59; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 14px; letter-spacing: 0.2px; }
.brand-text small { font-size: 11px; font-weight: 500; color: #94a3b8; letter-spacing: 0.2px; }

.top-tools { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    font-size: 12px;
    white-space: nowrap;
    color: #cbd5e1;
}
.top-tools .status { margin-left: 0; }
.status .dot { margin-right: 0; }

.lang-switch { display: inline-flex; border: 1px solid rgba(148, 163, 184, 0.4); border-radius: 999px; overflow: hidden; vertical-align: middle; }
.lang-switch a { padding: 3px 8px; font-size: 12px; font-weight: 800; color: #e2e8f0; text-decoration: none; letter-spacing: .4px; }
.lang-switch a.on { background: #0d9488; color: #fff; }
.support-head .lang-switch { border-color: rgba(255, 255, 255, 0.45); }
.support-head .lang-switch a { color: #fff; }

.video-list { display: grid; gap: 14px; }
.video-card { background: #111a2e; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 12px; overflow: hidden; }
.video-card h3 { margin: 0; padding: 10px 12px; font-size: 15px; }
.video-frame { position: relative; padding-top: 56.25%; background: #000; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card .video-open { display: inline-block; margin: 0 12px 12px; }
.home-news { margin: 0 0 14px; }
.home-news article { background: rgba(245, 158, 11, 0.16); border: 1px solid #f59e0b; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.home-news b { display: block; font-size: 18px; color: #fde68a; margin-bottom: 4px; }
.home-news p { margin: 0; }

.creds { display: grid; gap: 8px; margin: 12px 0; }
.cred { background: rgba(0, 0, 0, 0.28); border-radius: 12px; padding: 12px 14px; }
.cred span { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #94a3b8; }
.cred code { display: block; margin-top: 2px; font-size: 34px; font-weight: 800; letter-spacing: 1px; line-height: 1.15; color: #fff; background: none; padding: 0; word-break: break-all; }
.ticket-kind { margin: 4px 0 0; }
@media (max-width: 600px) { .cred code { font-size: 26px; } }

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
    vertical-align: middle;
}

.container {
    flex: 1;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 20px 16px;
}

.back {
    display: inline-block;
    margin-bottom: 8px;
    color: #d6fffe;
    text-decoration: none;
}

.hero { text-align: center; margin: 24px 0 30px; }
.hero h1 { font-size: 26px; margin-bottom: 8px; }
.hero p { color: #d6fffe; }

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 600px) {
    .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero h1 { font-size: 21px; }
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 22px 10px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    background: rgba(0, 137, 123, 0.4);
    border: 2px solid rgba(0, 191, 165, 0.6);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform .2s, background .2s;
}

.tile:hover, .tile:focus {
    transform: translateY(-4px);
    background: rgba(0, 191, 165, 0.45);
}

.tile-icon { font-size: 34px; }
.tile-label { font-weight: 700; font-size: 17px; }
.tile-desc { font-size: 12px; color: #d6fffe; }

.card {
    background: rgba(0, 137, 123, 0.35);
    border: 1px solid rgba(0, 191, 165, 0.6);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.notice { color: #fff; }
.hint { margin-top: 10px; font-size: 12px; color: #d6fffe; }

input[type=text], input[type=password], textarea {
    width: 100%;
    padding: 11px 14px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    color: #222;
    background: rgba(255, 255, 255, 0.95);
}

button, .btn {
    display: inline-block;
    padding: 11px 20px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, #00bfa5, #00897b);
}

button:disabled { opacity: .5; cursor: wait; }
button.danger { background: #c62828; }
.btn { display: block; text-align: center; margin-top: 12px; }

.chat-log {
    height: 55vh;
    min-height: 260px;
    overflow-y: auto;
    padding: 6px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.msg {
    max-width: 85%;
    margin: 6px 0;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    word-wrap: break-word;
}

.msg b { display: block; font-size: 12px; color: #64ffda; margin-bottom: 2px; }
.msg p { white-space: pre-wrap; }
.msg.me { margin-left: auto; background: rgba(0, 191, 165, 0.35); }
.msg.err { background: rgba(198, 40, 40, 0.6); }
.msg.bot { background: rgba(255, 193, 7, 0.18); border-left: 3px solid #ffc107; }
.msg.bot b { color: #ffd54f; }

.chat-form { display: flex; gap: 8px; }

.big-count { font-size: 18px; margin-bottom: 12px; }
.big-count span { font-size: 28px; font-weight: 800; }
.online-list { list-style: none; columns: 2; }
.online-list li { padding: 4px 0; }

.annonce time { display: block; font-size: 12px; color: #d6fffe; margin-bottom: 8px; }

.contact p { padding: 6px 0; }

.form label { display: block; margin-bottom: 12px; }
.form input, .form textarea { margin-top: 4px; }

.admin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.table { width: 100%; border-collapse: collapse; text-align: center; margin-bottom: 12px; }
.table th { background: #00bfa5; padding: 10px; text-transform: uppercase; font-size: 13px; }
.table td { padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }

.footer {
    text-align: center;
    font-size: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.4);
}

/* ===================== Vente de tickets ===================== */

.subnav {
    display: flex;
    flex: 1;
    gap: 2px;
    overflow-x: auto;
    padding: 0;
    background: transparent;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 11px;
    border-radius: 8px;
    background: transparent;
}
.subnav a:hover { background: rgba(148, 163, 184, 0.1); color: #fff; }
.subnav a.active { background: rgba(20, 184, 166, 0.14); color: #5eead4; font-weight: 600; }
.subnav .count { background: #f59e0b; color: #111; border-radius: 8px; padding: 0 6px; font-weight: 700; font-size: 11px; margin-left: 4px; }
.subnav a.nav-bell .count, h2 .count { background: #dc2626; color: #fff; }
.notice-item p { margin: 0 0 8px; }
.notice-item.is-bad { border: 1px solid #fecaca; }
.notice-item.is-warn { border: 1px solid #fde68a; }
.nav-ico { margin-right: 2px; }
.btn-out {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: transparent;
}
.btn-out:hover { background: rgba(148, 163, 184, 0.12); color: #fff; }
.admin-user { gap: 12px; }
.admin-who { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.admin-who b { font-size: 13px; color: #f8fafc; }
.admin-who small { font-size: 11px; color: #94a3b8; }
body.admin .topbar { max-width: none; flex-wrap: nowrap; align-items: center; position: relative; gap: 10px; }
body.admin .nav-toggle {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
body.admin .nav-toggle:hover { background: rgba(148, 163, 184, 0.12); }
body.admin .subnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: min(280px, 88vw);
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 8px;
    overflow: auto;
    white-space: normal;
    background: #0b1220;
    border-right: 1px solid rgba(148, 163, 184, 0.18);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0 0 12px 0;
    box-shadow: 16px 18px 40px rgba(0, 0, 0, 0.45);
    z-index: 30;
    max-height: calc(100vh - 70px);
}
body.admin .subnav.is-open { display: flex; }
body.admin .subnav a { display: block; padding: 12px 14px; font-size: 16px; }

.hero.small { margin: 12px 0 18px; }
.lead { font-size: 17px; margin: 10px 0; }
.price { font-size: 22px; font-weight: 800; color: #ffd54f; }
code { background: rgba(0, 0, 0, 0.3); padding: 1px 6px; border-radius: 4px; font-family: Consolas, 'Courier New', monospace; }
code.big { font-size: 20px; letter-spacing: 2px; padding: 3px 10px; color: #ffd54f; }
.plain { list-style: none; }
.plain li { padding: 3px 0; }
.plain-ol { padding-left: 20px; }
.plain-ol li { padding: 4px 0; }
.muted { opacity: .55; }
.inline { display: inline-block; }
.narrow { max-width: 420px; margin: 40px auto; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; }
.alert-success { background: rgba(0, 200, 83, 0.3); border: 1px solid #00c853; }
.alert-error { background: rgba(198, 40, 40, 0.45); border: 1px solid #ef5350; }
.alert-warning { background: rgba(255, 193, 7, 0.25); border: 1px solid #ffc107; }
.field-error { display: block; color: #ffab91; font-size: 13px; margin: -6px 0 10px; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 14px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.badge-pending { background: #ffc107; color: #222; }
.badge-approved { background: #00c853; color: #fff; }
.badge-delivered { background: #2979ff; color: #fff; }
.badge-rejected { background: #d50000; color: #fff; }
.badge-cancelled { background: #9e9e9e; color: #fff; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.steps li { background: rgba(0, 0, 0, 0.2); border-radius: 12px; padding: 10px; font-size: 13px; text-align: center; }
.steps b { display: block; font-size: 20px; color: #64ffda; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.product {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: rgba(0, 137, 123, 0.4);
    border: 2px solid rgba(0, 191, 165, 0.6);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.product h3 { font-size: 17px; letter-spacing: 1px; }
.product .desc { font-size: 13px; color: #d6fffe; flex: 1; }
.product .btn { margin-top: auto; text-transform: uppercase; letter-spacing: 1px; }

.form label { display: block; margin-bottom: 12px; }
.form input, .form textarea, .form select { margin-top: 4px; }
select, input[type=email], input[type=tel], input[type=number] {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    color: #222;
    background: rgba(255, 255, 255, 0.95);
}
.shot-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    overflow: hidden;
}
.shot-native {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0.02;
    font-size: 16px;
    cursor: pointer;
}
label.check { display: flex; gap: 8px; align-items: flex-start; }
label.check input { width: auto; margin-top: 3px; }
button.big { width: 100%; padding: 15px; font-size: 17px; text-transform: uppercase; letter-spacing: 1px; }
button.ok { background: linear-gradient(135deg, #00c853, #00897b); }
button.ghost, .btn.ghost { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.4); }
.btn.danger { background: #c62828; }
button.small, .btn.small { padding: 6px 12px; font-size: 13px; }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
.dl dt { color: #b2dfdb; }
.dl dd { word-break: break-word; }

.methods { display: grid; gap: 10px; margin: 10px 0; }
.pm {
    display: block;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}
.pm input { width: auto; margin-right: 8px; }
.pm-head { font-weight: 700; font-size: 16px; }
.pm-info { display: none; margin-top: 8px; font-size: 14px; line-height: 1.5; }
.pm:has(input:checked) { border-color: #00bfa5; background: rgba(0, 191, 165, 0.2); }
.pm input:checked ~ .pm-info { display: block; }
.copy { user-select: all; font-size: 17px; color: #ffd54f; }

.order-num { font-size: 16px; margin-bottom: 6px; }
.timeline { list-style: none; margin: 18px 0; border-left: 3px solid rgba(255, 255, 255, 0.2); padding-left: 16px; }
.timeline li { position: relative; padding: 6px 0; color: rgba(255, 255, 255, 0.5); }
.timeline li::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 10px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #3949ab;
    border: 2px solid rgba(255, 255, 255, 0.4);
}
.timeline li.done { color: #fff; }
.timeline li.done::before { background: #00c853; border-color: #00c853; }
.timeline li.current { color: #ffd54f; font-weight: 700; }
.timeline li.current::before { background: #ffc107; border-color: #ffc107; box-shadow: 0 0 8px #ffc107; }
.timeline li.failed { color: #ff8a80; font-weight: 700; }
.timeline li.failed::before { background: #d50000; border-color: #d50000; }

.ticket { border: 2px dashed #ffd54f; background: rgba(0, 0, 0, 0.3); }
.ticket h3 { color: #69f0ae; font-size: 20px; }
.ticket-delivery { max-width: 420px; margin: 16px auto; }
.client-ticket {
    background: #fff; color: #000; border: 2px solid #000; padding: 10px;
    box-shadow: none; border-radius: 0;
}
.client-ticket .vlogo { display: block; width: 100%; height: auto; }
.client-ticket .vcred { width: 100%; border-collapse: collapse; margin-top: 8px; background: #fff; }
.client-ticket .vcred th, .client-ticket .vcred td {
    border: 1px solid #000; text-align: center; color: #000; background: #fff; padding: 6px 4px;
}
.client-ticket .vcred th { font-weight: 600; font-size: 14px; }
.client-ticket .vcred td {
    font-family: "Courier New", monospace; font-weight: 700; font-size: 22px; letter-spacing: .4px;
}
.client-ticket .vmeta { margin-top: 8px; color: #000; font-weight: 700; }
.client-ticket .vmeta div {
    display: flex; justify-content: space-between; gap: 8px;
    border-top: 1px solid #000; padding: 4px 2px; font-size: 15px;
}
.client-ticket .vmeta span { font-weight: 600; }
.client-ticket .vmeta b { font-weight: 800; }
.client-ticket .vbrand-text { text-align: center; font-weight: 800; font-size: 22px; line-height: 1.15; margin-bottom: 6px; color: #000; }
.client-ticket .vnote { text-align: center; font-weight: 700; margin-top: 6px; color: #000; font-size: 14px; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ticket-actions .btn { display: inline-block; margin: 0; }

.order-list { display: grid; gap: 10px; }
.order-item { display: flex; flex-direction: column; gap: 6px; color: #fff; text-decoration: none; margin: 0; }
.order-item:hover { background: rgba(0, 191, 165, 0.35); }

.support-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    font-size: 26px;
    padding: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    z-index: 50;
}
.support-panel {
    position: fixed;
    right: 16px;
    bottom: 86px;
    width: min(380px, calc(100vw - 32px));
    background: #1f2a80;
    border: 1px solid rgba(0, 191, 165, 0.7);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 50;
    overflow: hidden;
}
.support-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #00897b; font-weight: 700; }
.support-head button { padding: 2px 10px; background: transparent; }
.support-box { padding: 10px; }
.support-admin-form { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; }
.support-admin-form label { font-size: 12px; }
.support-admin-form input, .support-admin-form textarea { width: 100%; font-size: 13px; }
.support-admin-form textarea { min-height: 72px; }
.support-admin-form button { margin: 0; }
.support-log { height: 50vh; max-height: 380px; min-height: 200px; }
.support-box.full .support-log { height: 60vh; max-height: none; }

@media (max-width: 600px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
    .dl { grid-template-columns: 1fr; gap: 2px; }
    .dl dt { margin-top: 6px; font-size: 13px; }
}

.inv-list { width: 100%; border-collapse: collapse; font-size: 14px; }
.inv-list th, .inv-list td { padding: 8px 6px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.inv-links { white-space: nowrap; }
.inv-links a { margin-right: 10px; }
.inv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.inv-actions .btn, .inv-actions button { margin: 0; }
.invoice { background: #fff; color: #0f172a; border-radius: 12px; padding: 22px; }
.invoice h3, .invoice p, .invoice td, .invoice th, .invoice small { color: #0f172a; }
.inv-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.inv-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #0f766e; font-weight: 700; }
.inv-brand { font-size: 26px; font-weight: 800; color: #0f172a; }
.inv-num { font-size: 18px; font-weight: 700; margin: 4px 0; }
.inv-stamp { font-size: 22px; font-weight: 800; text-align: right; }
.inv-stamp.paid { color: #047857; }
.inv-stamp.out { color: #b45309; }
.inv-stamp.unpaid { color: #b91c1c; }
.inv-stamp.partial { color: #b45309; }
.inv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.inv-box { border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; }
.inv-box b { display: block; margin-bottom: 4px; }
.inv-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.inv-table th { text-align: left; background: #0f766e; color: #fff !important; padding: 8px; }
.inv-table td { padding: 8px; border-bottom: 1px solid #e2e8f0; }
.inv-sum { margin: 14px 0 0 auto; border-collapse: collapse; }
.inv-sum td { padding: 4px 0 4px 16px; }
.inv-sum td:first-child { color: #475569; }
@media (max-width: 600px) {
    .inv-grid, .inv-top { display: block; }
    .inv-stamp { text-align: left; margin-top: 8px; }
}
.ticket-suggest { list-style: none; margin: 6px 0 0; padding: 0; max-height: 280px; overflow: auto; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 10px; background: rgba(0, 0, 0, 0.28); }
.ticket-suggest button { display: block; width: 100%; text-align: left; background: transparent; color: #fff; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); padding: 10px 12px; cursor: pointer; font: inherit; }
.ticket-suggest button:hover, .ticket-suggest button:focus { background: rgba(0, 191, 165, 0.35); }
.ticket-suggest small { display: block; margin-top: 2px; color: #d6fffe; font-weight: 600; }
.ticket-picked { background: rgba(0, 0, 0, 0.22); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.pay-modes { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 12px; }
@media print {
    body { background: #fff !important; color: #000; }
    .masthead, .topbar, .subnav, .footer, .support-fab, .support-panel, .no-print, .alert, .order > .card:first-child, h2 { display: none !important; }
    .invoice, .invoice h3 { display: block !important; }
    .invoice { box-shadow: none; }
    .ticket { border: 2px dashed #000; color: #000; box-shadow: none; }
    .ticket h3, .dl dt, code.big, .cred, .cred code, .cred span { color: #000; background: none; }
    .cred code { font-size: 28px; }
    .client-ticket, .client-ticket * { color: #000 !important; background: #fff !important; box-shadow: none !important; }
    .client-ticket { border: 2px solid #000 !important; }
    .client-ticket .vlogo { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ===================== Administration ===================== */

.daily-banners .alert { margin-bottom: 8px; }
.daily-banners .alert a { color: #fff; font-weight: 700; margin-left: 6px; }
@media print {
    .caisse-sheet, .caisse-sheet .card, .caisse-sheet .stat, .caisse-sheet .admin-table { background: #fff !important; color: #000 !important; border-color: #000; box-shadow: none; }
    .caisse-sheet .stat-value, .caisse-sheet a, .caisse-sheet .hint { color: #000 !important; }
    .caisse-sheet .admin-table th { background: #eee !important; color: #000; }
    .caisse-sheet h2 { display: block !important; color: #000 !important; }
}
.dep-forms { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(280px, 2fr); gap: 12px; align-items: start; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.cat-pills form { margin: 0; }
@media (max-width: 700px) {
    .dep-forms { grid-template-columns: 1fr; }
}
.admin .masthead { background: #0b1220; }
.admin .brand-mark { background: linear-gradient(160deg, #67e8f9, #0e7490); color: #082f49; }
.container.wide { max-width: 1280px; }
.admin .tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.admin .tabs a { color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 8px; background: rgba(0, 0, 0, 0.25); font-size: 14px; }
.admin .tabs a.active { background: #00bfa5; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tabs a { color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 8px; background: rgba(0, 0, 0, 0.25); font-size: 14px; }
.tabs a.active { background: #00bfa5; }
.search { display: flex; gap: 8px; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; margin-bottom: 16px; -webkit-overflow-scrolling: touch; border-radius: 10px; }
.admin-table { text-align: left; font-size: 14px; background: rgba(0, 0, 0, 0.2); border-radius: 10px; }
.admin-table th { background: #00897b; text-align: left; white-space: nowrap; }
.admin-table td { vertical-align: top; }
.admin-table .actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.admin-table .actions form { display: inline; margin: 0; }
.admin-table th.col-act { text-align: right; }
button.icon-del {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px;
    background: #b91c1c; font-size: 16px; line-height: 1; cursor: pointer;
}
button.icon-del:hover { background: #991b1b; }
a.icon-edit {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; padding: 0; border-radius: 8px;
    background: #0f766e; color: #fff; text-decoration: none; font-size: 16px; line-height: 1;
}
a.icon-edit:hover { background: #115e59; }
a.icon-pay {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; padding: 0; margin: 0; border-radius: 8px;
    background: #16a34a; color: #fff; text-decoration: none; font-size: 16px; line-height: 1;
}
a.icon-pay:hover { background: #15803d; }
.sales-table td.actions { flex-wrap: nowrap; white-space: nowrap; justify-content: flex-end; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-2 > div > .card:last-child { margin-bottom: 16px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
.zoom { overflow: auto; max-height: 75vh; border-radius: 10px; background: #000; cursor: zoom-in; }
.zoom img { display: block; width: 100%; }
.zoom.zoomed { cursor: zoom-out; }
.zoom.zoomed img { width: 250%; max-width: none; }
.actions-card form { margin-bottom: 14px; }
.reject-form { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.admin-table input[type=password] { width: 170px; padding: 6px 10px; }
.admin-table select { width: auto; padding: 5px 8px; }

textarea.mono { width: 100%; font-family: Consolas, monospace; font-size: 13px; word-break: break-all; }
pre.mono { white-space: pre-wrap; max-height: 260px; overflow: auto; font-family: Consolas, monospace; font-size: 12px; background: rgba(0,0,0,.25); padding: 8px; border-radius: 6px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form input[type=text] { flex: 1; min-width: 200px; width: auto; }
.inline-form select { width: auto; }

/* ===================== Finances ===================== */

[hidden] { display: none !important; }
body.admin .tabs.fin-tabs {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; gap: 6px;
    max-width: 100%; margin: 0 0 14px; padding: 6px;
    background: rgba(15, 23, 42, 0.55); border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 12px;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
body.admin .tabs.fin-tabs a {
    flex: 0 0 auto; white-space: nowrap; margin: 0;
    padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
    background: transparent; border: 1px solid transparent; color: #e2e8f0;
}
body.admin .tabs.fin-tabs a.active { background: #0f766e; border-color: #14b8a6; color: #fff; }
.fin-tabs .fin-new, .subnav a.nav-new { background: linear-gradient(135deg, #00c853, #00897b); color: #fff; font-weight: bold; border-color: transparent; }
body.admin .fin-scroll {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; max-width: 100%;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
body.admin .fin-scroll a { flex: 0 0 auto; white-space: nowrap; }
.fin-limit { font-size: 13px; }
.fin-limit select { width: auto; min-width: 72px; }
.fin-shown { margin: 0 0 8px; font-size: 13px; color: #d6fffe; }
.router-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.router-amt {
    display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px;
    text-decoration: none; color: inherit; background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(148, 163, 184, 0.22);
}
.router-amt span { font-size: 13px; font-weight: 700; }
.router-amt b { font-size: 20px; color: #80d8ff; }
.router-amt small { font-size: 12px; opacity: .8; }
.small-tabs a { font-size: 13px; padding: 4px 10px; }
.fin-h { margin: 18px 0 8px; font-size: 16px; color: #d6fffe; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stats.compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px;
    background: rgba(0, 0, 0, 0.28); border-left: 5px solid rgba(255, 255, 255, 0.35); }
.stat-label { font-size: 13px; opacity: .85; }
.stat-value { font-size: 22px; white-space: nowrap; }
.stats.compact .stat { padding: 10px 12px; }
.stats.compact .stat-value { font-size: 18px; }
.stat small { font-size: 12px; opacity: .75; }
.stat.green { border-left-color: #00e676; }
.stat.blue { border-left-color: #40c4ff; }
.stat.orange { border-left-color: #ffab40; }
.stat.red { border-left-color: #ff5252; }
.stat.purple { border-left-color: #b388ff; }
.stat.green .stat-value { color: #69f0ae; }
.stat.blue .stat-value { color: #80d8ff; }
.stat.orange .stat-value { color: #ffd180; }
.stat.red .stat-value { color: #ff8a80; }
.stat.purple .stat-value { color: #d1c4e9; }
.pay { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: bold; white-space: nowrap; color: #fff; }
.pay-paid { background: #2e7d32; }
.pay-partial { background: #ef6c00; }
.pay-unpaid { background: #c62828; }
.pay-cancelled { background: #616161; }
.neg { color: #ff8a80; }
.pos { color: #b9f6ca; }
.fin-search { display: flex; flex-flow: row nowrap; align-items: center; gap: 6px; }
form.card.fin-search { padding: 6px 8px; margin-bottom: 8px; border-radius: 10px; }
.fin-search input[type=search] {
    flex: 1 1 auto; min-width: 0; width: auto; height: 34px; margin: 0; padding: 4px 10px;
    font-size: 14px; border-radius: 8px; box-sizing: border-box;
}
.fin-search button {
    flex: 0 0 auto; width: auto; height: 34px; margin: 0; padding: 4px 12px;
    font-size: 14px; line-height: 1.2; white-space: nowrap; box-sizing: border-box;
}
.fin-length {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap;
    margin: 0; padding: 6px 8px; background: #f8fafc; color: #0f172a;
    border-radius: 10px 10px 0 0; font-size: 14px; overflow-x: auto;
}
.fin-length label { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; margin: 0; font-weight: 500; white-space: nowrap; }
.fin-length > select { flex: 0 0 auto; width: auto; max-width: none; }
.fin-length select { width: auto; min-width: 4.5rem; height: 32px; margin: 0; padding: 2px 8px; font-size: 13px; box-sizing: border-box; }
.fin-length-search { display: flex; flex: 1 1 auto; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; margin-left: auto; }
.fin-length-search input[type=search] {
    flex: 1 1 140px; width: auto; max-width: 260px; min-width: 0; height: 32px; margin: 0; padding: 4px 8px;
    font-size: 13px; border: 1px solid #cbd5e1; border-radius: 8px; box-sizing: border-box;
}
.fin-length-search button {
    flex: 0 0 auto; width: auto; height: 32px; margin: 0; padding: 4px 10px;
    font-size: 13px; line-height: 1.2; white-space: nowrap; box-sizing: border-box;
}
.sales-board { border-radius: 0 0 10px 10px; margin-top: 0; }
.sales-table { border-radius: 0 0 10px 10px; }
.sales-table thead th { background: #1fa855; color: #fff; font-weight: 700; }
.mono { font-family: Consolas, monospace; letter-spacing: .5px; }
.fin-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
form.card.fin-filters.fin-line {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; max-width: 100%;
    align-items: center; gap: 6px; padding: 4px 8px; margin-bottom: 8px; border-radius: 10px;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.fin-filters.fin-line > * { flex: 0 0 auto; white-space: nowrap; }
.fin-filters.fin-line select,
.fin-filters.fin-line input[type=date],
.fin-filters.fin-line input[type=number] {
    width: auto; max-width: none; flex: 0 0 auto; height: 32px; margin: 0; padding: 2px 8px;
    font-size: 13px; box-sizing: border-box;
}
.fin-actions { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; margin: 0; }
.fin-actions button, .fin-actions .btn {
    display: inline-flex; align-items: center; width: auto; height: 32px; margin: 0; padding: 2px 10px;
    font-size: 13px; line-height: 1.2; white-space: nowrap; box-sizing: border-box;
}
.fin-filters input[type=text] { flex: 1 1 260px; width: auto; margin: 0; }
.fin-filters input, .fin-filters select { width: auto; margin: 0; }
.fin-filters input[type=number] { width: 130px; }
.fin-filters label { display: flex; align-items: center; gap: 6px; margin: 0; }
.fin-filters label.check { align-items: center; }
.fin-filters .btn, .fin-filters button { display: inline-block; margin: 0; }
.fin-filters .tabs { width: 100%; margin: 0; }
.admin-table .btn.small { display: inline-block; margin: 0; white-space: nowrap; }
.btn.ok { background: linear-gradient(135deg, #00c853, #00897b); display: inline-block; }
.admin-table input.mini { width: 120px; padding: 5px 8px; margin: 0; }
.admin-table tfoot th { background: rgba(0, 0, 0, 0.35); }
.fin-total { font-size: 17px; margin: 4px 0 12px; }
.big-input { font-size: 22px; font-weight: bold; }
.quick-amounts { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.fin-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.fin-chart { width: 100%; height: 260px; display: block; }
.fin-chart rect.rev { fill: #40c4ff; }
.fin-chart rect.col { fill: #00e676; }
.fin-chart .grid { stroke: rgba(255, 255, 255, 0.15); stroke-width: 1; }
.fin-chart text { fill: #e0f7fa; font-size: 11px; }
.fin-legend { font-size: 13px; }
.fin-legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin: 0 4px 0 12px; }
.fin-legend .lg.rev { background: #40c4ff; }
.fin-legend .lg.col { background: #00e676; }
.cust-pick { position: relative; }
.cust-pick-q { width: 100%; }
.cust-pick-list {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
    max-height: 240px; overflow: auto; margin-top: 4px; padding: 4px;
    background: #0f172a; border: 1px solid rgba(148, 163, 184, 0.3); border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.cust-pick-item {
    display: block; width: 100%; text-align: left; margin: 0; padding: 8px 10px;
    background: transparent; font-weight: 500;
}
.cust-pick-item:hover { background: rgba(20, 184, 166, 0.2); }
.cust-pick-sel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 0; font-size: 13px; }
.cust-pick-sel button { margin: 0; }
.stats.fin-main { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.fin-main .stat-value { font-size: 28px; }
.fin-split { list-style: none; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.fin-split li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 14px; }
.fin-split span { opacity: .85; }
.fin-more { margin-top: auto; padding-top: 8px; font-size: 13px; }
.fin-details summary { cursor: pointer; font-weight: bold; margin-bottom: 4px; }
.fin-details[open] summary { margin-bottom: 12px; }
@media (max-width: 700px) {
    .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat { padding: 10px; }
    .stat-value { font-size: 17px; white-space: normal; }
    .fin-tabs .fin-new { margin-left: 8px; }
    .fin-chart { height: 200px; }
    .fin-main .stat-value { font-size: 20px; }
    .fin-search { flex-direction: row; flex-wrap: nowrap; }
    .fin-search button { width: auto; }
    .fin-filters input[type=text],
    .fin-filters input[type=search],
    .fin-filters input[type=date],
    .fin-filters input[type=number],
    .fin-filters select { flex: 1 1 140px; min-width: 0; max-width: 100%; }
    .fin-filters.fin-line input[type=text],
    .fin-filters.fin-line input[type=search],
    .fin-filters.fin-line input[type=date],
    .fin-filters.fin-line input[type=number],
    .fin-filters.fin-line select,
    .fin-filters.fin-line > * { flex: 0 0 auto; max-width: none; min-width: 0; }
    .router-board { grid-template-columns: 1fr; }
    .router-amt b { font-size: 18px; }
    body.admin .admin-table { font-size: 12px; }
    body.admin .admin-table th,
    body.admin .admin-table td { padding: 6px 8px; }
}
/* Espace client */
.cl-hello h2 { margin: 0 0 6px; }
.cl-ticket { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #d6fffe; }
.cl-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: bold; color: #fff; }
.cl-badge.cl-ok { background: #2e7d32; }
.cl-badge.cl-info { background: #1565c0; }
.cl-badge.cl-bad { background: #c62828; }
.cl-big { font-size: 30px; font-weight: 800; margin: 4px 0 10px; }
.cl-big small { font-size: 17px; font-weight: 600; color: #d6fffe; }
.cl-bar { height: 16px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); overflow: hidden; }
.cl-bar span { display: block; height: 100%; border-radius: 10px; transition: width .6s; }
.cl-bar .cl-ok { background: linear-gradient(90deg, #00e676, #00bfa5); }
.cl-bar .cl-warn { background: linear-gradient(90deg, #ffd740, #ff9100); }
.cl-bar .cl-bad { background: linear-gradient(90deg, #ff5252, #c62828); }
.cl-bar-legend { margin: 8px 0 4px; color: #d6fffe; }
.cl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.cl-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cl-grid > div { background: rgba(0, 0, 0, 0.2); border-radius: 10px; padding: 10px; }
.cl-grid span { display: block; font-size: 12px; color: #d6fffe; }
.cl-grid b { font-size: 17px; }
.cl-small { font-size: 13px; margin-top: 10px; }
.cl-filters { display: flex; flex-wrap: nowrap; gap: 6px; margin-bottom: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cl-filters a { flex: 0 0 auto; white-space: nowrap; }
.cl-today td { background: rgba(0, 191, 165, 0.18); }
.cl-filters a { padding: 5px 12px; border-radius: 20px; font-size: 13px; color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3); }
.cl-filters a.active { background: #00bfa5; border-color: #00bfa5; font-weight: bold; }
.cl-chart { display: flex; align-items: flex-end; gap: 2px; height: 160px; padding: 6px; border-radius: 10px; background: rgba(0, 0, 0, 0.2); margin-bottom: 6px; }
.cl-col { flex: 1; display: flex; flex-direction: column-reverse; height: 100%; min-width: 3px; }
.cl-col span { display: block; width: 100%; }
.cl-dl { background: #40c4ff; }
.cl-ul { background: #00e676; }
.cl-col .cl-dl { border-radius: 3px 3px 0 0; }
.cl-chart-legend { font-size: 13px; margin-bottom: 12px; }
.cl-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin: 0 4px 0 10px; }
.cl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cl-table th, .cl-table td { padding: 8px; text-align: right; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.cl-table th:first-child, .cl-table td:first-child { text-align: left; }
.cl-table thead th, .cl-table tfoot th { background: rgba(0, 0, 0, 0.25); }
.cl-refresh { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cl-refresh button { margin: 0; }
.cl-logout { margin-left: auto; }
@media (max-width: 600px) {
    .cl-grid-3 { grid-template-columns: 1fr 1fr; }
    .cl-grid-3 > div:last-child { grid-column: 1 / -1; }
    .cl-big { font-size: 25px; }
    .cl-chart { height: 130px; }
    .cl-logout { margin-left: 0; }
}
@media print {
    .masthead, .subnav, .fin-tabs, .no-print, .js-print { display: none !important; }
    .fin-report .stat, .fin-report .card, .fin-report .admin-table { background: #fff !important; color: #000; border-color: #000; }
    .fin-report .stat-value, .fin-report .neg, .fin-report .pos, .fin-report .fin-h, .fin-report a { color: #000 !important; }
    .fin-report .admin-table th { background: #ddd !important; color: #000; }
    .fin-report .pay { color: #000; background: none; border: 1px solid #000; }
}

/* ===================== Thème du site public (body.site) : sobre, compact, responsive ===================== */
@media screen {
    .site {
        font-size: 14.5px;
        line-height: 1.5;
        color: #e2e8f0;
        background: #0b1220 radial-gradient(1100px 480px at 50% -180px, rgba(20, 184, 166, 0.16), transparent) no-repeat;
    }
    .site a { color: #2dd4bf; }
    .site h2 { font-size: 19px; margin: 6px 0 12px; }
    .site h3 { font-size: 16px; }

    .site .masthead { background: rgba(11, 18, 32, 0.92); backdrop-filter: blur(14px); }
    .site .status {
        padding: 5px 10px 5px 8px;
        border-radius: 999px;
        background: rgba(34, 197, 94, 0.1);
        border: 1px solid rgba(34, 197, 94, 0.28);
        color: #86efac;
        font-weight: 600;
    }

    .site .container { max-width: 1040px; padding: 18px 16px 28px; }
    .site .card { background: #111a2e; border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 12px; padding: 16px; margin-bottom: 12px; box-shadow: none; }
    .site .muted { opacity: 1; color: #94a3b8; }
    .site .hint { color: #94a3b8; }

    .site .hero { text-align: left; margin: 6px 0 14px; }
    .site .hero h1 { font-size: 24px; margin-bottom: 4px; }
    .site .hero p { color: #94a3b8; max-width: 640px; }
    .site .hero.small { margin: 4px 0 12px; }
    .site .section-title { margin: 22px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #94a3b8; }

    .site .steps { gap: 8px; margin-bottom: 16px; }
    .site .steps li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; text-align: left; font-size: 12.5px; color: #cbd5e1;
        background: #111a2e; border: 1px solid rgba(148, 163, 184, 0.12); border-radius: 10px; }
    .site .steps b { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; font-size: 12px;
        border-radius: 50%; color: #0b1220; background: #2dd4bf; }
    .site .steps.steps-mini { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
    .site .steps.steps-mini li { font-size: 11px; line-height: 1.25; padding: 6px 8px; }
    .site .steps.steps-mini b { width: 16px; height: 16px; font-size: 10px; }

    .site .products { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
    .site .product { gap: 6px; padding: 16px; background: #111a2e; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 12px; box-shadow: none;
        transition: border-color .15s, transform .15s; }
    .site .product:hover { border-color: #14b8a6; transform: translateY(-2px); }
    .site .product h3 { font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #cbd5e1; }
    .site .product .price { font-size: 26px; font-weight: 800; color: #f8fafc; line-height: 1.2; }
    .site .features { list-style: none; margin: 4px 0; font-size: 13px; color: #94a3b8; }
    .site .features li { padding: 2px 0 2px 20px; position: relative; }
    .site .features li::before { content: '✓'; position: absolute; left: 0; color: #2dd4bf; font-weight: 700; }
    .site .features b { color: #e2e8f0; font-weight: 600; }
    .site .product .desc { font-size: 12.5px; color: #94a3b8; }
    .site .product .btn { margin-top: auto; padding: 10px; font-size: 14px; letter-spacing: .5px; }

    .site .quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
    .site .quick a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; text-decoration: none; color: #e2e8f0;
        background: #111a2e; border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 12px; }
    .site .quick a:hover { border-color: #14b8a6; }
    .site .quick b { font-size: 14px; }
    .site .quick span { font-size: 12px; color: #94a3b8; }

    .site .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
    .site .tile { flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 4px 10px; padding: 12px 14px;
        text-align: left; background: #111a2e; border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 12px; box-shadow: none; }
    .site .tile:hover, .site .tile:focus { transform: none; background: #15213a; border-color: #14b8a6; }
    .site .tile-icon { font-size: 20px; }
    .site .tile-label { font-size: 14px; }
    .site .tile-desc { flex-basis: 100%; font-size: 12px; color: #94a3b8; }

    .site button, .site .btn { padding: 10px 18px; border-radius: 8px; font-weight: 600; color: #fff; background: #0d9488; transition: background .15s; }
    .site button:hover, .site .btn:hover { background: #0f766e; }
    .site button.ok, .site .btn.ok { background: #16a34a; }
    .site button.danger, .site .btn.danger { background: #dc2626; }
    .site button.ghost, .site .btn.ghost { background: transparent; border: 1px solid rgba(148, 163, 184, 0.35); color: #e2e8f0; }
    .site button.ghost:hover, .site .btn.ghost:hover { background: rgba(148, 163, 184, 0.1); }
    .site button.big { padding: 13px; font-size: 15px; }

    .site input[type=text], .site input[type=password], .site input[type=email], .site input[type=tel], .site input[type=number],
    .site textarea, .site select {
        padding: 10px 12px; color: #f1f5f9; background: #0b1220; border: 1px solid rgba(148, 163, 184, 0.28); border-radius: 8px;
    }
    .site input::placeholder, .site textarea::placeholder { color: #64748b; }
    .site input:focus, .site textarea:focus, .site select:focus { outline: none; border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2); }
    .site select option { color: #f1f5f9; background: #0f172a; }
    .site input[type=file] { color: #111; background: #fff; border: 0; border-radius: 8px; padding: 0; }

    .site .pm { background: #0b1220; border: 1px solid rgba(148, 163, 184, 0.2); }
    .site .pm:has(input:checked) { border-color: #14b8a6; background: rgba(20, 184, 166, 0.1); }
    .site .table th { background: #0f766e; }
    .site .dl dt { color: #94a3b8; }
    .site .price { color: #fbbf24; }
    .site .product .price { color: #f8fafc; }
    .site .msg { background: #15213a; }
    .site .msg.me { background: rgba(20, 184, 166, 0.22); }
    .site .chat-log { background: #0b1220; border: 1px solid rgba(148, 163, 184, 0.12); }
    .site .support-panel { background: #0f172a; border-color: rgba(20, 184, 166, 0.5); }
    .site .support-head { background: #0f766e; }
    .site .support-fab { background: #0d9488; }
    .site .footer { color: #64748b; background: #0b1220; border-top: 1px solid rgba(148, 163, 184, 0.12); }

    .site .pay-box { border-color: #14b8a6; }
    .site .pay-box.paid { border-color: #22c55e; }
    .site .pay-ref { text-align: center; margin: 12px 0; }
    .site .pay-ref .big { font-size: 28px; letter-spacing: 3px; padding: 8px 16px; }
    .site .pay-steps { padding-left: 22px; margin: 10px 0 14px; }
    .site .pay-steps li { padding: 4px 0; }
    .site .pay-ussd { margin: 8px 0; }
    .dial-box { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 10px; }
    .dial-code { display: block; font-size: 18px; font-weight: 800; letter-spacing: .3px; color: #f8fafc; background: #0f172a; padding: 8px 10px; border-radius: 8px; word-break: break-all; }
    .dial-desc { font-size: 16px; font-weight: 800; color: #fde68a; }
    .pm .composer, .pay-box .composer, .composer { display: inline-block; margin-top: 4px; }
    .site .pay-confirm { margin-top: 14px; }
    .site .pay-confirm .btn, .site .pay-confirm button { width: 100%; }
}
@media screen and (max-width: 980px) {
    .topbar { flex-wrap: wrap; padding: 10px 12px 8px; gap: 8px 12px; }
    .subnav { order: 3; flex-basis: 100%; padding: 4px 0 2px; border-top: 1px solid rgba(148, 163, 184, 0.1); }
    .brand-text strong { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media screen and (max-width: 760px) {
    .site .quick { grid-template-columns: 1fr; }
    .nav-ico { display: none; }
}
@media screen and (max-width: 600px) {
    .site .container { padding: 12px 10px 24px; }
    .site .hero h1 { font-size: 20px; }
    .site .steps { grid-template-columns: 1fr 1fr; gap: 6px; }
    .site .steps.steps-mini {
        display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
        -webkit-overflow-scrolling: touch; scrollbar-width: thin; gap: 6px;
    }
    .site .steps li { font-size: 12px; padding: 7px 8px; }
    .site .steps.steps-mini li { flex: 0 0 auto; white-space: nowrap; font-size: 11px; padding: 5px 8px; }
    .site .products { grid-template-columns: 1fr 1fr; gap: 8px; }
    .site .product { padding: 12px; }
    .site .product .price { font-size: 20px; }
    .site .features { font-size: 12px; }
    .site .product .btn { padding: 9px 6px; font-size: 13px; }
    .site .grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .site .tile { padding: 10px; }
    .site .tile-desc { display: none; }
}
.site .promo-banner { display: grid; gap: 8px; margin-bottom: 14px; }
.site .promo-banner a { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #134e4a; color: #ecfdf5; text-decoration: none; }
.site .promo-banner span { opacity: .9; }
.site .promo-tag { color: #5eead4; font-size: 13px; font-weight: 700; margin: 0; }
.site .price .old { text-decoration: line-through; opacity: .55; font-size: .72em; font-weight: 600; margin-right: 6px; }
.poster { text-align: center; }
.poster img { width: 220px; height: 220px; }
.poster .big-url { font-size: 22px; font-weight: 800; word-break: break-all; }
.pay-queue { border: 2px solid #cbd5e1; border-radius: 12px; padding: 16px; margin: 0 0 12px; background: #fff; color: #0f172a; }
.pay-queue.ready { border-color: #0f766e; background: #f0fdfa; }
.pay-queue .pq-name { margin: 0 0 8px; font-size: 28px; font-weight: 800; line-height: 1.15; color: #0f172a; }
.pay-queue .pq-phone { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin: 0 0 8px; }
.pay-queue .pq-phone span { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #0f766e; }
.pay-queue .pq-phone b { font-size: 32px; font-weight: 800; letter-spacing: 1px; color: #0f172a; }
.pay-queue .pq-phone.sub b { font-size: 22px; }
.pay-queue .pq-meta { margin: 0 0 10px; font-size: 16px; color: #334155; }
.pay-queue .pq-meta b { color: #0f172a; }
.pay-queue .pq-ref { margin: 8px 0 12px; }
.pay-queue .pq-ref span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #0f766e; margin-bottom: 4px; }
.pay-queue .pq-ref code { font-size: 36px; font-weight: 800; letter-spacing: 2px; color: #0f172a; background: #fff; padding: 6px 12px; }
.pay-queue .hint { color: #334155; font-size: 14px; }
.net-headline { font-size: 20px; margin: 0 0 8px; }
.net-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 18px; }
.net-card .net-stat { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; }
.net-card .zero { color: #fca5a5; }
.net-card.is-silent { outline: 2px solid #ef4444; }
.pay-queue .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pay-queue .actions form { margin: 0; }
.pay-queue .actions .ok { font-size: 18px; padding: 10px 16px; }
.pay-queue.buyer { padding: 6px 8px; border-radius: 8px; border-width: 1px; margin: 0 0 6px; font-size: 9px; line-height: 1.25; }
.pay-queue.buyer .pq-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 8px; margin: 0 0 4px; }
.pay-queue.buyer .pq-facts div { display: flex; gap: 4px; min-width: 0; align-items: baseline; }
.pay-queue.buyer .pq-facts .wide { grid-column: 1 / -1; }
.pay-queue.buyer .pq-facts dt { margin: 0; font-size: 9px; font-weight: 700; color: #0f766e; white-space: nowrap; }
.pay-queue.buyer .pq-facts dt::after { content: ' :'; }
.pay-queue.buyer .pq-facts dd { margin: 0; font-size: 9px; font-weight: 700; color: #0f172a; overflow-wrap: anywhere; }
.pay-queue.buyer .pq-facts code { font-size: 9px; font-weight: 800; letter-spacing: .4px; background: #fff; padding: 0 3px; color: #0f172a; }
.pay-queue.buyer .cap dd { display: flex; align-items: center; gap: 6px; }
.pay-queue.buyer .cap img { width: 22px; height: 22px; object-fit: cover; border-radius: 3px; background: #fff; }
.pay-queue.buyer .actions { gap: 4px; }
.pay-queue.buyer .actions .btn,
.pay-queue.buyer .actions button { display: inline-block; font-size: 9px; line-height: 1.2; padding: 3px 6px; margin: 0; }
.pay-queue.buyer .actions button.icon-del { width: 22px; height: 22px; padding: 0; font-size: 9px; }
.cust-similar { margin: 6px 0; }
.cust-pick-item.is-similar { font-weight: 700; }
body.admin .ring-arm { flex: 0 0 auto; height: 34px; margin: 0 8px 0 0; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 700; background: #0f766e; color: #fff; }
body.admin .ring-arm.is-on { background: #166534; }
body.admin .ring-arm.is-wait { background: #b45309; animation: ring-pulse 1s ease-in-out infinite; }
@keyframes ring-pulse { 50% { filter: brightness(1.35); } }
.ring-rec { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.ring-rec audio { width: min(100%, 280px); }
.msg-thread { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; max-height: 420px; overflow-y: auto; }
.msg-bubble { max-width: 85%; padding: 8px 12px; border-radius: 12px; }
.msg-bubble.client { margin-left: auto; background: #0f766e; color: #fff; }
.msg-bubble.admin { margin-right: auto; background: #e2e8f0; color: #0f172a; }
body.site .msg-bubble.admin { background: rgba(255, 255, 255, .14); color: #e2e8f0; }
.msg-bubble small { display: block; font-size: 11px; opacity: .8; margin-bottom: 4px; }
.msg-bubble p { margin: 0; white-space: pre-wrap; }
.ticket-qr { display: inline-block; width: 160px; background: #fff; padding: 8px; border-radius: 8px; }
.ticket-qr svg { width: 100%; height: auto; display: block; }

.vlayout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .7fr); gap: 16px; align-items: start; }
.vqty { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.vqty button { margin: 0; padding: 6px 10px; background: #134e4a; }
.vpair { display: flex; gap: 8px; }
.vpair input, .vpair select { width: auto; flex: 1; }
.vcheck { display: flex; align-items: flex-start; gap: 8px; }
.vcheck input { width: auto; margin-top: 3px; }
.vouchers-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.vouchers-head .btn { margin: 0; font-size: 15px; }
.vactions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.vactions .btn, .vactions button { display: inline-block; width: auto; margin: 0; }
.vactions .v-close { background: #f9a825; color: #1a1a1a; }
.vactions .v-users { background: #ec407a; }
.vactions .v-print { background: #546e7a; }
.vactions .v-qr { background: #e53935; }
.vactions .v-small { background: #00acc1; }
.vactions .v-pdf { background: #37474f; }
.vactions .v-xls { background: #2e7d32; }
.vtable { width: 100%; border-collapse: collapse; }
.vtable th, .vtable td { text-align: left; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.12); vertical-align: top; }
.vtable th { font-weight: 600; width: 42%; padding-right: 8px; }
.vpreview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.vpreview .vcard { background: #fff; color: #000; border: 1px solid #000; padding: 6px; font-size: 12px; }
.vpreview .vcred { width: 100%; border-collapse: collapse; }
.vpreview .vcred th, .vpreview .vcred td { border: 1px solid #000; text-align: center; color: #000; }
.vpreview .vmeta, .vpreview .vbrand { color: #000; }
.vtall { max-height: 70vh; overflow: auto; }
.vprint-bar h2 { margin-top: 0; }
.vprint-form { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; }
.vprint-form label { display: block; font-size: 13px; }
.vprint-form input, .vprint-form select { width: auto; min-width: 0; }
.vprint-form .btn { display: inline-block; width: auto; margin: 0; }
@media (max-width: 900px) {
    .vlayout, .vpreview { grid-template-columns: 1fr; }
    .vactions .btn, .vactions button { flex: 1 1 calc(50% - 8px); text-align: center; }
}
@media print {
    .vsheet-wrap, .vpage, .vcard { background: #fff !important; color: #000 !important; }
    .vcard { border: 1px solid #000 !important; }
}
