@font-face {
    font-family: 'WCFont';
    src: url('../fonts/LifeCraft_Font.ttf') format('woff2'), url('../fonts/LifeCraft_Font.ttf') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto.ttf') format('woff2'), url('../fonts/Roboto.ttf') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Euro';
    src: url('../fonts/euro.TTF') format('woff2'), url('../fonts/euro.TTF') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Site Wide */

body {
    margin: 0;
    padding: 0;
    background-color: #121212;
}

/* Header */

:root{
    --header-height: 46px;
}

.reg-header {
    display: flex;
    width: 100%;
    background-color: black;
    height: var(--header-height);
    align-items: center;
    
}

.header-left{
    display: flex;
    align-items: center;
}

.header-left > p{
    margin: 0;
    text-indent: 10px;
    padding: 5px 0;
    font-size: 26px;
    letter-spacing: 1px;
    color: #e4e4e4;
    font-family: fantasy;
}

.header-left > img{
    height: 32px;
    margin-left: 10px;
}

.header-center {
    display: flex;
    color: rgba(0, 116, 228, .7);
    font-size: 20px;
    height: 100%;
    padding-left: 80px;
    padding-right: 80px;
}

.header-center-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    user-select: none;
    cursor: pointer;
    transition: all linear 0s;
    -webkit-transition: all linear 0s;
}

.header-center-item > i{
    display: none;
}

