/* BOT-panel user cabinet theme */
body.bot-panel-body {
    background: #ffffff;
    color: #111111;
    padding-top: 56px;
}

.bot-panel-body main.flex-shrink-0 {
    background: #ffffff;
    min-height: calc(100vh - 56px - 60px);
}

body.bot-panel-body .footer {
    background: #ffffff;
    border-top: 1px solid #dee2e6;
    color: #111111;
}

.navbar.bot-panel-navbar {
    background-color: #000000 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bot-panel-container {
    padding-top: 1rem;
    padding-bottom: 5rem;
}

.bot-panel-card {
    border: 1px solid #dee2e6;
    box-shadow: none;
}

.bot-panel-card > .card-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    color: #111;
}

.bot-panel-card > .card-header {
    border-bottom: 1px solid #dee2e6;
    color: #111111;
}

.bot-panel-table {
    color: #111111;
}

.bot-panel-table thead th {
    border-color: #dee2e6;
    background: #f8f9fa;
    color: #111111;
}

.bot-panel-table td,
.bot-panel-table th {
    border-color: #dee2e6;
}

.badge-success {
    background-color: #026336;
}

.badge-danger {
    background-color: #dc3545;
}

.badge-warning {
    background-color: #ffc107;
    color: #111111;
}

.btn-success {
    background-color: #026336;
    border-color: #026336;
}

.btn-success:hover,
.btn-success:focus {
    background-color: #04af5f;
    border-color: #04af5f;
}

/* ============================================================
   USER PANEL (logged-in) — ТЗ SmartGT:
   чорне fixed меню, білий фон, чорний текст, зелені кнопки,
   червоний/жовтий статуси, сірі лінії таблиць
   ============================================================ */
body.bot-panel-body {
    background: #ffffff;
    color: #111111;
}

body.bot-panel-body main.flex-shrink-0,
body.bot-panel-body .bot-panel-container {
    background: #ffffff;
    color: #111111;
}

body.bot-panel-body h1,
body.bot-panel-body h2,
body.bot-panel-body h3,
body.bot-panel-body h4,
body.bot-panel-body .card,
body.bot-panel-body .table,
body.bot-panel-body label,
body.bot-panel-body .form-control {
    color: #111111;
}

body.bot-panel-body .text-muted {
    color: #666666 !important;
}

body.bot-panel-body .card {
    border: 1px solid #dee2e6;
    box-shadow: none;
    background: #ffffff;
}

body.bot-panel-body .card-header {
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
    color: #111111;
}

body.bot-panel-body .card-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    color: #111111;
}

body.bot-panel-body .breadcrumb {
    background: transparent;
    padding-left: 0;
    color: #111111;
}

body.bot-panel-body .breadcrumb-item.active {
    color: #666666;
}

body.bot-panel-body .btn-primary,
body.bot-panel-body .btn-dark {
    background-color: #026336;
    border-color: #026336;
    color: #ffffff;
}

body.bot-panel-body .btn-primary:hover,
body.bot-panel-body .btn-dark:hover,
body.bot-panel-body .btn-primary:focus,
body.bot-panel-body .btn-dark:focus {
    background-color: #04af5f;
    border-color: #04af5f;
    color: #ffffff;
}

body.bot-panel-body .icon-button.btn-primary,
body.bot-panel-body .icon-button.btn-dark {
    background-color: #026336;
    border-color: #026336;
    color: #ffffff;
}

body.bot-panel-body .table,
body.bot-panel-body .table td,
body.bot-panel-body .table th {
    border-color: #dee2e6;
    color: #111111;
}

body.bot-panel-body .table thead th {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #111111;
}

body.bot-panel-body .grid-view .summary,
body.bot-panel-body .grid-view .pagination {
    color: #111111;
}

body.bot-panel-body .alert-success {
    background-color: #d4edda;
    border-color: #026336;
    color: #111111;
}

body.bot-panel-body .alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #111111;
}

body.bot-panel-body .alert-danger {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #111111;
}

body.bot-panel-body .badge-success {
    background-color: #026336;
    color: #ffffff;
}

body.bot-panel-body .badge-danger {
    background-color: #dc3545;
    color: #ffffff;
}

body.bot-panel-body .badge-warning {
    background-color: #ffc107;
    color: #111111;
}

body.bot-panel-body .bot-panel-toolbar .btn,
body.bot-panel-body .bot-page-toolbar .btn {
    background-color: #026336;
    border-color: #026336;
    color: #ffffff;
}

