* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0a0e1a;
    --color-bg-secondary: #13182b;
    --color-border: #2a3244;
    --color-text-primary: #e6edf3;
    --color-text-secondary: #9ba3af;
    --color-text-tertiary: #6b7280;
    --color-accent: #4f9eff;
    --color-accent-bright: #70b8ff;
    --color-success: #2dd4bf;
    --color-success-dim: #14b8a6;
    --color-warning: #fbbf24;
    --color-danger: #f87171;
    --color-card-bg: #0f1624;
    --color-card-border: #1e2a42;
    --color-hover: #1a2333;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --gradient-primary: linear-gradient(135deg, #4f9eff 0%, #2dd4bf 100%);
    --gradient-card: linear-gradient(145deg, rgba(19, 24, 43, 0.8) 0%, rgba(15, 22, 36, 0.9) 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 50%, #0f1521 100%);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 32px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(79, 158, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(45, 212, 191, 0.06) 0%, transparent 50%);
    animation: rotate 40s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

header {
    margin-bottom: 40px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

h1 {
    font-size: 40px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 16px;
    color: var(--color-text-secondary);
}

.progress-container {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg,
            var(--color-accent) 0%,
            #7bb3ff 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
    position: relative;
}

.progress-text {
    margin-top: 8px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.main-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 24px;
    margin-bottom: 32px;
    align-items: start;
}

.score-section {
    background: var(--gradient-card);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.score-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0.8;
}

.score-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(79, 158, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.score-display {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.score-left {
    width: 100%;
}

.score-right {
    width: 100%;
}

.ip-display {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ip-display-item {
    background: rgba(19, 24, 43, 0.5);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ip-display-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ip-display-item:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateX(2px);
}

.ip-display-item:hover::before {
    opacity: 1;
}

.ip-display-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.ip-address-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ip-display-value {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Courier New', monospace;
    font-size: 13px;
    color: var(--color-accent-bright);
    word-break: break-all;
    font-weight: 500;
    flex: 1;
}

.copy-btn {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 4px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--color-text-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.copy-btn:hover {
    opacity: 0.8;
    background: rgba(79, 158, 255, 0.08);
    border-color: rgba(79, 158, 255, 0.15);
    color: var(--color-accent);
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    background: rgba(45, 212, 191, 0.08);
    border-color: rgba(45, 212, 191, 0.15);
    color: var(--color-success-dim);
    opacity: 0.7;
}

.copy-btn svg {
    width: 13px;
    height: 13px;
}

.score-number {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.score-number.updating {
    animation: popIn 0.3s ease-out;
}

.score-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.score-text {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.readiness-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    animation: slideUp 0.5s ease-out;
    height: 36px;
}

.readiness-badge.hidden {
    visibility: hidden;
    opacity: 0;
    animation: none;
}

.badge-button-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: nowrap;
}

.badge-button-container .readiness-badge {
    flex: 6;
}

.badge-button-container .button {
    flex: 4;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-excellent {
    background: linear-gradient(135deg, rgba(63, 185, 80, 0.2) 0%, rgba(63, 185, 80, 0.1) 100%);
    color: var(--color-success);
    border: 1px solid rgba(63, 185, 80, 0.3);
}

.badge-good {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.2) 0%, rgba(88, 166, 255, 0.1) 100%);
    color: var(--color-accent);
    border: 1px solid rgba(88, 166, 255, 0.3);
}

.badge-warning {
    background: linear-gradient(135deg, rgba(210, 153, 34, 0.2) 0%, rgba(210, 153, 34, 0.1) 100%);
    color: var(--color-warning);
    border: 1px solid rgba(210, 153, 34, 0.3);
}

.badge-poor {
    background: linear-gradient(135deg, rgba(248, 81, 73, 0.2) 0%, rgba(248, 81, 73, 0.1) 100%);
    color: var(--color-danger);
    border: 1px solid rgba(248, 81, 73, 0.3);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.summary-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.summary-subtext {
    font-size: 11px;
    color: var(--color-text-tertiary);
}

.summary-label {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.summary-value {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-success {
    background: var(--color-success);
}

.status-warning {
    background: var(--color-warning);
}

.status-failed {
    background: var(--color-danger);
}

.status-pending {
    background: var(--color-text-tertiary);
}

.section {
    background: var(--gradient-card);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    margin-bottom: 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.section:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

.section-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.section-header:hover {
    background: var(--color-hover);
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.collapse-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s;
    color: var(--color-text-secondary);
}

.collapse-icon.expanded {
    transform: rotate(90deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.section-content.expanded {
    max-height: 1500px;
}

.section-body {
    padding: 20px;
}

.ip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.ip-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.ip-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.ip-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ip-value {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Courier New', monospace;
    font-size: 14px;
    color: var(--color-text-primary);
    word-break: break-all;
}

.test-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.test-item {
    background: rgba(19, 24, 43, 0.4);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.test-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.test-expand-icon {
    position: absolute;
    right: -2px;
    font-size: 18px;
    font-weight: bold;
    color: var(--color-text-tertiary);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.test-expand-icon.expanded {
    transform: rotate(90deg);
}

.test-item:hover .test-expand-icon {
    color: var(--color-accent);
}

.test-item-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0;
}

.test-item-details.expanded {
    max-height: 500px;
    margin-top: 8px;
}

.test-item-details-content {
    padding: 8px 0 0 26px;
    border-top: 1px solid var(--color-border);
    margin-top: 8px;
}

.test-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.test-item:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.test-item:hover::before {
    opacity: 1;
}

.test-item.running {
    border-color: var(--color-accent);
    background: rgba(79, 158, 255, 0.1);
    box-shadow: 0 0 20px rgba(79, 158, 255, 0.2);
}

.test-item.running::before {
    opacity: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.test-status-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.test-info {
    flex: 1;
    min-width: 0;
}

.test-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}

.test-conclusion {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-text-primary);
}

.test-description {
    font-size: 11px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.test-result {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-right: 24px;
}

.test-latency {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.test-badge {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge-success {
    background: rgba(45, 212, 191, 0.15);
    color: var(--color-success);
    border: 1px solid rgba(45, 212, 191, 0.4);
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.1);
}

.badge-failed {
    background: rgba(248, 113, 113, 0.15);
    color: var(--color-danger);
    border: 1px solid rgba(248, 113, 113, 0.4);
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.1);
}

.badge-warning {
    background: rgba(251, 191, 36, 0.15);
    color: var(--color-warning);
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.1);
}

.badge-pending {
    background: rgba(107, 114, 128, 0.15);
    color: var(--color-text-secondary);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.badge-running {
    background: rgba(79, 158, 255, 0.15);
    color: var(--color-accent-bright);
    border: 1px solid rgba(79, 158, 255, 0.4);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(79, 158, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(79, 158, 255, 0.4);
    }
}

.spinner {
    border: 2px solid var(--color-border);
    border-top: 2px solid var(--color-accent);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.test-item {
    animation: slideIn 0.15s ease-out forwards;
    opacity: 1;
}

.test-item.visible {
    opacity: 1;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gradient-primary);
    color: #ffffff;
    border: 1px solid rgba(79, 158, 255, 0.3);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(79, 158, 255, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0;
    white-space: nowrap;
    height: 36px;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.button:hover:not(:disabled)::before {
    left: 100%;
}

.button:hover:not(:disabled) {
    box-shadow: 0 6px 24px rgba(79, 158, 255, 0.4);
    transform: translateY(-2px);
    border-color: rgba(112, 184, 255, 0.5);
}

.button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(79, 158, 255, 0.3);
}

.button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.button-icon {
    width: 16px;
    height: 16px;
}

footer {
    text-align: center;
    padding: 48px 0 32px;
    color: var(--color-text-secondary);
    font-size: 14px;
    border-top: 1px solid var(--color-border);
    margin-top: 32px;
}

footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

footer p::before,
footer p::after {
    content: '';
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

footer a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #7bb3ff;
    text-decoration: underline;
}

/* Google Ads Containers */
.ad-container {
    margin: 24px 0;
    text-align: center;
    min-height: 100px;
}

.ad-container.top {
    margin-top: 0;
    margin-bottom: 24px;
}

.ad-container.bottom {
    margin-top: 32px;
    margin-bottom: 24px;
}

/* Navigation */
.nav-bar {
    background: var(--gradient-card);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-lg);
    padding: 18px 28px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    position: relative;
}

.nav-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.nav-brand {
    font-size: 19px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-accent-bright);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.primary {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    border: 1px solid rgba(79, 158, 255, 0.3);
    box-shadow: 0 4px 16px rgba(79, 158, 255, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-link.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.nav-link.primary:hover::before {
    left: 100%;
}

.nav-link.primary::after {
    display: none;
}

.nav-link.primary:hover {
    color: white;
    box-shadow: 0 6px 24px rgba(79, 158, 255, 0.4);
    transform: translateY(-2px);
    border-color: rgba(112, 184, 255, 0.5);
}

/* SVG Icons */
.icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}


@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    body::before {
        animation: rotate 60s linear infinite;
    }

    .nav-bar {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
    }

    .nav-brand {
        font-size: 17px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .nav-link.primary {
        padding: 8px 20px;
        font-size: 13px;
    }

    header {
        margin-bottom: 24px;
    }

    h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 14px;
    }

    .main-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .score-section {
        padding: 20px;
        position: relative;
        top: 0;
    }

    .score-display {
        flex-direction: column;
        gap: 20px;
    }

    .score-label {
        font-size: 13px;
    }

    .score-number {
        font-size: 56px;
    }

    .score-text {
        font-size: 15px;
    }

    .ip-display-item {
        padding: 10px 12px;
    }

    .ip-display-label {
        font-size: 10px;
    }

    .ip-display-value {
        font-size: 12px;
    }

    .copy-btn {
        width: 22px;
        height: 22px;
        padding: 4px;
    }

    .copy-btn svg {
        width: 11px;
        height: 11px;
    }

    .readiness-badge {
        font-size: 13px;
        padding: 7px 14px;
    }

    .badge-button-container {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .button {
        padding: 9px 18px;
        font-size: 13px;
    }

    .section {
        margin-bottom: 16px;
    }

    .section-body {
        padding: 16px;
    }

    .test-item {
        padding: 12px 14px;
        gap: 10px;
    }

    .test-name {
        font-size: 13px;
    }

    .test-description {
        font-size: 11px;
    }

    .test-badge {
        font-size: 13px;
        padding: 4px 8px;
        min-width: 26px;
    }

    .test-latency {
        font-size: 11px;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }

    .summary-card {
        padding: 16px;
    }

    .summary-label {
        font-size: 12px;
    }

    .summary-value {
        font-size: 18px;
    }

    .ip-grid {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 32px 0 24px;
        font-size: 13px;
    }

    footer p::before,
    footer p::after {
        width: 30px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 13px;
    }

    .nav-bar {
        padding: 14px 16px;
    }

    .nav-brand {
        font-size: 16px;
    }

    .nav-link.primary {
        padding: 8px 16px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }

    .score-section {
        padding: 16px;
    }

    .score-label {
        font-size: 12px;
    }

    .score-number {
        font-size: 44px;
    }

    .score-text {
        font-size: 14px;
    }

    .ip-display-item {
        padding: 8px 10px;
    }

    .copy-btn {
        width: 20px;
        height: 20px;
        padding: 3px;
    }

    .copy-btn svg {
        width: 10px;
        height: 10px;
    }

    .readiness-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .badge-button-container {
        width: 100%;
    }

    .button {
        padding: 10px 16px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }

    .section-body {
        padding: 12px;
    }

    .test-item {
        padding: 10px 12px;
    }

    .test-name {
        font-size: 13px;
    }

    .test-description {
        font-size: 11px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .summary-card {
        padding: 14px;
    }

    footer {
        padding: 28px 0 20px;
        font-size: 12px;
    }

    footer p {
        flex-direction: column;
        gap: 12px;
    }

    footer p::before,
    footer p::after {
        display: none;
    }
}