/* STRANKY RAIDU */

.raid-page {
    padding-top: 55px;
    min-height: 75vh;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}

.page-heading h1 {
    font-size: 34px;
    margin: 12px 0;
}

.gold-button {
    display: inline-block;
    background: #c9a45c;
    color: #171820;
    border: none;
    padding: 14px 22px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 3px;
    text-align: center;
}

.gold-button:hover {
    background: #e5c77f;
}

.raid-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.raid-card {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: #1a1b22;
    border: 1px solid #35333a;
    padding: 25px;
    border-radius: 4px;
}

.raid-date {
    min-width: 75px;
    min-height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #27231f;
    border: 1px solid #665233;
    color: #e5c77f;
}

.raid-date strong {
    font-size: 28px;
}

.raid-date span {
    font-size: 12px;
}

.raid-details {
    flex: 1;
}

.raid-details h2 {
    margin: 0 0 10px;
    color: #e5c77f;
    font-size: 21px;
}

.raid-details p {
    color: #a9a6a1;
    line-height: 1.6;
}

.raid-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 15px;
    color: #aaa5a0;
    font-size: 12px;
}

.raid-status {
    color: #8dbb83;
}

.created-by {
    display: block;
    margin-top: 15px;
    color: #777782;
}

.form-panel {
    max-width: 760px;
    background: #1a1b22;
    border: 1px solid #35333a;
    padding: 35px;
    border-radius: 4px;
}

.raid-form p {
    margin-bottom: 23px;
}

.raid-form label {
    display: block;
    color: #c9a45c;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 600;
}

.raid-form input,
.raid-form textarea,
.raid-form select {
    display: block;
    width: 100%;
    padding: 13px;
    background: #101116;
    border: 1px solid #45434b;
    color: #e8e3d9;
    border-radius: 3px;
    font-family: inherit;
    font-size: 14px;
}

.raid-form input:focus,
.raid-form textarea:focus,
.raid-form select:focus {
    outline: none;
    border-color: #c9a45c;
}

.raid-form input[type="datetime-local"] {
    color-scheme: dark;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 30px;
}

.cancel-link {
    color: #aaa5a0;
    font-size: 13px;
}

.cancel-link:hover {
    color: #e5c77f;
}

.success-message {
    margin-bottom: 20px;
    padding: 15px;
    background: #203025;
    border: 1px solid #47684b;
    color: #a5d49d;
}

.error-message,
.errorlist {
    color: #f08b8b;
}

.raid-form .errorlist {
    padding-left: 20px;
    margin-top: 8px;
}

@media (max-width: 650px) {

    .page-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .raid-card {
        flex-direction: column;
    }

    .form-panel {
        padding: 20px;
    }
}


/* DETAIL RAIDU */

.detail-panel {
    background: #1a1b22;
    border: 1px solid #35333a;
    padding: 30px;
    border-radius: 4px;
}

.detail-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.detail-info span,
.detail-info strong {
    display: block;
}

.detail-info strong {
    margin-top: 10px;
    color: #e5c77f;
}

.detail-description {
    border-top: 1px solid #35333a;
    margin-top: 30px;
    padding-top: 20px;
}

.detail-description h3 {
    color: #c9a45c;
}

.detail-description p {
    color: #aaa5a0;
    line-height: 1.7;
}

.registered-message h3 {
    color: #a5d49d;
}

.cancel-button {
    margin-top: 20px;
    background: #492828;
    color: #f1b0a8;
    border: 1px solid #784343;
    padding: 12px 18px;
    cursor: pointer;
}

.cancel-button:hover {
    background: #633333;
}

.player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #35333a;
}

.player-row:last-child {
    border-bottom: none;
}

.player-info strong,
.player-info span {
    display: block;
}

.player-info span {
    color: #aaa5a0;
    font-size: 12px;
    margin-top: 6px;
}

.player-signup-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    color: #c9a45c;
    font-size: 12px;
}

@media (max-width: 750px) {

    .detail-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .player-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .player-signup-info {
        align-items: flex-start;
    }
}


/* RAIDOVACI SESTAVY */

.roster-group {
    background: #1a1b22;
    border: 1px solid #35333a;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.roster-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: #25232a;
    border-bottom: 1px solid #45413a;
}

.roster-heading h3 {
    margin: 0;
    color: #e5c77f;
    font-size: 17px;
}

.roster-heading span {
    color: #aaa5a0;
    font-size: 12px;
}

.roster-group .player-row {
    margin: 0 22px;
}

.roster-group .player-row:last-child {
    border-bottom: none;
}

.attendance-status {
    color: #8dbb83;
    font-size: 12px;
}

.no-players {
    padding: 15px 22px;
    color: #92919a;
    font-size: 13px;
}

@media (max-width: 650px) {

    .roster-heading {
        padding: 15px;
    }

    .roster-group .player-row {
        margin: 0 15px;
    }
}


/* SPRAVA HRACU RAID LEADEREM */

.roster-edit-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin-left: auto;
}

.edit-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.edit-field label {
    color: #92919a;
    font-size: 10px;
}

.edit-field select {
    min-width: 145px;
    padding: 9px;
    background: #101116;
    border: 1px solid #45434b;
    color: #e8e3d9;
    border-radius: 3px;
    font-size: 11px;
}

.save-player-button {
    padding: 10px 13px;
    background: #c9a45c;
    border: none;
    border-radius: 3px;
    color: #171820;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.save-player-button:hover {
    background: #e5c77f;
}

@media (max-width: 850px) {

    .roster-edit-form {
        width: 100%;
        margin-left: 0;
    }

}

/* STAVY UCASTI */

.attendance-status {
    color: #8dbb83;
}