body.bot-panel-body .bot-panel-toolbar .btn:hover,
body.bot-panel-body .bot-page-toolbar .btn:hover {
    background-color: #04af5f;
    border-color: #04af5f;
}

body.bot-panel-body .bot-panel-toolbar .btn i,
body.bot-panel-body .bot-page-toolbar .btn i {
    margin-right: 0.35rem;
}

body.bot-panel-body .form-group .btn-success i {
    margin-right: 0.35rem;
}

body.bot-panel-body .btn-outline-primary {
    color: #026336;
    border-color: #026336;
}

body.bot-panel-body .btn-outline-primary:hover {
    background-color: #026336;
    border-color: #026336;
    color: #ffffff;
}

body.bot-panel-body .badge-info {
    background-color: #026336;
    color: #ffffff;
}

.bot-panel-chat-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.bot-panel-chat-header h5 {
    margin: 0;
    color: #111111;
}

.bot-panel-chat-meta {
    color: #666666;
    font-size: 0.9rem;
}

#bot-chat-thread {
    max-height: 480px;
    overflow-y: auto;
    padding: 0.5rem 0.25rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
}

.bot-panel-chat-bubble {
    margin-bottom: 1rem;
}

.bot-panel-chat-bubble .chat-meta {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.bot-panel-chat-bubble .chat-body {
    display: inline-block;
    max-width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    color: #111111;
    word-break: break-word;
}

.bot-panel-chat-bubble.is-right {
    text-align: right;
}

.bot-panel-chat-bubble.is-right .chat-body {
    background: #e8f5ee;
    border-color: #c3e6cb;
}

.bot-panel-form-page .card-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.bot-support-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: #026336;
    color: #fff !important;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
    font-weight: 600;
}

.bot-support-fab:hover {
    background: #04af5f;
    color: #fff !important;
}

body.bot-landing-body .bot-support-fab {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

/* ============================================================
   LANDING (guests only) — тіло як sgt.com.ua/BOT-panel.html
   ============================================================ */
body.bot-landing-body {
    background: #0a0f0d;
    color: #e8ece9;
    padding-top: 56px;
    scroll-behavior: smooth;
}

body.bot-landing-body main.flex-shrink-0 {
    background: #0a0f0d;
    min-height: calc(100vh - 56px);
}

body.bot-landing-body .footer {
    background: #060908;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9aa3a0;
}

body.bot-landing-body .footer a {
    color: #04af5f;
}

body.bot-landing-body .navbar.bot-panel-navbar {
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px);
}

body.bot-landing-body .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.95rem;
}

body.bot-landing-body .navbar-nav .nav-link:hover {
    color: #fff !important;
}

body.bot-landing-body .bot-nav-login .nav-link {
    background: #026336;
    color: #fff !important;
    border-radius: 999px;
    padding: 0.4rem 1.25rem !important;
    margin-left: 0.5rem;
    box-shadow: 0 0 20px rgba(4, 175, 95, 0.35);
}

body.bot-landing-body .bot-nav-login .nav-link:hover {
    background: #04af5f;
}

.bot-landing-hero {
    background: radial-gradient(ellipse at 30% 20%, rgba(2, 99, 54, 0.18) 0%, transparent 55%),
        linear-gradient(180deg, #0a0f0d 0%, #0d1411 100%);
    color: #fff;
    padding: 4rem 0 3.5rem;
}

.bot-landing-hero h1 {
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.bot-landing-lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 34rem;
}

.bot-landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(2, 99, 54, 0.25);
    border: 1px solid rgba(4, 175, 95, 0.35);
    color: #b8f0d0;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.bot-landing-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #04af5f;
    box-shadow: 0 0 8px #04af5f;
}

.bot-landing-btn-glow {
    box-shadow: 0 0 24px rgba(4, 175, 95, 0.4);
}

