/* ====== INSTALLER PAGE GLOBAL STYLES ====== */

:root {
    --card-bg: rgba(3, 12, 35, 0.94);
    --accent-soft: rgba(29,139,218,0.22);
    --text-main: #f7fbff;
    --text-muted: #aab6cf;
    --line-blue: rgba(86,139,217,0.58);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 0% 0%, rgba(0,85,208,0.52), transparent 260px),
        radial-gradient(circle at 100% 100%, rgba(0,82,205,0.54), transparent 280px),
        radial-gradient(circle at top, #0f285c 0, #020817 56%, #000 100%);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

body::before,
body::after {
    content: "";
    position: fixed;
    top: 28%;
    width: 180px;
    height: 270px;
    pointer-events: none;
    opacity: 0.16;
    background-image: radial-gradient(rgba(30,131,216,0.92) 1px, transparent 1px);
    background-size: 12px 12px;
}

body::before {
    left: -72px;
}

body::after {
    right: -72px;
}

.card {
    width: 100%;
    max-width: 760px;
    background:
        linear-gradient(135deg, rgba(10,35,88,0.58), rgba(2,8,23,0.96) 48%, rgba(4,24,68,0.72)),
        var(--card-bg);
    border-radius: 18px;
    border: 1px solid var(--line-blue);
    box-shadow:
        0 24px 60px rgba(0,0,0,0.82),
        0 0 46px rgba(0,76,177,0.18),
        inset 0 0 0 1px rgba(255,255,255,0.04);
    padding: 24px 24px 22px;
    backdrop-filter: blur(18px);
}

@media (min-width: 640px) {
    .card {
        padding: 28px 32px 26px;
    }
}

.header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.title-text {
    display: flex;
    flex-direction: column;
}

.title-text h1 {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0.01em;
    text-shadow: 0 0 18px rgba(255,255,255,0.13);
}

.title-text span {
    font-size: 13px;
    color: var(--text-muted);
}

.detected {
    min-height: 26px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 7px 0 4px;
    padding: 2px 10px;
    border: 1px solid rgba(50,112,204,0.62);
    border-radius: 12px;
    background: rgba(3,15,40,0.62);
    font-size: 14px;
    color: var(--text-muted);
}

.detected strong {
    color: var(--text-main);
}

.main-button {
    margin: 6px 0 9px;
    display: flex;
    justify-content: center;
}

.btn-primary {
    width: min(100%, 500px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 12px;
    border: 1px solid rgba(84,164,255,0.78);
    text-decoration: none;
    background:
        radial-gradient(circle at 0% 0%, rgba(58,211,234,0.92), transparent 44%),
        linear-gradient(135deg, #35c8de 0%, #0973f0 54%, #064fd6 100%);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow:
        0 10px 28px rgba(0,72,206,0.34),
        0 0 18px rgba(25,164,220,0.24),
        inset 0 1px 0 rgba(255,255,255,0.34);
    white-space: nowrap;
}

.btn-row {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.btn-secondary {
    flex: 1 1 210px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 12px;
    border: 1px solid rgba(112,143,203,0.7);
    background:
        linear-gradient(135deg, rgba(18,38,84,0.88), rgba(7,17,44,0.8)),
        rgba(15,23,42,0.85);
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    box-shadow:
        0 10px 24px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.btn-secondary:hover {
    border-color: rgba(82,163,238,0.95);
}

.hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.sections {
    margin-top: 12px;
    padding-top: 9px;
    border-top: 1px solid rgba(132,172,239,0.26);
    display: grid;
    gap: 14px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.pill {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #dbeeff;
}

.is-hidden {
    display: none !important;
}

/* ====== ICONS ====== */

.ico {
    --s: 22px;
    width: var(--s);
    height: var(--s);
    display: inline-block;
    position: relative;
    flex: 0 0 auto;
    vertical-align: middle;
}

.logo-dot.ico-rd {
    --s: 34px;
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -1px;
    background:
        radial-gradient(circle at center, #102a86 0 46%, #061a5b 47% 58%, #12c8ff 59% 67%, #0a5df0 68% 100%);
    box-shadow:
        0 0 18px rgba(29,171,245,0.48),
        inset 0 2px 5px rgba(255,255,255,0.24),
        inset 0 -7px 10px rgba(0,28,127,0.5);
    text-shadow: 0 1px 8px rgba(255,255,255,0.22);
}

.ico-monitor,
.ico-download {
    border: 1px solid rgba(30,178,241,0.9);
    border-radius: 999px;
    background: rgba(0,80,178,0.22);
    box-shadow:
        inset 0 0 0 1px rgba(0,55,130,0.38),
        0 0 10px rgba(0,129,255,0.24);
}

.ico-monitor::before,
.ico-download::before {
    content: "";
    position: absolute;
    inset: 4px;
    background: #45cfff;
}

.ico-monitor::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 4h18v12H3V4Zm2 2v8h14V6H5Zm5 12h4v2h4v2H6v-2h4v-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 4h18v12H3V4Zm2 2v8h14V6H5Zm5 12h4v2h4v2H6v-2h4v-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ico-download::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 3h2v10.2l3.6-3.6L18 11l-6 6-6-6 1.4-1.4 3.6 3.6V3Zm-6 14h2v2h10v-2h2v4H5v-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 3h2v10.2l3.6-3.6L18 11l-6 6-6-6 1.4-1.4 3.6 3.6V3Zm-6 14h2v2h10v-2h2v4H5v-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ico-windows {
    background: url("/assets/icons/windows.svg?v=20260628-7") center / contain no-repeat;
    filter: drop-shadow(0 0 5px rgba(16,167,245,0.32));
}

.ico-apple::before {
    content: "";
    display: block;
    color: #f7fbff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 22px;
    line-height: 22px;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.28));
}

.ico-tux::before {
    content: "🐧";
    display: block;
    font-size: 21px;
    line-height: 22px;
    filter: drop-shadow(0 0 4px rgba(255,209,74,0.18));
}

.ico-android {
    background: url("/assets/icons/android.svg?v=20260628-7") center / contain no-repeat;
    filter: drop-shadow(0 0 5px rgba(88,211,56,0.28));
}

.ico-android::before,
.ico-android::after {
    content: none;
}

@media (max-width: 640px) {
    .btn-secondary {
        flex-basis: 100%;
    }
}
