* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top left, rgba(75, 123, 236, 0.25), transparent 30%),
        linear-gradient(135deg, #0f172a, #1e3a8a 55%, #0f172a);
    color: #e2e8f0;
}

.page-shell {
    max-width: 1100px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 5px;
    padding: 24px;
    backdrop-filter: blur(12px);
    margin-bottom: 24px;
}

.logo {
    width: 90px;
    height: 90px;
    border-radius: 90px;
    object-fit: contain;
    border: 2px solid rgba(80, 109, 151, 0.2);
    background: rgb(255, 255, 255);
}

.eyebrow {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0 10px;
}

.page-header h1 {
    margin: 0;
    font-size: clamp(2rem, 2.4vw, 3.2rem);
    line-height: 1.05;
}

.hero {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    width: 100%;
    padding: 36px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 5px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 5px;
    background: rgba(246, 59, 59, 0.18);
    color: #bfdbfe;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.hero-card h2 {
    font-size: clamp(2rem, 2.2vw, 2.8rem);
    margin: 0;
    color: #f8fafc;
}

.hero-card p {
    max-width: 680px;
    margin: 18px auto 0;
    line-height: 1.8;
    color: #cbd5e1;
}

.primary-btn {
    margin-top: 28px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn:hover,
.primary-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    outline: none;
}

.page-footer {
    margin-top: 30px;
    padding: 18px 22px;
    border-radius: 5px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    font-size: 0.95rem;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 24px;
}

.modal--open {
    display: flex;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
}

.modal__panel {
    position: relative;
    width: min(100%, 880px);
    max-height: min(100vh, 88vh);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 5px;
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.4);
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 28px 10px;
}

.modal__label {
    margin: 0 0 6px;
    color: #94a3b8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.modal__header h2 {
    margin: 0;
    font-size: clamp(1.65rem, 2vw, 2.1rem);
}

.modal__close {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.14);
    color: #f8fafc;
    font-size: 1.7rem;
    cursor: pointer;
    transition: background 0.25s ease;
}

.modal__close:hover,
.modal__close:focus-visible {
    background: rgba(59, 130, 246, 0.28);
    outline: none;
}

.modal__content {
    overflow: auto;
    padding: 0 28px 28px;
}

.site-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.site-item {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}

.site-item:hover {
    transform: translateY(-2px);
    background: rgba(59, 130, 246, 0.15);
}

.site-item a {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px 22px;
    color: #e2e8f0;
    text-decoration: none;
}

.site-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.12);
}

.site-title {
    font-size: 1rem;
    line-height: 1.5;
}

.loading,
.empty,
.error {
    margin: 0;
    padding: 32px 0;
    color: #cbd5e1;
    text-align: center;
    font-size: 1rem;
}

.error {
    color: #fca5a5;
}

.no-scroll {
    overflow: hidden;
}

@media (max-width: 720px) {
    .page-shell {
        padding: 20px 16px;
    }

    .page-header {
        flex-direction: column;
        text-align: center;
    }

    .hero-card {
        padding: 28px 22px;
    }

    .modal__header {
        width: 100%;
        padding: 10px;
    }

    .modal__panel {
        width: 100%;
        border-radius: 5px;
        padding: 2px;
    }

    .modal__content {
        padding: 10px;
    }
}