.header-center-item:hover{
    background-image: linear-gradient(to right, #121212 0%, #212121 50%, #121212 100%);
}

.header-center-item:hover > p{
    color: #d49e3d;
}

.header-center-item > p{
    transition: all linear .38s;
    -webkit-transition: all linear .38s;
    color: #b5b5b5;
    font-size: 16px;
    font-family: Arial;
    margin: 0;
    letter-spacing: .9px;
    font-weight: 600;
}

.header-right{
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: 16px;
}

.header-right > a{
    text-decoration: none;
    color: #cfcfcf;
    font-family: Verdana;
    font-size: 16px;
}

.header-right > a > i{
    color: #1a7ae6;
    font-size: 20px;
    margin-right: 8px;
}

/* Register Area (Login) */

:root{
    --reg-margin: 0px;
    --reg-infoheight: 40px;
    --reg-infomargin: 10px;
}

.reg-body{
    width: 100%;
    margin: 0 auto;
    margin-top: var(--reg-margin);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: calc(100vh - var(--header-height) - var(--reg-margin) - var(--reg-margin));
    position: relative;
    align-items: center;
}

.reg-form {
    width: 50%;
    height: 400px;
    z-index: 2;
    background-color: #131615;
    background-image: repeating-linear-gradient( 90deg, rgba(255, 255, 255, 0.01) 0px, rgba(255, 255, 255, 0.01) 1px, transparent 1px, transparent 2px ),
    linear-gradient( 180deg, rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.01) 15%,
    rgba(0, 0, 0, 0.2) 65%,
    rgba(0, 0, 0, 0.6) 100%
    );
    background-blend-mode: overlay, normal;
    border: 2px solid #2e3542;
    outline: 2px solid #424b5b;
    outline-offset: -8px;
    border-radius: 6px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75), inset 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 116, 228, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.reg-bg {
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.reg-bg > img{
    width: 100%;
}

.reg-bg::before{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: .6;
}

.reg-info {
    margin: auto;
    width: calc(100% - 24px);
    height: calc(var(--reg-infoheight) + var(--reg-infomargin));
    margin-top: var(--reg-infomargin);
    border: 2px solid #2e3542;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75), inset 0 20px 80px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 116, 228, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.reg-info > p{
    margin: 0;
    color: #ededed;
    font-family: Verdana;
    font-size: 16px;
    letter-spacing: -.8px;
}

.reg-bnetlogin {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.reg-bnetlogin > p{
    margin: 0;
    color: white;
}

.reg-bnetlogin > a{
    background: linear-gradient(135deg, #003b80 0%, #0056b3 50%, #003b80 100%);
    display: flex;
    align-items: center;
    padding: 3px 0px 3px 10px;
    border-radius: 3px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 116, 228, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    cursor: pointer;
    text-decoration: none;
    margin: 0;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top: 2px solid rgba(255, 255, 255, 0.45);
    user-select: none;
}

.reg-bnetlogin > a:hover {
    background: linear-gradient(135deg, #004799 0%, #0066d6 50%, #004799 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 116, 228, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.reg-bnetlogin > a:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 116, 228, 0.3);
}

.reg-bnetlogin > a img{
    height: 32px;
}

.reg-bnetlogin > a >  p{
    color: white;
    font-family: Euro;
    font-size: 18px;
    text-indent: 18px;
    margin: 0;
    padding-right: 30px;
    font-weight: 600;
    letter-spacing: 1.75px;
}

.reg-divider {
    display: flex;
    justify-content: center;
    border: 2px solid #2e3542;
    outline: 2px solid #424b5b;
    outline-offset: -8px;
    border-radius: 6px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75), inset 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 116, 228, 0.1);
    height: 8px;
    width: calc(100% - 12px);
    position: relative;
    margin: auto;
}

.reg-divider > img{
    height: 38px;
    border: 4px solid #424b5b;
    border-radius: 50px;
    padding: 2px;
    background: radial-gradient(circle at center, #005cbf 0%, #06101e 80%);
    box-shadow: 0 0 25px rgba(0, 116, 228, 0.45);
    margin-top: -19px;
    z-index: 2;
}

.reg-guildinfo{
    flex: .33;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reg-guildinfo > p{
    margin: 0;
    color: #a9a9a9;
    font-size: 16px;
    font-family: Verdana;
    letter-spacing: -.8px;
}

.reg-disclogo {
    position: absolute;
    right: 10%;
    top: calc(50% - 48px);
}

.reg-disclogo > img{
    height: 64px;    
}

.reg-wowlogo {
    position: absolute;
    left: 10%;
    top: calc(50% - 48px);
}

.reg-wowlogo > img{
    height: 64px;    
}


/* User Header Area */

:root{
    --uh-height: 148px;
}

.uh-body{
    width: 100%;
    height: var(--uh-height);
    box-shadow: 0 0 20px #33363c;
    z-index: 1;
}

.uh-upper{
    max-width: 100%;
    height: calc(var(--uh-height) * 1);
    display: flex;
    background-image: url("/images/BG4.jpg");
    background-position: 0 35%;
    position: relative;
    background-size: 100%;
}

.uh-upper:before{
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, #0000007f 20%, #00000018 100%);
    opacity: 1;
}

.uh-upper > *{
    z-index: 2;
}

.uh-img {
    max-width: 200px;
    display: flex;
    align-items: center;
    margin: 0 30px;
    user-select: none;
}

.uh-img > img{
    height: 96px;
    border-radius: 50%;
    border: 10px solid #101010;
    outline: 1px solid #87974465;
    outline-offset: 5px;
    box-shadow: 0 0 25px #000000;
}

.uh-charinfo{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.uh-charname{
    color: #e0e0e0;
    font-size: 26px;
    font-family: Calibri;
}

.uh-charname > p{
    margin: 0;
}

.uh-char-items{
    display: flex;
    gap: 25px;
}

.uh-info{
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

.uh-info > p{
    margin: 0;
}

.uh-info > p:first-child{
    color: #9c9c9c;
    font-family: Arial;
    font-size: 15px;
}

.uh-info > p:last-child{
    color: #e0e0e0;
    font-family: Calibri;
    font-size: 18px;
    margin-top: 0px;
}

.uh-emblem{
    flex: 1;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    height: 100%;
    align-items: center;
    user-select: none;
}

.uh-emblem > img{
    margin-right: 2.5%;
    height: 35%;
}

/* MAIN STUFF */

main{
    display: flex;
    margin: 0;
    padding: 0;
}

.raid-dashboard-container,
.raid-dashboard-container *,
.rft-box,
.rft-box * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.raid-dashboard-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 12px;
    padding-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.raid-cards-grid-matrix {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.raid-row-container {
    position: relative;
    width: 100%;
    z-index: 1;
    cursor: pointer;
}

.raid-row-container:hover,
.raid-row-container:focus-within {
    z-index: 999 !important;
}

.raid-row-wrapper {
    display: flex;
    gap: 16px;
    width: 100%;
}

.left-details-card {
    flex: 1;
    position: relative;
    min-height: 110px;
    background-color: #15171eff;
    border: 1px solid #222630;
    overflow: visible !important;
    display: flex;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    min-width: 375px;
}

.raid-card-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 65%;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    opacity: 0.43;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
}

.raid-card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.raid-info-block {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.raid-card-title {
    font-size: 1.15rem; /* Upgraded text scale */
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.raid-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.card-badge {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Isolated Layer Streams for Roster Hovers */
.raid-metrics-row {
    display: flex;
    gap: 18px;
    margin-top: 2px;
    position: relative;
    z-index: 10;
}

.raid-role {
    position: relative;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    cursor: pointer;
    z-index: 20;
}

    .raid-role:hover {
        z-index: 50;
    }

.metric-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.metric-lbl {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8892b0;
    letter-spacing: 0.25px;
}
/* Increased label scale */

.raid-zone-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
}

.zone-name-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    user-select: none;
}

.zone-time-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #10b981;
    white-space: nowrap;
    user-select: none;
}

/* --- Right Card Component Layout --- */
.right-helper-card {
    flex: 0 0 380px; /* Aligns all desktop cards cleanly */
    max-width: 380px;
    background-color: #11131a;
    border: 1px solid #1e222d;
    border-radius: 8px;
    display: flex;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.helper-content-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
}

.helper-status-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.helper-status-active {
    color: #10b981;
    font-weight: 700;
    font-size: 0.95rem;
}

.helper-status-scheduled {
    color: #ee4242;
    font-weight: 700;
    font-size: 0.95rem;
}

.helper-boss-counter {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.9rem;
}

.helper-time-duration {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.9rem;
}

.raid-action-block {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.raid-apply-btn {
    height: 34px;
    padding: 0 20px;
    background-color: #f59e0b;
    border: none;
    border-radius: 4px;
    color: #000000;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.raid-apply-btn:hover {
    background-color: #d97706;
}

/* Left Border Highlight Trims */
.rft-highlight-barrows-deep {
    border-radius: 0 8px 8px 0;
    border-left: 3px solid #19419d9f !important;
}

.rft-highlight-hyjal-summit {
    border-radius: 0 8px 8px 0;
    border-left: 3px solid #176032 !important;
}

.rft-highlight-onyxia-lair {
    border-radius: 0 8px 8px 0;
    border-left: 3px solid #901a1abe !important;
}

.rft-highlight-warsong-gulch {
    border-radius: 0 8px 8px 0;
    border-left: 3px solid #dc2626 !important;
}

.rft-highlight-arathi-basin {
    border-radius: 0 8px 8px 0;
    border-left: 3px solid #d97706 !important;
}

.rft-highlight-alterac-valley {
    border-radius: 0 8px 8px 0;
    border-left: 3px solid #2563eb !important;
}

.rft-highlight-darkspear-islands {
    border-radius: 0 8px 8px 0;
    border-left: 3px solid #0d9488 !important;
}

.rft-highlight-battle-for-gilneas {
    border-radius: 0 8px 8px 0;
    border-left: 3px solid #4f46e5 !important;
}

.rft-highlight-world-pvp {
    border-radius: 0 8px 8px 0;
    border-left: 3px solid #9333ea !important;
}

/* --- Tooltip Engine Box --- */
.rft-box {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: max-content;
    min-width: 220px;
    padding: 10px;
    background-color: #1e293b;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 999999 !important; /* Locks tooltips on the top layer */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.raid-role:hover .rft-box {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.rft-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 4px;
    border-radius: 4px;
}

.rft-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .rft-icon > img {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

.rft-text {
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.rft-box::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #1e293b transparent;
}

.rf-c{
    flex: .7;
    height: 95%;
    margin: 10px 10px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.raid-dash-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.raid-dash-top > p:last-child{
    box-shadow: 0 0 15px #000000;
    cursor: pointer;

}

.raid-dash-top > p > a{
    background-color: #2563eb;
    color: white;
    padding: 4px 14px;
    font-family: Verdana;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
}

.rf-header{
    display: flex;
    justify-content: space-between;
}

.rf-toggle{
    display: flex;
    margin: 0 10px;
}

.rf-toggle > p:first-child{
    color: white;
    background-color: rgba(0, 116, 228, 0.8);
    padding: 8px 18px;
    font-size: 18px;
    border-bottom-left-radius: 20px;
    border-top-left-radius: 20px;
    font-family: Verdana;
    letter-spacing: 1.2px;
    user-select: none;
    cursor: pointer;
}

.rf-toggle > p:last-child{
    color: #d7d7d7;
    background-color: rgba(0, 116, 228, 0.15);
    padding: 8px 18px;
    font-size: 18px;
    border-bottom-right-radius: 20px;
    border-top-right-radius: 20px;
    font-family: Verdana;
    letter-spacing: 1.2px;
    user-select: none;
    cursor: pointer;
}

.rf-search{
    display: flex;
    align-items: center;
}

.rf-search > p{
    font-family: Roboto;
    color: #cfcfcf;
    font-size: 24px;
    margin: 0;
}

.rf-search > input{
    outline: none;
    border: none;
    background: #1e1e1e;
    font-size: 24px;
    margin-left: 10px;
    padding: 4px 0;
    font-family: Roboto;
    border-radius: 3px;
    color: #62bf05;
    width: 150px;
}

.rf-search > i{
    color: white;
    font-size: 20px;
    margin-left: 5px;
    color: #1c6bc7;
    cursor: pointer;
    padding: 8px 5px;
}

.rf-cur{
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 512px;
}

.rf-cur-box {
    height: 100%;
    width: 100%;
    background-color: #020d09;
    background-image: repeating-linear-gradient( 90deg, rgba(255, 255, 255, 0.01) 0px, rgba(255, 255, 255, 0.01) 1px, transparent 1px, transparent 2px ), linear-gradient( 180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 15%, rgba(0, 0, 0, 0.2) 65%, rgba(0, 0, 0, 0.6) 100% );

}

.rf-cur-raid {
    margin: 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border: 2px solid #2e3542;
    outline: 2px solid #424b5b;
    outline-offset: -7px;
    border-radius: 6px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75), inset 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 116, 228, 0.1);
}

.rf-cur-raid::before{
    content: '';
    width: 100%;
    height: 100%;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
    background-image: url("/images/MCBG.webp");
    opacity: .35;
}

.rf-cur-raid-title{
    width: 100%;
    position: relative;
    display: flex;
    margin-top: 4px;
}

.rf-cur-raid-title > p:first-child{
    margin: 0;
    color: #d3d3d3;
    font-family: Verdana;
    font-size: 20px;
    text-indent: 10px;
}

.rf-cur-raid-top{
    width: 100%;
    display: flex;
}

.rf-cur-raid-bot{
    display: flex;
    width: 100%;
}

.raid-type > img{
    width: 78px;
}

.rf-raid-tags{
    display: flex;
    flex: .3;
    margin: 0 0 10px 0;
    justify-content: space-evenly;
    align-items: center;
}

.rf-tag{
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.rf-tag::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-family: Roboto;
}

.rf-tag::after {
    content: "";
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.rf-tag:hover::before,
.rf-tag:hover::after,
.rf-tag:focus::before,
.rf-tag:focus::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.casual {
    background-color: #004799;
}

.fullc {
    background-color: #9330bf;
}

.mrd {
    background-color: #a34f00
}

.rf-apply{
    flex: 1;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    z-index: 1;
}

.rf-apply > p{
    background-image: linear-gradient(to right, #687087 0%, #728dbf 51%, #687087 100%);
    margin: 0 10px 4px 0;
    font-size: 18px;
    font-family: Arial;
    letter-spacing: 1.5px;
    padding: 2px 20px;
    border-radius: 12px;
    color: #ffffff;
    transition: 0.5s;
    background-size: 200% auto;
    box-shadow: 0 0 10px #a5a5a5;
    outline: 1px solid #424b5b;
    outline-offset: -3px;
    border: 1px solid rgba(0, 116, 228, 0.1);
    user-select: none;
    cursor: pointer;
}

.rf-apply > p:hover {
    background-position: right center;
    color: #fff;
    text-decoration: none;
    outline-offset: -1px;
}

.raid-role {
    position: relative; /* Anchor context for the absolute tooltip */
    cursor: pointer;
}

/* 2. The single Master Tooltip Box */
.rft-box {
    position: absolute;
    top: calc(100% + 10px); /* Changed from bottom to top to push it below the anchor */
    left: 50%;
    transform: translateX(-50%) translateY(-8px); /* Changed to negative shift to slide down smoothly */
    /* Layout engine to stack items vertically */
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: max-content; /* Automatically snaps width to fit your longest text line */
    min-width: 220px;
    padding: 10px;
    background-color: #1e293b; /* Dark sleek background */
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3);
    z-index: 100;
    /* Visibility Control */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* 3. The Hover Trigger Rule */
.raid-role:hover .rft-box {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.raid-role{
    z-index: 3;
}

.raid-role:hover{
    z-index: 4;
}

/* 4. Individual Icon + Text Rows */
.rft-item {
    display: flex;
    align-items: center; /* Vertically aligns icon perfectly centered with the text line */
    gap: 4px; /* Clean spacing between the icon and its text companion */
    padding: 2px 3px;
    border-radius: 4px;
}

/* 5. rft Media Elements */
.rft-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8; /* Accent light-blue color for icons */
    flex-shrink: 0; /* Prevents long text string blocks from compressing the icon size */
}

.rft-icon > img{
    width: 20px;
}

.rft-text {
    color: #f1f5f9;
    font-size: 14px;
    white-space: nowrap; /* Forces row entries to stay cleanly on a single line */
}

/* 6. Updated Pointer Arrow Triangle (Points upward now) */
.rft-box::after {
    content: "";
    position: absolute;
    bottom: 100%; /* Positioned on the top edge of the tooltip box */
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #1e293b transparent; /* Points up */
}

.char-body {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.char-c{
    margin: auto;
    width: 90%;
    height: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.char-c::before{
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    background-image: url("/images/CharBG.jpg");
    background-size: 100%;
    opacity: .3;
    box-shadow: 0 0 100px #424b5b;
    border: 5px solid rgba(0, 116, 228, 0.1);
    outline: 1px solid black;
    outline-offset: -10px;
}

.char-char {
    width: 500px;
    max-width: 50%;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 15px 0 0 15px;
    background-color: #2e35428c;
    border-radius: 3px;
    padding: 8px;
    outline: 3px solid black;
    box-shadow: 5px 5px 10px #ffffff28;
    z-index: 2;
    user-select: none;
    cursor: pointer;
    transition: all linear .33s;
    -webkit-transition: all linear .33s;
    position: relative;
}

.char-char > *{
    transition: all linear .33s;
    -webkit-transition: all linear .33s;
}

.char-char:hover{
    box-shadow: 5px 5px 10px #ffffff2e;
}

.char-char:hover > *{
    opacity: 1;
}

.char-faction-icon {
    height: 40px;
    background-image: linear-gradient(to bottom right, rgba(11, 39, 66, .5) 30%, rgba(255, 255, 255, .2) 50%, rgba(11, 39, 66, .5) 50%);
    padding: 4px;
    border-radius: 50%;
    box-shadow: 0 0 25px #6370897d;
    margin-left: 20px;
}

.char-icon {
    height: 88px;
    border-radius: 50%;
    border: 3px solid #c2bf49;
    opacity: .7;
}

.char-name{
    font-family: Arial;
    letter-spacing: .8px;
    font-size: 24px;
    color: #e5e5e5;
    opacity: .7;
}

.char-realm {
    position: absolute;
    right: 10px;
    top: 5px;
    z-index: 2;
    font-family: Verdana;
    margin: 0;
}

.char-pvp {
    color: #ea2c2c;
}

.char-class{
    height: 32px;
    position: absolute;
    bottom: 5px;
    right: 10px;
    border-radius: 50%;
}

/* RAID MENU STUFF */

.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998; 
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.sidebar-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 600px;
  width: 92%;
  height: 100vh;
  background-color: #1a1a1a;
  color: #fff;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5);
  z-index: 999; 
  
  transform: translateX(-100%); 
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-menu.is-active {
  transform: translateX(0);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #333;
}

.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 5px;
}

.menu-content {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.menu-content a {
  padding: 15px 0;
  text-decoration: none;
  color: #ddd;
  font-size: 1.2rem;
  border-bottom: 1px solid #222;
  transition: color 0.2s ease;
}

.menu-content a:hover {
  color: #f34b4b;
}

/* Filter Stuff */
.filter-c {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 95%;
    margin: 20px 20px 0 20px;
}

.filter-c > h3 {
    font-family: Arial;
    color: #676767
}

.filter-panel-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 10px;
    padding-left: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-sidebar {
    position: relative;
    width: 100%;
    max-width: 340px;
    background-color: #12141c;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 4px 4px;
    border: 1px solid #2d3345;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* 1. Lock .filter-sidebar width so it never shrinks when switching to PvP */
.filter-sidebar {
    width: 340px;
}

/* 2. Simple Toggle Box Outside Filter Sidebar */
.mode-toggle-box {
    display: flex;
    width: 340px;
    background-color: #08090d;
    border: 1px solid #2d3345;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.mode-toggle-box > p {
    flex: 1;
    margin: 0;
    padding: 8px 0;
    text-align: center;
    font-family: Verdana, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
}

.mode-toggle-box > p.active-raid {
    background-color: #2563eb;
    color: #ffffff;
}

.mode-toggle-box > p.active-pvp {
    background-color: #dc2626;
    color: #ffffff;
}

/* 3. Mobile Sizing for .mode-toggle-box (put inside @media screen and (max-width: 1024px)) */
@media screen and (min-width: 0) and (max-width: 1024px) {
    .filter-sidebar {
        width: 100%;
        max-width: 320px;
    }

    .mode-toggle-box {
        width: calc(100vw - 24px);
        margin: 10px 12px;
    }
}

.filter-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 75%);
    pointer-events: none;
    z-index: 1;
}

.filter-row {
    display: flex;
    gap: 10px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.filter-group-half {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.filter-group label, .filter-group-half label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.75px;
}


.search-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 38px;
    width: 100%;
}

.search-container input {
    width: 100%;
    height: 100%;
    padding: 0 38px 0 12px;
    background-color: #08090d;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
}

.search-container input::placeholder {
    color: #64748b;
}

.search-container input:focus {
    border-color: #3b82f6;
}

.search-container .search-icon {
    position: absolute;
    right: 12px;
    color: #94a3b8;
    font-size: 0.85rem;
}

.status-toggle {
    display: flex;
    background-color: #08090d;
    padding: 3px;
    border-radius: 6px;
    border: 1px solid #334155;
    height: 38px;
    width: 100%;
}

.toggle-btn {
    flex: 1;
    border: none;
    background: none;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.toggle-btn.active-tab {
    background-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

.filter-sidebar select, .filter-sidebar input[type="date"], .filter-sidebar input[type="time"] {
    height: 36px;
    padding: 0 10px;
    background-color: #08090d;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #f8fafc;
    font-size: 0.85rem;
    outline: none;
    width: 100%;
}

.filter-sidebar select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://w3.org' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 26px;
    cursor: pointer;
}

.checkbox-row {
    display: flex;
    gap: 16px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #f1f5f9;
    font-weight: 500;
}

.checkbox-item input {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #475569;
    border-radius: 4px;
    background-color: #08090d;
    display: grid;
    place-content: center;
    cursor: pointer;
}

.checkbox-item input:checked {
    border-color: #2563eb;
    background-color: #2563eb;
}

.checkbox-item input:checked::before {
    content: "";
    width: 8px;
    height: 5px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg) translate(1px, -1px);
}

.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tag-label {
    display: inline-block;
    padding: 5px 10px;
    background-color: #1e2230;
    border: 1px solid #334155;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #cbd5e1;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}

.tag-item input:checked + .tag-label {
    background-color: #2563eb;
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
}

.tag-label:hover {
    border-color: #64748b;
    color: #ffffff;
}

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

/* Desktop Hide Rules for mobile specific controls */
.mobile-close-btn, .filter-backdrop {
    display: none;
}

.mobile-filter-bubble {
    display: none; /* Hidden by default on desktop layout */
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Fixed Positioning Core Engine Elements */
    position: fixed !important;
    bottom: 24px !important;
    left: 24px !important;
    /* Layer Isolation Rules - Forces button above all cards and layouts */
    z-index: 999999 !important;
    /* Box Sizing Safeguards for mobile web-views */
    box-sizing: border-box !important;
    height: 46px !important;
    padding: 0 22px !important;
    /* Theme Colorization & Layout Elements */
    background-color: #2563eb !important;
    border: 1px solid #3b82f6 !important;
    border-radius: 30px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(37, 99, 235, 0.4) !important;
    cursor: pointer !important;
    /* Smooth Interactive Feedback animations */
    transition: transform 0.15s ease, background-color 0.15s ease !important;
    -webkit-tap-highlight-color: transparent;
}

/* HostRaid Stuff */

.hostraid-container {
    background: rgba(20, 20, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 768px;
    margin: 25px auto; 
    padding: 20px 40px 40px 40px;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.hostraid-container * {
    font-family: inherit;
    box-sizing: border-box;
}

.form-header {
    border-bottom: 1px solid rgba(63, 63, 70, 0.4);
    padding-bottom: 15px;
    margin-bottom: 0px;
}

.hostraid-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* ==================== HOST RAID / PVP MODE & FOOTER ADDITIONS ==================== */

.hostraid-header-stacked {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid rgba(63, 63, 70, 0.4);
    padding-bottom: 18px;
    margin-bottom: 0;
}

.hostraid-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Private Toggle Switch */
.privacy-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.privacy-label-text {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #a1a1aa !important;
}

.wc-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin: 0;
}

.wc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #050506;
    border: 1px solid rgba(63, 63, 70, 0.8);
    transition: 0.2s ease;
    border-radius: 24px;
}

.wc-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #71717a;
    transition: 0.2s ease;
    border-radius: 50%;
}

.wc-switch input:checked + .wc-slider {
    background-color: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
}

.wc-switch input:checked + .wc-slider:before {
    transform: translateX(20px);
    background-color: #f59e0b;
}

/* Large Raids vs PvP Switcher in HostRaid */
.mode-switcher-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background-color: #050506;
    border: 1px solid rgba(63, 63, 70, 0.8);
    border-radius: 12px;
    padding: 5px;
    width: 100%;
}

.mode-switch-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #a1a1aa;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-switch-btn:hover {
    color: #ffffff;
}

.mode-switch-btn.active[data-mode="raid"] {
    background-color: #f59e0b;
    color: #09090b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.mode-switch-btn.active[data-mode="pvp"] {
    background-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.mode-section-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grid-3-equal-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 640px) {
    .grid-3-equal-col {
        grid-template-columns: 1fr;
    }
}

/* Host Raid / PvP Button + My Role Dropdown Side-by-Side */
.hostraid-footer-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hostraid-footer-actions .submit-action-btn {
    flex: 1;
    width: auto;
}

.leader-role-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.leader-role-group .input-label {
    margin: 0;
    white-space: nowrap;
}

.hostraid-container .leader-role-group select {
    width: auto !important;
    min-width: 120px;
    padding: 13px 16px;
}

.raid-manage-btn {
    height: 34px;
    padding: 0 20px;
    background-color: #2563eb;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.raid-manage-btn:hover {
    background-color: #1d4ed8;
    color: #ffffff;
}

@media (max-width: 640px) {
    .hostraid-footer-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .leader-role-group {
        justify-content: space-between;
    }

    .hostraid-container .leader-role-group select {
        flex: 1;
    }
}

@media screen and (min-width: 0) and (max-width: 1024px) {
    .filter-c {
        margin: 0;
        width: 0; /* Keeps .filter-c from pushing .rf-c off-screen */
    }

    .mode-toggle-box {
        position: absolute;
        top: 12px;
        left: 12px;
        width: calc(100vw - 24px);
        margin: 0;
        z-index: 10;
    }

    .rf-c {
        flex: 1;
        padding-top: 56px; /* Leaves clean space at the top for .mode-toggle-box */
    }
}

/* Filter Sidebar Top Raids / PvP Full-Width Toggle */
.filter-mode-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 100%;
    max-width: 340px;
    background-color: #08090d;
    border: 1px solid #2d3345;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.filter-mode-btn {
    padding: 9px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-mode-btn:hover {
    color: #ffffff;
}

.filter-mode-btn.active[data-mode="raid"] {
    background-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.filter-mode-btn.active[data-mode="pvp"] {
    background-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.filter-mode-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Private Toggle Switch */
.privacy-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.privacy-label-text {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #a1a1aa !important;
}

.wc-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin: 0;
}

.wc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #050506;
    border: 1px solid rgba(63, 63, 70, 0.8);
    transition: 0.2s ease;
    border-radius: 24px;
}

.wc-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #71717a;
    transition: 0.2s ease;
    border-radius: 50%;
}

.wc-switch input:checked + .wc-slider {
    background-color: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
}

.wc-switch input:checked + .wc-slider:before {
    transform: translateX(20px);
    background-color: #f59e0b;
}

/* Host Raid Button + My Role Dropdown Side-by-Side */
.hostraid-footer-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hostraid-footer-actions .submit-action-btn {
    flex: 1;
    width: auto;
}

.leader-role-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.leader-role-group .input-label {
    margin: 0;
    white-space: nowrap;
}

.hostraid-container .leader-role-group select {
    width: auto !important;
    min-width: 120px;
    padding: 13px 16px;
}

@media (max-width: 640px) {
    .hostraid-footer-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .leader-role-group {
        justify-content: space-between;
    }

    .hostraid-container .leader-role-group select {
        flex: 1;
    }
}

.form-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #f59e0b !important;
}

.form-step-space {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grid-3-col {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 640px) {
    .grid-3-col, .grid-2-col {
        grid-template-columns: 1fr;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    display: block;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #a1a1aa !important;
}

.hostraid-container input[type="text"],
.hostraid-container input[type="date"],
.hostraid-container input[type="time"],
.hostraid-container input[type="number"],
.hostraid-container select {
    width: 100%;
    background-color: #050506 !important;
    border: 1px solid rgba(63, 63, 70, 0.8) !important;
    color: #ffffff !important; 
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
}

.hostraid-container input:focus,
.hostraid-container select:focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.comp-roster-panel {
    background-color: rgba(5, 5, 6, 0.5);
    border: 1px solid rgba(63, 63, 70, 0.3);
    border-radius: 12px;
    padding: 20px;
}
.roster-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.roster-item {
    text-align: center;
}
.roster-item span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #71717a !important;
}
.roster-item .tank-input { color: #38bdf8 !important; border-color: rgba(56, 189, 248, 0.4) !important; }
.roster-item .healer-input { color: #34d399 !important; border-color: rgba(52, 211, 153, 0.4) !important; }
.roster-item .dps-input { color: #f87171 !important; border-color: rgba(248, 113, 113, 0.4) !important; }

.hostraid-container input[type="number"] { -moz-appearance: textfield; }
.hostraid-container input[type="number"]::-webkit-outer-spin-button,
.hostraid-container input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.raid-tag-btn {
    background: #050506 !important;
    border: 1px solid rgba(63, 63, 70, 0.6) !important;
    color: #a1a1aa !important;
    cursor: pointer;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.raid-tag-btn:hover {
    border-color: #a1a1aa !important;
    color: #f4f4f5 !important;
}

.raid-tag-btn.active {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.08) !important;
}

.submit-btn-container {
    padding-top: 10px;
}
.submit-action-btn {
    width: 100%;
    background-color: #f59e0b !important;
    color: #09090b !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}
.submit-action-btn:hover {
    background-color: #d97706 !important;
}

.toast-stack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    max-width: 350px;
    width: calc(100% - 48px);
}

.wcraid-toast {
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(12px);
    border-left: 4px solid #ef4444; /* Alert red */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #fcfcfc;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.1), opacity 0.25s ease;
    font-family: Verdana;
}

.wcraid-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.raid-dash-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.raid-dash-title-group .dashboard-section-title {
    margin-bottom: 0;
}

.scheduled-date-subtitle {
    margin: 0 0 10px 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f59e0b;
    letter-spacing: 0.3px;
}

.raids-loader-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    width: 100%;
}

.typing-dots {
    display: flex;
    gap: 6px;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: #f59e0b;
    user-select: none;
}

.typing-dots span {
    animation: dotBounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        opacity: 0.25;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-8px);
    }
}

.no-raids-alert {
    color: #94a3b8;
    padding: 30px;
    text-align: center;
    font-size: 0.95rem;
}

/* ================= Quick Apply Spec Dropdown / Mobile Modal ================= */
.quick-apply-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 11, 0.72);
    z-index: 1400;
}

.quick-apply-menu {
    position: fixed;
    z-index: 1500;
    width: 210px;
    background-color: #131722;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.quick-apply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid #262c3d;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
}

.quick-apply-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.quick-apply-close:hover {
    color: #f8fafc;
}

.quick-apply-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.quick-apply-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    background-color: #0d111a;
    border: 1px solid #262c3d;
    border-radius: 5px;
    color: #f1f5f9;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.quick-apply-option:hover {
    border-color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.12);
}

.quick-apply-option img {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    flex-shrink: 0;
}

.raid-apply-btn.applied-state {
    background-color: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
    cursor: default;
}

.drawer-groups-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawer-group-card {
    position: relative;
    display: block;
    border: 1px solid #2d3345;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    padding: 0 !important;
    background-color: #131722;
    transition: border-color 0.15s ease, transform 0.12s ease;
}

.drawer-group-card:hover {
    border-color: #f59e0b;
    transform: translateX(3px);
}

.drawer-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.28;
    pointer-events: none;
}

.drawer-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 14, 20, 0.85) 0%, rgba(11, 14, 20, 0.55) 100%);
    pointer-events: none;
}

