/* Force white page background (consistency with landing pages) */
body { background: var(--surface-page) !important; }
body.result-solo { background: var(--surface-page) !important; }
body.result-solo .rw-wrap { position: relative; z-index: 1; }
body.result-solo .rw-input-wrap { background: #ffffff !important; border-color: var(--bd-medium); box-shadow: var(--shadow-sm); }
body.result-solo .rw-input-wrap:focus-within { background: #ffffff !important; border-color: var(--accent); box-shadow: var(--ring), var(--shadow-sm); }
/* ===== Fullscreen loader ===== */
.res-full-loader {
    position: fixed;
    inset: 0;
    background: rgba(12, 31, 40, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: resLoaderFadeIn 0.2s ease-out;
}
.res-full-loader.is-open {
    display: flex;
}
.res-full-loader__card {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 56px;
    max-width: 440px;
    width: calc(100% - 32px);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.res-full-loader__spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(0, 118, 128, 0.15);
    border-top-color: #007680;
    border-radius: 50%;
    animation: resLoaderSpin 0.9s linear infinite;
    margin: 0 auto 24px;
}
.res-full-loader__title {
    font-size: 20px;
    font-weight: 600;
    color: #0c1f28;
    margin-bottom: 10px;
    letter-spacing: -0.015em;
}
.res-full-loader__sub {
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
}
@keyframes resLoaderSpin {
    to { transform: rotate(360deg); }
}
@keyframes resLoaderFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (max-width: 480px) {
    .res-full-loader__card {
        padding: 36px 28px;
    }
    .res-full-loader__title { font-size: 18px; }
    .res-full-loader__sub { font-size: 13px; }
}
/* ===== RESULT PAGE — DARK HERO ===== */
.result-main .hero-section {
    min-height: auto;
    padding: 0 0 60px;
    background: transparent;
    position: relative;
    overflow: visible;
}
.result-main .hero-container {
    display: block;
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
    padding-top: 40px;
    padding-left: 24px;
    padding-right: 24px;
}

/* ===== TWO-COLUMN GRID (desktop) ===== */
.res-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}
.res-sidebar {
    position: sticky;
    top: 100px;
    margin-top: 45px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.res-content {
    min-width: 0; /* prevents grid blow-out from long content */
}
.res-content #blockResults {
    margin: 0;
    padding: 0;
}
.res-content #blockResults > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.res-grid .res-ages {
    grid-template-columns: 1fr;
}
.res-grid .res-age-card {
    margin-bottom: 0;
}
.res-grid .res-new-search {
    margin: 0;
    flex-direction: column;
    align-items: stretch;
}
.res-grid .res-new-search a {
    justify-content: center;
    width: 100%;
}

@media (max-width: 1024px) {
    .res-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .res-sidebar {
        position: static;
        top: auto;
        margin-top: 0;
        gap: 20px;
    }
    .res-grid .res-ages {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    .res-grid .res-new-search {
        flex-direction: row;
        align-items: center;
    }
    .res-grid .res-new-search a {
        width: auto;
    }
}
.result-main {
  margin-top: 0;
  padding-top: 100px;
  padding-bottom: 120px;
  min-height: 100vh;
  position: relative;
  background-color: var(--surface-page) !important;
  color: #1a2e3a;
  overflow: hidden;
  z-index: 0;
}

@media (max-width: 768px) {
  .result-main {
    margin-top: 0 !important; 
    padding-top: 80px !important; 
    padding-bottom: 60px !important;
  }

  .result-main::before {
    top: 20px !important; 
    height: 60px !important;
  }
}


/* Header — light text on slate */
.res-header {
    text-align: center;
    margin-bottom: 28px;
}
.res-header h1 {
    font-size: clamp(26px, 4vw, 32px);
    font-weight: var(--fw-bold);
    color: var(--tx-primary);
    letter-spacing: -0.3px;
    margin: 0 0 8px;
}
.res-header p {
    font-size: 16px;
    color: #007680;
    line-height: 1.5;
    margin: 0;
    font-weight: 600;
}
.res-header .res-hint {
    font-size: 13px;
    color: #6b7c8a;
    margin-top: 8px;
    
    font-weight: 400;
}

/* Age section — white card on dark */
.res-age-card {
    background: #ffffff;
    border: 1px solid var(--bd-soft);
    border-radius: 10px;
    padding: 28px 28px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.res-age-title {
    font-size: 11px;
    font-weight: var(--fw-medium); font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--tx-tertiary);
    margin-bottom: 16px;
    text-align: center;
}
.res-ages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}

/* Age filters */
.age-filter {
    padding: 14px 8px !important;
    border-radius: 14px !important;
    border: 1.5px solid rgba(0, 118, 128, 0.15) !important;
    background: rgba(255, 255, 255, 0.85) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--tx-primary) !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(.25,.46,.45,.94);
    user-select: none;
    box-shadow: 0 1px 4px rgba(0, 118, 128, 0.03);
    width: auto !important;
    height: auto !important;
    position: static !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.age-filter:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    background: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 118, 128, 0.12) !important;
    transform: translateY(-2px);
}
.age-filter.active {
    background: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
    box-shadow: 0 4px 16px rgba(0, 118, 128, 0.25) !important;
    transform: translateY(-1px);
}
.age-filter.viewed {
    background: rgba(0, 118, 128, 0.14) !important;
    border-color: rgba(0, 118, 128, 0.5) !important;
    color: #007680 !important;
    box-shadow: inset 3px 0 0 #007680, 0 1px 4px rgba(0, 118, 128, 0.08) !important;
}
.age-filter.viewed::before {
    content: '✓';
    margin-right: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #007680;
}

