/* No horizontal scrolling, ever */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Prevent long strings from blowing up layout */
* {
    word-break: break-word;
}

.brand-badge {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(13, 110, 253, 0.12);
}

.soft-card {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.stat-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stat {
    min-width: 120px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(6px);
}

.stat-label {
    font-size: 12px;
    color: rgba(0,0,0,0.55);
}

.stat-value {
    font-weight: 700;
    font-size: 18px;
}

.item-title {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.25;
}

.price-chip {
    display: inline-flex;
    gap: 8px;
    align-items: baseline;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(13, 110, 253, 0.06);
}

.price-chip .label {
    font-size: 12px;
    color: rgba(0,0,0,0.6);
}

.price-chip .value {
    font-weight: 700;
}

.mini-help {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(0,0,0,0.03);
    border: 1px dashed rgba(0,0,0,0.15);
    font-size: 0.95rem;
}

.raw-pre {
    background: #0b1020;
    color: #d7e3ff;
    border-radius: 14px;
    padding: 14px;
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden; /* keep the no-horizontal-scroll promise */
    white-space: pre-wrap;
}

.badge-soft {
    background: rgba(25, 135, 84, 0.12);
    color: #1b5e20;
    border: 1px solid rgba(25, 135, 84, 0.25);
}

.btn-pill {
    border-radius: 999px;
}

.form-control, .form-select {
    border-radius: 14px;
}

.nav-pills .nav-link {
    border-radius: 999px;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.small-muted {
    font-size: 0.875rem;
    color: rgba(0,0,0,0.6);
}

/* Make sure Bootstrap containers don't cause tiny overflow on some browsers */
.container, .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
}

