@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
body {
    background-color: rgb(15, 25, 18);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}
h1, p {
    color: rgb(225, 240, 230);
}
main {
    padding-top: 167px;
}
h1 {
    font-style: italic;
    text-align: center;
    margin-top: 80px;
    font-size: 52px;
}
p {
    text-align: center;
    font-size: 24px;
    margin-top: 40px;
}
#homebutton {
    font-family: 'Montserrat', sans-serif;
    background-color: rgb(35, 60, 45);
    color: rgb(225, 240, 230);
    border: 1px solid rgb(70, 120, 85);
    font-size: 20px;
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease-in-out;
}
#homebutton img {
    width: 40px;
    height: 40px;
}
#homebutton:hover {
    background-color: rgb(50, 85, 60);
    border-color: rgb(100, 150, 110);
    cursor: pointer;
}
#homebuttons {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
}
#logo {
    height: 55px;
    vertical-align: middle;
}
#bmtext {
    margin-top: 65px;
    color: rgb(225, 240, 230);
    text-align: center;
}
nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 85vw;
    height: 48px;
    background-color: rgb(25, 40, 32);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 25px;
    border-radius: 15px;
    border: 1px solid rgb(70, 120, 85);
    z-index: 100;
}
.navlink img {
    height: 35px;
}
#awp {
    height: 32px;
    transition: all 0.2s ease-in-out;
}
#awp:hover {
    rotate: -10deg;
    cursor: pointer;
}
.right-container {
    margin-left: auto;
    display: flex;
    gap: 35px;
}
.nobmtext {
    color: rgb(100, 130, 110);
    font-size: 20px;
    display: none;
}
.nobmtext.active {
    display: block;
}
#inj, #injtool, #partners {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 60px;
    justify-content: center;
    margin-left: 20px;
    margin-right: 20px;
}
#particles-js {
    width: 100%;
    height: 100%;
    background-position: 50% 50%;
    position: fixed;
    top: 0px;
    z-index: -1;
}
#flashcard {
    background-color: rgb(35, 60, 45);
    border-radius: 15px;
    width: 220px;
    height: 225px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 13px;
    gap: 7px;
    transition: all 0.2s ease-in-out;
    border: 1px solid rgb(70, 120, 85);
}
#flashcardpreview {
    width: 200px;
    height: 150px;
    background-color: rgb(20, 32, 25);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
