
:root {
    --background: #101116;
    --panel: #1a1b22;
    --panel-light: #22232b;
    --gold: #c9a45c;
    --gold-light: #e5c77f;
    --text: #e8e3d9;
    --muted: #92919a;
    --border: #35333a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(ellipse at top right, #30251b 0%, transparent 40%),
        var(--background);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* NAVIGACE */

.navbar {
    height: 82px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(16, 17, 22, 0.95);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
}

.brand-icon {
    color: var(--gold);
    font-size: 34px;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 2px;
    margin-top: 4px;
}

.gold {
    color: var(--gold);
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #c7c1b7;
    font-size: 18px;
}

nav a:hover {
    color: var(--gold-light);
}

.nav-button {
    border: 1px solid var(--gold);
    padding: 11px 19px;
    color: var(--gold-light);
}

/* OBSAH */

.container {
    width: 86%;
    max-width: 1450px;
    margin: auto;
}

/* HERO */

.welcome {
    min-height: 340px;
    margin-top: 45px;
    padding: 55px 65px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, #211c19 0%, #252026 60%, #171820 100%);
    border: 1px solid #524332;
    border-radius: 5px;
}

.eyebrow {
    color: var(--gold);
    letter-spacing: 3px;
    font-size: 11px;
    font-weight: 700;
}

.welcome h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: 2px;
    margin: 22px 0;
}

.welcome h1 span {
    color: var(--gold);
}

.welcome-text {
    color: #b6b1a9;
    max-width: 480px;
    line-height: 1.7;
}

.user-greeting {
    margin-top: 25px;
    color: var(--gold-light);
}

.login-placeholder {
    font-size: 12px;
    color: var(--muted);
}

.welcome-decoration {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.13;
}

.sword {
    font-size: clamp(120px, 20vw, 240px);
    color: var(--gold);
}

/* STATISTIKY */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 25px;
}

.stat-card {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 22px;
    border-radius: 4px;
}

.stat-label,
.stat-description {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.stat-card strong {
    display: block;
    font-size: 36px;
    color: var(--gold-light);
    margin: 12px 0 5px;
}

/* SEKCE */

.content-section {
    margin-top: 55px;
}

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

.section-heading h2 {
    margin: 7px 0;
    font-size: 25px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 4px;
}

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

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

.profile-info strong {
    margin-top: 9px;
}

.muted {
    color: var(--muted);
    font-size: 12px;
}

.coming-soon {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 2px;
}

.empty-state {
    text-align: center;
    padding: 45px 20px;
}

.empty-icon {
    font-size: 35px;
    color: var(--gold);
}

.empty-state h3 {
    color: var(--gold-light);
    margin-top: 18px;
}

.empty-state p {
    color: var(--muted);
    max-width: 550px;
    margin: auto;
    line-height: 1.7;
}

/* PATIČKA */

footer {
    text-align: center;
    padding: 55px 0 30px;
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 3px;
}

footer span {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 9px;
}

/* MOBILNÍ ZOBRAZENÍ */

@media (max-width: 850px) {

    .navbar {
        height: auto;
        padding: 20px 5%;
        flex-wrap: wrap;
        gap: 20px;
    }

    nav {
        flex-wrap: wrap;
        gap: 15px;
    }

    .container {
        width: 92%;
    }

    .welcome {
        padding: 35px 25px;
    }

    .welcome-decoration {
        right: 3%;
    }

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

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

@media (max-width: 480px) {

    .stats-grid,
    .profile-info {
        grid-template-columns: 1fr;
    }

    .welcome-decoration {
        display: none;
    }
}


/* NEJBLIŽŠÍ RAID NA HOMEPAGE */

.next-raid-card {
    border-color: #665233;
    background: linear-gradient(
        120deg,
        #211f20,
        #1a1b22
    );
}

.next-raid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid #35333a;
}

.next-raid-label {
    color: #c9a45c;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
}

.next-raid-header h3 {
    color: #e5c77f;
    font-size: 25px;
    margin: 10px 0 0;
}

.next-raid-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 25px 0;
}

.next-raid-item span,
.next-raid-item strong {
    display: block;
}

.next-raid-item span {
    color: #92919a;
    font-size: 12px;
    margin-bottom: 9px;
}

.next-raid-item strong {
    color: #e8e3d9;
    font-size: 14px;
}

.next-raid-description {
    padding: 15px 0;
    border-top: 1px solid #35333a;
    color: #aaa5a0;
    font-size: 13px;
    line-height: 1.6;
}

