
/* UKRYCIE OPCJI INVISIBLE MODE - również na mobile */
label:has(input[name="invisible"]),
label:has(input[type="checkbox"][name="invisible"]),
input[name="invisible"] {
    display: none !important;
    visibility: hidden !important;
}

.mobile-container-bg {
    background: rgba(0, 0, 0, 0.48);
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    bottom: 0;
    visibility: hidden;
}
.mobile-menus {
    position: fixed;
    z-index: 10001;
    background: #000000;
    top: 0;
    transition: all 0.6s ease-in-out;
    bottom: 0;
    width: 250px;
    max-width: 100%;
    overflow-y: auto;
    right: -250px;
    visibility: hidden;
}
.mobile-menus-open {
    background: linear-gradient(135deg, 
        rgba(0, 82, 163, 0.9) 0%, 
        rgba(0, 143, 255, 0.7) 50%, 
        rgba(0, 212, 255, 0.5) 100%);
    height: 40px;
    padding: 12px;
    box-sizing: border-box;
    text-align: right;
    display: none;
}
.mobile-menus-open i {
    color: #fff;
    cursor: pointer;
}
.mobile-menus .close-menus {
    color: #cd4545;
    margin-top: -5px;
    cursor: pointer;
    font-size: 20pt;
}
.mobile-menus li.imp-menu {
    text-align: left;
    padding: 0;
}
.mobile-menus li.imp-menu ul li {
    display: block;
    float: left;
    padding: 19px 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    height: 50px;
    box-sizing: border-box;
}
.mobile-menus li.imp-menu ul li:first-child {
    border-left: 0;
}
.mobile-menus li.imp-menu ul li a {
    font-size: 14px;
}
.mobile-menus > ul > li:not(.imp-menu) > a,
.mobile-menus .sm-link,
.mobile-menus .login span {
    padding: 15px 20px;
    display: block;
    font-size: 14px;
    background: none;
    border: 0;
    box-shadow: unset;
    font-weight: normal;
    text-transform: unset;
    line-height: 20px;
    border-radius: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    height: auto;
}
.mobile-menus .login span {
    cursor: pointer;
}
.mobile-menus ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-menus .menu-icon {
    display: none;
}
.mobile-menus > ul > li > ul.sm-ul {
    display: none;
    background: #64ad0d;
    border-radius: 5px;
    padding: 10px 0;
    margin: 15px;
    margin-top: 0;
}
.mobile-menus > ul > li > ul.sm-ul li {
    padding: 5px 0;
    padding-left: 20px;
    font-size: 13px;
}
.mobile-menus ul li,
.mobile-menus ul li a {
    color: #fff;
}
.mobile-menus .pms-value {
    background: rgba(255, 255, 255, 0.29);
    border-radius: 3px;
    padding: 3px;
    font-size: 10pt;
    font-weight: bold;
    line-height: 0;
    width: 15px;
    height: 15px;
    margin-left: 5px;
}
.mobile-menus .sm-link {
    cursor: pointer;
}
/* Poprawka pozycji modala logowania na desktopie - wyśrodkowanie na ekranie */
@media screen and (min-width: 1080px) {
    .login-box {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media screen and (max-width: 1300px) {
    .server-container > div.name h1 {
        max-width: 240px;
        min-width: 240px;
    }
    header .top .menu > li span.page-name {
        display: none;
    }
    header .top .menu > li > a {
        padding: 0 35px;
    }
    header .top .menu > li.submenu {
        padding: 0 35px;
    }
}
@media screen and (max-width: 1226px) {
    header .top .inline-media {
        display: none;
    }
    .server-container > div.buttons a {
        padding: 0 12px;
    }
    .server-container,
    .server-container > div.name h1 {
        font-size: 12px;
    }
}
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }
    .top .cont {
        overflow-x: hidden;
    }
    header .top:after {
        display: none;
    }
    header .partners {
        display: none;
    }
    header {
        background-size: 250% auto;
        background-position: center top;
        min-height: auto;
        padding-bottom: 30px;
    }
    header .menu-container {
        margin-top: 0;
    }
    /* Ukryj cały panel kontrolny (profil, dymki, nawigacja) na urządzeniach mobilnych */
    header .control-panel {
        display: none;
    }
    
    /* Ukryj przyciski logowania i rejestracji na urządzeniach mobilnych */
    header .control-panel nav > ul.user-panel li.login,
    header .control-panel nav > ul.user-panel li.register {
        display: none;
    }
    .r_bg {
        padding: 10px;
    }
    #shoutbox .text {
        margin-top: 10px;
    }
    /* Shoutbox - panel z inputem musi być widoczny */
    #shoutbox .panel {
        display: block;
        visibility: visible;
        opacity: 1;
        padding: 15px;
        box-sizing: border-box;
    }
    #shoutbox .panel form {
        display: block;
        width: 100%;
    }
    #shoutbox input.text {
        display: block;
        visibility: visible;
        width: 100%;
        margin-top: 10px;
        padding: 12px 15px;
        font-size: 14px;
        box-sizing: border-box;
    }
    .redirect {
        transform: none;
        margin: auto;
        position: unset;
        margin-top: 10px;
        width: 90%;
    }
    .stable .row.och {
        display: block;
        position: relative;
    }
    .pc10l,
    pc10r {
        padding: 0;
    }
    .ac {
        text-align: left;
    }
    .row.och.np {
        display: none;
    }
    body .row.thread {
        overflow: visible;
        position: relative;
        display: flex;
        align-items: center;
        min-height: 70px;
        writing-mode: horizontal-tb;
    }
    body .stable .row.thread {
        display: table;
        writing-mode: horizontal-tb;
    }
    body .stable .row.thread > div {
        vertical-align: middle;
        writing-mode: horizontal-tb;
    }
    body .row.thread .thread-info {
        writing-mode: horizontal-tb;
    }
    body .stable .row.thread,
    body .stable table .row.thread,
    body .stable table tbody .row.thread {
        overflow: visible;
    }
    body .stable table {
        overflow: visible;
    }
    body .stable table tbody {
        overflow: visible;
    }
    body .stable table td {
        overflow: visible;
    }
    body .stable table tr {
        overflow: visible;
    }
    body .row.thread > div {
        overflow: visible;
    }
    body .row.thread .thread-info .avatar,
    body .row.thread .last-post .avatar,
    body .row.och .avatar {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 15px;
        width: 50px;
        overflow: visible;
        z-index: 1;
        border-radius: 50%;
        clip-path: none;
        clip: auto;
        margin: 0;
        pointer-events: none;
    }
    body .row.thread .thread-info .avatar a {
        pointer-events: auto;
    }
    /* Wyśrodkowanie awatara w Y względem wiersza */
    body .row.thread {
        display: flex;
        align-items: center;
        min-height: 70px;
    }
    body .stable .row.thread {
        display: table;
    }
    body .stable .row.thread > div {
        vertical-align: middle;
    }
    body .stable .row.thread .thread-info .avatar,
    body .stable .row.thread .last-post .avatar {
        overflow: visible;
        clip-path: none;
        clip: auto;
    }
    body .row.thread .thread-info .avatar img,
    body .row.thread .last-post .avatar img,
    body .row.och .avatar img {
        width: 50px;
        height: 50px;
        object-fit: cover;
        border-radius: 50%;
        display: block;
        border: 2px solid rgba(0, 143, 255, 0.3);
        max-width: 50px;
        max-height: 50px;
    }
    body .row.thread .thread-info.clearfix,
    body .row.thread .thread-info {
        position: relative;
        padding-right: 0;
        overflow: visible;
        min-height: 70px;
        display: flex;
        align-items: center;
    }
    body .row.thread .thread-info .info,
    body .row.thread .thread-info .info:not(.avatar-none) {
        position: relative;
        z-index: 2;
        flex: 0 0 auto;
        min-width: 0;
        max-width: calc(100% - 65px);
        width: calc(100% - 65px);
        box-sizing: border-box;
        display: block;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        direction: ltr;
        margin-right: 0;
        padding-right: 0;
        padding-left: 75px;
        overflow: hidden;
    }
    body .stable .row.thread .thread-info {
        overflow: visible;
    }
    body .row.thread > div.thread-info {
        vertical-align: middle;
    }
    body .row.thread .thread-info .info .thread-name,
    body .row.thread .thread-info .info .thread-name span,
    body .row.thread .thread-info .info .thread-name span.subject_editable,
    body .row.thread .thread-info .info .thread-name span.subject_old,
    body .row.thread .thread-info .info .thread-name span.subject_new,
    body .row.thread .thread-info .info .thread-name a,
    body .row.thread .thread-info .info .author,
    body .row.thread .thread-info .info .author a,
    body .stable .row.thread .thread-info .info,
    body .stable .row.thread .thread-info .info .thread-name,
    body .stable .row.thread .thread-info .info .thread-name span,
    body .stable .row.thread .thread-info .info .thread-name span.subject_editable,
    body .stable .row.thread .thread-info .info .thread-name span.subject_old,
    body .stable .row.thread .thread-info .info .thread-name span.subject_new,
    body .stable .row.thread .thread-info .info .thread-name a,
    body .stable .row.thread .thread-info .info .author,
    body .stable .row.thread .thread-info .info .author a {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        direction: ltr;
        display: block;
        white-space: normal;
        letter-spacing: normal;
        word-spacing: normal;
    }
    body .row.thread .thread-info .info .thread-name,
    body .row.thread .thread-info .info .thread-name a,
    body .row.thread .thread-info .info .author,
    body .row.thread .thread-info .info .author a,
    body .stable .row.thread .thread-info .info .thread-name,
    body .stable .row.thread .thread-info .info .thread-name a,
    body .stable .row.thread .thread-info .info .author,
    body .stable .row.thread .thread-info .info .author a {
        position: relative;
        z-index: 3;
    }
    .row.och .info {
        display: none;
    }
    .stable .row.och > div {
        display: block;
        width: 100%;
        padding: 10px;
        position: unset;
        text-align: left;
    }
    .stable .row.och .username {
        padding: 0;
    }
    .profile-header {
        height: auto;
        padding: 20px;
        border-bottom: 0;
    }
    .profile-header .avatar img {
        border-radius: 4px;
    }
    .stats-container .stat {
        margin-bottom: 0;
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin: 10px 0;
        background: #1c2029;
        border: 0;
        border-radius: 3px;
    }
    .profile-header .avatar {
        border: 0;
        margin-bottom: 20px;
    }
    .profile-options,
    .profile-header .avatar,
    .profile-header .info,
    .stats-container {
        position: unset;
        padding-left: 0;
        margin-left: 0;
    }
    .profile-header {
        text-align: center;
    }
    .profile-container .additional-stuff .menu ul li {
        margin: 10px;
    }
    .profile-container .info {
        margin-bottom: 30px;
    }
    .profile-container .info,
    .profile-container .additional-stuff {
        display: block;
        float: none;
        padding: 0;
        width: 100%;
        text-align: center;
    }
    .user-list .users .user {
        width: 100%;
        margin: 10px 0;
        text-align: center;
    }
    .user-list .alphabet a {
        margin: 5px;
    }
    .user-list .users .user .info {
        padding-left: 0;
        display: block;
    }
    .user-list .users .user .avatar {
        display: block;
        position: unset;
        transform: none;
        margin: 20px auto;
    }
    .ucp-menu > ul > li {
        display: block;
        width: 100%;
        margin-top: 20px;
    }
    .ucp-menu > ul > li:first-child {
        margin-top: 0;
    }
    header > .top .left,
    header .middle nav ul.page,
    .left10,
    .left20,
    .left25,
    .left30,
    .left33,
    .left40,
    .left50,
    .left60,
    .left70,
    .left80,
    .left90 {
        float: none;
        width: 100%;
        padding: 0;
        display: block;
    }
    .left10,
    .left20,
    .left25,
    .left30,
    .left33,
    .left40,
    .left50,
    .left60,
    .left70,
    .left80,
    .left90 {
        margin: 10px 0;
    }
    .right {
        margin-top: 10px;
    }
    .ar {
        text-align: left;
    }
    .categories .category:not(:first-child) {
        margin-top: 20px;
    }
    /* Zmiana układu głównego kontenera - panel boczny pod działami */
    body main .top {
        display: block;
    }
    
    /* Główna zawartość (działy forum) - pierwsza */
    body main .top .cont,
    body .cont {
        display: block;
        width: 100%;
        float: none;
        clear: both;
    }
    
    /* Panel boczny pod działami - druga */
    body main .top .sidebar {
        display: block;
        margin-top: 30px;
        width: 100%;
        padding-left: 0;
        padding-top: 0;
        float: none;
        clear: both;
    }
    
    main .top .sidebar .side-table:not(:first-child) {
        margin-top: 20px;
    }
    header > .top .menu,
    header .user-panel,
    header .middle nav ul.user2,
    .row.thread > div.icon,
    .row.thread > div.status,
    .row.thread > div.stats {
        display: none
    }
    header > .top {
        height: auto;
        padding: 30px 0;
    }
    header .logo {
        text-align: center;
    }
    header .logo img,
    footer .site-logo img {
        position: unset;
        transform: unset;
        margin: 0;
    }
    .mobile-menus-open {
        display: block;
    }
    .slider h2.description {
        width: 100%;
        padding-right: 10px;
    }
    .statsboard .stats .stat {
        width: 50%;
    }
    .statsboard .stats .stat.newest {
        display: none;
    }
    .slider .slides,
    .slider .slides > div {
        height: auto;
    }
    .slider {
        padding: 50px 0 30px 0;
        height: auto;
    }
    .slider .buttons {
        position: absolute;
        right: 0;
        left: 15px;
        bottom: 0;
        text-align: left;
    }
    .slider .slides > div:first-child {
        padding-left: 25px;
    }
    .slider .slides > div {
        padding-bottom: 100px;
        padding-left: 25px;
    }
    .slider .button {
        position: absolute;
        bottom: 30px;
    }
    .slider .buttons > div {
        margin-top: 0;
    }
    .slider h1.title {
        margin-top: 0px;
    }
    main .top .sidebar .side-table .headline::before,
    .thread-table .headline:before,
    .stable > .headline:before,
    .categories .category > .headline:before,
    .thead:before,
    footer .site-logo {
        display: none;
    }
    .row.thread > div.thread-info,
    .row.thread > div.last-post {
        width: 45%;
    }
    .left {
        float: none;
        width: 100%;
        text-align: left;
    }
    .right.postbit_buttons {
        display: inline-block;
        width: auto;
    }
    .right {
        float: none;
        width: 100%;
    }
    /* Wyjątek dla .thead .right - nie nadpisuj */
    body .thead .right {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
        gap: 0;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.5);
        float: none;
        clear: both;
        margin-top: 0;
        margin-bottom: 0;
    }
    /* Wyjątek dla .stable > .headline .right - nie nadpisuj */
    body .stable > .headline .right {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
        gap: 0;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.5);
        float: none;
        clear: both;
        margin-top: 0;
        margin-bottom: 0;
    }
    footer {
        height: auto;
        padding: 20px 0;
    }
    footer .engine-options {
        margin-bottom: 15px;
    }
    footer .right,
    footer .left {
        text-align: center;
    }
    footer .right h1 {
        margin-top: 10px;
    }
    .ucp-container > .right {
        margin-top: 0;
        padding-top: 40px;
    }
    .thread-table .row .right i {
        float: none;
        padding: 0;
        margin: 0;
    }
    /* Zwiększona specyficzność selektorów dla mobile */
    body .categories .category > .headline,
    body .thread-table .headline {
        padding: 8px 15px;
        height: auto;
        min-height: auto;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        background: linear-gradient(135deg, 
            rgba(0, 82, 163, 0.8) 0%, 
            rgba(0, 143, 255, 0.6) 50%, 
            rgba(0, 212, 255, 0.4) 100%);
        border-bottom: 2px solid rgba(0, 212, 255, 0.3);
        margin: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        position: relative;
        overflow: hidden;
    }
    body .stable > .headline {
        padding: 8px 15px;
        height: auto;
        min-height: auto;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        background: linear-gradient(135deg, 
            rgba(0, 82, 163, 0.8) 0%, 
            rgba(0, 143, 255, 0.6) 50%, 
            rgba(0, 212, 255, 0.4) 100%);
        border-bottom: 2px solid rgba(0, 212, 255, 0.3);
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: relative;
        overflow: hidden;
        line-height: normal;
        vertical-align: top;
    }
    body .stable > .headline > * {
        box-sizing: border-box;
    }
    body .stable > .headline > span {
        display: block;
        width: 100%;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: bold;
        color: #fff;
        float: none;
        clear: both;
    }
    body .stable > .headline .right {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
        gap: 0;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.5);
        float: none;
        clear: both;
        margin-top: 0;
        margin-bottom: 0;
    }
    body .stable > .headline .right a {
        display: inline-block;
        color: #fff;
        text-decoration: none;
        font-size: 13px;
        padding: 5px 0;
        transition: color 0.3s ease;
        float: none;
    }
    body .stable > .headline .right a:first-child {
        margin-right: 8px;
    }
    body .stable > .headline .right a:last-child {
        margin-left: 8px;
    }
    body .stable > .headline .right {
        white-space: normal;
    }
    body .stable > .headline .right::before,
    body .stable > .headline .right::after {
        content: none;
    }
    body .stable > .headline .right a:hover {
        color: #00d4ff;
    }
    body .thead {
        padding: 8px 15px;
        height: auto;
        min-height: auto;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        background: linear-gradient(135deg, 
            rgba(0, 82, 163, 0.8) 0%, 
            rgba(0, 143, 255, 0.6) 50%, 
            rgba(0, 212, 255, 0.4) 100%);
        border-bottom: 2px solid rgba(0, 212, 255, 0.3);
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: relative;
        overflow: hidden;
        line-height: normal;
        vertical-align: top;
    }
    body .thead > * {
        box-sizing: border-box;
    }
    body .thead > span {
        display: block;
        width: 100%;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: bold;
        color: #fff;
        float: none;
        clear: both;
    }
    body .thead .right {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
        gap: 0;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.5);
        float: none;
        clear: both;
        margin-top: 0;
        margin-bottom: 0;
    }
    body .thead .right a {
        display: inline-block;
        color: #fff;
        text-decoration: none;
        font-size: 13px;
        padding: 5px 0;
        transition: color 0.3s ease;
        float: none;
    }
    body .thead .right a:hover {
        color: #00d4ff;
    }
    /* Tytuł działu w jednej linii */
    body .categories .category > .headline .left,
    body .thread-table .headline .left,
    body .stable > .headline .left {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 0;
    }
    /* Przycisk markread/subscribe pod tytułem */
    body .thead + .tfoot,
    body .thead ~ .tfoot,
    body .thead + form.forum_options,
    body .thead ~ form.forum_options {
        margin-top: 10px;
        padding: 10px 15px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 5px;
        width: 100%;
        box-sizing: border-box;
    }
    body .thead + .tfoot a,
    body .thead ~ .tfoot a,
    body .thead + form.forum_options a,
    body .thead ~ form.forum_options a {
        display: inline-block;
        margin: 0 5px;
        padding: 8px 15px;
        border-radius: 5px;
        background: rgba(0, 143, 255, 0.3);
        color: #fff;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    body .thead + .tfoot a:hover,
    body .thead ~ .tfoot a:hover,
    body .thead + form.forum_options a:hover,
    body .thead ~ form.forum_options a:hover {
        background: rgba(0, 143, 255, 0.5);
    }
    /* Przywrócenie animacji shimmer dla mobile */
    body .categories .category > .headline::before,
    body .thread-table .headline::before,
    body .stable > .headline::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(0, 212, 255, 0.2) 50%, 
            transparent 100%);
        animation: shimmer 3s infinite;
        z-index: 1;
        pointer-events: none;
        will-change: left;
    }
    @keyframes shimmer {
        0% { left: -100%; }
        100% { left: 200%; }
    }
    body .categories .category > .headline .left {
        float: none;
        flex: 1;
        text-align: left;
        line-height: normal;
    }
    body .categories .category > .headline .close {
        position: relative;
        right: auto;
        top: auto;
        float: none;
        margin-top: 0;
        margin-left: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        z-index: 2;
    }
    body .categories .category > .headline .close img {
        margin-top: 0;
        vertical-align: middle;
    }
    .categories .category,
    .stable,
    .thread-table,
    .tl-container.second-cont {
        margin-top: 20px;
    }
    /* Usunięto duplikaty - style dla inline-stats przeniesione do media query max-width: 700px */
    .thread-table .post-container .author-info {
        width: 23%;
        padding: 20px 10px;
    }
    .post-controls .float_left,
    .post-controls .float_right {
        float: none;
        display: inline-block;
    }
    .post-controls a {
        margin: 3px 0;
        display: inline-block;
    }
    .row .options,
    .row .textarea-c {
        float: none;
        width: 100%;
    }
    .row .textarea-c {
        margin-top: 20px;
    }
    /* serversboard */
    
    .server-container {
        display: block;
        text-align: center;
        background: rgba(0, 0, 0, 0.5);
        padding: 20px 0;
    }
    .server-container > div {
        display: block;
        width: 100%;
    }
    .server-container > div:not(.name) {
        margin-top: 15px;
    }
    .server-container > div.name h1 {
        max-width: 100%;
        width: 250px;
    }
    .server-container > div.icon {
        display: none;
    }
    .server-container > div.players-container .progress {
        width: 50%;
        margin: 0 auto;
    }
    .server-container > div.buttons {
        text-align: center;
    }
    .server-container > div.buttons a {
        border: 1px solid #7aba0c;
        color: #fff;
    }
    /* Uporządkowanie formularzy, przycisków i list rozwijanych na mobile */
    .stable form,
    form {
        width: 100%;
        box-sizing: border-box;
    }
    /* Specjalny układ dla formularza sortowania (sortby, order, datecut) - nadpisz inline style */
    body .stable .row .right form[action="forumdisplay.php"][method="get"]:has(select[name="sortby"]) {
        display: block !important;
        flex-direction: unset !important;
        gap: 0 !important;
        padding: 10px;
        box-sizing: border-box;
        position: relative;
    }
    body .stable .row .right form[action="forumdisplay.php"][method="get"]:has(select[name="sortby"])::after {
        content: '';
        display: block;
        clear: both;
        height: 0;
        visibility: hidden;
    }
    body .stable .row .right form[action="forumdisplay.php"][method="get"]:has(select[name="sortby"]) > * {
        box-sizing: border-box;
    }
    /* Pierwszy wiersz - select sortby */
    body .stable .row .right form[action="forumdisplay.php"][method="get"]:has(select[name="sortby"]) select[name="sortby"] {
        width: calc(100% - 80px) !important;
        padding: 10px 15px;
        font-size: 14px;
        border-radius: 5px;
        background: rgba(15, 15, 15, 0.8);
        border: 1px solid rgba(0, 143, 255, 0.3);
        color: #fff;
        box-sizing: border-box;
        display: block !important;
        margin-bottom: 10px;
        height: 44px;
        line-height: 24px;
    }
    /* Drugi wiersz - kontener dla selectów order i datecut */
    body .stable .row .right form[action="forumdisplay.php"][method="get"]:has(select[name="sortby"]) select[name="order"],
    body .stable .row .right form[action="forumdisplay.php"][method="get"]:has(select[name="sortby"]) select[name="datecut"] {
        width: calc((100% - 92px) / 2) !important;
        padding: 10px 15px;
        font-size: 14px;
        border-radius: 5px;
        background: rgba(15, 15, 15, 0.8);
        border: 1px solid rgba(0, 143, 255, 0.3);
        color: #fff;
        box-sizing: border-box;
        display: inline-block !important;
        vertical-align: middle !important;
        float: none;
        clear: none;
        height: 44px;
        line-height: 24px;
    }
    body .stable .row .right form[action="forumdisplay.php"][method="get"]:has(select[name="sortby"]) select[name="order"] {
        margin-right: 10px;
    }
    /* Przycisk OK - po prawej stronie, wyrównany z oboma wierszami (tylko dla formularza sortowania) */
    body .stable .row .right form[action="forumdisplay.php"]:has(select[name="sortby"]) input[type="submit"],
    body .stable .row .right form[action="forumdisplay.php"]:has(select[name="sortby"]) button[type="submit"] {
        position: absolute;
        right: 10px;
        top: 10px;
        width: 70px;
        height: calc(100% - 20px);
        min-height: calc(44px + 10px + 44px);
        padding: 10px;
        font-size: 14px;
        border-radius: 5px;
        background: rgba(0, 143, 255, 0.5);
        border: 1px solid rgba(0, 143, 255, 0.6);
        color: #fff;
        cursor: pointer;
        transition: all 0.3s ease;
        box-sizing: border-box;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
        visibility: visible;
        opacity: 1;
    }
    body .stable .row .right form[action="forumdisplay.php"]:has(select[name="sortby"]) input[type="submit"]:hover,
    body .stable .row .right form[action="forumdisplay.php"]:has(select[name="sortby"]) button[type="submit"]:hover {
        background: rgba(0, 143, 255, 0.7);
        border-color: rgba(0, 212, 255, 0.8);
    }
    /* Dodaj przycisk OK przez CSS ::after jeśli nie istnieje w HTML */
    body .stable .row .right form[action="forumdisplay.php"]:has(select[name="sortby"]):not(:has(input[type="submit"]))::after {
        content: 'OK';
        position: absolute;
        right: 10px;
        top: 10px;
        width: 70px;
        height: calc(100% - 20px);
        min-height: calc(44px + 10px + 44px);
        padding: 10px;
        font-size: 14px;
        border-radius: 5px;
        background: rgba(0, 143, 255, 0.5);
        border: 1px solid rgba(0, 143, 255, 0.6);
        color: #fff;
        cursor: pointer;
        transition: all 0.3s ease;
        box-sizing: border-box;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
    }
    
    /* Etykiety formularzy - zawsze nad elementami, flex column (wykluczamy formularz sortowania) */
    body .stable .row .right form:not(:has(select[name="sortby"])) > div,
    body .stable form:not(:has(select[name="sortby"])) > div,
    body form:not(:has(select[name="sortby"])) > div {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin: 10px 0;
        flex-wrap: wrap;
    }
    /* Formularz sortowania - bez flex column dla div */
    body .stable .row .right form:has(select[name="sortby"]) > div {
        display: block;
        margin: 0;
        gap: 0;
    }
    /* Wyjątek dla div z inputem text/search + submit - flex row (ale nie dla formularza logowania) */
    body .stable form:not([action*="action=login"]):not([action*="action=do_login"]):not(:has(input[name="username"])) > div:has(input[type="text"]):has(input[type="submit"]),
    body .stable form:not([action*="action=login"]):not([action*="action=do_login"]):not(:has(input[name="username"])) > div:has(input[type="search"]):has(input[type="submit"]),
    body form:not([action*="action=login"]):not([action*="action=do_login"]):not(:has(input[name="username"])) > div:has(input[type="text"]):has(input[type="submit"]),
    body form:not([action*="action=login"]):not([action*="action=do_login"]):not(:has(input[name="username"])) > div:has(input[type="search"]):has(input[type="submit"]) {
        flex-direction: row;
    }
    
    /* Formularz logowania - zawsze kolumna na mobile (wszystkie divy) */
    body form[action="member.php"]:has(input[name="username"]) > div,
    body form[action*="member.php"]:has(input[name="username"]) > div,
    body form:has(input[name="username"]):has(input[name="password"]) > div {
        flex-direction: column;
    }
    
    /* Formularz logowania - wszystkie elementy w kolumnie */
    body form[action="member.php"]:has(input[name="username"]) .row,
    body form[action*="member.php"]:has(input[name="username"]) .row,
    body form:has(input[name="username"]):has(input[name="password"]) .row {
        display: flex;
        flex-direction: column;
    }
    
    /* Etykiety nad elementami - zawsze nad nimi */
    body .stable form > div label,
    body form > div label,
    body .stable form label,
    body form label {
        display: block;
        width: 100%;
        margin-bottom: 8px;
        color: #fff;
        font-size: 14px;
        font-weight: normal;
        order: -1;
    }
    /* Dla div z selectami (moderacja zbiorowa) - label nad selectami */
    .stable form > div select,
    form > div select {
        margin-top: 0;
        flex: 1;
        min-width: calc(33.333% - 7px);
        max-width: 100%;
    }
    /* Dla div z inputami (szukaj) - label nad inputem */
    .stable form > div input[type="text"],
    .stable form > div input[type="search"],
    form > div input[type="text"],
    form > div input[type="search"] {
        margin-top: 0;
    }
    /* Dla div z selectem jump - label nad selectem */
    .stable form > div select[name*="jump"],
    form > div select[name*="jump"] {
        margin-top: 0;
    }
    /* Przycisk OK pod listami rozwijanymi - tylko jeśli jest sam w div */
    .stable form > div:only-child input[type="submit"],
    form > div:only-child input[type="submit"],
    .stable form > div:last-child:not(:has(select)) input[type="submit"],
    form > div:last-child:not(:has(select)) input[type="submit"] {
        width: 100%;
        margin-top: 10px;
    }
    .stable form select,
    form select,
    select {
        box-sizing: border-box;
        padding: 12px 15px;
        font-size: 14px;
        margin: 0;
        border-radius: 5px;
        background: rgba(15, 15, 15, 0.8);
        border: 1px solid rgba(0, 143, 255, 0.3);
        color: #fff;
    }
    .stable form input[type="text"],
    .stable form input[type="search"],
    form input[type="text"],
    form input[type="search"],
    input.textbox {
        box-sizing: border-box;
        padding: 12px 15px;
        font-size: 14px;
        margin: 0;
        border-radius: 5px;
        background: rgba(15, 15, 15, 0.8);
        border: 1px solid rgba(0, 143, 255, 0.3);
        color: #fff;
    }
    /* Input "szukaj" i przycisk OK obok siebie - po labelu */
    .stable form > div:has(input[type="text"]) input[type="text"],
    .stable form > div:has(input[type="search"]) input[type="search"],
    form > div:has(input[type="text"]) input[type="text"],
    form > div:has(input[type="search"]) input[type="search"] {
        flex: 1;
        min-width: 0;
    }
    .stable form > div:has(input[type="text"]) input[type="submit"],
    .stable form > div:has(input[type="search"]) input[type="submit"],
    form > div:has(input[type="text"]) input[type="submit"],
    form > div:has(input[type="search"]) input[type="submit"] {
        width: auto;
        min-width: 80px;
        flex-shrink: 0;
        margin: 0;
    }
    /* Input "szukaj" i przycisk OK obok siebie - bez :has() */
    .stable form > div input[type="text"],
    .stable form > div input[type="search"],
    form > div input[type="text"],
    form > div input[type="search"] {
        flex: 1;
        min-width: 0;
    }
    .stable form > div input[type="submit"],
    form > div input[type="submit"] {
        width: auto;
        min-width: 80px;
        flex-shrink: 0;
        margin: 0;
    }
    /* Input "Skocz do" i przycisk OK obok siebie */
    .stable form > div select[name*="jump"],
    form > div select[name*="jump"] {
        flex: 1;
        min-width: 0;
    }
    /* Dla div z inputem i submitem - flex row */
    .stable form > div:has(input[type="text"]):has(input[type="submit"]),
    .stable form > div:has(input[type="search"]):has(input[type="submit"]),
    form > div:has(input[type="text"]):has(input[type="submit"]),
    form > div:has(input[type="search"]):has(input[type="submit"]) {
        flex-direction: row;
        align-items: center;
    }
    /* Dla div z selectem jump i submitem - flex row */
    .stable form > div:has(select[name*="jump"]):has(input[type="submit"]),
    form > div:has(select[name*="jump"]):has(input[type="submit"]) {
        flex-direction: row;
        align-items: center;
    }
    /* Specjalny układ dla formularza moderacji zbiorowej */
    body .stable .right form#inlinemoderation_options {
        display: flex;
        flex-direction: column;
        padding: 10px;
        box-sizing: border-box;
        gap: 5px;
    }
    /* Label (span.smalltext) w jednym wierszu - pełna szerokość */
    body .stable .right form#inlinemoderation_options .smalltext,
    form#inlinemoderation_options .smalltext {
        display: block;
        width: 100%;
        margin-bottom: 0;
        color: #fff;
        font-size: 14px;
        font-weight: normal;
        text-align: left;
    }
    form#inlinemoderation_options .smalltext strong {
        text-align: left;
    }
    /* Select w osobnym wierszu - pełna szerokość */
    body .stable .right form#inlinemoderation_options select[name="action"] {
        width: 100%;
        margin-bottom: 0;
        display: block;
        padding: 10px 15px;
        font-size: 14px;
        border-radius: 5px;
        background: rgba(15, 15, 15, 0.8);
        border: 1px solid rgba(0, 143, 255, 0.3);
        color: #fff;
        box-sizing: border-box;
    }
    /* Wrapper dla przycisków */
    body .stable .right form#inlinemoderation_options .inlinemod-buttons-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        width: 100%;
        margin-top: 0;
    }
    /* Przyciski w jednym wierszu - jednakowa szerokość */
    body .stable .right form#inlinemoderation_options input[type="submit"],
    body .stable .right form#inlinemoderation_options input[type="button"],
    body .stable .right form#inlinemoderation_options input.button,
    body .stable .right form#inlinemoderation_options input.button.button {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-sizing: border-box;
        text-align: center;
        height: auto;
        min-height: 44px;
        line-height: normal;
        text-transform: none;
        text-shadow: none;
        box-shadow: none;
        border-width: 1px;
        border-style: solid;
        margin: 0;
        flex: 1;
        width: auto;
        min-width: 0;
        max-width: none;
        outline: 0;
        vertical-align: top;
    }
    /* Przycisk Wyczyść po lewej - order: 1 */
    body .stable .right form#inlinemoderation_options input[value="Wyczyść"],
    body .stable .right form#inlinemoderation_options input[type="button"][value="Wyczyść"],
    body .stable .right form#inlinemoderation_options input.button[value="Wyczyść"],
    body .stable .right form#inlinemoderation_options input.button.button[value="Wyczyść"],
    body .stable .right form#inlinemoderation_options input[value*="Wyczyść"].button {
        order: 1;
        margin-right: 0;
        margin-left: 0;
        background: rgba(205, 69, 69, 0.3);
        border: 1px solid rgba(205, 69, 69, 0.5);
        color: #fff;
    }
    body .stable .right form#inlinemoderation_options input[value="Wyczyść"]:hover,
    body .stable .right form#inlinemoderation_options input[type="button"][value="Wyczyść"]:hover,
    body .stable .right form#inlinemoderation_options input.button[value="Wyczyść"]:hover,
    body .stable .right form#inlinemoderation_options input.button.button[value="Wyczyść"]:hover,
    body .stable .right form#inlinemoderation_options input[value*="Wyczyść"].button:hover {
        background: rgba(205, 69, 69, 0.5);
        transform: none;
    }
    /* Przycisk OK po prawej - order: 2 */
    body .stable .right form#inlinemoderation_options input[type="submit"][value*="OK"],
    body .stable .right form#inlinemoderation_options input[type="submit"][id="inline_go"],
    body .stable .right form#inlinemoderation_options input.button[type="submit"][value*="OK"],
    body .stable .right form#inlinemoderation_options input.button[id="inline_go"],
    body .stable .right form#inlinemoderation_options input.button.button[type="submit"][value*="OK"],
    body .stable .right form#inlinemoderation_options input.button.button[id="inline_go"],
    body .stable .right form#inlinemoderation_options input#inline_go.button {
        order: 2;
        margin-left: 0;
        margin-right: 0;
        background: rgba(0, 143, 255, 0.5);
        border: 1px solid rgba(0, 143, 255, 0.6);
        color: #fff;
    }
    body .stable .right form#inlinemoderation_options input[type="submit"][value*="OK"]:hover,
    body .stable .right form#inlinemoderation_options input[type="submit"][id="inline_go"]:hover,
    body .stable .right form#inlinemoderation_options input.button[type="submit"][value*="OK"]:hover,
    body .stable .right form#inlinemoderation_options input.button[id="inline_go"]:hover,
    body .stable .right form#inlinemoderation_options input.button.button[type="submit"][value*="OK"]:hover,
    body .stable .right form#inlinemoderation_options input.button.button[id="inline_go"]:hover,
    body .stable .right form#inlinemoderation_options input#inline_go.button:hover {
        background: rgba(0, 143, 255, 0.7);
        border-color: rgba(0, 212, 255, 0.8);
        transform: none;
    }
    /* Select w osobnym wierszu - pełna szerokość (wykluczamy sortby, order, datecut, action) */
    body .stable form > div select:not([name="sortby"]):not([name="order"]):not([name="datecut"]):not([name*="jump"]):not([name="action"]),
    body form > div select:not([name="sortby"]):not([name="order"]):not([name="datecut"]):not([name*="jump"]):not([name="action"]) {
        width: 100%;
        margin-bottom: 10px;
        order: 0;
        display: block;
    }
    /* Wyśrodkowanie tekstu w przyciskach - wykluczamy formularz moderacji zbiorowej i sortowania */
    body .stable .row .right form:not(#inlinemoderation_options):not(:has(select[name="sortby"])) button,
    body .stable .row .right form:not(#inlinemoderation_options):not(:has(select[name="sortby"])) input[type="submit"],
    body .stable form:not(#inlinemoderation_options):not(:has(select[name="sortby"])) button,
    body .stable form:not(#inlinemoderation_options):not(:has(select[name="sortby"])) input[type="submit"],
    body form:not(#inlinemoderation_options):not(:has(select[name="sortby"])) button,
    body form:not(#inlinemoderation_options):not(:has(select[name="sortby"])) input[type="submit"],
    body button,
    body input.button,
    body a.button {
        text-align: center;
        justify-content: center;
        align-items: center;
        display: inline-flex;
        box-sizing: border-box;
        padding: 12px 20px;
        font-size: 14px;
        margin: 0;
        border-radius: 5px;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        min-width: fit-content;
        width: auto;
        line-height: 1.5;
        vertical-align: middle;
    }
    body .stable form,
    body form {
        overflow: visible;
    }
    body .stable form > div,
    body form > div {
        overflow: visible;
    }
    /* Formularz "Szukaj w tym dziale" */
    body .stable .right form[action="search.php"],
    body .right form[action="search.php"] {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 10px;
        box-sizing: border-box;
    }
    /* Label "Szukaj w tym dziale" w jednym wierszu */
    body .stable .right form[action="search.php"] .smalltext,
    body .right form[action="search.php"] .smalltext {
        display: block;
        width: 100%;
        margin-bottom: 0;
        color: #fff;
        font-size: 14px;
        font-weight: normal;
    }
    /* Wrapper dla input i submit w formularzu szukania */
    body .stable .right form[action="search.php"] .search-input-wrapper,
    body .right form[action="search.php"] .search-input-wrapper {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }
    /* Input i przycisk OK w dwóch wierszach */
    body .stable .right form[action="search.php"] .search-input-wrapper input[type="text"],
    body .right form[action="search.php"] .search-input-wrapper input[type="text"],
    body .stable .right form[action="search.php"] .search-input-wrapper input.textbox,
    body .right form[action="search.php"] .search-input-wrapper input.textbox {
        width: 100%;
        min-width: 0;
        margin-right: 0;
        margin-bottom: 0;
    }
    body .stable .right form[action="search.php"] .search-input-wrapper input[type="submit"],
    body .right form[action="search.php"] .search-input-wrapper input[type="submit"] {
        width: 100%;
        min-width: 80px;
        flex-shrink: 0;
        margin: 0;
    }
    /* Formularz "Skocz do" - wszystko w jednej linii (wykluczamy formularz sortowania) */
    body .stable .right form[action="forumdisplay.php"]:not(:has(select[name="sortby"])),
    body .right form[action="forumdisplay.php"]:not(:has(select[name="sortby"])) {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 10px;
        box-sizing: border-box;
    }
    /* Label "Skocz do" w jednej linii */
    body .stable .right form[action="forumdisplay.php"]:not(:has(select[name="sortby"])) .smalltext,
    body .right form[action="forumdisplay.php"]:not(:has(select[name="sortby"])) .smalltext {
        display: inline-block;
        width: auto;
        margin-bottom: 0;
        margin-right: 0;
        color: #fff;
        font-size: 14px;
        font-weight: normal;
        flex-shrink: 0;
    }
    /* Wrapper dla select i submit w formularzu "Skocz do" */
    body .stable .right form[action="forumdisplay.php"]:not(:has(select[name="sortby"])) .jump-select-wrapper,
    body .right form[action="forumdisplay.php"]:not(:has(select[name="sortby"])) .jump-select-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex: 1;
        min-width: 0;
    }
    /* Select i przycisk OK w jednym wierszu */
    body .stable .right form[action="forumdisplay.php"]:not(:has(select[name="sortby"])) .jump-select-wrapper select.forumjump,
    body .right form[action="forumdisplay.php"]:not(:has(select[name="sortby"])) .jump-select-wrapper select.forumjump,
    body .stable .right form[action="forumdisplay.php"]:not(:has(select[name="sortby"])) .jump-select-wrapper select[name="fid"],
    body .right form[action="forumdisplay.php"]:not(:has(select[name="sortby"])) .jump-select-wrapper select[name="fid"] {
        flex: 1;
        min-width: 0;
        margin-right: 0;
        margin-bottom: 0;
    }
    body .stable .right form[action="forumdisplay.php"]:not(:has(select[name="sortby"])) .jump-select-wrapper input[type="submit"],
    body .right form[action="forumdisplay.php"]:not(:has(select[name="sortby"])) .jump-select-wrapper input[type="submit"] {
        width: auto;
        min-width: 80px;
        flex-shrink: 0;
        margin: 0;
    }
}
@media screen and (max-width: 700px) {
    .r_bg {
        padding: 10px;
    }
    .redirect {
        width: 100%;
    }
    /* ==========================================
       GŁÓWNY KONTENER POSTA - MOBILE
       ========================================== */
    .thread-table .post-container {
        display: block;
        position: relative;
        margin-bottom: 20px;
        padding: 0;
        box-sizing: border-box;
        overflow: visible;
        border-radius: 8px;
    }
    
    /* ==========================================
       INFORMACJE O AUTORZE - MOBILE
       ========================================== */
    .thread-table .post-container .author-info {
        display: block;
        width: 100%;
        padding: 15px;
        border-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.02);
        position: relative;
        min-height: auto;
        box-sizing: border-box;
        text-align: center;
    }
    
    /* Nazwa użytkownika - wycentrowana, word-break dla długich nicków */
    .thread-table .post-container .author-info .username {
        font-size: 15px;
        font-weight: bold;
        text-align: center;
        margin-bottom: 8px;
        margin-top: 0;
        display: block;
        padding: 0 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        line-height: 1.3;
    }
    
    /* Tytuł (Junior Member itp.) - wycentrowany */
    .thread-table .post-container .author-info .title {
        font-size: 12px;
        color: #777070;
        text-align: center;
        line-height: 1.4;
        margin-bottom: 15px;
        margin-top: 0;
        display: block;
        padding: 0 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Avatar - wycentrowany pod tytułem */
    .thread-table .post-container .author-info .avatar {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        width: 70px;
        height: auto;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0;
        margin-bottom: 15px;
        padding: 0;
        z-index: 1;
        overflow: visible;
        display: block;
        text-align: center;
        float: none;
        clear: both;
    }
    
    /* Author avatar - wycentrowany */
    .thread-table .post-container .author-info .avatar .author_avatar {
        display: block;
        width: 70px;
        height: 70px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0;
        margin-bottom: 0;
        padding: 0;
        float: none;
        text-align: center;
        position: relative;
    }
    
    .thread-table .post-container .author-info .avatar .author_avatar a {
        display: block;
        width: 70px;
        height: 70px;
        margin: 0 auto;
        padding: 0;
        text-align: center;
    }
    
    .thread-table .post-container .author-info .avatar img,
    .thread-table .post-container .author-info .avatar .author_avatar img {
        width: 70px;
        height: 70px;
        max-width: 70px;
        max-height: 70px;
        border-radius: 50%;
        object-fit: cover;
        display: block;
        margin: 0 auto;
        padding: 0;
    }
    
    /* Status online/offline - ukryty */
    .thread-table .post-container .author-info .avatar .status,
    .thread-table .post-container .author-info .status {
        display: none;
        visibility: hidden;
        opacity: 0;
        width: 0;
        height: 0;
        overflow: hidden;
        position: absolute;
        left: -9999px;
        top: -9999px;
    }
    
    .thread-table .post-container .author-info .status .user-online,
    .thread-table .post-container .author-info .status .user-offline,
    .thread-table .post-container .author-info .avatar .status .user-online,
    .thread-table .post-container .author-info .avatar .status .user-offline {
        display: none;
        visibility: hidden;
        opacity: 0;
        width: 0;
        height: 0;
        overflow: hidden;
    }
    
    /* Statystyki - pod tytułem, wycentrowane */
    .thread-table .post-container .author-info .inline-stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        margin-top: 10px;
        text-align: center;
        width: 100%;
        padding: 0;
    }
    
    .thread-table .post-container .author-info .inline-stats > div {
        display: inline-block;
        font-size: 11px;
        background: #1d2029;
        border-radius: 3px;
        padding: 4px 8px;
        margin: 0;
        font-weight: bold;
        white-space: nowrap;
    }
    
    .thread-table .post-container .author-info .inline-stats > div strong,
    .thread-table .post-container .author-info .inline-stats > div a {
        color: #fff;
    }
    
    .thread-table .post-container .author-info .inline-stats > div.reputation {
        background: #285118;
    }
    
    .thread-table .post-container .author-info .inline-stats > div.war-lvl {
        background: #761e1e;
    }
    
    /* ==========================================
       TREŚĆ POSTA - MOBILE
       ========================================== */
    .thread-table .post-container .post-info {
        display: block;
        width: 100%;
        padding: 15px;
        padding-bottom: 20px;
        margin-bottom: 0;
        box-sizing: border-box;
        border-left: 0;
        overflow: visible;
        position: relative;
        min-height: auto;
    }
    
    /* Nagłówek posta (data, numer) */
    .thread-table .post-container .post-info .post_head {
        font-size: 11px;
        margin-bottom: 15px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }
    
    .thread-table .post-container .post-info .post_head .float_right {
        float: none;
        margin-left: auto;
    }
    
    .thread-table .post-container .post-info .post_head .post_date {
        font-size: 11px;
        color: #999;
    }
    
    /* Treść posta */
    .thread-table .post-container .post-info .content.post_body {
        font-size: 14px;
        line-height: 1.6;
        margin-top: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }
    
    /* Sygnatura */
    .thread-table .post-container .post-info .signature {
        max-height: 100px;
        overflow: auto;
        margin-top: 15px;
        padding: 10px;
        font-size: 11px;
        border-top: 1px solid rgba(59, 114, 8, 0.5);
    }
    
    /* Meta informacje posta */
    .thread-table .post_meta {
        font-size: 10px;
        margin-top: 10px;
        color: #999;
    }
    
    /* ==========================================
       PRZYCISKI AKCJI - MOBILE
       ========================================== */
    /* Nadpisz position: absolute z 08-post.css - zwiększona specyficzność */
    body .thread-table .post-container .post-info .post-controls,
    body .thread-table .post-container .post-info .post-controls.clearfix,
    body .thread-table .post-container .post-info > .post-controls {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        top: auto;
        width: 100%;
        padding: 10px;
        padding-top: 10px;
        margin-top: 15px;
        margin-bottom: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        align-items: center;
        align-content: center;
        box-sizing: border-box;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    /* Upewnij się, że post-info nie ma za dużego padding-bottom */
    body .thread-table .post-container .post-info {
        padding-bottom: 0px;
    }
    
    .thread-table .post-controls .postbit_buttons {
        display: contents;
    }
    
    .thread-table .post-controls .postbit_buttons.float_left,
    .thread-table .post-controls .postbit_buttons.float_right {
        display: contents;
    }
    
    /* Wszystkie przyciski - jednolite, lepiej widoczne */
    .thread-table .post-controls a,
    .thread-table .post-controls .button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        margin: 0;
        font-size: 11px;
        white-space: nowrap;
        border-radius: 4px;
        background: rgba(0, 143, 255, 0.15);
        border: 1px solid rgba(0, 143, 255, 0.4);
        color: #fff;
        transition: all 0.3s ease;
        text-decoration: none;
        box-sizing: border-box;
        min-height: 32px;
        line-height: 1.2;
    }
    
    .thread-table .post-controls a:hover,
    .thread-table .post-controls .button:hover {
        background: rgba(0, 143, 255, 0.3);
        border-color: rgba(0, 143, 255, 0.6);
        transform: translateY(-1px);
    }
    
    .thread-table .post-controls a:active,
    .thread-table .post-controls .button:active {
        transform: translateY(0);
    }
    
    /* Menu edit (dropdown) - uproszczone dla mobile */
    .thread-table .edit {
        display: inline-block;
        position: relative;
    }
    
    .thread-table .edit ul {
        position: absolute;
        bottom: 100%;
        left: 0;
        margin-bottom: 5px;
        min-width: 120px;
        background: #1d2029;
        border-radius: 3px;
        padding: 8px;
        list-style: none;
        z-index: 100;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }
    
    .thread-table .edit ul li {
        padding: 5px 0;
        font-size: 11px;
    }
    
    .thread-table .edit ul li a {
        background: none;
        border: none;
        padding: 0;
        color: #c0afaf;
        display: block;
    }
    
    .thread-table .edit ul li a:hover {
        color: #fff;
    }
    
    /* ==========================================
       OCENA WĄTKU - MOBILE
       ========================================== */
    .thread-table .headline .thread_mode {
        float: none;
        display: block;
        margin-top: 10px;
        text-align: center;
    }
    
    .inline_rating {
        display: inline-block;
        margin: 0 auto;
    }
    
    .star_rating {
        font-size: 14px;
    }
    
    /* ==========================================
       PROFILEFIELD / GROUPIMAGE - MOBILE
       ========================================== */
    .thread-table .profilefield,
    .thread-table .groupimage {
        margin-bottom: 8px;
        font-size: 11px;
        text-align: center;
    }
    
    /* ==========================================
       DODATKOWE USPRAWNIENIA
       ========================================== */
    
    /* Skalowanie obrazków w treści posta */
    .thread-table .post-container .post-info .content img {
        max-width: 100%;
        height: auto;
    }
    
    /* Cytaty w treści posta */
    .thread-table .post-container .post-info .content blockquote {
        margin: 10px 0;
        padding: 10px;
        border-left: 3px solid rgba(0, 143, 255, 0.5);
        background: rgba(0, 0, 0, 0.2);
        font-size: 12px;
    }
    
    /* Kod w treści posta */
    .thread-table .post-container .post-info .content code,
    .thread-table .post-container .post-info .content pre {
        font-size: 11px;
        overflow-x: auto;
        white-space: pre-wrap;
        word-wrap: break-word;
    }
    
    /* Emotikony - nie za duże */
    .thread-table .post-container .post-info .content img.smilie {
        max-width: 20px;
        max-height: 20px;
        vertical-align: middle;
    }
    
    /* Przycisk Szukaj */
    .thread-table .post-info .post-search {
        margin-bottom: 10px;
        display: block;
        width: 100%;
    }
    
    .thread-table .post-info .post-search .button {
        width: auto;
        min-width: 80px;
    }
    body .categories .category .forums .forum {
        display: flex;
        align-items: center;
        position: relative;
        padding: 15px;
        box-sizing: border-box;
        min-height: 60px;
    }
    body .categories .category .forums .forum > div {
        display: block;
        width: auto;
        float: none;
    }
    body .categories .category .forums .forum > div.lthr.center {
        font-size: 9pt;
    }
    body .categories .category .forums .forum > div.forum-info {
        flex: 1;
        min-width: 0;
        width: auto;
        padding-left: 15px;
        padding-right: 0;
        margin: 0;
        box-sizing: border-box;
    }
    body .categories .category .forums .forum > div.forum-info .forum-name {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 5px;
    }
    body .categories .category .forums .forum > div.forum-info .forum-name a {
        font-size: 14px;
        font-weight: bold;
        color: #fff;
    }
    body .categories .category .forums .forum > div.forum-info .forum-description {
        font-size: 12px;
        color: #7a8ca0;
        margin-top: 5px;
        line-height: 1.4;
    }
    body .categories .category .forums .forum > div.forum-info .sub-forums {
        font-size: 11px;
        margin-top: 8px;
    }
    body .categories .category .forums .forum > div.forum-info .sub-forums ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    body .categories .category .forums .forum > div.forum-info .sub-forums ul li {
        width: 100%;
        float: none;
        display: flex;
        align-items: center;
        margin: 3px 0;
        padding-left: 0;
        position: relative;
    }
    body .categories .category .forums .forum > div.forum-info .sub-forums ul li .subforumicon {
        flex-shrink: 0;
        margin-right: 8px;
    }
    body .categories .category .forums .forum > div.forum-info .sub-forums ul li a,
    body .categories .category .forums .forum > div.forum-info .sub-forums ul li span {
        display: inline;
        padding-left: 0;
        margin-left: 0;
        flex: 1;
    }
    body .categories .category .forums .forum > div.forum-stats {
        display: none;
    }
    body .categories .category .forums .forum > div.lthr .info {
        display: none;
    }
    body .categories .category .forums .forum > div.status {
        width: 50px;
        min-width: 50px;
        flex-shrink: 0;
        left: 0;
        top: auto;
        transform: none;
        text-align: center;
        position: relative;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
        min-height: 50px;
        margin-right: 0;
        align-self: center;
    }
    body .categories .category .forums .forum > div.status .forum_status {
        margin: 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .categories .category .forums .forum > div.lthr {
        display: none;
    }
    .categories .category .forums .forum > div.lthr .avatar {
        position: unset;
        width: 100%;
        height: auto;
        transform: unset;
    }
    /* Panel boczny - mobile */
    main .top .sidebar .side-table {
        border-radius: 8px;
    }
    
    main .top .sidebar .side-table .headline,
    main .top .sidebar .thead {
        padding: 15px;
        font-size: 14px;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }
    
    main .top .sidebar .side-table .headline i {
        font-size: 18px;
        margin-right: 8px;
    }
    
    main .top .sidebar .side-table .list .row {
        padding: 15px 12px;
    }
    
    main .top .sidebar .side-table .list .row .avatar {
        width: 40px;
        height: 40px;
    }
    
    main .top .sidebar .side-table .list .row .avatar img {
        width: 40px;
        height: 40px;
    }
    
    main .top .sidebar .side-table .list .row .text {
        padding-left: 12px;
        padding-right: 45px;
        font-size: 10pt;
    }
    
    main .top .sidebar .side-table .list .row .text .bold,
    main .top .sidebar .side-table .list .row .text .bold a {
        font-size: 11.5pt;
    }
    
    main .top .sidebar .side-table .list .row .result {
        min-width: 30px;
        padding: 5px 10px;
        font-size: 10pt;
        right: 12px;
    }
    
    main .top .sidebar .side-table .list .row:not(:last-child)::after {
        width: calc(100% - 24px);
        left: 12px;
    }
    footer .engine-options > div select {
        padding: 6px;
        margin: 0 10px;
    }
    body .statsboard {
        margin-top: 20px;
        background: rgba(15, 15, 15, 0.8);
        border-radius: 8px;
        border: 1px solid rgba(0, 143, 255, 0.2);
        padding: 20px 0;
        position: relative;
        width: 100%;
        box-sizing: border-box;
    }
    body .statsboard .stats {
        padding: 20px 20px 0 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        position: relative;
        width: 100%;
        box-sizing: border-box;
    }
    body .statsboard .stats .stat {
        width: 100%;
        float: none;
        clear: both;
        display: flex;
        align-items: center;
        margin: 0;
        padding: 15px;
        background: rgba(20, 20, 30, 0.5);
        border-radius: 6px;
        border: 1px solid rgba(0, 143, 255, 0.15);
        position: relative;
        box-sizing: border-box;
        flex-shrink: 0;
    }
    body .statsboard .stat .icon {
        width: 60px;
        min-width: 60px;
        max-width: 60px;
        box-sizing: border-box;
        height: 60px;
        text-align: center;
        padding: 0;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
        background: rgba(0, 143, 255, 0.1);
        position: relative;
        flex-shrink: 0;
    }
    body .statsboard .stats .stat .icon:before {
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: block;
    }
    body .statsboard .stat .text {
        position: relative;
        flex: 1;
        min-width: 0;
        box-sizing: border-box;
        display: block;
        float: none;
    }
    body .statsboard .stat .text .number {
        display: block;
        line-height: 1.2;
    }
    body .statsboard .stat .text .title {
        display: block;
        line-height: 1.4;
        margin-top: 3px;
    }
    body .statsboard .stat.newest .icon {
        width: 60px;
        min-width: 60px;
        max-width: 60px;
        height: 60px;
    }
    body .statsboard .stat.newest .icon img {
        width: 50px;
        height: 50px;
        margin: 0;
        display: block;
    }
    body .statsboard .stat-container {
        padding: 20px;
        margin-top: 20px;
        border-top: 1px solid rgba(0, 143, 255, 0.2);
        position: relative;
        width: 100%;
        box-sizing: border-box;
    }
    body .statsboard .stat:not(:first-child) {
        margin-top: 0;
    }
    body .statsboard .whosonline {
        padding: 20px;
        position: relative;
        width: 100%;
        box-sizing: border-box;
    }
    /* Shoutbox - panel z inputem musi być widoczny na małych ekranach */
    #shoutbox .panel {
        display: block;
        visibility: visible;
        opacity: 1;
        padding: 15px;
        box-sizing: border-box;
    }
    #shoutbox .panel form {
        display: block;
        width: 100%;
    }
    #shoutbox input.text {
        display: block;
        visibility: visible;
        width: 100%;
        margin-top: 10px;
        padding: 12px 15px;
        font-size: 14px;
        box-sizing: border-box;
    }
    /* Formularz wyszukiwania - wyrównanie do szerokości posta i zmniejszenie odstępu */
    /* Zmniejsz margin-top i padding dla .row zawierającego formularz */
    body .thread-table .row.clearfix:has(form[action="search.php"]),
    body .thread-table .row:has(form[action="search.php"]) {
        margin-top: -15px;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        display: flex;
        justify-content: center;
    }
    body .thread-table .row.clearfix:has(form[action="search.php"]) .float_right,
    body .thread-table .row:has(form[action="search.php"]) .float_right {
        width: 100%;
        max-width: 100%;
        float: none;
        display: block;
    }
    body .stable .right form[action="search.php"],
    body .right form[action="search.php"] {
        padding: 15px;
        margin-top: 0;
        margin-bottom: 0;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }
    /* Nawigacja wątków - Starszy/Nowszy wątek wyśrodkowane */
    .thread-table .row.clearfix:has(.left):has(.right),
    body .thread-table .row.clearfix:has(.left):has(.right) {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
    .thread-table .row.clearfix:has(.left):has(.right) .left,
    body .thread-table .row.clearfix:has(.left):has(.right) .left {
        width: auto;
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
        line-height: 1.5;
        display: flex;
        align-items: center;
    }
    .thread-table .row.clearfix:has(.left):has(.right) .right,
    body .thread-table .row.clearfix:has(.left):has(.right) .right {
        width: auto;
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
        line-height: 1.5;
        display: flex;
        align-items: center;
    }
    /* Quick reply - checkboxy pod textarea w jednym wierszu, tekst pod checkboxami */
    .row:has(.textarea-c):has(.options) {
        display: flex;
        flex-direction: column;
    }
    .row:has(.textarea-c):has(.options) .textarea-c {
        order: 1;
        width: 100%;
        margin-top: 0;
        margin-bottom: 15px;
    }
    .row:has(.textarea-c):has(.options) .options {
        order: 2;
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        justify-content: space-between;
        align-items: stretch;
        overflow-x: auto;
    }
    body .row:has(.textarea-c):has(.options) .options {
        flex-wrap: nowrap;
    }
    /* Ukryj <br> w .options na mobile */
    .row:has(.textarea-c):has(.options) .options br,
    body .row:has(.textarea-c):has(.options) .options br,
    .stable .row:has(.textarea-c):has(.options) .options br {
        display: none !important;
    }
    .row:has(.textarea-c):has(.options) .options > label {
        display: block;
        text-align: center;
        flex: 1 1 0;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        padding: 8px 5px;
        background: #131314;
        border-radius: 3px;
        cursor: pointer;
        box-sizing: border-box;
        white-space: normal;
        height: 80px;
        min-height: 80px;
        max-height: 80px;
        position: relative;
    }
    body .row:has(.textarea-c):has(.options) .options > label {
        flex-shrink: 0;
        flex-grow: 1;
        height: 80px;
    }
    /* Ukryj &nbsp; z labeli */
    .row:has(.textarea-c):has(.options) .options > label .checkbox + strong::before,
    .row:has(.textarea-c):has(.options) .options > label .checkbox::after {
        content: '';
        display: none;
    }
    /* Ukryj wszystkie &nbsp; w labelach */
    .row:has(.textarea-c):has(.options) .options > label {
        font-size: 0;
    }
    .row:has(.textarea-c):has(.options) .options > label input[type="checkbox"],
    .row:has(.textarea-c):has(.options) .options > label strong,
    .row:has(.textarea-c):has(.options) .options > label span {
        font-size: 11px;
    }
    .row:has(.textarea-c):has(.options) .options > label input[type="checkbox"] {
        display: block;
        margin: 8px auto 6px auto;
        position: relative;
    }
    .row:has(.textarea-c):has(.options) .options > label strong,
    .row:has(.textarea-c):has(.options) .options > label span {
        display: block;
        font-size: 11px;
        text-align: center;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-height: 40px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        margin: 0 auto;
    }
}
@media screen and (max-width: 550px) {
    .row.thread > div.last-post {
        display: none;
    }
    body .row.thread > div.thread-info {
        width: 100%;
        padding-right: 0;
        box-sizing: border-box;
    }
    body .row.thread > div.thread-info .thread-info .info,
    body .row.thread > div.thread-info .thread-info .info:not(.avatar-none) {
        max-width: calc(100% - 65px);
        width: calc(100% - 65px);
        padding-left: 0;
    }
    .row.thread .thread-info .avatar {
        right: 15px;
    }
    /* Panel boczny - bardzo małe ekrany */
    main .top .sidebar .side-table .headline,
    main .top .sidebar .thead {
        padding: 12px;
        font-size: 13px;
    }
    
    main .top .sidebar .side-table .list .row .text .author,
    main .top .sidebar .side-table .list .row .text .date {
        font-size: 9pt;
    }
    /* Formularz opcji moderatora - tekst nad listą, lista i przycisk w jednym wierszu */
    form#moderator_options {
        display: block;
    }
    form#moderator_options .smalltext {
        display: block;
        width: 100%;
        margin-bottom: 8px;
        text-align: left;
    }
    /* Select i submit w jednym wierszu - wyrównane wysokościowo */
    form#moderator_options select[name="action"],
    form#moderator_options input[type="submit"] {
        display: inline-block;
        vertical-align: top;
        box-sizing: border-box;
        height: 44px;
        min-height: 44px;
    }
    form#moderator_options select[name="action"] {
        width: calc(100% - 90px);
        margin: 0;
        margin-right: 10px;
    }
    form#moderator_options input[type="submit"] {
        width: 80px;
        min-width: 80px;
        margin: 0;
    }
    /* Moderacja zbiorowa - tekst do lewej na mobile */
    form#inlinemoderation_options .smalltext,
    body form#inlinemoderation_options .smalltext {
        text-align: left;
    }
    form#inlinemoderation_options .smalltext strong {
        text-align: left;
    }
}
		