#flashcardpreview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#flashcardanswer {
    margin: 5px;
    font-size: 23px;
    text-align: center;
    line-height: 1.2;
    color: rgb(225, 240, 230);
}
#flashcard:hover {
    background-color: rgb(50, 85, 60);
    border-color: rgb(100, 150, 110);
    cursor: pointer;
}
#injtool a, #inj a {
    text-decoration: none;
    color: inherit;
}
#homebuttons2 {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 20px;
}
#iframe-container {
    position: relative;
    width: 85%;
    height: calc(100vh - 100px);
    margin: 0 auto;
    top: 65px;
}
#studyframe {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 1;
}
#loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1b3030;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: opacity 0.3s ease;
    z-index: 2;
}
#loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
 .settings-wrapper {
            max-width: 700px;
            margin: 0 auto;
            padding: 20px 20px 60px;
        }

        .settings-section {
            background-color: rgb(25, 40, 32);
            border: 1px solid rgb(70, 120, 85);
            border-radius: 15px;
            padding: 28px 32px;
            margin-bottom: 24px;
        }

        .settings-section h2 {
            color: rgb(225, 240, 230);
            font-size: 20px;
            margin: 0 0 6px 0;
            font-style: italic;
        }

        .settings-section p.desc {
            color: rgb(130, 170, 140);
            font-size: 13px;
            margin: 0 0 20px 0;
            text-align: left;
        }

        .setting-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
        }

        .setting-label {
            color: rgb(200, 225, 210);
            font-size: 15px;
        }

        /* Dropdown */
        select.setting-select {
            font-family: 'Montserrat', sans-serif;
            background-color: rgb(35, 60, 45);
            color: rgb(225, 240, 230);
            border: 1px solid rgb(70, 120, 85);
            border-radius: 8px;
            padding: 8px 14px;
            font-size: 14px;
            cursor: pointer;
            outline: none;
            transition: all 0.2s;
            min-width: 200px;
        }
        select.setting-select:hover, select.setting-select:focus {
            background-color: rgb(50, 85, 60);
            border-color: rgb(100, 150, 110);
        }

        /* Button */
        button.setting-btn {
            font-family: 'Montserrat', sans-serif;
            background-color: rgb(35, 60, 45);
            color: rgb(225, 240, 230);
            border: 1px solid rgb(70, 120, 85);
            border-radius: 8px;
            padding: 9px 22px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
        }
        button.setting-btn:hover {
            background-color: rgb(50, 85, 60);
            border-color: rgb(100, 150, 110);
        }

        /* Open in About:Blank sub-options */
        .ablank-options {
            display: flex;
            flex-direction: column;
            gap: 14px;
            margin-top: 16px;
        }

        .ablank-options label {
            color: rgb(180, 210, 190);
            font-size: 13px;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        input.setting-input {
            font-family: 'Montserrat', sans-serif;
            background-color: rgb(35, 60, 45);
            color: rgb(225, 240, 230);
            border: 1px solid rgb(70, 120, 85);
            border-radius: 8px;
            padding: 8px 14px;
            font-size: 14px;
            outline: none;
            transition: all 0.2s;
            width: 100%;
            box-sizing: border-box;
        }
        input.setting-input:focus {
            border-color: rgb(100, 150, 110);
            background-color: rgb(50, 85, 60);
        }

        .toast {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            background-color: rgb(50, 85, 60);
            color: rgb(225, 240, 230);
            border: 1px solid rgb(100, 150, 110);
            border-radius: 10px;
            padding: 12px 28px;
            font-size: 14px;
            font-family: 'Montserrat', sans-serif;
            opacity: 0;
            transition: opacity 0.3s, transform 0.3s;
            z-index: 999;
            pointer-events: none;
        }
        .toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
        /* ── Page header ── */
        .community-header {
            padding: 60px 40px 30px;
            text-align: center;
        }

        .community-header h1 {
            font-family: 'Montserrat', sans-serif;
            font-style: italic;
            font-weight: 700;
            font-size: clamp(32px, 5vw, 56px);
            color: rgb(225, 240, 230);
            margin: 0 0 10px;
            letter-spacing: -1px;
        }

        .community-header p {
            font-family: 'Montserrat', sans-serif;
            color: rgb(150, 180, 160);
            font-size: 16px;
            margin: 0;
        }

        /* ── Search / filter bar ── */
        .community-controls {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 14px;
            padding: 0 40px 40px;
            flex-wrap: wrap;
        }

        .community-search {
            font-family: 'Montserrat', sans-serif;
            background-color: rgb(35, 60, 45);
            color: rgb(225, 240, 230);
            border: 1px solid rgb(70, 120, 85);
            border-radius: 10px;
            padding: 13px 20px;
            font-size: 15px;
            outline: none;
            width: 320px;
            transition: border-color 0.2s, background-color 0.2s;
        }

        .community-search::placeholder {
            color: rgb(130, 165, 145);
        }

        .community-search:focus {
            border-color: rgb(100, 160, 115);
            background-color: rgb(40, 70, 50);
        }

        .community-sort {
            font-family: 'Montserrat', sans-serif;
            background-color: rgb(35, 60, 45);
            color: rgb(225, 240, 230);
            border: 1px solid rgb(70, 120, 85);
            border-radius: 10px;
            padding: 13px 16px;
            font-size: 15px;
            outline: none;
            cursor: pointer;
            transition: border-color 0.2s;
        }

        .community-sort:focus {
            border-color: rgb(100, 160, 115);
        }

        .community-sort option {
            background-color: rgb(35, 60, 45);
        }

        /* ── User grid ── */
        .user-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
            padding: 0 40px 40px;
            max-width: 1400px;
            margin: 0 auto;
        }

        /* ── User card ── */
        .user-card {
            background-color: rgb(25, 45, 33);
            border: 1px solid rgb(55, 100, 70);
            border-radius: 14px;
            padding: 28px 20px 22px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            cursor: default;
            transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
            animation: cardIn 0.4s ease both;
        }

        @keyframes cardIn {
            from { opacity: 0; transform: translateY(16px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .user-card:hover {
            transform: translateY(-4px);
            border-color: rgb(90, 145, 105);
            background-color: rgb(30, 55, 40);
        }

        .user-card-pfp {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid rgb(70, 120, 85);
            background-color: rgb(40, 70, 50);
            transition: border-color 0.2s;
            flex-shrink: 0;
        }

        .user-card:hover .user-card-pfp {
            border-color: rgb(100, 160, 115);
        }

        .user-card-name {
            font-family: 'Montserrat', sans-serif;
            font-weight: 600;
            font-size: 15px;
            color: rgb(215, 235, 220);
            text-align: center;
            word-break: break-word;
            line-height: 1.3;
        }

        .user-card-joined {
            font-family: 'Montserrat', sans-serif;
            font-size: 11px;
            color: rgb(110, 150, 125);
            text-align: center;
        }

        /* ── Skeleton loader ── */
        .user-card-skeleton {
            background-color: rgb(25, 45, 33);
            border: 1px solid rgb(55, 100, 70);
            border-radius: 14px;
            padding: 28px 20px 22px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .skeleton {
            background: linear-gradient(90deg,
                rgb(35, 60, 45) 25%,
                rgb(50, 85, 60) 50%,
                rgb(35, 60, 45) 75%);
            background-size: 200% 100%;
            animation: shimmer 1.4s infinite;
            border-radius: 6px;
        }

        .skeleton-circle {
            width: 80px;
            height: 80px;
            border-radius: 50%;
        }

        .skeleton-text-lg {
            width: 100px;
            height: 14px;
        }

        .skeleton-text-sm {
            width: 70px;
            height: 10px;
        }

        @keyframes shimmer {
            0%   { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* ── Pagination ── */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            padding: 0 40px 60px;
            flex-wrap: wrap;
        }

        .page-btn {
            font-family: 'Montserrat', sans-serif;
            background-color: rgb(35, 60, 45);
            color: rgb(200, 225, 210);
            border: 1px solid rgb(70, 120, 85);
            border-radius: 8px;
            padding: 10px 18px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            min-width: 42px;
            text-align: center;
        }

        .page-btn:hover:not(:disabled) {
            background-color: rgb(50, 85, 60);
            border-color: rgb(100, 150, 110);
            color: rgb(225, 240, 230);
        }

        .page-btn.active {
            background-color: rgb(60, 110, 75);
            border-color: rgb(100, 160, 115);
            color: rgb(230, 245, 235);
            font-weight: 600;
        }

        .page-btn:disabled {
            opacity: 0.35;
            cursor: not-allowed;
        }

        /* ── Status messages ── */
        .status-msg {
            text-align: center;
            font-family: 'Montserrat', sans-serif;
            padding: 60px 40px;
            color: rgb(150, 180, 160);
            font-size: 16px;
        }

        .status-msg.error {
            color: rgb(255, 130, 130);
        }

        .status-msg span {
            font-style: italic;
        }

        /* ── Responsive ── */
        @media (max-width: 600px) {
            .community-header {
                padding: 40px 20px 20px;
            }
            .user-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                padding: 0 20px 30px;
                gap: 14px;
            }
            .community-controls {
                padding: 0 20px 30px;
            }
            .community-search {
                width: 100%;
            }
            .pagination {
                padding: 0 20px 40px;
                gap: 6px;
            }
            .page-btn {
                padding: 8px 13px;
                font-size: 13px;
            }
        }
#dmca-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.7;
}

#dmca-content h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

#dmca-content h2 {
    font-size: 1.3rem;
    margin-top: 35px;
    margin-bottom: 10px;
}

#dmca-content p {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

#dmca-content ul {
    font-size: 0.95rem;
    padding-left: 20px;
    margin-bottom: 10px;
}

#dmca-content ul li {
    margin-bottom: 8px;
}