.next-raid-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid #35333a;
}

.next-raid-footer > span {
    color: #c9a45c;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 850px) {

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

}

@media (max-width: 480px) {

    .next-raid-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

}
/* ZLATE TLACITKO */

.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;
    text-decoration: none;
}

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

.rogue {
    color: #e8e3d9;
}

/* DISCORD LOGIN */

.discord-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: 15px;
    padding: 13px 24px;

    background: #5865F2;
    color: #ffffff;

    border: none;
    border-radius: 4px;

    font-size: 13px;
    font-weight: 700;

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

.discord-button:hover {
    background: #4752C4;
}

.discord-button span {
    font-size: 18px;
}


/* =====================================
   DISCORD USER NAVIGATION
===================================== */

.nav-login-form {
    margin: 0;
}

.discord-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 11px 17px;

    background: #5865F2;
    color: #ffffff;

    border: none;
    border-radius: 4px;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;
    white-space: nowrap;

    transition: background 0.2s ease;
}

.discord-nav-button:hover {
    background: #4752C4;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-left: 5px;
}

.nav-user-avatar {
    width: 45px;
    height: 45px;

    border-radius: 50%;
    object-fit: cover;

    border: 2px solid var(--gold);
    background: var(--panel-light);
}

.nav-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--gold-light);
    font-weight: 700;
    font-size: 16px;
}

.nav-user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;

    min-width: 75px;
}

.nav-user-details strong {
    color: var(--text);
    font-size: 16px;
    white-space: nowrap;
}

.nav-user-details small {
    color: var(--gold);
    font-size: 14px;
}

.logout-button {
    padding: 9px 12px;

    background: transparent;
    color: var(--muted);

    border: 1px solid var(--border);
    border-radius: 3px;

    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
}

.logout-button:hover {
    color: #ffffff;
    border-color: var(--gold);
}

/* RESPONSIVNI NAVIGATION */

@media (max-width: 850px) {

    .navbar {
        gap: 15px;
    }

    nav {
        gap: 15px;
    }

    .nav-user {
        flex-wrap: wrap;
    }

}

@media (max-width: 600px) {

    .nav-user-details {
        display: none;
    }

    .logout-button {
        padding: 8px;
    }

}


/* =====================================
   DISCORD LOGIN PROGRESS OVERLAY
===================================== */

.login-progress-overlay[hidden] {
    display: none !important;
}

.login-progress-overlay {
    position: fixed;
    inset: 0;

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

    background: rgba(8, 9, 13, 0.88);
    backdrop-filter: blur(6px);

    z-index: 10000;
}

.login-progress-card {
    width: 90%;
    max-width: 380px;

    padding: 40px 30px;

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

    text-align: center;

    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.5);
}

.login-progress-card h2 {
    color: #e5c77f;
    font-size: 22px;
    margin: 22px 0 10px;
}

.login-progress-card p {
    color: #e8e3d9;
    font-size: 14px;
    margin-bottom: 10px;
}

.login-progress-card > span {
    color: #92919a;
    font-size: 12px;
}

/* Animace načítání */

.login-spinner {
    width: 48px;
    height: 48px;

    margin: auto;

    border: 4px solid #45434b;
    border-top-color: #c9a45c;

    border-radius: 50%;

    animation: raid-spinner 0.9s linear infinite;
}

@keyframes raid-spinner {

    to {
        transform: rotate(360deg);
    }

}

/* ACCESS DENIED PAGE */

.access-denied-page {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.access-denied-card {
    width: 100%;
    max-width: 620px;
    padding: 45px 35px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 164, 89, 0.3);
    border-radius: 12px;
}

.access-denied-card h1 {
    margin: 15px 0;
}

.access-denied-card > p {
    line-height: 1.7;
}

.access-denied-role {
    margin: 25px 0;
    padding: 14px;
    border-radius: 8px;
    background: rgba(201, 164, 89, 0.08);
    color: #c9a459;
}

.access-denied-card .gold-button {
    display: inline-block;
    margin-top: 18px;
}

/* =====================================
   GLOBAL NOTIFICATIONS
===================================== */

.global-notifications {
    width: min(1440px, calc(100% - 48px));
    margin: 12px auto 0;

    display: flex;
    flex-direction: column;
    gap: 8px;

    position: relative;
    z-index: 100;
}


/* =====================================
   NOTIFICATION CARD
===================================== */