/* New search — outline button */
.res-new-search {
    text-align: center;
    margin: 0 0 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.res-new-search a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 10px;
    border: 1.5px solid #007680 !important;
    background: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    color: #007680 !important;
    text-decoration: none;
    transition: all 0.25s ease;
    border-bottom: none;
    box-shadow: 0 0 0 0 rgba(0,118,128,0);
}
.res-new-search a span {
    color: #007680 !important;
}
.res-new-search a:hover {
    border-color: #007680 !important;
    background: #ffffff !important;
    color: #007680 !important;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.res-new-search a:hover span {
    color: #007680 !important;
}
.res-premium-btn {
    background: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
    box-shadow: 0 4px 24px rgba(0, 118, 128, 0.35) !important;
}
.res-premium-btn:hover {
    box-shadow: 0 8px 32px rgba(0, 118, 128, 0.5) !important;
    transform: translateY(-3px) !important;
}

/* Loading & error */
.res-loading {
    text-align: center;
    padding: 48px 24px;
    color: var(--tx-tertiary);
    font-size: 14px;
}
.res-loading i {
    margin-right: 8px;
    color: #5eead4;
}
.res-error {
    max-width: 800px;
    margin: 20px auto;
    padding: 24px 32px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    border: 1px solid rgba(196, 78, 78, 0.25);
    text-align: center;
    color: #F09595;
    font-size: 14px;
    font-weight: 500;
}
.res-error i {
    margin-right: 8px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 600px) {
    .result-main .hero-container {
        padding-top: 24px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .res-age-card {
        padding: 24px 16px 20px;
    }
    .res-ages {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    .age-filter {
        padding: 12px 6px !important;
        font-size: 15px !important;
        border-radius: 12px !important;
    }
}

/* ===== EMPTY STATE (before user picks a variant) ===== */
.res-empty {
    position: relative;
    min-height: 520px;
    border-radius: 12px;
    overflow: hidden;
    max-width: 720px;
    margin: 0 auto;
}
.res-empty-preview {
    filter: blur(3px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}
.res-empty-card {
    background: #ffffff;
    border: 1px solid rgba(0, 118, 128, 0.18);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(8, 76, 97, 0.08);
}
.res-empty-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 118, 128, 0.08);
    margin-bottom: 20px;
}
.empty-avatar {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(0, 118, 128, 0.10);
    flex-shrink: 0;
}
.empty-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.empty-line {
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(0, 118, 128, 0.2) 0%, rgba(0, 118, 128, 0.06) 100%);
}
.empty-line-name {
    width: 65%;
    height: 16px;
}
.empty-line-meta {
    width: 45%;
}
.res-empty-gauge {
    padding: 18px 0 14px;
    border-bottom: 1px solid rgba(0, 118, 128, 0.10);
    margin: 4px 0 16px;
}
.res-empty-gauge-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}
.res-empty-gauge-num {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    color: var(--tx-primary);
    letter-spacing: -0.5px;
}
.res-empty-gauge-num span {
    font-size: 14px;
    color: var(--tx-tertiary);
    font-weight: 500;
}
.res-empty-gauge-tier {
    text-align: right;
}
.res-empty-gauge-tier-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--tx-tertiary);
    text-transform: uppercase;
    margin-bottom: 2px;
}
.res-empty-gauge-tier-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--tx-secondary);
}
.res-empty-gauge-track {
    position: relative;
    height: 8px;
    border-radius: 100px;
    background: linear-gradient(90deg, #007680 0%, #007680 14%, #C4A24E 32%, #C47D3E 55%, #C44E4E 80%, #7A1F1F 100%);
    margin-bottom: 8px;
}
.res-empty-gauge-marker {
    position: absolute;
    left: 25%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #007680;
}
.res-empty-gauge-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--tx-tertiary);
    font-weight: 500;
    padding: 0 2px;
}
.empty-record {
    height: 52px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(0, 118, 128, 0.12) 0%, rgba(0, 118, 128, 0.04) 100%);
    margin-bottom: 10px;
}
.empty-record:last-child {
    margin-bottom: 0;
    width: 75%;
}

