:root{--navy:#07111a;--panel:#0d1922;--line:#33414b;--paper:#e8e7e2;--amber:#c4a06e;--red:#bd5b55;--muted:#849099}*{box-sizing:border-box}html{font-family:Arial,Helvetica,sans-serif}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.auth-page{display:grid;min-height:100vh;place-items:center;padding:30px;background:radial-gradient(circle at 75% 15%,#233542,#07111a 58%);color:#fff}.auth-card{width:min(940px,100%);padding:46px;border:1px solid #3c4b56;background:rgba(4,10,15,.86);box-shadow:0 30px 90px rgba(0,0,0,.4)}.auth-card--small{width:min(520px,100%)}.auth-brand,.admin-logo{display:flex;align-items:center;gap:15px}.auth-brand img{width:82px;height:82px;object-fit:contain}.auth-brand div,.admin-logo div{display:grid;gap:5px}.auth-brand b,.admin-logo b{font-size:22px;letter-spacing:.04em}.auth-brand span,.admin-logo span{color:#89959d;font-size:8px;letter-spacing:.18em}.auth-card .code,.admin-title p{margin-top:48px;color:var(--amber);font-size:9px;letter-spacing:.18em}.auth-card h1{margin:14px 0;font-size:44px;letter-spacing:-.04em}.auth-card>p:not(.code){color:#9aa5ac;line-height:1.6}.setup-form{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:35px}.setup-form fieldset{display:grid;gap:17px;margin:0;padding:24px;border:1px solid #3b4953}.setup-form legend{padding:0 9px;color:var(--amber);font-size:10px;letter-spacing:.14em}.auth-card form label,.modal-form label{display:grid;gap:7px;color:#9aa5ac;font-size:9px;letter-spacing:.12em;text-transform:uppercase}.auth-card input,.modal-form input,.modal-form textarea{width:100%;padding:13px;border:1px solid #4a5964;background:#101b23;color:#fff;outline:none}.auth-card input:focus,.modal-form input:focus,.modal-form textarea:focus{border-color:var(--amber)}.auth-card form>button,.setup-form>button,.primary-link{display:flex;grid-column:1/-1;justify-content:space-between;margin-top:8px;padding:17px 19px;border:0;background:var(--amber);color:#111;font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;cursor:pointer}.auth-card--small form{display:grid;gap:18px;margin-top:30px}.back-link{display:inline-block;margin-top:28px;color:#8c989f;font-size:11px}.alert{margin:18px 0;padding:13px 16px;border:1px solid #4b5b65;background:#13222c;font-size:13px}.alert.error{border-color:#744945;background:#2b1718;color:#f1b9b5}.alert.success{border-color:#48664a;background:#122417;color:#badeb9}.admin-body{min-height:100vh;background:#07111a;color:#fff}.admin-header{position:sticky;z-index:20;top:0;display:grid;grid-template-columns:1fr auto;align-items:center;min-height:84px;padding:0 30px;border-bottom:1px solid #31404a;background:#07111a}.admin-logo img{width:64px;height:64px;object-fit:contain}.admin-user{display:grid;grid-template-columns:auto auto auto;gap:13px;align-items:center}.admin-user span{color:var(--amber);font-size:8px;letter-spacing:.15em}.admin-user b{font-size:12px}.admin-user a{padding-left:13px;border-left:1px solid #394751;color:#8f9ba3;font-size:10px}.admin-layout{display:grid;grid-template-columns:260px 1fr;min-height:calc(100vh - 84px)}.admin-sidebar{padding:28px 20px;border-right:1px solid #31404a;background:#09141c}.sidebar-metrics{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:35px}.sidebar-metrics span{display:grid;padding:14px;border:1px solid #2e3b44;color:#77838c;font-size:8px;text-transform:uppercase}.sidebar-metrics b{color:#fff;font-size:24px}.admin-sidebar nav{display:grid;gap:5px}.admin-sidebar nav>a{display:flex;justify-content:space-between;padding:13px 14px;color:#a5afb5;font-size:12px}.admin-sidebar nav>a.active{background:var(--amber);color:#111;font-weight:800}.admin-sidebar nav>span{margin:28px 14px 7px;color:#5f6d76;font-size:8px;letter-spacing:.14em}.admin-main{min-width:0;padding:45px}.admin-title{display:flex;justify-content:space-between;gap:25px;align-items:flex-end}.admin-title p{margin:0}.admin-title h1{margin:10px 0 0;font-size:clamp(38px,5vw,72px);line-height:.9;letter-spacing:-.055em}.admin-title>button,.admin-search button,.trash-list button{padding:14px 18px;border:1px solid var(--amber);background:transparent;color:var(--amber);font-size:10px;font-weight:800;text-transform:uppercase;cursor:pointer}.admin-search{display:flex;gap:12px;margin:38px 0 20px}.admin-search input{width:min(600px,100%);padding:14px;border:1px solid #3a4852;background:#0d1922;color:#fff}.admin-cards{display:grid;gap:13px}.admin-card{padding:24px;border:1px solid #33414b;background:#0c1720}.admin-card.is-new{border-left:4px solid var(--amber)}.card-head{display:flex;justify-content:space-between;gap:20px}.card-head small{color:#6e7c85;font-size:9px;letter-spacing:.08em}.card-head h2{margin:7px 0 4px;font-size:24px}.card-head a{color:var(--amber);font-weight:800}.card-head select{padding:10px;border:1px solid #4d5c66;background:#111e27;color:#fff}.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:22px;padding-top:18px;border-top:1px solid #293741}.card-grid p{display:grid;gap:6px;margin:0;color:#d6dade;font-size:13px;line-height:1.45}.card-grid small{color:#6e7b84;font-size:8px;letter-spacing:.14em}.card-grid .wide{grid-column:1/-1}.card-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.card-actions a,.card-actions button{display:inline-block;padding:10px 13px;border:1px solid #45535d;background:transparent;color:#fff;font-size:9px;text-transform:uppercase;cursor:pointer}.card-actions button{border-color:#704b49;color:#dda4a0}.empty{margin-top:25px;padding:60px;border:1px solid #34424b;color:#82909a;text-align:center}.audit-table{display:grid;margin-top:30px}.audit-table>div{display:grid;grid-template-columns:140px 150px 1fr 1fr;gap:15px;padding:13px;border-bottom:1px solid #2b3942;font-size:11px}.audit-table time,.audit-table small{color:#73818a}.trash-list{display:grid;gap:7px;margin:12px 0 35px}.trash-list>div{display:flex;align-items:center;gap:8px;padding:13px;border:1px solid #36444e}.trash-list span{margin-right:auto}.trash-list .danger{border-color:#8a4845;color:#e7a19d}dialog{width:min(650px,calc(100% - 30px));padding:0;border:1px solid #46545e;background:#0c1720;color:#fff}dialog::backdrop{background:rgba(0,0,0,.75)}.modal-form{position:relative;display:grid;gap:16px;padding:35px}.modal-form h2{margin:0 0 10px;font-size:30px}.modal-form>div{display:grid;grid-template-columns:1fr 1fr;gap:15px}.modal-form>button:last-child{padding:15px;border:0;background:var(--amber);font-weight:900;cursor:pointer}.modal-close{position:absolute;top:15px;right:15px;width:38px;height:38px;border:1px solid #4e5c66;background:transparent;color:#fff;font-size:22px;cursor:pointer}
@media(max-width:850px){.setup-form{grid-template-columns:1fr}.admin-layout{grid-template-columns:1fr}.admin-sidebar{border-right:0;border-bottom:1px solid #31404a}.admin-sidebar nav{grid-template-columns:1fr 1fr}.admin-sidebar nav>span{grid-column:1/-1}.admin-main{padding:30px 18px}.admin-title{align-items:flex-start;flex-direction:column}.card-grid{grid-template-columns:1fr}.card-grid .wide{grid-column:auto}.audit-table>div{grid-template-columns:1fr}.admin-user b{display:none}}@media(max-width:520px){.auth-card{padding:25px}.auth-card h1{font-size:36px}.admin-header{padding:0 15px}.admin-logo b{font-size:16px}.admin-logo img{width:52px;height:52px}.admin-user{grid-template-columns:auto auto}.admin-sidebar nav{grid-template-columns:1fr}.card-head{flex-direction:column}.card-actions{justify-content:stretch}.card-actions a,.card-actions form,.card-actions button{flex:1;width:100%;text-align:center}.modal-form>div{grid-template-columns:1fr}}

/* ==================================================
   ДИСПЕТЧЕРСКОЕ ОПОВЕЩЕНИЕ О НОВОМ ЗАКАЗЕ
   ================================================== */

.admin-card.is-new {
    position: relative;
    overflow: hidden;
    border: 2px solid #e1a14c;
    border-left-width: 6px;
    box-shadow:
        0 0 0 1px rgba(225, 161, 76, .18),
        0 12px 38px rgba(0, 0, 0, .25);
    animation: dispatcher-order-alert 1.35s ease-in-out infinite;
}

.admin-card.is-new::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            110deg,
            transparent 0%,
            rgba(225, 161, 76, .07) 45%,
            transparent 70%
        );
}

.admin-card.is-new > * {
    position: relative;
    z-index: 1;
}

@keyframes dispatcher-order-alert {
    0%,
    100% {
        border-color: #c8924c;
        box-shadow:
            0 0 0 1px rgba(225, 161, 76, .15),
            0 12px 38px rgba(0, 0, 0, .25);
    }

    50% {
        border-color: #ffd078;
        box-shadow:
            0 0 0 5px rgba(225, 161, 76, .18),
            0 0 34px rgba(225, 161, 76, .32);
    }
}

.new-order-warning {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 19px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 191, 96, .65);
    background: rgba(151, 80, 22, .22);
}