/* ========================================

   FORMULARZ REJESTRACJI - MOBILE STYLES

   ======================================== */

/* Desktop - brak zmian dla rozdzielczości powyżej 1079px */

@media screen and (min-width: 1080px) {
    /* Formularz rejestracji działa normalnie na desktop */
}

/* Tablet i Mobile - poniżej 768px */

@media screen and (max-width: 768px) {
    
    /* GŁÓWNY KONTENER FORMULARZA */
    form[action="member.php"] .stable {
        margin-top: 20px;
    }
    
    form[action="member.php"] .stable .container {
        padding: 0;
    }
    
    /* UKŁAD KOLUMN -> POJEDYNCZA KOLUMNA */
    form[action="member.php"] .row.clearfix {
        display: block;
        overflow: visible;
    }
    
    form[action="member.php"] .row.clearfix > .left50 {
        width: 100%;
        float: none;
        display: block;
        margin: 0;
        padding: 10px;
        box-sizing: border-box;
    }
    
    form[action="member.php"] .row.clearfix > .left50.p20 {
        padding: 10px;
    }
    
    /* SEKCJE FORMULARZA (BOXY) */
    form[action="member.php"] .box {
        margin-bottom: 20px;
        border-radius: 8px;
        overflow: hidden;
        background: rgb(15, 15, 15);
    }
    
    form[action="member.php"] .box:last-child {
        margin-bottom: 0;
    }
    
    /* NAGŁÓWKI SEKCJI */
    form[action="member.php"] .box .headline {
        padding: 15px;
        font-size: 14px;
        font-weight: bold;
        color: #fff;
        background: linear-gradient(135deg, 
            rgba(0, 82, 163, 0.8) 0%, 
            rgba(0, 143, 255, 0.6) 50%, 
            rgba(0, 212, 255, 0.4) 100%);
        border-bottom: 2px solid rgba(0, 212, 255, 0.3);
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        border-left: none;
        position: relative;
        overflow: hidden;
    }
    
    /* Tekst w nagłówku - upewniamy się, że jest widoczny */
    form[action="member.php"] .box .headline span {
        position: relative;
        z-index: 2;
        display: block;
    }
    
    /* Animacja shimmer dla nagłówków - delikatniejsza */
    form[action="member.php"] .box .headline::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(0, 212, 255, 0.1) 50%, 
            transparent 100%);
        animation: shimmer 4s infinite;
        z-index: 1;
        pointer-events: none;
        will-change: left;
    }
    
    /* WIERSZE W FORMULARZU */
    form[action="member.php"] .box .row {
        padding: 15px;
        background: rgb(15, 15, 15);
        border-bottom: 1px solid rgba(0, 143, 255, 0.1);
    }
    
    form[action="member.php"] .box .row:last-child {
        border-bottom: none;
    }
    
    /* POLA HASŁA I EMAIL - JEDEN POD DRUGIM */
    form[action="member.php"] .box .row .clearfix {
        display: block;
    }
    
    form[action="member.php"] .box .row .clearfix > .left50 {
        width: 100%;
        float: none;
        display: block;
        margin: 0;
        padding: 0;
        margin-bottom: 15px;
    }
    
    form[action="member.php"] .box .row .clearfix > .left50:last-child {
        margin-bottom: 0;
    }
    
    form[action="member.php"] .box .row .clearfix > .left50.pc10r,
    form[action="member.php"] .box .row .clearfix > .left50.pc10l {
        padding: 0;
    }
    
    /* ETYKIETY (LABELS) */
    form[action="member.php"] label,
    form[action="member.php"] .box .row > span {
        display: block;
        color: #fff;
        font-size: 14px;
        margin-bottom: 8px;
        line-height: 1.5;
    }
    
    /* Label dla checkboxów */
    form[action="member.php"] .box .row label {
        display: flex;
        align-items: flex-start;
        cursor: pointer;
        font-size: 14px;
    }
    
    form[action="member.php"] .box .row label[for] {
        display: block;
    }
    
    /* POLA TEKSTOWE (INPUTS) */
    form[action="member.php"] input.textbox,
    form[action="member.php"] input[type="text"],
    form[action="member.php"] input[type="password"] {
        width: 100% !important;
        padding: 12px 15px;
        font-size: 14px;
        box-sizing: border-box;
        border-radius: 5px;
        background: rgba(15, 15, 15, 0.8);
        border: 1px solid rgba(0, 143, 255, 0.3);
        color: #fff;
        margin-top: 0;
        transition: all 0.3s ease;
    }
    
    form[action="member.php"] input.textbox:focus,
    form[action="member.php"] input[type="text"]:focus,
    form[action="member.php"] input[type="password"]:focus {
        border-color: rgba(0, 212, 255, 0.6);
        background: rgba(15, 15, 15, 1);
        outline: none;
    }
    
    /* POLA WYBORU (SELECTS) */
    form[action="member.php"] select {
        width: 100%;
        padding: 12px 15px;
        font-size: 14px;
        box-sizing: border-box;
        border-radius: 5px;
        background: rgba(15, 15, 15, 0.8);
        border: 1px solid rgba(0, 143, 255, 0.3);
        color: #fff;
        margin-top: 0;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    form[action="member.php"] select:focus {
        border-color: rgba(0, 212, 255, 0.6);
        background: rgba(15, 15, 15, 1);
        outline: none;
    }
    
    /* CHECKBOXY */
    form[action="member.php"] input[type="checkbox"] {
        margin-right: 10px;
        margin-top: 2px;
        vertical-align: top;
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        cursor: pointer;
    }
    
    /* CAPTCHA - WERYFIKACJA OBRAZKOWA */
    form[action="member.php"] .ibck {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
    
    form[action="member.php"] .ibck img {
        max-width: 100%;
        height: auto;
        border-radius: 5px;
        border: 1px solid rgba(0, 143, 255, 0.3);
    }
    
    form[action="member.php"] .ibck.vt {
        margin-top: 10px;
        text-align: center;
    }
    
    form[action="member.php"] .ibck.vt input.button {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        margin-top: 10px;
    }
    
    /* PYTANIE ZABEZPIECZAJĄCE */
    form[action="member.php"] #question {
        display: block;
        margin-bottom: 10px;
        font-weight: bold;
        color: #fff;
    }
    
    form[action="member.php"] .clearfix.mt10 > .left60,
    form[action="member.php"] .clearfix.mt10 > .left40 {
        width: 100%;
        float: none;
        display: block;
    }
    
    form[action="member.php"] .clearfix.mt10 > .left60 input {
        width: 100% !important;
    }
    
    /* STATUS PÓL (WALIDACJA) */
    form[action="member.php"] #password_status,
    form[action="member.php"] #email_status,
    form[action="member.php"] #imagestring_status {
        margin-top: 10px;
        padding: 10px;
        border-radius: 5px;
        font-size: 13px;
    }
    
    /* ODSTĘPY */
    form[action="member.php"] .mt10 {
        margin-top: 10px;
    }
    
    form[action="member.php"] .smalltext {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.5;
    }
    
    /* PRZYCISK SUBMIT */
    form[action="member.php"] .row > input[type="submit"],
    form[action="member.php"] input[type="submit"].button,
    form[action="member.php"] input.button[name="regsubmit"] {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
        font-weight: bold;
        color: #fff;
        background: linear-gradient(135deg, 
            rgba(0, 82, 163, 0.9) 0%, 
            rgba(0, 143, 255, 0.8) 50%, 
            rgba(0, 212, 255, 0.7) 100%);
        border: none;
        border-bottom: 3px solid rgba(0, 82, 163, 0.6);
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-sizing: border-box;
        text-transform: uppercase;
        margin-top: 20px;
        box-shadow: 0px 10px 15px 0px rgba(0, 143, 255, 0.3);
    }
    
    form[action="member.php"] input[type="submit"]:hover,
    form[action="member.php"] input[type="submit"]:active {
        background: linear-gradient(155deg, 
            rgba(0, 82, 163, 1) 0%, 
            rgba(0, 143, 255, 0.9) 50%, 
            rgba(0, 212, 255, 0.8) 100%);
        border-bottom-color: rgba(0, 82, 163, 0.8);
        transform: translateY(-2px);
        box-shadow: 0px 12px 20px 0px rgba(0, 143, 255, 0.4);
    }
    
    /* WIERSZ Z PRZYCISKIEM SUBMIT */
    form[action="member.php"] .container > .row {
        padding: 15px;
        background: none;
        border: none;
    }
    
    /* UKRYTE POLA */
    form[action="member.php"] input[type="hidden"] {
        display: none;
    }
    
    /* HONEYPOT - POLA ANTYBOTOWE */
    form[action="member.php"] input[name="regcheck1"],
    form[action="member.php"] input[name="regcheck2"] {
        position: absolute;
        left: -9999px;
        width: 1px;
        height: 1px;
    }
    
    /* SELECT2 - POLE POLECAJĄCEGO */
    form[action="member.php"] .select2-container {
        width: 100% !important;
        margin-top: 10px;
    }
    
    form[action="member.php"] .select2-container .select2-choice {
        padding: 12px 15px;
        font-size: 14px;
        border-radius: 5px;
        background: rgba(15, 15, 15, 0.8);
        border: 1px solid rgba(0, 143, 255, 0.3);
        color: #fff;
        height: auto;
        line-height: 1.5;
    }
}

