.dmgc-dashboard{
    max-width:1200px;
    margin:30px auto;
    color:#fff;
}

.dmgc-header{
    background:#121212;
    border-radius:12px;
    overflow:hidden;
}

.dmgc-banner img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
}

.dmgc-logo{
    text-align:center;
    margin-top:-70px;
}

.dmgc-logo img{
    width:140px;
    height:140px;
    border-radius:50%;
    border:5px solid #1b1b1b;
    object-fit:cover;
    background:#222;
}

.dmgc-team-info{
    text-align:center;
    padding:20px;
}

.dmgc-team-info h2{
    margin:10px 0;
    font-size:34px;
}

.dmgc-team-id,
.dmgc-team-tag{
    display:inline-block;
    margin:5px;
    color:#ffcc00;
    font-weight:bold;
}

.dmgc-team-info p{
    color:#bbb;
    margin-top:12px;
}

.dmgc-players-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-top:30px;
}

.dmgc-player-card{
    background:#1b1b1b;
    border:1px solid #333;
    border-radius:12px;
    padding:20px;
    text-align:center;
}

.dmgc-player-photo{
    width:80px;
    height:80px;
    margin:0 auto 15px;
    border-radius:50%;
    background:#2a2a2a;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:32px;
}

.dmgc-invite-player{
    width:100%;
    padding:10px;
    margin-top:15px;
    border:none;
    border-radius:8px;
    cursor:pointer;
}

#dmgc-invite-popup{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    z-index:999999;
}

.dmgc-popup-box{
    width:420px;
    max-width:90%;
    background:#1b1b1b;
    border-radius:12px;
    padding:25px;
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    color:#fff;
    box-shadow:0 0 25px rgba(0,0,0,.5);
}

.dmgc-popup-box input{
    width:100%;
    padding:12px;
    margin:15px 0;
    border-radius:8px;
    border:none;
}

#dmgc-close-popup{
    margin-top:15px;
    padding:10px 18px;
    cursor:pointer;
}

#dmgc-player-results{
    min-height:120px;
    margin-top:15px;
}

.dmgc-account-button{
    position:relative;
    display:inline-block;
    font-family:inherit;
}

.dmgc-account-button details{
    position:relative;
}

.dmgc-account-button summary{
    list-style:none;
    cursor:pointer;
    color:#ffffff;
    font-size:16px;
    font-weight:700;
    padding:10px 15px;
    border-radius:8px;
    background:#1b1b1b;
    border:1px solid #333;
    user-select:none;
}

.dmgc-account-button summary::-webkit-details-marker{
    display:none;
}

.dmgc-account-dropdown{
    position:absolute;
    right:0;
    top:110%;
    width:220px;
    background:#1c1c1c;
    border:1px solid #333;
    border-radius:10px;
    overflow:hidden;
    z-index:99999;
    box-shadow:0 10px 30px rgba(0,0,0,.5);
}

.dmgc-account-dropdown a{
    display:block;
    color:#fff;
    text-decoration:none;
    padding:12px 15px;
    transition:.3s;
}

.dmgc-account-dropdown a:hover{
    background:#ff6a00;
    color:#fff;
}
.dmgc-player-card{
    position:relative;
    overflow:visible;
}

.dmgc-player-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
}

.dmgc-player-dropdown-menu{
    position:absolute;
    top:35px;
    right:10px;
    background:#1f232b;
    border:1px solid #2f3640;
    border-radius:10px;
    min-width:170px;
    z-index:9999;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.dmgc-player-dropdown-menu button{
    width:100%;
    padding:12px 15px;
    border:none;
    background:none;
    color:#fff;
    text-align:left;
    cursor:pointer;
}

.dmgc-player-dropdown-menu button:hover{
    background:#2d333b;
}

.dmgc-player-card{
    position:relative;
}

.dmgc-player-dropdown{
    display:none;
    position:absolute;
    top:42px;
    right:10px;
    width:170px;
    background:#1f232b;
    border:1px solid #333;
    border-radius:10px;
    overflow:hidden;
    z-index:999;
    box-shadow:0 8px 20px rgba(0,0,0,.35);
}

.dmgc-player-dropdown button{
    width:100%;
    background:none;
    border:none;
    color:#fff;
    padding:12px 15px;
    text-align:left;
    cursor:pointer;
    font-size:14px;
}

.dmgc-player-dropdown button:hover{
    background:#2d333b;
}

.dmgc-player-menu{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.dmgc-player-menu:hover,
.dmgc-player-menu:focus{
    background: transparent !important;
    box-shadow: none !important;
    outline: none;
}

/* ==========================
   Mobile Responsive
========================== */

@media (max-width:768px){

.dmgc-profile-toggle{

    max-width:130px;
    font-size:15px;

}

}

    .dmgc-header{
        display:flex;
        justify-content:space-between;
        align-items:center;
        padding:12px 15px;
    }

    .dmgc-profile-menu{
        position:relative;
        z-index:9999;
    }

    .dmgc-profile-dropdown{
        position:absolute;
        top:100%;
        right:0;
        width:220px;
        background:#1f232b;
        border-radius:10px;
        padding:10px 0;
    }

    .dmgc-profile-dropdown a{
        display:block;
        padding:12px 18px;
    }

    h1{
        font-size:34px !important;
        line-height:1.2;
    }

    .fluentform{
        padding:0 15px;
    }



.dmgc-profile-toggle{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
}

.dmgc-profile-toggle{
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* ==========================================
   DMGC PREMIUM PENDING INVITES
========================================== */

.dmgc-pending-invites {
    width: min(100% - 30px, 900px);
    margin: 50px auto;
    padding: 0;
    color: #fff;
}

.dmgc-pending-invites > h3 {
    margin: 0 0 28px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: .2px;
}


/* ==========================================
   INVITE CARD
========================================== */

.dmgc-pending-invites .dmgc-invite-item {
    position: relative;
    display: block;

    width: 100%;
    margin: 0 0 18px;
    padding: 25px 28px;

    box-sizing: border-box;

    background:
        linear-gradient(
            145deg,
            #25252b 0%,
            #17171c 100%
        );

    border: 1px solid rgba(255,193,7,.18);
    border-radius: 18px;

    box-shadow:
        0 12px 35px rgba(0,0,0,.28);

    transition:
        .25s ease;
}


.dmgc-pending-invites .dmgc-invite-item:hover {
    transform: translateY(-2px);

    border-color:
        rgba(255,193,7,.55);

    box-shadow:
        0 18px 45px rgba(0,0,0,.38);
}


/* ==========================================
   TEAM / REQUEST TITLE
========================================== */

.dmgc-pending-invites .dmgc-invite-item h4 {
    margin: 0 0 12px;

    color: #fff;

    font-size: 22px;
    font-weight: 800;
}


/* ==========================================
   TEXT
========================================== */

.dmgc-pending-invites .dmgc-invite-item p {
    margin: 6px 0;

    color: #9d9da5;

    font-size: 14px;
    line-height: 1.6;
}


.dmgc-pending-invites .dmgc-invite-item strong {
    color: #fff;
}


/* ==========================================
   STATUS
========================================== */

.dmgc-pending-invites .dmgc-invite-status {
    display: inline-flex;
    align-items: center;

    margin-top: 8px;
    padding: 6px 13px;

    border-radius: 50px;

    background:
        rgba(255,193,7,.08);

    border:
        1px solid rgba(255,193,7,.25);

    color: #ffc107;

    font-size: 12px;
    font-weight: 700;
}


/* ==========================================
   BUTTONS
========================================== */

.dmgc-pending-invites
.dmgc-accept-invite,

.dmgc-pending-invites
.dmgc-accept-team-request {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 105px;

    margin-top: 18px;
    padding: 11px 20px;

    border: 0;
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #ffd21a,
            #ffb700
        );

    color: #111;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    transition:
        .2s ease;
}


.dmgc-pending-invites
.dmgc-accept-invite:hover,

.dmgc-pending-invites
.dmgc-accept-team-request:hover {

    transform: translateY(-2px);

    box-shadow:
        0 7px 20px rgba(255,193,7,.25);
}


/* ==========================================
   REJECT
========================================== */

.dmgc-pending-invites
.dmgc-reject-invite,

.dmgc-pending-invites
.dmgc-reject-team-request {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 105px;

    margin-top: 18px;
    margin-left: 8px;

    padding: 10px 20px;

    border-radius: 10px;

    border: 1px solid rgba(255,255,255,.12);

    background:
        rgba(255,255,255,.05);

    color: #ddd;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        .2s ease;
}


.dmgc-pending-invites
.dmgc-reject-invite:hover,

.dmgc-pending-invites
.dmgc-reject-team-request:hover {

    background:
        rgba(255,70,70,.10);

    border-color:
        rgba(255,80,80,.35);

    color: #ff7777;
}


/* ==========================================
   OLD HR REMOVE
========================================== */

.dmgc-pending-invites .dmgc-invite-item + hr {
    display: none;
}


/* ==========================================
   EMPTY STATE
========================================== */

.dmgc-pending-invites > p {

    margin: 0;

    padding: 45px 25px;

    text-align: center;

    border:
        1px solid rgba(255,255,255,.07);

    border-radius: 16px;

    background:
        rgba(255,255,255,.035);

    color: #777;

    font-size: 15px;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .dmgc-pending-invites {
        width: calc(100% - 24px);
        margin: 30px auto;
    }

    .dmgc-pending-invites > h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .dmgc-pending-invites .dmgc-invite-item {
        padding: 20px;
        border-radius: 15px;
    }

    .dmgc-pending-invites
    .dmgc-invite-item h4 {
        font-size: 19px;
    }

    .dmgc-pending-invites
    .dmgc-accept-invite,

    .dmgc-pending-invites
    .dmgc-reject-invite,

    .dmgc-pending-invites
    .dmgc-accept-team-request,

    .dmgc-pending-invites
    .dmgc-reject-team-request {

        min-width: 90px;
        padding: 10px 15px;
        font-size: 12px;
    }

}

/* =========================================================
   DMGC ESPORTS - FRONTEND MASTER CSS
   Responsive: Desktop + Tablet + Mobile
========================================================= */


/* =========================================================
   GLOBAL
========================================================= */

.dmgc-dashboard,
.dmgc-dashboard *,
.dmgc-team-dashboard,
.dmgc-team-dashboard * {
    box-sizing: border-box;
}

.dmgc-dashboard,
.dmgc-team-dashboard {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    color: #ffffff;
    font-family: inherit;
}

.dmgc-dashboard img,
.dmgc-team-dashboard img {
    max-width: 100%;
    height: auto;
}

.dmgc-dashboard button,
.dmgc-team-dashboard button {
    font-family: inherit;
}


/* =========================================================
   TEAM HERO / BANNER
========================================================= */

.dmgc-team-header,
.dmgc-team-banner,
.dmgc-dashboard-team-header {

    width: 100%;
    min-height: 230px;

    display: flex;
    align-items: center;
    gap: 30px;

    padding: 35px 45px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(25,27,34,.98),
            rgba(12,13,17,.98)
        );

    border: 1px solid rgba(255,255,255,.07);

    overflow: hidden;

}


/* =========================================================
   TEAM LOGO
========================================================= */

.dmgc-team-header img,
.dmgc-team-logo img,
.dmgc-team-banner img {

    width: 120px;
    height: 120px;

    object-fit: cover;

    border-radius: 22px;

    border: 1px solid rgba(255,193,7,.30);

}


/* =========================================================
   TEAM TITLE
========================================================= */

.dmgc-team-heading,
.dmgc-team-header-content {

    min-width: 0;
    flex: 1;

}

.dmgc-team-heading h1,
.dmgc-team-header h1 {

    margin: 8px 0 !important;

    color: #ffffff !important;

    font-size: clamp(28px, 4vw, 48px) !important;

    line-height: 1.1 !important;

    font-weight: 800 !important;

}

.dmgc-team-label {

    color: #ffc107;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;

}

.dmgc-team-tag {

    color: #a7a7af;

    font-size: 15px;

}

.dmgc-team-status {

    display: inline-flex;

    margin-top: 12px;

    padding: 6px 14px;

    border-radius: 50px;

    background: rgba(55,214,133,.10);

    border: 1px solid rgba(55,214,133,.25);

    color: #42d88a;

    font-size: 12px;

    font-weight: 700;

}


/* =========================================================
   MY TEAM / MY TOURNAMENT TABS
========================================================= */

.dmgc-dashboard-tabs,
.dmgc-team-tabs,
.dmgc-tabs {

    width: 100%;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin: 25px 0;

}

.dmgc-dashboard-tabs button,
.dmgc-team-tabs button,
.dmgc-tabs button {

    width: 100%;

    min-height: 52px;

    padding: 13px 20px;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 14px;

    background: #202126;

    color: #9d9da4;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition: all .2s ease;

}

.dmgc-dashboard-tabs button:hover,
.dmgc-team-tabs button:hover,
.dmgc-tabs button:hover {

    color: #ffffff;

    border-color: rgba(255,193,7,.30);

}

.dmgc-dashboard-tabs button.active,
.dmgc-team-tabs button.active,
.dmgc-tabs button.active {

    background:
        linear-gradient(
            135deg,
            #ffc107,
            #ffb300
        );

    color: #111111;

    border-color: transparent;

    box-shadow:
        0 8px 25px rgba(255,193,7,.16);

}


/* =========================================================
   TEAM CONTENT WRAPPER
========================================================= */

.dmgc-my-team,
.dmgc-team-content,
.dmgc-team-panel {

    width: 100%;

}


/* =========================================================
   TEAM TOP INFORMATION
========================================================= */

.dmgc-team-info-card,
.dmgc-team-summary {

    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 20px;

    align-items: center;

    padding: 22px;

    margin-bottom: 20px;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #202126,
            #16171b
        );

    border: 1px solid rgba(255,255,255,.07);

}


