/* =========================================
   7STARSWIN BANNER CATEGORY PAGE
========================================= */

:root {
    --purple: #8f2de2;
    --purple-light: #b85cff;
    --purple-dark: #4a126f;
    --background: #08070b;
    --text: #ffffff;
    --muted: #a19cab;
}

/* Page background */

html,
body {
    min-height: 100%;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(93, 24, 142, 0.42),
            transparent 36%
        ),
        radial-gradient(
            circle at 5% 85%,
            rgba(67, 17, 100, 0.24),
            transparent 36%
        ),
        linear-gradient(
            145deg,
            #09080d 0%,
            #09070d 50%,
            #050507 100%
        );
    color: var(--text);
}

/* App width */

.app-shell {
    width: min(100%, 720px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 26px 20px 38px;
}

/* Logo */

.brand-mark {
    color: #ffffff;
    font-size: 30px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1.8px;
}

.brand-mark span {
    color: var(--purple-light);
}

/* Header */

.page-heading {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
    margin-bottom: 32px;
}

.page-heading h1 {
    margin: 0;
    color: #ffffff;
    font-size: 30px;
    font-weight: 750;
    line-height: 1.1;
    text-align: center;
    letter-spacing: -0.7px;
}

.back-link,
.home-link {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
}

.back-link {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 16, 24, 0.65);
    font-size: 34px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.home-link {
    border: 1px solid rgba(197, 123, 255, 0.55);
    background: linear-gradient(145deg, #a13af0, #701bd2);
    font-size: 22px;
    box-shadow:
        0 9px 22px rgba(138, 43, 226, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Category list */

.category-form {
    width: 100%;
}

.category-list {
    display: grid;
    gap: 20px;
}

/* Glass category card */

.category-card {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 46px;
    align-items: center;
    gap: 22px;

    min-height: 178px;
    padding: 28px;

    overflow: hidden;
    cursor: pointer;

    border: 1px solid rgba(183, 105, 246, 0.35);
    border-radius: 25px;

    background:
        linear-gradient(
            115deg,
            rgba(28, 27, 39, 0.92) 0%,
            rgba(24, 20, 34, 0.9) 58%,
            rgba(77, 21, 116, 0.7) 100%
        );

    box-shadow:
        0 20px 46px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        linear-gradient(
            130deg,
            rgba(255, 255, 255, 0.045),
            transparent 32%,
            transparent 70%,
            rgba(179, 78, 255, 0.08)
        );
}

.category-card::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;

    width: 210px;
    height: 210px;

    border-radius: 50%;
    background: rgba(148, 42, 226, 0.26);
    filter: blur(50px);
    pointer-events: none;
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(192, 115, 255, 0.62);
}

/* Hide original radio */

.category-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Icon box */

.category-icon-box {
    position: relative;
    z-index: 2;

    display: grid;
    place-items: center;

    width: 88px;
    height: 88px;

    border: 1px solid rgba(181, 93, 255, 0.54);
    border-radius: 23px;

    background:
        linear-gradient(
            145deg,
            rgba(102, 43, 151, 0.96),
            rgba(45, 23, 68, 0.96)
        );

    font-size: 38px;

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.27),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

/* Category text */

.category-details {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.category-details h2 {
    margin: 0 0 9px;
    color: #ffffff;
    font-size: 27px;
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.category-type {
    margin: 0;
    color: #a7a1b2;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
}

.category-line {
    display: block;
    width: 88px;
    height: 1px;
    margin: 18px 0;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.2),
            transparent
        );
}

.category-help {
    margin: 0;
    color: #a39ead;
    font-size: 15px;
    font-weight: 450;
    line-height: 1.4;
}

/* Custom radio */

.category-radio {
    position: relative;
    z-index: 2;

    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    border: 4px solid var(--purple-light);
    border-radius: 50%;

    background: rgba(10, 8, 15, 0.46);

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.category-radio span {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s ease;
}

/* Selected */

.category-card.selected {
    border-color: rgba(202, 134, 255, 0.92);

    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(176, 76, 255, 0.18),
        0 0 35px rgba(137, 43, 226, 0.15);
}

.category-card.selected .category-radio {
    background: rgba(168, 79, 244, 0.17);

    box-shadow:
        0 0 0 7px rgba(163, 73, 240, 0.1),
        0 0 22px rgba(166, 79, 244, 0.28);
}

.category-card.selected .category-radio span {
    background: linear-gradient(145deg, #c276ff, #8a2be2);
}

/* Continue button */

.continue-button {
    width: 100%;
    min-height: 72px;

    margin-top: 25px;
    padding: 18px 22px;

    border: 1px solid rgba(190, 104, 255, 0.5);
    border-radius: 22px;

    background:
        linear-gradient(
            90deg,
            #541183,
            #7922c5,
            #9c31e8
        );

    color: #ffffff;
    font-size: 21px;
    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 17px 40px rgba(91, 21, 135, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.continue-button:not(:disabled):hover {
    transform: translateY(-2px);
}

.continue-button:disabled {
    border-color: rgba(115, 79, 137, 0.4);
    background: rgba(74, 65, 87, 0.7);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    box-shadow: none;
}

/* Bottom security text */

.security-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 11px;

    margin-top: 26px;

    color: #898491;
    font-size: 14px;
    font-weight: 500;
}

.security-line b {
    color: var(--purple-light);
}

.security-icon {
    color: #9f5ddd;
    font-size: 20px;
}

/* Mobile */

@media (max-width: 600px) {
    .app-shell {
        padding: 20px 15px 32px;
    }

    .brand-mark {
        font-size: 27px;
    }

    .page-heading {
        grid-template-columns: 44px 1fr 44px;
        margin-top: 29px;
        margin-bottom: 25px;
    }

    .page-heading h1 {
        font-size: 26px;
    }

    .back-link,
    .home-link {
        width: 42px;
        height: 42px;
    }

    .category-list {
        gap: 15px;
    }

    .category-card {
        grid-template-columns: 68px minmax(0, 1fr) 34px;
        gap: 15px;

        min-height: 138px;
        padding: 20px 17px;

        border-radius: 20px;
    }

    .category-icon-box {
        width: 65px;
        height: 65px;
        border-radius: 18px;
        font-size: 29px;
    }

    .category-details h2 {
        margin-bottom: 6px;
        font-size: 21px;
    }

    .category-type {
        font-size: 13px;
    }

    .category-line {
        width: 62px;
        margin: 12px 0;
    }

    .category-help {
        font-size: 12px;
    }

    .category-radio {
        width: 33px;
        height: 33px;
        border-width: 3px;
    }

    .category-radio span {
        width: 12px;
        height: 12px;
    }

    .continue-button {
        min-height: 60px;
        margin-top: 18px;
        border-radius: 18px;
        font-size: 18px;
    }

    .security-line {
        margin-top: 20px;
        font-size: 12px;
    }
}