/* =====================================
   GENERAL STYLING
===================================== */

.ntl-my-team h3, 
.ntl-my-team h4 {
    margin-bottom: 10px;
    margin-top: 20px;
}

.ntl-my-team h3 {
    font-size: 1.5em;
    border-bottom: 2px solid #0055aa;
    padding-bottom: 8px;
}

.ntl-my-team hr {
    margin: 25px 0;
    border: none;
    border-top: 1px solid #ddd;
}

.ntl-my-team > p {
    margin: 15px 0;
}

.ntl-my-team ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.ntl-my-team ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.ntl-my-team ul li:last-child {
    border-bottom: none;
}

.ntl-my-team {
    position: relative;
}

/* =====================================
   NOTICE STYLES
===================================== */

/* NOTICES */
.ntl-notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: ntl-slide-in 0.3s ease;
    font-size: 15px;
    font-weight: 500;
}
 
.ntl-notice--info {
    background: #E3F2FD;
    border: 2px solid #2196F3;
    color: #1565C0;
}
 
.ntl-notice--success {
    background: #E8F5E9;
    border: 2px solid #4CAF50;
    color: #2E7D32;
}
 
.ntl-notice--error {
    background: #FFEBEE;
    border: 2px solid #F44336;
    color: #C62828;
}
 
@keyframes ntl-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
 

/* =====================================
   TEAM LOGO AREA
===================================== */