/* =========================================================
   ROSTER SECTION
========================================================= */

.dmgc-team-roster-section {

    width: 100%;

    padding: 24px;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #1d1e23,
            #15161a
        );

    border: 1px solid rgba(255,255,255,.06);

}


.dmgc-team-roster-title {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 20px;

}


.dmgc-team-roster-title h2,
.dmgc-team-roster-section h2 {

    margin: 0 !important;

    color: #ffffff !important;

    font-size: 21px !important;

    font-weight: 800 !important;

}


/* =========================================================
   ROSTER GRID
========================================================= */

.dmgc-team-roster,
.dmgc-roster-grid,
.dmgc-team-players {

    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 16px;

}


/* =========================================================
   PLAYER CARD
========================================================= */

.dmgc-player-slot,
.dmgc-team-player-card,
.dmgc-roster-player,
.dmgc-player-card {

    position: relative;

    min-width: 0;

    min-height: 235px;

    padding: 20px 15px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #282b35,
            #191b21
        );

    border: 1px solid rgba(255,255,255,.08);

    overflow: hidden;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;

}


.dmgc-player-slot:hover,
.dmgc-team-player-card:hover,
.dmgc-roster-player:hover,
.dmgc-player-card:hover {

    transform: translateY(-3px);

    border-color:
        rgba(255,193,7,.35);

    box-shadow:
        0 15px 35px rgba(0,0,0,.28);

}


/* =========================================================
   PLAYER CARD TOP / POSITION
========================================================= */

.dmgc-player-position,
.dmgc-slot-position,
.dmgc-player-role {

    position: absolute;

    top: 13px;
    left: 13px;

    padding: 5px 9px;

    border-radius: 7px;

    background: rgba(255,255,255,.08);

    color: #bfc1c8;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .4px;

    text-transform: uppercase;

}


/* =========================================================
   THREE DOT MENU
========================================================= */

.dmgc-player-menu,
.dmgc-player-actions {

    position: absolute;

    top: 12px;
    right: 12px;

}


.dmgc-player-menu button,
.dmgc-player-actions button {

    width: 30px;
    height: 30px;

    padding: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    border-radius: 8px;

    background: rgba(255,255,255,.06);

    color: #ffffff;

    font-size: 17px;

    cursor: pointer;

}


/* =========================================================
   PLAYER AVATAR
========================================================= */

.dmgc-player-avatar,
.dmgc-slot-avatar {

    width: 72px;
    height: 72px;

    margin-bottom: 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #454954,
            #292c35
        );

    border: 1px solid rgba(255,255,255,.08);

    overflow: hidden;

}


.dmgc-player-avatar img,
.dmgc-slot-avatar img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

}


/* =========================================================
   DEFAULT USER ICON
========================================================= */

.dmgc-player-avatar .dashicons,
.dmgc-slot-avatar .dashicons {

    font-size: 32px;

    width: auto;
    height: auto;

    color: #009fe3;

}


/* =========================================================
   PLAYER NAME
========================================================= */

.dmgc-player-name,
.dmgc-player-slot h3,
.dmgc-team-player-card h3 {

    width: 100%;

    margin: 0 !important;

    color: #ffffff !important;

    font-size: 18px !important;

    line-height: 1.25 !important;

    font-weight: 800 !important;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}


/* =========================================================
   PLAYER USERNAME
========================================================= */

.dmgc-player-username,
.dmgc-player-card .username {

    margin-top: 5px;

    color: #8e919a;

    font-size: 12px;

}


/* =========================================================
   IGL BADGE
========================================================= */

.dmgc-igl-badge,
.dmgc-owner-badge {

    margin-top: 9px;

    padding: 5px 9px;

    border-radius: 7px;

    background: rgba(255,193,7,.10);

    border: 1px solid rgba(255,193,7,.20);

    color: #ffc107;

    font-size: 10px;

    font-weight: 800;

}


/* =========================================================
   AVAILABLE SLOT
========================================================= */

.dmgc-available-slot {

    position: relative;

    min-height: 235px;

    padding: 20px 15px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #20232b,
            #17191e
        );

    border: 1px dashed rgba(255,255,255,.14);

}


.dmgc-available-slot .dmgc-slot-plus {

    width: 55px;
    height: 55px;

    margin-bottom: 13px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #353944;

    color: #ffffff;

    font-size: 28px;

}


.dmgc-available-slot h3 {

    margin: 0 0 14px !important;

    color: #e9e9ed !important;

    font-size: 16px !important;

}


/* =========================================================
   INVITE BUTTON
========================================================= */

.dmgc-invite-player,
.dmgc-player-invite {

    width: 100%;

    min-height: 40px;

    margin-top: 12px;

    padding: 9px 12px;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #8d9dbc,
            #71809d
        );

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;

}


.dmgc-invite-player:hover,
.dmgc-player-invite:hover {

    background:
        linear-gradient(
            135deg,
            #ffc107,
            #ffb300
        );

    color: #111111;

}


/* =========================================================
   TEAM ACTIONS
========================================================= */

.dmgc-team-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 20px;

}


.dmgc-team-actions button {

    min-height: 42px;

    padding: 9px 17px;

    border-radius: 10px;

    border: 1px solid rgba(255,255,255,.08);

}


/* =========================================================
   EMPTY / NOTICE
========================================================= */

.dmgc-empty-state,
.dmgc-team-empty {

    width: 100%;

    padding: 40px 20px;

    text-align: center;

    border-radius: 16px;

    background: rgba(255,255,255,.025);

    border: 1px dashed rgba(255,255,255,.10);

    color: #858791;

}


