/* =========================================
   BTC Exchange — main.css
   Тёмный крипто-стиль, mobile-first
   ========================================= */

:root {
    /* WalidEx — Modern Fintech UI v3 */
    --bg:           #080C18;
    --bg-2:         #0a0e1a;
    --surface:      #0f1525;
    --surface-2:    #131a2e;
    --surface-3:    #182038;
    --primary:      #00FFA3;
    --primary-dark: #00cc82;
    --primary-glow: rgba(0,255,163,.18);
    --accent:       #7B5EEA;
    --accent-2:     #00D4FF;
    --accent-glow:  rgba(123,94,234,.22);
    --grad-brand:   linear-gradient(135deg, #7B5EEA 0%, #00D4FF 100%);
    --grad-cta:     linear-gradient(135deg, #00FFA3 0%, #00cc82 100%);
    --grad-hero:    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(123,94,234,.35) 0%, transparent 60%);
    --text:         #F0F2FF;
    --text-secondary: #8892B0;
    --muted:        #4a5270;
    --border:       rgba(255,255,255,.07);
    --border-light: rgba(255,255,255,.13);
    --glass-bg:     rgba(255,255,255,.035);
    --glass-border: rgba(255,255,255,.08);
    --success:      #00FFA3;
    --warning:      #F7931A;
    --danger:       #FF4D4F;
    --info:         #00D4FF;
    --radius:       20px;
    --radius-sm:    14px;
    --radius-xs:    8px;
    --shadow:       0 8px 40px rgba(0,0,0,.7);
    --shadow-sm:    0 4px 16px rgba(0,0,0,.5);
    --glow-primary: 0 0 30px rgba(0,255,163,.25);
    --glow-accent:  0 0 30px rgba(123,94,234,.4);
}

/* Мобайл: скрыть большой PWA-баннер, оставить компактную полосу */
@media (max-width: 600px) {
    .pwa-install-banner { display: none !important; }
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--primary); }
img { display: block; max-width: 100%; }

/* ---- Base ---- */
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 16px;
}

/* =========================================
   HEADER
   ========================================= */
.header {
    background: rgba(11,15,26,.85);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header__inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.header__logo {
    font-size: 20px;
    font-weight: 800;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.4px;
    flex-shrink: 0;
}

.header__logo:hover { opacity: .85; }

.header__tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 40px;
    background: rgba(108,92,231,.15);
    border: 1px solid rgba(108,92,231,.35);
    color: var(--accent-2);
    transition: background .2s, box-shadow .2s;
    white-space: nowrap;
}

.header__tg-btn:hover {
    background: rgba(108,92,231,.25);
    box-shadow: var(--glow-accent);
    color: var(--accent-2);
}

/* =========================================
   MAIN / FOOTER
   ========================================= */
.main {
    flex: 1;
    padding: 0 0 60px;
    padding-top: 0;
}

.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--glass-border);
    padding: 24px 20px;
}

.footer__inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer__text {
    color: var(--muted);
    font-size: 13px;
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.footer__link {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color .2s;
}

.footer__link:hover { color: var(--primary); }

.footer__tg {
    color: var(--accent-2);
    font-weight: 600;
}

.footer__tg:hover { color: var(--primary); }

/* =========================================
   HOME PAGE
   ========================================= */
.home {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    padding: 0 0 52px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    position: relative;
}

/* Starry night background */
.hero::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(10,20,60,.95) 0%, #050B1A 70%);
    pointer-events: none;
    z-index: 0;
}

/* Stars overlay */
.hero::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.85) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,.5) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,.3) 1px, transparent 1px);
    background-size: 120px 120px, 80px 80px, 50px 50px;
    background-position: 0 0, 40px 30px, 15px 55px;
    pointer-events: none;
    z-index: 0;
    opacity: .55;
}

/* ---- Hero body — центральный блок ---- */
.hero__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 20px 8px;
    width: 100%;
}

.hero__tagline {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255,255,255,.75);
    line-height: 1.55;
    letter-spacing: .1px;
    margin: 0;
    text-align: center;
}

.hero__brand-title {
    font-size: 80px;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    margin: 0;
    background: linear-gradient(135deg, #00ffa3 0%, #00d4ff 40%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 32px rgba(0,255,163,.35)) drop-shadow(0 0 64px rgba(0,212,255,.2));
    position: relative;
}

.hero__brand-title-tm {
    font-size: 14px;
    font-weight: 400;
    -webkit-text-fill-color: rgba(0,255,163,.6);
    color: rgba(0,255,163,.6);
    vertical-align: super;
    margin-left: 2px;
    letter-spacing: 0;
    filter: none;
}

.hero__desc {
    font-size: 22px;
    font-weight: 400;
    color: rgba(255,255,255,.88);
    line-height: 1.5;
    letter-spacing: .1px;
    margin: 0;
    text-align: center;
}

.hero > * { position: relative; z-index: 1; }

/* ---- Hero topbar — sticky glassmorphism navbar ---- */
.hero__topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(8,12,24,.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.07);
    margin-bottom: 16px;
}

.hero__brand {
    font-size: 24px;
    font-weight: 900;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.5px;
    line-height: 1;
    text-decoration: none;
    flex-shrink: 0;
}

.hero__brand-tm {
    font-size: 10px;
    font-weight: 400;
    opacity: .7;
    vertical-align: super;
    -webkit-text-fill-color: var(--text-secondary);
    color: var(--text-secondary);
    margin-left: 1px;
}

.hero__tg-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 40px;
    background: rgba(0,212,255,.08);
    border: 1px solid rgba(0,212,255,.2);
    color: var(--accent-2);
    text-decoration: none;
    transition: background .2s, border-color .2s;
    white-space: nowrap;
}

.hero__tg-link:hover {
    background: rgba(0,212,255,.15);
    border-color: rgba(0,212,255,.35);
    color: var(--accent-2);
}

.hero__topbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hero__nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Кнопки topbar: иконка + текст */
.btn-icon { font-size: 1em; line-height: 1; }
.btn-text { margin-left: 2px; }
/* По умолчанию: короткий текст скрыт, полный виден */
.btn-text--short { display: none; }