.drawer-card-body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.drawer-spec-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #475569;
    flex-shrink: 0;
}

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

.drawer-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.drawer-card-title {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-badge-leader {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.18);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
    flex-shrink: 0;
}

.drawer-badge-type {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(37, 99, 235, 0.18);
    color: #60a5fa;
    border: 1px solid rgba(37, 99, 235, 0.4);
    flex-shrink: 0;
}

.drawer-card-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 0.74rem;
    color: #94a3b8;
}

.drawer-card-time {
    color: #10b981;
    font-weight: 700;
}

/* Mobile Dialog Box Override */
@media (max-width: 768px) {
    .quick-apply-menu {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%);
        width: 290px;
        max-width: 88vw;
        padding: 14px;
    }

    .quick-apply-option {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}


/* Mobile responsive override positioning layout */
@media (max-width: 640px) {
    .toast-stack {
        bottom: auto;
        right: 24px;
        left: 24px;
        top: 24px;
    }
    .wcraid-toast {
        transform: translateY(-20px);
    }
    .wcraid-toast.show {
        transform: translateY(0);
    }
}


@media screen and (max-width: 480px) {
    .zone-name-text {
        display: none;
    }
    /* Drop background labels text metrics on small widths */
}

@media screen and (min-width: 0) and (max-width: 1024px){
    .rf-c{
        flex: 1;
    }

    .raid-row-container {
        height: 112px;
        overflow: visible;
    }

    /* Decouples the row layout from the calculation tree so it scales smoothly */
    .raid-row-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 12px; /* Perfect separated gap layout matching wireframe */
        border-radius: 8px;
        /* Clear platform scrolling artifacts */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .raid-row-wrapper::-webkit-scrollbar {
        display: none;
    }

    /* Left card fills up the whole width minus the peeking channel block */
    .left-details-card {
        width: calc(100% - 40px) !important;
        flex: 0 0 calc(100% - 40px) !important;
        scroll-snap-align: start;
    }

    /* Helper card overflows perfectly, creating the peeking layout on the right edge */
    .right-helper-card {
        width: calc(100% - 64px) !important;
        flex: 0 0 calc(100% - 64px) !important;
        max-width: none !important;
        scroll-snap-align: end;
    }

    .zone-name-text {
        display: none;
    }

    :root {
        --header-height: 64px;
    }

    .header-left{
        width: 64px;
        justify-content: center;
    }

    .header-left > p{
        display: none;
    }

    .header-left > img{
        height: 36px;
        margin-left: 0;
    }

    .header-center {
        color: rgb(124 128 148);
        font-size: 22px;
        background-image: unset;
        padding-left: 0;
        padding-right: 0;
        flex: 1;
        justify-content: space-evenly;
    }

    .header-center-item{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        user-select: none;
        cursor: pointer;
    }

    .header-center-item > p{
        display: none;
    }

    .header-center-item > i{
        display: initial;
        padding: 0 8px;
    }

    .header-center-item:hover{
        background-image: unset;
    }

    .header-right{
        flex: unset;
        width: 64px;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-right: 16px;
    }

    .header-right > a{
        text-decoration: none;
        color: #cfcfcf;
        font-family: Verdana;
        font-size: 16px;
    }

    .header-right > a > i{
        color: #1a7ae6;
        font-size: 20px;
        margin-right: 8px;
    }

    .header-right > a > span{
        display: none;
    }

    /* Register Area (Login) */

    :root{
        --reg-margin: 0px;
        --reg-infoheight: 72px;
        --reg-infomargin: 10px;
    }

    .reg-body{
        width: 100%;
        margin: 0 auto;
        margin-top: var(--reg-margin);
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        height: calc(100vh - var(--header-height) - var(--reg-margin) - var(--reg-margin));
        position: relative;
        align-items: center;
    }

    .reg-form {
        width: 75%;
        height: 90%;
    }

    .reg-bg {
        display: flex;
    }

    .reg-info > p{
        font-size: 20px;
    }

    .reg-bnetlogin > a:hover {
        all: unset;
    }

    .reg-bnetlogin > a:active {
        all: unset;
    }

    .reg-bnetlogin > a img{
        height: 48px;
    }

    .reg-bnetlogin > a >  p{
        font-size: 22px;
    }

    .reg-divider > img{
        height: 60px;
        margin-top: -30px;
    }

    .reg-guildinfo{
        flex: .33;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .reg-guildinfo > p{
        font-size: 20px;
    }

    .reg-disclogo {
        right: calc(33% - 40px);
        top: 150px;
    }

    .reg-disclogo > img{
        width: 80px;    
    }

    .reg-wowlogo {
        right: calc(66% - 40px);
        top: 150px;
        left: unset;
    }

    .reg-wowlogo > img{
        width: 80px;   
    }


    /* User Header Area */

    :root{
        --uh-height: 100px;
    }

    .uh-body{
        border-radius: unset;
        box-shadow: 0 0 10px #33363c;
    }

    .uh-upper{
        background-position: unset;
        background-size: 150%;
    }

    .uh-upper:before{
        background-image: linear-gradient(to right, #000000b9 20%, #00000051 100%);
    }

    .uh-img {
        margin: 0 15px;
    }

    .uh-img > img{
        height: 62px;
        outline: unset;
        box-shadow: 0 0 15px #000000;
    }

    .uh-charinfo{
        margin-left: 8px;
    }

    .uh-charname{
        font-size: 20px;
    }

    .uh-char-items{
        gap: 22px;
    }

    .uh-info{
        margin-top: 5px;
    }

    .uh-info > p:first-child{
        font-size: 14px;
    }

    .uh-info > p:last-child{
        font-size: 16px;
    }

    .uh-emblem{
        display: none;
    }

    /* MAIN STUFF */

    /* Filters */
    .filter-c{
        margin: 0;
    }

    .filter-panel-title {
        display: none;
    }

    /* Transform Sidebar Panel into a Sliding Off-Canvas Bottom-to-Top or Side Drawer */
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 9999;
        max-width: 320px;
        height: 100vh;
        border-radius: 0 12px 12px 0;
        border-left: none;
        border-top: none;
        border-bottom: none;
        overflow-y: auto;
        padding-top: 60px; /* Make space for the absolute close mark icon button */
        
        /* Smooth Hardware-Accelerated Sliding Animation Pipeline CSS */
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Active Visibility Slide class mapped via JavaScript class triggers */
    .filter-sidebar.drawer-open {
        transform: translateX(0);
    }

    /* Absolute Placement Close Cross Button */
    .mobile-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 14px;
        right: 14px;
        width: 32px;
        height: 32px;
        background-color: #08090d;
        border: 1px solid #334155;
        border-radius: 6px;
        color: #94a3b8;
        font-size: 1.1rem;
        cursor: pointer;
        z-index: 5;
    }

    /* Absolute Ambient Bottom Left Floating Filter Bubble Button */
    .mobile-filter-bubble {
        display: flex !important; /* Forces layout assembly engines to render item */
    }

    .mobile-filter-bubble:active {
        transform: scale(0.95);
        background-color: #1d4ed8;
    }

    /* Mobile Translucent Screen Backdrop dimming layer */
    .filter-backdrop {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(3px);
        z-index: 9998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .filter-backdrop.backdrop-active {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
}

.class-color-druid {
    color: #FF7C0A !important;
}

.class-color-hunter {
    color: #AAD372 !important;
}

.class-color-mage {
    color: #3FC7EB !important;
}

.class-color-paladin {
    color: #F48CBA !important;
}

.class-color-priest {
    color: #FFFFFF !important;
}

.class-color-rogue {
    color: #FFF468 !important;
}

.class-color-shaman {
    color: #0070DD !important;
}

.class-color-warlock {
    color: #8788EE !important;
}

.class-color-warrior {
    color: #C69B6D !important;
}