.bot-landing-stats .bot-landing-stat {
    background: rgba(12, 18, 15, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.bot-landing-stat i {
    color: #04af5f;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.bot-landing-stat strong {
    color: #fff;
    font-size: 0.95rem;
}

.bot-landing-stat span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    line-height: 1.35;
}

.bot-landing-mockup {
    background: rgba(20, 28, 24, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem 1.25rem 1.25rem;
    box-shadow: 0 0 60px rgba(4, 175, 95, 0.12);
}

.bot-landing-mockup-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bot-landing-mockup-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.bot-landing-mockup-bar em {
    margin-left: auto;
    font-style: normal;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

.bot-landing-mockup-block {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
}

.bot-landing-mockup-block:last-child {
    margin-bottom: 0;
}

.bot-landing-mockup-block h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #fff;
}

.bot-landing-mockup-block h3 i {
    color: #04af5f;
    margin-right: 0.4rem;
}

.bot-landing-mockup-block ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}

.bot-landing-section {
    padding: 3.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Tariffs — dark glass cards, equal height */
.bot-landing-section-tariffs {
    background: radial-gradient(ellipse at 50% 0%, rgba(2, 99, 54, 0.1) 0%, transparent 55%), #0a0f0d;
}

.bot-landing-tariff-row {
    align-items: stretch;
}

.bot-landing-tariff-note {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 1.25rem;
}

.bot-landing-tabs .bot-landing-tab {
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.bot-landing-tabs .bot-landing-tab.active {
    box-shadow: 0 0 20px rgba(4, 175, 95, 0.35);
}

.bot-landing-tariff {
    position: relative;
    width: 100%;
    background: rgba(12, 18, 15, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.bot-landing-tariff-body {
    flex: 1 1 auto;
}

.bot-landing-tariff-cta {
    margin-top: auto;
    padding-top: 1rem;
}

.bot-landing-tariff-cta .btn {
    border-radius: 999px;
    min-height: 48px;
    font-weight: 600;
    padding: 0.65rem 1rem;
}

.bot-landing-tariff-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(4, 175, 95, 0.12);
    color: #04af5f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bot-landing-tariff.featured {
    border-color: rgba(4, 175, 95, 0.5);
    box-shadow: 0 0 32px rgba(4, 175, 95, 0.15);
}

.bot-landing-tariff--business,
.bot-landing-tariff--max {
    border-color: rgba(156, 89, 255, 0.35);
}

.bot-landing-tariff-badge--purple {
    color: #b388ff !important;
    border-color: rgba(179, 136, 255, 0.45) !important;
    background: rgba(179, 136, 255, 0.1) !important;
}

.bot-landing-tariff-list,
.bot-landing-tariff-benefits ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.bot-landing-tariff-list li,
.bot-landing-tariff-benefits li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.35rem;
}

.bot-landing-tariff-list li::before,
.bot-landing-tariff-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #04af5f;
}

.bot-landing-tariff-benefits {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-top: 1rem;
    min-height: 140px;
}

.bot-landing-price {
    text-align: center;
}

/* Features — 5 equal cards in a row */
.bot-landing-section-features {
    background: #0a0f0d;
}

.bot-landing-features-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 1199.98px) {
    .bot-landing-features-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .bot-landing-features-grid {
        grid-template-columns: 1fr;
    }
}

.bot-landing-feature {
    background: rgba(12, 18, 15, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    min-height: 160px;
    display: flex;
    flex-direction: column;
}

.bot-landing-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(4, 175, 95, 0.12);
    color: #04af5f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.bot-landing-section h2 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.bot-landing-sub {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 2rem;
    max-width: 40rem;
}

.bot-landing-tabs {
    display: inline-flex;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 0.25rem;
}

.bot-landing-tab {
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    cursor: default;
}

.bot-landing-tab.active {
    background: #026336;
    color: #fff;
}

.bot-landing-tariff {
    position: relative;
    width: 100%;
    background: rgba(12, 18, 15, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Instructions — dark accordion like reference */
.bot-landing-section-instructions {
    background: radial-gradient(ellipse at 50% 0%, rgba(2, 99, 54, 0.12) 0%, transparent 50%),
        #0a0f0d;
}

.bot-landing-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bot-landing-section-head h2 {
    margin-bottom: 0;
}

.bot-landing-accordions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bot-landing-accordion {
    background: rgba(12, 18, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bot-landing-accordion[open] {
    border-color: rgba(4, 175, 95, 0.55);
    box-shadow: 0 0 24px rgba(4, 175, 95, 0.12);
}

.bot-landing-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.bot-landing-accordion summary::-webkit-details-marker {
    display: none;
}

.bot-landing-acc-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: rgba(2, 99, 54, 0.25);
}

.bot-landing-acc-icon--orange {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.bot-landing-acc-icon--green {
    background: rgba(4, 175, 95, 0.15);
    color: #04af5f;
}

.bot-landing-acc-icon--blue {
    background: rgba(33, 150, 243, 0.15);
    color: #42a5f5;
}

.bot-landing-acc-title {
    flex: 1;
    font-weight: 600;
    color: #fff;
    font-size: 0.98rem;
    line-height: 1.35;
}

.bot-landing-acc-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    position: relative;
}

.bot-landing-acc-toggle::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -65%) rotate(45deg);
    transition: transform 0.2s;
}

.bot-landing-accordion[open] .bot-landing-acc-toggle::after {
    transform: translate(-50%, -35%) rotate(-135deg);
}

.bot-landing-accordion-body {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bot-landing-steps {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1.25rem 0;
}

.bot-landing-step {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.bot-landing-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #026336;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bot-landing-step p {
    margin: 0;
    padding-top: 0.15rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.45;
}

.bot-landing-step p strong {
    color: #fff;
    font-weight: 600;
}

.bot-landing-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.bot-landing-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.bot-landing-video--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0;
    min-height: 220px;
}

.bot-landing-video--placeholder i {
    font-size: 3rem;
    color: #ff0000;
    opacity: 0.85;
}

.bot-landing-duration {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.bot-landing-tariff.featured {
    border-color: rgba(4, 175, 95, 0.45);
    box-shadow: 0 0 30px rgba(4, 175, 95, 0.12);
}

.bot-landing-tariff-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #04af5f;
    border: 1px solid rgba(4, 175, 95, 0.4);
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
}

.bot-landing-tariff-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bot-landing-tariff-head i {
    font-size: 1.25rem;
    color: #04af5f;
}

.bot-landing-tariff-head h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.bot-landing-tariff-head small {
    color: rgba(255, 255, 255, 0.5);
}

.bot-landing-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.bot-landing-price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
}

.bot-landing-tariff-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.5rem;
}