.hero__my-orders-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 40px;
    background: rgba(0,255,163,.08);
    border: 1px solid rgba(0,255,163,.2);
    color: var(--primary);
    text-decoration: none;
    transition: background .2s, border-color .2s;
    white-space: nowrap;
}
.hero__my-orders-link:hover {
    background: rgba(0,255,163,.15);
    border-color: rgba(0,255,163,.35);
    color: var(--primary);
}
.hero__my-orders-link--cabinet {
    background: rgba(245,158,11,.1);
    border-color: rgba(245,158,11,.3);
    color: #f59e0b;
}
.hero__my-orders-link--cabinet:hover {
    background: rgba(245,158,11,.2);
    border-color: rgba(245,158,11,.5);
    color: #f59e0b;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 40px;
    background: rgba(0,255,163,.07);
    border: 1px solid rgba(0,255,163,.22);
    color: var(--primary);
    letter-spacing: .6px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(0,255,163,.1);
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .6; transform: scale(.8); }
}

.hero__title {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.12;
    color: var(--text);
    margin: 0;
}

.hero__title-grad {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 340px;
    line-height: 1.7;
    margin: 0;
    letter-spacing: .1px;
}

.hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
}

.hero__cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    padding: 15px 32px;
    border-radius: 14px;
    background: var(--grad-cta);
    color: #060D18;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow .25s, transform .15s;
    box-shadow: 0 4px 28px rgba(0,255,163,.35), inset 0 1px 0 rgba(255,255,255,.2);
    letter-spacing: .1px;
}

.hero__cta-primary:hover {
    box-shadow: 0 8px 36px rgba(0,255,163,.55);
    transform: translateY(-2px);
    color: #060D18;
}

.hero__cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    padding: 15px 24px;
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,.1);
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
    backdrop-filter: blur(8px);
}

.hero__cta-secondary:hover {
    border-color: rgba(255,255,255,.2);
    color: var(--text);
    background: rgba(255,255,255,.08);
}

/* =========================================
   TRUST STATS
   ========================================= */
.trust-stats {
    display: flex;
    gap: 0;
    background: rgba(15,21,37,.8);
    border: 1px solid rgba(123,94,234,.2);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.06);
}

.trust-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 12px;
    border-right: 1px solid rgba(255,255,255,.06);
    transition: background .2s;
}

.trust-stat:hover {
    background: rgba(123,94,234,.06);
}

.trust-stat:last-child { border-right: none; }

.trust-stat__value {
    font-size: 22px;
    font-weight: 900;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -.5px;
}

.trust-stat__label {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .2px;
}

/* =========================================
   EXCHANGE BLOCK (калькулятор + форма)
   ========================================= */
.exchange-block {
    background: rgba(15,21,37,.95);
    border: 1px solid rgba(123,94,234,.25);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow), 0 0 60px rgba(123,94,234,.08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.exchange-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #7B5EEA 0%, #00D4FF 50%, #00FFA3 100%);
}

.exchange-block__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 22px;
    color: var(--text);
}

.exchange-field {
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    transition: border-color .2s, box-shadow .2s;
    position: relative;
}

.exchange-field:focus-within {
    border-color: rgba(108,92,231,.5);
    box-shadow: 0 0 0 3px rgba(108,92,231,.12);
}

.exchange-field__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.exchange-field__currency-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,.06);
    color: var(--text);
    border: 1px solid var(--glass-border);
    transition: background .2s, border-color .2s, color .2s;
}
.exchange-field__currency-tag--active {
    background: rgba(245,158,11,.18);
    border-color: rgba(245,158,11,.5);
    color: #f59e0b;
}
.exchange-mode-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    margin: 8px 0 4px;
    flex-wrap: wrap;
}
.exchange-mode-switch {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.exchange-mode-switch:hover { opacity: .8; }
.wizard-summary--secondary {
    background: rgba(255,255,255,.03);
    border-color: rgba(255,255,255,.06);
    margin-top: 4px;
}
.wizard-summary--secondary .wizard-summary__label { color: var(--text-secondary); }
.wizard-summary--secondary .wizard-summary__value { color: var(--text-secondary); font-size: 14px; }

.exchange-field__input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.5px;
    -webkit-appearance: none;
    appearance: none;
}

.exchange-field__input::placeholder {
    color: var(--muted);
    font-weight: 400;
}

.exchange-field__hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    min-height: 16px;
}

.exchange-field__hint--warn {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 11px;
    opacity: .85;
}

.exchange-field--readonly {
    background: rgba(255,255,255,.02);
    border-color: rgba(255,255,255,.06);
    opacity: .75;
}

.exchange-field__input--muted {
    color: var(--text-secondary);
    font-size: 20px;
}

/* ---- Wizard steps indicator ---- */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
}
.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.wizard-step__dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 2px solid rgba(255,255,255,.15);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s;
}
.wizard-step__label {
    font-size: 11px;
    color: var(--text-secondary);
    transition: color .25s;
}
.wizard-step--active .wizard-step__dot {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 12px rgba(0,255,153,.35);
}
.wizard-step--active .wizard-step__label { color: var(--primary); font-weight: 600; }
.wizard-step--done .wizard-step__dot {
    background: rgba(0,255,153,.15);
    border-color: var(--primary);
    color: var(--primary);
}
.wizard-step--done .wizard-step__label { color: var(--primary); }
.wizard-step__line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,.1);
    min-width: 40px;
    margin: 0 8px;
    margin-bottom: 14px;
}

/* ---- Wizard summary ---- */
.wizard-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,255,153,.06);
    border: 1px solid rgba(0,255,153,.2);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.wizard-summary__label { font-size: 12px; color: var(--text-secondary); }
.wizard-summary__value { font-size: 18px; font-weight: 700; color: var(--primary); }

/* ---- Wizard back button ---- */
.wizard-back {
    display: block;
    width: 100%;
    background: none;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 12px;
    margin-top: 8px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
    text-align: center;
}
.wizard-back:hover { border-color: rgba(255,255,255,.25); color: var(--text); }

.exchange-swap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    position: relative;
}

.exchange-swap__line {
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.exchange-swap__btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface-3);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 10px;
    transition: background .2s;
}

.exchange-contact {
    margin-top: 16px;
}

.exchange-contact__label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.exchange-contact__input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}

.exchange-contact__input::placeholder { color: var(--muted); }

.exchange-contact__input:focus {
    border-color: rgba(108,92,231,.5);
    box-shadow: 0 0 0 3px rgba(108,92,231,.12);
}

.exchange-contact__hint {
    font-size: 11px;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.5;
}

.exchange-contact--prefilled {
    margin-top: 12px;
    margin-bottom: 4px;
}
.exchange-contact__hint--ok {
    font-size: 14px;
    color: #4ade80;
    background: rgba(74,222,128,.08);
    border: 1px solid rgba(74,222,128,.2);
    border-radius: 10px;
    padding: 10px 14px;
    margin: 0;
}