.res-empty-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 28px;
    background: linear-gradient(180deg, rgba(252, 252, 252, 0.55) 0%, rgba(252, 252, 252, 0.94) 55%, rgba(252, 252, 252, 0.94) 100%);
}
.res-empty-overlay h3 {
    font-size: 24px;
    font-weight: 700;
    color: #084c61;
    margin: 0 0 10px;
    letter-spacing: -0.4px;
    line-height: 1.25;
}
.res-empty-overlay p {
    font-size: 15px;
    color: #4a5e6a;
    margin: 0 0 24px;
    max-width: 420px;
    line-height: 1.55;
}
.res-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, #007680 0%, #5eead4 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 18px rgba(0, 118, 128, 0.28);
    transition: all 0.25s ease;
    border-bottom: none !important;
}
.res-empty-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(0, 118, 128, 0.4);
}
.res-empty-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
    max-width: 360px;
}
.res-empty-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #4a5e6a;
    font-weight: 500;
}
.res-empty-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #007680;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .res-empty {
        min-height: 420px;
    }
    .res-empty-overlay h3 {
        font-size: 20px;
    }
    .res-empty-overlay p {
        font-size: 14px;
    }
}
@media (max-width: 600px) {
    .res-empty {
        min-height: 360px;
    }
    .res-empty-card {
        padding: 18px;
    }
    .res-empty-gauge {
        padding: 18px 14px 14px;
    }
    .res-empty-gauge-num {
        font-size: 36px;
    }
}