.ntl-team-logo-panel {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.ntl-team-logo-panel h4 {
    margin-top: 0;
    margin-bottom: 12px;
}

.ntl-team-logo-panel img {
    max-width: 160px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ntl-team-logo-panel input[type="file"] {
    display: block;
    margin-top: 8px;
    margin-bottom: 8px;
}

.ntl-team-logo-panel form {
    margin: 0;
}

/* =====================================
   TEAMMATE TABLE
===================================== */

.ntl-member-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ntl-member-table th {
    background: #f6f6f6;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.ntl-member-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: middle;
}

.ntl-member-table tr:last-child td {
    border-bottom: none;
}

.ntl-member-table tr:hover {
    background: #fafafa;
}

.ntl-member-actions {
    white-space: nowrap;
}

.ntl-member-actions button,
.ntl-member-actions form {
    margin-right: 6px;
    margin-bottom: 4px;
}

.ntl-member-actions form {
    display: inline-block;
}

/* =====================================
   BUTTONS
===================================== */

button.ntl-btn,
.ntl-btn {
    font-size: 20px !important;
    padding: 10px 20px !important;
    border: 2px solid #008aa4 !important;
    border-radius: 20px !important;
    background: #008aa4 !important;
    box-shadow: none !important;
    color: #fff !important;
    text-shadow: none !important;
    letter-spacing: 0.3px;
}

button.ntl-btn:hover,
.ntl-btn:hover {
    background: #003f7a;
}

button.ntl-btn:disabled,
.ntl-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button.ntl-btn:focus,
.ntl-btn:focus {
    outline: 2px solid #0055aa;
    outline-offset: 2px;
}

.ntl-btn-danger {
    background: #c0392b;
}

.ntl-btn-danger:hover {
    background: #922b21;
}

.ntl-btn-secondary {
    background: #6c757d;
    color: white;
    white-space: nowrap;
}

.ntl-btn-secondary:hover {
    background: #5a6268;
}

.ntl-btn-small {
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
    background: #cc0000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.ntl-btn-small:hover {
    background: #a00000;
}

.ntl-btn-icon {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.7;
    transition: all 0.2s;
}

.ntl-btn-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.ntl-btn-icon.ntl-btn-danger:hover {
    filter: hue-rotate(10deg);
}

/* =====================================
   FORMS
===================================== */

.ntl-my-team form {
    margin: 15px 0;
}

.ntl-my-team label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.ntl-my-team input[type="text"],
.ntl-my-team input[type="email"],
.ntl-my-team input[type="number"] {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    max-width: 400px;
    margin-top: 4px;
}

.ntl-my-team input[type="text"]:focus,
.ntl-my-team input[type="email"]:focus,
.ntl-my-team input[type="number"]:focus {
    outline: none;
    border-color: #0055aa;
    box-shadow: 0 0 0 2px rgba(0, 85, 170, 0.1);
}

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

.ntl-input-group input[type="text"],
.ntl-input-group input[type="email"],
.ntl-input-group input[type="file"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ntl-input-group input:focus {
    outline: none;
    border-color: #cc0000;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.ntl-input-large {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ntl-input-large:focus {
    outline: none;
    border-color: #cc0000;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

/* =====================================
   AJAX LOADING OVERLAY
===================================== */

.ntl-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 4px;
}

.ntl-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0055aa;
    border-radius: 50%;
    animation: ntl-spin 1s linear infinite;
}

@keyframes ntl-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =====================================
   WPUF CUSTOMIZATION
===================================== */

body .wpuf-dashboard-container .wpuf-dashboard-content > div,
body .wpuf-dashboard-container .wpuf-dashboard-content > form {
    width: 90%;
}

body .wpuf-dashboard-container .wpuf-dashboard-navigation {
    background-color: #ffffff;
    border-radius: 8px;
}

body .wpuf-dashboard-container .wpuf-dashboard-navigation ul li {
    padding: 0px;
}

body .wpuf-dashboard-container .wpuf-dashboard-navigation ul li a {
    display: block;
    padding: 4%;
}

body .wpuf-menu-item.active a {
    background-color: #d13237;
}

body .wpuf-menu-item a:hover {
    background-color: #d13237;
    cursor: pointer;
}

body .wpuf-menu-item.active a,
body .wpuf-menu-item:hover a {
    color: #ffffff !important;
}

.wpuf-dashboard-navigation li:first-child a {
    border-radius: 8px 8px 0 0;
}

.wpuf-dashboard-navigation li:last-child a {
    border-radius: 0 0 8px 8px;
}

.wpuf-dashboard-navigation a[href*="dashboard"]::before {
    content: "\f102";
    font-family: dashicons;
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.wpuf-dashboard-navigation a[href*="edit-profile"]::before {
    content: "\f111";
    font-family: dashicons;
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.wpuf-dashboard-navigation a[href*="ntl-my-team"]::before {
    content: "\f307";
    font-family: dashicons;
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.wpuf-dashboard-navigation a[href*="league-manager"]::before {
    content: "\f481";
    font-family: dashicons;
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.wpuf-dashboard-navigation a[href*="training"]::before {
    content: "\f331";
    font-family: dashicons;
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.wpuf-dashboard-content {
    padding: 0px 24px;
}

/* =====================================
   DASHBOARD STYLES — Navy/Dark Theme
===================================== */

.ntl-dashboard {
    font-family: 'Barlow', system-ui, sans-serif;
    color: #111827;
    padding: 20px 0;
}

.ntl-dashboard h2 {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 2em;
    font-weight: 900;
    margin-bottom: 24px;
    padding-bottom: 0;
    border: none;
    color: #111827;
    letter-spacing: 0.3px;
}

.ntl-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

/* Two column grid for Area Manager top row */
.ntl-dashboard-grid--two-col {
    grid-template-columns: 1fr 1fr;
}

/* Full width panel */
.ntl-dash-panel--full-width {
    width: 100%;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .ntl-dashboard-grid,
    .ntl-dashboard-grid--two-col {
        grid-template-columns: 1fr;
    }
}

.ntl-dash-panel {
    background: #ffffff;
    border: 1px solid #e2e5ea;
    border-radius: 14px;
    padding: 22px;
    transition: border-color 0.15s;
}

.ntl-dash-panel:hover {
    transform: none;
    box-shadow: none;
    border-color: #d1d5db;
}

.ntl-dash-panel h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ntl-dash-panel h3 .dashicons {
    color: #6b7280;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.ntl-dash-panel p {
    color: #6b7280;
    font-style: normal;
}

.ntl-dash-panel--team-activity {
    grid-column: 1 / -1;
}

/* Next Show Display */
.ntl-next-show {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
}

.ntl-next-show-date {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.ntl-next-show h4 {
    margin: 0;
    font-size: 1.2em;
}

.ntl-next-show h4 a {
    color: #fff;
    text-decoration: none;
}

.ntl-next-show h4 a:hover {
    text-decoration: underline;
}

/* =====================================
   NEWS MODULE
===================================== */

.ntl-news-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ntl-news-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.ntl-news-item:hover {
    background: #f0f0f0;
}

.ntl-news-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background: #ddd;
}

.ntl-news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ntl-news-content {
    flex: 1;
}

.ntl-news-title {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 600;
}

.ntl-news-title a {
    color: #333;
    text-decoration: none;
}

.ntl-news-title a:hover {
    color: #0073aa;
}

.ntl-news-date {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.ntl-news-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* =====================================
   TEAM ACTIVITY
===================================== */

.ntl-team-activity {
    margin-bottom: 30px;
}

.ntl-team-activity:last-child {
    margin-bottom: 0;
}

.ntl-team-activity h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #0055aa;
}

.ntl-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ntl-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.15s;
}

.ntl-activity-item:hover {
    background: #f3f4f6;
}

.ntl-activity-item:last-child {
    margin-bottom: 0;
}

.ntl-activity-icon {
    flex-shrink: 0;
    font-size: 1.1em;
    width: 36px;
    height: 36px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ntl-activity-icon--image {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e5ea;
}

.ntl-activity-icon--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ntl-activity-text {
    flex: 1;
    font-size: 13px;
    color: #374151;
}

.ntl-activity-date {
    flex-shrink: 0;
    font-size: 11px;
    color: #9ca3af;
}

.ntl-activity-item--score {
    border-left: 3px solid #2ecc71;
}

.ntl-activity-item--score.has-venue-logo {
    border-left: 3px solid #f39c12;
}

.ntl-activity-item--member_added {
    border-left: 3px solid #3498db;
}

.ntl-activity-item--member_removed {
    border-left: 3px solid #e74c3c;
}

.ntl-activity-item--name_change {
    border-left: 3px solid #f39c12;
}

.ntl-activity-item--captain_change {
    border-left: 3px solid #9b59b6;
}

.ntl-activity-item--co_captain_assigned {
    border-left: 3px solid #1abc9c;
}

.ntl-activity-item--co_captain_removed {
    border-left: 3px solid #95a5a6;
}

.ntl-activity-item--logo_updated {
    border-left: 3px solid #e67e22;
}

/* =====================================
   AREA MANAGER - RECENT TEAMS
===================================== */

.ntl-recent-teams-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ntl-recent-team-item {
    display: flex;
    gap: 13px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #4a7abf;
    border-top: 1px solid #e2e5ea;
    border-right: 1px solid #e2e5ea;
    border-bottom: 1px solid #e2e5ea;
    transition: background 0.15s;
}

.ntl-recent-team-item:hover {
    background: #f3f4f6;
}

.ntl-recent-team-item--claim {
    border-left-color: #f97316;
    border-top-color: #fed7aa;
    border-right-color: #fed7aa;
    border-bottom-color: #fed7aa;
    background: #fff7ed;
}

.ntl-recent-team-item--claim:hover {
    background: #ffedd5;
}

.ntl-recent-team-item--claim .ntl-team-captain strong {
    color: #c2410c;
}

.ntl-recent-team-item--registration {
    border-left-color: #6b7280;
}

.ntl-team-logo-small {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e2e5ea;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ntl-team-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ntl-team-info {
    flex: 1;
}

.ntl-team-info h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.ntl-team-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
    font-size: 12px;
    color: #6b7280;
}

.ntl-team-league {
    color: #374151;
    font-weight: 600;
}

.ntl-team-captain,
.ntl-team-date {
    font-size: 11px;
    color: #9ca3af;
}

.ntl-activity-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

.ntl-activity-badge--new {
    background: #4CAF50;
    color: white;
}

.ntl-activity-badge--pending {
    background: #FF9800;
    color: white;
}

/* =====================================
   AREA MANAGER - RECENT SCORES
===================================== */

.ntl-recent-scores-table {
    overflow-x: auto;
}

.ntl-recent-scores-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ntl-recent-scores-table thead {
    background: #f9fafb;
    border-bottom: 1px solid #e2e5ea;
}

.ntl-recent-scores-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    color: #6b7280;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ntl-recent-scores-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.ntl-recent-scores-table tbody tr:hover {
    background: #f9fafb;
}

.ntl-recent-scores-table tbody tr:last-child td {
    border-bottom: none;
}

/* =====================================
   MY TEAM - COMPACT LAYOUT
/* =====================================================
   MY TEAM — GAMIFIED DARK-NAVY REDESIGN
   Matches the loyalty dashboard aesthetic
   Variables mirror ntl-player-features dark theme
===================================================== */

/* ── CSS Variables (scoped to My Team context) ────── */
.ntl-my-team {
    --ce-navy:        #0d1b2e;
    --ce-navy-mid:    #1a2d45;
    --ce-navy-light:  #243b57;
    --ce-red:         #cc0000;
    --ce-red-bright:  #ee3946;
    --ce-gold:        #c8a84b;
    --ce-gold-light:  #e8c96a;
    --ce-white:       #ffffff;
    --ce-white-dim:   rgba(255,255,255,0.75);
    --ce-white-faint: rgba(255,255,255,0.1);
    --ce-border:      rgba(255,255,255,0.08);
    --ce-card-bg:     rgba(255,255,255,0.04);
    --ce-shadow:      0 4px 24px rgba(0,0,0,0.4);
    --ce-shadow-sm:   0 2px 8px rgba(0,0,0,0.25);
    --radius:         12px;
    --radius-sm:      8px;

    color: var(--ce-white);
    font-family: inherit;
    position: relative;
}

/* ── Team Header Hero ───────────────────────────────── */

.ntl-team-header-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, var(--ce-navy) 0%, var(--ce-navy-mid) 60%, #2a1a0e 100%);
    border: 1px solid var(--ce-border);
    color: var(--ce-white);
    padding: 28px;
    border-radius: var(--radius);
    margin-bottom: 8px;
    box-shadow: var(--ce-shadow);
    min-height: 130px;
    position: relative;
    overflow: hidden;
}

/* Red streak accent */
.ntl-team-header-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--ce-red-bright), transparent);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Subtle background texture */
.ntl-team-header-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(204,0,0,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.ntl-team-logo {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ntl-team-logo img {
    height: 88px;
    width: 88px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.ntl-team-header-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.ntl-team-role-badge {
    display: inline-block;
    background: var(--ce-red);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.ntl-team-role-badge--member {
    background: var(--ce-navy-light);
    border: 1px solid rgba(255,255,255,0.2);
}

.ntl-team-header-info h3 {
    margin: 0 0 10px 0;
    color: var(--ce-white);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    border-bottom: none;
}

.ntl-team-id {
    margin: 0;
    font-size: 14px;
    color: var(--ce-white-dim);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ntl-team-id strong {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--ce-white);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 2px;
    cursor: default;
}

/* ── Team Stats Bar (new element — see PHP note) ────── */

.ntl-team-stats-bar {
    display: flex;
    gap: 0;
    background: var(--ce-navy-mid);
    border: 1px solid var(--ce-border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--ce-shadow-sm);
}

.ntl-stat-item {
    flex: 1;
    padding: 18px 16px;
    text-align: center;
    border-right: 1px solid var(--ce-border);
    transition: background 0.2s;
}

.ntl-stat-item:last-child {
    border-right: none;
}

.ntl-stat-item:hover {
    background: var(--ce-white-faint);
}

.ntl-stat-icon {
    font-size: 20px;
    margin-bottom: 4px;
    opacity: 0.8;
}

.ntl-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--ce-white);
    line-height: 1;
    margin-bottom: 2px;
}

.ntl-stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ce-white-dim);
}

/* Rank stat gets gold highlight */
.ntl-stat-item--rank .ntl-stat-value {
    color: var(--ce-gold-light);
}

/* ── Up Next Card (new element — see PHP note) ──────── */

.ntl-upnext-card {
    background: var(--ce-navy-mid);
    border: 1px solid var(--ce-border);
    border-left: 4px solid var(--ce-red-bright);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--ce-shadow-sm);
    position: relative;
    overflow: hidden;
}

.ntl-upnext-card::before {
    content: 'UP NEXT';
    position: absolute;
    top: 10px; right: 16px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--ce-red-bright);
    opacity: 0.8;
}

.ntl-upnext-venue-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--ce-border);
}

