/* Tactical team dashboard presentation. Functionality remains unchanged. */
.etn-mw4-dashboard {
    --mw4-green: #74ef4b;
    --mw4-green-bright: #98ff65;
    --mw4-green-dark: #235f2b;
    --mw4-panel: rgba(7, 14, 12, 0.94);
    --mw4-panel-soft: rgba(12, 23, 19, 0.9);
    --mw4-line: rgba(151, 255, 111, 0.25);
    --mw4-text: #eff5ef;
    --mw4-muted: #89978f;
    position: relative;
    max-width: 1440px;
    margin: 30px auto;
    padding: 22px;
    color: var(--mw4-text);
    background:
        radial-gradient(circle at 72% 0%, rgba(70, 180, 65, 0.16), transparent 31%),
        linear-gradient(125deg, rgba(3, 9, 7, 0.98), rgba(7, 15, 12, 0.97) 58%, rgba(2, 8, 7, 0.99));
    border: 1px solid rgba(126, 245, 82, 0.28);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.5), inset 0 1px rgba(255, 255, 255, 0.03);
    overflow: hidden;
    box-sizing: border-box;
}

.etn-mw4-dashboard::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(116, 239, 75, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(116, 239, 75, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.etn-mw4-dashboard * { box-sizing: border-box; }
.etn-mw4-dashboard > * { position: relative; z-index: 1; }

.etn-mw4-brandbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 4px 6px 18px;
    border-bottom: 1px solid var(--mw4-line);
}

.etn-mw4-eyebrow,
.etn-mw4-subbrand,
.etn-mw4-motto,
.etn-mw4-field span,
.etn-mw4-stat small,
.etn-mw4-info-list dt {
    display: block;
    color: var(--mw4-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.etn-mw4-brand {
    display: block;
    margin: 1px 0 2px;
    font-size: clamp(24px, 3vw, 42px);
    line-height: 0.95;
    letter-spacing: -0.045em;
    color: #fff;
}

.etn-mw4-brand em { color: var(--mw4-green); font-style: normal; }
.etn-mw4-motto { max-width: 260px; text-align: right; line-height: 1.7; }

.etn-mw4-team-hero {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(460px, 1.8fr);
    gap: 24px;
    align-items: center;
    margin-top: 16px;
    padding: 20px;
    background: linear-gradient(100deg, rgba(7, 18, 14, 0.96), rgba(8, 18, 15, 0.82));
    border: 1px solid var(--mw4-line);
    border-left: 4px solid var(--mw4-green);
    border-radius: 4px;
}

.etn-mw4-team-identity,
.etn-mw4-credentials,
.etn-mw4-stat,
.etn-mw4-member,
.etn-mw4-request,
.etn-mw4-actions,
.etn-mw4-actions > div { display: flex; align-items: center; }

.etn-mw4-team-identity { gap: 18px; }
.etn-mw4-team-identity h1 { margin: 0 0 8px; color: #fff; font-size: clamp(30px, 4vw, 48px); line-height: 1; }
.etn-mw4-team-identity p { margin: 9px 0 0; color: var(--mw4-muted); font-size: 14px; }

.etn-mw4-emblem {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    color: var(--mw4-green-bright);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.06em;
    border: 3px solid var(--mw4-green);
    border-radius: 50%;
    background: radial-gradient(circle, #263a2b 0 36%, #0c1712 38% 62%, #1f4c27 64% 68%, #07100d 70%);
    box-shadow: 0 0 28px rgba(116, 239, 75, 0.22);
}

.etn-mw4-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    color: var(--mw4-green-bright);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(116, 239, 75, 0.34);
    border-radius: 999px;
    background: rgba(53, 125, 49, 0.26);
}
.etn-mw4-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--mw4-green); box-shadow: 0 0 10px var(--mw4-green); }

.etn-mw4-credentials { justify-content: flex-end; gap: 14px; min-width: 0; }
.etn-mw4-field { min-width: 0; width: min(230px, 31%); }
.etn-mw4-field strong {
    display: block;
    overflow: hidden;
    margin-top: 7px;
    padding: 13px 14px;
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 17px;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(151, 255, 111, 0.15);
}

.etn-mw4-share,
.etn-mw4-outline-button,
.etn-mw4-secondary-button,
.etn-mw4-danger-button,
.etn-mw4-approve,
.etn-mw4-reject {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    color: #eaf4ea;
    font-weight: 750;
    text-decoration: none;
    border: 1px solid rgba(151, 255, 111, 0.28);
    border-radius: 4px;
    background: rgba(14, 28, 23, 0.88);
    cursor: pointer;
    transition: 160ms ease;
}
.etn-mw4-share:hover,
.etn-mw4-outline-button:hover,
.etn-mw4-secondary-button:hover { color: #071109; background: var(--mw4-green); border-color: var(--mw4-green); }

.etn-mw4-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.etn-mw4-stat {
    gap: 14px;
    min-height: 82px;
    padding: 14px 16px;
    background: var(--mw4-panel-soft);
    border: 1px solid var(--mw4-line);
    border-left: 4px solid var(--mw4-green);
    border-radius: 4px;
}
.etn-mw4-stat-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    color: #071109;
    font-size: 18px;
    font-weight: 900;
    border-radius: 50%;
    background: var(--mw4-green);
}
.etn-mw4-stat strong { display: block; margin-top: 4px; color: #fff; font-size: 20px; line-height: 1.12; }

.etn-mw4-content-grid {
    display: grid;
    grid-template-columns: 1.12fr 1fr 0.86fr;
    gap: 14px;
    margin-top: 14px;
}
.etn-mw4-panel {
    min-width: 0;
    min-height: 300px;
    padding: 16px;
    background: var(--mw4-panel);
    border: 1px solid var(--mw4-line);
    border-radius: 4px;
}
.etn-mw4-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(151, 255, 111, 0.17);
}
.etn-mw4-panel-heading h2 { margin: 0; color: #fff; font-size: 20px; }
.etn-mw4-panel-heading > span { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; color: var(--mw4-green); background: rgba(116, 239, 75, 0.13); }

.etn-mw4-roster,
.etn-mw4-request-list { margin-top: 8px; }
.etn-mw4-member,
.etn-mw4-request { min-width: 0; gap: 12px; padding: 12px 4px; border-bottom: 1px solid rgba(151, 255, 111, 0.12); }
.etn-mw4-member:last-child,
.etn-mw4-request:last-child { border-bottom: 0; }
.etn-mw4-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; color: var(--mw4-green); font-weight: 900; border-radius: 50%; border: 1px solid rgba(116, 239, 75, 0.5); background: #111c17; }
.etn-mw4-member-copy,
.etn-mw4-request > div:first-child { min-width: 0; flex: 1; }
.etn-mw4-member-copy strong,
.etn-mw4-request strong { display: block; color: #fff; font-size: 14px; }
.etn-mw4-member-copy span,
.etn-mw4-request span { display: block; overflow: hidden; margin-top: 3px; color: var(--mw4-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.etn-mw4-member-copy small { display: inline-block; margin-top: 6px; color: #c4d0c8; font-size: 11px; }
.etn-mw4-member-copy .role-captain { color: var(--mw4-green); }
.etn-mw4-secondary-button { min-height: 34px; padding: 6px 11px; font-size: 12px; }

.etn-mw4-empty { display: grid; place-items: center; align-content: center; min-height: 215px; text-align: center; }
.etn-mw4-empty strong { color: #9baa9f; }
.etn-mw4-empty span { margin-top: 5px; color: #66756b; font-size: 13px; }
.etn-mw4-request { align-items: center; }
.etn-mw4-request-actions { display: flex; gap: 7px; }
.etn-mw4-approve { color: #071109; border-color: var(--mw4-green); background: var(--mw4-green); }
.etn-mw4-reject,
.etn-mw4-danger-button { color: #ffb4b4; border-color: rgba(255, 80, 80, 0.46); background: rgba(87, 18, 18, 0.44); }
.etn-mw4-approve:hover { background: var(--mw4-green-bright); }
.etn-mw4-reject:hover,
.etn-mw4-danger-button:hover { color: #fff; border-color: #ff5757; background: #a62929; }

.etn-mw4-info-list { margin: 10px 0 0; }
.etn-mw4-info-list > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(151, 255, 111, 0.1); }
.etn-mw4-info-list > div:last-child { border-bottom: 0; }
.etn-mw4-info-list dd { min-width: 0; margin: 0; color: #fff; font-size: 13px; overflow-wrap: anywhere; }
.etn-mw4-info-list a { color: #dce8de; text-decoration: none; }
.etn-mw4-info-list a:hover { color: var(--mw4-green); }
.etn-mw4-info-link dd { max-height: 52px; overflow: hidden; }
.etn-mw4-info-list .unlocked { color: var(--mw4-green); }
.etn-mw4-info-list .locked { color: #ff7676; }

.etn-mw4-actions { justify-content: space-between; gap: 16px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--mw4-line); background: rgba(5, 13, 10, 0.92); }
.etn-mw4-actions > div { justify-content: flex-end; gap: 10px; }
.etn-mw4-outline-button { color: var(--mw4-green); border-color: var(--mw4-green); background: transparent; }

@media (max-width: 1100px) {
    .etn-mw4-team-hero { grid-template-columns: 1fr; }
    .etn-mw4-credentials { justify-content: flex-start; flex-wrap: wrap; }
    .etn-mw4-field { width: min(270px, 46%); }
    .etn-mw4-content-grid { grid-template-columns: 1fr 1fr; }
    .etn-mw4-info-panel { grid-column: 1 / -1; min-height: 0; }
}

@media (max-width: 760px) {
    .etn-mw4-dashboard { margin: 12px auto; padding: 12px; }
    .etn-mw4-brandbar { align-items: flex-start; }
    .etn-mw4-motto { display: none; }
    .etn-mw4-team-hero { padding: 16px; }
    .etn-mw4-emblem { width: 66px; height: 66px; flex-basis: 66px; }
    .etn-mw4-credentials { display: grid; grid-template-columns: 1fr; width: 100%; }
    .etn-mw4-field { width: 100%; }
    .etn-mw4-stat-grid { grid-template-columns: 1fr 1fr; }
    .etn-mw4-content-grid { grid-template-columns: 1fr; }
    .etn-mw4-info-panel { grid-column: auto; }
    .etn-mw4-panel { min-height: 0; }
    .etn-mw4-actions { align-items: stretch; flex-direction: column; }
    .etn-mw4-actions > div { justify-content: stretch; flex-direction: column; }
    .etn-mw4-actions a,
    .etn-mw4-actions button { width: 100%; }
}

@media (max-width: 460px) {
    .etn-mw4-team-identity { align-items: flex-start; }
    .etn-mw4-stat-grid { grid-template-columns: 1fr; }
    .etn-mw4-request { align-items: stretch; flex-direction: column; }
    .etn-mw4-request-actions { width: 100%; }
    .etn-mw4-request-actions button { flex: 1; }
}

/* Copy controls and compact information alignment */
.etn-mw4-copy-field {
    display: flex;
    align-items: stretch;
    margin-top: 7px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(151, 255, 111, 0.15);
}

.etn-mw4-copy-field strong {
    flex: 1;
    margin: 0;
    border: 0;
    background: transparent;
}

.etn-mw4-copy-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 42px;
    min-width: 42px;
    padding: 0;
    color: #a7b3aa;
    border: 0;
    border-left: 1px solid rgba(151, 255, 111, 0.15);
    background: transparent;
    cursor: pointer;
    transition: 160ms ease;
}

.etn-mw4-copy-button span,
.etn-mw4-copy-button span::after {
    display: block;
    width: 13px;
    height: 15px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
}

.etn-mw4-copy-button span {
    position: relative;
    transform: translate(2px, 2px);
}

.etn-mw4-copy-button span::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    background: #09110e;
}

.etn-mw4-copy-button:hover,
.etn-mw4-copy-button.is-copied {
    color: var(--mw4-green);
    background: rgba(116, 239, 75, 0.1);
}

.etn-mw4-share.etn-mw4-copy-button-wide,
.etn-mw4-outline-button.etn-mw4-copy-button-wide {
    appearance: none;
    font: inherit;
}

.etn-mw4-info-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    gap: 7px;
}

.etn-mw4-info-copy > span {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.etn-mw4-info-copy .etn-mw4-copy-button {
    width: 34px;
    min-width: 34px;
    height: 32px;
    border: 1px solid rgba(151, 255, 111, 0.15);
}

.etn-mw4-info-link dd {
    max-height: none;
}

.etn-mw4-copy-toast {
    position: absolute;
    right: 22px;
    bottom: 88px;
    z-index: 20;
    max-width: 300px;
    padding: 10px 14px;
    color: #071109;
    font-size: 13px;
    font-weight: 800;
    background: var(--mw4-green);
    border-radius: 4px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: 180ms ease;
}

.etn-mw4-copy-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 760px) {
    .etn-mw4-copy-toast {
        right: 12px;
        bottom: 150px;
        left: 12px;
        max-width: none;
        text-align: center;
    }
}

/* My Tournament Teams account hub */
.etn-account-gate,
.etn-my-teams {
    max-width: 1200px;
    margin: 34px auto;
    box-sizing: border-box;
}

.etn-account-gate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.etn-account-primary,
.etn-account-secondary,
.etn-my-team-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 4px;
    transition: 160ms ease;
}

.etn-account-primary,
.etn-my-team-open {
    color: #071109;
    border: 1px solid #74ef4b;
    background: #74ef4b;
}

.etn-account-secondary {
    color: #dce8de;
    border: 1px solid rgba(116, 239, 75, 0.38);
    background: #0c1712;
}

.etn-account-primary:hover,
.etn-my-team-open:hover {
    color: #071109;
    background: #98ff65;
}

.etn-account-secondary:hover {
    color: #071109;
    background: #74ef4b;
}

.etn-my-teams {
    padding: 22px;
    color: #eff5ef;
    border: 1px solid rgba(126, 245, 82, 0.28);
    background: linear-gradient(125deg, #030907, #07100d 58%, #020807);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.etn-my-teams-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding: 2px 2px 20px;
    border-bottom: 1px solid rgba(151, 255, 111, 0.24);
}

.etn-my-teams-header h1 {
    margin: 2px 0 5px;
    color: #fff;
    font-size: clamp(28px, 4vw, 46px);
}

.etn-my-teams-header p,
.etn-my-team-event,
.etn-my-teams-empty p {
    color: #89978f;
}

.etn-my-teams-eyebrow,
.etn-my-teams-count span,
.etn-my-team-stats span {
    color: #89978f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.etn-my-teams-count {
    min-width: 110px;
    text-align: right;
}

.etn-my-teams-count strong {
    display: block;
    color: #74ef4b;
    font-size: 34px;
}

.etn-my-teams-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.etn-my-team-card {
    padding: 18px;
    border: 1px solid rgba(151, 255, 111, 0.22);
    border-left: 4px solid #74ef4b;
    border-radius: 4px;
    background: rgba(7, 15, 12, 0.94);
}

.etn-my-team-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.etn-my-team-role,
.etn-my-team-status {
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
}

.etn-my-team-role.is-captain {
    color: #071109;
    background: #74ef4b;
}

.etn-my-team-role.is-player,
.etn-my-team-status {
    color: #cfd9d1;
    border: 1px solid rgba(151, 255, 111, 0.24);
    background: rgba(116, 239, 75, 0.08);
}

.etn-my-team-card h2 {
    margin: 19px 0 4px;
    color: #fff;
    font-size: 26px;
}

.etn-my-team-event {
    margin: 0;
}

.etn-my-team-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 18px 0;
}

.etn-my-team-stats > div {
    min-width: 0;
    padding: 11px;
    border: 1px solid rgba(151, 255, 111, 0.12);
    background: rgba(0, 0, 0, 0.22);
}

.etn-my-team-stats strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 17px;
}

.etn-my-team-stats .is-open {
    color: #74ef4b;
}

.etn-my-team-stats .is-locked {
    color: #ff7979;
}

.etn-my-team-open {
    width: 100%;
}

.etn-my-teams-empty {
    margin-top: 18px;
    padding: 38px 22px;
    text-align: center;
    border: 1px dashed rgba(151, 255, 111, 0.26);
    background: rgba(4, 11, 8, 0.76);
}

.etn-my-teams-empty h2 {
    color: #fff;
}

@media (max-width: 760px) {
    .etn-my-teams {
        margin: 12px auto;
        padding: 13px;
    }

    .etn-my-teams-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .etn-my-teams-count {
        text-align: left;
    }

    .etn-my-teams-grid {
        grid-template-columns: 1fr;
    }
}