.global-notification {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    min-height: 48px;
    padding: 12px 16px 14px;

    color: #b9e9c4;
    background: #1d3025;

    border: 1px solid #426c4d;
    border-radius: 5px;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);

    opacity: 1;
    transform: translateY(0);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        max-height 0.35s ease,
        padding 0.35s ease;

    max-height: 100px;
}

.global-notification-message {
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
}


/* =====================================
   NOTIFICATION TYPES
===================================== */

.global-notification[data-level="success"] {
    color: #b9e9c4;
    background: #1d3025;
    border-color: #426c4d;
}

.global-notification[data-level="error"] {
    color: #ffc1c1;
    background: #351f22;
    border-color: #804249;
}

.global-notification[data-level="warning"] {
    color: #f5d99a;
    background: #342d1d;
    border-color: #796437;
}

.global-notification[data-level="info"] {
    color: #b9d9f7;
    background: #1e2c3c;
    border-color: #405c78;
}


/* =====================================
   CLOSE BUTTON
===================================== */

.notification-close {
    width: 26px;
    height: 26px;

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

    background: transparent;
    border: none;

    color: inherit;
    font-size: 21px;

    cursor: pointer;
    opacity: 0.7;
}

.notification-close:hover {
    opacity: 1;
}


/* =====================================
   AUTO DISMISS PROGRESS
===================================== */

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;

    height: 2px;
    width: 100%;

    background: currentColor;
    opacity: 0.55;

    transform-origin: left;
    animation: notification-countdown 5s linear forwards;
}

@keyframes notification-countdown {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}


/* =====================================
   DISMISS ANIMATION
===================================== */

.global-notification.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
}

@media (prefers-reduced-motion: reduce) {

    .global-notification,
    .notification-progress {
        animation: none;
        transition: none;
    }

}


/* =====================================
   DASHBOARD INTRO
===================================== */

.dashboard-page {
    padding-bottom: 45px;
}

.dashboard-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 22px;
}

.dashboard-intro h1 {
    margin: 5px 0;
    font-size: clamp(25px, 3vw, 35px);
}

.dashboard-intro .muted {
    margin-top: 8px;
}


/* =====================================
   MAIN RAID DASHBOARD
===================================== */

.dashboard-raid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(270px, 0.85fr);
    gap: 18px;
    margin-bottom: 22px;
    align-items: stretch;
}

.featured-raid-card,
.upcoming-raids-panel {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.045),
        rgba(255, 255, 255, 0.015)
    );

    border: 1px solid rgba(201, 164, 89, 0.2);
    border-radius: 11px;
}

.featured-raid-card {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.featured-raid-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.featured-raid-top .eyebrow,
.upcoming-raids-heading .eyebrow {
    color: #c9a459;
    font-size: 10px;
    letter-spacing: 1.3px;
    margin: 0 0 8px;
}

.featured-raid-top h2 {
    font-size: clamp(23px, 3vw, 31px);
    margin: 0;
}

.featured-target-group {
    display: inline-block;
    margin-top: 8px;
    color: #c9a459;
    font-size: 12px;
}

.featured-raid-status {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 5px;
    background: rgba(98, 201, 149, 0.1);
    color: #62c995;
    font-size: 11px;
}


/* =====================================
   RAID DATE
===================================== */

.featured-raid-datetime {
    display: flex;
    align-items: center;
    gap: 16px;
}

.featured-date-icon {
    width: 65px;
    height: 68px;
    border: 1px solid rgba(201, 164, 89, 0.35);
    border-radius: 8px;

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

    background: rgba(201, 164, 89, 0.07);
}

.featured-date-icon strong,
.featured-date-icon span {
    font-size: 25px;
    font-weight: 700;
    line-height: 1.1;
    color: #e4bd70;
}

.featured-date-icon small {
    margin-top: 4px;
    color: #aeb4c0;
    font-size: 10px;
}

.featured-datetime-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.featured-datetime-info strong {
    font-size: 15px;
}

.featured-datetime-info span {
    color: #aeb4c0;
    font-size: 12px;
}


/* =====================================
   PARTICIPANTS
===================================== */

.featured-raid-participants {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;

    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.featured-raid-participants > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.featured-raid-participants > div:first-child strong {
    font-size: 25px;
}

.featured-raid-participants > div:first-child span {
    color: #9da4b5;
    font-size: 11px;
}

.featured-role-counts {
    display: flex;
    gap: 18px;
}

.featured-role {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.featured-role strong {
    font-size: 20px;
}

.featured-role span {
    color: #aeb4c0;
    font-size: 10px;
}

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

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

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


/* =====================================
   USER SIGNUP ON FEATURED RAID
===================================== */

.featured-my-signup {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 13px;
    border-radius: 7px;
    background: rgba(98, 201, 149, 0.055);
    border: 1px solid rgba(98, 201, 149, 0.18);
}

.featured-my-signup-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #62c995;
    font-size: 11px;
}

.featured-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(98, 201, 149, 0.15);
}

.featured-character {
    display: flex;
    align-items: center;
    gap: 12px;
}

.featured-character .class-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.featured-character > div {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
}

.featured-character > div strong {
    font-size: 14px;
}

.featured-character > div span {
    color: #aeb4c0;
    font-size: 11px;
}

.featured-no-signup {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 7px;
    background: rgba(201, 164, 89, 0.06);
    color: #d5bd8c;
    font-size: 12px;
}

.featured-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #c9a459;
}