/* =========================================================
   INVITE / TEAM POPUPS
========================================================= */

#dmgc-invite-popup,
#dmgc-player-dropdown {

    z-index: 999999;

}


/* =========================================================
   TABLET
   601px - 1024px
========================================================= */

@media (min-width: 601px) and (max-width: 1024px) {

    .dmgc-dashboard,
    .dmgc-team-dashboard {

        width: calc(100% - 32px);

    }


    .dmgc-team-header,
    .dmgc-team-banner,
    .dmgc-dashboard-team-header {

        padding: 28px;

        min-height: 200px;

    }


    .dmgc-team-header img,
    .dmgc-team-logo img,
    .dmgc-team-banner img {

        width: 95px;
        height: 95px;

    }


    .dmgc-team-heading h1,
    .dmgc-team-header h1 {

        font-size: 34px !important;

    }


    .dmgc-team-roster,
    .dmgc-roster-grid,
    .dmgc-team-players {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 14px;

    }


    .dmgc-player-slot,
    .dmgc-team-player-card,
    .dmgc-roster-player,
    .dmgc-player-card,
    .dmgc-available-slot {

        min-height: 220px;

    }

}


/* =========================================================
   MOBILE
   0 - 600px
========================================================= */

@media (max-width: 600px) {

    .dmgc-dashboard,
    .dmgc-team-dashboard {

        width: calc(100% - 24px);

        max-width: none;

    }


    /* TEAM HEADER */

    .dmgc-team-header,
    .dmgc-team-banner,
    .dmgc-dashboard-team-header {

        min-height: auto;

        padding: 22px 18px;

        flex-direction: column;

        align-items: center;

        text-align: center;

        gap: 15px;

        border-radius: 17px;

    }


    .dmgc-team-header img,
    .dmgc-team-logo img,
    .dmgc-team-banner img {

        width: 82px;
        height: 82px;

        border-radius: 17px;

    }


    .dmgc-team-heading h1,
    .dmgc-team-header h1 {

        font-size: 28px !important;

    }


    .dmgc-team-label {

        font-size: 9px;

        letter-spacing: 1.5px;

    }


    .dmgc-team-tag {

        font-size: 13px;

    }


    /* TABS */

    .dmgc-dashboard-tabs,
    .dmgc-team-tabs,
    .dmgc-tabs {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;

        margin: 18px 0;

    }


    .dmgc-dashboard-tabs button,
    .dmgc-team-tabs button,
    .dmgc-tabs button {

        min-height: 47px;

        padding: 10px 8px;

        border-radius: 11px;

        font-size: 12px;

    }


    /* SUMMARY */

    .dmgc-team-info-card,
    .dmgc-team-summary {

        grid-template-columns: 1fr;

        padding: 17px;

    }


    /* ROSTER SECTION */

    .dmgc-team-roster-section {

        padding: 15px;

        border-radius: 16px;

    }


    .dmgc-team-roster-title {

        margin-bottom: 15px;

    }


    .dmgc-team-roster-title h2,
    .dmgc-team-roster-section h2 {

        font-size: 18px !important;

    }


    /* ROSTER */

    .dmgc-team-roster,
    .dmgc-roster-grid,
    .dmgc-team-players {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;

    }


    /* PLAYER CARD */

    .dmgc-player-slot,
    .dmgc-team-player-card,
    .dmgc-roster-player,
    .dmgc-player-card {

        min-height: 185px;

        padding: 15px 10px;

        border-radius: 14px;

    }


    /* AVAILABLE */

    .dmgc-available-slot {

        min-height: 185px;

        padding: 15px 10px;

        border-radius: 14px;

    }


    .dmgc-player-avatar,
    .dmgc-slot-avatar {

        width: 57px;
        height: 57px;

        margin-bottom: 10px;

    }


    .dmgc-player-name,
    .dmgc-player-slot h3,
    .dmgc-team-player-card h3 {

        font-size: 14px !important;

    }


    .dmgc-player-username {

        font-size: 10px;

    }


    .dmgc-player-position,
    .dmgc-slot-position,
    .dmgc-player-role {

        top: 8px;
        left: 8px;

        padding: 4px 6px;

        font-size: 8px;

    }


    .dmgc-player-menu,
    .dmgc-player-actions {

        top: 8px;
        right: 7px;

    }


    .dmgc-player-menu button,
    .dmgc-player-actions button {

        width: 25px;
        height: 25px;

        font-size: 14px;

    }


    .dmgc-available-slot .dmgc-slot-plus {

        width: 45px;
        height: 45px;

        font-size: 22px;

    }


    .dmgc-available-slot h3 {

        font-size: 13px !important;

        margin-bottom: 8px !important;

    }


    .dmgc-invite-player,
    .dmgc-player-invite {

        min-height: 36px;

        margin-top: 8px;

        padding: 7px 5px;

        font-size: 10px;

        border-radius: 8px;

    }


    /* TEAM ACTIONS */

    .dmgc-team-actions {

        flex-direction: column;

    }


    .dmgc-team-actions button {

        width: 100%;

    }

}


/* =========================================================
   VERY SMALL MOBILE
   0 - 380px
========================================================= */

@media (max-width: 380px) {

    .dmgc-dashboard,
    .dmgc-team-dashboard {

        width: calc(100% - 16px);

    }


    .dmgc-team-roster,
    .dmgc-roster-grid,
    .dmgc-team-players {

        gap: 8px;

    }


    .dmgc-player-slot,
    .dmgc-team-player-card,
    .dmgc-roster-player,
    .dmgc-player-card,
    .dmgc-available-slot {

        min-height: 175px;

        padding-left: 7px;

        padding-right: 7px;

    }


    .dmgc-player-avatar,
    .dmgc-slot-avatar {

        width: 50px;
        height: 50px;

    }


    .dmgc-player-name,
    .dmgc-player-slot h3,
    .dmgc-team-player-card h3 {

        font-size: 13px !important;

    }


    .dmgc-invite-player,
    .dmgc-player-invite {

        font-size: 9px;

    }

}


/* =========================================================
   HIDE OVERFLOW / FIX WORDPRESS THEME CONFLICTS
========================================================= */

.dmgc-dashboard .dmgc-team-roster,
.dmgc-team-dashboard .dmgc-team-roster {

    overflow: visible;

}


.dmgc-dashboard h1,
.dmgc-dashboard h2,
.dmgc-dashboard h3,
.dmgc-team-dashboard h1,
.dmgc-team-dashboard h2,
.dmgc-team-dashboard h3 {

    word-break: normal;

}


/* =========================================================
   POPUP SHOULD ALWAYS STAY ABOVE DASHBOARD
========================================================= */

#dmgc-invite-popup {

    position: fixed !important;

}


/* =========================================================
   DESKTOP PLAYER CARDS - KEEP COMPACT
========================================================= */