.ntl-upnext-info {
    flex: 1;
}

.ntl-upnext-info h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--ce-white);
    border-bottom: none;
    padding-bottom: 0;
}

.ntl-upnext-venue {
    font-size: 14px;
    color: var(--ce-white-dim);
    margin: 0 0 6px 0;
}

.ntl-upnext-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--ce-white-dim);
    flex-wrap: wrap;
}

.ntl-upnext-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ntl-upnext-checkin-btn {
    background: var(--ce-red);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, transform 0.1s;
    flex-shrink: 0;
}

.ntl-upnext-checkin-btn:hover {
    background: var(--ce-red-bright);
    transform: translateY(-1px);
    color: white;
}

/* ── Two-column layout wrapper ──────────────────────── */

.ntl-team-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

/* ── Section Cards (roster, invite, etc.) ─────────── */

.ntl-section-card {
    background: var(--ce-navy-mid);
    border: 1px solid var(--ce-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--ce-shadow-sm);
}

.ntl-section-card h4 {
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ce-border);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ce-white-dim);
}

.ntl-section-card--actions {
    background: transparent;
    border: 1px solid var(--ce-border);
    padding: 16px 24px;
}

/* ── Quick Actions Grid ─────────────────────────────── */

.ntl-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ntl-action-card {
    background: var(--ce-navy-mid);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--ce-border);
    box-shadow: var(--ce-shadow-sm);
    transition: border-color 0.2s;
}

.ntl-action-card:hover {
    border-color: rgba(255,255,255,0.15);
}

.ntl-action-card h4 {
    margin: 0 0 14px 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ce-white-dim);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ce-border);
}

/* ── Input Groups ────────────────────────────────────── */

.ntl-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ntl-input-group input[type="text"],
.ntl-input-group input[type="email"],
.ntl-input-group input[type="file"] {
    flex: 1;
    padding: 9px 12px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    font-size: 14px;
    color: var(--ce-white);
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
}

.ntl-input-group input[type="file"] {
    padding: 7px 10px;
    font-size: 12px;
    color: var(--ce-white-dim);
}

.ntl-input-group input[type="text"]::placeholder,
.ntl-input-group input[type="email"]::placeholder {
    color: rgba(255,255,255,0.35);
}

.ntl-input-group input:focus {
    border-color: var(--ce-red-bright);
    background: rgba(255,255,255,0.1);
}

/* ── Invite copy-link row ──────────────────────────── */

.ntl-invite-or {
    text-align: center;
    margin: 12px 0;
    color: var(--ce-white-dim);
    font-size: 12px;
    position: relative;
}

.ntl-invite-or::before,
.ntl-invite-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--ce-border);
}

.ntl-invite-or::before { left: 0; }
.ntl-invite-or::after  { right: 0; }

.ntl-copy-link-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--ce-border);
    border-radius: 6px;
    padding: 10px;
    color: var(--ce-white-dim);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.ntl-copy-link-btn:hover {
    background: var(--ce-white-faint);
    border-color: rgba(255,255,255,0.25);
    color: var(--ce-white);
}

/* ── Roster Table ───────────────────────────────────── */

.ntl-roster-table {
    overflow-x: auto;
    margin-top: 0;
}

.ntl-roster-table table {
    width: 100%;
    border-collapse: collapse;
}

.ntl-roster-table th {
    text-align: left;
    padding: 10px 12px;
    background: rgba(255,255,255,0.04);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.45);
    border-bottom: 1px solid var(--ce-border);
}

.ntl-roster-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--ce-border);
    font-size: 14px;
    color: var(--ce-white);
    vertical-align: middle;
}

.ntl-roster-table tbody tr:last-child td {
    border-bottom: none;
}

.ntl-roster-table tbody tr:hover td {
    background: var(--ce-white-faint);
}

/* ── Roster member avatar row ───────────────────────── */

.ntl-member-avatar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ntl-member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ce-navy-light);
    border: 2px solid var(--ce-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--ce-white);
    flex-shrink: 0;
    text-transform: uppercase;
    overflow: hidden;
}

.ntl-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ntl-member-info strong {
    display: block;
    font-size: 14px;
    color: var(--ce-white);
    font-weight: 600;
}

.ntl-member-info small {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

/* ── Role Badges ────────────────────────────────────── */

.ntl-role-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ntl-role-captain {
    background: var(--ce-red);
    color: white;
}

.ntl-role-co-captain {
    background: var(--ce-gold);
    color: #1a1a1a;
}

.ntl-role-member {
    background: rgba(255,255,255,0.12);
    color: var(--ce-white-dim);
}

.ntl-you-badge {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--ce-border);
    color: var(--ce-white-dim);
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 4px;
}

/* Current user row highlight */
.ntl-roster-table .ntl-current-user-row td {
    background: rgba(204,0,0,0.06);
}

/* ── Action Buttons (roster actions) ────────────────── */

.ntl-action-buttons {
    white-space: nowrap;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────── */

.ntl-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--ce-red);
    color: var(--ce-white);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.ntl-btn:hover {
    background: var(--ce-red-bright);
    transform: translateY(-1px);
    color: white;
}

.ntl-btn:active {
    transform: translateY(0);
}

.ntl-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ntl-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.ntl-btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--ce-white-dim);
}

.ntl-btn-outline:hover {
    background: var(--ce-white-faint);
    border-color: rgba(255,255,255,0.4);
    color: var(--ce-white);
}

.ntl-btn-danger {
    background: transparent;
    border: 1px solid rgba(204,0,0,0.4);
    color: rgba(255,120,120,0.9);
}

.ntl-btn-danger:hover {
    background: rgba(204,0,0,0.2);
    border-color: var(--ce-red);
    color: white;
}

.ntl-btn-icon {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.15s;
}

.ntl-btn-icon:hover {
    background: rgba(204,0,0,0.2);
}

/* Big CTA button */
.ntl-btn-cta {
    padding: 14px 28px;
    font-size: 15px;
    background: var(--ce-red);
    display: block;
    width: 100%;
    text-align: center;
    border-radius: var(--radius-sm);
}

/* ── Pending Requests Block ─────────────────────────── */

.ntl-pending-request-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--ce-border);
    gap: 12px;
    flex-wrap: wrap;
}

.ntl-pending-request-row:last-child {
    border-bottom: none;
}

.ntl-pending-request-info {
    flex: 1;
}

.ntl-pending-request-info strong {
    display: block;
    font-size: 14px;
    color: var(--ce-white);
}