/* =====================================
   FEATURED RAID FOOTER
===================================== */

.featured-raid-footer {
    margin-top: auto;
}

.featured-raid-footer .gold-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.featured-empty {
    justify-content: center;
    min-height: 300px;
}

.featured-empty h2 {
    margin: 0;
}

.featured-empty p {
    margin: 0;
}


/* =====================================
   UPCOMING RAIDS SIDEBAR
===================================== */

.upcoming-raids-panel {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.upcoming-raids-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.upcoming-raids-heading h2 {
    margin: 0;
    font-size: 19px;
}

.upcoming-raids-icon {
    color: #c9a459;
    font-size: 24px;
}

.upcoming-raid-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 0;
    text-decoration: none;
    color: inherit;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.upcoming-raid-item:hover .upcoming-raid-info strong {
    color: #e4bd70;
}

.upcoming-raid-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 59px;
    min-width: 59px;
    height: 59px;

    border-radius: 6px;
    background: rgba(201, 164, 89, 0.08);
}

.upcoming-raid-date strong {
    color: #e4bd70;
    font-size: 18px;
}

.upcoming-raid-date span {
    color: #aeb4c0;
    font-size: 9px;
}

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

.upcoming-raid-info strong {
    font-size: 12px;
    transition: color 0.2s ease;
}

.upcoming-raid-info span,
.upcoming-raid-info small {
    color: #9da4b5;
    font-size: 10px;
}

.upcoming-raid-arrow {
    color: #c9a459;
    font-size: 23px;
}

.upcoming-raid-empty {
    flex: 1;
    display: flex;
    align-items: center;
    color: #9da4b5;
    font-size: 12px;
    min-height: 100px;
}

