body {
    font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
    background-color: black;
    background-image: url("../assets/background2.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    z-index: 100;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(0,0,0,0.3);
}

nav a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
    white-space: nowrap;
}

nav a:hover {
    color: white;
}

#contents {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    color: white;
    text-align: center;
    padding: 80px 2rem 4rem;
    box-sizing: border-box;
}

.subtext {
    font-size: 2.2rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.btn-outline-light {
    color: white !important;
    border-color: white !important;
    background-color: transparent !important;
}

.btn-outline-light:hover {
    color: white !important;
    border-color: white !important;
    background-color: rgba(255,255,255,0.15) !important;
}

/* ── shared page styles ── */
.page-wrapper {
    min-height: 100vh;
    color: white;
    padding: 100px 2rem 4rem;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.section-label {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

/* ── search bar ── */
.search-bar {
    width: 100%;
    max-width: 600px;
    background: rgba(0,0,0,0.65) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: white !important;
    padding: 0.6rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    margin-bottom: 2rem;
    border-radius: 2px;
}

.search-bar::placeholder {
    color: rgba(255,255,255,0.4);
}

.search-bar:focus {
    background: rgba(0,0,0,0.8) !important;
    border-color: rgba(255,255,255,0.35) !important;
}

/* ── tag buttons (archive categories) ── */
.tag-btn {
    background: rgba(0,0,0,0.65) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: rgba(255,255,255,0.5) !important;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.15s;
    border-radius: 2px;
}

.tag-btn.active,
.tag-btn:hover {
    border-color: white !important;
    color: white !important;
    background: rgba(0,0,0,0.85) !important;
}

/* ── tab buttons (storage MS/DIG) ── */
.tab-btn {
    background: rgba(0,0,0,0.65) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: rgba(255,255,255,0.5) !important;
    padding: 0.4rem 1.2rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.15s;
    border-radius: 2px;
}

.tab-btn.active,
.tab-btn:hover {
    border-color: white !important;
    color: white !important;
    background: rgba(0,0,0,0.85) !important;
}

/* ── storage item rows ── */
.item-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0,0,0,0.65) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 2px;
}

.item-row:hover {
    background: rgba(0,0,0,0.8) !important;
    border-color: rgba(255,255,255,0.2) !important;
}

/* ── status cards ── */
.stat-card {
    background: rgba(0,0,0,0.65) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    padding: 1.25rem;
    border-radius: 2px;
}

.server-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    background: rgba(0,0,0,0.65) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    font-size: 0.85rem;
    border-radius: 2px;
}

/* ── archive post cards ── */
.post-card {
    background: rgba(0,0,0,0.65) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    overflow: hidden;
    border-radius: 2px;
}

.post-card:hover {
    border-color: rgba(255,255,255,0.3) !important;
    background: rgba(0,0,0,0.82) !important;
}

.post-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    filter: brightness(.85);
    background: rgba(255,255,255,0.03);
    transition: opacity 0.2s;
    opacity: 0;
}
.post-thumb[src] {
    opacity: 1;
}

/* ── modal ── */
.modal-box {
    max-width: 780px;
    margin: 0 auto;
    background: rgba(8,8,8,0.98) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    padding: 2rem;
    color: white;
    position: relative;
    border-radius: 2px;
}

.modal-content {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    white-space: pre-wrap;
    background: none !important;
}

.reply {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    background: none !important;
}

/* ── member cards ── */
.member-card {
    background: rgba(0,0,0,0.65) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 10px !important;
    padding: 0.85rem 0.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
    text-align: center;
}

.member-card img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
}

.member-card span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    word-break: break-word;
    line-height: 1.3;
}

.member-card.inactive {
    opacity: 0.5;
}

.member-card.inactive img {
    filter: grayscale(0.8);
}

.member-card.inactive span {
    color: rgba(255,255,255,0.35) !important;
}

body[data-bg="members"] { background-image: url("../assets/bg_members.png"); }
body[data-bg="gallery"] { background-image: url("../assets/bg_gallery.png"); }
body[data-bg="archive"] { background-image: url("../assets/bg_archive.png"); }
body[data-bg="storage"] { background-image: url("../assets/bg_storage.png"); }
body[data-bg="status"]  { background-image: url("../assets/bg_status.png"); }

#contents h1 {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    line-height: 1.2;
    word-break: break-word;
}

.subtext {
    font-size: clamp(1rem, 3vw, 2.2rem);
    color: rgba(255,255,255,0.65);
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}