/* phpBB3 Style Sheet - Derover Clean Dark Theme */

@import url("normalize.css?hash=derover2");
@import url("base.css?hash=derover2");
@import url("utilities.css?hash=derover2");
@import url("common.css?hash=derover2");
@import url("links.css?hash=derover2");
@import url("content.css?hash=derover2");
@import url("buttons.css?hash=derover2");
@import url("cp.css?hash=derover2");
@import url("forms.css?hash=derover2");
@import url("icons.css?hash=derover2");
@import url("colours.css?hash=derover2");
@import url("responsive.css?hash=derover2");

/* ===== DEROVER CLEAN DARK THEME ===== */

html, body {
    background: #0d1117 !important;
    color: #d6e2f0 !important;
}

.wrap {
    background: #111827 !important;
    border: 1px solid #263447 !important;
    box-shadow: 0 0 25px rgba(0,0,0,.35) !important;
}

.headerbar {
    background: linear-gradient(135deg, #111827, #172033) !important;
    border: 1px solid #2f81f7 !important;
    box-shadow: none !important;
}

.navbar,
.panel,
.post,
.bg1,
.bg2,
.bg3 {
    background: #161b22 !important;
    color: #d6e2f0 !important;
    border: 1px solid #30363d !important;
}

.forabg,
.forumbg {
    background: #161b22 !important;
    border: 1px solid #30363d !important;
}

ul.topiclist li.header {
    background: #1f2937 !important;
    color: #ffffff !important;
}

li.row {
    background: #0f172a !important;
    border-top: 1px solid #263447 !important;
}

li.row:hover {
    background: #172033 !important;
}

a {
    color: #58a6ff !important;
}

a:hover {
    color: #8cc8ff !important;
}

.content,
.content p,
.postbody,
.postbody div,
.postbody span,
.postbody li,
.postbody h1,
.postbody h2,
.postbody h3,
.postbody h4,
dd,
dt,
label,
fieldset,
table,
td,
th {
    color: #d6e2f0 !important;
}

.postbody {
    float: right !important;
    width: 76% !important;
    background: #161b22 !important;
    padding: 15px !important;
    border-radius: 8px !important;
}

.button,
.button1,
.button2,
input.button1,
input.button2,
a.button {
    background: #21262d !important;
    color: #ffffff !important;
    border: 1px solid #3b82f6 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

.button:hover,
.button1:hover,
.button2:hover,
input.button1:hover,
input.button2:hover,
a.button:hover {
    background: #2563eb !important;
    color: #ffffff !important;
}

input,
textarea,
select {
    background: #0d1117 !important;
    color: #ffffff !important;
    border: 1px solid #3b4656 !important;
}

input:focus,
textarea:focus {
    border-color: #58a6ff !important;
    box-shadow: 0 0 0 2px rgba(88,166,255,.18) !important;
}

.postprofile {
    float: left !important;
    margin: 5px 15px 10px 0 !important;
    width: 180px !important;
    background: #0f172a !important;
    border: 1px solid #30363d !important;
    border-radius: 10px !important;
    padding: 12px !important;
    color: #d6e2f0 !important;
    box-shadow: none !important;
}

.postprofile .avatar img,
.postprofile img.avatar {
    border-radius: 10px !important;
    border: 2px solid #58a6ff !important;
    box-shadow: none !important;
}

.postprofile dt,
.postprofile dd,
.postprofile strong,
.postprofile span {
    color: #d6e2f0 !important;
}

.postprofile .username,
.postprofile .username-coloured {
    display: block !important;
    color: #58a6ff !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-align: center !important;
    margin-top: 8px !important;
    text-shadow: none !important;
}

.postprofile dd {
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    border-radius: 6px !important;
    padding: 5px 7px !important;
    margin: 5px 0 !important;
    font-size: 10px !important;
    color: #d6e2f0 !important;
}

.postprofile dd.profile-posts:before {
    content: "Posts: ";
    color: #58a6ff;
}

.postprofile dd.profile-joined:before {
    content: "Joined: ";
    color: #58a6ff;
}

.postprofile dd.profile-rank:before {
    content: "Rank: ";
    color: #58a6ff;
}

.postprofile dd.profile-custom-field {
    color: #d6e2f0 !important;
}

.postprofile dd.profile-custom-field a {
    display: inline-block !important;
    background: #21262d !important;
    border: 1px solid #3b82f6 !important;
    border-radius: 6px !important;
    padding: 3px 6px !important;
    margin-top: 2px !important;
    color: #ffffff !important;
}

.stat-block,
.permissions,
.online-list {
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    padding: 8px !important;
    color: #d6e2f0 !important;
}

table.table1,
table.table1 tbody tr {
    background: #161b22 !important;
    color: #d6e2f0 !important;
}

.dropdown,
.dropdown-contents {
    background: #161b22 !important;
    border-color: #30363d !important;
    color: #d6e2f0 !important;
}

.site-description h1,
.site-description p {
    color: #ffffff !important;
}

.site-description:after {
    content: "DEROVER NETWORK";
    display: block;
    color: #58a6ff;
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 4px;
}

.signature {
    color: #9fb0c3 !important;
    border-top: 1px solid #30363d !important;
}

.copyright,
.footer-row {
    color: #9fb0c3 !important;
}

.page-footer {
    background: #0d1117 !important;
    border-top: 1px solid #30363d !important;
    padding-top: 10px !important;
    color: #9fb0c3 !important;
}

.tabs .tab > a {
    background: #1b2330 !important;
    color: #d6e2f0 !important;
    border: 1px solid #30363d !important;
}

.tabs .activetab > a {
    background: #2563eb !important;
    color: #fff !important;
}

/* ===== DEROVER PROFILE PAGE ===== */

.derover-profile-wrap {
    display: flex;
    gap: 18px;
    align-items: stretch;
}

.derover-profile-card {
    width: 230px;
    background: #0f172a;
    border: 1px solid #30363d;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
}

.derover-profile-avatar img {
    max-width: 130px;
    border-radius: 14px;
    border: 2px solid #58a6ff;
}

.derover-profile-name {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 700;
}

.derover-profile-rank {
    margin-top: 8px;
    background: #2563eb;
    color: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

.derover-profile-status {
    margin-top: 10px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.online-status {
    background: rgba(34, 197, 94, .15);
    color: #86efac;
    border: 1px solid #22c55e;
}

.offline-status {
    background: rgba(148, 163, 184, .15);
    color: #cbd5e1;
    border: 1px solid #64748b;
}

.derover-profile-actions {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.derover-profile-info {
    flex: 1;
    background: #111827;
    border: 1px solid #30363d;
    border-radius: 14px;
    padding: 18px;
}

.derover-profile-grid .inner {
    display: flex;
    gap: 18px;
}

.derover-contact-box,
.derover-stats-box {
    background: #111827;
    border: 1px solid #30363d;
    border-radius: 14px;
    padding: 18px;
}

.derover-details dt {
    color: #9fb0c3 !important;
    font-weight: 700;
}

.derover-details dd {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.derover-contact-link {
    display: inline-block;
    background: #2563eb;
    color: #fff !important;
    border-radius: 8px;
    padding: 7px 12px;
    text-decoration: none !important;
    font-weight: 700;
}

.derover-contact-link:hover {
    background: #3b82f6;
    color: #fff !important;
}

@media (max-width: 800px) {
    .derover-profile-wrap,
    .derover-profile-grid .inner {
        display: block;
    }

    .derover-profile-card,
    .derover-contact-box,
    .derover-stats-box {
        width: auto;
        margin-bottom: 14px;
    }
}

/* ===== DEROVER VIEWTOPIC PROFILE CARDS ===== */
.profile-modern-card {
    background: #111827 !important;
    border: 1px solid #30363d !important;
    border-radius: 10px !important;
    padding: 10px !important;
    margin: 8px 0 !important;
    color: #d6e2f0 !important;
}

.profile-modern-title {
    color: #58a6ff !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    text-align: center !important;
}

.profile-modern-grid {
    display: flex !important;
    justify-content: space-between !important;
    gap: 8px !important;
    align-items: center !important;
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    border-radius: 8px !important;
    padding: 7px 8px !important;
    margin-top: 6px !important;
}

.profile-modern-grid span {
    color: #9fb0c3 !important;
    font-size: 10px !important;
}

.profile-modern-grid strong,
.profile-modern-grid strong a {
    color: #d6e2f0 !important;
    font-size: 10px !important;
    text-align: right !important;
    text-decoration: none !important;
}

.profile-contact-list {
    display: grid !important;
    gap: 6px !important;
}

.profile-contact-button {
    display: block !important;
    background: #21262d !important;
    border: 1px solid #3b82f6 !important;
    color: #fff !important;
    border-radius: 7px !important;
    padding: 7px 8px !important;
    text-align: center !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.profile-contact-button:hover {
    background: #2563eb !important;
    color: #fff !important;
}

.profile-contact-discord,
.profile-contact-phpbb_discord {
    border-color: #5865f2 !important;
}

.profile-contact-youtube,
.profile-contact-phpbb_youtube {
    border-color: #ef4444 !important;
}

.profile-contact-website,
.profile-contact-phpbb_website {
    border-color: #22c55e !important;
}

/* ===== DEROVER FORUM CARD LIST FIXED ===== */

.derover-forum-category {
    background: #111827 !important;
    border: 1px solid #30363d !important;
    border-radius: 14px !important;
    padding: 0 !important;
    overflow: hidden;
    margin-bottom: 16px !important;
}

.derover-category-header {
    background: #0f172a;
    border-bottom: 1px solid #30363d;
    padding: 14px 16px;
}

.derover-category-title,
.derover-category-title a {
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-decoration: none !important;
}

.derover-category-title:before {
    content: "▣ ";
    color: #58a6ff;
}

.derover-forum-list {
    display: grid;
    gap: 12px;
    padding: 12px;
}

.derover-forum-card {
    display: grid !important;
    grid-template-columns: 58px minmax(260px, 1fr) 180px 260px;
    gap: 14px;
    align-items: center;
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    border-radius: 12px;
    padding: 14px;
    min-height: 96px;
}

.derover-forum-card:hover {
    background: #1b2330 !important;
    border-color: #3b82f6 !important;
}

.derover-forum-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #0f172a;
    border: 1px solid #30363d;
    display: grid;
    place-items: center;
    color: #58a6ff;
    font-size: 22px;
}

.derover-forum-icon .icon {
    color: #58a6ff !important;
    font-size: 22px;
}

.derover-forum-main {
    min-width: 0;
}

.derover-forum-title {
    display: inline-block;
    color: #58a6ff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    margin-bottom: 4px;
}

.derover-forum-desc {
    color: #ffffff !important;
    font-size: 12px;
    line-height: 1.45;
    max-width: 520px;
}

.derover-forum-mods,
.derover-subforums {
    color: #9fb0c3;
    margin-top: 7px;
    font-size: 11px;
}

.derover-forum-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.derover-stat-box {
    background: #0f172a;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 8px;
    text-align: center;
}

.derover-stat-box span {
    display: block;
    color: #9fb0c3;
    font-size: 10px;
    text-transform: uppercase;
}

.derover-stat-box strong {
    display: block;
    color: #ffffff;
    font-size: 16px;
    margin-top: 2px;
}

.derover-lastpost {
    background: #0f172a;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 10px;
    color: #d6e2f0;
    font-size: 11px;
    min-width: 0;
}

.derover-lastpost-label {
    color: #9fb0c3;
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.derover-lastpost-title {
    display: block;
    color: #58a6ff !important;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.derover-lastpost-author {
    color: #d6e2f0;
    margin-top: 3px;
}

.derover-lastpost-time {
    display: block;
    color: #9fb0c3;
    margin-top: 3px;
}

.derover-lastpost-empty {
    color: #9fb0c3;
}

@media (max-width: 1050px) {
    .derover-forum-card {
        grid-template-columns: 58px 1fr;
    }

    .derover-forum-stats,
    .derover-lastpost {
        grid-column: 2;
    }
}

@media (max-width: 650px) {
    .derover-forum-card {
        grid-template-columns: 1fr;
    }

    .derover-forum-icon {
        display: none;
    }

    .derover-forum-stats,
    .derover-lastpost {
        grid-column: 1;
    }
}

.derover-forum-card {
    min-height: 74px !important;
    padding: 12px 14px !important;
}

.derover-forum-icon {
    width: 40px !important;
    height: 40px !important;
}

.derover-stat-box {
    padding: 6px !important;
}

.derover-lastpost {
    padding: 8px 10px !important;
}

.derover-forum-list {
    gap: 9px !important;
}

/* ===== DEROVER INDEX HERO + SIDEBAR ===== */

.derover-hero {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .35), transparent 35%),
        linear-gradient(135deg, #111827, #0f172a);
    border: 1px solid #3b82f6;
    border-radius: 16px;
    padding: 22px;
    margin: 18px 0;
    box-shadow: 0 0 30px rgba(37, 99, 235, .12);

    min-height: 180px;
}
.derover-hero-kicker {
    color: #58a6ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.derover-hero h1 {
    color: #ffffff !important;
    font-size: 32px;
    margin: 0 0 8px 0;
    font-weight: 900;
}

.derover-hero p {
    color: #d6e2f0;
    font-size: 13px;
    margin: 0;
    max-width: 620px;
}

.derover-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.derover-hero-btn,
.derover-side-btn {
    display: inline-block;
    background: #21262d;
    color: #ffffff !important;
    border: 1px solid #3b82f6;
    border-radius: 9px;
    padding: 9px 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.derover-hero-btn:hover,
.derover-side-btn:hover {
    background: #2563eb;
    color: #ffffff !important;
}

.derover-hero-btn.primary,
.derover-side-btn {
    background: #2563eb;
}

.derover-hero-panel {
    display: grid;
    gap: 10px;
}

.derover-hero-stat {
    background: #0f172a;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 12px;
}

.derover-hero-stat span {
    display: block;
    color: #9fb0c3;
    font-size: 11px;
    text-transform: uppercase;
}

.derover-hero-stat strong {
    display: block;
    color: #ffffff;
    font-size: 20px;
    margin-top: 3px;
}

.derover-index-meta:after {
    content: "";
    display: block;
    clear: both;
}

.derover-index-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 18px;
    align-items: start;
}

.derover-index-main {
    min-width: 0;
}

.derover-sidebar {
    display: grid;
    gap: 14px;
}

.derover-side-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 14px;
    padding: 15px;
}

.derover-side-card h3 {
    color: #ffffff !important;
    margin-top: 0;
    border-bottom: 1px solid #30363d;
    padding-bottom: 8px;
}

.derover-side-card h3 a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.derover-side-card p {
    color: #d6e2f0;
    font-size: 12px;
}

.derover-side-stat {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background: #0f172a;
    border: 1px solid #30363d;
    border-radius: 9px;
    padding: 9px;
    margin-bottom: 8px;
}

.derover-side-stat span {
    color: #9fb0c3;
}

.derover-side-stat strong {
    color: #ffffff;
}

.derover-side-newest {
    color: #d6e2f0;
    border-top: 1px solid #30363d;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 12px;
}

.derover-login-panel {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 14px;
    padding: 14px;
}

@media (max-width: 1050px) {
    .derover-hero,
    .derover-index-layout {
        grid-template-columns: 1fr;
    }

    .derover-hero-panel {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 650px) {
    .derover-hero {
        padding: 16px;
    }

    .derover-hero h1 {
        font-size: 24px;
    }

    .derover-hero-panel {
        grid-template-columns: 1fr;
    }
}

/* ===== CLEAN INDEX LAYOUT FIX ===== */

.derover-index-layout {
    display: block !important;
}

.derover-sidebar {
    display: none !important;
}

.derover-hero {
    grid-template-columns: 1fr 260px !important;
    min-height: auto !important;
    padding: 20px !important;
    margin-bottom: 18px !important;
}

.derover-hero h1 {
    font-size: 28px !important;
}

.derover-hero-panel {
    gap: 8px !important;
}

.derover-hero-stat {
    padding: 10px 12px !important;
}

.derover-hero-stat strong {
    font-size: 18px !important;
}

.derover-forum-card {
    grid-template-columns: 58px minmax(280px, 1fr) 170px 250px !important;
}

.derover-category-header {
    padding: 12px 16px !important;
}

/* ===== DEROVER HEADER NAV ===== */

.derover-page-header {
    display: grid;
    gap: 10px;
}

.derover-topbar {
    display: grid;
    grid-template-columns: 1fr auto 250px;
    gap: 18px;
    align-items: center;
    background: linear-gradient(135deg, #111827, #0f172a);
    border: 1px solid #3b82f6;
    border-radius: 14px;
    padding: 14px 16px;
}

.derover-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.derover-brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-weight: 900;
    font-size: 22px;
    box-shadow: 0 0 20px rgba(37, 99, 235, .35);
}

.derover-brand-text strong {
    display: block;
    color: #fff;
    font-size: 18px;
    line-height: 1.1;
}

.derover-brand-text small {
    display: block;
    color: #9fb0c3;
    margin-top: 3px;
    font-size: 11px;
}

.derover-main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.derover-main-nav a {
    color: #d6e2f0 !important;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 8px 10px;
    font-weight: 800;
    text-decoration: none !important;
    font-size: 12px;
}

.derover-main-nav a:hover {
    background: #2563eb;
    border-color: #3b82f6;
    color: #fff !important;
}

.derover-header-search {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.derover-header-search input {
    width: 190px !important;
}

.derover-userbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 8px 10px;
    flex-wrap: wrap;
}

.derover-userbar-left,
.derover-userbar-right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.derover-userbar a {
    color: #58a6ff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 12px;
}

.derover-userbar a:hover {
    color: #8cc8ff !important;
}

.derover-register-link {
    color: #fff !important;
    background: #2563eb;
    border-radius: 7px;
    padding: 5px 8px;
}

.headerbar {
    display: none !important;
}

@media (max-width: 950px) {
    .derover-topbar {
        grid-template-columns: 1fr;
    }

    .derover-main-nav {
        justify-content: flex-start;
    }

    .derover-header-search {
        justify-content: flex-start;
    }
}

/* Hide old phpBB navbar */

#nav-main,
#nav-breadcrumbs {
    display: none !important;
}

#nav-main,
#nav-breadcrumbs {
    display: none !important;
}