@media (min-width: 1025px) {

    .dmgc-team-roster,
    .dmgc-roster-grid,
    .dmgc-team-players {

        grid-template-columns:
            repeat(5, minmax(0, 1fr));

        max-width: 100%;

    }


    .dmgc-player-slot,
    .dmgc-team-player-card,
    .dmgc-roster-player,
    .dmgc-player-card,
    .dmgc-available-slot {

        min-height: 220px;

    }

}
/* =========================================================
   FINAL SAFE UI OVERRIDES
   Existing invite + pending-invite styles are preserved.
========================================================= */
.dmgc-dashboard{width:min(1400px,calc(100% - 48px));max-width:1400px;margin:28px auto 70px;}
.dmgc-team-header{position:relative;width:100%;min-height:270px;overflow:hidden;border-radius:22px;background:#121318;border:1px solid rgba(255,255,255,.09);box-shadow:0 18px 50px rgba(0,0,0,.30);}
.dmgc-team-cover{position:absolute;inset:0;background-image:linear-gradient(90deg,rgba(8,10,14,.90) 0%,rgba(8,10,14,.52) 55%,rgba(8,10,14,.86) 100%),var(--dmgc-team-banner);background-position:center;background-size:cover;background-repeat:no-repeat;}
.dmgc-team-header-inner{position:relative;z-index:2;min-height:270px;width:100%;padding:32px 36px;display:flex;align-items:center;gap:25px;}
.dmgc-team-logo-wrap{flex:0 0 130px;width:130px;height:130px;padding:4px;border-radius:22px;background:rgba(8,9,13,.78);border:1px solid rgba(255,193,7,.30);box-shadow:0 12px 35px rgba(0,0,0,.35);}
.dmgc-team-logo-image{display:block;width:100%!important;height:100%!important;object-fit:cover;border-radius:18px;}
.dmgc-team-info{flex:1 1 auto;min-width:0;padding:0!important;text-align:left!important;}
.dmgc-team-kicker{display:block;margin-bottom:7px;color:#ffc107;font-size:10px;font-weight:800;letter-spacing:2px;}
.dmgc-team-info h2{margin:0 0 10px!important;color:#fff!important;font-size:clamp(28px,4vw,46px)!important;line-height:1.05!important;font-weight:800!important;}
.dmgc-team-meta-line{display:flex;flex-wrap:wrap;gap:7px;}
.dmgc-team-id,.dmgc-team-tag{display:inline-flex;align-items:center;min-height:26px;margin:0!important;padding:4px 9px;border-radius:7px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);color:#eee;font-size:11px;font-weight:700;}
.dmgc-team-id{color:#ffc107;}
.dmgc-team-info p{max-width:620px;margin:11px 0 0!important;color:#c5c7cc!important;font-size:13px;line-height:1.55;}
.dmgc-team-asset-controls{flex:0 0 175px;width:175px;display:flex;flex-direction:column;gap:8px;}
.dmgc-asset-button{position:relative;display:flex;align-items:center;justify-content:center;min-height:40px;padding:8px 10px;overflow:hidden;border-radius:9px;border:1px solid rgba(255,193,7,.24);background:rgba(8,9,13,.75);color:#fff;font-size:11px;font-weight:750;text-align:center;cursor:pointer;}
.dmgc-asset-button:hover{background:#ffc107;color:#111;}
.dmgc-asset-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;}
.dmgc-asset-status{min-height:15px;color:#72e49c;font-size:10px;text-align:center;}
.dmgc-tabs{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0 22px;}
.dmgc-tabs button{min-height:52px;width:100%;border-radius:13px;font-weight:800;}
.dmgc-players-grid{width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-top:0;}
.dmgc-player-card{position:relative;min-width:0;min-height:245px;padding:18px 14px 15px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border-radius:17px;background:linear-gradient(145deg,#262a34,#181a20);border:1px solid rgba(255,255,255,.08);overflow:visible;}
.dmgc-player-header{position:absolute;top:10px;left:10px;right:10px;z-index:20;}
.dmgc-player-photo{width:88px!important;height:88px!important;flex:0 0 88px;margin:14px auto 14px!important;border-radius:50%!important;overflow:hidden!important;display:flex!important;align-items:center;justify-content:center;background:#30343e!important;border:2px solid rgba(255,193,7,.20);}
.dmgc-player-photo img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;border-radius:50%!important;}
.dmgc-player-name{width:100%;margin:0!important;color:#fff!important;font-size:17px!important;line-height:1.25!important;font-weight:800!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.dmgc-invite-player{margin-top:12px!important;min-height:39px;border-radius:9px!important;background:linear-gradient(135deg,#8d9dbc,#71809d)!important;color:#fff!important;font-weight:750;cursor:pointer;}
.dmgc-invite-player:hover{background:linear-gradient(135deg,#ffc107,#ffb300)!important;color:#111!important;}
.dmgc-player-menu{position:absolute;top:0;right:0;z-index:30;width:30px;height:30px;border:0;border-radius:8px;background:rgba(255,255,255,.08);color:#fff;cursor:pointer;}
.dmgc-player-dropdown{position:absolute;top:34px;right:0;z-index:99999;width:175px;padding:6px;border-radius:11px;background:#20232b;border:1px solid rgba(255,255,255,.10);box-shadow:0 14px 35px rgba(0,0,0,.45);}
.dmgc-player-dropdown button{width:100%;display:block;padding:10px 11px;border:0;border-radius:7px;background:transparent;color:#fff;text-align:left;cursor:pointer;}
.dmgc-player-dropdown button:hover{background:rgba(255,193,7,.10);color:#ffc107;}
@media (min-width:601px) and (max-width:1024px){.dmgc-dashboard{width:calc(100% - 32px)}.dmgc-team-header-inner{min-height:230px;padding:25px}.dmgc-team-header{min-height:230px}.dmgc-team-logo-wrap{flex-basis:105px;width:105px;height:105px}.dmgc-team-asset-controls{flex-basis:150px;width:150px}.dmgc-players-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:600px){.dmgc-dashboard{width:calc(100% - 20px);margin:16px auto 45px}.dmgc-team-header{min-height:auto;border-radius:17px}.dmgc-team-header-inner{min-height:0;padding:22px 15px;display:grid;grid-template-columns:70px minmax(0,1fr);gap:13px;align-items:center}.dmgc-team-logo-wrap{width:70px;height:70px;flex:none;border-radius:14px}.dmgc-team-logo-image{border-radius:11px}.dmgc-team-kicker{font-size:7px;letter-spacing:1.2px}.dmgc-team-info h2{font-size:24px!important;margin-bottom:7px!important}.dmgc-team-id,.dmgc-team-tag{font-size:9px;min-height:22px;padding:3px 7px}.dmgc-team-info p{font-size:10px;line-height:1.4}.dmgc-team-asset-controls{grid-column:1/-1;width:100%;flex:none;display:grid;grid-template-columns:1fr 1fr;gap:7px}.dmgc-asset-button{min-height:36px;font-size:9px}.dmgc-asset-status{grid-column:1/-1}.dmgc-tabs{gap:8px;margin:14px 0 16px}.dmgc-tabs button{min-height:45px;padding:8px;font-size:12px;border-radius:10px}.dmgc-players-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.dmgc-player-card{min-height:205px;padding:13px 8px 11px;border-radius:14px}.dmgc-player-photo{width:68px!important;height:68px!important;flex-basis:68px;margin:12px auto 10px!important}.dmgc-player-name{font-size:14px!important}.dmgc-invite-player{min-height:34px;margin-top:9px!important;padding:7px 5px!important;font-size:10px}.dmgc-player-menu{width:26px;height:26px;font-size:14px}.dmgc-pending-invites{width:calc(100% - 12px)!important;margin:25px auto!important}.dmgc-pending-invites .dmgc-invite-item{padding:18px!important;border-radius:14px!important;}}
@media (max-width:380px){.dmgc-dashboard{width:calc(100% - 14px)}.dmgc-player-card{min-height:195px}.dmgc-player-photo{width:62px!important;height:62px!important;flex-basis:62px}.dmgc-player-name{font-size:13px!important;}}

/* =========================================================
   DMGC INVITE PLAYER POPUP - FINAL RESPONSIVE FIX
   Paste at the VERY END of frontend.css
========================================================= */


/* ---------------------------------------------------------
   POPUP OVERLAY
--------------------------------------------------------- */

#dmgc-invite-popup {
    position: fixed !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    padding: 20px !important;

    background: rgba(0, 0, 0, 0.82) !important;

    z-index: 999999 !important;

    overflow-y: auto !important;
}


/* ---------------------------------------------------------
   POPUP BOX
--------------------------------------------------------- */

#dmgc-invite-popup .dmgc-invite-modal {

    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: min(620px, calc(100vw - 40px));

    max-height: calc(100vh - 40px);

    display: flex;
    flex-direction: column;

    padding: 0;

    background:
        linear-gradient(
            145deg,
            #20242d,
            #111318
        );

    color: #ffffff;

    border: 1px solid rgba(255,255,255,.10);

    border-radius: 22px;

    box-shadow:
        0 30px 80px rgba(0,0,0,.65),
        0 0 0 1px rgba(255,193,7,.04);

    overflow: hidden;
}


/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.dmgc-invite-modal-header {

    position: relative;

    padding: 28px 30px 22px;

    background:
        linear-gradient(
            135deg,
            rgba(255,193,7,.08),
            transparent 60%
        );

    border-bottom: 1px solid rgba(255,255,255,.07);

}


.dmgc-invite-badge {

    display: inline-flex;

    align-items: center;

    padding: 6px 13px;

    margin-bottom: 10px;

    border-radius: 50px;

    background: rgba(255,193,7,.09);

    border: 1px solid rgba(255,193,7,.30);

    color: #ffc107;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

}


.dmgc-invite-modal-header h2 {

    margin: 0 !important;

    padding: 0 !important;

    color: #ffffff !important;

    font-size: 30px !important;

    line-height: 1.2 !important;

    font-weight: 800 !important;

}


.dmgc-invite-modal-header p {

    margin: 7px 0 0 !important;

    padding: 0 !important;

    color: #8f949f !important;

    font-size: 13px !important;

    line-height: 1.5 !important;

}


/* ---------------------------------------------------------
   CLOSE X
--------------------------------------------------------- */

.dmgc-invite-close {

    position: absolute;

    top: 20px;
    right: 20px;

    width: 38px;
    height: 38px;

    padding: 0 !important;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.08) !important;

    border-radius: 10px !important;

    background: rgba(255,255,255,.06) !important;

    color: #ffffff !important;

    font-size: 24px !important;

    line-height: 1 !important;

    cursor: pointer;

    transition: .2s ease;

}


.dmgc-invite-close:hover {

    background: rgba(255,193,7,.15) !important;

    border-color: rgba(255,193,7,.35) !important;

    color: #ffc107 !important;

}


/* ---------------------------------------------------------
   SEARCH WRAPPER
--------------------------------------------------------- */

.dmgc-invite-search {

    position: relative;

    margin: 20px 25px 15px;

}


.dmgc-invite-search-icon {

    position: absolute;

    top: 50%;
    left: 16px;

    transform: translateY(-50%);

    z-index: 2;

    font-size: 17px;

    pointer-events: none;

}


#dmgc-player-search {

    width: 100% !important;

    height: 52px !important;

    margin: 0 !important;

    padding: 0 48px 0 47px !important;

    display: block !important;

    border: 1px solid rgba(255,255,255,.10) !important;

    border-radius: 12px !important;

    outline: none !important;

    background: #f5f6f8 !important;

    color: #17181c !important;

    font-size: 15px !important;

    box-shadow: none !important;

}


#dmgc-player-search::placeholder {

    color: #777d87;

}


#dmgc-player-search:focus {

    border-color: rgba(255,193,7,.55) !important;

    box-shadow:
        0 0 0 3px rgba(255,193,7,.08) !important;

}


/* ---------------------------------------------------------
   SEARCH CLEAR
--------------------------------------------------------- */

.dmgc-invite-search-clear {

    position: absolute;

    top: 50%;
    right: 10px;

    transform: translateY(-50%);

    width: 32px;
    height: 32px;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 0 !important;

    border: none !important;

    border-radius: 8px !important;

    background: #e5e7eb !important;

    color: #222 !important;

    font-size: 20px !important;

    cursor: pointer;

}


/* ---------------------------------------------------------
   PLAYER RESULTS
--------------------------------------------------------- */

#dmgc-player-results {

    min-height: 120px;

    max-height: 340px;

    margin: 0 25px;

    padding: 0 2px 5px;

    overflow-y: auto;

}


/* scrollbar */

#dmgc-player-results::-webkit-scrollbar {

    width: 5px;

}

#dmgc-player-results::-webkit-scrollbar-track {

    background: transparent;

}

#dmgc-player-results::-webkit-scrollbar-thumb {

    background: rgba(255,255,255,.15);

    border-radius: 10px;

}


/* ---------------------------------------------------------
   EMPTY STATE
--------------------------------------------------------- */

.dmgc-invite-empty {

    min-height: 150px;

    padding: 25px 15px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    border-radius: 14px;

    background: rgba(255,255,255,.025);

    border: 1px dashed rgba(255,255,255,.09);

}


.dmgc-invite-empty-icon {

    width: 48px;
    height: 48px;

    margin-bottom: 10px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,.06);

    font-size: 22px;

}


.dmgc-invite-empty strong {

    display: block;

    color: #ffffff;

    font-size: 15px;

}


.dmgc-invite-empty span {

    display: block;

    margin-top: 5px;

    color: #858b96;

    font-size: 12px;

}


/* ---------------------------------------------------------
   PLAYER SEARCH RESULT CARD
--------------------------------------------------------- */

.dmgc-player-result,
.dmgc-invite-player-card,
.dmgc-player-search-result {

    width: 100%;

    min-height: 72px;

    margin-bottom: 10px;

    padding: 12px 14px;

    display: flex;

    align-items: center;

    gap: 13px;

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            #252932,
            #1a1c21
        );

    border: 1px solid rgba(255,255,255,.07);

}


/* ---------------------------------------------------------
   PLAYER RESULT IMAGE
--------------------------------------------------------- */

.dmgc-player-result img,
.dmgc-invite-player-card img,
.dmgc-player-search-result img {

    width: 48px !important;
    height: 48px !important;

    flex: 0 0 48px;

    object-fit: cover !important;

    border-radius: 50% !important;

    border: 1px solid rgba(255,193,7,.25);

}


/* ---------------------------------------------------------
   RESULT TEXT
--------------------------------------------------------- */

.dmgc-player-result-info,
.dmgc-invite-player-info {

    flex: 1;

    min-width: 0;

}


.dmgc-player-result-name,
.dmgc-invite-player-name {

    color: #ffffff;

    font-size: 14px;

    font-weight: 800;

}


.dmgc-player-result-username,
.dmgc-invite-player-username {

    margin-top: 3px;

    color: #8b909a;

    font-size: 11px;

}


/* ---------------------------------------------------------
   INVITE BUTTON
--------------------------------------------------------- */

.dmgc-send-invite {

    flex: 0 0 auto;

    min-width: 85px;

    min-height: 38px;

    padding: 8px 13px !important;

    border: none !important;

    border-radius: 9px !important;

    background:
        linear-gradient(
            135deg,
            #ffc107,
            #ffb300
        ) !important;

    color: #111111 !important;

    font-size: 12px !important;

    font-weight: 800 !important;

    cursor: pointer;

}


.dmgc-send-invite:hover {

    filter: brightness(1.06);

}


.dmgc-send-invite:disabled {

    opacity: .55;

    cursor: not-allowed;

}


/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.dmgc-invite-modal-footer {

    padding: 15px 25px 22px;

    border-top: 1px solid rgba(255,255,255,.06);

    display: flex;

    justify-content: flex-end;

}


.dmgc-invite-close-button {

    min-height: 40px;

    padding: 8px 18px !important;

    border: 1px solid rgba(255,255,255,.10) !important;

    border-radius: 9px !important;

    background: rgba(255,255,255,.06) !important;

    color: #ffffff !important;

    font-size: 12px !important;

    font-weight: 700 !important;

    cursor: pointer;

}


.dmgc-invite-close-button:hover {

    background: rgba(255,255,255,.10) !important;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    #dmgc-invite-popup {

        padding: 15px !important;

    }


    #dmgc-invite-popup .dmgc-invite-modal {

        width: min(560px, calc(100vw - 30px));

        max-height: calc(100vh - 30px);

        border-radius: 18px;

    }


    .dmgc-invite-modal-header {

        padding: 23px 22px 18px;

    }


    .dmgc-invite-modal-header h2 {

        font-size: 25px !important;

    }


    .dmgc-invite-search {

        margin: 16px 18px 12px;

    }


    #dmgc-player-results {

        margin: 0 18px;

    }


    .dmgc-invite-modal-footer {

        padding: 13px 18px 18px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

    #dmgc-invite-popup {

        padding: 10px !important;

    }


    #dmgc-invite-popup .dmgc-invite-modal {

        width: calc(100vw - 20px);

        max-height: calc(100vh - 20px);

        border-radius: 16px;

    }


    .dmgc-invite-modal-header {

        padding: 19px 17px 15px;

    }


    .dmgc-invite-badge {

        padding: 5px 10px;

        font-size: 8px;

        letter-spacing: 1.5px;

    }


    .dmgc-invite-modal-header h2 {

        font-size: 23px !important;

    }


    .dmgc-invite-modal-header p {

        max-width: 85%;

        font-size: 11px !important;

    }


    .dmgc-invite-close {

        top: 14px;
        right: 14px;

        width: 34px;
        height: 34px;

        font-size: 21px !important;

    }


    .dmgc-invite-search {

        margin: 14px 14px 10px;

    }


    #dmgc-player-search {

        height: 47px !important;

        padding-left: 43px !important;

        font-size: 13px !important;

    }


    #dmgc-player-results {

        max-height: 300px;

        margin: 0 14px;

    }


    .dmgc-invite-empty {

        min-height: 125px;

        padding: 18px 10px;

    }


    .dmgc-player-result,
    .dmgc-invite-player-card,
    .dmgc-player-search-result {

        min-height: 66px;

        padding: 9px;

        gap: 9px;

    }


    .dmgc-player-result img,
    .dmgc-invite-player-card img,
    .dmgc-player-search-result img {

        width: 42px !important;
        height: 42px !important;

        flex-basis: 42px;

    }


    .dmgc-player-result-name,
    .dmgc-invite-player-name {

        font-size: 12px;

    }


    .dmgc-player-result-username,
    .dmgc-invite-player-username {

        font-size: 9px;

    }


    .dmgc-send-invite {

        min-width: 68px;

        min-height: 34px;

        padding: 7px 8px !important;

        font-size: 10px !important;

    }


    .dmgc-invite-modal-footer {

        padding: 11px 14px 14px;

    }


    .dmgc-invite-close-button {

        width: 100%;

        min-height: 38px;

    }

}