/* Bardzo małe ekrany - poniżej 700px */

@media screen and (max-width: 700px) {
    
    /* Mniejsze paddingi dla małych ekranów */
    form[action="member.php"] .box .headline {
        padding: 12px;
        font-size: 13px;
    }
    
    form[action="member.php"] .box .row {
        padding: 12px;
    }
    
    form[action="member.php"] .row.clearfix > .left50 {
        padding: 8px;
    }
    
    /* Mniejsze pola input */
    form[action="member.php"] input.textbox,
    form[action="member.php"] input[type="text"],
    form[action="member.php"] input[type="password"],
    form[action="member.php"] select {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* Mniejszy przycisk submit */
    form[action="member.php"] input[type="submit"] {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    /* Captcha - mniejszy obrazek */
    form[action="member.php"] .ibck img {
        max-width: 90%;
    }
}

/* Ekstra małe ekrany - poniżej 550px */

@media screen and (max-width: 550px) {
    
    /* Jeszcze mniejsze paddingi */
    form[action="member.php"] .row.clearfix > .left50 {
        padding: 5px;
    }
    
    form[action="member.php"] .box .row {
        padding: 10px;
    }
    
    /* Kompaktowy layout */
    form[action="member.php"] .box {
        margin-bottom: 15px;
    }
    
    form[action="member.php"] .box .row .clearfix > .left50 {
        margin-bottom: 12px;
    }
}

/* ========================================
   FORMULARZ LOGOWANIA - MOBILE STYLES
   ======================================== */

/* Tablet i Mobile - poniżej 768px */
@media screen and (max-width: 768px) {
    
    /* GŁÓWNY KONTENER FORMULARZA LOGOWANIA - MODAL STYLE */
    form[action*="action=login"],
    form[action*="action=do_login"],
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        float: none;
        clear: both;
        position: relative;
        margin: 20px auto;
        padding: 0 15px;
    }
    
    form[action*="action=login"] .stable,
    form[action*="action=do_login"] .stable,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable {
        margin-top: 0;
        float: none;
        clear: both;
        width: 100%;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        position: relative;
        display: flex;
        flex-direction: column;
        background: rgb(15, 15, 15);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
                    0 0 0 1px rgba(0, 143, 255, 0.2);
    }
    
    /* Belka "Zaloguj" - musi być nad kontenerem */
    form[action*="action=login"] .stable > .headline,
    form[action*="action=do_login"] .stable > .headline,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .headline {
        order: 1;
        width: 100%;
        float: none;
        clear: both;
        position: relative;
        margin: 0;
        padding: 14px 20px;
        font-size: 16px;
        font-weight: bold;
        color: #fff;
        text-align: center;
        background: linear-gradient(135deg, 
            rgba(0, 82, 163, 0.9) 0%, 
            rgba(0, 143, 255, 0.7) 50%, 
            rgba(0, 212, 255, 0.5) 100%);
        border-bottom: 2px solid rgba(0, 212, 255, 0.4);
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        border-left: none;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    form[action*="action=login"] .stable > .headline span,
    form[action*="action=do_login"] .stable > .headline span,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .headline span {
        position: relative;
        z-index: 2;
        display: block;
        text-align: center;
        width: 100%;
    }
    
    /* Animacja shimmer dla belki "Zaloguj" */
    form[action*="action=login"] .stable > .headline::before,
    form[action*="action=do_login"] .stable > .headline::before,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .headline::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(0, 212, 255, 0.1) 50%, 
            transparent 100%);
        animation: shimmer 4s infinite;
        z-index: 1;
        pointer-events: none;
        will-change: left;
    }
    
    /* Kontener z polami formularza - musi być pod belką */
    form[action*="action=login"] .stable > .container,
    form[action*="action=do_login"] .stable > .container,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container {
        order: 2;
        padding: 25px;
        float: none;
        clear: both;
        width: 100%;
        position: relative;
        display: block;
        background: rgb(15, 15, 15);
    }
    
    /* Wyłącz floaty dla elementów w formularzu logowania */
    form[action*="action=login"] .float_left,
    form[action*="action=do_login"] .float_left,
    form[action*="action=login"] .float_right,
    form[action*="action=do_login"] .float_right {
        float: none;
        display: block;
        width: 100%;
    }
    
    /* SEKCJE FORMULARZA (BOXY) */
    form[action*="action=login"] .box,
    form[action*="action=do_login"] .box {
        margin-bottom: 20px;
        border-radius: 8px;
        overflow: hidden;
        background: rgb(15, 15, 15);
    }
    
    /* NAGŁÓWKI SEKCJI */
    form[action*="action=login"] .box .headline,
    form[action*="action=do_login"] .box .headline {
        padding: 15px;
        font-size: 14px;
        font-weight: bold;
        color: #fff;
        background: linear-gradient(135deg, 
            rgba(0, 82, 163, 0.8) 0%, 
            rgba(0, 143, 255, 0.6) 50%, 
            rgba(0, 212, 255, 0.4) 100%);
        border-bottom: 2px solid rgba(0, 212, 255, 0.3);
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        border-left: none;
        position: relative;
        overflow: hidden;
    }
    
    /* Tekst w nagłówku */
    form[action*="action=login"] .box .headline span,
    form[action*="action=do_login"] .box .headline span {
        position: relative;
        z-index: 2;
        display: block;
    }
    
    /* Animacja shimmer dla nagłówków - delikatniejsza */
    form[action*="action=login"] .box .headline::before,
    form[action*="action=do_login"] .box .headline::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(0, 212, 255, 0.1) 50%, 
            transparent 100%);
        animation: shimmer 4s infinite;
        z-index: 1;
        pointer-events: none;
        will-change: left;
    }
    
    /* WIERSZE W FORMULARZU - MODAL STYLE */
    form[action*="action=login"] .stable > .container > .row,
    form[action*="action=do_login"] .stable > .container > .row,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container > .row {
        padding: 20px 0;
        background: transparent;
        border-bottom: 1px solid rgba(0, 143, 255, 0.15);
        margin-bottom: 0;
    }
    
    form[action*="action=login"] .stable > .container > .row:last-child,
    form[action*="action=do_login"] .stable > .container > .row:last-child,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container > .row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    /* WIERSZE W FORMULARZU - dla .box (jeśli istnieją) */
    form[action*="action=login"] .box .row,
    form[action*="action=do_login"] .box .row {
        padding: 15px;
        background: rgb(15, 15, 15);
        border-bottom: 1px solid rgba(0, 143, 255, 0.1);
    }
    
    form[action*="action=login"] .box .row:last-child,
    form[action*="action=do_login"] .box .row:last-child {
        border-bottom: none;
    }
    
    /* UKŁAD KOLUMN -> POJEDYNCZA KOLUMNA - MODAL STYLE */
    form[action*="action=login"] .stable > .container .row.clearfix,
    form[action*="action=do_login"] .stable > .container .row.clearfix,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container .row.clearfix {
        display: flex;
        flex-direction: column;
        overflow: visible;
        clear: both;
        width: 100%;
        float: none;
        gap: 12px;
    }
    
    form[action*="action=login"] .stable > .container .row.clearfix > .left20,
    form[action*="action=do_login"] .stable > .container .row.clearfix > .left20,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container .row.clearfix > .left20,
    form[action*="action=login"] .stable > .container .row.clearfix > .left80,
    form[action*="action=do_login"] .stable > .container .row.clearfix > .left80,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container .row.clearfix > .left80,
    form[action*="action=login"] .stable > .container .row.clearfix > .left50,
    form[action*="action=do_login"] .stable > .container .row.clearfix > .left50,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container .row.clearfix > .left50,
    form[action*="action=login"] .stable > .container .row.clearfix > .left,
    form[action*="action=do_login"] .stable > .container .row.clearfix > .left,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container .row.clearfix > .left,
    form[action*="action=login"] .stable > .container .row.clearfix > .right,
    form[action*="action=do_login"] .stable > .container .row.clearfix > .right,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container .row.clearfix > .right {
        width: 100%;
        float: none;
        display: block;
        margin: 0;
        padding: 0;
        clear: both;
    }
    
    /* UKŁAD KOLUMN -> POJEDYNCZA KOLUMNA - dla .box */
    form[action*="action=login"] .row.clearfix,
    form[action*="action=do_login"] .row.clearfix {
        display: block;
        overflow: visible;
        clear: both;
        width: 100%;
        float: none;
    }
    
    form[action*="action=login"] .row.clearfix > .left50,
    form[action*="action=do_login"] .row.clearfix > .left50,
    form[action*="action=login"] .row.clearfix > .left,
    form[action*="action=do_login"] .row.clearfix > .left,
    form[action*="action=login"] .row.clearfix > .right,
    form[action*="action=do_login"] .row.clearfix > .right {
        width: 100%;
        float: none;
        display: block;
        margin: 0;
        padding: 0;
        margin-bottom: 15px;
        clear: both;
    }
    
    form[action*="action=login"] .row.clearfix > .left50:last-child,
    form[action*="action=do_login"] .row.clearfix > .left50:last-child,
    form[action*="action=login"] .row.clearfix > .left:last-child,
    form[action*="action=do_login"] .row.clearfix > .left:last-child,
    form[action*="action=login"] .row.clearfix > .right:last-child,
    form[action*="action=do_login"] .row.clearfix > .right:last-child {
        margin-bottom: 0;
    }
    
    /* ETYKIETY (LABELS) - MODAL STYLE - dla pól formularza (nie checkboxów) */
    form[action*="action=login"] .stable > .container label[for]:not(:has(input[type="checkbox"])),
    form[action*="action=do_login"] .stable > .container label[for]:not(:has(input[type="checkbox"])),
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container label[for]:not(:has(input[type="checkbox"])),
    form[action*="action=login"] .stable > .container .row > span,
    form[action*="action=do_login"] .stable > .container .row > span,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container .row > span {
        display: block;
        color: #fff;
        font-size: 16px;
        margin-bottom: 12px;
        line-height: 1.5;
        font-weight: 500;
    }
    
    /* ETYKIETY (LABELS) - dla .box */
    form[action*="action=login"] label,
    form[action*="action=do_login"] label,
    form[action*="action=login"] .box .row > span,
    form[action*="action=do_login"] .box .row > span {
        display: block;
        color: #fff;
        font-size: 14px;
        margin-bottom: 8px;
        line-height: 1.5;
    }
    
    /* Label dla checkboxów - dla .box */
    form[action*="action=login"] .box .row label,
    form[action*="action=do_login"] .box .row label {
        display: flex;
        align-items: flex-start;
        cursor: pointer;
        font-size: 14px;
    }
    
    form[action*="action=login"] .box .row label[for],
    form[action*="action=do_login"] .box .row label[for] {
        display: block;
    }
    
    /* POLA TEKSTOWE (INPUTS) - MODAL STYLE */
    form[action*="action=login"] .stable > .container input.textbox,
    form[action*="action=do_login"] .stable > .container input.textbox,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container input.textbox,
    form[action*="action=login"] .stable > .container input[type="text"],
    form[action*="action=do_login"] .stable > .container input[type="text"],
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container input[type="text"],
    form[action*="action=login"] .stable > .container input[type="password"],
    form[action*="action=do_login"] .stable > .container input[type="password"],
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container input[type="password"] {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
        box-sizing: border-box;
        border-radius: 8px;
        background: rgba(20, 20, 20, 0.9);
        border: 2px solid rgba(0, 143, 255, 0.4);
        color: #fff;
        margin-top: 0;
        transition: all 0.3s ease;
    }
    
    form[action*="action=login"] .stable > .container input.textbox:focus,
    form[action*="action=do_login"] .stable > .container input.textbox:focus,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container input.textbox:focus,
    form[action*="action=login"] .stable > .container input[type="text"]:focus,
    form[action*="action=do_login"] .stable > .container input[type="text"]:focus,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container input[type="text"]:focus,
    form[action*="action=login"] .stable > .container input[type="password"]:focus,
    form[action*="action=do_login"] .stable > .container input[type="password"]:focus,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container input[type="password"]:focus {
        border-color: rgba(0, 212, 255, 0.7);
        background: rgba(25, 25, 25, 1);
        outline: none;
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    }
    
    /* POLA TEKSTOWE (INPUTS) - dla .box */
    form[action*="action=login"] input.textbox,
    form[action*="action=do_login"] input.textbox,
    form[action*="action=login"] input[type="text"],
    form[action*="action=do_login"] input[type="text"],
    form[action*="action=login"] input[type="password"],
    form[action*="action=do_login"] input[type="password"] {
        width: 100%;
        padding: 12px 15px;
        font-size: 14px;
        box-sizing: border-box;
        border-radius: 5px;
        background: rgba(15, 15, 15, 0.8);
        border: 1px solid rgba(0, 143, 255, 0.3);
        color: #fff;
        margin-top: 0;
        transition: all 0.3s ease;
    }
    
    form[action*="action=login"] input.textbox:focus,
    form[action*="action=do_login"] input.textbox:focus,
    form[action*="action=login"] input[type="text"]:focus,
    form[action*="action=do_login"] input[type="text"]:focus,
    form[action*="action=login"] input[type="password"]:focus,
    form[action*="action=do_login"] input[type="password"]:focus {
        border-color: rgba(0, 212, 255, 0.6);
        background: rgba(15, 15, 15, 1);
        outline: none;
    }
    
    /* CHECKBOXY - MODAL STYLE */
    form[action*="action=login"] .stable > .container input[type="checkbox"],
    form[action*="action=do_login"] .stable > .container input[type="checkbox"],
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container input[type="checkbox"] {
        margin-right: 12px;
        margin-top: 3px;
        vertical-align: top;
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        cursor: pointer;
    }
    
    /* Label dla checkboxów - MODAL STYLE (tylko te z checkboxem) */
    form[action*="action=login"] .stable > .container label:has(input[type="checkbox"]),
    form[action*="action=do_login"] .stable > .container label:has(input[type="checkbox"]),
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container label:has(input[type="checkbox"]) {
        display: flex;
        align-items: center;
        cursor: pointer;
        font-size: 15px;
        margin-top: 10px;
    }
    
    /* LINKI (np. "Nie pamiętam hasła") - MODAL STYLE */
    form[action*="action=login"] .stable > .container .smalltext a,
    form[action*="action=do_login"] .stable > .container .smalltext a,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container .smalltext a,
    form[action*="action=login"] .stable > .container a,
    form[action*="action=do_login"] .stable > .container a,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container a {
        color: rgba(0, 212, 255, 0.9);
        text-decoration: none;
        font-size: 14px;
        transition: all 0.3s ease;
    }
    
    form[action*="action=login"] .stable > .container .smalltext a:hover,
    form[action*="action=do_login"] .stable > .container .smalltext a:hover,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container .smalltext a:hover,
    form[action*="action=login"] .stable > .container a:hover,
    form[action*="action=do_login"] .stable > .container a:hover,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container a:hover {
        color: rgba(0, 212, 255, 1);
        text-decoration: underline;
    }
    
    /* CHECKBOXY - dla .box */
    form[action*="action=login"] input[type="checkbox"],
    form[action*="action=do_login"] input[type="checkbox"] {
        margin-right: 10px;
        margin-top: 2px;
        vertical-align: top;
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        cursor: pointer;
    }
    
    /* CAPTCHA - WERYFIKACJA OBRAZKOWA */
    form[action*="action=login"] .ibck,
    form[action*="action=do_login"] .ibck {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
    
    form[action*="action=login"] .ibck img,
    form[action*="action=do_login"] .ibck img {
        max-width: 100%;
        height: auto;
        border-radius: 5px;
        border: 1px solid rgba(0, 143, 255, 0.3);
    }
    
    /* LINKI (np. "Nie pamiętam hasła") - dla .box */
    form[action*="action=login"] .smalltext a,
    form[action*="action=do_login"] .smalltext a {
        color: rgba(0, 212, 255, 0.8);
        text-decoration: none;
        font-size: 12px;
    }
    
    form[action*="action=login"] .smalltext a:hover,
    form[action*="action=do_login"] .smalltext a:hover {
        color: rgba(0, 212, 255, 1);
        text-decoration: underline;
    }
    
    /* PRZYCISK SUBMIT - MODAL STYLE */
    form[action*="action=login"] .stable > .container .row > input[type="submit"],
    form[action*="action=do_login"] .stable > .container .row > input[type="submit"],
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container .row > input[type="submit"],
    form[action*="action=login"] .stable > .container input[type="submit"].button,
    form[action*="action=do_login"] .stable > .container input[type="submit"].button,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container input[type="submit"].button,
    form[action*="action=login"] .stable > .container input.button[name="login"],
    form[action*="action=do_login"] .stable > .container input.button[name="login"],
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container input.button[name="login"] {
        width: 100%;
        padding: 16px 22px;
        font-size: 17px;
        font-weight: bold;
        color: #fff;
        background: linear-gradient(135deg, 
            rgba(0, 82, 163, 0.95) 0%, 
            rgba(0, 143, 255, 0.85) 50%, 
            rgba(0, 212, 255, 0.75) 100%);
        border: none;
        border-bottom: 3px solid rgba(0, 82, 163, 0.7);
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-sizing: border-box;
        text-transform: uppercase;
        margin-top: 20px;
        box-shadow: 0px 10px 20px 0px rgba(0, 143, 255, 0.35),
                    0px 3px 8px 0px rgba(0, 0, 0, 0.25);
        letter-spacing: 0.5px;
    }
    
    form[action*="action=login"] .stable > .container input[type="submit"]:hover,
    form[action*="action=do_login"] .stable > .container input[type="submit"]:hover,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container input[type="submit"]:hover,
    form[action*="action=login"] .stable > .container input[type="submit"]:active,
    form[action*="action=do_login"] .stable > .container input[type="submit"]:active,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container input[type="submit"]:active {
        background: linear-gradient(155deg, 
            rgba(0, 82, 163, 1) 0%, 
            rgba(0, 143, 255, 0.95) 50%, 
            rgba(0, 212, 255, 0.85) 100%);
        border-bottom-color: rgba(0, 82, 163, 0.9);
        transform: translateY(-2px);
        box-shadow: 0px 15px 30px 0px rgba(0, 143, 255, 0.5),
                    0px 6px 15px 0px rgba(0, 0, 0, 0.4);
    }
    
    /* PRZYCISK SUBMIT - dla .box */
    form[action*="action=login"] .row > input[type="submit"],
    form[action*="action=do_login"] .row > input[type="submit"],
    form[action*="action=login"] input[type="submit"].button,
    form[action*="action=do_login"] input[type="submit"].button,
    form[action*="action=login"] input.button[name="login"],
    form[action*="action=do_login"] input.button[name="login"] {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
        font-weight: bold;
        color: #fff;
        background: linear-gradient(135deg, 
            rgba(0, 82, 163, 0.9) 0%, 
            rgba(0, 143, 255, 0.8) 50%, 
            rgba(0, 212, 255, 0.7) 100%);
        border: none;
        border-bottom: 3px solid rgba(0, 82, 163, 0.6);
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-sizing: border-box;
        text-transform: uppercase;
        margin-top: 20px;
        box-shadow: 0px 10px 15px 0px rgba(0, 143, 255, 0.3);
    }
    
    form[action*="action=login"] input[type="submit"]:hover,
    form[action*="action=do_login"] input[type="submit"]:hover,
    form[action*="action=login"] input[type="submit"]:active,
    form[action*="action=do_login"] input[type="submit"]:active {
        background: linear-gradient(155deg, 
            rgba(0, 82, 163, 1) 0%, 
            rgba(0, 143, 255, 0.9) 50%, 
            rgba(0, 212, 255, 0.8) 100%);
        border-bottom-color: rgba(0, 82, 163, 0.8);
        transform: translateY(-2px);
        box-shadow: 0px 12px 20px 0px rgba(0, 143, 255, 0.4);
    }
    
    /* UKRYTE POLA */
    form[action*="action=login"] input[type="hidden"],
    form[action*="action=do_login"] input[type="hidden"] {
        display: none;
    }
    
    /* ODSTĘPY */
    form[action*="action=login"] .mt10,
    form[action*="action=do_login"] .mt10 {
        margin-top: 10px;
    }
    
    /* MAŁE TEKSTY - MODAL STYLE */
    form[action*="action=login"] .stable > .container .smalltext,
    form[action*="action=do_login"] .stable > .container .smalltext,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container .smalltext {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.75);
        line-height: 1.6;
        margin-top: 8px;
    }
    
    /* MAŁE TEKSTY - dla .box */
    form[action*="action=login"] .smalltext,
    form[action*="action=do_login"] .smalltext {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.5;
    }
}

