@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* =========================
   VARIABLES
========================= */

:root {
    --bg: #05080d;
    --panel: rgba(15, 20, 29, 0.82);
    --panel-strong: rgba(18, 24, 34, 0.95);
    --line: rgba(255, 255, 255, 0.08);
    --line-green: rgba(45, 211, 111, 0.45);
    --text: #ffffff;
    --muted: #a8b0be;
    --green: #36d66b;
    --purple: #8b5cf6;
    --twitch: #9146ff;
    --danger: #ff6b6b;
    --warning: #ffcc66;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

/* =========================
   BASE
========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    background:
            radial-gradient(circle at 24% 10%, rgba(45, 211, 111, 0.08), transparent 32%),
            radial-gradient(circle at 90% 0%, rgba(32, 115, 255, 0.06), transparent 35%),
            var(--bg);
    opacity: 0;
    animation: pageFadeIn 0.22s ease forwards;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

/* =========================
   ANIMATIONS / UTILS
========================= */

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

@keyframes pageFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(6px);
    }
}

body.page-leave {
    animation: pageFadeOut 0.18s ease forwards;
}

.hidden,
.view.hidden,
.pill.off,
.dot.off {
    display: none !important;
}

/* =========================
   APP LAYOUT
========================= */

.app-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 100vh;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 28px 14px 20px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(13, 18, 27, 0.96), rgba(10, 14, 21, 0.98));
    border-right: 1px solid var(--line);
    box-shadow: 18px 0 60px rgba(0, 0, 0, 0.25);
}

.sidebar-top {
    flex-shrink: 0;
}

.brand {
    display: block;
    margin: 0 8px 48px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand span {
    color: var(--green);
}

.menu {
    display: grid;
    gap: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 600;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.menu-item:hover,
.menu-item.active {
    color: var(--green);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.04);
}

.menu-icon {
    font-size: 20px;
}

.sidebar-scroll {
    flex: 1;
    min-height: 0;
    margin: 20px 0;
    padding-right: 6px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(145, 70, 255, 0.55) transparent;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(145, 70, 255, 0.55);
    border-radius: 999px;
}

.sidebar-modules {
    display: grid;
    gap: 15px;
}

.sidebar-status {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 16px;
    border: 1px solid rgba(45, 211, 111, 0.18);
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(28, 127, 61, 0.35), rgba(16, 24, 35, 0.82));
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.sidebar-status:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 211, 111, 0.35);
}

.sidebar-status.twitch-sidebar {
    border-color: rgba(139, 92, 246, 0.28);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.30), rgba(16, 24, 35, 0.82));
}

.sidebar-status strong {
    display: block;
    font-size: 14px;
}

.sidebar-status small {
    display: block;
    color: var(--muted);
    opacity: 0.7;
}

.spotify-badge,
.twitch-badge {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: 20px;
}

.spotify-badge {
    background: var(--green);
    color: #062111;
}

.twitch-badge {
    background: var(--purple);
    color: #f4efff;
}

.dot {
    width: 10px;
    height: 10px;
    margin-left: auto;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 20px var(--green);
}

.sidebar-user {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    cursor: default;
}

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

.user-info strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
    background: #111722;
    border: 2px solid rgba(45, 211, 111, 0.55);
}

.avatar.large {
    width: 72px;
    height: 72px;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 72px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(12, 17, 25, 0.98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.58);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(0.98);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.sidebar-user.open .user-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.user-dropdown::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: -7px;
    width: 14px;
    height: 14px;
    background: rgba(12, 17, 25, 0.98);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.user-dropdown a {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 11px 13px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.16s ease, background 0.16s ease;
}

.user-dropdown a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.user-dropdown .logout {
    color: #ff5f66;
}

.user-dropdown .logout:hover {
    color: #ff777d;
    background: rgba(255, 95, 102, 0.12);
}

/* =========================
   MAIN CONTENT
========================= */

.content {
    width: min(820px, calc(100vw - 260px));
    margin-left: 70px;
    padding: 52px 0 36px;
}

.hero h1 {
    margin: 0;
    font-size: 42px;
    letter-spacing: -1.6px;
}

.hero p {
    margin: 14px 0 58px;
    color: var(--muted);
    font-size: 17px;
}

.section {
    margin-bottom: 48px;
}

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

.section-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 27px;
}