/* =========================================================
   DMGC LOGIN / SIGN UP BUTTON
========================================================= */

.dmgc-login-signup,
.dmgc-login-button,
.login-signup-button,
a[href*="login"],
a[href*="sign-up"] {

    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    min-width: 170px;
    min-height: 48px;

    padding: 12px 24px !important;

    border: 1px solid rgba(255,193,7,.45) !important;

    border-radius: 12px !important;

    background:
        linear-gradient(
            135deg,
            #ffc107,
            #ffb300
        ) !important;

    color: #111111 !important;

    font-size: 14px !important;

    font-weight: 800 !important;

    letter-spacing: .3px;

    text-decoration: none !important;

    box-shadow:
        0 8px 25px rgba(255,193,7,.18),
        inset 0 1px 0 rgba(255,255,255,.25);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;

}


/* HOVER */

.dmgc-login-signup:hover,
.dmgc-login-button:hover,
.login-signup-button:hover,
a[href*="login"]:hover,
a[href*="sign-up"]:hover {

    color: #111111 !important;

    transform: translateY(-2px);

    filter: brightness(1.06);

    box-shadow:
        0 12px 30px rgba(255,193,7,.28),
        inset 0 1px 0 rgba(255,255,255,.3);

}


/* ACTIVE */

.dmgc-login-signup:active,
.dmgc-login-button:active,
.login-signup-button:active,
a[href*="login"]:active,
a[href*="sign-up"]:active {

    transform: translateY(0);

}


/* MOBILE */

@media (max-width: 480px) {

    .dmgc-login-signup,
    .dmgc-login-button,
    .login-signup-button,
    a[href*="login"],
    a[href*="sign-up"] {

        min-width: 150px;

        min-height: 44px;

        padding: 10px 18px !important;

        font-size: 13px !important;

        border-radius: 10px !important;

    }

}

/* ==========================================
   DMGC HEADER LOGIN / SIGN UP BUTTON
   ========================================== */

#dmgc-login-btn.dmgc-login-btn {

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 165px !important;
    height: 46px !important;

    padding: 0 24px !important;
    margin: 0 !important;

    box-sizing: border-box !important;

    /* Same yellow used by DMGC UI */
    background: #ffc107 !important;

    color: #111111 !important;

    border: 1px solid #e0a800 !important;

    border-radius: 8px !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;

    cursor: pointer !important;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.25) !important;

    transition:
        background-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease !important;

    appearance: none !important;
    -webkit-appearance: none !important;
}


/* Hover */

#dmgc-login-btn.dmgc-login-btn:hover {

    background: #ffca28 !important;

    color: #111111 !important;

    transform: translateY(-1px) !important;

    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.30) !important;
}


/* Click */

#dmgc-login-btn.dmgc-login-btn:active {

    transform: translateY(0) !important;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.22) !important;
}


/* Focus */

#dmgc-login-btn.dmgc-login-btn:focus {

    outline: none !important;

    box-shadow:
        0 0 0 2px rgba(255, 193, 7, .25),
        0 4px 12px rgba(0, 0, 0, .25) !important;
}


