.linkrot-doc-page {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 20px 72px;
    box-sizing: border-box;
}

.linkrot-doc-page [hidden] {
    display: none !important;
}

.workspace-pod,
.pass-card,
.result-row {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.workspace-pod {
    max-width: 36rem;
    margin: 0 auto 28px;
    padding: 28px 24px;
}

.tab-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
}

.tab-switch-btn,
.scan-submit,
.choose-pass,
.reset-scan,
.result-title-btn,
.copy-box {
    font: inherit;
    cursor: pointer;
}

.tab-switch-btn {
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    padding: 8px 12px;
    font-size: 0.875rem;
    font-weight: 300;
}

.tab-switch-btn.is-active {
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

#panel-scan {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#channel-url,
.copy-box,
.scan-submit,
.choose-pass {
    width: 100%;
    box-sizing: border-box;
}

#channel-url {
    height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(30, 41, 59, 0.8);
    background: rgba(2, 6, 23, 0.5);
    color: #fff;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 300;
    padding: 0 16px;
}

#channel-url:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.5);
}

.scan-submit {
    height: 48px;
    border: 0;
    border-radius: 8px;
    background: #38bdf8;
    color: #041018;
    font-size: 0.875rem;
    font-weight: 600;
}

.scan-submit:hover {
    background: #7dd3fc;
}

.verify-error {
    margin: 0;
    color: #f87171;
    font-size: 0.875rem;
    font-weight: 300;
    text-align: center;
}

.guide-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.6;
}

.copy-box {
    display: flex;
    margin-top: 12px;
    border-radius: 12px;
    border: 1px solid #1e293b;
    background: rgba(2, 6, 23, 0.6);
    color: #60a5fa;
    padding: 12px 16px;
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    text-align: left;
}

.copy-box.is-copied {
    color: #6ee7b7;
}

.ring-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
}

.ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-track,
.ring-value {
    fill: none;
    stroke-width: 6;
}

.ring-track {
    stroke: #1e293b;
}

.ring-value {
    stroke: #38bdf8;
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.5s ease-out;
}

.ring-count {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 1.875rem;
    font-weight: 300;
}

.ring-caption,
.compliance-banner,
.result-title {
    text-align: center;
    font-weight: 300;
}

.ring-caption {
    margin: 22px 0 0;
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.6;
}

.result-toolbar {
    display: flex;
    justify-content: flex-end;
    max-width: 48rem;
    margin: 0 auto 8px;
}

.reset-scan {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #1e293b;
    background: rgba(15, 23, 42, 0.55);
    color: #e2e8f0;
    font-size: 1.15rem;
}

.result-title {
    margin: 0 0 16px;
    font-size: 1.25rem;
    font-weight: 600;
}

.result-list {
    list-style: none;
    margin: 0 auto 36px;
    padding: 0;
    max-width: 48rem;
}

.result-row {
    margin-bottom: 12px;
    padding: 16px;
    border-radius: 12px;
}

.result-row-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.result-title-btn {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.6;
    padding: 0;
}

.status-badge {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 300;
}

.status-badge--healthy {
    color: #6ee7b7;
}

.status-badge--action {
    color: #fca5a5;
}

.result-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(30, 41, 59, 0.8);
}

.result-links a {
    color: #7dd3fc;
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    font-weight: 300;
    word-break: break-all;
}

#offerBlock:not([hidden]) {
    animation: offer-in 0.55s ease-out;
}

@keyframes offer-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.compliance-banner {
    max-width: 42rem;
    margin: 8px auto 28px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(23, 37, 84, 0.2);
    color: #94a3b8;
    font-size: 0.75rem;
    line-height: 1.6;
    backdrop-filter: blur(8px);
}

.pass-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
}

.pass-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 24px 24px;
    text-align: center;
}

.pass-card h3 {
    margin: 0;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

.pass-price {
    margin: 16px 0 0;
    font-size: 1.875rem;
    font-weight: 600;
}

.pass-card ul {
    margin: 22px 0 28px;
    padding: 0;
    list-style: none;
    text-align: left;
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 300;
}

.pass-card li {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.pass-card li span {
    color: #34d399;
}

.choose-pass {
    margin-top: auto;
    border-radius: 8px;
    border: 1px solid #334155;
    background: rgba(2, 6, 23, 0.8);
    color: #fff;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pass-card--recommended {
    box-shadow: 0 0 28px rgba(59, 130, 246, 0.18);
}

.pass-flag {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(96, 165, 250, 0.4);
    background: #070a12;
    color: #dbeafe;
    font-size: 0.62rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    padding: 2px 10px;
}

@media (min-width: 900px) {
    .pass-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