.ntl-pending-request-info small {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.ntl-pending-approve-btn {
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.ntl-pending-approve-btn:hover { background: #388e3c; }

/* ── Notices ─────────────────────────────────────────── */

.ntl-notice {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    animation: ntl-slide-in 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.ntl-notice--info {
    background: rgba(33,150,243,0.12);
    border: 1px solid rgba(33,150,243,0.3);
    color: #90caf9;
}

.ntl-notice--success {
    background: rgba(76,175,80,0.12);
    border: 1px solid rgba(76,175,80,0.3);
    color: #a5d6a7;
}

.ntl-notice--error {
    background: rgba(244,67,54,0.12);
    border: 1px solid rgba(244,67,54,0.3);
    color: #ef9a9a;
}

/* ── Pending claims user submitted ──────────────────── */

.ntl-my-pending-claims {
    background: rgba(200, 168, 75, 0.08);
    border: 1px solid rgba(200, 168, 75, 0.25);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
}

.ntl-my-pending-claims h4 {
    margin: 0 0 10px 0;
    color: var(--ce-gold-light);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
    padding-bottom: 0;
}

.ntl-pending-info {
    color: rgba(232,201,106,0.7);
    margin-bottom: 15px;
    font-size: 13px;
}

.ntl-pending-claim-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--ce-border);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.ntl-pending-claim-info strong {
    display: block;
    font-size: 14px;
    color: var(--ce-white);
}

.ntl-team-code {
    color: rgba(255,255,255,0.45);
    font-size: 12px;
}

.ntl-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ntl-status-pending {
    background: rgba(200,168,75,0.2);
    color: var(--ce-gold-light);
    border: 1px solid rgba(200,168,75,0.3);
}

.ntl-pending-claim-status small {
    display: block;
    color: rgba(255,255,255,0.35);
    margin-top: 4px;
    font-size: 11px;
}

/* ── Claim / Join a Team Form ───────────────────────── */

.ntl-claim-form-card {
    background: var(--ce-navy-mid);
    border: 1px solid var(--ce-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 8px;
}

.ntl-claim-form-card h4 {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--ce-white);
}

.ntl-help-text {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 16px;
}

.ntl-form-group {
    margin-bottom: 16px;
}

.ntl-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 6px;
}

.ntl-form-group input[type="text"],
.ntl-form-group input[type="email"],
.ntl-form-group input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    font-size: 14px;
    color: var(--ce-white);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ntl-form-group input:focus {
    border-color: var(--ce-red-bright);
    background: rgba(255,255,255,0.1);
}

/* ── Team Invitations Section ───────────────────────── */

.ntl-invitations-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ntl-invitation-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--ce-border);
    border-radius: var(--radius-sm);
    gap: 12px;
}

.ntl-invitation-item .ntl-team-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--ce-white);
}

.ntl-invitation-item .ntl-team-code {
    font-size: 12px;
}

/* ── Loading overlay ────────────────────────────────── */

.ntl-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,27,46,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    z-index: 10;
}

.ntl-spinner {
    border: 3px solid rgba(255,255,255,0.15);
    border-top: 3px solid var(--ce-red-bright);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: ntl-spin 0.8s linear infinite;
}

/* ── Animations ──────────────────────────────────────── */

@keyframes ntl-slide-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ntl-spin {
    to { transform: rotate(360deg); }
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 900px) {
    .ntl-team-two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ntl-team-header-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }

    .ntl-team-header-info h3 {
        font-size: 22px;
    }

    .ntl-team-stats-bar {
        flex-wrap: wrap;
    }

    .ntl-stat-item {
        min-width: 33%;
        border-right: none;
        border-bottom: 1px solid var(--ce-border);
    }

    .ntl-stat-item:nth-child(3n) { border-right: none; }

    .ntl-quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .ntl-action-buttons {
        flex-direction: column;
    }

    .ntl-upnext-card {
        flex-wrap: wrap;
    }

    .ntl-upnext-checkin-btn {
        width: 100%;
        text-align: center;
    }

    .ntl-roster-table th:nth-child(2),
    .ntl-roster-table td:nth-child(2) {
        display: none; /* hide email column on small screens */
    }
}

@media (max-width: 480px) {
    .ntl-section-card {
        padding: 16px;
    }

    .ntl-team-stats-bar .ntl-stat-item {
        min-width: 50%;
    }
}
    z-index: 99;
}

.wpuf-el.custom_html_2 {
    width: 33%;
    float: left;
}

.select2-container--default .select2-selection--single {
    padding-top: 7px;
    padding-bottom: 7px;
}

.select2-container .select2-selection--single {
    height: 44px !important;
}



/* Main Dashboard Grid - 3 Columns */
.ntl-dashboard-grid--three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

/* Panel Styling — dark variant (overrides earlier base) */
.ntl-dashboard-grid--three .ntl-dash-panel,
.ntl-dash-panel--featured {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #e2e5ea;
    transition: border-color 0.15s;
    box-shadow: none;
}

/* Show Cards */
.ntl-show-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e2e5ea;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: background 0.15s, border-color 0.15s;
    border-left: 3px solid #D13237;
    position: relative;
}

.ntl-show-card:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: none;
}

.ntl-show-card.rescheduled {
    opacity: 0.55;
    border-left-color: #ef4444;
}

.ntl-show-card.rescheduled::after {
    content: "RESCHEDULED";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ntl-show-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 1px solid #e2e5ea;
    padding: 10px 12px;
    border-radius: 8px;
    min-width: 56px;
}

.ntl-show-month {
    font-size: 10px;
    font-weight: 700;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ntl-show-day {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: #111827;
    line-height: 1;
}

.ntl-show-details {
    flex: 1;
    min-width: 0;
}

.ntl-show-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 10px;
}

.ntl-show-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.ntl-show-header h4 a {
    color: #111827;
    text-decoration: none;
    transition: color 0.15s;
}

.ntl-show-header h4 a:hover {
    color: #D13237;
}

.ntl-show-time {
    background: rgba(255, 59, 59, 0.18);
    border: 1px solid rgba(255, 59, 59, 0.3);
    color: #D13237;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.ntl-show-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ntl-game-logo {
    height: 24px;
    width: auto;
    opacity: 0.85;
}

.ntl-show-venue {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 13px;
}

.ntl-show-venue .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    color: #6b7280;
}

.ntl-show-venue a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s;
}

.ntl-show-venue a:hover {
    color: #374151;
    text-decoration: underline;
}

.ntl-show-thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.8;
}

.ntl-show-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* News Cards */
.ntl-news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ntl-news-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    transition: background 0.15s;
}

.ntl-news-item:hover {
    background: #f3f4f6;
}

.ntl-news-thumb {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    opacity: 0.85;
}

.ntl-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ntl-news-content h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.ntl-news-content h4 a {
    color: #374151;
    text-decoration: none;
    transition: color 0.15s;
}

.ntl-news-content h4 a:hover {
    color: #D13237;
}

.ntl-news-content time {
    font-size: 12px;
    color: #9ca3af;
}

/* Empty States */
.ntl-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.ntl-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    opacity: 0.25;
    margin-bottom: 12px;
    color: #6b7280;
}

.ntl-empty-state p {
    margin: 0;
    font-size: 15px;
    font-style: normal;
    color: #9ca3af;
}

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

@media (max-width: 1400px) {
    .ntl-dash-hero {
        gap: 25px;
    }
}

