.public-body {
    background: linear-gradient(180deg, #f5f7fb 0%, #eef2f8 100%);
    min-height: 100vh;
    font-size: .92rem;
    color: #1f2937;
}

.public-nav {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.public-nav .navbar-brand {
    font-weight: 700;
    color: #0f3460;
}

.public-nav .navbar-brand i {
    margin-right: 6px;
    color: #e60023;
}

.public-nav .nav-link {
    color: #374151;
    font-weight: 500;
    padding-left: .9rem !important;
    padding-right: .9rem !important;
    border-radius: .4rem;
}

.public-nav .nav-link:hover {
    background: #f1f5f9;
    color: #0f3460;
}

.public-footer {
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.public-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .85rem;
    box-shadow: 0 2px 8px rgba(15, 52, 96, .06);
    overflow: hidden;
}

.public-card .card-header {
    background: linear-gradient(135deg, #0f3460, #16213e);
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    border: none;
    padding: .9rem 1.2rem;
}

.public-card .card-header i {
    margin-right: 6px;
}

.public-card .card-body {
    padding: 1.2rem;
}

.stat-card {
    border-left: 4px solid #0f3460;
}

.stat-card .stat-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    font-weight: 600;
}

.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    margin-top: .25rem;
}

.stat-card .stat-sub {
    font-size: .75rem;
    color: #6b7280;
    margin-top: .25rem;
}

.refresh-progress {
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    overflow: hidden;
}

.refresh-progress .bar {
    height: 100%;
    background: linear-gradient(90deg, #0f3460, #1a73e8);
    transition: width .4s ease;
}

.refresh-progress .bar.indeterminate {
    width: 30% !important;
    animation: indeterminate 1.4s ease-in-out infinite;
}

@keyframes indeterminate {
    0% { margin-left: -30%; }
    50% { margin-left: 50%; }
    100% { margin-left: 100%; }
}

.step-pills .step-pill {
    display: inline-flex;
    align-items: center;
    padding: .3rem .7rem;
    border-radius: 1rem;
    font-size: .78rem;
    font-weight: 600;
    margin: .2rem .25rem 0 0;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    transition: all .25s;
}

.step-pills .step-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    margin-right: .4rem;
}

.step-pills .step-pill.active {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.step-pills .step-pill.active .dot {
    background: #1d4ed8;
    animation: pulse 1s ease-in-out infinite;
}

.step-pills .step-pill.done {
    background: #d1fae5;
    color: #047857;
    border-color: #6ee7b7;
}

.step-pills .step-pill.done .dot {
    background: #047857;
}

.step-pills .step-pill.error {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.step-pills .step-pill.error .dot {
    background: #b91c1c;
}

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

.log-box {
    background: #0f172a;
    color: #cbd5e1;
    border-radius: .5rem;
    padding: .8rem 1rem;
    font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
    font-size: .78rem;
    line-height: 1.55;
    height: 220px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.log-box .log-line.log-error { color: #fca5a5; }
.log-box .log-line.log-success { color: #6ee7b7; }
.log-box .log-line.log-warning { color: #fcd34d; }
.log-box .log-line.log-info { color: #93c5fd; }

.brand-table {
    background: #fff;
    border-radius: .6rem;
    overflow: hidden;
}

.brand-table table {
    margin-bottom: 0;
}

.brand-table thead th {
    background: #f8fafc;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #475569;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.brand-table tbody td {
    font-size: .82rem;
    vertical-align: middle;
    border-color: #f1f5f9;
}

.brand-table tbody tr:hover {
    background: #f8fafc;
}

.brand-table tbody tr.risk-high {
    background: #fce4ec;
}

.brand-table tbody tr.risk-high:hover {
    background: #f8bbd0;
}

.risk-badge {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    padding: .1rem .4rem;
    border-radius: .3rem;
    font-size: .65rem;
    font-weight: 700;
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f8bbd0;
    vertical-align: middle;
}

.network-badge {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: .35rem;
    font-size: .72rem;
    font-weight: 600;
    background: #e0e7ff;
    color: #3730a3;
}

.network-badge.unknown {
    background: #f1f5f9;
    color: #64748b;
}

.competition-badge {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: .35rem;
    font-size: .72rem;
    font-weight: 600;
}

.competition-badge.very-high { background: #fee2e2; color: #b91c1c; }
.competition-badge.high { background: #ffedd5; color: #c2410c; }
.competition-badge.medium { background: #fef3c7; color: #b45309; }
.competition-badge.low { background: #d1fae5; color: #047857; }
.competition-badge.very-low { background: #dbeafe; color: #1d4ed8; }
.competition-badge.unknown { background: #f1f5f9; color: #64748b; }

.brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: .3rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.config-form .form-label {
    font-weight: 600;
    color: #374151;
    font-size: .85rem;
}

.config-form .form-text {
    font-size: .76rem;
    color: #6b7280;
}

.public-btn-primary {
    background: #0f3460;
    border-color: #0f3460;
    color: #fff;
    font-weight: 600;
}

.public-btn-primary:hover {
    background: #16213e;
    border-color: #16213e;
    color: #fff;
}

.public-btn-danger {
    background: #e60023;
    border-color: #e60023;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.empty-state i {
    font-size: 3.5rem;
    color: #cbd5e1;
    margin-bottom: .8rem;
    display: block;
}