footer {
    margin-top: 38px;
    color: rgba(255, 255, 255, 0.42);
}

/* =========================
   BUTTONS / PILLS
========================= */

.ghost-button,
.connect-button,
.module-toggle-button,
.url-action-box button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ghost-button {
    padding: 14px 22px;
    border: 1px solid rgba(45, 211, 111, 0.28);
    border-radius: 13px;
    color: var(--green);
    font-weight: 700;
    background: rgba(45, 211, 111, 0.08);
    transition: background 0.18s ease, border-color 0.18s ease;
}

.ghost-button:hover {
    background: rgba(45, 211, 111, 0.14);
    border-color: rgba(45, 211, 111, 0.45);
}

.pill {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 99px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    background: rgba(45, 211, 111, 0.1);
}

.connect-button,
.module-toggle-button {
    padding: 16px 24px;
    border: 1px solid rgba(45, 211, 111, 0.34);
    border-radius: 10px;
    color: #dfffe9;
    font-size: 16px;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(45, 211, 111, 0.62), rgba(45, 211, 111, 0.24));
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.connect-button:hover,
.module-toggle-button:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 211, 111, 0.55);
    background: linear-gradient(135deg, rgba(45, 211, 111, 0.72), rgba(45, 211, 111, 0.3));
}

.module-disabled-button {
    color: #2dd46f;
    border-color: rgba(45, 211, 111, 0.35);
    background: rgba(45, 211, 111, 0.12);
}

.module-disabled-button:hover {
    background: rgba(45, 211, 111, 0.2);
}

.disconnect-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border: 1px solid rgba(255, 107, 107, 0.4);
    border-radius: 10px;
    color: var(--danger);
    font-size: 14px;
    font-weight: 800;
    background: rgba(255, 107, 107, 0.08);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.disconnect-button:hover {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.6);
}

/* =========================
   DASHBOARD MODULE CARDS
========================= */

.module-card {
    display: grid;
    grid-template-columns: 300px 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 24px 30px;
    min-height: 148px;
    margin-bottom: 16px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(18, 24, 34, 0.9), rgba(10, 15, 22, 0.85));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: rgba(45, 211, 111, 0.28);
    background: linear-gradient(135deg, rgba(22, 31, 43, 0.96), rgba(10, 15, 22, 0.9));
}

.module-card > .spotify-preview,
.module-card > .twitch-preview,
.module-card > .chat-preview {
    grid-column: 1;
    grid-row: 1;
}

.module-card > .module-text {
    grid-column: 2;
    grid-row: 1;
}

.module-card > .module-toggle-button {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: 300px;
    justify-self: start;
    margin-top: 15px;
}



.module-card > .module-toggle-button {
    grid-column: 1;
    grid-row: 2;
}
.module-text h3 {
    margin: 0 0 10px;
    font-size: 19px;
}

.module-text p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.55;
}
.module-text {
    grid-column: 2;
    grid-row: 1;
}
.arrow {
    color: rgba(255, 255, 255, 0.42);
    font-size: 42px;
}

.extra-module {
    display: none;
}

.show-all-modules .extra-module {
    display: grid;
}

/* =========================
   MODULE PREVIEWS
========================= */

.spotify-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    background: #030405;
}

.cover-art {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 9px;
    background:
            linear-gradient(135deg, rgba(45, 211, 111, 0.35), transparent),
            linear-gradient(45deg, #20324d, #08080a);
}

.preview-content {
    flex: 1;
    min-width: 0;
}

.preview-content strong {
    display: block;
    margin: 6px 0 2px;
    font-size: 17px;
}

.preview-content span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.fake-progress {
    height: 6px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.16);
}

.fake-progress i {
    display: block;
    width: 62%;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
}

.fake-time {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    color: var(--muted);
    font-size: 10px;
}