.upcoming-all-link {
    margin-top: auto;
    padding-top: 15px;
    color: #d9b367;
    text-decoration: none;
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.upcoming-all-link:hover {
    color: #f0d69d;
}


/* =====================================
   DASHBOARD ACCESS MESSAGE
===================================== */

.dashboard-access-notice {
    padding: 30px;
    border: 1px solid rgba(201, 164, 89, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    margin-bottom: 22px;
}

.dashboard-access-notice h2 {
    margin: 8px 0;
}

.dashboard-access-notice .eyebrow {
    color: #c9a459;
    font-size: 10px;
    letter-spacing: 1.2px;
}


/* =====================================
   DASHBOARD STATISTICS
===================================== */

.dashboard-stats {
    margin-top: 22px;
}


/* =====================================
   DASHBOARD CHARACTERS
===================================== */

.dashboard-characters {
    margin-top: 32px;
}

.dashboard-character-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-character-card {
    padding: 17px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 9px;

    display: flex;
    flex-direction: column;
    gap: 13px;

    min-width: 0;
    transition: border-color 0.2s ease;
}

.dashboard-character-card:hover {
    border-color: rgba(201, 164, 89, 0.3);
}

.dashboard-character-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

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

.dashboard-character-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.dashboard-character-info strong {
    font-size: 14px;
}

.dashboard-character-info span {
    color: #aeb4c0;
    font-size: 11px;
}

.dashboard-character-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 7px;

    color: #929aaa;
    font-size: 10px;
}

.main-character-badge {
    color: #e4bd70;
    font-weight: 600;
}

.secondary-character-label {
    color: #929aaa;
}

.character-edit-link {
    display: inline-block;
    margin-top: auto;
    color: #d9b367;
    text-decoration: none;
    font-size: 11px;
}

.character-edit-link:hover {
    color: #f0d69d;
}

.dashboard-add-character {
    margin-top: 18px;
}


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

@media (max-width: 950px) {

    .dashboard-raid-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-character-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .dashboard-intro {
        margin-top: 20px;
    }

    .featured-raid-card {
        padding: 17px;
    }

    .featured-raid-top {
        flex-direction: column;
    }

    .featured-raid-participants {
        align-items: flex-start;
        flex-direction: column;
    }

    .featured-role-counts {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-character-grid {
        grid-template-columns: 1fr;
    }

    .featured-character {
        flex-wrap: wrap;
    }

}

/* =====================================
   GLOBALNI ZVETSENI PISMA
   Navigace zustava beze zmeny.
===================================== */

main {
    font-size: 17px;
    line-height: 1.6;
}

/* Bezne texty a ovladaci prvky */
main p,
main li,
main label,
main input,
main select,
main textarea,
main button,
main a,
main .muted,
main .roster-member-info span,
main .player-info span {
    font-size: 17px !important;
}

/* Drobnejsi doplnkove informace */
main small {
    font-size: 16px !important;
}

/* Zachovani mensich stitku */
main .player-role,
main .attendance-status {
    font-size: 13px !important;
}

/* =====================================
   RAID SCHEDULE – VETSÍ TEXTY
===================================== */

.upcoming-raids-panel {
    font-size: 17px;
}

.upcoming-raid-item {
    font-size: 17px !important;
}

/* Informace v jednotlivych kartach */
.upcoming-raid-item p,
.upcoming-raid-item span,
.upcoming-raid-item strong,
.upcoming-raid-item a,
.upcoming-raid-item small,
.upcoming-raid-item div {
    font-size: 16px !important;
    line-height: 1.5;
}

/* Nadpisy raidů */
.upcoming-raid-item h3,
.upcoming-raid-item h4 {
    font-size: 19px !important;
    line-height: 1.4;
}

/* Nadpis sekce */
.upcoming-raids-panel h2,
.upcoming-raids-panel h3 {
    font-size: 22px !important;
}

/* Nastaveni hlavni postavy */

.character-main-button {
    padding: 8px 12px;
    border: 1px solid rgba(212, 175, 104, 0.45);
    border-radius: 7px;
    background: transparent;
    color: #d4af68;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.character-main-button:hover {
    background: rgba(212, 175, 104, 0.12);
}

/* =====================================
   IKONA HLAVNI POSTAVY V KARTE
===================================== */

.dashboard-character-card {
    position: relative;
}

.character-main-control {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 5;
}

.character-main-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: #a7a7a7;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.character-main-icon:hover {
    color: #d4af68;
    transform: scale(1.15);
}

.character-main-icon.is-main {
    color: #d4af68;
    cursor: default;
}


/* =====================================
   TLACITKO UPRAVIT POSTAVU
===================================== */

.character-edit-button {
    cursor: pointer;
}


/* =====================================
   MODALNI OKNO UPRAVY POSTAVY
===================================== */

.profile-edit-modal {
    width: min(560px, calc(100% - 32px));
    max-width: 560px;
    max-height: 85vh;
    margin: auto;
    padding: 0;
    overflow-y: auto;
    border: 1px solid rgba(212, 175, 104, 0.35);
    border-radius: 14px;
    background: #191817;
    color: #f1eee8;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}

.profile-edit-modal::backdrop {
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(4px);
}

.profile-modal-panel {
    padding: 28px;
}

.profile-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.profile-modal-header h2 {
    margin: 5px 0;
    font-size: 24px;
}

.profile-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    font-size: 25px;
    cursor: pointer;
}

.profile-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
}

.profile-modal-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 25px;
}

.profile-modal-actions button:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* Checkbox hlavní postavy */

.profile-edit-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #d4af68;
    vertical-align: middle;
}

@media (max-width: 600px) {

    .profile-modal-panel {
        padding: 20px;
    }

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

}

/* Tlačítko pro úpravu postavy */

.character-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 9px 18px;
    margin-top: 12px;
    font-size: 15px;
    cursor: pointer;
}

.character-edit-button:hover {
    transform: translateY(-1px);
}

/* Jednotný vzhled šipek ve všech select select polích */
select,
.raid-form select,
.profile-edit-form select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;

    padding-right: 44px !important;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e8e4dc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;

    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    background-size: 15px 15px !important;
}