.new-order-warning strong {
    color: #ffd078;
    font-size: 11px;
    letter-spacing: .12em;
}

.new-order-warning span {
    color: #efcda1;
    font-size: 11px;
}

.card-actions .acknowledge-form {
    margin-right: auto;
}

.card-actions .acknowledge-button {
    border-color: #d3a15d;
    background: #c4a06e;
    color: #111;
    font-weight: 900;
    letter-spacing: .04em;
}

.card-actions .acknowledge-button:hover {
    background: #e0bc83;
}

.order-contact-actions {
    align-items: center;
    flex-wrap: wrap;
}

.dispatch-sound-control {
    position: fixed;
    z-index: 1000;
    right: 22px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(440px, calc(100% - 44px));
    padding: 14px;
    border: 1px solid #c4a06e;
    background: rgba(7, 17, 26, .97);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .48);
}

.dispatch-sound-control span {
    color: #d7d9da;
    font-size: 12px;
    line-height: 1.4;
}

.dispatch-sound-control button {
    flex: 0 0 auto;
    padding: 11px 13px;
    border: 0;
    background: #c4a06e;
    color: #111;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

@media (max-width: 700px) {
    .new-order-warning {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .card-actions .acknowledge-form {
        width: 100%;
        margin-right: 0;
    }

    .dispatch-sound-control {
        right: 12px;
        bottom: 12px;
        max-width: calc(100% - 24px);
    }
}

/* ==================================================
   DISPATCH ALERT V3
   Более заметное мигание новой заявки
   ================================================== */

.admin-card.is-new {
    border: 2px solid #ffb547 !important;
    border-left-width: 7px !important;
    background: #151b1f !important;
    animation:
        dispatcher-card-flash-v3 1.1s ease-in-out infinite
        !important;
}

@keyframes dispatcher-card-flash-v3 {
    0%,
    100% {
        border-color: #bd5b55;
        background: #17191c;
        box-shadow:
            0 0 0 0 rgba(255, 111, 93, 0),
            0 12px 38px rgba(0, 0, 0, .28);
    }

    50% {
        border-color: #ffd078;
        background: #2a2117;
        box-shadow:
            0 0 0 6px rgba(255, 187, 86, .18),
            0 0 38px rgba(255, 176, 64, .4);
    }
}

.admin-card.is-new .new-order-warning {
    animation:
        dispatcher-warning-flash-v3 1.1s ease-in-out infinite;
}

@keyframes dispatcher-warning-flash-v3 {
    0%,
    100% {
        background: rgba(128, 48, 38, .32);
    }

    50% {
        background: rgba(178, 111, 27, .38);
    }
}

.dispatch-sound-control {
    position: fixed;
    z-index: 1000;
    right: 22px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(590px, calc(100% - 44px));
    padding: 13px;
    border: 1px solid #c4a06e;
    background: rgba(7, 17, 26, .98);
    box-shadow: 0 20px 65px rgba(0, 0, 0, .55);
}

.dispatch-sound-control__text {
    display: grid;
    gap: 3px;
    min-width: 150px;
    margin-right: 5px;
}

.dispatch-sound-control__text strong {
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.dispatch-sound-control__text span {
    color: #87949c;
    font-size: 10px;
}

.dispatch-sound-control__text b {
    color: #ffd078;
}

.dispatch-sound-control button {
    min-height: 39px;
    padding: 9px 12px;
    border: 1px solid #53616a;
    background: transparent;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
}

.dispatch-sound-control .dispatch-sound-toggle {
    min-width: 145px;
}

.dispatch-sound-control .dispatch-sound-toggle.is-enabled {
    border-color: #c4a06e;
    background: #c4a06e;
    color: #111;
}

.dispatch-sound-control .dispatch-sound-test {
    border-color: #63727c;
}

@media (max-width: 720px) {
    .dispatch-sound-control {
        right: 12px;
        bottom: 12px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: calc(100% - 24px);
        max-width: none;
    }

    .dispatch-sound-control__text {
        grid-column: 1 / -1;
    }

    .dispatch-sound-control button {
        width: 100%;
    }
}


/* MEGATONNAZH HELP PAGE v1 */

.help-page {
    display: grid;
    gap: 26px;
    padding-bottom: 40px;
}

.help-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
    padding: 36px;
    border: 1px solid #37434b;
    background:
        radial-gradient(circle at 90% 20%, rgba(196, 160, 110, .18), transparent 34%),
        linear-gradient(135deg, #101a22, #0a1015);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.help-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 110px;
    height: 3px;
    background: #c4a06e;
}

.help-kicker,
.help-section-heading p,
.help-final p {
    margin: 0 0 8px;
    color: #c4a06e;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
}

.help-hero h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(27px, 4vw, 46px);
    line-height: 1.05;
}

.help-hero > div > p:last-child {
    max-width: 720px;
    margin: 0;
    color: #aeb8be;
    font-size: 14px;
    line-height: 1.75;
}

.help-hero-badge {
    min-width: 190px;
    padding: 22px;
    border: 1px solid #c4a06e;
    background: rgba(5, 10, 14, .58);
    text-align: center;
}

.help-hero-badge span,
.help-hero-badge small {
    display: block;
    color: #89969e;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .11em;
}

.help-hero-badge strong {
    display: block;
    margin: 8px 0;
    color: #ffd078;
    font-size: 22px;
}

.help-nav {
    position: sticky;
    z-index: 50;
    top: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px;
    border: 1px solid #303b42;
    background: rgba(8, 14, 18, .96);
    backdrop-filter: blur(12px);
}

.help-nav a {
    flex: 0 0 auto;
    padding: 10px 13px;
    border: 1px solid #38454d;
    color: #c0c9ce;
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.help-nav a:hover {
    border-color: #c4a06e;
    color: #ffd078;
}

.help-section {
    scroll-margin-top: 80px;
    padding: 30px;
    border: 1px solid #303a41;
    background: #11171b;
}

.help-section-heading {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.help-section-heading > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid #c4a06e;
    color: #ffd078;
    font-size: 15px;
    font-weight: 900;
}

.help-section-heading p {
    margin-bottom: 4px;
}

.help-section-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 24px;
}

.help-flow {
    display: grid;
    grid-template-columns: repeat(9, auto);
    gap: 10px;
    align-items: stretch;
}

.help-flow article {
    min-width: 0;
    padding: 18px;
    border: 1px solid #364149;
    background: #0b1115;
}

.help-flow article b {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #c4a06e;
    color: #111;
}

.help-flow article span {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .07em;
}

.help-flow article p,
.help-card p,
.help-search-examples p,
.help-note p,
.help-faq p {
    margin: 0;
    color: #99a6ad;
    font-size: 12px;
    line-height: 1.65;
}

.help-flow > i {
    align-self: center;
    color: #c4a06e;
    font-style: normal;
    font-size: 20px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.help-card {
    padding: 22px;
    border: 1px solid #354149;
    background: #0b1115;
}

.help-card strong {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-size: 15px;
}

.help-card-accent {
    border-left: 3px solid #c4a06e;
}

.help-note {
    margin-top: 18px;
    padding: 18px 20px;
    border-left: 3px solid #66747d;
    background: #0b1115;
}

.help-note strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
}

.help-note-gold {
    border-left-color: #c4a06e;
    background: rgba(196, 160, 110, .08);
}

.help-note-danger {
    border-left-color: #bd5b55;
    background: rgba(189, 91, 85, .08);
}

.help-statuses {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid #354149;
    background: #0b1115;
}

.help-statuses h3 {
    margin: 0 0 16px;
    color: #fff;
}

.help-statuses > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.help-statuses p {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 13px;
    border: 1px solid #2a343a;
}

.help-statuses b {
    color: #ffd078;
    font-size: 11px;
    text-transform: uppercase;
}

.help-statuses span {
    color: #99a6ad;
    font-size: 11px;
    line-height: 1.45;
}

.help-search-examples {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.help-search-examples article {
    padding: 20px;
    border: 1px solid #354149;
    background: #0b1115;
}

.help-search-examples span {
    display: block;
    margin-bottom: 8px;
    color: #ffd078;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

.help-rights {
    overflow: hidden;
    border: 1px solid #354149;
    background: #0b1115;
}

.help-rights > div {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 150px 150px;
    align-items: center;
    border-bottom: 1px solid #283238;
}

.help-rights > div:last-child {
    border-bottom: 0;
}

.help-rights > div > * {
    padding: 14px 18px;
}

.help-rights-head {
    background: #171f24;
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
}

.help-rights span {
    color: #aab4ba;
    font-size: 12px;
}

.help-rights .yes {
    color: #8bd6a2;
    font-weight: 800;
}

.help-rights .no {
    color: #d0837d;
    font-weight: 800;
}

.help-faq {
    display: grid;
    gap: 10px;
}

.help-faq details {
    border: 1px solid #354149;
    background: #0b1115;
}

.help-faq summary {
    padding: 18px 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.help-faq details p {
    padding: 0 20px 20px;
}

.help-final {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 28px 30px;
    border: 1px solid #c4a06e;
    background: linear-gradient(135deg, rgba(196, 160, 110, .13), #0a1116);
}

.help-final h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(17px, 3vw, 25px);
}

.help-final a {
    flex: 0 0 auto;
    padding: 13px 18px;
    background: #c4a06e;
    color: #111;
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

@media (max-width: 1180px) {
    .help-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .help-flow > i {
        display: none;
    }
}

@media (max-width: 760px) {
    .help-hero {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .help-hero-badge {
        min-width: 0;
    }

    .help-section {
        padding: 20px;
    }

    .help-grid,
    .help-statuses > div,
    .help-search-examples,
    .help-flow {
        grid-template-columns: 1fr;
    }

    .help-rights {
        overflow-x: auto;
    }

    .help-rights > div {
        min-width: 620px;
    }

    .help-final {
        display: grid;
    }

    .help-final a {
        text-align: center;
    }
}