.twitch-preview {
    width: 300px;
    padding: 18px;
    border: 1px solid rgba(145, 70, 255, 0.45);
    border-radius: 16px;
    background: rgba(18, 14, 26, 0.98);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.twitch-preview-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(145, 70, 255, 0.35);
    color: #d7c4ff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.twitch-preview-title {
    display: block;
    margin: 14px 0 12px;
    color: #fff;
    font-size: 16px;
}

.twitch-preview-timer {
    margin-bottom: 14px;
    padding: 10px;
    border: 1px solid rgba(145, 70, 255, 0.35);
    border-radius: 11px;
    background: rgba(145, 70, 255, 0.13);
}

.twitch-preview-timer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 10px;
}

.twitch-preview-timer-top strong {
    color: #d7c4ff;
}

.twitch-preview-timer-bar,
.twitch-preview-bar {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.twitch-preview-timer-bar i {
    display: block;
    width: 85%;
    height: 100%;
    border-radius: inherit;
    background: #a855f7;
}

.twitch-preview-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #9146ff, #a970ff);
    transition: width 0.6s ease;
}

.twitch-preview-outcome {
    padding: 10px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.07);
}

.twitch-preview-outcome + .twitch-preview-outcome {
    margin-top: 10px;
}

.twitch-preview-outcome-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: white;
    font-size: 13px;
    font-weight: 900;
}

.twitch-preview-details {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 10px;
}

.chat-preview {
    width: 300px;
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(145, 70, 255, 0.35);
    border-radius: 13px;
    background: rgba(18, 14, 26, 0.98);
}

.chat-preview-message {
    padding: 10px 12px;
    border-radius: 11px;
    color: white;
    background: rgba(255, 255, 255, 0.07);
}

.chat-preview-message strong {
    display: block;
    margin-bottom: 4px;
    color: #9146ff;
    font-size: 12px;
}

.chat-preview-message span {
    font-size: 13px;
}

/* =========================
   MODULE PAGES
========================= */

.module-page,
.spotify-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 34px;
}

.module-panel,
.spotify-panel {
    width: min(760px, 100%);
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
            radial-gradient(circle at 50% 8%, rgba(45, 211, 111, 0.08), transparent 32%),
            rgba(8, 12, 18, 0.94);
    box-shadow: var(--shadow);
}

.back-link {
    display: inline-flex;
    margin-bottom: 30px;
    color: var(--green);
    font-weight: 700;
}

.success-hero {
    padding: 24px;
    text-align: center;
    border: 1px solid var(--line-green);
    border-radius: 14px;
    background:
            radial-gradient(circle at 50% 0%, rgba(45, 211, 111, 0.34), transparent 42%),
            linear-gradient(135deg, rgba(45, 211, 111, 0.16), rgba(7, 11, 16, 0.48));
}

.success-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    color: #03150a;
    font-size: 42px;
    font-weight: 900;
    background: var(--green);
    box-shadow: 0 20px 50px rgba(45, 211, 111, 0.24);
}

.spotify-logo {
    font-size: 46px;
}

.success-hero h1 {
    margin: 0 0 12px;
    font-size: 31px;
    letter-spacing: -1px;
}

.success-hero p {
    margin: 0;
    color: #d5dae2;
}

.info-card,
.return-card {
    display: block;
    margin-top: 22px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(18, 24, 34, 0.92), rgba(12, 17, 25, 0.92));
}

.info-card h2 {
    margin: 0 0 24px;
    font-size: 20px;
}

.info-card p {
    color: var(--muted);
    line-height: 1.6;
}

.error-card {
    border-color: rgba(255, 107, 107, 0.45);
}

.center-account-card {
    text-align: center;
}

.account-center {
    display: grid;
    justify-items: center;
    gap: 10px;
}

.account-center small {
    color: var(--muted);
}

.account-center strong {
    font-size: 22px;
}

.url-action-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
}

.url-action-box button {
    min-width: 120px;
    padding: 14px 22px;
    border: 1px solid rgba(45, 211, 111, 0.35);
    border-radius: 10px;
    color: #2dd46f;
    font-size: 14px;
    font-weight: 800;
    background: rgba(45, 211, 111, 0.12);
    transition: background 0.18s ease;
}

