body {
    background-color: #121212;
    color: #CCCCCC;
    font-family: "Segoe UI", Calibri, "Trebuchet MS", sans-serif;
    font-size: 13px;
    margin: 0;
    padding: 20px;
}

#wrap {
    max-width: 1150px;
    margin: 0 auto;
    background-color: #1A1A1A;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 8px;
}

.headerbar {
    background-color: #121212; 
    background-image: linear-gradient(to right, #222 30%, transparent 60%);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain; 
    color: #FFFFFF;
    padding: 30px 20px;
    border-radius: 7px;
    margin-bottom: 10px;
    border: 1px solid #333;
    min-height: 70px;
}

.headerbar h1 {
    font-family: "Courier New", Courier, monospace;
    letter-spacing: 2px;
    color: #00FF00; 
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.headerbar p {
    color: #888;
    font-style: italic;
}

.navbar {
    background-color: #2A2A2A;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.forabg {
    background: #121212;
    background-color: #282828;
    padding: 5px;
    border-radius: 7px;
    margin-bottom: 15px;
}

.table-header {
    background: linear-gradient(to bottom, #333, #222);
    color: #FFFFFF;
    padding: 8px 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.row {
    background-color: #1E1E1E;
    padding: 15px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
}

.locked-message {
    text-align: center;
    padding: 40px;
    font-size: 1.2em;
    color: #FF9900;
}

.statistics {
    background-color: #1E1E1E;
    border: 1px solid #333;
    padding: 10px;
    margin-top: 20px;
    border-radius: 5px;
}

.button {
    background-color: #333;
    border: 1px solid #555;
    color: #E9E9E9;
    padding: 5px 15px;
    text-decoration: none;
    border-radius: 4px;
}

.button:hover {
    background-color: #444;
}

.nav-link {
    color: #105289; 
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
}

.nav-link:hover {
    text-decoration: underline;
    color: #D31141;
}

.statistics h3 {
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #536482; 
}

.statistics p {
    font-size: 11px;
    margin: 5px 0;
}

hr {
    border: 0;
    border-top: 1px dashed #444;
    margin: 10px 0;
}

.footer {
    text-align: center;
    font-size: 10px;
    color: #555;
    margin-top: 20px;
}
.panel {
    background-color: #1E1E1E;
    border: 1px solid #333;
    padding: 20px;
    margin-top: 10px;
    border-radius: 7px;
}

.inner h2 {
    color: #D3D3D3;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

fieldset {
    border: none;
    padding: 0;
}

dl {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

dt {
    width: 50%;
    font-weight: bold;
}

dd {
    width: 50%;
    margin: 0;
}

input[type="text"], input[type="password"], input[type="email"] {
    background-color: #121212;
    border: 1px solid #444;
    color: #FFF;
    padding: 8px;
    border-radius: 4px;
    width: 250px;
}

input:focus {
    border-color: #105289;
    outline: none;
}

.submit-buttons {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.main-button {
    background: linear-gradient(to bottom, #444, #222);
    border: 1px solid #555;
    color: #EEE;
    padding: 10px 25px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

.main-button:hover {
    background: #333;
    border-color: #105289;
}

/* Kontejner pro kategorie a témata */
.forabg {
    background: #121212;
    margin-bottom: 20px;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #333;
}

.topiclist {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

/* Hlavička tabulky */
li.header {
    background: #1a1a1a;
    color: rgb(186, 186, 186);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 11px;
    padding: 10px;
    display: flex;
    border-bottom: 2px solid rgb(186, 186, 186);
}

/* Společný styl pro řádky témat */
li.row {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #222;
    transition: 0.2s;
}

li.row:hover {
    background: #161616;
}

/* Rozdělení sloupců */
.forum-name { flex: 1; } /* Název zabere zbytek místa */
.topic-stats { width: 100px; text-align: center; font-size: 11px; color: #888; }
.last-post { width: 180px; font-size: 11px; padding-left: 10px; border-left: 1px solid #333; }

/* Odkazy uvnitř témat */
.forum-name a {
    color: rgb(186, 186, 186);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: block;
}

.forum-name p {
    margin: 3px 0 0;
    font-size: 12px;
    color: #ccc;
}

.last-post a { color: #fff; text-decoration: none; }
.last-post time { color: #555; display: block; margin-top: 2px; }
.profile-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
        .profile-table td { padding: 10px; border-bottom: 1px solid #333; vertical-align: top; }
        .profile-label { color: #888; width: 200px; font-weight: bold; }
        .blur-content { filter: blur(5px); pointer-events: none; user-select: none; }
        .overlay-msg {
            position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
            background: rgba(0,0,0,0.9); border: 1px solid #ff4444; color: #ff4444;
            padding: 20px; text-align: center; z-index: 10; width: 80%; border-radius: 5px;
        }
.subforum-list {
    margin-top: 4px;
    font-size: 11px;
    color: #888;
}

.subforum-list a {
    display: inline-block; 
    color: #105289; 
    text-decoration: none;
    margin-right: 10px;
    padding: 1px 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
    transition: 0.2s;
    font-size: 11px;
}

.subforum-list a span {
    font-size: 7px;
    opacity: 0.5;
}

.subforum-list a:hover {
    background: rgba(211, 17, 65, 0.1);
    color: #D31141; 
    text-decoration: underline;
}
.crypto-tab {
    background: #151515;
    border: 1px solid #333;
    color: #888;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    margin: 0 5px;
    transition: 0.2s;
}
.crypto-tab:hover {
    color: #fff;
    border-color: #555;
}
.active-btc {
    background: rgba(247,147,26,0.1) !important;
    border-color: #f7931a !important;
    color: #f7931a !important;
}
.active-xmr {
    background: rgba(245,124,0,0.1) !important;
    border-color: #f57c00 !important;
    color: #f57c00 !important;
}
.invoice-box {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    padding: 25px;
    border-radius: 6px;
    max-width: 650px;
    margin: 0 auto;
}
.crypto-address {
    background: #000;
    padding: 12px;
    display: block;
    margin: 10px auto;
    max-width: 480px;
    border: 1px dashed #333;
    font-size: 1.05em;
    letter-spacing: 0.5px;
    font-family: monospace;
}
.phpbb-footer-blocks {
    display: flex;
    justify-content: space-between;
}
.footer-column {
    width: 23%;
}
.footer-column h4 {
    color: #bcbcbc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    font-family: 'Trebuchet MS', Arial, sans-serif;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column ul li {
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
}
.footer-column ul li a {
    color: #9e9e9e;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-column ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 700px) {
    .phpbb-footer-blocks {
        flex-direction: column;
    }
    .footer-column {
        width: 100%;
        margin-bottom: 20px;
    }
}