/* ══════════════════════════════════════════
   KIVEXA — BOT CONFIGURATOR PAGE STYLES
   Page-specific only. Shared tokens, nav, mobile
   menu, footer, and ambient glows live in style.css
   — load that FIRST, this file SECOND.
══════════════════════════════════════════ */

/* telegram palette (page-specific, not in style.css tokens) */
:root{
    --tg-bg:#dde8ef;
    --tg-head:#527da3;
    --tg-head2:#436a8a;
    --bub-bot:#ffffff;
    --bub-user:#effdde;
}

/* ════════════════════════════════════
   SECTION
════════════════════════════════════ */
.bot-sec{padding:120px 5%;max-width:1200px;margin:0 auto}
.sub{font-size:16px;color:var(--muted);line-height:1.65;max-width:560px;margin-bottom:40px}

/* ════════════════════════════════════
   LIVE IMPACT LINE
════════════════════════════════════ */
.impact-bar{background:linear-gradient(135deg,var(--blue) 0%,#1e40af 100%);
    border-radius:100px;padding:14px 24px;margin-bottom:32px;
    position:relative;overflow:hidden;display:flex;align-items:center;gap:14px;flex-wrap:wrap;
    box-shadow:0 10px 30px rgba(29,78,216,.2)}
.impact-dot{width:7px;height:7px;background:#4ADE80;border-radius:50%;flex-shrink:0;animation:impactPulse 2s infinite}
@keyframes impactPulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.3;transform:scale(1.5)}}
.impact-bar span{font-size:13.5px;font-weight:600;color:#fff}
.impact-bar span#impactHeadline{font-weight:700}

/* ════════════════════════════════════
   CONFIGURATOR GRID
════════════════════════════════════ */
.cfg{display:grid;grid-template-columns:1fr 340px;gap:22px;align-items:start}
.cfg-left{display:flex;flex-direction:column;gap:16px}

/* cards */
.card{background:var(--white);border:1px solid var(--border);
    border-radius:var(--r2);overflow:hidden;transition:box-shadow .25s,border-color .3s,box-shadow .3s}
.card-head{padding:20px 24px 4px}
.card-head h3{font-family:'Syne',sans-serif;font-size:15px;font-weight:700;letter-spacing:-.3px;color:var(--text)}
.card-head p{font-size:12.5px;color:var(--muted);margin-top:2px}
.card-body{padding:16px 22px 22px}

/* ── biz grid: fewer, bigger, friendlier ── */
.biz-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.biz-btn{background:var(--bg2);border:1.5px solid var(--border);border-radius:16px;
    padding:18px 8px;text-align:center;cursor:pointer;transition:all .18s;
    display:flex;flex-direction:column;align-items:center;gap:6px}
.biz-btn:hover{border-color:rgba(29,78,216,.3);transform:translateY(-2px);background:rgba(29,78,216,.04)}
.biz-btn.on{background:var(--blue);border-color:var(--blue);
    transform:translateY(-2px);box-shadow:0 8px 20px rgba(29,78,216,.26)}
.biz-btn.on .biz-label{color:#fff}
.biz-icon{font-size:26px;line-height:1}
.biz-label{font-size:12px;font-weight:600;color:var(--text);line-height:1.2}

/* ── brand row: just name + colour ── */
.brand-row{display:flex;gap:12px;align-items:flex-end}
.bf{display:flex;flex-direction:column;gap:5px;flex:1}
.bf label{font-size:10.5px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.5px}
.binp{background:var(--bg2);border:1.5px solid var(--border);border-radius:10px;
    padding:11px 14px;font-family:inherit;font-size:14px;color:var(--text);
    outline:none;transition:all .2s;width:100%}
.binp:focus{border-color:rgba(29,78,216,.4);background:var(--white);
    box-shadow:0 0 0 3px rgba(29,78,216,.07)}
.bf.color-bf{flex:0 0 auto}
.cinp-color{width:46px;height:46px;border:1.5px solid var(--border);border-radius:12px;
    padding:3px;background:var(--bg2);cursor:pointer;outline:none}

/* ── custom request card ── */
.accent-card{border-color:rgba(29,78,216,.22);background:linear-gradient(180deg,rgba(29,78,216,.03),var(--white) 40%)}
.accent-card.pulse{animation:accentPulse 1.1s ease}
@keyframes accentPulse{0%{box-shadow:0 0 0 0 rgba(29,78,216,.28)}70%{box-shadow:0 0 0 14px rgba(29,78,216,0)}100%{box-shadow:0 0 0 0 rgba(29,78,216,0)}}
.custom-textarea{background:var(--bg2);border:1.5px solid var(--border);border-radius:12px;
    padding:12px 14px;font-family:inherit;font-size:13.5px;color:var(--text);
    outline:none;transition:all .2s;width:100%;min-height:78px;resize:vertical;line-height:1.5}
.custom-textarea:focus{border-color:rgba(29,78,216,.4);background:var(--white);
    box-shadow:0 0 0 3px rgba(29,78,216,.07)}
.btn-block{background:var(--blue);color:#fff;border:none;border-radius:100px;
    padding:13px 22px;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer;
    width:100%;margin-top:10px;transition:all .25s;box-shadow:0 6px 20px rgba(29,78,216,.2)}
.btn-block:hover{background:var(--blue-l);transform:translateY(-1px);box-shadow:0 10px 28px rgba(29,78,216,.3)}

/* ── summary card ── */
.sum-card{background:var(--white);border:1px solid var(--border);
    border-radius:var(--r2);padding:24px}
.sum-title{font-family:'Syne',sans-serif;font-size:16px;font-weight:800;
    letter-spacing:-.3px;margin-bottom:6px}
.sum-line{font-size:13px;color:var(--muted);line-height:1.5;margin-bottom:18px}
.sum-line strong{color:var(--text)}
.cta-row{display:flex;gap:9px}
.btn-p{background:var(--blue);color:#fff;border:none;border-radius:100px;
    padding:13px 22px;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer;
    flex:2;transition:all .25s;box-shadow:0 6px 20px rgba(29,78,216,.2)}
.btn-p:hover{background:var(--blue-l);transform:translateY(-1px);box-shadow:0 10px 28px rgba(29,78,216,.3)}
.btn-s{background:var(--bg2);color:var(--text);border:1px solid var(--border);
    border-radius:100px;padding:13px 18px;font-family:inherit;font-size:13px;
    font-weight:600;cursor:pointer;flex:1;transition:all .2s}
.btn-s:hover{border-color:rgba(29,78,216,.3);color:var(--blue)}

/* ════════════════════════════════════
   PHONE FRAME
════════════════════════════════════ */
.phone-sticky{position:sticky;top:96px}
.phone-frame{
    width:300px;margin:0 auto;
    background:#111827;border-radius:44px;padding:11px;
    box-shadow:0 28px 64px rgba(0,0,0,.3),0 0 0 1px rgba(255,255,255,.06),
    inset 0 1px 0 rgba(255,255,255,.08);
    position:relative}
.phone-frame::before{content:'';position:absolute;top:11px;left:50%;
    transform:translateX(-50%);width:84px;height:19px;
    background:#111827;border-radius:0 0 14px 14px;z-index:10}
.phone-screen{border-radius:33px;overflow:hidden;background:var(--tg-bg);
    display:flex;flex-direction:column;height:560px;position:relative}

.tg-hd{background:linear-gradient(180deg,var(--tg-head) 0%,var(--tg-head2) 100%);
    padding:36px 14px 12px;display:flex;align-items:center;gap:10px;flex-shrink:0}
.tg-back{font-size:20px;color:rgba(255,255,255,.9)}
.tg-av{width:36px;height:36px;border-radius:50%;flex-shrink:0;
    display:flex;align-items:center;justify-content:center;
    font-size:17px;overflow:hidden;transition:background .4s;
    background:linear-gradient(135deg,#2d9cdb,#1a7abf)}
.tg-info{flex:1}
.tg-nm{font-size:14.5px;font-weight:600;color:#fff;letter-spacing:-.2px;transition:all .3s}
.tg-st{font-size:11px;color:rgba(255,255,255,.72)}
.tg-more{font-size:20px;color:rgba(255,255,255,.8)}

.tg-body{flex:1;padding:10px;overflow-y:auto;
    display:flex;flex-direction:column;gap:7px;
    background:var(--tg-bg);scroll-behavior:smooth;min-height:0}
.tg-body::-webkit-scrollbar{width:0}

.msg{display:flex;flex-direction:column;gap:2px;max-width:80%;animation:msgPop .22s ease both}
@keyframes msgPop{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
.msg.bot{align-self:flex-start}
.msg.usr{align-self:flex-end}
.bub{padding:9px 13px 8px;border-radius:14px;font-size:13px;
    line-height:1.45;position:relative;white-space:pre-wrap;
    box-shadow:0 1px 2px rgba(0,0,0,.07)}
.bot .bub{background:var(--bub-bot);color:#1b1b1b;border-top-left-radius:4px}
.usr .bub{background:var(--bub-user);color:#1b1b1b;border-top-right-radius:4px}
.bub-time{font-size:10px;color:#9aa0a6;float:right;margin:4px -2px -2px 10px}

.typing-wrap{display:flex;align-items:center;gap:4px;padding:10px 13px;
    background:var(--bub-bot);border-radius:14px;border-top-left-radius:4px;
    width:fit-content;box-shadow:0 1px 2px rgba(0,0,0,.07)}
.td{width:7px;height:7px;background:#c0c8cc;border-radius:50%;animation:tyDot 1.1s infinite ease-in-out}
.td:nth-child(2){animation-delay:.15s}
.td:nth-child(3){animation-delay:.3s}
@keyframes tyDot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}

.tg-kbd{flex-shrink:0;background:#b8c8d3;padding:6px 8px 8px;display:flex;flex-direction:column;gap:5px}
.kbd-row{display:flex;gap:5px}
.kbd-btn{flex:1;background:#fff;border:none;border-radius:6px;
    padding:11px 5px;font-size:12px;font-weight:500;color:#1b1b1b;
    cursor:pointer;text-align:center;transition:all .12s;font-family:inherit;
    box-shadow:0 1px 1px rgba(0,0,0,.09)}
.kbd-btn:hover{background:#f2f2f2}
.kbd-btn:active{transform:scale(.96)}

.tg-bar{flex-shrink:0;background:#f0f5f8;border-top:1px solid #dce5ea;
    padding:8px 10px;display:flex;align-items:center;gap:8px}
.tg-field{flex:1;background:#fff;border:1px solid #dce5ea;border-radius:20px;
    padding:8px 14px;font-size:13px;color:#9aa0a6;user-select:none}
.tg-send{width:32px;height:32px;border-radius:50%;background:#2d9cdb;
    color:#fff;display:flex;align-items:center;justify-content:center;
    font-size:14px;flex-shrink:0;cursor:default}

.phone-lbl{text-align:center;margin-top:14px;font-size:11.5px;
    color:var(--muted2);font-weight:600;letter-spacing:.3px}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — breakpoints match style.css's own
   (1150px = nav/burger switch, 900/480/360 = fine-tuning)
   Nav/footer responsive behavior is already handled by
   style.css; only the configurator-specific layout needs
   overrides here.
═══════════════════════════════════════════════════ */

/* ── 1150px: configurator stacks, phone preview first ── */
@media (max-width:1150px){
    .bot-sec{padding:100px 6% 60px}
    .sh{margin-bottom:12px}
    .sub{font-size:15px;margin-bottom:28px}

    .impact-bar{padding:12px 18px;gap:10px}
    .impact-bar span{font-size:12.5px}
    .impact-bar span:last-child{font-size:12px}

    /* stack: phone preview first, controls below */
    .cfg{grid-template-columns:1fr;gap:18px}
    .phone-sticky{position:static;order:-1;max-width:300px;margin:0 auto 6px}
    .phone-lbl{margin-bottom:4px}
}

/* ── 900px: tighten cards, keep 3-col business grid ── */
@media (max-width:900px){
    .card-head{padding:18px 20px 4px}
    .card-body{padding:14px 18px 18px}
    .biz-btn{padding:16px 6px}
    .biz-icon{font-size:24px}
    .biz-label{font-size:11.5px}

    .sum-card{padding:20px}
    .cta-row{flex-direction:column}
    .btn-p,.btn-s{flex:1;width:100%}
}

/* ── 480px: small phones ── */
@media (max-width:480px){
    .bot-sec{padding:90px 5% 50px}
    .sh{letter-spacing:-1.2px}

    .impact-bar{border-radius:20px;flex-direction:column;align-items:flex-start;gap:6px}
    .impact-bar span:last-child{opacity:.85}

    .biz-grid{grid-template-columns:repeat(2,1fr)}

    .brand-row{flex-wrap:wrap}
    .bf{min-width:100%}
    .bf.color-bf{min-width:0;flex:0 0 auto}

    .phone-frame{width:260px;padding:9px;border-radius:38px}
    .phone-frame::before{width:70px;height:16px}
    .phone-screen{height:500px;border-radius:29px}
    .tg-hd{padding:30px 12px 10px}
}

@media (max-width:360px){
    .phone-frame{width:230px}
    .phone-screen{height:460px}
}