/* ===== IFRAME MODAL (reused from OSINT page) ===== */
.osint-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 2000; padding: 20px; backdrop-filter: blur(4px); }
.osint-modal.active { display: flex; align-items: center; justify-content: center; }
.osint-modal-content { width: 100%; max-width: 1200px; height: 90vh; background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.osint-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: #fafafa; border-bottom: 1px solid rgba(0,0,0,.06); }
.osint-modal-title { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #1a2e3a; min-width: 0; }
.osint-modal-title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osint-modal-actions { display: flex; gap: 6px; flex-shrink: 0; }
.osint-modal-btn { padding: 6px 14px; background: rgba(0, 118, 128, 0.06); border: 1px solid rgba(0, 118, 128, 0.12); border-radius: 10px; color: #007680; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.osint-modal-btn:hover { background: rgba(0, 118, 128, 0.1); border-color: #007680; }
.osint-modal-close { background: transparent; border: none; color: var(--tx-tertiary); font-size: 24px; cursor: pointer; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 10px; transition: all 0.2s; }
.osint-modal-close:hover { background: rgba(0,0,0,.05); color: #1a2e3a; }
.osint-modal-body { flex: 1; position: relative; background: #fff; }
.osint-modal-iframe { width: 100%; height: 100%; border: none; }
.osint-loading { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; color: #6b7c8a; }
.osint-spinner { width: 36px; height: 36px; border: 3px solid rgba(0, 118, 128, 0.12); border-top-color: #007680; border-radius: 50%; animation: osintSpin 1s linear infinite; margin: 0 auto 12px; }
@keyframes osintSpin { to { transform: rotate(360deg); } }
.osint-iframe-error { display: none; padding: 40px; text-align: center; color: #6b7c8a; }
.osint-iframe-error.visible { display: block; }
.osint-iframe-error h3 { color: #1a2e3a; margin-bottom: 8px; font-size: 16px; }
.osint-iframe-error p { margin: 0 0 16px; font-size: 14px; }
@media (max-width: 768px) {
    .osint-modal { padding: 0; }
    .osint-modal-content { width: 100%; max-width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; }
    /* Header не переповнюється: заголовок звужується, кнопки тиснуться, × завжди видима */
    .osint-modal-header { padding: 10px 12px; gap: 8px; }
    .osint-modal-title { flex: 1 1 auto; min-width: 0; font-size: 13px; }
    .osint-modal-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .osint-modal-actions { flex: 0 0 auto; gap: 4px; }
    /* Допоміжні кнопки ховаємо (доступні через "Нова вкладка"), лишаємо тільки нову вкладку + закрити */
    .osint-modal-actions .osint-modal-btn { padding: 6px 8px; font-size: 11px; }
    .osint-modal-iframe { width: 100%; max-width: 100%; }
    .osint-modal-close { flex-shrink: 0; width: 36px; height: 36px; font-size: 26px; }
}
@media (max-width: 560px) {
    /* На дуже вузьких — лишаємо в шапці тільки "Нова вкладка" та "Закрити" */
    .osint-modal-actions .osint-modal-btn:not(.osint-modal-keep) { display: none; }
}

/* Make record links visually clickable as previews */
#blockResults .record-link {
    cursor: pointer;
}
/* ===== Search workspace (above results) ===== */
.rw-wrap { max-width: 768px; margin: 0 auto; padding: 120px 0 0; }
.rw-eyebrow {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: var(--fw-bold);
    color: var(--tx-primary);
    letter-spacing: -0.01em;
    text-align: center;
    margin-bottom: 32px;
}
.rw-card {
    background: transparent;
    padding: 0;
}
.rw-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.rw-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(0, 118, 128, 0.35);
    border-radius: 16px;
    background: #fff;
    padding: 6px 8px 6px 4px;
    box-shadow: var(--shadow-xs);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rw-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: var(--ring);
}
.rw-input {
    flex: 1;
    min-width: 0;
    padding: 20px 22px;
    font-size: 16px;
    text-transform: uppercase;
    font-family: var(--font-body);
    border: none;
    background: transparent;
    color: var(--tx-primary);
    box-sizing: border-box;
}
.rw-input:focus { outline: none; }
.rw-input::placeholder { color: var(--tx-tertiary); }
.rw-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rw-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.rw-search-btn {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: #007680;
    color: #fff;
    font-size: 26px;
    padding-bottom: 3px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: filter 0.2s ease, box-shadow 0.2s ease;
}
.rw-search-btn:disabled { background: rgba(0,118,128,0.22); color: #fff; box-shadow: none; cursor: not-allowed; }
.rw-search-btn:not(:disabled):hover { filter: brightness(1.08); }
.rw-bulk-link {
    display: block;
    width: fit-content;
    margin: 12px auto 0;
    padding: 8px 18px;
    border: 1px solid rgba(0, 118, 128, 0.15);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    background: rgba(0, 118, 128, 0.03);
    transition: all 0.2s ease;
}
.rw-bulk-link:hover { background: rgba(0, 118, 128, 0.08); border-color: rgba(0, 118, 128, 0.3); }

.rw-submit:not(:disabled):hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 118, 128, 0.3);
}
.rw-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #1e293b;
    line-height: 1.5;
    cursor: pointer;
}
.rw-consent input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}
.rw-consent a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 118, 128, 0.3);
}
.rw-consent a:hover { border-bottom-color: var(--accent); }
@media (max-width: 480px) {
  .rw-eyebrow { font-size: 26px; }
    .rw-wrap { padding: 110px 16px 0; }
    .rw-wrap--solo { min-height: calc(100dvh - 70px); }
    .rw-card { padding: 0; }
    .rw-input { font-size: 16px; padding: 13px 16px; }
    .rw-submit { width: 36px; height: 36px; }
}
.rw-info {
    max-width: 720px;
    margin: 72px auto 80px;
    padding: 0 24px;
    color: var(--tx-primary);
}
.rw-info-section + .rw-info-section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 118, 128, 0.12);
}
.rw-info-eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tx-secondary);
    margin-bottom: 10px;
}
.rw-info p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--tx-primary);
    margin: 0;
}
.rw-info ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}
.rw-info ul li {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--tx-primary);
}
.rw-info a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 118, 128, 0.3);
    transition: border-color 0.2s ease;
}
.rw-info a:hover { border-bottom-color: var(--accent); }

@media (max-width: 640px) {
    .rw-info { margin: 44px auto 120px; padding: 0 16px; }
    .rw-info-section + .rw-info-section { margin-top: 22px; padding-top: 22px; }
    .rw-info p, .rw-info ul li { font-size: 14px; }
}

/* ─── Loading: CSS-спінер замість Font Awesome (v3) ─── */
.res-loading i { display: none; }
.res-loading::before {
  content: ''; display: block; width: 26px; height: 26px; margin: 0 auto 14px;
  border: 2.5px solid var(--accent-soft); border-top-color: var(--accent);
  border-radius: 50%; animation: resSpin .7s linear infinite;
}
@keyframes resSpin { to { transform: rotate(360deg); } }

