/* ============================================
   Pages Enhancement CSS - SSHSlowDns.com
   Supplementary styles for country, server, 
   and create account pages
   ============================================ */

/* Country Cards Enhancement */
.country-card { transition: all 0.3s ease; border-radius: 12px; overflow: hidden; }
.country-card:hover { transform: translateY(-5px); box-shadow: 0 10px 40px rgba(0,0,0,0.15); border-color: #4e73df !important; }
.country-card .flag-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #e3e6f0; transition: all 0.3s; }
.country-card:hover .flag-img { border-color: #4e73df; transform: scale(1.1); }
.country-card .server-count { background: linear-gradient(135deg, #4e73df, #224abe); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.country-card .card-body { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px 15px; }
.country-card .country-name { font-size: 1rem; font-weight: 700; margin-top: 12px; margin-bottom: 8px; color: #333; }
.country-card .card-footer { background: transparent; border-top: 1px solid #e3e6f0; padding: 15px; }
.country-card .btn-select { background: linear-gradient(135deg, #4e73df, #224abe); color: white; border: none; border-radius: 8px; padding: 8px 24px; font-weight: 600; transition: all 0.3s; }
.country-card .btn-select:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(78,115,223,0.4); color: white; }

/* Stats Bar */
.stats-bar { background: white; border-radius: 12px; padding: 15px 25px; box-shadow: 0 2px 15px rgba(0,0,0,0.05); margin-bottom: 30px; }
.stats-bar .stat-item { display: flex; align-items: center; gap: 8px; }
.stats-bar .stat-number { font-size: 1.5rem; font-weight: 700; color: #4e73df; }
.stats-bar .stat-label { font-size: 0.85rem; color: #6c757d; }

/* Server Cards Enhancement */
.server-card-enhanced { border-radius: 12px; border: 1px solid #e3e6f0; transition: all 0.3s; overflow: hidden; background: white; }
.server-card-enhanced:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.1); transform: translateY(-3px); }
.server-card-enhanced .server-header { background: linear-gradient(135deg, #f8f9fc, #eaecf4); padding: 15px; border-bottom: 1px solid #e3e6f0; }
.server-card-enhanced .server-header h5 { margin: 0; font-weight: 700; font-size: 1rem; }
.server-card-enhanced .server-body { padding: 20px; }
.server-card-enhanced .server-body .info-row { display: flex; align-items: center; margin-bottom: 10px; font-size: 0.9rem; }
.server-card-enhanced .server-body .info-row i { width: 20px; color: #4e73df; margin-right: 10px; }
.server-card-enhanced .server-body .info-row code { background: #f0f0f5; padding: 2px 8px; border-radius: 4px; font-size: 0.85rem; }
.server-card-enhanced .server-footer { padding: 15px; border-top: 1px solid #e3e6f0; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }
.status-dot.online { background: #1cc88a; animation: pulse-green 2s infinite; }
.status-dot.offline { background: #e74a3b; }
@keyframes pulse-green { 0%, 100% { box-shadow: 0 0 0 0 rgba(28,200,138,0.4); } 50% { box-shadow: 0 0 0 8px rgba(28,200,138,0); } }

/* Slots Progress */
.slots-bar { height: 6px; border-radius: 3px; background: #eaecf4; overflow: hidden; margin-top: 8px; }
.slots-bar-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.slots-bar-fill.low { background: linear-gradient(90deg, #1cc88a, #17a673); }
.slots-bar-fill.medium { background: linear-gradient(90deg, #f6c23e, #dda20a); }
.slots-bar-fill.full { background: linear-gradient(90deg, #e74a3b, #be2617); }
.slots-text { font-size: 0.8rem; color: #6c757d; margin-top: 4px; }

/* Port Badges */
.port-badge { display: inline-block; background: #f0f0f5; border-radius: 6px; padding: 4px 10px; font-size: 0.75rem; margin-right: 5px; margin-bottom: 5px; font-weight: 600; color: #4e73df; }

/* Create Form Enhancement */
.create-form-card { border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); border: none; }
.create-form-card .card-header { background: linear-gradient(135deg, #4e73df, #224abe); color: white; border-radius: 16px 16px 0 0 !important; padding: 20px; text-align: center; }
.create-form-card .card-header h4 { margin: 0; color: white; font-weight: 700; }
.create-form-card .card-body { padding: 30px; }
.create-form-card .form-control { border-radius: 8px; padding: 12px 16px; border: 2px solid #e3e6f0; transition: all 0.3s; }
.create-form-card .form-control:focus { border-color: #4e73df; box-shadow: 0 0 0 3px rgba(78,115,223,0.15); }
.create-form-card .input-group-text { border-radius: 8px 0 0 8px; background: #f8f9fc; border: 2px solid #e3e6f0; border-right: none; font-size: 0.8rem; color: #6c757d; }
.create-form-card .input-group .form-control { border-radius: 0 8px 8px 0; }
.create-form-card .btn-create { background: linear-gradient(135deg, #00ff41, #00e676); border: none; border-radius: 8px; padding: 12px; font-weight: 600; font-size: 1rem; transition: all 0.3s; color: #0a0f0a; width: 100%; }
.create-form-card .btn-create:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(0,255,65,0.4); color: #0a0f0a; }
.create-form-card label { font-weight: 600; color: #333; margin-bottom: 6px; font-size: 0.9rem; }

/* Server Info Card */
.server-info { background: linear-gradient(135deg, #f8f9fc, #eaecf4); border-radius: 12px; padding: 20px; margin-bottom: 20px; border: 1px solid #e3e6f0; }
.server-info-item { display: flex; align-items: center; margin-bottom: 8px; font-size: 0.9rem; }
.server-info-item i { width: 20px; color: #4e73df; margin-right: 10px; }
.server-info-item strong { min-width: 80px; }

/* Result Card */
.result-card { background: linear-gradient(135deg, rgba(28,200,138,0.08), rgba(28,200,138,0.02)); border: 1px solid rgba(28,200,138,0.25); border-radius: 12px; padding: 25px; margin-top: 20px; }
.result-card .result-header { text-align: center; margin-bottom: 20px; }
.result-card .result-header i { color: #1cc88a; font-size: 2rem; }
.result-card .result-header h4 { color: #1cc88a; margin-top: 10px; font-weight: 700; }
.result-card .result-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.result-card .result-item:last-child { border-bottom: none; }
.result-card .result-item .label { color: #6c757d; font-size: 0.85rem; }
.result-card .result-item .value { font-weight: 600; color: #333; }
.result-card .copy-btn { background: #4e73df; color: white; border: none; border-radius: 6px; padding: 4px 12px; font-size: 0.75rem; cursor: pointer; transition: all 0.2s; }
.result-card .copy-btn:hover { background: #224abe; transform: scale(1.05); }
.result-card .payload-section { margin-top: 15px; }
.result-card .payload-section textarea { border-radius: 8px; border: 1px solid #e3e6f0; font-size: 0.8rem; resize: none; }
.result-card .payload-section .btn-copy-payload { background: linear-gradient(135deg, #1cc88a, #17a673); color: white; border: none; border-radius: 8px; padding: 8px 20px; font-weight: 600; transition: all 0.3s; margin-top: 8px; }
.result-card .payload-section .btn-copy-payload:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(28,200,138,0.4); }

/* Mobile Optimization */
@media (max-width: 768px) {
    .country-card .flag-img { width: 48px; height: 48px; }
    .server-card-enhanced { margin-bottom: 15px; }
    .create-form-card .card-body { padding: 20px; }
    .stats-bar { flex-direction: column; gap: 10px; }
    .result-card .result-item { flex-direction: column; align-items: flex-start; gap: 5px; }
}

/* Section Spacing */
.section-enhanced { padding: 40px 0; }
.section-enhanced .section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 5px; }
.section-enhanced .section-subtitle { color: #6c757d; margin-bottom: 30px; }

/* Breadcrumb Enhancement */
.breadcrumb-enhanced { background: transparent; padding: 0; margin-bottom: 20px; }
.breadcrumb-enhanced a { color: #4e73df; text-decoration: none; }
.breadcrumb-enhanced a:hover { text-decoration: underline; }

/* ============================================
   MOBILE RESPONSIVE FIXES - July 2026
   ============================================ */

/* Fix long text overflow (UUIDs, keys, links) */
.result-item .value,
.result-card .value {
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Mobile Footer */
@media (max-width: 767px) {
    .footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    .footer .text-md-right {
        text-align: center !important;
        margin-top: 10px;
    }
    .footer .col-md-5 {
        text-align: center;
    }
    .footer a.mx-1 {
        display: inline-block;
        margin: 3px 5px;
    }
}

/* Mobile Server Info Card */
@media (max-width: 575px) {
    .server-info-card {
        padding: 15px !important;
    }
    .server-info-item {
        flex-direction: column;
        gap: 4px;
        padding: 8px 0;
    }
    .server-info-item strong {
        min-width: unset !important;
    }
    
    /* Create form card */
    .create-form-card .card-body {
        padding: 20px 15px !important;
    }
    
    /* Result card */
    .result-card {
        padding: 15px !important;
    }
    .result-item {
        flex-direction: column;
        gap: 2px;
    }
    .result-item .label {
        font-size: 12px;
        color: #666;
    }
    .result-item .value {
        font-size: 14px;
        word-break: break-all;
    }
    .result-header h4 {
        font-size: 18px;
    }
    
    /* Country cards */
    .col-6 .card-body {
        padding: 12px !important;
    }
    .col-6 h6 {
        font-size: 13px;
    }
    .col-6 .flag-icon {
        font-size: 2rem !important;
    }
    
    /* Page header */
    .page-header-title {
        font-size: 1.5rem !important;
    }
    .page-header-text {
        font-size: 0.9rem !important;
    }
    
    /* Protocol info card on country page */
    .card-body .row.align-items-center .col-md-4 {
        margin-top: 20px;
    }
    .card-body .row.align-items-center .col-md-4 div[style*="width:120px"] {
        width: 80px !important;
        height: 80px !important;
    }
    .card-body .row.align-items-center .col-md-4 .fa-3x {
        font-size: 1.5em !important;
    }
}

/* Tablet */
@media (min-width: 576px) and (max-width: 991px) {
    .server-info-item strong {
        min-width: 90px !important;
    }
    .result-item .label {
        min-width: 90px;
    }
}

/* Fix navbar dropdown overflow on mobile */
@media (max-width: 991px) {
    .dropdown-menu {
        max-height: 400px;
        overflow-y: auto;
    }
    .dropdown-menu .row {
        flex-direction: column;
    }
    .dropdown-menu .col-lg {
        width: 100%;
    }
}

/* Latest Updates cards mobile */
@media (max-width: 767px) {
    section .card[style*="border-left"] {
        margin-bottom: 15px;
    }
    section .card[style*="linear-gradient"] .row {
        text-align: center;
    }
    section .card[style*="linear-gradient"] .text-md-right {
        text-align: center !important;
        margin-top: 15px;
    }
}

/* Fix body overflow (prevent horizontal scroll) */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ============================================
   ACCESSIBILITY FIXES - PageSpeed/Lighthouse
   ============================================ */

/* Fix nav dropdown links contrast */
.navbar-light .nav-link,
.navbar-light .nav-link.dropdown-toggle {
    color: #333 !important;
    font-weight: 500;
}
.navbar-light .nav-link:hover,
.navbar-light .nav-link:focus {
    color: #000 !important;
}

/* Fix reset timer contrast */
.navbar .nav-link span#clock2 {
    color: #d63384 !important;
    font-weight: 600;
}

/* Fix cookie consent contrast */
.cc-window {
    background: rgba(0, 0, 0, 0.85) !important;
}
.cc-window .cc-message {
    color: #fff !important;
}
.cc-window .cc-link {
    color: #4fc3f7 !important;
    text-decoration: underline !important;
}

/* Fix footer small text contrast */
.footer-dark .small,
.footer-dark li,
.footer-dark a {
    color: #b0bec5 !important;
}
.footer-dark a:hover {
    color: #fff !important;
}
.footer-dark .badge-success {
    color: #fff !important;
    background: #28a745 !important;
}

/* Fix "text-muted" contrast on light backgrounds */
.text-muted {
    color: #555 !important;
}
.bg-dark .text-muted,
.footer-dark .text-muted {
    color: #aaa !important;
}

/* Fix badge contrast */
.badge-success {
    background-color: #28a745 !important;
    color: #fff !important;
}
.badge-warning {
    background-color: #e67e22 !important;
    color: #fff !important;
}

/* Screen reader only (sr-only) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Fix links distinguishable (underline on hover) */
.footer-dark a,
section a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand) {
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color .2s;
}
.footer-dark a:hover,
section a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand):hover {
    text-decoration-color: currentColor;
}

/* ============================================
   SERVER LOAD INDICATOR
   ============================================ */
.server-load-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}
.server-load-bar .fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}
.server-load-bar .fill.low { background: #28a745; }
.server-load-bar .fill.medium { background: #ffc107; }
.server-load-bar .fill.high { background: #dc3545; }

.load-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.load-badge.low { background: #d4edda; color: #155724; }
.load-badge.medium { background: #fff3cd; color: #856404; }
.load-badge.high { background: #f8d7da; color: #721c24; }

/* ============================================
   ADSENSE OPTIMIZATION
   ============================================ */
/* In-content ad container */
.ad-container {
    margin: 20px 0;
    padding: 10px 0;
    text-align: center;
    min-height: 90px;
}
.ad-container-mobile {
    display: none;
}

@media (max-width: 767px) {
    .ad-container-mobile {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,.1);
        padding: 5px;
        text-align: center;
    }
    /* Add bottom padding to body to prevent content hiding behind fixed ad */
    body {
        padding-bottom: 60px;
    }
}

/* Ad label */
.ad-label {
    font-size: 9px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

/* ============================================
   BLOG STYLING
   ============================================ */
.blog-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eef2f7;
    color: #1a1a2e;
}
.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 25px 0 12px;
    color: #333;
}
.blog-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 10px;
    color: #444;
}
.blog-content p {
    margin-bottom: 16px;
    color: #444;
}
.blog-content ul, .blog-content ol {
    margin-bottom: 16px;
    padding-left: 20px;
}
.blog-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.blog-content table th {
    background: #667eea;
    color: #fff;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
}
.blog-content table td {
    padding: 10px 14px;
    border-bottom: 1px solid #eef2f7;
    font-size: 14px;
}
.blog-content table tr:nth-child(even) {
    background: #f8f9fa;
}
.blog-content code {
    background: #f0f4f8;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #e83e8c;
}
.blog-content pre {
    background: #1a1a2e;
    color: #a4f4a4;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    margin: 20px 0;
}
.blog-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.blog-content a {
    color: #667eea;
    text-decoration: underline;
}
.blog-content a:hover {
    color: #764ba2;
}
.blog-content blockquote {
    border-left: 4px solid #667eea;
    padding: 12px 20px;
    margin: 20px 0;
    background: #f8f9ff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

/* TOC smooth scroll */
html {
    scroll-behavior: smooth;
}
#toc a:hover {
    color: #667eea !important;
}

/* ===== AOS FALLBACK FIX =====
 * Ensures elements are visible even if AOS fails to animate on desktop
 * Elements stay hidden max 3 seconds, then force visible */
[data-aos] {
    transition-duration: 0.6s !important;
}
.section-enhanced [data-aos],
.server-card-enhanced,
.server-card-enhanced[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}
/* Override AOS hiding on server cards specifically */
html:not(.no-js) .server-card-enhanced[data-aos^=fade],
html:not(.no-js) .col-lg-6[data-aos^=fade] .server-card-enhanced {
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================
   MOBILE COMPREHENSIVE FIXES - August 2026
   ============================================ */

/* Fix: gap property not supported in Bootstrap 4 / older browsers */
.server-badges { gap: 4px !important; }
.server-badges .badge { margin-right: 4px; margin-bottom: 4px; }

/* Fix: server info on very small screens (320px-375px) */
@media (max-width: 400px) {
    .server-info-item strong { min-width: 65px !important; font-size: 12px; }
    .server-info-item code { font-size: 11px; padding: 1px 5px; }
    .page-header-title { font-size: 1.3rem !important; }
    .port-badge { font-size: 0.65rem !important; padding: 3px 6px; margin-right: 3px; }
    .server-card-enhanced .server-header h5 { font-size: 0.9rem; }
    .result-item .label { min-width: 85px !important; font-size: 11px; }
}

/* Fix: create form col-lg-6 col-md-8 has no sm breakpoint - force full on mobile */
@media (max-width: 767px) {
    .col-lg-6.col-md-8.mx-auto { max-width: 100% !important; flex: 0 0 100%; }
    /* Server card footer button */
    .server-footer .btn { font-size: 14px; padding: 10px; }
    /* Slots bar */
    .slots-bar { margin-top: 6px; }
    /* Tutorial accordion */
    .tutorial-item button { font-size: 13px; padding: 10px 14px !important; }
    /* Server badges - smaller on mobile */
    .server-badges .badge { font-size: 0.65rem !important; }
}

/* Fix: result page copy buttons on mobile */
@media (max-width: 576px) {
    .share-link-actions { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .share-link-actions .btn { flex: 1; min-width: 120px; font-size: 12px; }
    .result-header h4 { font-size: 1.1rem; }
    /* QR code on result */
    .qr-modal-content { padding: 20px 15px; }
    /* Country card flags */
    .country-card .flag-icon { font-size: 2.5rem !important; }
    .country-card h6 { font-size: 12px; }
    /* Server info item */
    .server-info { padding: 15px !important; border-radius: 8px; }
    /* Form group margin */
    .form-group { margin-bottom: 12px !important; }
    /* Input group prefix */
    .input-group-text { font-size: 11px; padding: 6px 8px; }
    /* Navbar brand */
    .navbar-brand img { height: 26px !important; }
}

/* Fix: input-group prefix overflow (sshslowdns.com- prefix) */
@media (max-width: 480px) {
    .input-group-text { font-size: 10px; padding: 4px 6px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .form-control { font-size: 14px; }
}

/* Ensure no horizontal scroll */
.server-card-enhanced, .create-form-card, .result-card, .server-info { max-width: 100%; overflow: hidden; }
@media (max-width: 576px) {
    pre, code { word-break: break-all; white-space: pre-wrap; }
    .share-link-textarea { font-size: 10px !important; }
}

/* ============================================
   NEW RESULT CARD (rc-*) - August 2026
   ============================================ */
.rc-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(28,200,138,0.12), 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(28,200,138,0.2);
    margin-top: 20px;
    background: #fff;
}
.rc-header {
    background: linear-gradient(135deg, #1cc88a, #17a673);
    padding: 28px 24px 20px;
    text-align: center;
    color: #fff;
}
.rc-badge-success {
    width: 56px; height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.8rem;
    animation: rc-pop 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}
@keyframes rc-pop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.rc-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 4px; color: #fff; }
.rc-subtitle { font-size: 0.82rem; opacity: 0.85; margin: 0; }

.rc-section { padding: 16px 20px; border-bottom: 1px solid #f0f0f0; }
.rc-section:last-of-type { border-bottom: none; }
.rc-section-label {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: #9a9a9a; margin-bottom: 10px;
}
.rc-section-label i { margin-right: 5px; color: #1cc88a; }

.rc-row {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 0; border-bottom: 1px solid #f8f8f8;
}
.rc-row:last-child { border-bottom: none; }
.rc-lbl {
    min-width: 80px; font-size: 0.82rem;
    color: #888; font-weight: 500;
}
.rc-val {
    flex: 1; font-size: 0.9rem; font-weight: 600; color: #222;
    word-break: break-all; font-family: 'Courier New', monospace;
    background: #f8fffe; padding: 3px 8px; border-radius: 5px;
    border: 1px solid #e8f8f2;
}
.rc-expired { color: #e74a3b !important; }
.rc-copy {
    background: #eef9f4; border: 1px solid #c8edd8;
    border-radius: 6px; padding: 4px 9px;
    cursor: pointer; color: #1cc88a; font-size: 0.8rem;
    transition: all 0.2s; flex-shrink: 0;
}
.rc-copy:hover { background: #1cc88a; color: #fff; transform: scale(1.05); }

.rc-badge-days {
    font-size: 0.72rem; font-weight: 700; padding: 3px 9px;
    border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.rc-badge-days.ok    { background: #d4edda; color: #155724; }
.rc-badge-days.warn  { background: #fff3cd; color: #856404; }
.rc-badge-days.danger{ background: #f8d7da; color: #721c24; }

/* Ports grid */
.rc-ports-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.rc-port {
    background: #f8f9fc; border-radius: 8px; padding: 8px 10px;
    display: flex; flex-direction: column; align-items: center;
    border: 1px solid #e3e6f0;
}
.rc-port-name { font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.rc-port-num  { font-size: 0.85rem; font-weight: 700; color: #4e73df; margin-top: 2px; }

/* Payloads */
.rc-payload-block { background: #f8fffe; border-radius: 8px; border: 1px solid #d0f0e0; overflow: hidden; }
.rc-payload-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px; background: #edfaf4;
    font-size: 0.8rem; font-weight: 600; color: #155724;
    border-bottom: 1px solid #d0f0e0;
}
.rc-copy-payload {
    background: #1cc88a; color: #fff; border: none;
    border-radius: 5px; padding: 3px 10px; font-size: 0.75rem;
    cursor: pointer; transition: all 0.2s;
}
.rc-copy-payload:hover { background: #17a673; transform: scale(1.04); }
.rc-textarea {
    width: 100%; border: none; background: transparent;
    font-family: 'Courier New', monospace; font-size: 0.75rem;
    padding: 10px 12px; resize: none; color: #333;
    outline: none;
}

/* Copy all button */
.rc-btn-copyall {
    display: block; width: calc(100% - 40px); margin: 0 20px 20px;
    background: linear-gradient(135deg, #4e73df, #224abe);
    color: #fff; border: none; border-radius: 10px;
    padding: 13px; font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: all 0.3s; text-align: center;
}
.rc-btn-copyall:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(78,115,223,0.4); }
.rc-btn-copyall i { margin-right: 6px; }

/* Mobile */
@media (max-width: 576px) {
    .rc-ports-grid { grid-template-columns: repeat(2, 1fr); }
    .rc-lbl { min-width: 65px; font-size: 0.78rem; }
    .rc-val { font-size: 0.82rem; }
    .rc-header { padding: 20px 16px 16px; }
    .rc-section { padding: 12px 14px; }
    .rc-btn-copyall { width: calc(100% - 28px); margin: 0 14px 14px; }
}