@media (max-width: 1200px) {
    .ntl-dash-hero {
        grid-template-columns: 1fr;
    }
    
    .ntl-hero-stats {
        justify-content: center;
    }
    
    .ntl-dashboard-grid--three {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ntl-dash-panel--featured {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .ntl-show-card {
        grid-template-columns: auto 1fr;
        gap: 15px;
    }
    
    .ntl-show-thumbnail {
        display: none;
    }
}

@media (max-width: 768px) {
    .ntl-dash-hero {
        padding: 25px;
        border-radius: 12px;
    }
    
    .ntl-hero-content h2 {
        font-size: 24px;
    }
    
    .ntl-dashboard-grid--three {
        grid-template-columns: 1fr;
    }
    
    .ntl-dash-panel--featured {
        grid-column: span 1;
    }
    
    .ntl-dash-panel {
        padding: 20px;
    }
    
    .ntl-show-card {
        grid-template-columns: 1fr;
    }
    
    .ntl-show-date {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }
    
    .ntl-show-day {
        font-size: 24px;
    }
    
    .ntl-show-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .ntl-news-item {
        grid-template-columns: 1fr;
    }
    
    .ntl-news-thumb {
        width: 100%;
        height: 150px;
    }

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

    .ntl-member-table {
        font-size: 13px;
    }
    
    .ntl-member-table th,
    .ntl-member-table td {
        padding: 8px 6px;
    }
    
    .ntl-member-actions button {
        display: block;
        width: 100%;
        margin-bottom: 6px;
    }
    
    .ntl-my-team input[type="text"],
    .ntl-my-team input[type="email"],
    .ntl-my-team input[type="number"] {
        max-width: 100%;
    }

    .ntl-recent-team-item,
    .ntl-news-item {
        flex-direction: column;
    }
    
    .ntl-team-logo-small,
    .ntl-news-thumbnail {
        width: 100%;
        height: 150px;
    }
    
    .ntl-team-meta {
        flex-direction: column;
        gap: 5px;
    }

    .ntl-activity-item {
        flex-wrap: wrap;
    }
    
    .ntl-activity-date {
        width: 100%;
        margin-top: 5px;
        padding-left: 42px;
    }

    .ntl-activity-icon--image {
        width: 35px;
        height: 35px;
    }
    
    .ntl-activity-icon {
        width: 35px;
        height: 35px;
        font-size: 1.2em;
    }

    .ntl-activity-badge {
        display: block;
        width: fit-content;
        margin-bottom: 5px;
    }

    .ntl-quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .ntl-team-header-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .ntl-team-header-info h3 {
        font-size: 26px;
    }
    
    .ntl-team-id {
        justify-content: center;
    }
    
    .ntl-section-card {
        padding: 20px 15px;
    }
}

@media (max-width: 600px) {
    .ntl-member-table thead {
        display: none;
    }
    
    .ntl-member-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    
    .ntl-member-table td {
        display: block;
        text-align: left;
        padding: 8px 12px;
        border-bottom: 1px solid #eee;
    }
    
    .ntl-member-table td:before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        margin-right: 10px;
    }
    
    .ntl-member-table td:last-child {
        border-bottom: none;
    }
    
    .ntl-member-actions {
        white-space: normal;
    }
}

.ntl-input-group input[type="file"] {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    min-width: 0;
}

/* Stack file upload on smaller containers */
@media (max-width: 480px) {
    .ntl-action-card .ntl-input-group {
        flex-direction: column;
    }
    
    .ntl-action-card .ntl-input-group input[type="file"] {
        width: 100%;
    }
    
    .ntl-action-card .ntl-btn-small {
        width: 100%;
    }
    
    .ntl-dash-hero {
        padding: 20px;
    }
    
    .ntl-hero-stats .ntl-points-number {
        font-size: 42px;
    }
}

/* =====================================
   HEADER ACCOUNT WIDGET
===================================== */

.ntl-header-account {
    position: relative;
    display: inline-block;
    font-size: 16px;
}

/* Logged Out State */
.ntl-header-account--logged-out {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ntl-header-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.ntl-header-link:hover {
    text-decoration: underline;
}

.ntl-header-separator {
    color: #999;
}

/* Logged In State */
.ntl-header-greeting {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s;
    font-weight: 600;
    color: #ffffff;
    user-select: none;
    display: inline-block;
        font-weight: bold;
}

.ntl-header-greeting:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #cc0000;
}

/* Dropdown Menu - IMPORTANT: Hidden by default */
.ntl-header-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    display: block !important; /* Override any display:none */
}

/* Show dropdown on hover */
.ntl-header-account--logged-in:hover .ntl-header-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.ntl-header-dropdown a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 14px;
    white-space: nowrap;
}

.ntl-header-dropdown a:first-child {
    border-radius: 6px 6px 0 0;
}

.ntl-header-dropdown a:hover {
    background: #f8f9fa;
}

.ntl-header-dropdown .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #666;
    flex-shrink: 0;
}

.ntl-dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 4px 0;
}

.ntl-logout-link {
    color: #cc0000 !important;
    border-radius: 0 0 6px 6px;
}

.ntl-logout-link:hover {
    background: #fff5f5 !important;
}

.ntl-logout-link .dashicons {
    color: #cc0000;
}

/* Responsive */
@media (max-width: 768px) {
    .ntl-header-account {
        font-size: 14px;
    }
    
    .ntl-header-dropdown {
        right: -10px;
    }
}