.exchange-submit {
    width: 100%;
    height: 56px;
    margin-top: 18px;
    background: var(--grad-cta);
    color: #0B0F1A;
    font-size: 16px;
    font-weight: 800;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    letter-spacing: .2px;
    transition: box-shadow .2s, transform .1s;
    box-shadow: 0 4px 20px rgba(0,255,163,.25);
}

.exchange-submit:hover {
    box-shadow: 0 6px 30px rgba(0,255,163,.45);
    transform: translateY(-1px);
}

.exchange-submit:active { transform: scale(.99); }

.exchange-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
}

/* =========================================
   RATE WIDGET
   ========================================= */
/* ---- Rate widget ---- */
.rate-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    flex-wrap: wrap;
    backdrop-filter: blur(8px);
}

.rate-widget__pair {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rate-widget__divider {
    width: 1px;
    height: 32px;
    background: var(--border);
    align-self: center;
}

.rate-widget__hint {
    font-size: 11px;
    color: var(--muted);
    margin-left: auto;
    align-self: center;
    font-style: italic;
}

.rate-widget__label {
    color: var(--muted);
    font-size: 11px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.rate-widget__value {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.3px;
}

.rate-widget__unavailable {
    color: var(--muted);
    font-size: 14px;
}

.rate-widget__value--usd { color: var(--accent-2); }

/* ---- Совместимость старых классов (не используются на главной, но могут быть на order-detail) ---- */
.order-form__label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.currency-toggle { display: flex; background: var(--surface-2); border-radius: 8px; padding: 2px; gap: 2px; }
.currency-toggle__btn { font-size: 12px; font-weight: 600; padding: 4px 10px; border: none; border-radius: 6px; cursor: pointer; background: transparent; color: var(--muted); transition: background .15s, color .15s; }
.currency-toggle__btn--active { background: var(--surface-3); color: var(--primary); }
.order-form__amount-row { display: flex; align-items: center; position: relative; }
.order-form__amount-row input { flex: 1; padding-right: 36px !important; }
.order-form__amount-currency { position: absolute; right: 14px; font-size: 16px; font-weight: 700; color: var(--primary); pointer-events: none; }
.order-form__convert-hint { font-size: 12px; color: var(--accent-2); min-height: 18px; margin-top: 4px; }
.order-form__contact-hint { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.order-form__contact-hint code { color: var(--text-secondary); font-size: 11px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.calc-block { background: var(--surface); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 20px 24px; }
.calc-block__title { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.calc-block__row { display: flex; align-items: center; gap: 10px; }
.calc-block__field { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.calc-block__label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.calc-block__input { width: 100%; height: 48px; padding: 0 14px; background: var(--surface-2); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); color: var(--text); font-size: 15px; font-weight: 600; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.calc-block__input::placeholder { color: var(--muted); font-weight: 400; }
.calc-block__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.calc-block__arrow { font-size: 20px; color: var(--muted); flex-shrink: 0; margin-top: 20px; }
.calc-block__note { font-size: 12px; color: var(--muted); margin-top: 10px; font-style: italic; }
.order-form { background: var(--surface); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.order-form__title { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.order-form__form { display: flex; flex-direction: column; gap: 16px; }
.order-form__field { display: flex; flex-direction: column; gap: 6px; }
.order-form__label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.order-form__field input, .order-form__field select { width: 100%; height: 52px; padding: 0 16px; background: var(--surface-2); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); color: var(--text); font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.order-form__field input::placeholder { color: var(--muted); }
.order-form__field input:focus, .order-form__field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.order-form__field--error input, .order-form__field--error select { border-color: var(--danger); }
.order-form__error { font-size: 12px; color: var(--danger); }
.order-form__submit { width: 100%; height: 52px; background: var(--grad-cta); color: #0B0F1A; font-size: 16px; font-weight: 700; border: none; border-radius: var(--radius-sm); cursor: pointer; letter-spacing: .2px; transition: box-shadow .2s, transform .1s; box-shadow: 0 4px 20px rgba(0,255,163,.25); }
.order-form__submit:hover { box-shadow: 0 6px 28px rgba(0,255,163,.4); }
.order-form__submit:active { transform: scale(.98); }

/* =========================================
   HOW IT WORKS (3 шага)
   ========================================= */
.steps-section {
    padding: 8px 0;
}

.steps-section__title {
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
    color: var(--text);
    letter-spacing: -.3px;
}

.steps-section__sub {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: .2px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(15,21,37,.7);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    padding: 16px 18px;
    transition: border-color .2s, background .2s, transform .2s;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--grad-brand);
    opacity: 0;
    transition: opacity .2s;
}

.step:hover {
    border-color: rgba(123,94,234,.3);
    background: rgba(123,94,234,.06);
    transform: translateX(2px);
}

.step:hover::before { opacity: 1; }

.step__num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--grad-brand);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(123,94,234,.3);
}

.step__body { flex: 1; }

.step__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.step__desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* =========================================
   BENEFITS (доверие) — 2-column grid
   ========================================= */
.benefits-section {
    padding: 0;
}

.benefits-section__title {
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text);
    letter-spacing: -.3px;
}

.benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.benefit {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(15,21,37,.8);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    padding: 16px;
    transition: border-color .2s, background .2s, transform .2s;
    backdrop-filter: blur(8px);
}

.benefit:hover {
    border-color: rgba(123,94,234,.3);
    background: rgba(123,94,234,.06);
    transform: translateY(-2px);
}

.benefit__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(123,94,234,.3), rgba(0,212,255,.2));
    border: 1px solid rgba(123,94,234,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.benefit__body { flex: 1; }

.benefit__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.benefit__desc {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 3px;
    line-height: 1.45;
}

/* =========================================
   ACTION BUTTONS (после формы обмена)
   ========================================= */
.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04);
    color: var(--text);
}

.action-btn:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.2);
    transform: translateY(-1px);
}

.action-btn--orders {
    background: rgba(0,255,163,.08);
    border-color: rgba(0,255,163,.25);
    color: var(--primary);
}

.action-btn--orders:hover {
    background: rgba(0,255,163,.15);
    border-color: rgba(0,255,163,.4);
    color: var(--primary);
}

.action-btn--support {
    background: rgba(0,212,255,.08);
    border-color: rgba(0,212,255,.25);
    color: var(--accent-2);
}

.action-btn--support:hover {
    background: rgba(0,212,255,.15);
    border-color: rgba(0,212,255,.4);
    color: var(--accent-2);
}

.action-btn--install {
    background: linear-gradient(135deg, rgba(123,94,234,.2), rgba(0,212,255,.12));
    border-color: rgba(123,94,234,.35);
    color: #fff;
}

.action-btn--install:hover {
    background: linear-gradient(135deg, rgba(123,94,234,.3), rgba(0,212,255,.2));
    border-color: rgba(123,94,234,.5);
    box-shadow: 0 0 16px rgba(123,94,234,.25);
}

.action-btn__icon {
    font-size: 1.1em;
    line-height: 1;
}

@media (max-width: 480px) {
    .action-buttons { gap: 8px; }
    .action-btn { padding: 10px 14px; font-size: 13px; flex: 1; justify-content: center; min-width: 0; }
}

/* =========================================
   FINAL CTA
   ========================================= */
.cta-section {
    padding: 0 0 8px;
}

.cta-card {
    background: linear-gradient(135deg, rgba(123,94,234,.18) 0%, rgba(0,212,255,.09) 100%);
    border: 1px solid rgba(123,94,234,.28);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(123,94,234,.6), rgba(0,212,255,.5), transparent);
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: -60px; right: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,255,163,.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-card__title {
    font-size: 22px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -.3px;
}

.cta-card__sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 22px;
    letter-spacing: .2px;
}