.attendance-status.tentative {
    color: #e5c77f;
}

.attendance-status.not-attending {
    color: #f08b8b;
}

/* REGISTRACE HERNÍHO PROFILU */

.profile-setup-panel {
    max-width: 760px;
}

.registration-intro {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #35333a;
}

.registration-intro h2 {
    color: #e5c77f;
    font-size: 21px;
}

.registration-intro p {
    color: #92919a;
    line-height: 1.6;
}


/* =====================================
   SPRAVA HERNICH POSTAV
===================================== */

.character-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.character-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 22px;

    background: #1a1b22;
    border: 1px solid #35333a;
    border-radius: 4px;
}

.character-card-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.character-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #27231f;
    border: 1px solid #665233;
    border-radius: 4px;

    color: #e5c77f;
    font-size: 25px;
}

.character-details h2 {
    color: #e5c77f;
    font-size: 19px;
    margin: 0 0 7px;
}

.character-details p {
    color: #e8e3d9;
    font-size: 13px;
    margin: 0 0 6px;
}

.character-details span {
    color: #92919a;
    font-size: 11px;
}

.edit-character-button {
    display: inline-block;

    padding: 10px 15px;

    color: #e5c77f;
    border: 1px solid #665233;
    border-radius: 3px;

    font-size: 12px;
}

.edit-character-button:hover {
    background: #27231f;
}

@media (max-width: 650px) {

    .character-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .character-actions {
        width: 100%;
    }

    .edit-character-button {
        display: block;
        text-align: center;
    }

}

/* PRIHLASKY VLASTNICH POSTAV */

.my-signups {
    margin-bottom: 25px;
}

.my-signups h3 {
    color: #e5c77f;
    margin-bottom: 15px;
}

.my-signup-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    padding: 18px 22px;
    margin-bottom: 12px;

    background: #1a1b22;
    border: 1px solid #665233;
    border-radius: 4px;
}

.my-signup-card strong {
    color: #e5c77f;
}

.my-signup-card p {
    margin: 7px 0;
    color: #e8e3d9;
    font-size: 13px;
}

.my-signup-card span {
    display: block;
    color: #92919a;
    font-size: 12px;
    margin-top: 5px;
}

@media (max-width: 600px) {

    .my-signup-card {
        flex-direction: column;
        align-items: flex-start;
    }

}

/* Přihlašovací formulář – rozbalování */

.signup-disclosure > summary {
    display: inline-flex;
    cursor: pointer;
    list-style: none;
}

.signup-disclosure > summary::-webkit-details-marker,
.roster-disclosure > summary::-webkit-details-marker {
    display: none;
}

.signup-disclosure[open] > summary {
    margin-bottom: 14px;
}

.signup-disclosure-content {
    margin-top: 10px;
}


/* Raidovací sestavy – rozbalovací záložka */

.roster-disclosure {
    margin-top: 24px;
}

.roster-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    list-style: none;
    border: 1px solid rgba(201, 164, 89, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 14px;
}

.roster-summary::after {
    content: "+";
    font-size: 18px;
    color: #c9a459;
}

.roster-disclosure[open] .roster-summary::after {
    content: "−";
}

.roster-count {
    margin-left: auto;
    color: #c9a459;
    font-size: 12px;
}

.roster-content {
    padding-top: 16px;
}

/* ROLE BADGES */

.player-role {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 5px;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
}

.role-tank {
    color: #69a9ff;
    background: rgba(70, 130, 220, 0.14);
}

.role-healer {
    color: #69d69a;
    background: rgba(60, 180, 110, 0.14);
}

.role-dps {
    color: #e7a35c;
    background: rgba(220, 140, 60, 0.14);
}

.role-field[hidden] {
    display: none !important;
}

/* CLASS ICONS */

.class-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}


/* MY SIGNUPS */

.my-signup-main {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.my-signup-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.my-signup-info p {
    margin: 0;
}

.my-signup-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 3px;
    font-size: 12px;
    color: #9da4b5;
}

.my-signup-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

@media (max-width: 600px) {

    .my-signup-card {
        align-items: flex-start;
        flex-direction: column;
    }

}

/* RAID COMPOSITION SUMMARY */

.raid-composition {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.composition-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 105px;
    padding: 9px 12px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 13px;
}

.composition-item strong {
    font-size: 17px;
}

.composition-item.tank strong {
    color: #65a9f3;
}

.composition-item.healer strong {
    color: #62c995;
}

.composition-item.dps strong {
    color: #e6a45d;
}

.raid-target-group {
    font-size: 13px;
    color: #c9a459;
    margin-top: 6px;
}

/* DETAIL ROLE SUMMARY */

.detail-role-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.role-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.role-summary-item strong {
    font-size: 23px;
}

.role-summary-item.tank strong {
    color: #65a9f3;
}

.role-summary-item.healer strong {
    color: #62c995;
}

.role-summary-item.dps strong {
    color: #e6a45d;
}

.not-attending-summary {
    font-size: 12px;
}


/* ROLE BASED ROSTER */

.role-roster {
    margin-bottom: 24px;
}

.role-roster .roster-heading {
    margin-bottom: 12px;
}

.player-group {
    font-size: 11px;
    color: #9da4b5;
}

.not-attending-group {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {

    .detail-role-summary {
        grid-template-columns: 1fr;
    }

}

/* KOMPAKTNI SEZNAM HRACU */

.class-roster-group {
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    overflow: hidden;
}

.class-roster-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 13px;
    background: rgba(255, 255, 255, 0.04);
}

.class-roster-heading strong {
    color: #d9b367;
    font-size: 13px;
}