/* ===== use-case cards (Fynex-style), empty /result ===== */
.uc-wrap{
  --uc-mint:#9FFBCD; --uc-mint-ink:#00331A;
  --uc-grey:#F4F5F7; --uc-grey-badge:#E6E7EB;
  --uc-ink:#16242E;  --uc-title:#1a2e3a;
  display:flex; gap:20px;
  overflow-x:auto; scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch; scrollbar-width:none;
  padding:8px 20px 18px; margin:36px auto 0;
  max-width:1080px;
}
.uc-wrap::-webkit-scrollbar{display:none}
.uc-card{
  flex:0 0 304px; width:304px; height:400px;
  border-radius:24px; padding:24px;
  display:flex; flex-direction:column; justify-content:flex-end;
  position:relative; scroll-snap-align:center;
  text-decoration:none; cursor:pointer;
}
.uc-badge{
  position:absolute; top:24px; right:24px;
  width:64px; height:64px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  transition:transform .25s ease;
}
.uc-badge svg{width:28px; height:28px}
.uc-card:hover .uc-badge{transform:scale(1.125)}
.uc-card h3{
  margin:0 0 8px; font:600 20px/140% var(--font-body, inherit);
  color:var(--uc-title);
}
.uc-card p{margin:0; font:400 15px/24px var(--font-body, inherit); color:#5b6b75}
.uc-grey{background:var(--uc-grey)}
.uc-grey .uc-badge{background:var(--uc-grey-badge); color:var(--uc-title)}
.uc-mint{background:var(--uc-mint)}
.uc-mint h3{color:var(--uc-mint-ink)}
.uc-mint p{color:#1f4a38}
.uc-mint .uc-badge{background:var(--uc-mint-ink); color:var(--uc-mint)}
.uc-ink{background:var(--uc-ink)}
.uc-ink h3{color:#fff}
.uc-ink p{color:rgba(255,255,255,.72)}
.uc-ink .uc-badge{background:rgba(255,255,255,.1); color:var(--uc-mint)}
@media (max-width:480px){
  .uc-card{flex-basis:78%; height:360px}
}

/* uc v2: edge frost + mobile spacing */
.uc-wrap{
  -webkit-mask-image:linear-gradient(to right,transparent,#000 36px,#000 calc(100% - 36px),transparent);
  mask-image:linear-gradient(to right,transparent,#000 36px,#000 calc(100% - 36px),transparent);
}
@media (max-width:480px){
  .uc-wrap{margin-top:12px; padding-top:4px}
}

/* uc v3: desktop thin scrollbar, mobile tighter */
@media (min-width:768px){
  .uc-wrap{scrollbar-width:thin; scrollbar-color:#d6dde1 transparent}
  .uc-wrap::-webkit-scrollbar{display:block; height:6px}
  .uc-wrap::-webkit-scrollbar-thumb{background:#d6dde1; border-radius:3px}
  .uc-wrap::-webkit-scrollbar-track{background:transparent}
}
@media (max-width:480px){
  .uc-wrap{margin-top:0; padding-top:0}
}

/* uc v4: badge polish + mobile lift */
.uc-badge{box-shadow:0 2px 8px rgba(12,31,40,.08)}
.uc-badge svg{stroke-width:1.5}
.uc-card{transition:box-shadow .25s ease}
.uc-card:hover{box-shadow:0 8px 28px rgba(12,31,40,.10)}
.uc-badge::after{
  content:""; position:absolute; inset:-5px; border-radius:50%;
  border:1.5px solid currentColor; opacity:0;
  transition:opacity .25s ease, inset .25s ease;
}
.uc-card:hover .uc-badge::after{opacity:.25; inset:-7px}
@media (max-width:480px){
  .uc-wrap{margin-top:-12px}
}

/* uc v5: solo-форма більше не на весь екран, картки одразу під нею */
@media (max-width:480px){
  .rw-wrap--solo{min-height:auto; padding-bottom:8px}
  .uc-wrap{margin-top:8px}
}

/* uc: tag Інсайдер на картці моніторингу */
.uc-tag{
  display:inline-block; vertical-align:2px; margin-left:8px;
  font:600 11px/1 inherit; letter-spacing:.04em; text-transform:uppercase;
  padding:4px 8px; border-radius:999px;
  background:rgba(12,31,40,.08); color:#1a2e3a;
}

/* uc v6: повітря між формою і картками */
.uc-wrap{margin-top:56px}
@media (max-width:480px){
  .uc-wrap{margin-top:28px}
}