/* Bardzo małe ekrany - poniżej 700px */
@media screen and (max-width: 700px) {
    
    /* Modal logowania - mniejsze marginesy boczne */
    form[action*="action=login"],
    form[action*="action=do_login"],
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) {
        padding: 0 10px;
    }
    
    form[action*="action=login"] .stable,
    form[action*="action=do_login"] .stable,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable {
        max-width: 100%;
        border-radius: 10px;
    }
    
    /* Belka "Zaloguj" - mniejszy padding */
    form[action*="action=login"] .stable > .headline,
    form[action*="action=do_login"] .stable > .headline,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .headline {
        padding: 18px;
        font-size: 17px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
    
    /* Kontener - mniejszy padding */
    form[action*="action=login"] .stable > .container,
    form[action*="action=do_login"] .stable > .container,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container {
        padding: 20px;
    }
    
    /* Wiersze - mniejszy padding */
    form[action*="action=login"] .stable > .container > .row,
    form[action*="action=do_login"] .stable > .container > .row,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container > .row {
        padding: 18px 0;
    }
    
    /* Pola input - zachowaj duży rozmiar */
    form[action*="action=login"] .stable > .container input.textbox,
    form[action*="action=do_login"] .stable > .container input.textbox,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container input.textbox,
    form[action*="action=login"] .stable > .container input[type="text"],
    form[action*="action=do_login"] .stable > .container input[type="text"],
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container input[type="text"],
    form[action*="action=login"] .stable > .container input[type="password"],
    form[action*="action=do_login"] .stable > .container input[type="password"],
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container input[type="password"] {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    /* Przycisk submit - zachowaj duży rozmiar */
    form[action*="action=login"] .stable > .container input[type="submit"],
    form[action*="action=do_login"] .stable > .container input[type="submit"],
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container input[type="submit"] {
        padding: 16px 22px;
        font-size: 17px;
    }
    
    /* Mniejsze paddingi dla małych ekranów - dla .box */
    form[action*="action=login"] .box .headline,
    form[action*="action=do_login"] .box .headline {
        padding: 12px;
        font-size: 13px;
    }
    
    form[action*="action=login"] .box .row,
    form[action*="action=do_login"] .box .row {
        padding: 12px;
    }
    
    /* Mniejsze pola input - dla .box */
    form[action*="action=login"] input.textbox,
    form[action*="action=do_login"] input.textbox,
    form[action*="action=login"] input[type="text"],
    form[action*="action=do_login"] input[type="text"],
    form[action*="action=login"] input[type="password"],
    form[action*="action=do_login"] input[type="password"] {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* Mniejszy przycisk submit - dla .box */
    form[action*="action=login"] input[type="submit"],
    form[action*="action=do_login"] input[type="submit"] {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    /* Captcha - mniejszy obrazek */
    form[action*="action=login"] .ibck img,
    form[action*="action=do_login"] .ibck img {
        max-width: 90%;
    }
}

/* Ekstra małe ekrany - poniżej 550px */
@media screen and (max-width: 550px) {
    
    /* Modal logowania - minimalne marginesy boczne */
    form[action*="action=login"],
    form[action*="action=do_login"],
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) {
        padding: 0 5px;
    }
    
    /* Belka "Zaloguj" - mniejszy padding */
    form[action*="action=login"] .stable > .headline,
    form[action*="action=do_login"] .stable > .headline,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .headline {
        padding: 15px;
        font-size: 16px;
    }
    
    /* Kontener - mniejszy padding */
    form[action*="action=login"] .stable > .container,
    form[action*="action=do_login"] .stable > .container,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container {
        padding: 15px;
    }
    
    /* Wiersze - mniejszy padding */
    form[action*="action=login"] .stable > .container > .row,
    form[action*="action=do_login"] .stable > .container > .row,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container > .row {
        padding: 15px 0;
    }
    
    /* Pola input - zachowaj czytelność */
    form[action*="action=login"] .stable > .container input.textbox,
    form[action*="action=do_login"] .stable > .container input.textbox,
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container input.textbox,
    form[action*="action=login"] .stable > .container input[type="text"],
    form[action*="action=do_login"] .stable > .container input[type="text"],
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container input[type="text"],
    form[action*="action=login"] .stable > .container input[type="password"],
    form[action*="action=do_login"] .stable > .container input[type="password"],
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container input[type="password"] {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    /* Przycisk submit */
    form[action*="action=login"] .stable > .container input[type="submit"],
    form[action*="action=do_login"] .stable > .container input[type="submit"],
    form[action="member.php"]:has(input[name="username"]):has(input[name="password"]) .stable > .container input[type="submit"] {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    /* Jeszcze mniejsze paddingi - dla .box */
    form[action*="action=login"] .box .row,
    form[action*="action=do_login"] .box .row {
        padding: 10px;
    }
    
    /* Kompaktowy layout - dla .box */
    form[action*="action=login"] .box,
    form[action*="action=do_login"] .box {
        margin-bottom: 15px;
    }
    
    /* ==========================================
       BARDZO MAŁE EKRANY - POSTY/WĄTKI (< 550px)
       ========================================== */
    
    /* Avatar - dostosowany do bardzo małych ekranów */
    .thread-table .post-container .author-info .avatar {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }
    
    .thread-table .post-container .author-info .avatar img {
        width: 100%;
        height: 100%;
        max-width: 60px;
        max-height: 60px;
    }
    
    /* Mniej paddingu */
    .thread-table .post-container .author-info {
        padding-top: 15px;
        min-height: auto;
    }
    
    /* Nazwa użytkownika - trochę mniejsza */
    .thread-table .post-container .author-info .username {
        font-size: 14px;
    }
    
    /* Tytuł - mniejszy */
    .thread-table .post-container .author-info .title {
        font-size: 11px;
    }
    
    /* Statystyki - mniejsze */
    .thread-table .post-container .author-info .inline-stats > div {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    /* Treść posta - trochę mniejszy font */
    .thread-table .post-container .post-info .content.post_body {
        font-size: 13px;
    }
    
    /* Przyciski - bardziej kompaktowe */
    .thread-table .post-controls a,
    .thread-table .post-controls .button {
        padding: 6px 10px;
        font-size: 10px;
        min-height: 28px;
    }
    
    /* Gap między przyciskami - mniejszy */
    .thread-table .post-controls {
        gap: 4px;
    }
    
    /* ==========================================
       PRYWATNE WIADOMOŚCI - MOBILE
       ========================================== */
    
    /* Główny kontener - zapobieganie overflow */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    main {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .wrapper {
        max-width: 100%;
        box-sizing: border-box;
        width: 100%;
    }
    
    /* Kontener UCP - układ pionowy */
    .ucp-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        clear: both;
    }
    
    .ucp-container.clearfix::before,
    .ucp-container.clearfix::after {
        display: none;
        content: none;
    }
    
    .ucp-container .left {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
        order: 2;
        float: none !important;
        box-sizing: border-box;
        clear: both;
    }
    
    .ucp-container .right {
        width: 100% !important;
        max-width: 100% !important;
        order: 1;
        float: none !important;
        box-sizing: border-box;
        clear: both;
    }
    
    /* Menu UCP - responsywne */
    .ucp-menu {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .ucp-menu ul {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 5px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .ucp-menu li {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        width: 100%;
    }
    
    .ucp-menu > ul > li {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        min-width: 0 !important;
    }
    
    .ucp-menu a {
        display: block;
        padding: 10px;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }
    
    .ucp-menu .ucp-submenu {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .ucp-menu .ucp-submenu .dropdown-link {
        width: 100% !important;
        max-width: 100% !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        display: block;
        box-sizing: border-box;
    }
    
    .ucp-menu .ucp-submenu .dropdown {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Nagłówek z wyszukiwaniem */
    .stable .headline {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .stable .headline .right {
        width: 100%;
        display: flex;
        gap: 5px;
    }
    
    .stable .headline .right input[type="text"] {
        flex: 1 1 auto;
        min-width: 0;
    }
    
    .stable .headline .right input[type="submit"],
    .stable .headline .right a {
        flex-shrink: 0;
    }
    
    /* Kontener z wiadomościami */
    .stable {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .stable .container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Nagłówek tabeli - ukryj na mobile */
    .stable .row.och.np {
        display: none;
    }
    
    /* Wiersze z wiadomościami - układ pionowy */
    .stable .row:not(.och) {
        display: flex;
        flex-direction: column;
        padding: 15px;
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .stable .row .title,
    .stable .row .username,
    .stable .row .dateline,
    .stable .row .manage {
        width: 100%;
        display: block;
        margin-bottom: 8px;
    }
    
    .stable .row .title {
        font-weight: bold;
        font-size: 14px;
        word-wrap: break-word;
    }
    
    .stable .row .username {
        font-size: 12px;
        color: #999;
    }
    
    .stable .row .dateline {
        font-size: 11px;
        color: #777;
    }
    
    .stable .row .manage {
        margin-top: 10px;
    }
    
    /* Akcje na dole - układ pionowy */
    .stable .row.clearfix {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .stable .row.clearfix .right {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .stable .row.clearfix .right input[type="submit"],
    .stable .row.clearfix .right select {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Skocz do folderu */
    .ms-stuff {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        margin-top: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .ms-stuff.clearfix::before,
    .ms-stuff.clearfix::after {
        display: none;
    }
    
    .ms-stuff .left,
    .ms-stuff .right {
        width: 100%;
        max-width: 100%;
        float: none;
        box-sizing: border-box;
    }
    
    .ms-stuff .right {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .ms-stuff select,
    .ms-stuff input[type="submit"] {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Formularz wysyłania wiadomości */
    .private_send table,
    .private_send tbody,
    .private_send tr {
        display: block;
        width: 100%;
    }
    
    .private_send td {
        display: block;
        width: 100%;
        padding: 10px 0;
        box-sizing: border-box;
    }
    
    .private_send input[type="text"],
    .private_send textarea,
    .private_send select {
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    /* Formularz wyszukiwania */
    .private_advanced_search table,
    .private_advanced_search tbody,
    .private_advanced_search tr {
        display: block;
        width: 100%;
    }
    
    .private_advanced_search td {
        display: block;
        width: 100%;
        padding: 10px 0;
        box-sizing: border-box;
    }
    
    .private_advanced_search input[type="text"],
    .private_advanced_search select {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* ========================================
       FORMULARZ EDYCJI PROFILU - MOBILE STYLES
       ======================================== */
    
    /* GŁÓWNY KONTENER FORMULARZA EDYCJI PROFILU */
    form[action="usercp.php"] .stable {
        margin-top: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    form[action="usercp.php"] .stable .container {
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* UKŁAD KOLUMN -> POJEDYNCZA KOLUMNA */
    form[action="usercp.php"] .row.clearfix {
        display: block;
        overflow: visible;
        width: 100%;
        box-sizing: border-box;
    }
    
    form[action="usercp.php"] .row.clearfix > .left50 {
        width: 100% !important;
        float: none;
        display: block;
        margin: 0;
        padding: 10px;
        box-sizing: border-box;
    }
    
    form[action="usercp.php"] .row.clearfix > .left50.p20 {
        padding: 10px;
    }
    
    /* SEKCJE FORMULARZA (BOXY) */
    form[action="usercp.php"] .box {
        margin-bottom: 20px;
        border-radius: 8px;
        overflow: hidden;
        background: rgb(15, 15, 15);
        width: 100%;
        box-sizing: border-box;
    }
    
    form[action="usercp.php"] .box:last-child {
        margin-bottom: 0;
    }
    
    /* NAGŁÓWKI SEKCJI */
    form[action="usercp.php"] .box .headline {
        padding: 15px;
        font-size: 14px;
        font-weight: bold;
        color: #fff;
        background: linear-gradient(135deg, 
            rgba(0, 82, 163, 0.8) 0%, 
            rgba(0, 143, 255, 0.6) 50%, 
            rgba(0, 212, 255, 0.4) 100%);
        border-bottom: 2px solid rgba(0, 212, 255, 0.3);
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        border-left: none;
        position: relative;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Tekst w nagłówku - upewniamy się, że jest widoczny */
    form[action="usercp.php"] .box .headline span {
        position: relative;
        z-index: 2;
        display: block;
    }
    
    /* Animacja shimmer dla nagłówków */
    form[action="usercp.php"] .box .headline::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(0, 212, 255, 0.1) 50%, 
            transparent 100%);
        animation: shimmer 4s infinite;
        z-index: 1;
        pointer-events: none;
        will-change: left;
    }
    
    @keyframes shimmer {
        0% { left: -100%; }
        100% { left: 200%; }
    }
    
    /* WIERSZE W FORMULARZU */
    form[action="usercp.php"] .box .row {
        padding: 15px;
        background: rgb(15, 15, 15);
        border-bottom: 1px solid rgba(0, 143, 255, 0.1);
        width: 100%;
        box-sizing: border-box;
    }
    
    form[action="usercp.php"] .box .row:last-child {
        border-bottom: none;
    }
    
    /* POLA W JEDNYM WIERSZU -> JEDEN POD DRUGIM */
    form[action="usercp.php"] .box .row .clearfix {
        display: block;
        width: 100%;
    }
    
    form[action="usercp.php"] .box .row .clearfix > .left50 {
        width: 100% !important;
        float: none;
        display: block;
        margin: 0;
        padding: 0;
        margin-bottom: 15px;
        box-sizing: border-box;
    }
    
    form[action="usercp.php"] .box .row .clearfix > .left50:last-child {
        margin-bottom: 0;
    }
    
    form[action="usercp.php"] .box .row .clearfix > .left50.pc10r,
    form[action="usercp.php"] .box .row .clearfix > .left50.pc10l {
        padding: 0;
    }
    
    /* ETYKIETY (LABELS) */
    form[action="usercp.php"] label,
    form[action="usercp.php"] .box .row > span {
        display: block;
        color: #fff;
        font-size: 14px;
        margin-bottom: 8px;
        line-height: 1.5;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Label dla checkboxów i radio */
    form[action="usercp.php"] .box .row label:has(input[type="checkbox"]),
    form[action="usercp.php"] .box .row label:has(input[type="radio"]) {
        display: flex;
        align-items: flex-start;
        cursor: pointer;
        font-size: 14px;
        width: 100%;
    }
    
    /* POLA TEKSTOWE (INPUTS) */
    form[action="usercp.php"] input.textbox,
    form[action="usercp.php"] input[type="text"],
    form[action="usercp.php"] input[type="password"],
    form[action="usercp.php"] input[type="email"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 14px;
        box-sizing: border-box;
        border-radius: 5px;
        background: rgba(15, 15, 15, 0.8);
        border: 1px solid rgba(0, 143, 255, 0.3);
        color: #fff;
        margin-top: 0;
        transition: all 0.3s ease;
    }
    
    form[action="usercp.php"] input.textbox:focus,
    form[action="usercp.php"] input[type="text"]:focus,
    form[action="usercp.php"] input[type="password"]:focus,
    form[action="usercp.php"] input[type="email"]:focus {
        border-color: rgba(0, 212, 255, 0.6);
        background: rgba(15, 15, 15, 1);
        outline: none;
    }
    
    /* POLA WYBORU (SELECTS) */
    form[action="usercp.php"] select,
    form[action="usercp.php"] select.ibck {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 14px;
        box-sizing: border-box;
        border-radius: 5px;
        background: rgba(15, 15, 15, 0.8);
        border: 1px solid rgba(0, 143, 255, 0.3);
        color: #fff;
        margin-top: 0;
        margin-bottom: 0;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    form[action="usercp.php"] select:focus {
        border-color: rgba(0, 212, 255, 0.6);
        background: rgba(15, 15, 15, 1);
        outline: none;
    }
    
    /* SELECTY DATA URODZENIA - W JEDNYM WIERSZU */
    form[action="usercp.php"] .box .row:has(select[name="bday1"]) {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    form[action="usercp.php"] .box .row:has(select[name="bday1"]) > span {
        width: 100%;
        margin-bottom: 8px;
    }
    
    /* Kontener dla selectów daty urodzenia */
    form[action="usercp.php"] .box .row:has(select[name="bday1"]) > *:not(span) {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    
    form[action="usercp.php"] select[name="bday1"],
    form[action="usercp.php"] select[name="bday2"] {
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
        max-width: calc(50% - 4px);
    }
    
    form[action="usercp.php"] input[name="bday3"] {
        flex: 1 1 100%;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* SELECTY DATA POWROTU (AWAY) - W JEDNYM WIERSZU */
    form[action="usercp.php"] .box .row:has(select[name="awayday"]) {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    form[action="usercp.php"] .box .row:has(select[name="awayday"]) > span {
        width: 100%;
        margin-bottom: 8px;
    }
    
    /* Kontener dla selectów daty powrotu */
    form[action="usercp.php"] .box .row:has(select[name="awayday"]) > *:not(span) {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    
    form[action="usercp.php"] select[name="awayday"],
    form[action="usercp.php"] select[name="awaymonth"] {
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
        max-width: calc(50% - 4px);
    }
    
    form[action="usercp.php"] input[name="awayyear"] {
        flex: 1 1 100%;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* CHECKBOXY I RADIO */
    form[action="usercp.php"] input[type="checkbox"],
    form[action="usercp.php"] input[type="radio"] {
        margin-right: 10px;
        margin-top: 2px;
        vertical-align: top;
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        cursor: pointer;
    }
    
    /* TEXTAREA */
    form[action="usercp.php"] textarea {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 14px;
        box-sizing: border-box;
        border-radius: 5px;
        background: rgba(15, 15, 15, 0.8);
        border: 1px solid rgba(0, 143, 255, 0.3);
        color: #fff;
        margin-top: 0;
        transition: all 0.3s ease;
        min-height: 120px;
        resize: vertical;
    }
    
    form[action="usercp.php"] textarea:focus {
        border-color: rgba(0, 212, 255, 0.6);
        background: rgba(15, 15, 15, 1);
        outline: none;
    }
    
    /* MAŁE TEKSTY (OPISY) */
    form[action="usercp.php"] .smalltext {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.5;
        margin-top: 5px;
        display: block;
    }
    
    form[action="usercp.php"] .box .row .m10 {
        margin-top: 10px;
        margin-bottom: 0;
    }
    
    form[action="usercp.php"] .box .row .mt10 {
        margin-top: 10px;
    }
    
    /* ODSTĘPY */
    form[action="usercp.php"] .mt10 {
        margin-top: 10px;
    }
    
    /* PRZYCISK SUBMIT */
    form[action="usercp.php"] .row > input[type="submit"],
    form[action="usercp.php"] input[type="submit"].button,
    form[action="usercp.php"] input.button[name="regsubmit"] {
        width: 100%;
        max-width: 100%;
        padding: 15px 20px;
        font-size: 16px;
        font-weight: bold;
        color: #fff;
        background: linear-gradient(135deg, 
            rgba(0, 82, 163, 0.9) 0%, 
            rgba(0, 143, 255, 0.8) 50%, 
            rgba(0, 212, 255, 0.7) 100%);
        border: none;
        border-bottom: 3px solid rgba(0, 82, 163, 0.6);
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-sizing: border-box;
        text-transform: uppercase;
        margin-top: 20px;
        box-shadow: 0px 10px 15px 0px rgba(0, 143, 255, 0.3);
    }
    
    form[action="usercp.php"] input[type="submit"]:hover,
    form[action="usercp.php"] input[type="submit"]:active {
        background: linear-gradient(155deg, 
            rgba(0, 82, 163, 1) 0%, 
            rgba(0, 143, 255, 0.9) 50%, 
            rgba(0, 212, 255, 0.8) 100%);
        border-bottom-color: rgba(0, 82, 163, 0.8);
        transform: translateY(-2px);
        box-shadow: 0px 12px 20px 0px rgba(0, 143, 255, 0.4);
    }
    
    /* WIERSZ Z PRZYCISKIEM SUBMIT */
    form[action="usercp.php"] .stable > .row {
        padding: 15px;
        background: none;
        border: none;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* UKRYTE POLA */
    form[action="usercp.php"] input[type="hidden"] {
        display: none;
    }
    
    /* LINKI W OPISACH */
    form[action="usercp.php"] .box .row span a {
        color: rgba(0, 212, 255, 0.8);
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    form[action="usercp.php"] .box .row span a:hover {
        color: rgba(0, 212, 255, 1);
        text-decoration: underline;
    }
}

/* Bardzo małe ekrany - poniżej 700px */
@media screen and (max-width: 700px) {
    
    /* Mniejsze paddingi dla małych ekranów */
    form[action="usercp.php"] .box .headline {
        padding: 12px;
        font-size: 13px;
    }
    
    form[action="usercp.php"] .box .row {
        padding: 12px;
    }
    
    form[action="usercp.php"] .row.clearfix > .left50 {
        padding: 8px;
    }
    
    /* Mniejsze pola input */
    form[action="usercp.php"] input.textbox,
    form[action="usercp.php"] input[type="text"],
    form[action="usercp.php"] input[type="password"],
    form[action="usercp.php"] input[type="email"],
    form[action="usercp.php"] select,
    form[action="usercp.php"] textarea {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* Mniejszy przycisk submit */
    form[action="usercp.php"] input[type="submit"] {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Ekstra małe ekrany - poniżej 550px */
@media screen and (max-width: 550px) {
    
    /* Jeszcze mniejsze paddingi */
    form[action="usercp.php"] .row.clearfix > .left50 {
        padding: 5px;
    }
    
    form[action="usercp.php"] .box .row {
        padding: 10px;
    }
    
    /* Kompaktowy layout */
    form[action="usercp.php"] .box {
        margin-bottom: 15px;
    }
    
    form[action="usercp.php"] .box .row .clearfix > .left50 {
        margin-bottom: 12px;
    }
    
    /* Selecty daty - w układzie pionowym na bardzo małych ekranach */
    form[action="usercp.php"] select[name="bday1"],
    form[action="usercp.php"] select[name="bday2"],
    form[action="usercp.php"] select[name="awayday"],
    form[action="usercp.php"] select[name="awaymonth"] {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
    }
}
		
		