.bot-landing-tariff-list,
.bot-landing-tariff-benefits ul {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
}

.bot-landing-feature i {
    font-size: 1.35rem;
    color: #04af5f;
    margin-bottom: 0.65rem;
}

.bot-landing-feature h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.35rem;
}

.bot-landing-feature p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

/* removed old accordion styles — see bot-landing-section-instructions */

/* Legacy light landing helpers (unused on dark landing) */
.bot-landing-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.25rem;
    height: 100%;
    background: #fff;
}

.bot-landing-instruction {
    border-left: 3px solid #026336;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.bot-landing-cta .btn-lg {
    padding: 0.75rem 2rem;
}

/* Hero CTA — buttons side by side on all screen sizes */
.bot-landing-cta {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
}

.bot-landing-cta .btn {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    margin-left: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (max-width: 399.98px) {
    .bot-landing-cta .btn-lg {
        padding: 0.6rem 0.85rem;
        font-size: 0.9rem;
    }
}

/* All panel buttons — centered label/icon (not block/full-width) */
body.bot-panel-body .btn {
    text-align: center;
}

body.bot-panel-body .bot-panel-toolbar .btn,
body.bot-panel-body .bot-page-toolbar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.bot-panel-body .bot-list-col-actions {
    width: 1%;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    padding: 0.35rem 0.45rem !important;
    line-height: 1.2;
}

body.bot-panel-body .bot-index-table thead .bot-list-col-actions {
    display: table-cell !important;
    font-size: 0.75rem;
    white-space: nowrap;
}

body.bot-panel-body .bot-index-table tbody td.bot-list-col-actions {
    display: table-cell !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

/* Grid tables — action buttons in one horizontal row */
body.bot-panel-body .gridview.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

body.bot-panel-body .bot-grid-actions-wrap {
    display: inline-flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

body.bot-panel-body .bot-grid-actions-wrap .bot-grid-action-btn {
    float: none !important;
    display: inline-flex !important;
}

body.bot-panel-body .bot-grid-action-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    min-width: 1.65rem;
    max-width: 1.65rem;
    padding: 0 !important;
    line-height: 1;
    flex-shrink: 0;
}

body.bot-panel-body .bot-grid-action-icon {
    font-size: 12px !important;
    line-height: 1;
    width: 1em;
    text-align: center;
    margin: 0 !important;
}

/* Bot list — all columns visible, horizontal scroll on narrow screens */
body.bot-panel-body .bot-index-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

body.bot-panel-body .bot-index-grid.gridview.table-responsive {
    overflow: visible;
    display: block;
    width: 100%;
}

body.bot-panel-body .bot-index-table {
    width: 100%;
    table-layout: auto;
    margin-bottom: 0;
}

body.bot-panel-body .bot-list-col-id {
    width: 2.75rem;
    max-width: 2.75rem;
    white-space: nowrap;
    text-align: center;
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
}

body.bot-panel-body .bot-list-col-name {
    width: auto;
    min-width: max-content;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    line-height: 1.25;
}

body.bot-panel-body .bot-list-col-type {
    width: auto;
    min-width: 7rem;
    max-width: none;
    white-space: nowrap;
    text-align: center;
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
}

body.bot-panel-body .bot-list-col-visible {
    width: auto;
    min-width: 6.5rem;
    max-width: none;
    white-space: nowrap;
    text-align: center;
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
}

body.bot-panel-body .bot-list-col-visible .badge {
    white-space: nowrap;
    font-size: 0.75rem;
    padding: 0.25em 0.55em;
}

body.bot-panel-body .bot-index .bot-grid-actions-wrap {
    display: inline-flex !important;
    flex-flow: column nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    vertical-align: middle;
}

body.bot-panel-body .bot-index .bot-grid-actions-wrap .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    float: none;
    margin: 0;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    padding: 0 !important;
    line-height: 1;
}

body.bot-panel-body .bot-index-table th,
body.bot-panel-body .bot-index-table td {
    text-align: center;
    vertical-align: middle;
}

body.bot-panel-body .bot-index-table .bot-list-col-name {
    text-align: center;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

body.bot-panel-body .bot-index-table .bot-list-col-id .form-control {
    max-width: 2.5rem;
    margin: 0 auto;
    padding: 0.2rem 0.25rem;
    text-align: center;
    font-size: 0.8125rem;
}

body.bot-panel-body .bot-index-table .bot-list-col-name .form-control,
body.bot-panel-body .bot-index-table .bot-list-col-type .form-control,
body.bot-panel-body .bot-index-table .bot-list-col-visible .form-control {
    padding: 0.2rem 0.35rem;
    font-size: 0.8125rem;
}

body.bot-panel-body .bot-grid-actions-wrap {
    display: inline-flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

body.bot-panel-body .bot-grid-actions-wrap .bot-grid-action-btn {
    float: none !important;
    display: inline-flex !important;
}

@media (min-width: 768px) {
    body.bot-panel-body .bot-list-col-type {
        min-width: 7.5rem;
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    body.bot-panel-body .bot-list-col-visible {
        min-width: 7rem;
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    body.bot-panel-body .bot-list-col-actions {
        width: 1%;
        padding: 0.35rem 0.5rem !important;
    }

    body.bot-panel-body .bot-index .bot-grid-actions-wrap {
        flex-flow: row nowrap !important;
        gap: 0.25rem;
    }
}

@media (max-width: 767.98px) {
    body.bot-panel-body .bot-index-table {
        table-layout: auto;
        min-width: 100%;
    }

    body.bot-panel-body .bot-index .bot-panel-table th,
    body.bot-panel-body .bot-index .bot-panel-table td {
        padding: 0.4rem 0.3rem;
        font-size: 0.8125rem;
        vertical-align: middle;
    }

    body.bot-panel-body .bot-index .card-body {
        padding-bottom: 4.5rem;
    }
}

/* Contact book settings + grid actions in contact list */
body.bot-panel-body .bot-contact-books-form .bot-grid-actions-wrap {
    display: inline-flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

body.bot-panel-body .bot-contact-books-form .bot-grid-action-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    min-width: 1.85rem;
    padding: 0 !important;
}

/* ===== Hero interactive visual (bot-hv) — перший екран ===== */
.bot-hv{--g:#04af5f;--g-bright:#3dffa0;position:relative;width:min(92vw,460px);aspect-ratio:1/1;margin:0 auto}
.bot-hv-glow{position:absolute;inset:12%;border-radius:50%;
    background:radial-gradient(circle, rgba(4,175,95,.30) 0%, rgba(4,175,95,.06) 45%, transparent 70%);
    animation:hv-glow 5s ease-in-out infinite}
.bot-hv-rings{position:absolute;inset:0;animation:hv-spin 90s linear infinite}
.bot-hv-rings svg{width:100%;height:100%;display:block}
.bot-hv-spokes{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.bot-hv-orbit{position:absolute;inset:0;animation:hv-spin 50s linear infinite}
.bot-hv:hover .bot-hv-orbit,
.bot-hv:hover .bot-hv-rings,
.bot-hv:hover .bot-hv-node .in{animation-play-state:paused}
.bot-hv-node{position:absolute;left:50%;top:6%;width:12.5%;height:44%;
    transform-origin:50% 100%;transform:translateX(-50%) rotate(var(--a))}
.bot-hv-node .in{position:absolute;top:0;left:0;width:100%;aspect-ratio:1;animation:hv-spin-rev 50s linear infinite}
.bot-hv-node .rot{position:absolute;inset:0;transform:rotate(calc(var(--a) * -1))}
.bot-hv-node .box{position:absolute;inset:0;border-radius:26%;display:grid;place-items:center;
    background:linear-gradient(160deg, rgba(20,28,24,.95), rgba(10,15,13,.95));
    border:1px solid rgba(4,175,95,.35);
    box-shadow:0 6px 18px rgba(0,0,0,.5), inset 0 0 12px rgba(4,175,95,.12);
    transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease}
.bot-hv-node svg{width:52%;height:52%;fill:none;stroke:var(--g-bright);stroke-width:1.9;
    stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 4px rgba(61,255,160,.5))}
.bot-hv-node:hover{z-index:6}
.bot-hv-node:hover .box{border-color:var(--g-bright);
    box-shadow:0 0 22px rgba(4,175,95,.55), inset 0 0 16px rgba(4,175,95,.25);transform:scale(1.16)}
.bot-hv-node .lbl{position:absolute;left:50%;top:calc(100% + 5px);transform:translateX(-50%);
    white-space:nowrap;font-size:11px;line-height:1;color:#b8f0d0;background:rgba(6,10,8,.92);
    border:1px solid rgba(4,175,95,.3);border-radius:6px;padding:3px 7px;opacity:0;pointer-events:none;transition:opacity .2s}
.bot-hv-node:hover .lbl{opacity:1}
.bot-hv-core{position:absolute;top:50%;left:50%;width:36%;height:36%;transform:translate(-50%,-50%);
    border-radius:50%;display:grid;place-items:center;overflow:hidden;z-index:2;
    background:radial-gradient(circle at 50% 40%, rgba(4,175,95,.35), rgba(6,12,9,.96) 70%);
    border:2px solid rgba(4,175,95,.55);
    box-shadow:0 0 40px rgba(4,175,95,.35), inset 0 0 30px rgba(4,175,95,.25);
    animation:hv-core 5s ease-in-out infinite}
.bot-hv-core svg{width:62%;height:62%}
.bot-hv-core img{width:100%;height:100%;object-fit:cover}
.bot-hv-core .robot{fill:none;stroke:var(--g-bright);stroke-width:2.1;
    stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 6px rgba(61,255,160,.7))}
.bot-hv-core .eye{fill:var(--g-bright);stroke:none;filter:drop-shadow(0 0 5px var(--g-bright));
    transform-origin:center;animation:hv-blink 4.5s infinite}
@keyframes hv-spin{to{transform:rotate(360deg)}}
@keyframes hv-spin-rev{to{transform:rotate(-360deg)}}
@keyframes hv-glow{0%,100%{opacity:.7;transform:scale(1)}50%{opacity:1;transform:scale(1.06)}}
@keyframes hv-core{0%,100%{transform:translate(-50%,-50%) scale(1)}50%{transform:translate(-50%,-50%) scale(1.035)}}
@keyframes hv-blink{0%,92%,100%{transform:scaleY(1)}95%{transform:scaleY(.1)}}
@media (prefers-reduced-motion: reduce){
    .bot-hv-rings,.bot-hv-orbit,.bot-hv-node .in,.bot-hv-core,.bot-hv-glow,.bot-hv-core .eye{animation:none}
}

/* ===== Мобільна версія лендінга (додано 10.08.2026) =====
   Причина: на дотику немає :hover. Підписи в герої показувалися лише при
   наведенні (opacity:0), тож на телефоні було 10 безіменних іконок навколо
   кола — блок не ніс сенсу. Просто ввімкнути підписи не можна: 10 штук на
   колі 345px накладаються одна на одну. Тому на вузьких екранах орбіта
   розкладається сіткою «іконка + підпис», а обертання зупиняється.
   Це заразом знімає постійне навантаження на батарею від 5 анімацій. */
@media (max-width: 640px){
    .bot-hv{width:100%;aspect-ratio:auto;display:flex;flex-direction:column;
        align-items:center;gap:18px}
    /* суто декоративне — на малому екрані лише заважає */
    .bot-hv-glow,.bot-hv-rings,.bot-hv-spokes{display:none}
    /* ядро над сіткою: у розмітці воно йде після орбіти, тому order */
    .bot-hv-core{position:static;order:-1;transform:none;width:104px;height:104px;
        flex:0 0 auto;animation:none}
    .bot-hv-core .eye{animation:none}
    .bot-hv-orbit{position:static;animation:none;width:100%;
        display:grid;grid-template-columns:repeat(auto-fit,minmax(94px,1fr));gap:14px 10px}
    /* знімаємо всю систему позиціонування орбіти: кут, компенсацію кута
       й зустрічну анімацію. Інакше плитки лишаться нахиленими. */
    .bot-hv-node{position:static;width:auto;height:auto;transform:none}
    .bot-hv-node .in{position:static;width:100%;aspect-ratio:auto;animation:none}
    .bot-hv-node .rot{position:static;transform:none;
        display:flex;flex-direction:column;align-items:center;gap:8px}
    .bot-hv-node .box{position:static;inset:auto;width:56px;height:56px;border-radius:16px}
    .bot-hv-node svg{width:28px;height:28px}
    .bot-hv-node .lbl{position:static;transform:none;opacity:1;pointer-events:auto;
        font-size:12px;line-height:1.25;white-space:normal;text-align:center;
        background:none;border:0;padding:0;max-width:100%}

    /* Тап-цілі: мінімум 44px — інакше в них важко влучити пальцем */
    .bot-landing-cta .btn{min-height:48px;display:inline-flex;
        align-items:center;justify-content:center}
    .bot-landing-tab{min-height:44px;padding-top:10px;padding-bottom:10px}
    .navbar-toggler{min-width:44px;min-height:44px}
    .navbar-brand{min-height:44px;display:inline-flex;align-items:center}
    .bot-landing-body footer a{display:inline-flex;align-items:center;
        min-height:44px;padding:0 4px}

    /* Найдрібніший текст: 10.4 і 11.2px на телефоні майже не читається */
    .bot-landing-tariff-badge{font-size:12px}
    .bot-landing-tariff-label{font-size:12.5px}
    .bot-landing-partner-label{font-size:13px}
}

/* ===== Hero: клікабельні іконки орбіти + панель «тариф і проблеми» (24.08.2026) ===== */
.bot-hv-node button.box{appearance:none;-webkit-appearance:none;font:inherit;color:inherit;cursor:pointer;padding:0}
.bot-hv-node .box:focus-visible{outline:2px solid #3dffa0;outline-offset:2px}
.bot-hv-node .box.active{border-color:#3dffa0;box-shadow:0 0 20px rgba(61,255,160,.5)}
.bot-hv-detail{margin-top:26px}
.bot-hv-detail-item{position:relative;border:1px solid rgba(4,175,95,.35);border-radius:16px;
    background:linear-gradient(160deg,rgba(4,175,95,.10),rgba(255,255,255,.03));
    padding:20px 22px;color:#e8f3ed;animation:hv-detail-in .25s ease}
@keyframes hv-detail-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.bot-hv-detail-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.bot-hv-detail-head .ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;
    background:rgba(4,175,95,.16);border:1px solid rgba(61,255,160,.4);flex:0 0 auto}
.bot-hv-detail-head .ic svg{width:22px;height:22px;fill:none;stroke:#3dffa0;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.bot-hv-detail-head h3{margin:0;font-size:1.15rem;color:#fff}
.bot-hv-detail-tariff{margin-left:auto;font-size:.78rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
    padding:5px 12px;border-radius:999px;background:rgba(61,255,160,.14);border:1px solid rgba(61,255,160,.45);color:#3dffa0;white-space:nowrap}
.bot-hv-detail-close{appearance:none;border:0;background:transparent;color:#9fb8ab;font-size:1.4rem;line-height:1;cursor:pointer;padding:2px 6px}
.bot-hv-detail-close:hover{color:#fff}
.bot-hv-detail-label{margin:0 0 6px;font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8fd8b4}
.bot-hv-detail-item ul{margin:0 0 12px;padding-left:0;list-style:none}
.bot-hv-detail-item ul li{position:relative;padding-left:22px;margin-bottom:5px;font-size:.92rem;color:#d9e7df}
.bot-hv-detail-item ul li::before{content:"";position:absolute;left:0;top:.42em;width:12px;height:12px;border-radius:50%;
    background:rgba(61,255,160,.18);border:1px solid rgba(61,255,160,.6)}
.bot-hv-detail-feat{margin:0 0 14px;font-size:.88rem;color:#a9c4b6}
.bot-hv-detail-cta{display:flex;gap:10px}
@media (max-width:640px){
    .bot-hv-detail{margin-top:18px}
    .bot-hv-detail-item{padding:16px}
    .bot-hv-detail-tariff{margin-left:0}
    .bot-hv-detail-head .ic{width:34px;height:34px}
}
@media (prefers-reduced-motion:reduce){.bot-hv-detail-item{animation:none}}

/* ===== Hero v2: мультивибір іконок + рекомендація тарифу з кнопкою придбати (24.08.2026) ===== */
.bot-hv-detail-label--head{margin:0}
.bot-hv-detail-grid{display:flex;gap:22px;align-items:flex-start}
.bot-hv-detail-info{flex:1 1 auto;min-width:0}
.bot-hv-detail-item ul li strong{color:#fff;font-weight:600}
.bot-hv-tariff-card{flex:0 0 250px;border:1px solid rgba(61,255,160,.45);border-radius:14px;
    padding:16px 18px;background:rgba(4,175,95,.12);text-align:center}
.bot-hv-tariff-name{font-size:1.6rem;font-weight:800;color:#fff;line-height:1.1}
.bot-hv-tariff-price{font-size:1.05rem;color:#3dffa0;font-weight:700;margin:6px 0 14px}
.bot-hv-buy{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px}
.bot-hv-tariff-all{display:inline-block;margin-top:10px;font-size:.82rem;color:#8fd8b4;text-decoration:underline}
.bot-hv-tariff-all:hover{color:#fff}
.bot-hv-chips{display:flex;flex-wrap:wrap;gap:8px;flex:1 1 auto;min-width:0}
.bot-hv-chip{appearance:none;-webkit-appearance:none;cursor:pointer;border:1px solid rgba(61,255,160,.45);border-radius:999px;
    background:rgba(61,255,160,.12);color:#c9f3dd;font-size:.8rem;padding:4px 10px;line-height:1.3}
.bot-hv-chip:hover{background:rgba(61,255,160,.22);color:#fff}
@media (max-width:760px){
    .bot-hv-detail-grid{flex-direction:column}
    .bot-hv-tariff-card{flex:1 1 auto;width:100%}
    .bot-hv-chip{padding:9px 14px;font-size:.85rem}
}

/* ===== Hero: заклик «Давай порахуємо!» в ядрі орбіти (24.08.2026) ===== */
.bot-hv-core{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:0 8%}
.bot-hv-core svg{width:46%;height:46%;flex:0 0 auto}
.bot-hv-core .cap{font-size:12.5px;font-weight:700;letter-spacing:.02em;color:#3dffa0;
    text-align:center;line-height:1.15;text-shadow:0 0 10px rgba(61,255,160,.55);
    animation:hv-cap 2.4s ease-in-out infinite}
@keyframes hv-cap{0%,100%{opacity:.7}50%{opacity:1}}
@media (max-width:640px){.bot-hv-core .cap{font-size:12px}}
@media (prefers-reduced-motion:reduce){.bot-hv-core .cap{animation:none}}

/* ===== Hero: заклик по колу ядра, робот знову на передньому плані (24.08.2026, текст по колу) ===== */
.bot-hv-core{display:grid;place-items:center;padding:0}
.bot-hv-core svg:not(.cap-ring){width:62%;height:62%}
.bot-hv-core .cap-ring{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;
    animation:hv-cap 2.4s ease-in-out infinite}
.bot-hv-core .cap-ring text{font-size:8px;font-weight:700;letter-spacing:.6px;fill:#3dffa0;
    filter:drop-shadow(0 0 3px rgba(61,255,160,.7))}
.bot-hv-cap{display:none}
@media (max-width:640px){
    .bot-hv-core .cap-ring{display:none}
    .bot-hv-cap{display:block;order:-1;text-align:center;font-size:12.5px;font-weight:700;color:#3dffa0;
        text-shadow:0 0 10px rgba(61,255,160,.55);margin:2px 0 0}
}