/* View All Scores Link */
.ntl-view-all-link {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.ntl-view-all-link:hover {
    color: #cc0000;
    text-decoration: underline;
}

/* Choices.js Custom Styling */
.choices {
    margin-bottom: 0;
}

.choices__inner {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    min-height: 44px;
    font-size: 14px;
}

.choices__inner:focus,
.is-focused .choices__inner {
    border-color: #cc0000;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.choices__input {
    background-color: transparent;
    font-size: 14px;
    padding: 0;
    margin-bottom: 0;
}

.choices__input::placeholder {
    color: #999;
}

.choices__list--dropdown {
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 4px;
}

.choices__list--dropdown .choices__item {
    padding: 10px 12px;
    font-size: 14px;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #cc0000;
    color: #fff;
}

.choices__list--single .choices__item {
    padding: 0;
}

.choices__placeholder {
    color: #999;
    opacity: 1;
}

/* Search input inside dropdown */
.choices__list--dropdown .choices__input {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.choices[data-type*="select-one"] .choices__input {
    margin: 0;
    border: none;
    border-radius: 0;
    background: #f8f9fa;
    padding: 10px 12px;
}

/* Dropdown arrow */
.choices[data-type*="select-one"]::after {
    border-color: #999 transparent transparent transparent;
    right: 12px;
    top: 50%;
    margin-top: -2px;
}

.choices[data-type*="select-one"].is-open::after {
    border-color: transparent transparent #999 transparent;
    margin-top: -6px;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted, .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background: black !important;
}

@media (max-width: 600px) {
    .ntl-btn {
        font-size: 16px !important;
            display: block;
    }

}

@media (max-width: 768px) {
    .fl-tabs-panel-content.fl-tab-active {
        padding-top: 24px;
    }
 .ntl-reg-mode-selector {
        grid-template-columns: 1fr !important;
    }

}

/* =====================================================
   FULL DARK OVERRIDE — based on actual WPUF Pro HTML
   Target structure:
     .wpuf-account-container
       aside.wpuf-account-sidebar
       main.wpuf-account-content > .ntl-dashboard
   ===================================================== */

/* ---- Page background — covers the Bricks content area and WPUF container ---- */
body .wpuf-account-container {
    background: #0b1b39 !important;
    color: #111827;
}

/* Explicitly keep the Bricks site header and footer their normal colors */
#brx-header { background-color: #fff !important; }
#brx-footer { background-color: #303639 !important; }

/* ---- Main content pane ---- */
.wpuf-account-content {
    color: #111827 !important;
}

/* ---- Left sidebar ---- */
.wpuf-account-sidebar {
    background: #ffffff !important;
    border: 1px solid #e2e5ea !important;
    border-radius: 12px !important;
    color: #111827 !important;
}

/* Profile block */
.wpuf-profile-section {
    background: transparent !important;
}

.wpuf-profile-name {
    color: #111827 !important;
    font-size: 14px !important;
}

.wpuf-profile-role {
    color: #6b7280 !important;
}

.wpuf-edit-profile-btn {
    background: #f3f4f6 !important;
    border: 1px solid #e2e5ea !important;
    color: #374151 !important;
    border-radius: 8px !important;
}

.wpuf-edit-profile-btn:hover {
    background: #e5e7eb !important;
    color: #111827 !important;
}

/* Nav items */
.wpuf-account-nav {
    background: transparent !important;
}

.wpuf-account-nav-item {
    color: #6b7280 !important;
    border-radius: 8px !important;
}

.wpuf-account-nav-item:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

.wpuf-account-nav-item.active {
    background: #D13237 !important;
    color: #fff !important;
}

.wpuf-account-nav-item svg {
    color: inherit !important;
    stroke: currentColor !important;
}

/* Logout section */
.wpuf-logout-section {
    border-top-color: #f3f4f6 !important;
}

.wpuf-logout-link {
    color: #D13237 !important;
}

.wpuf-logout-link:hover {
    color: #991b1b !important;
    background: #fef2f2 !important;
}

/* ---- "Hello user" + Quick Links block at bottom ---- */
.wpuf-space-y-6 { background: transparent !important; }

.wpuf-bg-gray-50,
.wpuf-bg-white {
    background: #ffffff !important;
    border-color: rgba(74,122,191,0.2) !important;
    color: #374151 !important;
}

.wpuf-text-gray-800,
.wpuf-text-gray-900,
.wpuf-text-gray-600 {
    color: #374151 !important;
}

.wpuf-text-lg { color: #111827 !important; }

.wpuf-bg-gray-50 a,
.wpuf-bg-white a {
    color: #6b7280 !important;
}

.wpuf-bg-gray-50 a:hover,
.wpuf-bg-white a:hover {
    color: #374151 !important;
}

/* ---- Welcome h2 ---- */
.ntl-dashboard h2 {
    color: #111827 !important;
    border: none !important;
}

/* ---- ntl-dash-hero wrapper ---- */
.ntl-dash-hero {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.ntl-hero-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---- Show cards (inside ntl-dashboard-grid--three panels) ---- */
.ntl-dash-panel--featured .ntl-show-card {
    background: #f9fafb !important;
    border-color: rgba(74,122,191,0.15) !important;
    border-left-color: #ff3b3b !important;
}

.ntl-dash-panel--featured .ntl-show-card:hover {
    background: #f3f4f6 !important;
}

.ntl-dash-panel--featured .ntl-show-date {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid #e2e5ea !important;
    box-shadow: none !important;
}

.ntl-dash-panel--featured .ntl-show-month { color: #ff4444 !important; }
.ntl-dash-panel--featured .ntl-show-day   { color: #111827 !important; }

.ntl-dash-panel--featured .ntl-show-header h4 a {
    color: #111827 !important;
}

.ntl-dash-panel--featured .ntl-show-time {
    background: rgba(255,59,59,0.18) !important;
    border: 1px solid rgba(255,59,59,0.3) !important;
    color: #ff7070 !important;
}

.ntl-dash-panel--featured .ntl-show-venue { color: #6b7280 !important; }
.ntl-dash-panel--featured .ntl-show-venue a { color: #6b7280 !important; }
.ntl-dash-panel--featured .ntl-show-venue a:hover { color: #374151 !important; }
.ntl-dash-panel--featured .ntl-show-venue .dashicons { color: #6b7280 !important; }

/* ---- Market news panel (grid right column) ---- */
.ntl-dash-panel--news .ntl-empty-state { color: #3a5a8a !important; }
.ntl-dash-panel--news .ntl-empty-state .dashicons { color: #2a4060 !important; }
.ntl-dash-panel--news .ntl-empty-state p { color: #3a5a8a !important; }

/* ---- My Team activity panel ---- */
.ntl-dash-panel--team-activity {
    background: #ffffff !important;
    border: 1px solid #e2e5ea !important;
}

.ntl-dash-panel--team-activity h3 {
    color: #6b7280 !important;
    border-bottom-color: rgba(74,122,191,0.15) !important;
}

.ntl-team-activity h4 { color: #374151 !important; }

.ntl-activity-item {
    background: #f9fafb !important;
    border-color: rgba(74,122,191,0.1) !important;
}

.ntl-activity-item:hover { background: #f3f4f6 !important; }
.ntl-activity-text       { color: #374151 !important; }
.ntl-activity-date       { color: #2a4060 !important; }

/* ---- Achievements grid ---- */
.ntl-achievements-dashboard { background: transparent; }

.ntl-achievements-header h2 {
    color: #111827 !important;
    border: none !important;
    font-size: 22px !important;
}

/* ---- Points history table dark card ---- */
.ntl-points-history.ntl-dark-card {
    background: #ffffff !important;
    border: 1px solid #e2e5ea !important;
    border-radius: 14px !important;
    overflow: hidden;
}

.ntl-dark-card-head {
    padding: 14px 18px 12px !important;
    border-bottom: 1px solid rgba(74,122,191,0.15) !important;
}

.ntl-section-title {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6b7280;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .wpuf-account-sidebar {
        border-radius: 8px !important;
        margin-bottom: 16px;
    }

    .ntl-ach-grid {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    }

    .ntl-dashboard-grid--three {
        grid-template-columns: 1fr !important;
    }

    .ntl-dash-panel--featured {
        grid-column: span 1 !important;
    }
}


/* =====================================================
   WPUF NAV → TOP BAR (desktop) + BOTTOM BAR (mobile)
   The sidebar is hidden; nav items are cloned into
   fixed bars via JS (ntl-teams.js).
   ===================================================== */

/* ---- Hide the original sidebar nav on the dashboard page ---- */
.wpuf-account-container .wpuf-account-sidebar {
    display: none !important;
}

/* When sidebar is hidden, content takes full width */
.wpuf-account-container .wpuf-account-content {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding: 0 24px !important;
}

/* ---- INJECTED TOP NAV BAR ---- */
.ntl-account-topnav {
    background: #0d1f3c;
    border-bottom: 1px solid #e2e5ea;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 32px; /* account for WP admin bar (32px) */
    z-index: 400;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.ntl-account-topnav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.ntl-account-topnav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 7px;
    font-family: 'Barlow', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #7a9cc8;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.ntl-account-topnav-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

.ntl-account-topnav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

.ntl-account-topnav-link.ntl-nav-active {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
}

/* Avatar pill on the right */
.ntl-account-topnav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ntl-account-topnav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    object-fit: cover;
    cursor: pointer;
}

.ntl-account-topnav-logout {
    font-size: 12px;
    font-weight: 600;
    color: #fca5a5;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.15s;
}

.ntl-account-topnav-logout:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

/* ---- INJECTED BOTTOM NAV (mobile only) ---- */
.ntl-account-bottomnav {
    display: none; /* shown via media query */
    background: #0f2244;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    bottom: 0;
    z-index: 500;
    height: 60px;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
}

.ntl-account-bottomnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: rgba(255,255,255,0.4);
    padding: 6px 4px 8px;
    transition: color 0.15s;
    font-family: 'Barlow', system-ui, sans-serif;
}

.ntl-account-bottomnav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.15s;
}

.ntl-account-bottomnav-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ntl-account-bottomnav-item:hover,
.ntl-account-bottomnav-item.ntl-nav-active {
    color: #ffffff;
}

.ntl-account-bottomnav-item.ntl-nav-active svg {
    stroke: #D13237;
}

/* ---- Responsive: show bottom nav, hide top nav links on mobile ---- */
@media (max-width: 768px) {
    .ntl-account-topnav-links { display: none; }
    .ntl-account-bottomnav    { display: grid; }

    /* Extra bottom padding so content doesn't hide behind bottom nav */
    .wpuf-account-content {
        padding-bottom: 76px !important;
    }

    .wpuf-account-container .wpuf-account-content {
        padding: 0 14px 76px !important;
    }
}


/* =====================================================
   TWO-COLUMN LAYOUT FIX
   The WPUF dashboard renders:
     .ntl-dash-hero  (loyalty + achievements + survey)
     .ntl-dashboard-grid--three  (shows + news)
     .ntl-dash-panel--team-activity
   We wrap these into a two-column layout via CSS grid
   on the .ntl-dashboard container.
   ===================================================== */

.ntl-dashboard {
  
}

/* Welcome h2 spans full width */
.ntl-dashboard > h2 {
    grid-column: 1 / -1;
    margin-bottom: 16px;
    padding-bottom: 0;
    border: none;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-weight: 900;
    font-size: 2em;
    color: #111827;
}

/* Hero stats (left column) */
.ntl-dash-hero {
    grid-column: 1;
    grid-row: 2;
}

/* Shows + news grid (right side — override to single column) */
.ntl-dashboard-grid--three {
    grid-column: 2;
    grid-row: 2 / 5;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 0;
    align-self: start;
    position: sticky;
    top: 82px; /* below admin bar + account top nav */
}

/* Featured panel (upcoming shows) takes full width of right column */
.ntl-dash-panel--featured {
    grid-column: unset !important;
}

/* Team activity (left column, below hero) */
.ntl-dash-panel--team-activity {
    grid-column: 1;
    grid-row: 4;
}

/* Any stray full-width divs (the wpuf user info block) */
.ntl-dashboard > .wpuf-space-y-6 {
    grid-column: 1 / -1;
}

/* ---- Fix hero loyalty card to be navy ---- */
.ntl-loyalty-hero {
    background: #0f2244 !important;
    border-color: rgba(255,255,255,0.08) !important;
}

.ntl-loyalty-points-label {
    color: rgba(255,255,255,0.5) !important;
}

.ntl-loyalty-points-number {
    color: #D13237 !important;
}

.ntl-loyalty-level-badge {
    background: rgba(209,50,55,0.2) !important;
    border-color: rgba(209,50,55,0.4) !important;
    color: #ff9090 !important;
}

.ntl-loyalty-logo-mark {
    background: rgba(209,50,55,0.15) !important;
    border-color: rgba(209,50,55,0.3) !important;
}

.ntl-loyalty-logo-text {
    color: #ff9090 !important;
}

.ntl-loyalty-btn-rules {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.15) !important;
    color: rgba(255,255,255,0.7) !important;
}

.ntl-loyalty-btn-rules:hover {
    background: rgba(255,255,255,0.14) !important;
    color: #fff !important;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .ntl-dashboard {
        grid-template-columns: 1fr;
    }

    .ntl-dash-hero,
    .ntl-dashboard-grid--three,
    .ntl-dash-panel--team-activity {
        grid-column: 1 !important;
        grid-row: auto !important;
        position: static;
    }

    .ntl-dashboard-grid--three {
        position: static;
    }
}


/* =====================================================
   PLAYER DASHBOARD FIXES — v3.2
   ===================================================== */

/* Dark navy page background for player dashboard */
.wpuf-account-content:has(.ntl-ld-wrap),
.wpuf-account-content .ntl-dashboard:has(.ntl-ld-wrap) {
    padding: 0 !important;
}

/* Scope dark bg to the ld-wrap itself */
.ntl-ld-wrap {
    max-width: 100%;
    box-sizing: border-box;
}

/* Remove the ntl-dashboard wrapper padding when it contains ntl-ld-wrap */
.ntl-dashboard:has(.ntl-ld-wrap) {
    padding: 0 !important;
    margin: 0 !important;
}

/* Two-column body: constrain sidebar, remove extra right space */
.ntl-ld-body {
    grid-template-columns: 1fr 300px;
    max-width: 100%;
}

/* Sidebar should not overflow */
.ntl-ld-sidebar {
    min-width: 0;
    width: 100%;
}

/* ---- Account top nav bar ---- */
/* Ensure it renders when injected before .wpuf-account-container */
.ntl-account-topnav {
    background: #0f2244;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 32px; /* below WP admin bar */
    z-index: 400;
    width: 100%;
    box-sizing: border-box;
}

/* Hide original wpuf sidebar since nav is now top/bottom */
.wpuf-account-container .wpuf-account-sidebar {
    display: none !important;
}

.wpuf-account-container .wpuf-account-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 !important;
    border-left: 0px !important;
}

/* ---- WPUF "Hello user" + Quick Links — hide from player view ---- */
.ntl-dashboard:has(.ntl-ld-wrap) ~ .wpuf-space-y-6 {
    display: none !important;
}

/* Fallback: hide it via the content wrapper */
.wpuf-account-content > .wpuf-space-y-6 {
    display: none;
}

/* ---- Mobile: bottom nav visible, top nav links hidden ---- */
@media (max-width: 768px) {
    .ntl-account-topnav-links { display: none !important; }
    .ntl-account-bottomnav    { display: grid !important; }

    .ntl-ld-wrap {
        padding: 14px 14px calc(60px + 16px);
    }

    .ntl-ld-body {
        grid-template-columns: 1fr;
    }

    .ntl-ld-sidebar {
        position: static;
        order: -1;
    }
}

    /* =====================================
   MY TEAM REDESIGN
===================================== */

.ntl-my-team {
    --ntl-navy: #071a38;
    --ntl-navy-dark: #031126;
    --ntl-red: #e51f2f;
    --ntl-red-dark: #9e1019;
    --ntl-teal: #008aa4;
    --ntl-text: #101827;
    --ntl-muted: #667085;
    --ntl-border: #e3e7ee;
    --ntl-card: #ffffff;

    font-family: 'Barlow', system-ui, sans-serif;
    color: #fff;
}

.ntl-my-team h3,
.ntl-my-team h4 {
    margin: 0;
    border: 0;
    padding: 0;
}

.ntl-team-page-header {
    margin-bottom: 20px;
}

.ntl-team-page-header h2 {
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    line-height: .95;
    margin: 0;
}

.ntl-eyebrow {
    margin: 0 0 6px;
    color: var(--ntl-red);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ntl-team-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
    gap: 28px;
    align-items: end;
    padding: 34px;
    margin-bottom: 24px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,.12);
    background:
        radial-gradient(circle at 85% 25%, rgba(229,31,47,.42), transparent 34%),
        radial-gradient(circle at 8% 10%, rgba(0,138,164,.18), transparent 28%),
        linear-gradient(135deg, #071a38 0%, #071225 48%, #29080c 100%);
    box-shadow: 0 22px 60px rgba(0,0,0,.22);
}

.ntl-team-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0 55%, rgba(255,255,255,.05) 55% 56%, transparent 56%),
        radial-gradient(circle at 90% 10%, rgba(255,255,255,.08), transparent 22%);
    pointer-events: none;
}

.ntl-team-hero > * {
    position: relative;
    z-index: 1;
}

.ntl-team-hero__identity {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.ntl-team-avatar {
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ntl-red), #65070c);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 14px 30px rgba(0,0,0,.25);
}

.ntl-team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ntl-team-avatar span {
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 46px;
    font-weight: 900;
    letter-spacing: .02em;
}

.ntl-team-hero h3 {
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 900;
    line-height: .95;
    max-width: 720px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 18px rgba(0,0,0,.3);
}

.ntl-team-meta {
    margin: 14px 0 0;
    color: rgba(255,255,255,.84);
    font-size: 16px;
}

.ntl-team-meta strong {
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    padding: 4px 10px;
    color: #fff;
    letter-spacing: .08em;
}

.ntl-team-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.ntl-team-hero__stats div {
    padding: 16px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    text-align: center;
}

.ntl-team-hero__stats strong {
    display: block;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 31px;
    font-weight: 900;
    line-height: 1;
}

.ntl-team-hero__stats span {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,.72);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ntl-team-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr);
    gap: 22px;
    align-items: start;
}

.ntl-team-main,
.ntl-team-sidebar {
    display: grid;
    gap: 22px;
}

.ntl-team-card {
    border-radius: 18px;
    padding: 24px;
}

.ntl-team-card--light {
    background: #fff;
    color: var(--ntl-text);
    border: 1px solid var(--ntl-border);
    box-shadow: 0 12px 34px rgba(0,0,0,.16);
}

.ntl-team-card h4 {
    color: var(--ntl-text);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
}

.ntl-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--ntl-border);
}

.ntl-card-heading > span {
    color: var(--ntl-muted);
    font-size: 14px;
    white-space: nowrap;
}

.ntl-roster-list {
    display: grid;
}

.ntl-roster-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(260px, auto);
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--ntl-border);
}

.ntl-roster-row:last-child {
    border-bottom: 0;
}

.ntl-roster-person {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.ntl-roster-person img {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    object-fit: cover;
}

.ntl-roster-person strong {
    display: block;
    color: var(--ntl-text);
    font-weight: 800;
}

.ntl-roster-person span {
    display: block;
    color: var(--ntl-muted);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ntl-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 5px 10px;
    background: #eef1f5;
    color: #475467;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.ntl-pill--captain {
    background: var(--ntl-red);
    color: #fff;
}

.ntl-pill--co {
    background: #111827;
    color: #fff;
}

.ntl-roster-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ntl-roster-actions form {
    margin: 0;
}

.ntl-mini-btn,
.ntl-icon-btn,
.ntl-primary-btn,
.ntl-secondary-btn {
    appearance: none;
    cursor: pointer;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-radius: 12px;
    transition: .15s ease;
}

.ntl-mini-btn {
    padding: 8px 12px;
    border: 1px solid var(--ntl-red);
    background: #fff;
    color: var(--ntl-red);
    font-size: 14px;
}

.ntl-mini-btn:hover {
    background: var(--ntl-red);
    color: #fff;
}

.ntl-mini-btn--muted {
    border-color: #cbd5e1;
    color: #344054;
}

.ntl-mini-btn--muted:hover {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.ntl-icon-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #fee2e2;
    background: #fff1f2;
    color: var(--ntl-red);
    font-size: 22px;
    line-height: 1;
}

.ntl-stacked-form {
    display: grid;
    gap: 12px;
    margin: 16px 0 0 !important;
}

.ntl-stacked-form label {
    color: var(--ntl-muted);
    font-size: 14px;
    font-weight: 700;
}

.ntl-my-team input[type="text"],
.ntl-my-team input[type="email"],
.ntl-my-team input[type="number"],
.ntl-my-team input[type="file"],
.ntl-my-team select {
    width: 100%;
    max-width: none;
    min-height: 48px;
    border-radius: 10px;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #111827;
    font-size: 16px;
    margin-top: 6px;
    padding: 10px 12px;
}

.ntl-primary-btn,
.ntl-secondary-btn {
    min-height: 50px;
    padding: 12px 18px;
    font-size: 18px;
}

.ntl-primary-btn {
    border: 0;
    background: linear-gradient(135deg, var(--ntl-red), var(--ntl-red-dark));
    color: #fff;
    box-shadow: 0 10px 22px rgba(229,31,47,.22);
}

.ntl-secondary-btn {
    border: 1px solid var(--ntl-teal);
    background: #fff;
    color: var(--ntl-teal);
}

.ntl-primary-btn:hover {
    filter: brightness(.96);
}

.ntl-secondary-btn:hover {
    background: var(--ntl-teal);
    color: #fff;
}

.ntl-logo-form {
    padding-top: 16px;
    margin-top: 18px !important;
    border-top: 1px solid var(--ntl-border);
}

/* Hide older table style inside redesigned area */
.ntl-team-layout .ntl-roster-table,
.ntl-team-layout .ntl-member-table {
    box-shadow: none;
}

/* Responsive */
@media (max-width: 980px) {
    .ntl-team-hero,
    .ntl-team-layout {
        grid-template-columns: 1fr;
    }

    .ntl-team-hero__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ntl-roster-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ntl-roster-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .ntl-team-hero {
        padding: 24px;
    }

    .ntl-team-hero__identity {
        align-items: flex-start;
        flex-direction: column;
    }

    .ntl-team-avatar {
        width: 86px;
        height: 86px;
        flex-basis: 86px;
    }

    .ntl-team-hero__stats {
        grid-template-columns: 1fr;
    }

    .ntl-team-card {
        padding: 18px;
    }
}

.ntl-team-page-header {
    display: none;
}

.ntl-team-hero--split {
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, .85fr);
    align-items: stretch;
    padding: 0;
}

.ntl-team-hero__left,
.ntl-team-hero__game {
    position: relative;
    z-index: 1;
    padding: 34px;
}

.ntl-team-hero__left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 330px;
}

.ntl-team-hero__game {
    border-left: 1px solid rgba(255,255,255,.18);
    background:
        radial-gradient(circle at 85% 20%, rgba(229,31,47,.35), transparent 38%),
        rgba(255,255,255,.025);
}

.ntl-team-avatar {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
}

.ntl-team-hero__identity {
    align-items: flex-start;
}

.ntl-team-title-wrap {
    min-width: 0;
}

.ntl-team-captain-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.ntl-team-captain-line img {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,.32);
}

.ntl-team-captain-line strong,
.ntl-team-captain-line span {
    display: block;
}

.ntl-team-captain-line strong {
    color: #fff;
    font-weight: 800;
}

.ntl-team-captain-line span:not(.ntl-pill) {
    color: rgba(255,255,255,.74);
    font-size: 14px;
}

.ntl-team-hero__stats {
    margin-top: 34px;
    display: flex;
    justify-content: flex-start;
    gap: 28px;
}

.ntl-team-hero__stats div {
    background: transparent;
    border: 0;
    border-right: 1px solid rgba(255,255,255,.18);
    border-radius: 0;
    min-width: 140px;
    padding: 0 28px 0 0;
    text-align: left;
}

.ntl-team-hero__stats div:last-child {
    border-right: 0;
}

.ntl-team-hero__stats .dashicons {
    display: block;
    color: var(--ntl-red);
    font-size: 34px;
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
}

.ntl-team-hero__game h4 {
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 22px;
}

.ntl-next-game-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.ntl-next-game-logo {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.92);
    color: #7a4f2a;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px;
    font-weight: 900;
}

.ntl-next-game-card strong {
    display: block;
    color: #fff;
    font-weight: 800;
    margin-bottom: 6px;
}

.ntl-next-game-card span {
    color: rgba(255,255,255,.76);
    font-size: 15px;
    line-height: 1.35;
}

.ntl-next-game-meta {
    display: flex;
    gap: 20px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 28px;
}

.ntl-next-game-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ntl-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ntl-hero-outline-btn {
    min-height: 50px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 12px;
    color: #fff;
    display: grid;
    place-items: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ntl-hero-outline-btn:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}

#ntl-invite-players,
#ntl-team-settings {
    scroll-margin-top: 120px;
}

@media (max-width: 980px) {
    .ntl-team-hero--split {
        grid-template-columns: 1fr;
    }

    .ntl-team-hero__game {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.18);
    }

    .ntl-team-hero__stats {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .ntl-team-hero__left,
    .ntl-team-hero__game {
        padding: 24px;
    }

    .ntl-team-hero__stats {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ntl-team-hero__stats div {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.18);
        padding-bottom: 16px;
    }

    .ntl-hero-actions {
        grid-template-columns: 1fr;
    }
}

.wpuf-edit-profile-container {
    background: white;
    padding: 50px;
}