.class-roster-heading span {
    color: #9da4b5;
    font-size: 11px;
}

.roster-compact-row {
    display: grid;
    grid-template-columns: 34px minmax(100px, 1fr) 75px 125px auto;
    align-items: center;
    gap: 12px;
    padding: 8px 13px;
    min-height: 52px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.class-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.roster-member-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.roster-member-info strong {
    font-size: 13px;
}

.roster-member-info span {
    color: #9da4b5;
    font-size: 11px;
}

.roster-compact-row .player-role {
    margin: 0;
    justify-content: center;
}

.roster-compact-row .attendance-status {
    font-size: 11px;
    white-space: nowrap;
}

.roster-row-edit > summary {
    cursor: pointer;
    list-style: none;
    color: #d9b367;
    font-size: 11px;
}

.roster-row-edit-content {
    padding: 12px;
}

.not-attending-disclosure {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.not-attending-disclosure > summary {
    cursor: pointer;
    color: #df8888;
    font-size: 12px;
}

@media (max-width: 700px) {

    .roster-compact-row {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .roster-compact-row .attendance-status {
        grid-column: 2 / -1;
    }

    .roster-row-edit {
        grid-column: 2 / -1;
    }

}

/* =====================================
   DETAIL PANEL - TWO COLUMNS
===================================== */

.detail-panel-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.9fr);
    gap: 28px;
    align-items: stretch;
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.detail-description {
    min-width: 0;
    margin: 0;
    border: none;
    padding: 0;
}


/* =====================================
   SIGNUP PANEL
===================================== */

.raid-signup-panel {
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(201, 164, 89, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.raid-signup-panel h3 {
    margin: 0;
    font-size: 17px;
}

.raid-signup-panel .eyebrow {
    margin: 0;
    color: #c9a459;
    font-size: 10px;
    letter-spacing: 1.2px;
}

.raid-signup-panel > .muted {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
}


/* =====================================
   REGISTERED CHARACTER
===================================== */

.raid-my-signup {
    display: flex;
    align-items: center;
    gap: 13px;
}

.raid-my-signup .class-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.raid-my-signup-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.raid-my-signup-info strong {
    font-size: 16px;
}

.raid-my-signup-info > span:not(.player-role) {
    color: #aeb4c0;
    font-size: 12px;
}

.raid-my-signup-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #9da4b5;
    font-size: 11px;
}


/* =====================================
   SIGNUP FORM
===================================== */

.raid-signup-panel .signup-disclosure {
    width: 100%;
}

.raid-signup-panel .signup-disclosure > summary {
    display: inline-flex;
    width: fit-content;
    cursor: pointer;
}

.raid-signup-panel .signup-disclosure-content {
    margin-top: 18px;
}

.raid-signup-panel .cancel-button {
    margin-top: 8px;
}


/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 800px) {

    .detail-panel-bottom {
        grid-template-columns: 1fr;
        gap: 20px;
    }

}

/* =====================================
   SIGNUP BUTTON IN DETAIL PANEL
===================================== */

.raid-signup-panel {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 120px;
    padding: 15px;
    background: transparent;
    border: none;
}

.signup-modal-trigger {
    min-width: 190px;
    cursor: pointer;
}


/* =====================================
   SIGNUP MODAL
===================================== */

.signup-modal {
    width: min(540px, calc(100% - 32px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;

    margin: auto;
    padding: 26px;

    color: #f1f1f1;
    background: #191a20;

    border: 1px solid rgba(201, 164, 89, 0.45);
    border-radius: 12px;

    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.65);
}

.signup-modal::backdrop {
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
}

.signup-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

.signup-modal-header h2 {
    margin: 6px 0 0;
    font-size: 21px;
}

.signup-modal-header .eyebrow {
    margin: 0;
    color: #c9a459;
    font-size: 10px;
    letter-spacing: 1px;
}

.signup-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    color: #bfc3cc;
    background: rgba(255, 255, 255, 0.06);

    border: none;
    border-radius: 6px;

    font-size: 24px;
    cursor: pointer;
}

.signup-modal-close:hover {
    background: rgba(255, 255, 255, 0.13);
    color: white;
}

.signup-modal > .muted {
    margin-bottom: 22px;
    font-size: 13px;
    line-height: 1.5;
}

.signup-modal-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.signup-modal-actions .cancel-link {
    cursor: pointer;
    background: transparent;
    border: none;
    color: #aeb4c0;
    font-size: 13px;
}

.signup-modal-actions .cancel-link:hover {
    color: white;
}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 600px) {

    .signup-modal {
        padding: 20px;
    }

    .signup-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

}

/* Řádek s nastavením hlavní postavy */
form p:has(input[name="is_main"]) {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start !important;
    gap: 8px 10px;
}

/* Popisek hlavní postavy */
form p:has(input[name="is_main"]) > label {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    flex: 0 0 auto;
}

/* Vlastní vzhled checkboxu */
form p:has(input[name="is_main"]) > input[name="is_main"] {
    appearance: none;
    -webkit-appearance: none;

    width: 19px !important;
    height: 19px !important;
    min-width: 19px;
    flex: 0 0 19px;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #d4af68;
    border-radius: 4px;
    background: #111218;

    display: inline-grid;
    place-content: center;
    cursor: pointer;
}

/* Zaškrtnutý checkbox */
form p:has(input[name="is_main"]) > input[name="is_main"]:checked {
    background: #d4af68;
    border-color: #d4af68;
}

/* Zaškrtávací symbol */
form p:has(input[name="is_main"]) > input[name="is_main"]::before {
    content: "";
    width: 9px;
    height: 5px;
    border-left: 2px solid #191817;
    border-bottom: 2px solid #191817;
    transform: rotate(-45deg) scale(0);
}

form p:has(input[name="is_main"]) > input[name="is_main"]:checked::before {
    transform: rotate(-45deg) scale(1);
}

/* Vysvětlující text pod checkboxem */
form p:has(input[name="is_main"]) .helptext {
    flex: 0 0 100%;
    margin: 0;
    line-height: 1.5;
}

/* Zvýraznění při ovládání klávesnicí */
form p:has(input[name="is_main"]) > input[name="is_main"]:focus-visible {
    outline: 2px solid #d4af68;
    outline-offset: 3px;
}

/* Tlačítko Zrušit v editačním modálním okně */
.profile-edit-modal .profile-modal-actions button[data-close-profile-modal] {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 48px !important;
    padding: 11px 22px !important;
    margin-left: 10px !important;

    background: transparent !important;
    color: #d4af68 !important;

    border: 1px solid rgba(212, 175, 104, 0.65) !important;
    border-radius: 4px !important;

    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;

    cursor: pointer !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

.profile-edit-modal .profile-modal-actions button[data-close-profile-modal]:hover {
    background: rgba(212, 175, 104, 0.12) !important;
    color: #f0ce8b !important;
    border-color: #d4af68 !important;
}

.profile-setup-panel .form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.profile-setup-panel .form-actions .form-cancel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    min-height: 48px;
    padding: 11px 22px;

    background: transparent;
    color: #d4af68 !important;
    border: 1px solid rgba(212, 175, 104, 0.65);
    border-radius: 4px;

    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;

    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.profile-setup-panel .form-actions .form-cancel-button:hover {
    background: rgba(212, 175, 104, 0.12);
    color: #f0ce8b !important;
    border-color: #d4af68;
}


/* =========================================
   DETAIL RAIDU – NOVY INFORMACNI PANEL
========================================= */

.detail-info-enhanced {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 22px;
}

.detail-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;

    min-width: 0;
    min-height: 105px;
    padding: 17px 18px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
}

.detail-stat-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.1px;
}