.cta-card__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    background: var(--grad-cta);
    color: #0B0F1A;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow .2s, transform .1s;
    box-shadow: 0 4px 24px rgba(0,255,163,.3);
}

.btn-cta:hover {
    box-shadow: 0 6px 32px rgba(0,255,163,.5);
    transform: translateY(-2px);
    color: #0B0F1A;
}

.btn-tg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
}

.btn-tg:hover {
    border-color: rgba(0,212,255,.4);
    color: var(--accent-2);
    background: rgba(0,212,255,.05);
}

/* ---- sell-block compat ---- */
.sell-block { display: none; }
.features { display: none; }

/* =========================================
   ORDER DETAIL PAGE
   ========================================= */
.order-detail {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-detail__header {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 8px;
}

/* ---- Top bar: brand + nav ---- */
.order-detail__header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}

.order-detail__brand {
    font-size: 22px;
    font-weight: 900;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.5px;
    text-decoration: none;
    flex-shrink: 0;
}

.order-detail__brand-tm {
    font-size: 9px;
    font-weight: 400;
    -webkit-text-fill-color: var(--text-secondary);
    color: var(--text-secondary);
    vertical-align: super;
    margin-left: 1px;
}

.order-detail__nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-detail__my-orders-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 40px;
    background: rgba(0,255,163,.1);
    border: 1px solid rgba(0,255,163,.25);
    color: var(--primary);
    text-decoration: none;
    transition: background .2s, border-color .2s;
    white-space: nowrap;
}

.order-detail__my-orders-btn:hover {
    background: rgba(0,255,163,.2);
    border-color: rgba(0,255,163,.4);
}

/* ---- Info card ---- */
.order-detail__info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-bottom: 4px;
}

.order-detail__info-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.order-detail__info-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 500;
}