/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 1024px) {

    #dmgc-login-btn.dmgc-login-btn {

        min-width: 155px !important;
        height: 44px !important;

        padding: 0 21px !important;

        font-size: 13px !important;

    }

}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 767px) {

    #dmgc-login-btn.dmgc-login-btn {

        min-width: 145px !important;
        height: 42px !important;

        padding: 0 18px !important;

        font-size: 13px !important;

        border-radius: 8px !important;

    }

}


/* ==========================================
   SMALL MOBILE
   ========================================== */

@media (max-width: 480px) {

    #dmgc-login-btn.dmgc-login-btn {

        min-width: 135px !important;
        height: 40px !important;

        padding: 0 16px !important;

        font-size: 12px !important;

    }

}

/* =========================================================
   DMGC PLAYER CARDS
   ========================================================= */

.dmgc-players-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}


/* CARD */

.dmgc-player-card {
    position: relative;
    min-width: 0;
    min-height: 280px;

    padding: 18px;

    box-sizing: border-box;

    background:
        linear-gradient(
            145deg,
            #18202b 0%,
            #111720 100%
        );

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;

    display: flex;
    flex-direction: column;
    align-items: center;

    overflow: visible;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


/* CLICKABLE PLAYER */

.dmgc-player-card-clickable {
    cursor: pointer;
}


.dmgc-player-card-clickable:hover {
    transform: translateY(-3px);

    border-color: rgba(65,180,255,.55);

    box-shadow:
        0 12px 35px rgba(0,0,0,.35);
}


/* HEADER */

.dmgc-player-header {
    width: 100%;

    min-height: 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;
}


.dmgc-player-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}


.dmgc-badge-owner,
.dmgc-badge-igl {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 9px;

    border-radius: 6px;

    background: rgba(255,255,255,.08);

    color: #f5f7fa;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .3px;
}


/* MENU */

.dmgc-player-menu {
    width: 30px;
    height: 30px;

    border: 0;
    border-radius: 8px;

    background: rgba(255,255,255,.07);

    color: #fff;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}


.dmgc-player-menu:hover {
    background: rgba(255,255,255,.14);
}


/* PHOTO */

.dmgc-player-photo {
    width: 110px;
    height: 110px;

    margin: 8px auto 14px;

    border-radius: 50%;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #263447,
            #10151d
        );

    border: 2px solid rgba(255,255,255,.12);

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}


.dmgc-player-profile-image {
    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover !important;
    object-position: center !important;

    display: block !important;
}


.dmgc-default-avatar {
    font-size: 40px;

    color: rgba(255,255,255,.55);

    display: flex;
    align-items: center;
    justify-content: center;
}


/* NAME */