.detail-stat-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.detail-stat-date {
    color: #c0c4ce;
    font-size: 13px;
}

.detail-stat-time {
    margin: 0 !important;
    font-size: 23px !important;
    line-height: 1.2;
}

.detail-stat-start {
    background: rgba(102, 201, 233, 0.07);
    border-color: rgba(102, 201, 233, 0.23);
}

.detail-stat-start .detail-stat-label,
.detail-stat-start .detail-stat-time {
    color: #66c9e9;
}

.detail-stat-end {
    background: rgba(107, 213, 160, 0.07);
    border-color: rgba(107, 213, 160, 0.23);
}

.detail-stat-end .detail-stat-label,
.detail-stat-end .detail-stat-time {
    color: #6bd5a0;
}

.detail-stat-status {
    background: rgba(231, 195, 108, 0.07);
    border-color: rgba(231, 195, 108, 0.23);
}

.detail-stat-status .detail-stat-label {
    color: #e7c36c;
}

.detail-stat-status.is-open .detail-stat-value {
    color: #e7c36c;
}

.detail-stat-status.is-closed .detail-stat-value {
    color: #ef9292;
}

.detail-stat-value {
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.5;
}

.detail-stat-number {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
}

.detail-stat-participants {
    background: rgba(198, 165, 242, 0.07);
    border-color: rgba(198, 165, 242, 0.23);
}

.detail-stat-participants .detail-stat-label,
.detail-stat-participants .detail-stat-number strong {
    color: #c6a5f2;
}

.detail-stat-number strong {
    margin: 0 !important;
    font-size: 28px !important;
    line-height: 1;
}

.detail-stat-number span {
    color: #aeb4c0;
    font-size: 12px;
}


/* =========================================
   DETAIL RAIDU – INFORMACE A AUTOR
========================================= */