.url-action-box button:hover {
    background: rgba(45, 211, 111, 0.2);
}

.hidden-url {
    display: none;
}

.return-card {
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.return-card:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 211, 111, 0.22);
}

.return-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.home-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 28px;
}

.steps {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.steps div {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
}

.steps span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    color: #06150b;
    font-weight: 900;
    background: var(--green);
}

/* =========================
   DISCORD LOGIN VIEW
========================= */

.discord-login-view {
    min-height: calc(100vh - 110px);
    display: grid;
    place-items: center;
}

.login-card {
    width: min(520px, 100%);
    padding: 34px;
    text-align: center;
    border: 1px solid var(--line-green);
    border-radius: 18px;
    background:
            radial-gradient(circle at 50% 0%, rgba(45, 211, 111, 0.22), transparent 42%),
            linear-gradient(135deg, rgba(18, 24, 34, 0.95), rgba(8, 12, 18, 0.95));
    box-shadow: var(--shadow);
}

.login-card h1 {
    margin: 18px 0 10px;
}

.login-card p {
    margin-bottom: 24px;
    color: var(--muted);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    .content {
        width: auto;
        margin-left: 40px;
        margin-right: 24px;
    }

    .module-card {
        grid-template-columns: 260px 1fr auto;
    }

    .module-card > .module-toggle-button {
        max-width: 260px;
    }

    .spotify-preview,
    .twitch-preview,
    .chat-preview {
        width: 260px;
    }
}

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
        min-height: auto;
        padding: 20px;
        overflow: visible;
    }

    .brand {
        margin-bottom: 22px;
    }

    .sidebar-scroll {
        flex: none;
        max-height: none;
        margin: 18px 0;
        padding-right: 0;
        overflow: visible;
    }

    .sidebar-modules {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    }

    .sidebar-user {
        margin-top: 18px;
    }

    .content {
        width: auto;
        margin: 0;
        padding: 32px 20px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        margin-bottom: 34px;
    }

    .module-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 20px;
        padding: 24px;
    }

    .module-card > .spotify-preview,
    .module-card > .twitch-preview,
    .module-card > .chat-preview,
    .module-card > .module-text,
    .module-card > .module-toggle-button {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        max-width: none;
    }

    .spotify-preview,
    .twitch-preview,
    .chat-preview {
        width: 100%;
    }

    .arrow {
        display: none;
    }
}

@media (max-width: 620px) {
    .sidebar {
        padding: 16px;
    }

    .brand {
        font-size: 24px;
    }

    .menu-item {
        padding: 13px 15px;
    }

    .sidebar-modules {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 26px 14px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ghost-button {
        width: 100%;
        text-align: center;
    }

    .module-card {
        padding: 18px;
        border-radius: 14px;
    }

    .spotify-preview {
        flex-direction: column;
        align-items: flex-start;
    }

    .url-action-box {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .url-action-box button,
    .url-action-box .disconnect-button {
        width: 100%;
    }

    .return-card {
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .module-page,
    .spotify-page {
        padding: 14px;
    }

    .module-panel,
    .spotify-panel {
        padding: 14px;
    }

    .success-hero {
        padding: 28px 16px;
    }

    .info-card,
    .return-card {
        padding: 18px;
    }

    .module-card {
        padding: 20px;
    }
}

@media (max-width: 420px) {
    .hero h1 {
        font-size: 26px;
    }

    .section-header h2 {
        font-size: 23px;
    }

    .module-text h3 {
        font-size: 18px;
    }

    .module-text p {
        font-size: 14px;
    }

    .spotify-preview,
    .twitch-preview,
    .chat-preview {
        padding: 14px;
    }

    .success-hero h1 {
        font-size: 26px;
    }
}
.module-card {
    display: block;
}

.module-link {
    display: grid;
    grid-template-columns: 300px 1fr auto;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.module-toggle-button {
    margin-top: 24px;
    width: 300px;
}

@media (max-width: 900px) {
    .module-link {
        grid-template-columns: 1fr;
    }

    .module-toggle-button {
        width: 100%;
    }
}