.dmgc-player-name {
    width: 100%;

    margin: 0;

    color: #fff;

    text-align: center;

    font-size: 17px;
    font-weight: 700;

    line-height: 1.25;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.dmgc-player-ign {
    margin-top: 5px;

    color: rgba(255,255,255,.55);

    font-size: 12px;

    text-align: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* INVITE */

.dmgc-invite-player {
    width: 100%;

    min-height: 38px;

    margin-top: auto;
    padding: 9px 12px;

    border: 0;
    border-radius: 9px;

    background: #ffc107;

    color: #111;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease;
}


.dmgc-invite-player:hover {
    background: #ffca28;

    transform: translateY(-1px);
}


/* =========================================================
   DMGC TEAM PLAYER ADMIN MENU
   ========================================================= */

.dmgc-player-card {
    position: relative !important;
    overflow: visible !important;
}

.dmgc-player-header {
    position: relative !important;
    width: 100% !important;
    min-height: 42px !important;

    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;

    box-sizing: border-box !important;
}


/* ---------------------------------------------------------
   3 DOT ADMIN BUTTON
   --------------------------------------------------------- */

.dmgc-player-menu {
    position: absolute !important;

    top: 2px !important;
    right: 2px !important;

    width: 36px !important;
    height: 36px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    border-radius: 10px !important;

    background: rgba(255,255,255,0.06) !important;

    color: #ffffff !important;

    font-size: 24px !important;
    font-weight: 800 !important;

    line-height: 1 !important;

    cursor: pointer !important;

    z-index: 100 !important;

    transition:
        background .2s ease,
        transform .2s ease !important;
}

.dmgc-player-menu:hover {
    background: rgba(255,255,255,0.14) !important;
    transform: scale(1.05) !important;
}

.dmgc-player-menu:active {
    transform: scale(.95) !important;
}


/* =========================================================
   ADMIN DROPDOWN
   ========================================================= */

.dmgc-player-card .dmgc-player-dropdown {

    position: absolute !important;

    top: 44px !important;
    right: 8px !important;

    width: 190px !important;

    display: none;

    padding: 8px !important;

    background: #171c25 !important;

    border: 1px solid rgba(255,255,255,.12) !important;

    border-radius: 12px !important;

    box-shadow:
        0 12px 35px rgba(0,0,0,.55) !important;

    z-index: 9999 !important;

    box-sizing: border-box !important;
}


/* Dropdown buttons */

.dmgc-player-card .dmgc-player-dropdown button {

    width: 100% !important;

    min-height: 42px !important;

    display: flex !important;

    align-items: center !important;

    gap: 8px !important;

    padding: 10px 12px !important;

    margin: 0 !important;

    border: 0 !important;

    border-radius: 8px !important;

    background: transparent !important;

    color: #ffffff !important;

    font-size: 14px !important;

    font-weight: 600 !important;

    text-align: left !important;

    cursor: pointer !important;

    box-sizing: border-box !important;
}


/* Make IGL */

.dmgc-player-card .dmgc-player-dropdown .dmgc-make-igl:hover {
    background: rgba(255,193,7,.14) !important;
    color: #ffc107 !important;
}


/* Remove */

.dmgc-player-card .dmgc-player-dropdown .dmgc-remove-player:hover {
    background: rgba(255,70,70,.12) !important;
    color: #ff6b6b !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .dmgc-player-menu {

        top: 0 !important;
        right: 0 !important;

        width: 34px !important;
        height: 34px !important;

        font-size: 22px !important;
    }

    .dmgc-player-card .dmgc-player-dropdown {

        top: 40px !important;
        right: 4px !important;

        width: 175px !important;
    }

    .dmgc-player-card .dmgc-player-dropdown button {

        min-height: 40px !important;

        padding: 9px 10px !important;

        font-size: 13px !important;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .dmgc-player-card .dmgc-player-dropdown {

        width: 165px !important;
    }

}


/* =========================================================
   PLAYER PROFILE POPUP
   ========================================================= */

.dmgc-player-profile-popup {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;
}


.dmgc-player-profile-popup.dmgc-popup-open {
    display: flex;
}


/* BACKDROP */

.dmgc-player-profile-overlay {
    position: absolute;

    inset: 0;

    background: rgba(0,0,0,.78);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* MODAL */

.dmgc-player-profile-modal {
    position: relative;

    z-index: 2;

    width: min(430px, 100%);

    max-height: calc(100vh - 40px);

    overflow-y: auto;

    background:
        linear-gradient(
            145deg,
            #1c1f23,
            #101214
        );

    border: 1px solid rgba(255,255,255,.12);

    border-radius: 20px;

    box-shadow:
        0 25px 80px rgba(0,0,0,.65);

    animation: dmgcProfilePopup .22s ease;
}


@keyframes dmgcProfilePopup {

    from {
        opacity: 0;
        transform: translateY(15px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* HEADER */

.dmgc-profile-modal-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 20px 22px;

    border-bottom: 1px solid rgba(255,255,255,.08);
}


.dmgc-profile-modal-header h2 {
    margin: 0;

    color: #fff;

    font-size: 20px;
    font-weight: 700;
}


.dmgc-profile-close {
    width: 36px;
    height: 36px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: rgba(255,255,255,.65);

    font-size: 30px;
    line-height: 1;

    cursor: pointer;
}


.dmgc-profile-close:hover {
    color: #fff;

    background: rgba(255,255,255,.08);
}


/* CONTENT */

.dmgc-profile-modal-content {
    padding: 24px;
}


/* POPUP PHOTO */

.dmgc-popup-player-photo {
    width: 150px;
    height: 150px;

    margin: 0 auto 20px;

    border-radius: 50%;

    overflow: hidden;

    background: #202832;

    border: 3px solid rgba(255,255,255,.12);

    box-shadow:
        0 10px 35px rgba(0,0,0,.35);

    display: flex;
    align-items: center;
    justify-content: center;
}


.dmgc-popup-player-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: none;
}


.dmgc-popup-default-photo {
    font-size: 55px;

    color: rgba(255,255,255,.45);
}


/* IGN */

.dmgc-popup-ign {
    margin: 0;

    color: #ffc107;

    text-align: center;

    font-size: 28px;
    font-weight: 800;

    letter-spacing: .3px;
}


/* NAME */

.dmgc-popup-name {
    margin: 7px 0 15px;

    color: rgba(255,255,255,.58);

    text-align: center;

    font-size: 16px;
}


/* ROLES */

.dmgc-popup-roles {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 8px;

    margin-bottom: 22px;
}


.dmgc-popup-role {
    padding: 7px 13px;

    border-radius: 999px;

    background: rgba(255,255,255,.85);

    color: #202020;

    font-size: 12px;
    font-weight: 700;
}


/* DETAILS */

.dmgc-popup-details {
    display: flex;

    flex-direction: column;

    gap: 2px;

    border-top: 1px solid rgba(255,255,255,.08);
}


.dmgc-popup-detail-row {
    display: grid;

    grid-template-columns: 32px 1fr auto;

    gap: 10px;

    align-items: center;

    min-height: 52px;

    border-bottom: 1px solid rgba(255,255,255,.06);
}


.dmgc-popup-detail-icon {
    font-size: 19px;

    opacity: .75;

    text-align: center;
}


.dmgc-popup-detail-label {
    color: rgba(255,255,255,.58);

    font-size: 13px;
}


.dmgc-popup-detail-row strong {
    max-width: 170px;

    color: #fff;

    font-size: 13px;

    text-align: right;

    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .dmgc-players-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 14px;
    }

    .dmgc-player-card {
        min-height: 270px;

        padding: 15px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .dmgc-players-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;
    }


    .dmgc-player-card {
        min-height: 245px;

        padding: 12px;

        border-radius: 13px;
    }


    .dmgc-player-photo {
        width: 82px;
        height: 82px;

        margin-bottom: 11px;
    }


    .dmgc-player-name {
        font-size: 14px;
    }


    .dmgc-player-ign {
        font-size: 11px;
    }


    .dmgc-badge-owner,
    .dmgc-badge-igl {
        padding: 4px 6px;

        font-size: 8px;
    }


    .dmgc-invite-player {
        font-size: 11px;

        min-height: 35px;
    }


    .dmgc-player-profile-modal {
        width: 100%;

        max-width: 390px;

        border-radius: 18px;
    }


    .dmgc-profile-modal-content {
        padding: 20px;
    }


    .dmgc-popup-player-photo {
        width: 125px;
        height: 125px;
    }


    .dmgc-popup-ign {
        font-size: 24px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .dmgc-players-grid {
        gap: 9px;
    }


    .dmgc-player-card {
        min-height: 225px;

        padding: 10px;
    }


    .dmgc-player-photo {
        width: 70px;
        height: 70px;
    }


    .dmgc-player-name {
        font-size: 13px;
    }


    .dmgc-invite-player {
        padding: 8px 6px;

        font-size: 10px;
    }


    .dmgc-profile-modal-content {
        padding: 17px;
    }


    .dmgc-popup-player-photo {
        width: 110px;
        height: 110px;
    }


    .dmgc-popup-ign {
        font-size: 22px;
    }


    .dmgc-popup-detail-row {
        grid-template-columns: 28px 1fr auto;

        min-height: 48px;
    }

}

/* =====================================================
   DMGC ADMIN MENU - FINAL FIX
   ===================================================== */

.dmgc-player-card {
    position: relative !important;
    overflow: visible !important;
}

.dmgc-player-menu {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;

    width: 36px !important;
    height: 36px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;

    border: 0 !important;
    border-radius: 9px !important;

    font-size: 24px !important;
    line-height: 1 !important;

    cursor: pointer !important;

    z-index: 99999 !important;
}


/* CLOSED */

.dmgc-player-card .dmgc-player-dropdown {
    position: absolute !important;

    top: 48px !important;
    right: 8px !important;

    width: 190px !important;

    padding: 7px !important;

    background: #171b23 !important;

    border: 1px solid rgba(255,255,255,.14) !important;

    border-radius: 12px !important;

    box-shadow: 0 15px 40px rgba(0,0,0,.65) !important;

    z-index: 100000 !important;

    display: none !important;
}


/* OPEN */

.dmgc-player-card .dmgc-player-dropdown.dmgc-menu-open {
    display: block !important;
}


/* BUTTONS */

.dmgc-player-dropdown button {
    width: 100% !important;

    min-height: 42px !important;

    display: flex !important;
    align-items: center !important;

    padding: 10px 12px !important;
    margin: 0 !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 8px !important;

    color: #fff !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    text-align: left !important;

    cursor: pointer !important;
}

.dmgc-player-dropdown .dmgc-make-igl:hover {
    background: rgba(255,193,7,.15) !important;
    color: #ffc107 !important;
}

.dmgc-player-dropdown .dmgc-remove-player:hover {
    background: rgba(255,70,70,.15) !important;
    color: #ff7070 !important;
}


@media (max-width: 767px) {

    .dmgc-player-menu {
        top: 6px !important;
        right: 6px !important;

        width: 34px !important;
        height: 34px !important;
    }

    .dmgc-player-card .dmgc-player-dropdown {
        top: 44px !important;
        right: 5px !important;

        width: 180px !important;
    }

}
/* =========================================================
   FINAL OVERRIDE — PLAYER BADGE + 3 DOT POSITION
   Paste this at the VERY BOTTOM of your CSS
   ========================================================= */

.dmgc-player-card {
    position: relative !important;
}


/* Header ko positioning reference banao */
.dmgc-player-card .dmgc-player-header {
    position: static !important;
}


/* IGL / OWNER ko card ke TOP par lock */
.dmgc-player-card .dmgc-player-badges {
    position: absolute !important;

    top: 18px !important;
    left: 18px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;

    gap: 5px !important;

    z-index: 100 !important;
}


/* 3 DOT ko bhi same TOP level par lock */
.dmgc-player-card .dmgc-player-menu {
    position: absolute !important;

    top: 12px !important;
    right: 12px !important;

    width: 36px !important;
    height: 36px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    z-index: 500 !important;
}


/* Dropdown 3-dot ke just neeche */
.dmgc-player-card .dmgc-player-dropdown {
    position: absolute !important;

    top: 55px !important;
    right: 12px !important;

    z-index: 99999 !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .dmgc-player-card .dmgc-player-badges {
        top: 14px !important;
        left: 14px !important;
    }

    .dmgc-player-card .dmgc-player-menu {
        top: 10px !important;
        right: 10px !important;

        width: 34px !important;
        height: 34px !important;
    }

    .dmgc-player-card .dmgc-player-dropdown {
        top: 50px !important;
        right: 10px !important;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .dmgc-player-card .dmgc-player-badges {
        top: 12px !important;
        left: 12px !important;
    }

    .dmgc-player-card .dmgc-player-menu {
        top: 9px !important;
        right: 9px !important;

        width: 33px !important;
        height: 33px !important;
    }

    .dmgc-player-card .dmgc-player-dropdown {
        top: 48px !important;
        right: 9px !important;
    }

}

/* =========================================================
   FINAL MOBILE FIX — ADMIN DROPDOWN STAY INSIDE CARD
   ========================================================= */

.dmgc-player-card {
    position: relative !important;
}


/* Dropdown ko card ke andar anchor karo */
.dmgc-player-card .dmgc-player-dropdown {
    position: absolute !important;

    top: 50px !important;
    right: 8px !important;
    left: auto !important;

    width: 190px !important;
    max-width: calc(100% - 16px) !important;

    min-width: 0 !important;

    margin: 0 !important;
    padding: 7px !important;

    box-sizing: border-box !important;

    background: #171c25 !important;

    border: 1px solid rgba(255,255,255,.14) !important;

    border-radius: 12px !important;

    box-shadow: 0 12px 30px rgba(0,0,0,.55) !important;

    z-index: 99999 !important;
}


/* Dropdown ke buttons bahar nahi jayenge */
.dmgc-player-card .dmgc-player-dropdown button {
    width: 100% !important;
    max-width: 100% !important;

    box-sizing: border-box !important;

    overflow: hidden !important;

    white-space: nowrap !important;

    text-overflow: ellipsis !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .dmgc-player-card .dmgc-player-dropdown {
        top: 48px !important;
        right: 8px !important;
        left: auto !important;

        width: 175px !important;
        max-width: calc(100% - 16px) !important;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .dmgc-player-card .dmgc-player-dropdown {
        top: 47px !important;
        right: 7px !important;
        left: auto !important;

        width: 165px !important;
        max-width: calc(100% - 14px) !important;
    }

}

/* =====================================================
   DMGC POPUP - IGL / OWNER BADGE PHOTO KE UPAR
   ===================================================== */

/* Roles container ko photo ke upar lao */
#dmgc-player-profile-popup .dmgc-popup-roles {

    display: flex !important;

    justify-content: center !important;
    align-items: center !important;

    gap: 8px !important;

    width: 100% !important;

    margin: 0 0 12px 0 !important;

    min-height: 30px !important;

    order: 1 !important;
}


/* Photo */
#dmgc-player-profile-popup .dmgc-popup-player-photo {

    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;

    justify-content: center !important;

    width: 100% !important;

    margin: 0 !important;

    order: 2 !important;
}


/* IGN */
#dmgc-player-profile-popup .dmgc-popup-ign {
    order: 3 !important;
}


/* Name */
#dmgc-player-profile-popup .dmgc-popup-name {
    order: 4 !important;
}


/* Role badge */
#dmgc-player-profile-popup .dmgc-popup-role {

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    padding: 6px 14px !important;

    min-height: 30px !important;

    border-radius: 20px !important;

    white-space: nowrap !important;

    font-size: 13px !important;

    font-weight: 700 !important;

    line-height: 1 !important;

    box-sizing: border-box !important;
}
/* =====================================================
   POPUP CONTENT ORDER
   ===================================================== */

#dmgc-player-profile-popup .dmgc-profile-modal-content {

    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;
}


/* Role -> Photo -> IGN -> Name -> Details */

#dmgc-player-profile-popup .dmgc-popup-roles {
    order: 1 !important;
}

#dmgc-player-profile-popup .dmgc-popup-player-photo {
    order: 2 !important;
}

#dmgc-player-profile-popup .dmgc-popup-ign {
    order: 3 !important;
}

#dmgc-player-profile-popup .dmgc-popup-name {
    order: 4 !important;
}

#dmgc-player-profile-popup .dmgc-popup-details {
    order: 5 !important;
}


/* =========================================================
   DMGC FINAL PLAYER PROFILE FIX
   ---------------------------------------------------------
   1. Owner badge -> ABOVE PHOTO
   2. IGL + Assaulter -> BELOW NAME (normal role area)
   3. Photo stays below Owner
   4. Mobile + desktop responsive
   5. 3-dot menu stays inside player card
   ========================================================= */