.order-detail__info-id {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.order-detail__info-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.order-detail__info-val--accent {
    color: var(--primary);
    font-size: 16px;
}

.order-detail__title {
    font-size: 22px;
    font-weight: 700;
}

.order-detail__id {
    color: var(--primary);
    font-family: 'Courier New', monospace;
}

.order-detail__back {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    transition: color .2s, border-color .2s;
}

.order-detail__back:hover {
    color: var(--text);
    border-color: var(--border-light);
}

/* =========================================
   ORDER STATUS CARD
   ========================================= */
.order-status {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-status__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.order-status__row:last-of-type { border-bottom: none; padding-bottom: 0; }

.order-status__label {
    color: var(--muted);
    font-size: 13px;
    flex-shrink: 0;
}

.order-status__value {
    font-weight: 600;
    font-size: 15px;
    text-align: right;
}

.order-status__value--highlight {
    color: var(--primary);
    font-size: 17px;
}

/* Status badges */
.order-status__badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.order-status__badge--new           { background: rgba(107,112,128,.2); color: #a0a8c0; }
.order-status__badge--offer_sent    { background: rgba(59,130,246,.2);  color: #60a5fa; }
.order-status__badge--client_confirmed { background: rgba(34,197,94,.15); color: #4ade80; }
.order-status__badge--waiting_payment  { background: rgba(245,158,11,.2); color: #fbbf24; }
.order-status__badge--payment_claimed  { background: rgba(249,115,22,.2); color: #fb923c; }
.order-status__badge--wallet_requested { background: rgba(168,85,247,.2); color: #c084fc; }
.order-status__badge--processing    { background: rgba(59,130,246,.2);  color: #60a5fa; }
.order-status__badge--done          { background: rgba(34,197,94,.2);   color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.order-status__badge--cancelled     { background: rgba(239,68,68,.2);   color: #f87171; }

/* Requisites block */
.order-status__requisites {
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-status__requisites-text {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--text);
    word-break: break-all;
    white-space: pre-wrap;
    background: var(--bg);
    border-radius: var(--radius-xs);
    padding: 12px;
    border: 1px solid var(--border);
}

.order-status__timer {
    font-size: 13px;
    color: var(--warning);
}

/* Countdown */
.order-status__countdown {
    font-weight: 700;
    color: var(--warning);
}

.order-status__countdown--warning { color: var(--danger); }
.order-status__countdown--expired { color: var(--danger); font-weight: 700; }

/* Done block */
.order-status__done {
    background: rgba(34,197,94,.1);
    border: 1px solid rgba(34,197,94,.3);
    border-radius: var(--radius-sm);
    padding: 16px;
    color: var(--success);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-status__tx {
    font-size: 13px;
    color: var(--text-secondary);
    word-break: break-all;
}

.order-status__tx-link--mempool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(247,147,26,.12);
    border: 1px solid rgba(247,147,26,.35);
    border-radius: var(--radius-sm);
    color: var(--primary) !important;
    font-size: 14px;
    font-weight: 700;
    margin-top: 8px;
    margin-bottom: 6px;
    text-decoration: none !important;
}
.order-status__tx-link--mempool:hover {
    background: rgba(247,147,26,.22);
}

.order-status__tx-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

.order-status__tx-link:hover { text-decoration: underline; }

.order-status__tx code {
    font-family: 'Courier New', monospace;
    color: var(--primary);
}

/* Cancelled block */
.order-status__cancelled {
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.3);
    border-radius: var(--radius-sm);
    padding: 16px;
    color: var(--danger);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-status__comment {
    font-size: 13px;
    color: var(--text-secondary);
}

.order-status__footer {
    padding-top: 4px;
    text-align: right;
}

.order-status__updated {
    font-size: 12px;
    color: var(--muted);
}

/* =========================================
   MESSAGES (Django messages framework)
   ========================================= */
.messages {
    max-width: 520px;
    margin: 0 auto 16px;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}

.message--success { background: rgba(34,197,94,.15); color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.message--error   { background: rgba(239,68,68,.15);  color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.message--warning { background: rgba(245,158,11,.15); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }
.message--info    { background: rgba(59,130,246,.15); color: #60a5fa; border: 1px solid rgba(59,130,246,.3); }

/* =========================================
   CLIENT ACTION BUTTONS
   ========================================= */
.order-status__client-action {
    margin-top: 20px;
    padding: 18px;
    background: rgba(247,147,26,.08);
    border: 1px solid rgba(247,147,26,.25);
    border-radius: var(--radius-sm);
}

.order-status__action-hint {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .2s, transform .1s;
}

.btn:active { transform: scale(.98); }

.btn--primary {
    background: linear-gradient(135deg, var(--primary), #e07b10);
    color: #fff;
}

.btn--primary:hover { opacity: .9; }

.btn--danger {
    background: linear-gradient(135deg, #ef4444, #c53030);
    color: #fff;
}

.btn--danger:hover { opacity: .9; }

.btn--wide { width: 100%; }

/* ---- Offer summary block ---- */
.order-status__client-action--offer {
    background: rgba(59,130,246,.08);
    border-color: rgba(59,130,246,.25);
}

.offer-summary__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 14px;
}

.offer-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.offer-summary__row:last-of-type { border-bottom: none; }

.offer-summary__label {
    color: var(--text-secondary);
    font-size: 14px;
}

.offer-summary__value {
    font-weight: 700;
    font-size: 16px;
}

.offer-summary__value--rub { color: var(--text); }

.offer-summary__value--btc { color: var(--primary); }

.offer-summary__btc-eq {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 2px;
}

.offer-summary__value--muted { color: var(--text-secondary); font-size: 14px; }

.offer-summary__row--accent {
    background: rgba(212,201,122,.06);
    border-radius: var(--radius-xs);
    padding: 8px 6px;
    margin: 0 -6px;
    border-bottom: none;
}

.offer-summary__row--main {
    padding-top: 12px;
    border-top: 2px solid rgba(212,201,122,.2);
    margin-top: 4px;
    border-bottom: none;
}

.offer-summary__note {
    font-size: 12px;
    color: var(--muted);
    margin: 10px 0 0;
    font-style: italic;
}

.offer-summary__btc-note {
    display: inline;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-left: 4px;
}

.offer-summary__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.offer-summary__form {
    width: 100%;
}

.offer-summary__cancel-row {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.offer-summary__cancel-row .btn--cancel-offer {
    font-size: 12px;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}
.offer-summary__cancel-row .btn--cancel-offer:hover {
    color: #ef4444;
    border-color: rgba(239,68,68,.4);
}

.btn--confirm {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
}
.btn--confirm:hover { opacity: .9; }

.btn--cancel-offer {
    background: transparent;
    border: 1px solid rgba(255,255,255,.15);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}
.btn--cancel-offer:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239,68,68,.06);
}

/* ---- Waiting indicator (пульсирующие точки) ---- */
.order-status__waiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 16px 14px;
    background: rgba(247,147,26,.06);
    border: 1px solid rgba(247,147,26,.18);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.waiting-indicator {
    display: flex;
    gap: 8px;
    align-items: center;
}

.waiting-indicator__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    animation: dot-pulse 1.4s ease-in-out infinite;
}

.waiting-indicator__dot:nth-child(1) { animation-delay: 0s; }
.waiting-indicator__dot:nth-child(2) { animation-delay: .2s; }
.waiting-indicator__dot:nth-child(3) { animation-delay: .4s; }

@keyframes dot-pulse {
    0%, 80%, 100% { transform: scale(.6); opacity: .4; }
    40%           { transform: scale(1);  opacity: 1; }
}

.waiting-indicator__text {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
}

.waiting-indicator__subtext {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin: 6px 0 0;
}

.waiting-indicator__subtext strong {
    color: var(--primary);
    font-weight: 700;
}

/* ---- Wallet sent block ---- */
.order-status__wallet-sent {
    background: rgba(34,197,94,.08);
    border: 1px solid rgba(34,197,94,.25);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-status__wallet-sent-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--success);
    margin: 0;
}

.order-status__wallet-sent-hint {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

.order-status__wallet-addr {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.order-status__wallet-label {
    font-size: 13px;
    color: var(--muted);
    flex-shrink: 0;
    padding-top: 2px;
}

.order-status__wallet-code {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--primary);
    background: var(--surface-2);
    padding: 3px 8px;
    border-radius: 4px;
    word-break: break-all;
}

/* ---- Magic link block ---- */
.order-status__magic-link {
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(99,102,241,.08);
    border: 1px solid rgba(99,102,241,.2);
    border-radius: var(--radius-sm);
}

.btn--copy {
    background: var(--surface-2);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn--copy:hover {
    background: var(--surface-3);
    color: var(--text);
}

.btn--copy.copied {
    color: var(--success);
    border-color: var(--success);
}

/* ---- Дополнительные варианты кнопок ---- */
.btn--outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}
.btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(247,147,26,.06);
}

.btn--ghost {
    background: var(--surface-2);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}
.btn--ghost:hover {
    background: var(--surface-3);
    color: var(--text);
}

.btn--mempool {
    background: rgba(247,147,26,.12);
    border: 1px solid rgba(247,147,26,.35);
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
}
.btn--mempool:hover { background: rgba(247,147,26,.22); }

.btn--lg { padding: 16px 24px; font-size: 16px; }

/* ---- DONE экран ---- */
.order-status__done { display: flex; flex-direction: column; gap: 10px; }
.order-status__done-title { font-size: 17px; font-weight: 700; color: var(--success); margin-bottom: 4px; }
.order-status__tx-hash {
    font-size: 11px;
    color: var(--text-secondary);
    word-break: break-all;
    font-family: monospace;
    padding: 4px 0;
}
.order-status__done-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

/* ---- order-detail навигация ---- */
.order-detail__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.order-detail__nav-link {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid rgba(247,147,26,.3);
    border-radius: var(--radius-sm);
    transition: background .2s;
    white-space: nowrap;
}
.order-detail__nav-link:hover { background: rgba(247,147,26,.08); }

/* =========================================
   МОИ ЗАЯВКИ
   ========================================= */
.my-orders {
    max-width: 520px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.my-orders__header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.my-orders__back {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
}
.my-orders__back:hover { color: var(--text); }
.my-orders__title { font-size: 22px; font-weight: 700; flex: 1; }
.my-orders__contact {
    font-size: 13px;
    color: var(--primary);
    background: rgba(247,147,26,.1);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.my-orders__list { display: flex; flex-direction: column; gap: 10px; }

.order-card {
    display: block;
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 14px 16px;
    text-decoration: none;
    transition: border-color .2s, background .2s;
}
.order-card:hover {
    border-color: var(--primary);
    background: var(--surface-3);
}
.order-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.order-card__id {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    font-family: monospace;
}
.order-card__status {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    background: var(--surface-3);
    color: var(--text-secondary);
}
.order-card__status--done { background: rgba(0,255,163,.12); color: var(--success); }
.order-card__status--cancelled { background: rgba(239,68,68,.12); color: #ef4444; }
.order-card__status--waiting_payment,
.order-card__status--processing { background: rgba(247,147,26,.12); color: var(--primary); }

.order-card__info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.order-card__amount { font-weight: 600; color: var(--text); }
.order-card__date { font-size: 11px; color: var(--text-secondary); }

.my-orders__empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 32px 0;
    font-size: 15px;
}
.my-orders__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

.my-orders__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 8px;
}
.pagination__btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.pagination__btn:hover { background: rgba(255,255,255,.06); border-color: var(--primary); }
.pagination__btn--disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}
.pagination__info {
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 50px;
    text-align: center;
}

/* =========================================
   СТРАНИЦА ВХОДА (my-orders/auth)
   ========================================= */
.auth-page {
    max-width: 420px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.auth-page__header { display: flex; flex-direction: column; gap: 8px; }
.auth-page__back { font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.auth-page__back:hover { color: var(--text); }
.auth-page__title { font-size: 24px; font-weight: 700; }

.auth-page__card {
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.auth-page__desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.auth-page__hint { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form__error {
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.3);
    border-radius: var(--radius-sm);
    color: #ef4444;
    padding: 10px 14px;
    font-size: 13px;
}
.auth-form__field { display: flex; flex-direction: column; gap: 6px; }
.auth-form__label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.auth-form__input {
    background: var(--surface-3);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    padding: 12px 14px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s;
}
.auth-form__input:focus { border-color: var(--primary); }

/* =========================================
   RESPONSIVE
   ========================================= */

/* ---- DESKTOP: ≥900px ---- */
@media (min-width: 900px) {
    /* Контейнер шире, двухколоночный layout */
    .home {
        max-width: 980px;
        padding: 0 40px;
        gap: 40px;
        display: grid;
        grid-template-columns: 1fr 420px;
        grid-template-areas:
            "hero      hero"
            "offline   offline"
            "pwa-ban   pwa-ban"
            "trust     trust"
            "rate      rate"
            "exchange  exchange"
            "how       benefits"
            "cta       cta";
        align-items: start;
    }
    .hero          { grid-area: hero; }
    .offline-strip { grid-area: offline; }
    .pwa-install-banner { grid-area: pwa-ban; }
    #rate-widget   { grid-area: rate; margin-top: 0 !important; }
    .trust-stats   { grid-area: trust; }
    .exchange-block{ grid-area: exchange; }
    .steps-section { grid-area: how; }
    .benefits-section { grid-area: benefits; }
    .cta-section   { grid-area: cta; }

    /* Hero */
    .hero { padding: 48px 0 64px; gap: 28px; }
    .hero__topbar {
        width: calc(100% + 80px);
        margin-left: -40px;
        margin-right: -40px;
        padding: 14px 40px;
    }
    .hero__brand { font-size: 28px; }
    .hero__my-orders-link,
    .hero__tg-link,
    .hero__install-btn { font-size: 13px; padding: 8px 16px; }
    .hero__title { font-size: 56px; letter-spacing: -2px; }
    .hero__subtitle { font-size: 16px; max-width: 480px; }
    .hero__brand-title { font-size: 100px; letter-spacing: -4px; }
    .hero__body { padding: 48px 20px 12px; gap: 0; }
    .hero__cta { margin-top: 32px; gap: 16px; }
    .hero__cta-primary { font-size: 18px; padding: 17px 40px; }
    .hero__cta-secondary { font-size: 16px; padding: 17px 28px; }

    /* Trust stats — 3 колонки крупнее */
    .trust-stats { gap: 0; }
    .trust-stat { padding: 28px 20px; }
    .trust-stat__value { font-size: 30px; }
    .trust-stat__label { font-size: 13px; }

    /* Exchange block */
    .exchange-block { padding: 40px 44px; }
    .exchange-block__title { font-size: 22px; margin-bottom: 28px; }
    .exchange-field { padding: 16px 22px; }
    .exchange-field__input { font-size: 32px; }
    .exchange-submit { font-size: 18px; padding: 18px; border-radius: 14px; }

    /* Steps — горизонтальный ряд */
    .steps { flex-direction: row; gap: 12px; }
    .step { flex: 1; flex-direction: column; text-align: center; padding: 24px 16px; }
    .step__num { margin: 0 auto 12px; width: 42px; height: 42px; font-size: 17px; }
    .steps-section__title { font-size: 24px; }

    /* Benefits — 2 колонки */
    .benefits { grid-template-columns: 1fr 1fr; gap: 12px; }
    .benefit { padding: 18px 16px; }
    .benefit__title { font-size: 14px; }
    .benefit__desc { font-size: 12px; }

    /* CTA */
    .cta-card { padding: 48px 40px; }
    .cta-card__title { font-size: 30px; }
    .cta-card__actions { flex-direction: row; justify-content: center; gap: 16px; }
    .btn-cta, .btn-tg { width: auto; }

    /* Offline strip */
    .offline-strip__inner { gap: 20px; }
    .offline-strip__desc { display: block; }

    /* Order pages */
    .order-detail { max-width: 640px; margin: 0 auto; padding: 0 20px; }
    .order-form { padding: 40px; }
}

/* ---- TABLET: 600px – 899px ---- */
@media (min-width: 600px) and (max-width: 899px) {
    .home { max-width: 680px; padding: 0 24px; gap: 28px; }
    .hero { padding: 32px 0 48px; gap: 22px; }
    .hero__topbar { width: calc(100% + 48px); margin-left: -24px; margin-right: -24px; padding: 12px 24px; }
    .hero__brand { font-size: 26px; }
    .hero__title { font-size: 46px; letter-spacing: -1.5px; }
    .hero__subtitle { font-size: 15px; }
    .hero__tagline { font-size: 17px; }
    .hero__brand-title { font-size: 64px; letter-spacing: -2px; }
    .hero__desc { font-size: 20px; }
    .hero__body { gap: 18px; padding: 28px 20px 6px; }
    .hero__cta-primary { font-size: 17px; padding: 16px 36px; }
    .hero__cta-secondary { font-size: 15px; padding: 16px 24px; }

    .trust-stat { padding: 22px 12px; }
    .trust-stat__value { font-size: 26px; }

    .exchange-block { padding: 32px 36px; }
    .exchange-block__title { font-size: 20px; }
    .exchange-field__input { font-size: 28px; }
    .exchange-submit { font-size: 17px; padding: 17px; }

    .steps { gap: 10px; }
    .step { padding: 16px 18px; }
    .benefits { grid-template-columns: 1fr 1fr; gap: 10px; }

    .order-detail, .order-form { padding: 32px; }
}

/* ---- MOBILE: ≤480px ---- */
@media (max-width: 480px) {
    /* Контейнер */
    .home { max-width: 100%; padding: 0 16px; gap: 16px; }
    .container { padding: 0 16px; }

    /* Hero */
    .hero { padding: 0 0 24px; gap: 16px; }
    .hero__topbar {
        padding: 9px 12px;
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
        gap: 6px;
    }
    .hero__topbar-nav { gap: 6px; }
    .hero__nav-left { gap: 6px; }
    .hero__brand { font-size: 18px; }
    .hero__my-orders-link,
    .hero__tg-link,
    .hero__install-btn { padding: 7px 10px; font-size: 12px; gap: 0; }
    .btn-text--full { display: none; }
    .btn-text--short { display: none; }
    .btn-icon { font-size: 16px; }

    .hero__title { font-size: 30px; letter-spacing: -1px; line-height: 1.1; }
    .hero__subtitle { font-size: 13px; }
    .hero__tagline { font-size: 14px; line-height: 1.5; }
    .hero__brand-title { font-size: 46px; letter-spacing: -1px; }
    .hero__desc { font-size: 16px; line-height: 1.45; }
    .hero__body { gap: 12px; padding: 16px 4px 4px; }
    .hero__nav-left { flex-wrap: wrap; gap: 4px; }
    .hero__cta { gap: 8px; width: 100%; }
    .hero__cta-primary { width: 100%; justify-content: center; font-size: 15px; padding: 14px 20px; }
    .hero__cta-secondary { width: 100%; justify-content: center; font-size: 14px; padding: 13px 20px; }

    /* Trust stats */
    .trust-stats { border-radius: 14px; }
    .trust-stat { padding: 14px 6px; }
    .trust-stat__value { font-size: 17px; }
    .trust-stat__label { font-size: 10px; }

    /* Rate widget */
    #rate-widget { margin-top: 0 !important; }

    /* Exchange block */
    .exchange-block { padding: 18px 14px; border-radius: 14px; margin-top: 0 !important; }
    .exchange-block__title { font-size: 16px; margin-bottom: 16px; }
    .exchange-field { padding: 12px 14px; }
    .exchange-field__input { font-size: 22px; }
    .exchange-field__label { font-size: 10px; }
    .exchange-contact__input { font-size: 14px; padding: 12px 14px; }
    .exchange-submit { font-size: 15px; padding: 15px; border-radius: 12px; }
    .wizard-back { font-size: 13px; padding: 10px; }
    .wizard-summary { padding: 10px 12px; font-size: 13px; }

    /* Steps */
    .steps-section { padding: 0; }
    .steps-section__title { font-size: 18px; margin-bottom: 6px; }
    .steps-section__sub { font-size: 11px; margin-bottom: 12px; }
    .steps { gap: 8px; }
    .step { padding: 12px 14px; gap: 12px; }
    .step__num { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; flex-shrink: 0; }
    .step__title { font-size: 13px; }
    .step__desc { font-size: 11px; }

    /* Benefits */
    .benefits-section__title { font-size: 18px; margin-bottom: 12px; }
    .benefits { grid-template-columns: 1fr 1fr; gap: 8px; }
    .benefit { padding: 12px 10px; gap: 8px; }
    .benefit__icon { width: 30px; height: 30px; font-size: 14px; border-radius: 8px; flex-shrink: 0; }
    .benefit__title { font-size: 11px; }
    .benefit__desc { font-size: 10px; margin-top: 2px; }

    /* CTA */
    .cta-card { padding: 22px 14px; border-radius: 16px; }
    .cta-card__title { font-size: 19px; letter-spacing: -.5px; }
    .cta-card__sub { font-size: 12px; }
    .cta-card__actions { gap: 8px; }
    .btn-cta, .btn-tg { width: 100%; justify-content: center; font-size: 14px; padding: 14px 16px; }

    /* Offline strip */
    .offline-strip__inner { flex-direction: column; gap: 12px; align-items: flex-start; }
    .offline-strip__desc { display: none; }
    .offline-strip__btn { width: 100%; justify-content: center; }

    /* Wizard dots */
    .wizard-steps { gap: 8px; margin-bottom: 18px; }
    .wizard-step__dot { width: 28px; height: 28px; font-size: 12px; }
    .wizard-step__label { font-size: 11px; }

    /* Order pages */
    .order-detail { padding: 0 4px; }
    .order-form { padding: 16px; }
    .order-status__value { font-size: 13px; }

    /* Auth page */
    .auth-page { padding: 16px 0 32px; }
    .auth-page__card { padding: 18px 14px; }
    .auth-page__title { font-size: 20px; }

    /* Footer */
    .footer { padding: 16px; }
    .footer__text { font-size: 12px; }
    .footer__links { gap: 10px; }
    .footer__link { font-size: 12px; }
}

/* =========================================
   BTN -- CANCEL SOFT (клиент: отмена на NEW/CLIENT_CONFIRMED)
   ========================================= */
.btn--cancel-soft {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    font-size: 13px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    width: 100%;
    transition: background .2s, color .2s, border-color .2s;
}

.btn--cancel-soft:hover {
    background: rgba(239,68,68,.08);
    color: #f87171;
    border-color: rgba(239,68,68,.3);
}

/* cancel-only блок — менее заметный, чем основные действия */
.order-status__client-action--cancel-only {
    background: transparent;
    border: 1px solid var(--border);
    margin-top: 12px;
    padding: 12px 16px;
}

/* =========================================
   PWA INSTALL BANNER
   ========================================= */
.pwa-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a2e;
    border-top: 1px solid rgba(247,147,26,.35);
    padding: 14px 16px;
    box-shadow: 0 -4px 24px rgba(0,0,0,.4);
    animation: pwa-slide-up .35s ease;
}

@keyframes pwa-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}

.pwa-banner__icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.pwa-banner__body {
    flex: 1;
    min-width: 0;
}

.pwa-banner__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.pwa-banner__sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
    line-height: 1.4;
}

.pwa-banner__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-banner__btn {
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s;
}

.pwa-banner__btn:hover { opacity: .85; }

.pwa-banner__close {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 4px;
    transition: color .2s;
}

.pwa-banner__close:hover { color: var(--text); }

/* ---- Push уведомления ---- */
.order-detail__push-row {
    margin-top: 16px;
    text-align: center;
}

.btn--push {
    background: transparent;
    border: 1px solid #374151;
    color: #9ca3af;
    font-size: 12px;
    padding: 7px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s;
}

.btn--push:hover {
    border-color: #f59e0b;
    color: #f59e0b;
}

.btn--push[data-subscribed="1"] {
    border-color: #4ade80;
    color: #4ade80;
}

/* Кнопка установки PWA в topbar */
.hero__install-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(123,94,234,.25), rgba(0,212,255,.15));
    border: 1px solid rgba(123,94,234,.4);
    color: #fff;
    text-decoration: none;
    transition: background .2s, border-color .2s, box-shadow .2s;
    white-space: nowrap;
}

.hero__install-btn:hover {
    background: linear-gradient(135deg, rgba(123,94,234,.4), rgba(0,212,255,.25));
    border-color: rgba(123,94,234,.6);
    box-shadow: 0 0 16px rgba(123,94,234,.3);
    color: #fff;
}

/* Офлайн-полоса — premium card */
.offline-strip {
    background: linear-gradient(135deg, rgba(123,94,234,.15) 0%, rgba(0,212,255,.08) 100%);
    border: 1px solid rgba(123,94,234,.25);
    border-radius: 16px;
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(123,94,234,.1);
}

.offline-strip::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(123,94,234,.5), rgba(0,212,255,.4), transparent);
}

.offline-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.offline-strip__left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.offline-strip__icons {
    font-size: 32px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(0,255,163,.4));
    line-height: 1;
}

.offline-strip__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.offline-strip__title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: .1px;
}

.offline-strip__desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.offline-strip__btn {
    background: var(--primary);
    color: #060D18;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(0,255,163,.3);
    letter-spacing: .1px;
}

.offline-strip__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,255,163,.45);
}

.offline-strip__installed {
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 520px) {
    .offline-strip__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .offline-strip__btn {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}

/* Кнопка обновления статуса */
.btn--refresh {
    background: #3b82f6;
    color: white;
    border: 1px solid #3b82f6;
    transition: all .2s;
}

.btn--refresh:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.btn--refresh:active {
    transform: translateY(0);
}

/* Блок действий с кнопками */
.order-status__action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.order-status__action-buttons .btn {
    flex: 1;
    min-width: 140px;
}

/* Секция обновления */
.order-status__refresh-section {
    margin: 20px 0;
    padding: 16px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
}

@media (max-width: 480px) {
    .order-status__action-buttons {
        flex-direction: column;
    }
    
    .order-status__action-buttons .btn {
        flex: none;
        width: 100%;
    }
}

/* PWA Installation Banner */
.pwa-install-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    margin: 32px 0;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.pwa-install__content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pwa-install__icon {
    font-size: 48px;
    flex-shrink: 0;
}

.pwa-install__text {
    flex: 1;
}

.pwa-install__title {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
}

.pwa-install__subtitle {
    margin: 0 0 16px 0;
    font-size: 16px;
    opacity: 0.9;
}

.pwa-install__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8px;
}

.pwa-install__features li {
    font-size: 14px;
    opacity: 0.9;
}

.pwa-install__actions {
    flex-shrink: 0;
}

.btn--pwa-install {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn--pwa-install:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.pwa-install__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.pwa-install__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pwa-installed-msg {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    border: 2px solid rgba(76, 175, 80, 0.3);
}

/* PWA Benefits Modal */
.pwa-benefits-modal {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--surface-2);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    padding: 24px;
    max-width: 400px;
    border: 1px solid var(--border-light);
}

.pwa-benefits__content h4 {
    margin: 0 0 16px 0;
    color: var(--text);
    font-size: 18px;
}

.pwa-benefits__grid {
    display: grid;
    gap: 16px;
}

.pwa-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-benefit__icon {
    font-size: 24px;
    flex-shrink: 0;
}

.pwa-benefit__text {
    font-size: 14px;
    color: var(--text-secondary);
}

.pwa-benefit__text strong {
    color: var(--text);
}

/* Offline Notice */
.offline-notice {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: #f59e0b;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3);
    animation: slideDown 0.3s ease;
}

.offline-notice__content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.offline-notice__icon {
    font-size: 20px;
}

.offline-notice__text {
    font-size: 14px;
    font-weight: 500;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Online Status Indicator */
.status-online {
    color: #10b981;
    font-weight: 500;
}

.status-offline {
    color: #f59e0b;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pwa-install__content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .pwa-install__features {
        grid-template-columns: 1fr;
    }
    
    .pwa-benefits-modal {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .offline-notice {
        left: 20px;
        right: 20px;
        transform: none;
    }
    
    .order-detail__header {
        flex-wrap: wrap;
        gap: 8px;
    }
    .order-detail__nav {
        gap: 6px;
        flex-wrap: wrap;
    }
}

/* ---- VERY SMALL: ≤360px ---- */
@media (max-width: 360px) {
    .hero__brand { font-size: 16px; }
    .hero__brand-title { font-size: 38px; letter-spacing: -.5px; }
    .hero__tagline { font-size: 13px; }
    .hero__desc { font-size: 14px; }
    .hero__body { gap: 10px; padding: 12px 4px 4px; }
    .hero__topbar { padding: 8px 10px; }
    .hero__my-orders-link,
    .hero__tg-link,
    .hero__install-btn { padding: 5px 7px; font-size: 10px; gap: 2px; }
    .hero__topbar-nav { gap: 4px; }
    .hero__nav-left { gap: 4px; flex-wrap: wrap; }
    .hero__cta-primary { font-size: 14px; padding: 12px 16px; }
    .hero__cta-secondary { font-size: 13px; padding: 12px 16px; }
}