.detail-description {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.detail-description-heading {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-description-heading .eyebrow {
    margin: 0;
    color: #c9a45c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.detail-description-heading h3 {
    margin: 0;
    color: #e5c77f;
    font-size: 21px;
}

.detail-description-text {
    margin: 0;
    color: #b9bdc7;
    font-size: 14px;
    line-height: 1.7;
}

.raid-author-card {
    display: flex;
    align-items: center;
    gap: 12px;

    width: fit-content;
    min-width: 220px;
    margin-top: 5px;
    padding: 12px 16px;

    background: rgba(201, 164, 92, 0.07);
    border: 1px solid rgba(201, 164, 92, 0.2);
    border-radius: 8px;
    border-left: 3px solid #c9a45c;
}

.raid-author-mark {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;
    flex-shrink: 0;

    color: #e5c77f;
    background: rgba(201, 164, 92, 0.13);
    border-radius: 50%;

    font-size: 18px;
}

.raid-author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.raid-author-info span {
    color: #a99b80;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.raid-author-info strong {
    color: #e5c77f;
    font-size: 14px;
}


/* =========================================
   DETAIL RAIDU – PANEL PRIHLASENE POSTAVY
========================================= */

/* Přepíše původní konfliktní definice panelu */

.raid-signup-panel {
    display: block;
    min-width: 0;
    min-height: 0;

    padding: 0;
    border: none;
    border-radius: 0;

    background: transparent;
}

/* Karta vlastní přihlášky */

.raid-my-signup-card {
    display: flex;
    flex-direction: column;
    gap: 17px;

    width: 100%;
    box-sizing: border-box;
    padding: 20px;

    background: #20212a;
    border: 1px solid rgba(201, 164, 92, 0.28);
    border-radius: 10px;
}

/* Horní část karty */

.raid-my-signup-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.raid-my-signup-heading > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.raid-my-signup-heading .eyebrow {
    margin: 0;
    color: #c9a45c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.raid-my-signup-heading h3 {
    margin: 0;
    color: #eee9df;
    font-size: 17px;
}

/* Stav účasti */

.raid-attendance-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 10px;
    border-radius: 5px;

    font-size: 11px;
    font-weight: 700;
}

.raid-attendance-chip.is-confirmed {
    color: #6bd5a0;
    background: rgba(107, 213, 160, 0.12);
    border: 1px solid rgba(107, 213, 160, 0.22);
}

.raid-attendance-chip.is-tentative {
    color: #e7c36c;
    background: rgba(231, 195, 108, 0.12);
    border: 1px solid rgba(231, 195, 108, 0.22);
}

.raid-attendance-chip.is-not-attending {
    color: #ef9292;
    background: rgba(239, 146, 146, 0.12);
    border: 1px solid rgba(239, 146, 146, 0.22);
}

/* Postava */

.raid-my-signup {
    display: flex;
    align-items: center;
    gap: 15px;

    min-width: 0;
    margin: 0;
    padding: 15px;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
}

.raid-my-signup .class-icon {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.raid-my-signup-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;

    min-width: 0;
}

.raid-character-name {
    color: var(--class-color, #e8e3d9);
    font-size: 18px !important;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.raid-character-class {
    color: #aeb4c0;
    font-size: 12px;
    line-height: 1.5;
}

.raid-my-signup-info .player-role {
    margin-top: 2px;
}

/* Spodní část karty */

.raid-my-signup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.raid-signup-group {
    display: inline-flex;
    align-items: center;

    padding: 6px 10px;

    color: #c9a45c;
    background: rgba(201, 164, 92, 0.08);
    border: 1px solid rgba(201, 164, 92, 0.2);
    border-radius: 5px;

    font-size: 11px;
}

.raid-cancel-signup-form {
    margin: 0;
}

.raid-my-signup-card .cancel-button {
    margin: 0;
    padding: 10px 14px;
    border-radius: 5px;
    font-size: 12px;
}

/* Prázdný přihlašovací panel */

.raid-signup-empty-state {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;

    padding: 22px;

    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
}

.raid-signup-empty-state .eyebrow {
    margin: 0;
}

.raid-signup-empty-state p:not(.eyebrow) {
    margin: 0;
    color: #aeb4c0;
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================
   BARVY CLASS – JMENA V SESTAVE RAIDU
========================================= */

.roster-character-name {
    color: var(--class-color, #e8e3d9) !important;
    font-weight: 700;
}


/* =========================================
   RESPONSIVE – DETAIL RAIDU
========================================= */

@media (max-width: 950px) {

    .detail-info-enhanced {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 800px) {

    .detail-panel-bottom {
        grid-template-columns: minmax(0, 1fr);
    }

}

@media (max-width: 550px) {

    .detail-info-enhanced {
        grid-template-columns: 1fr;
    }

    .detail-stat-card {
        min-height: 90px;
    }

    .raid-author-card {
        width: 100%;
        box-sizing: border-box;
    }

    .raid-my-signup-card {
        padding: 15px;
    }

    .raid-my-signup {
        padding: 12px;
        gap: 12px;
    }

    .raid-my-signup .class-icon {
        width: 48px;
        height: 48px;
    }

    .raid-my-signup-footer {
        align-items: flex-start;
        flex-direction: column;
    }

}



/* =========================================
   NAZEV RAIDU A AUTOR
========================================= */

.raid-title-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 18px;
    row-gap: 5px;
}

.raid-title-line h1 {
    margin: 12px 0;
}

.raid-created-by-inline {
    color: #92919a;
    font-size: 12px;
}

.raid-created-by-inline strong {
    color: #d9b367;
    font-weight: 600;
}


/* =========================================
   KOMPAKTNI PRIHLASKA UZIVATELE
========================================= */

.raid-signup-panel {
    display: block;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.raid-my-signup-compact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 18px;

    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

/* ZPRAVA O STAVU PRIHLASKY */

.raid-my-signup-message {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.signup-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;
    flex-shrink: 0;

    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
}

.raid-my-signup-message.is-confirmed {
    color: #6bd5a0;
}

.raid-my-signup-message.is-confirmed .signup-state-icon {
    color: #101b15;
    background: #6bd5a0;
}

.raid-my-signup-message.is-tentative {
    color: #e7c36c;
}

.raid-my-signup-message.is-tentative .signup-state-icon {
    color: #241e10;
    background: #e7c36c;
}

.raid-my-signup-message.is-not-attending {
    color: #ef9292;
}

.raid-my-signup-message.is-not-attending .signup-state-icon {
    color: #251414;
    background: #ef9292;
}


/* POSTAVA */

.raid-my-signup-character {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.raid-my-signup-character .class-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.raid-my-signup-character-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.raid-character-name {
    color: var(--class-color, #e8e3d9);
    font-size: 16px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.raid-my-signup-character-info > span {
    color: #aeb4c0;
    font-size: 11px;
    line-height: 1.5;
}

.raid-my-signup-character .player-role {
    flex-shrink: 0;
    margin: 0;
}


/* IKONA ZRUSENI PRIHLASKY */

.raid-inline-cancel-form {
    flex-shrink: 0;
    margin: 0 0 0 auto;
}

.raid-inline-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    padding: 0;

    color: #e58b8b;
    background: rgba(229, 139, 139, 0.08);

    border: 1px solid rgba(229, 139, 139, 0.25);
    border-radius: 6px;

    cursor: pointer;
    transition: background 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease;
}

.raid-inline-cancel svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.raid-inline-cancel:hover {
    color: #ffffff;
    background: #a94747;
    border-color: #a94747;
}


/* =========================================
   IKONA PRIHLASENI
========================================= */

.signup-icon-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.signup-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 23px;
    height: 23px;

    color: #24583b;
    background: rgba(36, 88, 59, 0.13);
    border: 1px solid rgba(36, 88, 59, 0.3);
    border-radius: 50%;

    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}


/* PRÁZDNÝ PANEL */

.raid-signup-empty-state {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.raid-signup-empty-state .eyebrow {
    margin: 0;
}

.raid-signup-empty-state p:not(.eyebrow) {
    margin: 0;
    color: #aeb4c0;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================
   MOBILNI ZOBRAZENI
========================================= */

@media (max-width: 550px) {

    .raid-my-signup-compact {
        padding: 13px;
    }

    .raid-my-signup-character {
        flex-wrap: wrap;
        gap: 10px;
    }

    .raid-my-signup-character .player-role {
        margin-left: 56px;
    }

    .raid-inline-cancel-form {
        margin-left: auto;
    }

}



/* =========================================
   VOLBA UCASTI – TRI IKONOVA TLACITKA
========================================= */

.raid-signup-panel {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.raid-signup-status-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Společný vzhled tlačítek */

.attendance-choice-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;
    padding: 0;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.attendance-choice-button svg {
    width: 25px;
    height: 25px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* POTVRDIT – ZELENÁ */

.attendance-choice-button.is-confirmed {
    color: #6bd5a0;
    border-color: rgba(107, 213, 160, 0.35);
    background: rgba(107, 213, 160, 0.08);
}

.attendance-choice-button.is-confirmed:hover {
    background: rgba(107, 213, 160, 0.18);
    border-color: #6bd5a0;
    box-shadow: 0 0 16px rgba(107, 213, 160, 0.12);
}

/* MOŽNÁ – ZLATÁ */

.attendance-choice-button.is-tentative {
    color: #e7c36c;
    border-color: rgba(231, 195, 108, 0.35);
    background: rgba(231, 195, 108, 0.08);
}

.attendance-choice-button.is-tentative:hover {
    background: rgba(231, 195, 108, 0.18);
    border-color: #e7c36c;
    box-shadow: 0 0 16px rgba(231, 195, 108, 0.12);
}

/* NEBUDU – ČERVENÁ */

.attendance-choice-button.is-not-attending {
    color: #ef9292;
    border-color: rgba(239, 146, 146, 0.35);
    background: rgba(239, 146, 146, 0.08);
}

.attendance-choice-button.is-not-attending:hover {
    background: rgba(239, 146, 146, 0.18);
    border-color: #ef9292;
    box-shadow: 0 0 16px rgba(239, 146, 146, 0.12);
}

/* Pohyb při najetí */

.attendance-choice-button:hover {
    transform: translateY(-2px);
}

.attendance-choice-button:active {
    transform: scale(0.96);
}

/* Přístupnost – ovládání klávesnicí */

.attendance-choice-button:focus-visible {
    outline: 2px solid #e5c77f;
    outline-offset: 4px;
}

/* Mobilní zobrazení */

@media (max-width: 550px) {
    .raid-signup-status-actions {
        gap: 10px;
    }

    .attendance-choice-button {
        width: 49px;
        height: 49px;
    }
}

/* Discord účet u vlastní přihlášky */
.raid-my-signup-discord {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.raid-my-signup-discord span {
    color: #92919a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.raid-my-signup-discord strong {
    color: #e5c77f;
    font-size: 14px;
    font-weight: 700;
}

/* Discord nick vedle jména herní postavy */
.roster-member-info strong .roster-discord-name {
    display: inline !important;
    margin-left: 3px;

    color: #9299a8 !important;
    font-size: 0.88em !important;
    font-weight: 500;

    white-space: nowrap;
}


/* =========================================
   DETAIL RAIDU – TRI INFORMACNI PRVKY
========================================= */

.detail-info-enhanced {
    grid-template-columns: minmax(0, 1fr) 90px 140px;
    align-items: stretch;
}

.detail-stat-start {
    justify-content: center;
    gap: 12px;
}

.detail-stat-start .detail-stat-label {
    color: #66c9e9;
}

.detail-stat-start-value {
    color: #66c9e9;
    font-size: 23px;
    line-height: 1.3;
}

.detail-stat-status,
.detail-stat-participants {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 105px;
}

.raid-lock-icon,
.raid-participants-icon {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.raid-lock-icon.is-open {
    color: #6bd5a0;
}

.raid-lock-icon.is-closed {
    color: #ef9292;
}

.raid-participants-icon {
    color: #c6a5f2;
}

.detail-stat-participants strong {
    color: #c6a5f2;
    font-size: 27px;
}


/* =========================================
   RYCHLE PRIHLASENI
========================================= */

.quick-signup-form {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.quick-signup-player-field,
.quick-signup-role-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 165px;
}

.quick-signup-player-field {
    flex: 1 1 190px;
}

.quick-signup-player-field label,
.quick-signup-role-field label {
    color: #c9a45c;
    font-size: 12px;
    font-weight: 600;
}

.quick-signup-player-field select,
.quick-signup-role-field select {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 10px 38px 10px 13px;

    color: #f1eee8;
    background-color: #111218;

    border: 1px solid #46434a;
    border-radius: 5px;

    font: inherit;
}

.quick-signup-player-field select:focus,
.quick-signup-role-field select:focus {
    outline: 2px solid rgba(212, 175, 104, 0.5);
    outline-offset: 2px;
}

.quick-signup-role-field[hidden] {
    display: none !important;
}

.quick-signup-form .raid-signup-status-actions {
    margin-left: auto;
    padding-bottom: 0;
}

.quick-signup-form .attendance-choice-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* =========================================
   POTVRZENA PRIHLASKA
========================================= */

.raid-current-signup {
    display: flex;
    flex-direction: column;
    gap: 13px;
    width: 100%;
}

.raid-current-signup-message {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #6bd5a0;
    font-size: 13px;
}

.signup-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 23px;
    height: 23px;
    flex-shrink: 0;

    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
}

.signup-state-icon.is-confirmed {
    color: #14251b;
    background: #6bd5a0;
}

.signup-state-icon.is-tentative {
    color: #2a2110;
    background: #e7c36c;
}

.signup-state-icon.is-not-attending {
    color: #2a1414;
    background: #ef9292;
}

.raid-current-signup-character {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.raid-current-signup-character .class-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.raid-current-signup-character > strong {
    color: #eee9df;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.raid-inline-cancel-form {
    margin: 0 0 0 auto;
}


/* =========================================
   MOBILNI ZOBRAZENI
========================================= */

@media (max-width: 650px) {

    .detail-info-enhanced {
        grid-template-columns: 1fr 70px 100px;
        gap: 8px;
    }

    .detail-stat-start-value {
        font-size: 17px;
    }

    .detail-stat-status,
    .detail-stat-participants {
        min-height: 90px;
        gap: 7px;
    }

    .raid-lock-icon,
    .raid-participants-icon {
        width: 23px;
        height: 23px;
    }

    .detail-stat-participants strong {
        font-size: 22px;
    }

    .quick-signup-form {
        align-items: stretch;
    }

    .quick-signup-player-field {
        flex-basis: 100%;
    }

    .quick-signup-role-field {
        flex: 1 1 100%;
    }

    .quick-signup-form .raid-signup-status-actions {
        margin-left: 0;
    }
}


/* =====================================================
   KOMPAKTNI SEZNAM RAIDU + RYCHLE PRIHLASENI
   ===================================================== */

.raid-list-page .page-heading {
    margin-bottom: 22px;
}

.raid-list {
    gap: 9px;
}

.raid-card.raid-card-compact {
    display: grid;
    grid-template-columns: 60px minmax(160px, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 12px 15px;
    background: #1a1b22;
    border: 1px solid #35333a;
    border-radius: 7px;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.raid-card.raid-card-compact:hover {
    border-color: rgba(201, 164, 92, 0.5);
    background: #1d1e26;
}

.raid-date.raid-date-compact {
    box-sizing: border-box;
    width: 60px;
    min-width: 60px;
    min-height: 60px;
    padding: 5px;
    text-decoration: none;
    border-radius: 5px;
}

.raid-date-compact strong {
    font-size: 23px;
    line-height: 1.1;
}

.raid-date-compact span {
    margin-top: 3px;
    font-size: 10px;
}

.raid-card-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.raid-card-main:hover h2 {
    color: #f0d18a;
}

.raid-card-title-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 12px;
    min-width: 0;
}

.raid-card-title-row h2 {
    margin: 0;
    color: #e5c77f;
    font-size: 17px;
    line-height: 1.3;
    transition: color 0.18s ease;
}

.raid-card-target-group {
    margin: 0;
    color: #c9a45c;
    font-size: 11px;
    line-height: 1.4;
}

.raid-card-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 4px 0 0 !important;
    color: #a9a6a1;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.raid-card-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.raid-card-metrics {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 13px;
    min-height: 27px;
}

.raid-list-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
}

.raid-list-lock svg,
.raid-list-participants svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.raid-list-lock.is-open {
    color: #6bd5a0;
}

.raid-list-lock.is-closed {
    color: #ef9292;
}

.raid-list-participants {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c6a5f2;
}

.raid-list-participants strong {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.raid-card-enter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    color: #d9b367;
    background: rgba(201, 164, 92, 0.08);
    border: 1px solid rgba(201, 164, 92, 0.24);
    border-radius: 5px;
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.raid-card-enter svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.raid-card-enter:hover {
    color: #171820;
    background: #e5c77f;
    transform: translateX(2px);
}

/* Rychlé přihlášení v kartě */
.raid-list-quick-signup {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
}

.raid-list-player-select,
.raid-list-role-select {
    box-sizing: border-box;
    width: auto;
    max-width: 150px;
    min-width: 105px;
    height: 31px;
    padding: 4px 26px 4px 8px;
    color: #e8e3d9;
    background-color: #101116;
    border: 1px solid #45434b;
    border-radius: 4px;
    font-family: inherit;
    font-size: 11px;
    line-height: 1.2;
}

.raid-list-role-select {
    min-width: 78px;
    max-width: 85px;
}

.raid-list-role-select[hidden] {
    display: none !important;
}

.raid-list-status-buttons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.raid-list-status-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    padding: 0;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.raid-list-status-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.raid-list-status-button.is-confirmed {
    color: #6bd5a0;
    border-color: rgba(107, 213, 160, 0.28);
    background: rgba(107, 213, 160, 0.07);
}

.raid-list-status-button.is-tentative {
    color: #e7c36c;
    border-color: rgba(231, 195, 108, 0.28);
    background: rgba(231, 195, 108, 0.07);
}

.raid-list-status-button.is-not-attending {
    color: #ef9292;
    border-color: rgba(239, 146, 146, 0.28);
    background: rgba(239, 146, 146, 0.07);
}

.raid-list-status-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.raid-list-status-button.is-confirmed:hover:not(:disabled) {
    background: rgba(107, 213, 160, 0.18);
}

.raid-list-status-button.is-tentative:hover:not(:disabled) {
    background: rgba(231, 195, 108, 0.18);
}

.raid-list-status-button.is-not-attending:hover:not(:disabled) {
    background: rgba(239, 146, 146, 0.18);
}

.raid-list-status-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.raid-list-status-button:focus-visible,
.raid-card-enter:focus-visible,
.raid-list-player-select:focus-visible,
.raid-list-role-select:focus-visible {
    outline: 2px solid #d4af68;
    outline-offset: 2px;
}

/* Již přihlášená postava */
.raid-list-my-signup {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    min-height: 31px;
    color: #aeb4c0;
    font-size: 11px;
}

.raid-list-my-signup .class-icon {
    width: 24px;
    height: 24px;
}

.raid-list-my-character {
    max-width: 130px;
    overflow: hidden;
    color: #e5c77f;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.raid-list-my-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.raid-list-my-status.is-confirmed {
    color: #14251b;
    background: #6bd5a0;
}

.raid-list-my-status.is-tentative {
    color: #2a2110;
    background: #e7c36c;
}

.raid-list-my-status.is-not-attending {
    color: #2a1414;
    background: #ef9292;
}

.raid-list-create-character {
    color: #d9b367;
    font-size: 11px;
    text-decoration: none;
}

.raid-list-create-character:hover {
    color: #f0d18a;
}

.raid-list-messages {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
}

.raid-list-message {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.035);
    color: #d8d4cc;
    font-size: 12px;
}

.raid-list-message.success {
    color: #a5d49d;
    border-color: rgba(107, 213, 160, 0.25);
    background: rgba(107, 213, 160, 0.06);
}

.raid-list-message.error {
    color: #f08b8b;
    border-color: rgba(239, 146, 146, 0.25);
    background: rgba(239, 146, 146, 0.06);
}

.raid-list-message.warning {
    color: #e7c36c;
    border-color: rgba(231, 195, 108, 0.25);
    background: rgba(231, 195, 108, 0.06);
}

@media (max-width: 1000px) {
    .raid-card.raid-card-compact {
        grid-template-columns: 58px minmax(140px, 1fr);
        gap: 12px;
    }

    .raid-card-side {
        grid-column: 2;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .raid-card-metrics {
        order: 2;
    }

    .raid-list-quick-signup {
        order: 1;
        justify-content: flex-start;
    }

    .raid-list-my-signup {
        order: 1;
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .raid-card.raid-card-compact {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .raid-date.raid-date-compact {
        width: 48px;
        min-width: 48px;
        min-height: 52px;
    }

    .raid-date-compact strong {
        font-size: 20px;
    }

    .raid-date-compact span {
        font-size: 9px;
    }

    .raid-card-title-row h2 {
        font-size: 15px;
    }

    .raid-card-description {
        font-size: 11px;
    }

    .raid-card-side {
        grid-column: 1 / -1;
        gap: 8px;
    }

    .raid-list-quick-signup {
        width: 100%;
        justify-content: flex-start;
    }

    .raid-list-player-select {
        flex: 1 1 120px;
        max-width: none;
    }

    .raid-list-role-select {
        flex: 0 0 78px;
    }

    .raid-card-metrics {
        width: 100%;
        justify-content: flex-end;
    }
}

/* =====================================================
   RAID LIST – BARVA PODLE STAVU PŘIHLÁŠKY
   Zelená: potvrzená účast
   Žlutá: možná účast
   Bez zvýraznění: bez přihlášky nebo stav „Nebudu“
   ===================================================== */

.raid-card.raid-card-compact.is-user-confirmed {
    border-color: rgba(107, 213, 160, 0.62);
    box-shadow: inset 0 0 0 1px rgba(107, 213, 160, 0.10);
}

.raid-card.raid-card-compact.is-user-tentative {
    border-color: rgba(229, 199, 127, 0.68);
    box-shadow: inset 0 0 0 1px rgba(229, 199, 127, 0.11);
}

.raid-card.raid-card-compact.is-user-confirmed:hover {
    border-color: rgba(107, 213, 160, 0.90);
    background: #1d2423;
}

.raid-card.raid-card-compact.is-user-tentative:hover {
    border-color: rgba(229, 199, 127, 0.95);
    background: #24221d;
}

/* Větší ikona zámku a účastníků */
.raid-card.raid-card-compact .raid-card-metrics {
    min-height: 37px;
    gap: 15px;
}

.raid-card.raid-card-compact .raid-list-lock {
    width: 35px;
    height: 35px;
}

.raid-card.raid-card-compact .raid-list-lock svg {
    width: 29px;
    height: 29px;
}

.raid-card.raid-card-compact .raid-list-participants {
    gap: 8px;
}

.raid-card.raid-card-compact .raid-list-participants svg {
    width: 29px;
    height: 29px;
}

.raid-card.raid-card-compact .raid-list-participants strong {
    font-size: 16px;
}

.raid-card.raid-card-compact .raid-card-enter {
    width: 34px;
    height: 34px;
}

.raid-card.raid-card-compact .raid-card-enter svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 600px) {
    .raid-card.raid-card-compact .raid-list-lock,
    .raid-card.raid-card-compact .raid-list-participants svg {
        width: 27px;
        height: 27px;
    }

    .raid-card.raid-card-compact .raid-list-lock svg,
    .raid-card.raid-card-compact .raid-list-participants svg {
        width: 25px;
        height: 25px;
    }

    .raid-card.raid-card-compact .raid-list-participants strong {
        font-size: 15px;
    }
}



/* HOME – zarovnání ikony zámku vedle stavu přihlašování */
.dashboard-page .featured-raid-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashboard-page .featured-raid-status .raid-lock-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