/* ---------- PLAYER CARD / 3 DOT ---------- */

.dmgc-player-card{
    position:relative !important;
    overflow:visible !important;
}

.dmgc-player-header{
    position:absolute !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    height:0 !important;
    min-height:0 !important;
    z-index:100 !important;
}

.dmgc-player-badges{
    position:absolute !important;
    top:10px !important;
    left:10px !important;
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    gap:5px !important;
    z-index:101 !important;
}

.dmgc-player-menu{
    position:absolute !important;
    top:10px !important;
    right:10px !important;
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    min-height:36px !important;
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    border:0 !important;
    border-radius:9px !important;
    background:rgba(255,255,255,.08) !important;
    color:#fff !important;
    font-size:24px !important;
    line-height:1 !important;
    z-index:102 !important;
}

/* Dropdown must remain inside card */
.dmgc-player-card .dmgc-player-dropdown{
    position:absolute !important;
    top:52px !important;
    right:10px !important;
    left:auto !important;
    width:190px !important;
    max-width:calc(100% - 20px) !important;
    box-sizing:border-box !important;
    z-index:999999 !important;
}

/* ---------- PROFILE POPUP ---------- */

#dmgc-player-profile-popup .dmgc-profile-modal-content{
    position:relative !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    box-sizing:border-box !important;
}

/*
   DOM order:
   Photo -> IGN -> Name -> Roles -> Details

   We intentionally display:
   Owner -> Photo -> IGN -> Name -> IGL/Assaulter -> Details
*/
#dmgc-player-profile-popup .dmgc-popup-player-photo{
    order:2 !important;
    position:relative !important;
    margin:10px auto 20px !important;
}

#dmgc-player-profile-popup .dmgc-popup-ign{
    order:3 !important;
}

#dmgc-player-profile-popup .dmgc-popup-name{
    order:4 !important;
}

/* Roles area stays AFTER name */
#dmgc-player-profile-popup .dmgc-popup-roles{
    order:5 !important;
    position:relative !important;
    width:100% !important;
    min-height:30px !important;
    margin:4px 0 18px !important;
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
}

/* Details stay at bottom */
#dmgc-player-profile-popup .dmgc-popup-details{
    order:6 !important;
    width:100% !important;
}

/*
   IMPORTANT:
   In the current popup, the role order is:
   1 = IGL
   2 = Assaulter
   3 = Owner

   Therefore only the 3rd badge is moved above the photo.
   IGL and Assaulter remain in the normal role row.
*/
#dmgc-player-profile-popup .dmgc-popup-roles .dmgc-popup-role:nth-child(3){
    position:absolute !important;
    left:50% !important;
    top:-128px !important;
    transform:translateX(-50%) !important;

    margin:0 !important;
    z-index:20 !important;

    padding:6px 15px !important;
    min-height:30px !important;
    border-radius:20px !important;

    background:rgba(255,193,7,.10) !important;
    border:1px solid rgba(255,193,7,.65) !important;
    color:#ffc107 !important;

    white-space:nowrap !important;
}

/* Normal IGL + Assaulter badges */
#dmgc-player-profile-popup .dmgc-popup-roles .dmgc-popup-role:nth-child(-n+2){
    position:relative !important;
    z-index:5 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    padding:6px 14px !important;
    min-height:30px !important;
    border-radius:20px !important;

    background:rgba(255,255,255,.85) !important;
    border:0 !important;
    color:#202020 !important;

    font-size:13px !important;
    font-weight:700 !important;
    line-height:1 !important;
    white-space:nowrap !important;
}

/* ---------- DESKTOP PHOTO ---------- */

#dmgc-player-profile-popup .dmgc-popup-player-photo{
    width:150px !important;
    height:150px !important;
}

/* ---------- MOBILE ---------- */

@media (max-width:767px){

    .dmgc-player-menu{
        top:8px !important;
        right:8px !important;
        width:34px !important;
        height:34px !important;
        min-width:34px !important;
        min-height:34px !important;
        font-size:22px !important;
    }

    .dmgc-player-badges{
        top:10px !important;
        left:10px !important;
    }

    .dmgc-player-card .dmgc-player-dropdown{
        top:46px !important;
        right:6px !important;
        width:175px !important;
        max-width:calc(100% - 12px) !important;
    }

    #dmgc-player-profile-popup .dmgc-profile-modal-content{
        padding:20px !important;
    }

    #dmgc-player-profile-popup .dmgc-popup-player-photo{
        width:125px !important;
        height:125px !important;
        margin:8px auto 18px !important;
    }

    /*
       Mobile: Owner sits immediately above the photo.
       The role row remains below the name.
    */
    #dmgc-player-profile-popup .dmgc-popup-roles .dmgc-popup-role:nth-child(3){
        top:-108px !important;
    }

}

@media (max-width:420px){

    #dmgc-player-profile-popup .dmgc-popup-player-photo{
        width:110px !important;
        height:110px !important;
    }

    #dmgc-player-profile-popup .dmgc-popup-roles{
        gap:6px !important;
        margin-bottom:15px !important;
    }

    #dmgc-player-profile-popup .dmgc-popup-roles .dmgc-popup-role:nth-child(-n+2){
        padding:6px 12px !important;
        font-size:12px !important;
    }

    #dmgc-player-profile-popup .dmgc-popup-roles .dmgc-popup-role:nth-child(3){
        top:-94px !important;
        padding:6px 13px !important;
        font-size:12px !important;
    }

}

/* Prevent the owner badge from affecting the normal role row */
#dmgc-player-profile-popup .dmgc-popup-roles .dmgc-popup-role:nth-child(3){
    pointer-events:none !important;
}

/* =========================================================
   DMGC PLAYER PROFILE POPUP
   CLEAN ORDER + OWNER BADGE
   ========================================================= */


/* =========================================================
   POPUP CONTENT
   ========================================================= */

#dmgc-player-profile-popup .dmgc-profile-modal-content {
    position: relative !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: center !important;
}


/* =========================================================
   NORMAL ORDER
   Photo
   IGN
   Name
   Roles
   Details
   ========================================================= */

#dmgc-player-profile-popup .dmgc-popup-player-photo {
    order: 1 !important;
}

#dmgc-player-profile-popup .dmgc-popup-ign {
    order: 2 !important;
}

#dmgc-player-profile-popup .dmgc-popup-name {
    order: 3 !important;
}


/* =========================================================
   NORMAL PLAYER ROLES
   IGL / ASSAULTER / SCOUT
   ========================================================= */

#dmgc-player-profile-popup .dmgc-popup-roles {

    order: 4 !important;

    display: flex;

    align-items: center !important;
    justify-content: center !important;

    flex-wrap: wrap !important;

    gap: 8px !important;

    width: 100% !important;

    margin: 10px 0 12px 0 !important;

    min-height: 30px !important;

    box-sizing: border-box !important;
}


/* =========================================================
   ROLE BADGES
   IGL / ASSAULTER / SCOUT
   ========================================================= */

#dmgc-player-profile-popup .dmgc-popup-role {

    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    padding: 6px 14px !important;

    min-height: 30px !important;

    border-radius: 20px !important;

    white-space: nowrap !important;

    font-size: 13px !important;
    font-weight: 700 !important;

    line-height: 1 !important;

    box-sizing: border-box !important;
}


/* =========================================================
   OWNER BADGE
   IMPORTANT:
   Default hidden.
   JS can show it using .show() / display:flex.
   Do NOT use !important on display.
   ========================================================= */

#dmgc-player-profile-popup #dmgc-popup-owner {

    display: none;

    align-items: center !important;
    justify-content: center !important;

    width: 100px !important;
    height: 34px !important;

    margin: -18px auto 0 !important;

    position: relative !important;

    z-index: 20 !important;

    box-sizing: border-box !important;

    border: 2px solid #d9a900 !important;

    border-radius: 20px !important;

    background: rgba(20, 20, 20, 0.92) !important;

    color: #f5c518 !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    line-height: 1 !important;

    text-align: center !important;

    box-shadow:
        0 0 10px rgba(218,169,0,.20),
        inset 0 0 8px rgba(218,169,0,.08) !important;
}


/* =========================================================
   OWNER BADGE POSITION
   Photo ke just neeche / overlap
   ========================================================= */

#dmgc-player-profile-popup .dmgc-popup-player-photo {

    position: relative !important;

    z-index: 5 !important;

    margin-bottom: 0 !important;
}


/* Owner badge ko thoda upar overlap */

#dmgc-player-profile-popup #dmgc-popup-owner {

    transform: translateY(-2px) !important;
}


/* =========================================================
   IGN GAP
   ========================================================= */

#dmgc-player-profile-popup .dmgc-popup-ign {

    margin-top: 10px !important;
}


/* =========================================================
   DETAILS
   ========================================================= */

#dmgc-player-profile-popup .dmgc-popup-details {

    order: 5 !important;

    width: 100% !important;

    box-sizing: border-box !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    #dmgc-player-profile-popup #dmgc-popup-owner {

        width: 92px !important;

        height: 32px !important;

        margin: -16px auto 0 !important;

        font-size: 13px !important;

        border-width: 2px !important;
    }


    #dmgc-player-profile-popup .dmgc-popup-ign {

        margin-top: 9px !important;
    }


    #dmgc-player-profile-popup .dmgc-popup-role {

        padding: 6px 13px !important;

        min-height: 30px !important;

        font-size: 13px !important;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    #dmgc-player-profile-popup #dmgc-popup-owner {

        width: 88px !important;

        height: 30px !important;

        font-size: 12px !important;
    }


    #dmgc-player-profile-popup .dmgc-popup-role {

        padding: 6px 12px !important;

        font-size: 12px !important;
    }

}